blob: b5cc59bf1211d74ea64147383d4877f22155a3af [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
876LIBOBJS
877LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000878ac_subst_files=''
mlcreech94984912008-03-04 19:03:08 +0000879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
drh75897232000-05-29 14:26:00 +0000895
896# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000897ac_init_help=
898ac_init_version=false
drh75897232000-05-29 14:26:00 +0000899# The variables have the same names as the options, with
900# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000901cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000902exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000903no_create=
drh75897232000-05-29 14:26:00 +0000904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
drh75897232000-05-29 14:26:00 +0000912verbose=
913x_includes=NONE
914x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
mlcreech94984912008-03-04 19:03:08 +0000921# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
mlcreech94984912008-03-04 19:03:08 +0000925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000930includedir='${prefix}/include'
931oldincludedir='/usr/include'
mlcreech94984912008-03-04 19:03:08 +0000932docdir='${datarootdir}/doc/${PACKAGE}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000941
drh75897232000-05-29 14:26:00 +0000942ac_prev=
mlcreech94984912008-03-04 19:03:08 +0000943ac_dashdash=
drh75897232000-05-29 14:26:00 +0000944for ac_option
945do
drh75897232000-05-29 14:26:00 +0000946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
mlcreech94984912008-03-04 19:03:08 +0000948 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000949 ac_prev=
950 continue
951 fi
952
mlcreech94984912008-03-04 19:03:08 +0000953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
drh75897232000-05-29 14:26:00 +0000957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
mlcreech94984912008-03-04 19:03:08 +0000960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000967 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000968
969 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000970 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000972 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000983
mlcreech94984912008-03-04 19:03:08 +0000984 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +0000985 ac_prev=datadir ;;
mlcreech94984912008-03-04 19:03:08 +0000986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +0000987 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000988
mlcreech94984912008-03-04 19:03:08 +0000989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
drh75897232000-05-29 14:26:00 +0000996 -disable-* | --disable-*)
drh71eb93e2001-09-28 01:34:43 +0000997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000998 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +0000999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -enable-* | --enable-*)
drh71eb93e2001-09-28 01:34:43 +00001016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001017 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001031 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
drh71eb93e2001-09-28 01:34:43 +00001037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001043
1044 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001045 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001046 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001047 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001048
mlcreech94984912008-03-04 19:03:08 +00001049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
drh75897232000-05-29 14:26:00 +00001055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001060 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001065 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001070 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001077 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001078
mlcreech94984912008-03-04 19:03:08 +00001079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
drh75897232000-05-29 14:26:00 +00001084 -localstatedir | --localstatedir | --localstatedi | --localstated \
mlcreech94984912008-03-04 19:03:08 +00001085 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mlcreech94984912008-03-04 19:03:08 +00001088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001089 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001094 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001101 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001115 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001120 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001127 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001134 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001151 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
mlcreech94984912008-03-04 19:03:08 +00001153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
drh75897232000-05-29 14:26:00 +00001163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001171 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001182 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001187 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001192 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001199 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001202 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001204 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
drh71eb93e2001-09-28 01:34:43 +00001209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001211
1212 -with-* | --with-*)
drh71eb93e2001-09-28 01:34:43 +00001213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001214 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001220
1221 -without-* | --without-*)
drh71eb93e2001-09-28 01:34:43 +00001222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001223 # Reject names that are not valid shell variable names.
mlcreech94984912008-03-04 19:03:08 +00001224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh71eb93e2001-09-28 01:34:43 +00001225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
drh75897232000-05-29 14:26:00 +00001229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001239 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001246 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
drh71eb93e2001-09-28 01:34:43 +00001248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001251 ;;
1252
drh71eb93e2001-09-28 01:34:43 +00001253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001259 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001260 export $ac_envvar ;;
1261
drh75897232000-05-29 14:26:00 +00001262 *)
drh71eb93e2001-09-28 01:34:43 +00001263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001277fi
1278
mlcreech94984912008-03-04 19:03:08 +00001279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
drh75897232000-05-29 14:26:00 +00001284do
mlcreech94984912008-03-04 19:03:08 +00001285 eval ac_val=\$$ac_var
drh71eb93e2001-09-28 01:34:43 +00001286 case $ac_val in
mlcreech94984912008-03-04 19:03:08 +00001287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
drh75897232000-05-29 14:26:00 +00001289 esac
mlcreech94984912008-03-04 19:03:08 +00001290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001292done
drh75897232000-05-29 14:26:00 +00001293
drh71eb93e2001-09-28 01:34:43 +00001294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001296# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001297build=$build_alias
1298host=$host_alias
1299target=$target_alias
drh75897232000-05-29 14:26:00 +00001300
a.rottmann84e63352003-03-24 09:42:16 +00001301# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001316
a.rottmann84e63352003-03-24 09:42:16 +00001317
mlcreech94984912008-03-04 19:03:08 +00001318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
drh75897232000-05-29 14:26:00 +00001328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
mlcreech94984912008-03-04 19:03:08 +00001331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
a.rottmann84e63352003-03-24 09:42:16 +00001333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +00001334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +00001336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +00001337echo X"$0" |
mlcreech94984912008-03-04 19:03:08 +00001338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001355 srcdir=$ac_confdir
mlcreech94984912008-03-04 19:03:08 +00001356 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
mlcreech94984912008-03-04 19:03:08 +00001362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001365 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +00001366fi
mlcreech94984912008-03-04 19:03:08 +00001367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
drh613a0fe2007-11-23 17:31:17 +00001370 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
drh75897232000-05-29 14:26:00 +00001388
drh71eb93e2001-09-28 01:34:43 +00001389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001395 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001396\`configure' configures this package to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
drh71eb93e2001-09-28 01:34:43 +00001416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001418 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
a.rottmann964dbb12004-02-26 19:47:42 +00001420 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
drh71eb93e2001-09-28 01:34:43 +00001433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
mlcreech94984912008-03-04 19:03:08 +00001439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001449_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001450
a.rottmann84e63352003-03-24 09:42:16 +00001451 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001457fi
1458
1459if test -n "$ac_init_help"; then
1460
a.rottmann84e63352003-03-24 09:42:16 +00001461 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001462
1463Optional Features:
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mlcreech94984912008-03-04 19:03:08 +00001466 --enable-shared[=PKGS] build shared libraries [default=yes]
1467 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001468 --enable-fast-install[=PKGS]
1469 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001470 --disable-libtool-lock avoid locking (might break parallel builds)
drh94e4f822006-02-15 02:00:25 +00001471 --enable-threadsafe Support threadsafe operation
1472 --enable-cross-thread-connections
1473 Allow connection sharing across threads
1474 --enable-threads-override-locks
1475 Threads can override each others locks
1476 --enable-releasemode Support libtool link to release mode
1477 --enable-tempstore Use an in-ram database for temporary tables
1478 (never,no,yes,always)
1479 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001480 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001481 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001482 --disable-amalgamation Disable the amalgamation and instead build all files
1483 separately (currently needed to build the test
1484 fixture)
drh71eb93e2001-09-28 01:34:43 +00001485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-pic try to use only PIC/non-PIC objects [default=use
1491 both]
mlcreech94984912008-03-04 19:03:08 +00001492 --with-tags[=TAGS] include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001493 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001494 --with-tcl=DIR directory containing tcl configuration
1495 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001496 --with-readline-lib specify readline library
1497 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001498
1499Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
mlcreech94984912008-03-04 19:03:08 +00001504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001507 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CXXCPP C++ preprocessor
1511 F77 Fortran 77 compiler command
1512 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
a.rottmann84e63352003-03-24 09:42:16 +00001517_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001518ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mlcreech94984912008-03-04 19:03:08 +00001524 test -d "$ac_dir" || continue
a.rottmann84e63352003-03-24 09:42:16 +00001525 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001526
mlcreech94984912008-03-04 19:03:08 +00001527case "$ac_dir" in
1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529*)
a.rottmann84e63352003-03-24 09:42:16 +00001530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +00001531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537esac
1538ac_abs_top_builddir=$ac_pwd
1539ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540# for backward compatibility:
1541ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001542
a.rottmann84e63352003-03-24 09:42:16 +00001543case $srcdir in
mlcreech94984912008-03-04 19:03:08 +00001544 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001545 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +00001546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +00001549 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +00001550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001556esac
mlcreech94984912008-03-04 19:03:08 +00001557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +00001558
mlcreech94984912008-03-04 19:03:08 +00001559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
drh71eb93e2001-09-28 01:34:43 +00001567 else
a.rottmann84e63352003-03-24 09:42:16 +00001568 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mlcreech94984912008-03-04 19:03:08 +00001569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001571 done
1572fi
1573
mlcreech94984912008-03-04 19:03:08 +00001574test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001575if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001576 cat <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001577configure
1578generated by GNU Autoconf 2.61
drh71eb93e2001-09-28 01:34:43 +00001579
mlcreech94984912008-03-04 19:03:08 +00001580Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001584_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001585 exit
drh71eb93e2001-09-28 01:34:43 +00001586fi
mlcreech94984912008-03-04 19:03:08 +00001587cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001588This file contains any messages produced by compilers while
1589running configure, to aid debugging if configure makes a mistake.
1590
1591It was created by $as_me, which was
mlcreech94984912008-03-04 19:03:08 +00001592generated by GNU Autoconf 2.61. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001593
1594 $ $0 $@
1595
a.rottmann84e63352003-03-24 09:42:16 +00001596_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001597exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001598{
1599cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001600## --------- ##
1601## Platform. ##
1602## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001603
1604hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609
1610/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1612
1613/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1614/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1615/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mlcreech94984912008-03-04 19:03:08 +00001616/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001617/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1618/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1619/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1620
drh71eb93e2001-09-28 01:34:43 +00001621_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001622
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626 IFS=$as_save_IFS
1627 test -z "$as_dir" && as_dir=.
1628 echo "PATH: $as_dir"
1629done
mlcreech94984912008-03-04 19:03:08 +00001630IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001631
drh71eb93e2001-09-28 01:34:43 +00001632} >&5
1633
a.rottmann84e63352003-03-24 09:42:16 +00001634cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001635
a.rottmann84e63352003-03-24 09:42:16 +00001636
1637## ----------- ##
1638## Core tests. ##
1639## ----------- ##
1640
1641_ACEOF
1642
drh71eb93e2001-09-28 01:34:43 +00001643
1644# Keep a trace of the command line.
1645# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001646# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001647# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001648# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001649ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001650ac_configure_args0=
1651ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001652ac_must_keep_next=false
1653for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001654do
a.rottmann84e63352003-03-24 09:42:16 +00001655 for ac_arg
1656 do
1657 case $ac_arg in
1658 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660 | -silent | --silent | --silen | --sile | --sil)
1661 continue ;;
mlcreech94984912008-03-04 19:03:08 +00001662 *\'*)
a.rottmann84e63352003-03-24 09:42:16 +00001663 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664 esac
1665 case $ac_pass in
1666 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667 2)
1668 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001670 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001671 else
a.rottmann964dbb12004-02-26 19:47:42 +00001672 case $ac_arg in
1673 *=* | --config-cache | -C | -disable-* | --disable-* \
1674 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676 | -with-* | --with-* | -without-* | --without-* | --x)
1677 case "$ac_configure_args0 " in
1678 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679 esac
1680 ;;
1681 -* ) ac_must_keep_next=true ;;
1682 esac
a.rottmann84e63352003-03-24 09:42:16 +00001683 fi
mlcreech94984912008-03-04 19:03:08 +00001684 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001685 ;;
1686 esac
1687 done
drh71eb93e2001-09-28 01:34:43 +00001688done
a.rottmann84e63352003-03-24 09:42:16 +00001689$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001691
1692# When interrupted or exit'd, cleanup temporary files, and complete
1693# config.log. We remove comments because anyway the quotes in there
1694# would cause problems or look ugly.
mlcreech94984912008-03-04 19:03:08 +00001695# WARNING: Use '\'' to represent an apostrophe within the trap.
1696# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001697trap 'exit_status=$?
1698 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001699 {
1700 echo
1701
1702 cat <<\_ASBOX
1703## ---------------- ##
1704## Cache variables. ##
1705## ---------------- ##
1706_ASBOX
1707 echo
1708 # The following way of writing the cache mishandles newlines in values,
mlcreech94984912008-03-04 19:03:08 +00001709(
1710 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711 eval ac_val=\$$ac_var
1712 case $ac_val in #(
1713 *${as_nl}*)
1714 case $ac_var in #(
1715 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717 esac
1718 case $ac_var in #(
1719 _ | IFS | as_nl) ;; #(
1720 *) $as_unset $ac_var ;;
1721 esac ;;
1722 esac
1723 done
drh71eb93e2001-09-28 01:34:43 +00001724 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +00001725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001727 sed -n \
mlcreech94984912008-03-04 19:03:08 +00001728 "s/'\''/'\''\\\\'\'''\''/g;
1729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730 ;; #(
drh613a0fe2007-11-23 17:31:17 +00001731 *)
mlcreech94984912008-03-04 19:03:08 +00001732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh613a0fe2007-11-23 17:31:17 +00001733 ;;
mlcreech94984912008-03-04 19:03:08 +00001734 esac |
1735 sort
1736)
a.rottmann84e63352003-03-24 09:42:16 +00001737 echo
1738
1739 cat <<\_ASBOX
1740## ----------------- ##
1741## Output variables. ##
1742## ----------------- ##
1743_ASBOX
1744 echo
1745 for ac_var in $ac_subst_vars
1746 do
mlcreech94984912008-03-04 19:03:08 +00001747 eval ac_val=\$$ac_var
1748 case $ac_val in
1749 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750 esac
1751 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001752 done | sort
1753 echo
1754
1755 if test -n "$ac_subst_files"; then
1756 cat <<\_ASBOX
mlcreech94984912008-03-04 19:03:08 +00001757## ------------------- ##
1758## File substitutions. ##
1759## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001760_ASBOX
1761 echo
1762 for ac_var in $ac_subst_files
1763 do
mlcreech94984912008-03-04 19:03:08 +00001764 eval ac_val=\$$ac_var
1765 case $ac_val in
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767 esac
1768 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001769 done | sort
1770 echo
1771 fi
1772
1773 if test -s confdefs.h; then
1774 cat <<\_ASBOX
1775## ----------- ##
1776## confdefs.h. ##
1777## ----------- ##
1778_ASBOX
1779 echo
mlcreech94984912008-03-04 19:03:08 +00001780 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001781 echo
1782 fi
1783 test "$ac_signal" != 0 &&
1784 echo "$as_me: caught signal $ac_signal"
1785 echo "$as_me: exit $exit_status"
1786 } >&5
mlcreech94984912008-03-04 19:03:08 +00001787 rm -f core *.core core.conftest.* &&
1788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001789 exit $exit_status
mlcreech94984912008-03-04 19:03:08 +00001790' 0
drh71eb93e2001-09-28 01:34:43 +00001791for ac_signal in 1 2 13 15; do
1792 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793done
1794ac_signal=0
1795
1796# confdefs.h avoids OS command line length limits that DEFS can exceed.
mlcreech94984912008-03-04 19:03:08 +00001797rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001798
a.rottmann84e63352003-03-24 09:42:16 +00001799# Predefined preprocessor variables.
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_NAME "$PACKAGE_NAME"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_VERSION "$PACKAGE_VERSION"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_STRING "$PACKAGE_STRING"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823_ACEOF
1824
1825
drh71eb93e2001-09-28 01:34:43 +00001826# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001827# Prefer explicitly selected file to automatically selected ones.
mlcreech94984912008-03-04 19:03:08 +00001828if test -n "$CONFIG_SITE"; then
1829 set x "$CONFIG_SITE"
1830elif test "x$prefix" != xNONE; then
1831 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832else
1833 set x "$ac_default_prefix/share/config.site" \
1834 "$ac_default_prefix/etc/config.site"
drh75897232000-05-29 14:26:00 +00001835fi
mlcreech94984912008-03-04 19:03:08 +00001836shift
1837for ac_site_file
1838do
drh75897232000-05-29 14:26:00 +00001839 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001840 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001841echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001842 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001843 . "$ac_site_file"
1844 fi
1845done
1846
1847if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001848 # Some versions of bash will fail to source /dev/null (special
1849 # files actually), so we avoid doing that.
1850 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001851 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001852echo "$as_me: loading cache $cache_file" >&6;}
1853 case $cache_file in
mlcreech94984912008-03-04 19:03:08 +00001854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001856 esac
1857 fi
drh75897232000-05-29 14:26:00 +00001858else
a.rottmann84e63352003-03-24 09:42:16 +00001859 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001860echo "$as_me: creating cache $cache_file" >&6;}
1861 >$cache_file
1862fi
1863
1864# Check that the precious variables saved in the cache have kept the same
1865# value.
1866ac_cache_corrupted=false
mlcreech94984912008-03-04 19:03:08 +00001867for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869 eval ac_new_set=\$ac_env_${ac_var}_set
mlcreech94984912008-03-04 19:03:08 +00001870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001872 case $ac_old_set,$ac_new_set in
1873 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001874 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001875echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1877 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001878 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001879echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1881 ,);;
1882 *)
1883 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001884 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001885echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001886 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001887echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001888 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001889echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001890 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001891 fi;;
1892 esac
a.rottmann84e63352003-03-24 09:42:16 +00001893 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001894 if test "$ac_new_set" = set; then
1895 case $ac_new_val in
mlcreech94984912008-03-04 19:03:08 +00001896 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001897 *) ac_arg=$ac_var=$ac_new_val ;;
1898 esac
1899 case " $ac_configure_args " in
1900 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1901 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001902 esac
1903 fi
1904done
1905if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001906 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001907echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001908 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001909echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001911fi
1912
mlcreech94984912008-03-04 19:03:08 +00001913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
drh75897232000-05-29 14:26:00 +00001929ac_ext=c
drh75897232000-05-29 14:26:00 +00001930ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001934
a.rottmann84e63352003-03-24 09:42:16 +00001935
1936
drh75897232000-05-29 14:26:00 +00001937# The following RCS revision string applies to configure.in
mlcreech94984912008-03-04 19:03:08 +00001938# $Revision: 1.46 $
drh75897232000-05-29 14:26:00 +00001939
1940#########
drh71eb93e2001-09-28 01:34:43 +00001941# Programs needed
drh75897232000-05-29 14:26:00 +00001942#
mlcreech94984912008-03-04 19:03:08 +00001943# Check whether --enable-shared was given.
drh71eb93e2001-09-28 01:34:43 +00001944if test "${enable_shared+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001945 enableval=$enable_shared; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001946 case $enableval in
1947 yes) enable_shared=yes ;;
1948 no) enable_shared=no ;;
1949 *)
1950 enable_shared=no
1951 # Look at the argument we got. We use all the common list separators.
1952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1953 for pkg in $enableval; do
1954 IFS="$lt_save_ifs"
1955 if test "X$pkg" = "X$p"; then
1956 enable_shared=yes
1957 fi
1958 done
1959 IFS="$lt_save_ifs"
1960 ;;
1961 esac
drh71eb93e2001-09-28 01:34:43 +00001962else
1963 enable_shared=yes
mlcreech94984912008-03-04 19:03:08 +00001964fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001965
mlcreech94984912008-03-04 19:03:08 +00001966
1967# Check whether --enable-static was given.
drh71eb93e2001-09-28 01:34:43 +00001968if test "${enable_static+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001969 enableval=$enable_static; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001970 case $enableval in
1971 yes) enable_static=yes ;;
1972 no) enable_static=no ;;
1973 *)
1974 enable_static=no
1975 # Look at the argument we got. We use all the common list separators.
1976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1977 for pkg in $enableval; do
1978 IFS="$lt_save_ifs"
1979 if test "X$pkg" = "X$p"; then
1980 enable_static=yes
1981 fi
1982 done
1983 IFS="$lt_save_ifs"
1984 ;;
1985 esac
drh71eb93e2001-09-28 01:34:43 +00001986else
1987 enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00001988fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001989
mlcreech94984912008-03-04 19:03:08 +00001990
1991# Check whether --enable-fast-install was given.
drh71eb93e2001-09-28 01:34:43 +00001992if test "${enable_fast_install+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001993 enableval=$enable_fast_install; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001994 case $enableval in
1995 yes) enable_fast_install=yes ;;
1996 no) enable_fast_install=no ;;
1997 *)
1998 enable_fast_install=no
1999 # Look at the argument we got. We use all the common list separators.
2000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2001 for pkg in $enableval; do
2002 IFS="$lt_save_ifs"
2003 if test "X$pkg" = "X$p"; then
2004 enable_fast_install=yes
2005 fi
2006 done
2007 IFS="$lt_save_ifs"
2008 ;;
2009 esac
drh71eb93e2001-09-28 01:34:43 +00002010else
2011 enable_fast_install=yes
mlcreech94984912008-03-04 19:03:08 +00002012fi
2013
a.rottmann9bc8b932004-02-29 15:18:31 +00002014
drh71eb93e2001-09-28 01:34:43 +00002015ac_aux_dir=
mlcreech94984912008-03-04 19:03:08 +00002016for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 break
mlcreech94984912008-03-04 19:03:08 +00002021 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 break
mlcreech94984912008-03-04 19:03:08 +00002025 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002026 ac_aux_dir=$ac_dir
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 break
2029 fi
2030done
2031if test -z "$ac_aux_dir"; then
mlcreech94984912008-03-04 19:03:08 +00002032 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2033echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002034 { (exit 1); exit 1; }; }
2035fi
mlcreech94984912008-03-04 19:03:08 +00002036
2037# These three variables are undocumented and unsupported,
2038# and are intended to be withdrawn in a future Autoconf release.
2039# They can cause serious problems if a builder's source tree is in a directory
2040# whose full name contains unusual characters.
2041ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044
drh71eb93e2001-09-28 01:34:43 +00002045
2046# Make sure we can run config.sub.
mlcreech94984912008-03-04 19:03:08 +00002047$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2048 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2049echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002050 { (exit 1); exit 1; }; }
2051
mlcreech94984912008-03-04 19:03:08 +00002052{ echo "$as_me:$LINENO: checking build system type" >&5
2053echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002054if test "${ac_cv_build+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2056else
mlcreech94984912008-03-04 19:03:08 +00002057 ac_build_alias=$build_alias
2058test "x$ac_build_alias" = x &&
2059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2060test "x$ac_build_alias" = x &&
a.rottmann84e63352003-03-24 09:42:16 +00002061 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00002062echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2063 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002064ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2065 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2066echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002067 { (exit 1); exit 1; }; }
2068
2069fi
mlcreech94984912008-03-04 19:03:08 +00002070{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2071echo "${ECHO_T}$ac_cv_build" >&6; }
2072case $ac_cv_build in
2073*-*-*) ;;
2074*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2075echo "$as_me: error: invalid value of canonical build" >&2;}
2076 { (exit 1); exit 1; }; };;
2077esac
drh71eb93e2001-09-28 01:34:43 +00002078build=$ac_cv_build
mlcreech94984912008-03-04 19:03:08 +00002079ac_save_IFS=$IFS; IFS='-'
2080set x $ac_cv_build
2081shift
2082build_cpu=$1
2083build_vendor=$2
2084shift; shift
2085# Remember, the first character of IFS is used to create $*,
2086# except with old shells:
2087build_os=$*
2088IFS=$ac_save_IFS
2089case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002090
a.rottmann84e63352003-03-24 09:42:16 +00002091
mlcreech94984912008-03-04 19:03:08 +00002092{ echo "$as_me:$LINENO: checking host system type" >&5
2093echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002094if test "${ac_cv_host+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
mlcreech94984912008-03-04 19:03:08 +00002097 if test "x$host_alias" = x; then
2098 ac_cv_host=$ac_cv_build
2099else
2100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2101 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2102echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002103 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002104fi
drh71eb93e2001-09-28 01:34:43 +00002105
2106fi
mlcreech94984912008-03-04 19:03:08 +00002107{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2108echo "${ECHO_T}$ac_cv_host" >&6; }
2109case $ac_cv_host in
2110*-*-*) ;;
2111*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2112echo "$as_me: error: invalid value of canonical host" >&2;}
2113 { (exit 1); exit 1; }; };;
2114esac
drh71eb93e2001-09-28 01:34:43 +00002115host=$ac_cv_host
mlcreech94984912008-03-04 19:03:08 +00002116ac_save_IFS=$IFS; IFS='-'
2117set x $ac_cv_host
2118shift
2119host_cpu=$1
2120host_vendor=$2
2121shift; shift
2122# Remember, the first character of IFS is used to create $*,
2123# except with old shells:
2124host_os=$*
2125IFS=$ac_save_IFS
2126case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002127
a.rottmann84e63352003-03-24 09:42:16 +00002128
drh71eb93e2001-09-28 01:34:43 +00002129ac_ext=c
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134if test -n "$ac_tool_prefix"; then
2135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136set dummy ${ac_tool_prefix}gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002137{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002139if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144else
a.rottmann84e63352003-03-24 09:42:16 +00002145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146for as_dir in $PATH
2147do
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002151 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 +00002152 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2155 fi
2156done
drh71eb93e2001-09-28 01:34:43 +00002157done
mlcreech94984912008-03-04 19:03:08 +00002158IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002159
2160fi
2161fi
2162CC=$ac_cv_prog_CC
2163if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002164 { echo "$as_me:$LINENO: result: $CC" >&5
2165echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002166else
mlcreech94984912008-03-04 19:03:08 +00002167 { echo "$as_me:$LINENO: result: no" >&5
2168echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002169fi
2170
mlcreech94984912008-03-04 19:03:08 +00002171
drh71eb93e2001-09-28 01:34:43 +00002172fi
2173if test -z "$ac_cv_prog_CC"; then
2174 ac_ct_CC=$CC
2175 # Extract the first word of "gcc", so it can be a program name with args.
2176set dummy gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002179if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 if test -n "$ac_ct_CC"; then
2183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184else
a.rottmann84e63352003-03-24 09:42:16 +00002185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186for as_dir in $PATH
2187do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002191 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 +00002192 ac_cv_prog_ac_ct_CC="gcc"
2193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2195 fi
2196done
drh71eb93e2001-09-28 01:34:43 +00002197done
mlcreech94984912008-03-04 19:03:08 +00002198IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002199
2200fi
2201fi
2202ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002204 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002206else
mlcreech94984912008-03-04 19:03:08 +00002207 { echo "$as_me:$LINENO: result: no" >&5
2208echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002209fi
2210
mlcreech94984912008-03-04 19:03:08 +00002211 if test "x$ac_ct_CC" = x; then
2212 CC=""
2213 else
2214 case $cross_compiling:$ac_tool_warned in
2215yes:)
2216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2217whose name does not start with the host triplet. If you think this
2218configuration is useful to you, please write to autoconf@gnu.org." >&5
2219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2220whose name does not start with the host triplet. If you think this
2221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2222ac_tool_warned=yes ;;
2223esac
2224 CC=$ac_ct_CC
2225 fi
drh71eb93e2001-09-28 01:34:43 +00002226else
2227 CC="$ac_cv_prog_CC"
2228fi
2229
2230if test -z "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002231 if test -n "$ac_tool_prefix"; then
2232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002233set dummy ${ac_tool_prefix}cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002236if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2241else
a.rottmann84e63352003-03-24 09:42:16 +00002242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243for as_dir in $PATH
2244do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002248 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 +00002249 ac_cv_prog_CC="${ac_tool_prefix}cc"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253done
drh71eb93e2001-09-28 01:34:43 +00002254done
mlcreech94984912008-03-04 19:03:08 +00002255IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002256
2257fi
2258fi
2259CC=$ac_cv_prog_CC
2260if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002261 { echo "$as_me:$LINENO: result: $CC" >&5
2262echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002263else
mlcreech94984912008-03-04 19:03:08 +00002264 { echo "$as_me:$LINENO: result: no" >&5
2265echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002266fi
2267
mlcreech94984912008-03-04 19:03:08 +00002268
a.rottmann84e63352003-03-24 09:42:16 +00002269 fi
drh71eb93e2001-09-28 01:34:43 +00002270fi
2271if test -z "$CC"; then
2272 # Extract the first word of "cc", so it can be a program name with args.
2273set dummy cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002276if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2281else
2282 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002289 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 +00002290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291 ac_prog_rejected=yes
2292 continue
2293 fi
2294 ac_cv_prog_CC="cc"
2295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 break 2
2297 fi
2298done
drh71eb93e2001-09-28 01:34:43 +00002299done
mlcreech94984912008-03-04 19:03:08 +00002300IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002301
2302if test $ac_prog_rejected = yes; then
2303 # We found a bogon in the path, so make sure we never use it.
2304 set dummy $ac_cv_prog_CC
2305 shift
2306 if test $# != 0; then
2307 # We chose a different compiler from the bogus one.
2308 # However, it has the same basename, so the bogon will be chosen
2309 # first if we set CC to just the basename; use the full file name.
2310 shift
a.rottmann84e63352003-03-24 09:42:16 +00002311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002312 fi
2313fi
2314fi
2315fi
2316CC=$ac_cv_prog_CC
2317if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002318 { echo "$as_me:$LINENO: result: $CC" >&5
2319echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002320else
mlcreech94984912008-03-04 19:03:08 +00002321 { echo "$as_me:$LINENO: result: no" >&5
2322echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002323fi
2324
mlcreech94984912008-03-04 19:03:08 +00002325
drh71eb93e2001-09-28 01:34:43 +00002326fi
2327if test -z "$CC"; then
2328 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00002329 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002330 do
2331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002335if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2337else
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2340else
a.rottmann84e63352003-03-24 09:42:16 +00002341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002347 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 +00002348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2351 fi
2352done
drh71eb93e2001-09-28 01:34:43 +00002353done
mlcreech94984912008-03-04 19:03:08 +00002354IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002355
2356fi
2357fi
2358CC=$ac_cv_prog_CC
2359if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002360 { echo "$as_me:$LINENO: result: $CC" >&5
2361echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002362else
mlcreech94984912008-03-04 19:03:08 +00002363 { echo "$as_me:$LINENO: result: no" >&5
2364echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002365fi
2366
mlcreech94984912008-03-04 19:03:08 +00002367
drh71eb93e2001-09-28 01:34:43 +00002368 test -n "$CC" && break
2369 done
2370fi
2371if test -z "$CC"; then
2372 ac_ct_CC=$CC
mlcreech94984912008-03-04 19:03:08 +00002373 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002374do
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 if test -n "$ac_ct_CC"; then
2383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384else
a.rottmann84e63352003-03-24 09:42:16 +00002385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002391 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 +00002392 ac_cv_prog_ac_ct_CC="$ac_prog"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396done
drh71eb93e2001-09-28 01:34:43 +00002397done
mlcreech94984912008-03-04 19:03:08 +00002398IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002399
2400fi
2401fi
2402ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002404 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002406else
mlcreech94984912008-03-04 19:03:08 +00002407 { echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002409fi
2410
mlcreech94984912008-03-04 19:03:08 +00002411
drh71eb93e2001-09-28 01:34:43 +00002412 test -n "$ac_ct_CC" && break
2413done
2414
mlcreech94984912008-03-04 19:03:08 +00002415 if test "x$ac_ct_CC" = x; then
2416 CC=""
2417 else
2418 case $cross_compiling:$ac_tool_warned in
2419yes:)
2420{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421whose name does not start with the host triplet. If you think this
2422configuration is useful to you, please write to autoconf@gnu.org." >&5
2423echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424whose name does not start with the host triplet. If you think this
2425configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426ac_tool_warned=yes ;;
2427esac
2428 CC=$ac_ct_CC
2429 fi
drh71eb93e2001-09-28 01:34:43 +00002430fi
2431
2432fi
2433
a.rottmann84e63352003-03-24 09:42:16 +00002434
2435test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2436See \`config.log' for more details." >&5
2437echo "$as_me: error: no acceptable C compiler found in \$PATH
2438See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002439 { (exit 1); exit 1; }; }
2440
2441# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00002442echo "$as_me:$LINENO: checking for C compiler version" >&5
drh71eb93e2001-09-28 01:34:43 +00002443ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00002444{ (ac_try="$ac_compiler --version >&5"
2445case "(($ac_try" in
2446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2448esac
2449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002451 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002453 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002454{ (ac_try="$ac_compiler -v >&5"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002461 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002463 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00002464{ (ac_try="$ac_compiler -V >&5"
2465case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2468esac
2469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002471 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002473 (exit $ac_status); }
2474
2475cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002481
2482int
2483main ()
2484{
2485
2486 ;
2487 return 0;
2488}
2489_ACEOF
2490ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002491ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002492# Try to create an executable without -o first, disregard a.out.
2493# It will help us diagnose broken compilers, and finding out an intuition
2494# of exeext.
mlcreech94984912008-03-04 19:03:08 +00002495{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002497ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mlcreech94984912008-03-04 19:03:08 +00002498#
2499# List of possible output files, starting from the most likely.
2500# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2501# only as a last resort. b.out is created by i960 compilers.
2502ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2503#
2504# The IRIX 6 linker writes into existing files which may not be
2505# executable, retaining their permissions. Remove them first so a
2506# subsequent execution test works.
2507ac_rmfiles=
2508for ac_file in $ac_files
2509do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2512 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2513 esac
2514done
2515rm -f $ac_rmfiles
2516
2517if { (ac_try="$ac_link_default"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_link_default") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002524 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002526 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529# in a Makefile. We should not override ac_cv_exeext if it was cached,
2530# so that the user can short-circuit this test for compilers unknown to
2531# Autoconf.
2532for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002533do
2534 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002535 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002537 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002538 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002539 # We found the default executable, but exeext='' is most
2540 # certainly right.
2541 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002542 *.* )
mlcreech94984912008-03-04 19:03:08 +00002543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544 then :; else
2545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 fi
2547 # We set ac_cv_exeext here because the later test for it is not
2548 # safe: cross compilers may not add the suffix if given an `-o'
2549 # argument, so we may need to know it at that point already.
2550 # Even if this section looks crufty: it has the advantage of
2551 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002552 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002553 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002554 break;;
drh71eb93e2001-09-28 01:34:43 +00002555 esac
2556done
mlcreech94984912008-03-04 19:03:08 +00002557test "$ac_cv_exeext" = no && ac_cv_exeext=
2558
drh71eb93e2001-09-28 01:34:43 +00002559else
mlcreech94984912008-03-04 19:03:08 +00002560 ac_file=''
2561fi
2562
2563{ echo "$as_me:$LINENO: result: $ac_file" >&5
2564echo "${ECHO_T}$ac_file" >&6; }
2565if test -z "$ac_file"; then
drh71eb93e2001-09-28 01:34:43 +00002566 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002567sed 's/^/| /' conftest.$ac_ext >&5
2568
2569{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570See \`config.log' for more details." >&5
2571echo "$as_me: error: C compiler cannot create executables
2572See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002573 { (exit 77); exit 77; }; }
2574fi
2575
2576ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002577
mlcreech94984912008-03-04 19:03:08 +00002578# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002579# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002580{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002582# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583# If not cross compiling, check that we can run a simple program.
2584if test "$cross_compiling" != yes; then
2585 if { ac_try='./$ac_file'
mlcreech94984912008-03-04 19:03:08 +00002586 { (case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589esac
2590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002592 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002594 (exit $ac_status); }; }; then
2595 cross_compiling=no
2596 else
2597 if test "$cross_compiling" = maybe; then
2598 cross_compiling=yes
2599 else
a.rottmann84e63352003-03-24 09:42:16 +00002600 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2601If you meant to cross compile, use \`--host'.
2602See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002603echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002604If you meant to cross compile, use \`--host'.
2605See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002606 { (exit 1); exit 1; }; }
2607 fi
2608 fi
2609fi
mlcreech94984912008-03-04 19:03:08 +00002610{ echo "$as_me:$LINENO: result: yes" >&5
2611echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002612
a.rottmann84e63352003-03-24 09:42:16 +00002613rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002614ac_clean_files=$ac_clean_files_save
mlcreech94984912008-03-04 19:03:08 +00002615# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002616# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002617{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2618echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2619{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2620echo "${ECHO_T}$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002621
mlcreech94984912008-03-04 19:03:08 +00002622{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2623echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2624if { (ac_try="$ac_link"
2625case "(($ac_try" in
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2628esac
2629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002631 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002633 (exit $ac_status); }; then
2634 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2636# work properly (i.e., refer to `conftest.exe'), while it won't with
2637# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002638for ac_file in conftest.exe conftest conftest.*; do
2639 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002640 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002642 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002643 break;;
drh71eb93e2001-09-28 01:34:43 +00002644 * ) break;;
2645 esac
2646done
2647else
a.rottmann84e63352003-03-24 09:42:16 +00002648 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2649See \`config.log' for more details." >&5
2650echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2651See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002652 { (exit 1); exit 1; }; }
2653fi
2654
2655rm -f conftest$ac_cv_exeext
mlcreech94984912008-03-04 19:03:08 +00002656{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2657echo "${ECHO_T}$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002658
2659rm -f conftest.$ac_ext
2660EXEEXT=$ac_cv_exeext
2661ac_exeext=$EXEEXT
mlcreech94984912008-03-04 19:03:08 +00002662{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2663echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002664if test "${ac_cv_objext+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002668/* confdefs.h. */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002673
2674int
2675main ()
2676{
2677
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682rm -f conftest.o conftest.obj
mlcreech94984912008-03-04 19:03:08 +00002683if { (ac_try="$ac_compile"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002690 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002692 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002693 for ac_file in conftest.o conftest.obj conftest.*; do
2694 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002695 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
drh71eb93e2001-09-28 01:34:43 +00002697 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698 break;;
2699 esac
2700done
2701else
2702 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706See \`config.log' for more details." >&5
2707echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002709 { (exit 1); exit 1; }; }
2710fi
2711
2712rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713fi
mlcreech94984912008-03-04 19:03:08 +00002714{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715echo "${ECHO_T}$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002716OBJEXT=$ac_cv_objext
2717ac_objext=$OBJEXT
mlcreech94984912008-03-04 19:03:08 +00002718{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002720if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002724/* confdefs.h. */
2725_ACEOF
2726cat confdefs.h >>conftest.$ac_ext
2727cat >>conftest.$ac_ext <<_ACEOF
2728/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002729
2730int
2731main ()
2732{
2733#ifndef __GNUC__
2734 choke me
2735#endif
2736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002742if { (ac_try="$ac_compile"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002749 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002754 (exit $ac_status); } && {
2755 test -z "$ac_c_werror_flag" ||
2756 test ! -s conftest.err
2757 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002758 ac_compiler_gnu=yes
2759else
2760 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002761sed 's/^/| /' conftest.$ac_ext >&5
2762
mlcreech94984912008-03-04 19:03:08 +00002763 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002764fi
mlcreech94984912008-03-04 19:03:08 +00002765
2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002767ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768
2769fi
mlcreech94984912008-03-04 19:03:08 +00002770{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002772GCC=`test $ac_compiler_gnu = yes && echo yes`
2773ac_test_CFLAGS=${CFLAGS+set}
2774ac_save_CFLAGS=$CFLAGS
mlcreech94984912008-03-04 19:03:08 +00002775{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002777if test "${ac_cv_prog_cc_g+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
mlcreech94984912008-03-04 19:03:08 +00002780 ac_save_c_werror_flag=$ac_c_werror_flag
2781 ac_c_werror_flag=yes
2782 ac_cv_prog_cc_g=no
2783 CFLAGS="-g"
2784 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002790
2791int
2792main ()
2793{
2794
2795 ;
2796 return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002800if { (ac_try="$ac_compile"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002807 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002808 grep -v '^ *+' conftest.er1 >conftest.err
2809 rm -f conftest.er1
2810 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002812 (exit $ac_status); } && {
2813 test -z "$ac_c_werror_flag" ||
2814 test ! -s conftest.err
2815 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002816 ac_cv_prog_cc_g=yes
2817else
2818 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002819sed 's/^/| /' conftest.$ac_ext >&5
2820
mlcreech94984912008-03-04 19:03:08 +00002821 CFLAGS=""
2822 cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h. */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h. */
2828
2829int
2830main ()
2831{
2832
2833 ;
2834 return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext
2838if { (ac_try="$ac_compile"
2839case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_compile") 2>conftest.er1
2845 ac_status=$?
2846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } && {
2851 test -z "$ac_c_werror_flag" ||
2852 test ! -s conftest.err
2853 } && test -s conftest.$ac_objext; then
2854 :
2855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 ac_c_werror_flag=$ac_save_c_werror_flag
2860 CFLAGS="-g"
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867
2868int
2869main ()
2870{
2871
2872 ;
2873 return 0;
2874}
2875_ACEOF
2876rm -f conftest.$ac_objext
2877if { (ac_try="$ac_compile"
2878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_prog_cc_g=yes
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898
drh71eb93e2001-09-28 01:34:43 +00002899fi
mlcreech94984912008-03-04 19:03:08 +00002900
2901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002902fi
mlcreech94984912008-03-04 19:03:08 +00002903
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906
2907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 ac_c_werror_flag=$ac_save_c_werror_flag
2909fi
2910{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2911echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002912if test "$ac_test_CFLAGS" = set; then
2913 CFLAGS=$ac_save_CFLAGS
2914elif test $ac_cv_prog_cc_g = yes; then
2915 if test "$GCC" = yes; then
2916 CFLAGS="-g -O2"
2917 else
2918 CFLAGS="-g"
2919 fi
2920else
2921 if test "$GCC" = yes; then
2922 CFLAGS="-O2"
2923 else
2924 CFLAGS=
2925 fi
2926fi
mlcreech94984912008-03-04 19:03:08 +00002927{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2928echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2929if test "${ac_cv_prog_cc_c89+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00002930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
mlcreech94984912008-03-04 19:03:08 +00002932 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00002933ac_save_CC=$CC
2934cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h. */
2940#include <stdarg.h>
2941#include <stdio.h>
2942#include <sys/types.h>
2943#include <sys/stat.h>
2944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2945struct buf { int x; };
2946FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947static char *e (p, i)
2948 char **p;
2949 int i;
2950{
2951 return p[i];
2952}
2953static char *f (char * (*g) (char **, int), char **p, ...)
2954{
2955 char *s;
2956 va_list v;
2957 va_start (v,p);
2958 s = g (p, va_arg (v,int));
2959 va_end (v);
2960 return s;
2961}
a.rottmann964dbb12004-02-26 19:47:42 +00002962
2963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2964 function prototypes and stuff, but not '\xHH' hex character constants.
2965 These don't provoke an error unfortunately, instead are silently treated
mlcreech94984912008-03-04 19:03:08 +00002966 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2968 array size at least. It's necessary to write '\x00'==0 to get something
mlcreech94984912008-03-04 19:03:08 +00002969 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00002970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971
mlcreech94984912008-03-04 19:03:08 +00002972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973 inside strings and character constants. */
2974#define FOO(x) 'x'
2975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976
a.rottmann84e63352003-03-24 09:42:16 +00002977int test (int i, double x);
2978struct s1 {int (*f) (int a);};
2979struct s2 {int (*f) (double a);};
2980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981int argc;
2982char **argv;
2983int
2984main ()
2985{
2986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2987 ;
2988 return 0;
2989}
2990_ACEOF
mlcreech94984912008-03-04 19:03:08 +00002991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00002993do
2994 CC="$ac_save_CC $ac_arg"
2995 rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002996if { (ac_try="$ac_compile"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003003 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3012 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003013else
3014 echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
mlcreech94984912008-03-04 19:03:08 +00003017
a.rottmann84e63352003-03-24 09:42:16 +00003018fi
mlcreech94984912008-03-04 19:03:08 +00003019
3020rm -f core conftest.err conftest.$ac_objext
3021 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003022done
mlcreech94984912008-03-04 19:03:08 +00003023rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003024CC=$ac_save_CC
3025
3026fi
mlcreech94984912008-03-04 19:03:08 +00003027# AC_CACHE_VAL
3028case "x$ac_cv_prog_cc_c89" in
3029 x)
3030 { echo "$as_me:$LINENO: result: none needed" >&5
3031echo "${ECHO_T}none needed" >&6; } ;;
3032 xno)
3033 { echo "$as_me:$LINENO: result: unsupported" >&5
3034echo "${ECHO_T}unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003035 *)
mlcreech94984912008-03-04 19:03:08 +00003036 CC="$CC $ac_cv_prog_cc_c89"
3037 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003039esac
3040
a.rottmann84e63352003-03-24 09:42:16 +00003041
drh71eb93e2001-09-28 01:34:43 +00003042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
mlcreech94984912008-03-04 19:03:08 +00003048{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3049echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003050if test "${lt_cv_path_SED+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3052else
3053 # Loop through the user's path and test for sed and gsed.
3054# Then use that list of sed's as ones to test for truncation.
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for lt_ac_prog in sed gsed; do
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3063 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3064 fi
3065 done
3066 done
3067done
3068lt_ac_max=0
3069lt_ac_count=0
3070# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3071# along with /bin/sed that truncates output.
3072for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
vapier7f19c022007-02-17 14:46:31 +00003073 test ! -f $lt_ac_sed && continue
a.rottmann9bc8b932004-02-29 15:18:31 +00003074 cat /dev/null > conftest.in
3075 lt_ac_count=0
3076 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3077 # Check for GNU sed and select it if it is found.
3078 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3079 lt_cv_path_SED=$lt_ac_sed
3080 break
3081 fi
3082 while true; do
3083 cat conftest.in conftest.in >conftest.tmp
3084 mv conftest.tmp conftest.in
3085 cp conftest.in conftest.nl
3086 echo >>conftest.nl
3087 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3088 cmp -s conftest.out conftest.nl || break
3089 # 10000 chars as input seems more than enough
3090 test $lt_ac_count -gt 10 && break
3091 lt_ac_count=`expr $lt_ac_count + 1`
3092 if test $lt_ac_count -gt $lt_ac_max; then
3093 lt_ac_max=$lt_ac_count
3094 lt_cv_path_SED=$lt_ac_sed
3095 fi
3096 done
3097done
a.rottmann9bc8b932004-02-29 15:18:31 +00003098
a.rottmann84e63352003-03-24 09:42:16 +00003099fi
3100
vapier7f19c022007-02-17 14:46:31 +00003101SED=$lt_cv_path_SED
mlcreech94984912008-03-04 19:03:08 +00003102{ echo "$as_me:$LINENO: result: $SED" >&5
3103echo "${ECHO_T}$SED" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003104
mlcreech94984912008-03-04 19:03:08 +00003105{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3106echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3107if test "${ac_cv_path_GREP+set}" = set; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
mlcreech94984912008-03-04 19:03:08 +00003110 # Extract the first word of "grep ggrep" to use in msg output
3111if test -z "$GREP"; then
3112set dummy grep ggrep; ac_prog_name=$2
3113if test "${ac_cv_path_GREP+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116 ac_path_GREP_found=false
3117# Loop through the user's path and test for each of PROGNAME-LIST
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_prog in grep ggrep; do
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3127 # Check for GNU ac_path_GREP and select it if it is found.
3128 # Check for GNU $ac_path_GREP
3129case `"$ac_path_GREP" --version 2>&1` in
3130*GNU*)
3131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3132*)
3133 ac_count=0
3134 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3135 while :
3136 do
3137 cat "conftest.in" "conftest.in" >"conftest.tmp"
3138 mv "conftest.tmp" "conftest.in"
3139 cp "conftest.in" "conftest.nl"
3140 echo 'GREP' >> "conftest.nl"
3141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3143 ac_count=`expr $ac_count + 1`
3144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3145 # Best one so far, save it but keep looking for a better one
3146 ac_cv_path_GREP="$ac_path_GREP"
3147 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003148 fi
mlcreech94984912008-03-04 19:03:08 +00003149 # 10*(2^10) chars as input seems more than enough
3150 test $ac_count -gt 10 && break
3151 done
3152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3153esac
3154
3155
3156 $ac_path_GREP_found && break 3
3157 done
3158done
3159
3160done
3161IFS=$as_save_IFS
3162
3163
a.rottmann9bc8b932004-02-29 15:18:31 +00003164fi
mlcreech94984912008-03-04 19:03:08 +00003165
3166GREP="$ac_cv_path_GREP"
3167if test -z "$GREP"; then
3168 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3169echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3170 { (exit 1); exit 1; }; }
3171fi
3172
3173else
3174 ac_cv_path_GREP=$GREP
3175fi
3176
3177
3178fi
3179{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3180echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3181 GREP="$ac_cv_path_GREP"
3182
3183
3184{ echo "$as_me:$LINENO: checking for egrep" >&5
3185echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3186if test "${ac_cv_path_EGREP+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3190 then ac_cv_path_EGREP="$GREP -E"
3191 else
3192 # Extract the first word of "egrep" to use in msg output
3193if test -z "$EGREP"; then
3194set dummy egrep; ac_prog_name=$2
3195if test "${ac_cv_path_EGREP+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 ac_path_EGREP_found=false
3199# Loop through the user's path and test for each of PROGNAME-LIST
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_prog in egrep; do
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3209 # Check for GNU ac_path_EGREP and select it if it is found.
3210 # Check for GNU $ac_path_EGREP
3211case `"$ac_path_EGREP" --version 2>&1` in
3212*GNU*)
3213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3214*)
3215 ac_count=0
3216 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3217 while :
3218 do
3219 cat "conftest.in" "conftest.in" >"conftest.tmp"
3220 mv "conftest.tmp" "conftest.in"
3221 cp "conftest.in" "conftest.nl"
3222 echo 'EGREP' >> "conftest.nl"
3223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3225 ac_count=`expr $ac_count + 1`
3226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3227 # Best one so far, save it but keep looking for a better one
3228 ac_cv_path_EGREP="$ac_path_EGREP"
3229 ac_path_EGREP_max=$ac_count
3230 fi
3231 # 10*(2^10) chars as input seems more than enough
3232 test $ac_count -gt 10 && break
3233 done
3234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3235esac
3236
3237
3238 $ac_path_EGREP_found && break 3
3239 done
3240done
3241
3242done
3243IFS=$as_save_IFS
3244
3245
3246fi
3247
3248EGREP="$ac_cv_path_EGREP"
3249if test -z "$EGREP"; then
3250 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3251echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3252 { (exit 1); exit 1; }; }
3253fi
3254
3255else
3256 ac_cv_path_EGREP=$EGREP
3257fi
3258
3259
3260 fi
3261fi
3262{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3263echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3264 EGREP="$ac_cv_path_EGREP"
a.rottmann9bc8b932004-02-29 15:18:31 +00003265
3266
a.rottmann84e63352003-03-24 09:42:16 +00003267
mlcreech94984912008-03-04 19:03:08 +00003268# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003269if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003270 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003271else
3272 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +00003273fi
3274
drh71eb93e2001-09-28 01:34:43 +00003275ac_prog=ld
3276if test "$GCC" = yes; then
3277 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +00003278 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3279echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003280 case $host in
3281 *-*-mingw*)
3282 # gcc leaves a trailing carriage return which upsets mingw
3283 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3284 *)
3285 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286 esac
3287 case $ac_prog in
3288 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003289 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003290 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003291 # Canonicalize the pathname of ld
3292 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00003293 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003294 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003295 done
3296 test -z "$LD" && LD="$ac_prog"
3297 ;;
3298 "")
3299 # If it fails, then pretend we aren't using GCC.
3300 ac_prog=ld
3301 ;;
3302 *)
3303 # If it is relative, then search for the first ld in PATH.
3304 with_gnu_ld=unknown
3305 ;;
3306 esac
3307elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +00003308 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3309echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003310else
mlcreech94984912008-03-04 19:03:08 +00003311 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3312echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003313fi
3314if test "${lt_cv_path_LD+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003319 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003320 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003321 test -z "$ac_dir" && ac_dir=.
3322 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3323 lt_cv_path_LD="$ac_dir/$ac_prog"
3324 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003325 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003326 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003327 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3328 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003329 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003330 ;;
3331 *)
drh71eb93e2001-09-28 01:34:43 +00003332 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003333 ;;
3334 esac
drh71eb93e2001-09-28 01:34:43 +00003335 fi
3336 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003337 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003338else
3339 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3340fi
3341fi
3342
3343LD="$lt_cv_path_LD"
3344if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +00003345 { echo "$as_me:$LINENO: result: $LD" >&5
3346echo "${ECHO_T}$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003347else
mlcreech94984912008-03-04 19:03:08 +00003348 { echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003350fi
a.rottmann84e63352003-03-24 09:42:16 +00003351test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00003352echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3353 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00003354{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3355echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003356if test "${lt_cv_prog_gnu_ld+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
vapier7f19c022007-02-17 14:46:31 +00003359 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003360case `$LD -v 2>&1 </dev/null` in
3361*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003362 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003363 ;;
3364*)
drh71eb93e2001-09-28 01:34:43 +00003365 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003366 ;;
3367esac
drh71eb93e2001-09-28 01:34:43 +00003368fi
mlcreech94984912008-03-04 19:03:08 +00003369{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3370echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003371with_gnu_ld=$lt_cv_prog_gnu_ld
3372
a.rottmann84e63352003-03-24 09:42:16 +00003373
mlcreech94984912008-03-04 19:03:08 +00003374{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3375echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003376if test "${lt_cv_ld_reload_flag+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379 lt_cv_ld_reload_flag='-r'
3380fi
mlcreech94984912008-03-04 19:03:08 +00003381{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3382echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003383reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00003384case $reload_flag in
3385"" | " "*) ;;
3386*) reload_flag=" $reload_flag" ;;
3387esac
3388reload_cmds='$LD$reload_flag -o $output$reload_objs'
vapier7f19c022007-02-17 14:46:31 +00003389case $host_os in
3390 darwin*)
3391 if test "$GCC" = yes; then
3392 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3393 else
3394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395 fi
3396 ;;
3397esac
drh71eb93e2001-09-28 01:34:43 +00003398
mlcreech94984912008-03-04 19:03:08 +00003399{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3400echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003401if test "${lt_cv_path_NM+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 if test -n "$NM"; then
3405 # Let the user override the test.
3406 lt_cv_path_NM="$NM"
3407else
vapier7f19c022007-02-17 14:46:31 +00003408 lt_nm_to_check="${ac_tool_prefix}nm"
3409 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3410 lt_nm_to_check="$lt_nm_to_check nm"
3411 fi
3412 for lt_tmp_nm in $lt_nm_to_check; do
3413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3415 IFS="$lt_save_ifs"
3416 test -z "$ac_dir" && ac_dir=.
3417 tmp_nm="$ac_dir/$lt_tmp_nm"
3418 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3419 # Check to see if the nm accepts a BSD-compat flag.
3420 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3421 # nm: unknown option "B" ignored
3422 # Tru64's nm complains that /dev/null is an invalid object file
3423 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3424 */dev/null* | *'Invalid file or object type'*)
3425 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003426 break
3427 ;;
3428 *)
vapier7f19c022007-02-17 14:46:31 +00003429 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3430 */dev/null*)
3431 lt_cv_path_NM="$tmp_nm -p"
3432 break
3433 ;;
3434 *)
3435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3436 continue # so that we can try to find one that supports BSD flags
3437 ;;
3438 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003439 ;;
3440 esac
vapier7f19c022007-02-17 14:46:31 +00003441 fi
3442 done
3443 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003444 done
drh71eb93e2001-09-28 01:34:43 +00003445 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3446fi
3447fi
mlcreech94984912008-03-04 19:03:08 +00003448{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3449echo "${ECHO_T}$lt_cv_path_NM" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003450NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00003451
mlcreech94984912008-03-04 19:03:08 +00003452{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3453echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003454LN_S=$as_ln_s
3455if test "$LN_S" = "ln -s"; then
mlcreech94984912008-03-04 19:03:08 +00003456 { echo "$as_me:$LINENO: result: yes" >&5
3457echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003458else
mlcreech94984912008-03-04 19:03:08 +00003459 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3460echo "${ECHO_T}no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003461fi
3462
mlcreech94984912008-03-04 19:03:08 +00003463{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3464echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003465if test "${lt_cv_deplibs_check_method+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468 lt_cv_file_magic_cmd='$MAGIC_CMD'
3469lt_cv_file_magic_test_file=
3470lt_cv_deplibs_check_method='unknown'
3471# Need to set the preceding variable on all platforms that support
3472# interlibrary dependencies.
3473# 'none' -- dependencies not supported.
3474# `unknown' -- same as none, but documents that we really don't know.
3475# 'pass_all' -- all dependencies passed with no checks.
3476# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003477# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003478# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003479# If you have `file' or equivalent on your system and you're not sure
3480# whether `pass_all' will *always* work, you probably want this one.
3481
3482case $host_os in
3483aix4* | aix5*)
3484 lt_cv_deplibs_check_method=pass_all
3485 ;;
3486
3487beos*)
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
vapier7f19c022007-02-17 14:46:31 +00003491bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3493 lt_cv_file_magic_cmd='/usr/bin/file -L'
3494 lt_cv_file_magic_test_file=/shlib/libc.so
3495 ;;
3496
a.rottmann9bc8b932004-02-29 15:18:31 +00003497cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003498 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003499 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003500 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003501 ;;
3502
3503mingw* | pw32*)
3504 # Base MSYS/MinGW do not provide the 'file' command needed by
vapier7f19c022007-02-17 14:46:31 +00003505 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00003506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 ;;
3509
3510darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003511 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003512 ;;
3513
vapier7f19c022007-02-17 14:46:31 +00003514freebsd* | kfreebsd*-gnu | dragonfly*)
drh71eb93e2001-09-28 01:34:43 +00003515 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3516 case $host_cpu in
3517 i*86 )
3518 # Not sure whether the presence of OpenBSD here was a mistake.
3519 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003520 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 +00003521 lt_cv_file_magic_cmd=/usr/bin/file
3522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3523 ;;
3524 esac
3525 else
3526 lt_cv_deplibs_check_method=pass_all
3527 fi
3528 ;;
3529
3530gnu*)
3531 lt_cv_deplibs_check_method=pass_all
3532 ;;
3533
a.rottmann9bc8b932004-02-29 15:18:31 +00003534hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003535 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003536 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003537 ia64*)
3538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3539 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3540 ;;
3541 hppa*64*)
3542 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]'
3543 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3544 ;;
3545 *)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 ;;
3549 esac
drh71eb93e2001-09-28 01:34:43 +00003550 ;;
3551
vapier7f19c022007-02-17 14:46:31 +00003552interix3*)
3553 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3555 ;;
3556
a.rottmann84e63352003-03-24 09:42:16 +00003557irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003558 case $LD in
3559 *-32|*"-32 ") libmagic=32-bit;;
3560 *-n32|*"-n32 ") libmagic=N32;;
3561 *-64|*"-64 ") libmagic=64-bit;;
3562 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003563 esac
drh71eb93e2001-09-28 01:34:43 +00003564 lt_cv_deplibs_check_method=pass_all
3565 ;;
3566
3567# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00003568linux*)
3569 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003570 ;;
3571
vapier7f19c022007-02-17 14:46:31 +00003572netbsd*)
drh71eb93e2001-09-28 01:34:43 +00003573 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003575 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003577 fi
3578 ;;
3579
3580newos6*)
3581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3582 lt_cv_file_magic_cmd=/usr/bin/file
3583 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3584 ;;
3585
a.rottmann9bc8b932004-02-29 15:18:31 +00003586nto-qnx*)
3587 lt_cv_deplibs_check_method=unknown
3588 ;;
3589
a.rottmann84e63352003-03-24 09:42:16 +00003590openbsd*)
a.rottmann84e63352003-03-24 09:42:16 +00003591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003592 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003593 else
vapier7f19c022007-02-17 14:46:31 +00003594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003595 fi
drh71eb93e2001-09-28 01:34:43 +00003596 ;;
3597
3598osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003599 lt_cv_deplibs_check_method=pass_all
3600 ;;
3601
drh71eb93e2001-09-28 01:34:43 +00003602solaris*)
3603 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003604 ;;
3605
vapier7f19c022007-02-17 14:46:31 +00003606sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003607 case $host_vendor in
3608 motorola)
3609 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]'
3610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3611 ;;
3612 ncr)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615 sequent)
3616 lt_cv_file_magic_cmd='/bin/file'
3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3618 ;;
3619 sni)
3620 lt_cv_file_magic_cmd='/bin/file'
3621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3622 lt_cv_file_magic_test_file=/lib/libc.so
3623 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003624 siemens)
3625 lt_cv_deplibs_check_method=pass_all
3626 ;;
vapier7f19c022007-02-17 14:46:31 +00003627 pc)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
drh71eb93e2001-09-28 01:34:43 +00003630 esac
3631 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003632
vapier7f19c022007-02-17 14:46:31 +00003633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003634 lt_cv_deplibs_check_method=pass_all
3635 ;;
drh71eb93e2001-09-28 01:34:43 +00003636esac
3637
3638fi
mlcreech94984912008-03-04 19:03:08 +00003639{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3640echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003641file_magic_cmd=$lt_cv_file_magic_cmd
3642deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003643test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003644
drh71eb93e2001-09-28 01:34:43 +00003645
drh71eb93e2001-09-28 01:34:43 +00003646
drh71eb93e2001-09-28 01:34:43 +00003647
a.rottmann9bc8b932004-02-29 15:18:31 +00003648# If no C compiler was specified, use CC.
3649LTCC=${LTCC-"$CC"}
3650
vapier7f19c022007-02-17 14:46:31 +00003651# If no C compiler flags were specified, use CFLAGS.
3652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3653
a.rottmann9bc8b932004-02-29 15:18:31 +00003654# Allow CC to be a program name with arguments.
3655compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003656
drh71eb93e2001-09-28 01:34:43 +00003657
mlcreech94984912008-03-04 19:03:08 +00003658# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003659if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003660 enableval=$enable_libtool_lock;
3661fi
drh71eb93e2001-09-28 01:34:43 +00003662
a.rottmann9bc8b932004-02-29 15:18:31 +00003663test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003664
a.rottmann9bc8b932004-02-29 15:18:31 +00003665# Some flags need to be propagated to the compiler or linker for good
3666# libtool support.
3667case $host in
3668ia64-*-hpux*)
3669 # Find out which ABI we are using.
3670 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003672 (eval $ac_compile) 2>&5
3673 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003675 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003676 case `/usr/bin/file conftest.$ac_objext` in
3677 *ELF-32*)
3678 HPUX_IA64_MODE="32"
3679 ;;
3680 *ELF-64*)
3681 HPUX_IA64_MODE="64"
3682 ;;
3683 esac
3684 fi
3685 rm -rf conftest*
3686 ;;
3687*-*-irix6*)
3688 # Find out which ABI we are using.
mlcreech94984912008-03-04 19:03:08 +00003689 echo '#line 3689 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003692 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003694 (exit $ac_status); }; then
3695 if test "$lt_cv_prog_gnu_ld" = yes; then
3696 case `/usr/bin/file conftest.$ac_objext` in
3697 *32-bit*)
3698 LD="${LD-ld} -melf32bsmip"
3699 ;;
3700 *N32*)
3701 LD="${LD-ld} -melf32bmipn32"
3702 ;;
3703 *64-bit*)
3704 LD="${LD-ld} -melf64bmip"
3705 ;;
3706 esac
3707 else
3708 case `/usr/bin/file conftest.$ac_objext` in
3709 *32-bit*)
3710 LD="${LD-ld} -32"
3711 ;;
3712 *N32*)
3713 LD="${LD-ld} -n32"
3714 ;;
3715 *64-bit*)
3716 LD="${LD-ld} -64"
3717 ;;
3718 esac
3719 fi
3720 fi
3721 rm -rf conftest*
3722 ;;
drh71eb93e2001-09-28 01:34:43 +00003723
a.rottmann9bc8b932004-02-29 15:18:31 +00003724x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3725 # Find out which ABI we are using.
3726 echo 'int i;' > conftest.$ac_ext
3727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00003732 case `/usr/bin/file conftest.o` in
a.rottmann9bc8b932004-02-29 15:18:31 +00003733 *32-bit*)
3734 case $host in
3735 x86_64-*linux*)
3736 LD="${LD-ld} -m elf_i386"
3737 ;;
3738 ppc64-*linux*|powerpc64-*linux*)
3739 LD="${LD-ld} -m elf32ppclinux"
3740 ;;
3741 s390x-*linux*)
3742 LD="${LD-ld} -m elf_s390"
3743 ;;
3744 sparc64-*linux*)
3745 LD="${LD-ld} -m elf32_sparc"
3746 ;;
3747 esac
3748 ;;
3749 *64-bit*)
3750 case $host in
3751 x86_64-*linux*)
3752 LD="${LD-ld} -m elf_x86_64"
3753 ;;
3754 ppc*-*linux*|powerpc*-*linux*)
3755 LD="${LD-ld} -m elf64ppc"
3756 ;;
3757 s390*-*linux*)
3758 LD="${LD-ld} -m elf64_s390"
3759 ;;
3760 sparc*-*linux*)
3761 LD="${LD-ld} -m elf64_sparc"
3762 ;;
3763 esac
3764 ;;
3765 esac
3766 fi
3767 rm -rf conftest*
3768 ;;
drh71eb93e2001-09-28 01:34:43 +00003769
a.rottmann9bc8b932004-02-29 15:18:31 +00003770*-*-sco3.2v5*)
3771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3772 SAVE_CFLAGS="$CFLAGS"
3773 CFLAGS="$CFLAGS -belf"
mlcreech94984912008-03-04 19:03:08 +00003774 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3775echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003776if test "${lt_cv_cc_needs_belf+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 ac_ext=c
3780ac_cpp='$CPP $CPPFLAGS'
3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003784
a.rottmann9bc8b932004-02-29 15:18:31 +00003785 cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h. */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003791
a.rottmann9bc8b932004-02-29 15:18:31 +00003792int
3793main ()
drh71eb93e2001-09-28 01:34:43 +00003794{
drh71eb93e2001-09-28 01:34:43 +00003795
a.rottmann9bc8b932004-02-29 15:18:31 +00003796 ;
3797 return 0;
drh71eb93e2001-09-28 01:34:43 +00003798}
a.rottmann9bc8b932004-02-29 15:18:31 +00003799_ACEOF
3800rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00003801if { (ac_try="$ac_link"
3802case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00003808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003813 (exit $ac_status); } && {
3814 test -z "$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 } && test -s conftest$ac_exeext &&
3817 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003818 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003819else
a.rottmann9bc8b932004-02-29 15:18:31 +00003820 echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
mlcreech94984912008-03-04 19:03:08 +00003823 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003824fi
mlcreech94984912008-03-04 19:03:08 +00003825
3826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00003827 conftest$ac_exeext conftest.$ac_ext
3828 ac_ext=c
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
drh71eb93e2001-09-28 01:34:43 +00003834fi
mlcreech94984912008-03-04 19:03:08 +00003835{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839 CFLAGS="$SAVE_CFLAGS"
3840 fi
3841 ;;
vapier7f19c022007-02-17 14:46:31 +00003842sparc*-*solaris*)
3843 # Find out which ABI we are using.
3844 echo 'int i;' > conftest.$ac_ext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3846 (eval $ac_compile) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 case `/usr/bin/file conftest.o` in
3851 *64-bit*)
3852 case $lt_cv_prog_gnu_ld in
3853 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3854 *) LD="${LD-ld} -64" ;;
3855 esac
3856 ;;
3857 esac
3858 fi
3859 rm -rf conftest*
3860 ;;
3861
a.rottmann9bc8b932004-02-29 15:18:31 +00003862
3863esac
3864
3865need_locks="$enable_libtool_lock"
3866
drh71eb93e2001-09-28 01:34:43 +00003867
a.rottmann84e63352003-03-24 09:42:16 +00003868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00003873{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3874echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003875# On Suns, sometimes $CPP names a directory.
3876if test -n "$CPP" && test -d "$CPP"; then
3877 CPP=
3878fi
3879if test -z "$CPP"; then
3880 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
a.rottmann84e63352003-03-24 09:42:16 +00003883 # Double quotes because CPP needs to be expanded
3884 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3885 do
3886 ac_preproc_ok=false
3887for ac_c_preproc_warn_flag in '' yes
3888do
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901#ifdef __STDC__
3902# include <limits.h>
3903#else
3904# include <assert.h>
3905#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003906 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003907_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003908if { (ac_try="$ac_cpp conftest.$ac_ext"
3909case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912esac
3913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003924 :
3925else
3926 echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 # Broken: fails on valid input.
3930continue
3931fi
mlcreech94984912008-03-04 19:03:08 +00003932
a.rottmann84e63352003-03-24 09:42:16 +00003933rm -f conftest.err conftest.$ac_ext
3934
mlcreech94984912008-03-04 19:03:08 +00003935 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00003936 # can be detected and how.
3937 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003938/* confdefs.h. */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h. */
3943#include <ac_nonexistent.h>
3944_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003945if { (ac_try="$ac_cpp conftest.$ac_ext"
3946case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949esac
3950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003957 (exit $ac_status); } >/dev/null && {
3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003961 # Broken: success on invalid input.
3962continue
3963else
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967 # Passes both tests.
3968ac_preproc_ok=:
3969break
3970fi
mlcreech94984912008-03-04 19:03:08 +00003971
a.rottmann84e63352003-03-24 09:42:16 +00003972rm -f conftest.err conftest.$ac_ext
3973
3974done
3975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976rm -f conftest.err conftest.$ac_ext
3977if $ac_preproc_ok; then
3978 break
3979fi
3980
3981 done
3982 ac_cv_prog_CPP=$CPP
3983
3984fi
3985 CPP=$ac_cv_prog_CPP
3986else
3987 ac_cv_prog_CPP=$CPP
3988fi
mlcreech94984912008-03-04 19:03:08 +00003989{ echo "$as_me:$LINENO: result: $CPP" >&5
3990echo "${ECHO_T}$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003991ac_preproc_ok=false
3992for ac_c_preproc_warn_flag in '' yes
3993do
3994 # Use a header file that comes with gcc, so configuring glibc
3995 # with a fresh cross-compiler works.
3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 # <limits.h> exists even on freestanding compilers.
3998 # On the NeXT, cc -E runs the code through the compiler's parser,
3999 # not just through cpp. "Syntax error" is here to catch this case.
4000 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006#ifdef __STDC__
4007# include <limits.h>
4008#else
4009# include <assert.h>
4010#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004011 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004012_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004013if { (ac_try="$ac_cpp conftest.$ac_ext"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004025 (exit $ac_status); } >/dev/null && {
4026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004029 :
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 # Broken: fails on valid input.
4035continue
4036fi
mlcreech94984912008-03-04 19:03:08 +00004037
a.rottmann84e63352003-03-24 09:42:16 +00004038rm -f conftest.err conftest.$ac_ext
4039
mlcreech94984912008-03-04 19:03:08 +00004040 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00004041 # can be detected and how.
4042 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048#include <ac_nonexistent.h>
4049_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004050if { (ac_try="$ac_cpp conftest.$ac_ext"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004062 (exit $ac_status); } >/dev/null && {
4063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004066 # Broken: success on invalid input.
4067continue
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 # Passes both tests.
4073ac_preproc_ok=:
4074break
4075fi
mlcreech94984912008-03-04 19:03:08 +00004076
a.rottmann84e63352003-03-24 09:42:16 +00004077rm -f conftest.err conftest.$ac_ext
4078
4079done
4080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081rm -f conftest.err conftest.$ac_ext
4082if $ac_preproc_ok; then
4083 :
4084else
4085 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4086See \`config.log' for more details." >&5
4087echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4088See \`config.log' for more details." >&2;}
4089 { (exit 1); exit 1; }; }
4090fi
4091
4092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
mlcreech94984912008-03-04 19:03:08 +00004099{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4100echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004101if test "${ac_cv_header_stdc+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <stdlib.h>
4111#include <stdarg.h>
4112#include <string.h>
4113#include <float.h>
4114
4115int
4116main ()
4117{
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004131 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004136 (exit $ac_status); } && {
4137 test -z "$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004140 ac_cv_header_stdc=yes
4141else
4142 echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
mlcreech94984912008-03-04 19:03:08 +00004145 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00004146fi
mlcreech94984912008-03-04 19:03:08 +00004147
4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004149
4150if test $ac_cv_header_stdc = yes; then
4151 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4152 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <string.h>
4159
4160_ACEOF
4161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 $EGREP "memchr" >/dev/null 2>&1; then
4163 :
4164else
4165 ac_cv_header_stdc=no
4166fi
4167rm -f conftest*
4168
4169fi
4170
4171if test $ac_cv_header_stdc = yes; then
4172 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4173 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004174/* confdefs.h. */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h. */
4179#include <stdlib.h>
4180
4181_ACEOF
4182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 $EGREP "free" >/dev/null 2>&1; then
4184 :
4185else
4186 ac_cv_header_stdc=no
4187fi
4188rm -f conftest*
4189
4190fi
4191
4192if test $ac_cv_header_stdc = yes; then
4193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4194 if test "$cross_compiling" = yes; then
4195 :
4196else
4197 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004198/* confdefs.h. */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h. */
4203#include <ctype.h>
mlcreech94984912008-03-04 19:03:08 +00004204#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00004205#if ((' ' & 0x0FF) == 0x020)
4206# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4207# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4208#else
4209# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00004210 (('a' <= (c) && (c) <= 'i') \
4211 || ('j' <= (c) && (c) <= 'r') \
4212 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00004213# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4214#endif
4215
4216#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4217int
4218main ()
4219{
4220 int i;
4221 for (i = 0; i < 256; i++)
4222 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00004223 || toupper (i) != TOUPPER (i))
mlcreech94984912008-03-04 19:03:08 +00004224 return 2;
4225 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00004226}
4227_ACEOF
4228rm -f conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00004229if { (ac_try="$ac_link"
4230case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mlcreech94984912008-03-04 19:03:08 +00004239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 :
4249else
4250 echo "$as_me: program exited with status $ac_status" >&5
4251echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254( exit $ac_status )
4255ac_cv_header_stdc=no
4256fi
mlcreech94984912008-03-04 19:03:08 +00004257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4258fi
4259
4260
a.rottmann84e63352003-03-24 09:42:16 +00004261fi
4262fi
mlcreech94984912008-03-04 19:03:08 +00004263{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4264echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004265if test $ac_cv_header_stdc = yes; then
4266
4267cat >>confdefs.h <<\_ACEOF
4268#define STDC_HEADERS 1
4269_ACEOF
4270
4271fi
4272
4273# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00004284 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00004285do
4286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004287{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004293/* confdefs.h. */
4294_ACEOF
4295cat confdefs.h >>conftest.$ac_ext
4296cat >>conftest.$ac_ext <<_ACEOF
4297/* end confdefs.h. */
4298$ac_includes_default
4299
4300#include <$ac_header>
4301_ACEOF
4302rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004303if { (ac_try="$ac_compile"
4304case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004310 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004311 grep -v '^ *+' conftest.er1 >conftest.err
4312 rm -f conftest.er1
4313 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004315 (exit $ac_status); } && {
4316 test -z "$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004319 eval "$as_ac_Header=yes"
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
mlcreech94984912008-03-04 19:03:08 +00004324 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00004325fi
mlcreech94984912008-03-04 19:03:08 +00004326
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004328fi
mlcreech94984912008-03-04 19:03:08 +00004329ac_res=`eval echo '${'$as_ac_Header'}'`
4330 { echo "$as_me:$LINENO: result: $ac_res" >&5
4331echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004332if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335_ACEOF
4336
4337fi
4338
4339done
4340
4341
4342
4343for ac_header in dlfcn.h
4344do
4345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351fi
mlcreech94984912008-03-04 19:03:08 +00004352ac_res=`eval echo '${'$as_ac_Header'}'`
4353 { echo "$as_me:$LINENO: result: $ac_res" >&5
4354echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004355else
4356 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +00004357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004359cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365$ac_includes_default
4366#include <$ac_header>
4367_ACEOF
4368rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004369if { (ac_try="$ac_compile"
4370case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004376 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004385 ac_header_compiler=yes
4386else
4387 echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
mlcreech94984912008-03-04 19:03:08 +00004390 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +00004391fi
mlcreech94984912008-03-04 19:03:08 +00004392
4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4395echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004396
4397# Is the header present?
mlcreech94984912008-03-04 19:03:08 +00004398{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004400cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004401/* confdefs.h. */
4402_ACEOF
4403cat confdefs.h >>conftest.$ac_ext
4404cat >>conftest.$ac_ext <<_ACEOF
4405/* end confdefs.h. */
4406#include <$ac_header>
4407_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004408if { (ac_try="$ac_cpp conftest.$ac_ext"
4409case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412esac
4413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004415 ac_status=$?
4416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004420 (exit $ac_status); } >/dev/null && {
4421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4422 test ! -s conftest.err
4423 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004424 ac_header_preproc=yes
4425else
4426 echo "$as_me: failed program was:" >&5
4427sed 's/^/| /' conftest.$ac_ext >&5
4428
4429 ac_header_preproc=no
4430fi
mlcreech94984912008-03-04 19:03:08 +00004431
a.rottmann84e63352003-03-24 09:42:16 +00004432rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +00004433{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4434echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004435
4436# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00004437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4438 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00004439 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4440echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4442echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4443 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00004444 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00004445 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00004446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4450 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4451echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4452 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4453echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00004454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004456 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4457echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +00004458
a.rottmann84e63352003-03-24 09:42:16 +00004459 ;;
drh71eb93e2001-09-28 01:34:43 +00004460esac
mlcreech94984912008-03-04 19:03:08 +00004461{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +00004464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
a.rottmann964dbb12004-02-26 19:47:42 +00004466 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00004467fi
mlcreech94984912008-03-04 19:03:08 +00004468ac_res=`eval echo '${'$as_ac_Header'}'`
4469 { echo "$as_me:$LINENO: result: $ac_res" >&5
4470echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004471
4472fi
4473if test `eval echo '${'$as_ac_Header'}'` = yes; then
4474 cat >>confdefs.h <<_ACEOF
4475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4476_ACEOF
4477
4478fi
4479
drh71eb93e2001-09-28 01:34:43 +00004480done
4481
mlcreech94984912008-03-04 19:03:08 +00004482ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004483ac_cpp='$CXXCPP $CPPFLAGS'
4484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004487if test -z "$CXX"; then
4488 if test -n "$CCC"; then
4489 CXX=$CCC
4490 else
4491 if test -n "$ac_tool_prefix"; then
4492 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 +00004493 do
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004498if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
a.rottmann9bc8b932004-02-29 15:18:31 +00004501 if test -n "$CXX"; then
4502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4503else
4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505for as_dir in $PATH
4506do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004510 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 +00004511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516done
mlcreech94984912008-03-04 19:03:08 +00004517IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004518
drh71eb93e2001-09-28 01:34:43 +00004519fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004520fi
4521CXX=$ac_cv_prog_CXX
4522if test -n "$CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004523 { echo "$as_me:$LINENO: result: $CXX" >&5
4524echo "${ECHO_T}$CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004525else
mlcreech94984912008-03-04 19:03:08 +00004526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004528fi
4529
mlcreech94984912008-03-04 19:03:08 +00004530
a.rottmann9bc8b932004-02-29 15:18:31 +00004531 test -n "$CXX" && break
4532 done
4533fi
4534if test -z "$CXX"; then
4535 ac_ct_CXX=$CXX
mlcreech94984912008-03-04 19:03:08 +00004536 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 +00004537do
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004542if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
a.rottmann9bc8b932004-02-29 15:18:31 +00004545 if test -n "$ac_ct_CXX"; then
4546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004554 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 +00004555 ac_cv_prog_ac_ct_CXX="$ac_prog"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
mlcreech94984912008-03-04 19:03:08 +00004561IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004562
drh71eb93e2001-09-28 01:34:43 +00004563fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004564fi
4565ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4566if test -n "$ac_ct_CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004567 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4568echo "${ECHO_T}$ac_ct_CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004569else
mlcreech94984912008-03-04 19:03:08 +00004570 { echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004572fi
4573
mlcreech94984912008-03-04 19:03:08 +00004574
a.rottmann9bc8b932004-02-29 15:18:31 +00004575 test -n "$ac_ct_CXX" && break
4576done
a.rottmann9bc8b932004-02-29 15:18:31 +00004577
mlcreech94984912008-03-04 19:03:08 +00004578 if test "x$ac_ct_CXX" = x; then
4579 CXX="g++"
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582yes:)
4583{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4584whose name does not start with the host triplet. If you think this
4585configuration is useful to you, please write to autoconf@gnu.org." >&5
4586echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4587whose name does not start with the host triplet. If you think this
4588configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4589ac_tool_warned=yes ;;
4590esac
4591 CXX=$ac_ct_CXX
4592 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004593fi
4594
mlcreech94984912008-03-04 19:03:08 +00004595 fi
4596fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004597# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00004598echo "$as_me:$LINENO: checking for C++ compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004599ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00004600{ (ac_try="$ac_compiler --version >&5"
4601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
4605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004610{ (ac_try="$ac_compiler -v >&5"
4611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
4615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00004620{ (ac_try="$ac_compiler -V >&5"
4621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4626 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }
4630
mlcreech94984912008-03-04 19:03:08 +00004631{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4632echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004633if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635else
4636 cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
4642
4643int
4644main ()
4645{
4646#ifndef __GNUC__
4647 choke me
4648#endif
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004655if { (ac_try="$ac_compile"
4656case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004662 ac_status=$?
4663 grep -v '^ *+' conftest.er1 >conftest.err
4664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004667 (exit $ac_status); } && {
4668 test -z "$ac_cxx_werror_flag" ||
4669 test ! -s conftest.err
4670 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004671 ac_compiler_gnu=yes
4672else
4673 echo "$as_me: failed program was:" >&5
4674sed 's/^/| /' conftest.$ac_ext >&5
4675
mlcreech94984912008-03-04 19:03:08 +00004676 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004677fi
mlcreech94984912008-03-04 19:03:08 +00004678
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004680ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4681
4682fi
mlcreech94984912008-03-04 19:03:08 +00004683{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4684echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004685GXX=`test $ac_compiler_gnu = yes && echo yes`
4686ac_test_CXXFLAGS=${CXXFLAGS+set}
4687ac_save_CXXFLAGS=$CXXFLAGS
mlcreech94984912008-03-04 19:03:08 +00004688{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4689echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004690if test "${ac_cv_prog_cxx_g+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4692else
mlcreech94984912008-03-04 19:03:08 +00004693 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4694 ac_cxx_werror_flag=yes
4695 ac_cv_prog_cxx_g=no
4696 CXXFLAGS="-g"
4697 cat >conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00004698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
4703
4704int
4705main ()
4706{
4707
4708 ;
4709 return 0;
4710}
4711_ACEOF
4712rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004713if { (ac_try="$ac_compile"
4714case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717esac
4718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004720 ac_status=$?
4721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004725 (exit $ac_status); } && {
4726 test -z "$ac_cxx_werror_flag" ||
4727 test ! -s conftest.err
4728 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004729 ac_cv_prog_cxx_g=yes
4730else
4731 echo "$as_me: failed program was:" >&5
4732sed 's/^/| /' conftest.$ac_ext >&5
4733
mlcreech94984912008-03-04 19:03:08 +00004734 CXXFLAGS=""
4735 cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741
4742int
4743main ()
4744{
4745
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750rm -f conftest.$ac_objext
4751if { (ac_try="$ac_compile"
4752case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755esac
4756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_cxx_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 :
4768else
4769 echo "$as_me: failed program was:" >&5
4770sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 CXXFLAGS="-g"
4774 cat >conftest.$ac_ext <<_ACEOF
4775/* confdefs.h. */
4776_ACEOF
4777cat confdefs.h >>conftest.$ac_ext
4778cat >>conftest.$ac_ext <<_ACEOF
4779/* end confdefs.h. */
4780
4781int
4782main ()
4783{
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext
4790if { (ac_try="$ac_compile"
4791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_cxx_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_prog_cxx_g=yes
4807else
4808 echo "$as_me: failed program was:" >&5
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811
a.rottmann9bc8b932004-02-29 15:18:31 +00004812fi
mlcreech94984912008-03-04 19:03:08 +00004813
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004815fi
mlcreech94984912008-03-04 19:03:08 +00004816
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4822fi
4823{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4824echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004825if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4829 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004830 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004831 CXXFLAGS="-g"
4832 fi
4833else
4834 if test "$GXX" = yes; then
4835 CXXFLAGS="-O2"
4836 else
4837 CXXFLAGS=
4838 fi
4839fi
mlcreech94984912008-03-04 19:03:08 +00004840ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004841ac_cpp='$CXXCPP $CPPFLAGS'
4842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4845
vapier7f19c022007-02-17 14:46:31 +00004846
4847
4848if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4849 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4850 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00004851 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004852ac_cpp='$CXXCPP $CPPFLAGS'
4853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004856{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4857echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004858if test -z "$CXXCPP"; then
4859 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4860 echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862 # Double quotes because CXXCPP needs to be expanded
4863 for CXXCPP in "$CXX -E" "/lib/cpp"
4864 do
4865 ac_preproc_ok=false
4866for ac_cxx_preproc_warn_flag in '' yes
4867do
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h. */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h. */
4880#ifdef __STDC__
4881# include <limits.h>
4882#else
4883# include <assert.h>
4884#endif
4885 Syntax error
4886_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004887if { (ac_try="$ac_cpp conftest.$ac_ext"
4888case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891esac
4892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004903 :
4904else
4905 echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 # Broken: fails on valid input.
4909continue
4910fi
mlcreech94984912008-03-04 19:03:08 +00004911
a.rottmann9bc8b932004-02-29 15:18:31 +00004912rm -f conftest.err conftest.$ac_ext
4913
mlcreech94984912008-03-04 19:03:08 +00004914 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004915 # can be detected and how.
4916 cat >conftest.$ac_ext <<_ACEOF
4917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922#include <ac_nonexistent.h>
4923_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004924if { (ac_try="$ac_cpp conftest.$ac_ext"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004936 (exit $ac_status); } >/dev/null && {
4937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4938 test ! -s conftest.err
4939 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004940 # Broken: success on invalid input.
4941continue
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 # Passes both tests.
4947ac_preproc_ok=:
4948break
4949fi
mlcreech94984912008-03-04 19:03:08 +00004950
a.rottmann9bc8b932004-02-29 15:18:31 +00004951rm -f conftest.err conftest.$ac_ext
4952
4953done
4954# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955rm -f conftest.err conftest.$ac_ext
4956if $ac_preproc_ok; then
4957 break
4958fi
4959
4960 done
4961 ac_cv_prog_CXXCPP=$CXXCPP
4962
4963fi
4964 CXXCPP=$ac_cv_prog_CXXCPP
4965else
4966 ac_cv_prog_CXXCPP=$CXXCPP
4967fi
mlcreech94984912008-03-04 19:03:08 +00004968{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4969echo "${ECHO_T}$CXXCPP" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004970ac_preproc_ok=false
4971for ac_cxx_preproc_warn_flag in '' yes
4972do
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#ifdef __STDC__
4986# include <limits.h>
4987#else
4988# include <assert.h>
4989#endif
4990 Syntax error
4991_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004992if { (ac_try="$ac_cpp conftest.$ac_ext"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5006 test ! -s conftest.err
5007 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005008 :
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Broken: fails on valid input.
5014continue
5015fi
mlcreech94984912008-03-04 19:03:08 +00005016
a.rottmann9bc8b932004-02-29 15:18:31 +00005017rm -f conftest.err conftest.$ac_ext
5018
mlcreech94984912008-03-04 19:03:08 +00005019 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00005020 # can be detected and how.
5021 cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
5027#include <ac_nonexistent.h>
5028_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005029if { (ac_try="$ac_cpp conftest.$ac_ext"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005041 (exit $ac_status); } >/dev/null && {
5042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5043 test ! -s conftest.err
5044 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005045 # Broken: success on invalid input.
5046continue
5047else
5048 echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 # Passes both tests.
5052ac_preproc_ok=:
5053break
5054fi
mlcreech94984912008-03-04 19:03:08 +00005055
a.rottmann9bc8b932004-02-29 15:18:31 +00005056rm -f conftest.err conftest.$ac_ext
5057
5058done
5059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5060rm -f conftest.err conftest.$ac_ext
5061if $ac_preproc_ok; then
5062 :
5063else
5064 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5065See \`config.log' for more details." >&5
5066echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5067See \`config.log' for more details." >&2;}
5068 { (exit 1); exit 1; }; }
5069fi
5070
mlcreech94984912008-03-04 19:03:08 +00005071ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00005072ac_cpp='$CXXCPP $CPPFLAGS'
5073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5076
vapier7f19c022007-02-17 14:46:31 +00005077fi
5078
a.rottmann9bc8b932004-02-29 15:18:31 +00005079
5080ac_ext=f
5081ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5082ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5084if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00005085 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 +00005086 do
5087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005091if test "${ac_cv_prog_F77+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 if test -n "$F77"; then
5095 ac_cv_prog_F77="$F77" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005103 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 +00005104 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108done
5109done
mlcreech94984912008-03-04 19:03:08 +00005110IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005111
5112fi
5113fi
5114F77=$ac_cv_prog_F77
5115if test -n "$F77"; then
mlcreech94984912008-03-04 19:03:08 +00005116 { echo "$as_me:$LINENO: result: $F77" >&5
5117echo "${ECHO_T}$F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005118else
mlcreech94984912008-03-04 19:03:08 +00005119 { echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005121fi
5122
mlcreech94984912008-03-04 19:03:08 +00005123
a.rottmann9bc8b932004-02-29 15:18:31 +00005124 test -n "$F77" && break
5125 done
5126fi
5127if test -z "$F77"; then
5128 ac_ct_F77=$F77
mlcreech94984912008-03-04 19:03:08 +00005129 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 +00005130do
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005135if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138 if test -n "$ac_ct_F77"; then
5139 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005147 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 +00005148 ac_cv_prog_ac_ct_F77="$ac_prog"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
mlcreech94984912008-03-04 19:03:08 +00005154IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005155
5156fi
5157fi
5158ac_ct_F77=$ac_cv_prog_ac_ct_F77
5159if test -n "$ac_ct_F77"; then
mlcreech94984912008-03-04 19:03:08 +00005160 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5161echo "${ECHO_T}$ac_ct_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005162else
mlcreech94984912008-03-04 19:03:08 +00005163 { echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005165fi
5166
mlcreech94984912008-03-04 19:03:08 +00005167
a.rottmann9bc8b932004-02-29 15:18:31 +00005168 test -n "$ac_ct_F77" && break
5169done
5170
mlcreech94984912008-03-04 19:03:08 +00005171 if test "x$ac_ct_F77" = x; then
5172 F77=""
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175yes:)
5176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177whose name does not start with the host triplet. If you think this
5178configuration is useful to you, please write to autoconf@gnu.org." >&5
5179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180whose name does not start with the host triplet. If you think this
5181configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182ac_tool_warned=yes ;;
5183esac
5184 F77=$ac_ct_F77
5185 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005186fi
5187
5188
5189# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00005190echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005191ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00005192{ (ac_try="$ac_compiler --version >&5"
5193case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196esac
5197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_compiler --version >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005202{ (ac_try="$ac_compiler -v >&5"
5203case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206esac
5207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_compiler -v >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }
mlcreech94984912008-03-04 19:03:08 +00005212{ (ac_try="$ac_compiler -V >&5"
5213case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5216esac
5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }
5222rm -f a.out
5223
5224# If we don't use `.F' as extension, the preprocessor is not run on the
5225# input file. (Note that this only needs to work for GNU compilers.)
5226ac_save_ext=$ac_ext
5227ac_ext=F
mlcreech94984912008-03-04 19:03:08 +00005228{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5229echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005230if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5232else
5233 cat >conftest.$ac_ext <<_ACEOF
5234 program main
5235#ifndef __GNUC__
5236 choke me
5237#endif
5238
5239 end
5240_ACEOF
5241rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005242if { (ac_try="$ac_compile"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005254 (exit $ac_status); } && {
5255 test -z "$ac_f77_werror_flag" ||
5256 test ! -s conftest.err
5257 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005258 ac_compiler_gnu=yes
5259else
5260 echo "$as_me: failed program was:" >&5
5261sed 's/^/| /' conftest.$ac_ext >&5
5262
mlcreech94984912008-03-04 19:03:08 +00005263 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005264fi
mlcreech94984912008-03-04 19:03:08 +00005265
5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005267ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5268
5269fi
mlcreech94984912008-03-04 19:03:08 +00005270{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5271echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005272ac_ext=$ac_save_ext
5273ac_test_FFLAGS=${FFLAGS+set}
5274ac_save_FFLAGS=$FFLAGS
5275FFLAGS=
mlcreech94984912008-03-04 19:03:08 +00005276{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5277echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005278if test "${ac_cv_prog_f77_g+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281 FFLAGS=-g
5282cat >conftest.$ac_ext <<_ACEOF
5283 program main
5284
5285 end
5286_ACEOF
5287rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005288if { (ac_try="$ac_compile"
5289case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292esac
5293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005300 (exit $ac_status); } && {
5301 test -z "$ac_f77_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005304 ac_cv_prog_f77_g=yes
5305else
5306 echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
mlcreech94984912008-03-04 19:03:08 +00005309 ac_cv_prog_f77_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005310fi
mlcreech94984912008-03-04 19:03:08 +00005311
5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005313
5314fi
mlcreech94984912008-03-04 19:03:08 +00005315{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5316echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005317if test "$ac_test_FFLAGS" = set; then
5318 FFLAGS=$ac_save_FFLAGS
5319elif test $ac_cv_prog_f77_g = yes; then
5320 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5321 FFLAGS="-g -O2"
5322 else
5323 FFLAGS="-g"
5324 fi
5325else
5326 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5327 FFLAGS="-O2"
5328 else
5329 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00005330 fi
5331fi
5332
a.rottmann9bc8b932004-02-29 15:18:31 +00005333G77=`test $ac_compiler_gnu = yes && echo yes`
5334ac_ext=c
5335ac_cpp='$CPP $CPPFLAGS'
5336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340
5341
5342# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5343
5344# find the maximum length of command line arguments
mlcreech94984912008-03-04 19:03:08 +00005345{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5346echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005347if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 i=0
vapier7f19c022007-02-17 14:46:31 +00005351 teststring="ABCD"
a.rottmann9bc8b932004-02-29 15:18:31 +00005352
5353 case $build_os in
5354 msdosdjgpp*)
5355 # On DJGPP, this test can blow up pretty badly due to problems in libc
5356 # (any single argument exceeding 2000 bytes causes a buffer overrun
5357 # during glob expansion). Even if it were fixed, the result of this
5358 # check would be larger than it should be.
5359 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5360 ;;
5361
5362 gnu*)
5363 # Under GNU Hurd, this test is not required because there is
5364 # no limit to the length of command line arguments.
5365 # Libtool will interpret -1 as no limit whatsoever
5366 lt_cv_sys_max_cmd_len=-1;
5367 ;;
5368
5369 cygwin* | mingw*)
5370 # On Win9x/ME, this test blows up -- it succeeds, but takes
5371 # about 5 minutes as the teststring grows exponentially.
5372 # Worse, since 9x/ME are not pre-emptively multitasking,
5373 # you end up with a "frozen" computer, even though with patience
5374 # the test eventually succeeds (with a max line length of 256k).
5375 # Instead, let's just punt: use the minimum linelength reported by
5376 # all of the supported platforms: 8192 (on NT/2K/XP).
5377 lt_cv_sys_max_cmd_len=8192;
5378 ;;
5379
5380 amigaos*)
5381 # On AmigaOS with pdksh, this test takes hours, literally.
5382 # So we just punt and use a minimum line length of 8192.
5383 lt_cv_sys_max_cmd_len=8192;
5384 ;;
5385
vapier7f19c022007-02-17 14:46:31 +00005386 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5387 # This has been around since 386BSD, at least. Likely further.
5388 if test -x /sbin/sysctl; then
5389 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5390 elif test -x /usr/sbin/sysctl; then
5391 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5392 else
5393 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5394 fi
5395 # And add a safety zone
5396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5398 ;;
5399
5400 interix*)
5401 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5402 lt_cv_sys_max_cmd_len=196608
5403 ;;
5404
5405 osf*)
5406 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5407 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5408 # nice to cause kernel panics so lets avoid the loop below.
5409 # First set a reasonable default.
5410 lt_cv_sys_max_cmd_len=16384
5411 #
5412 if test -x /sbin/sysconfig; then
5413 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5414 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5415 esac
5416 fi
5417 ;;
5418 sco3.2v5*)
5419 lt_cv_sys_max_cmd_len=102400
5420 ;;
5421 sysv5* | sco5v6* | sysv4.2uw2*)
5422 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5423 if test -n "$kargmax"; then
5424 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5425 else
5426 lt_cv_sys_max_cmd_len=32768
5427 fi
5428 ;;
5429 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005430 # If test is not a shell built-in, we'll probably end up computing a
5431 # maximum length that is only half of the actual maximum length, but
5432 # we can't tell.
vapier7f19c022007-02-17 14:46:31 +00005433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5434 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5435 = "XX$teststring") >/dev/null 2>&1 &&
5436 new_result=`expr "X$teststring" : ".*" 2>&1` &&
a.rottmann9bc8b932004-02-29 15:18:31 +00005437 lt_cv_sys_max_cmd_len=$new_result &&
5438 test $i != 17 # 1/2 MB should be enough
5439 do
5440 i=`expr $i + 1`
vapier7f19c022007-02-17 14:46:31 +00005441 teststring=$teststring$teststring
a.rottmann9bc8b932004-02-29 15:18:31 +00005442 done
vapier7f19c022007-02-17 14:46:31 +00005443 teststring=
a.rottmann9bc8b932004-02-29 15:18:31 +00005444 # Add a significant safety factor because C++ compilers can tack on massive
5445 # amounts of additional arguments before passing them to the linker.
5446 # It appears as though 1/2 is a usable value.
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5448 ;;
5449 esac
5450
5451fi
5452
5453if test -n $lt_cv_sys_max_cmd_len ; then
mlcreech94984912008-03-04 19:03:08 +00005454 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5455echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005456else
mlcreech94984912008-03-04 19:03:08 +00005457 { echo "$as_me:$LINENO: result: none" >&5
5458echo "${ECHO_T}none" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005459fi
5460
5461
5462
5463
5464# Check for command to grab the raw symbol name followed by C symbol from nm.
mlcreech94984912008-03-04 19:03:08 +00005465{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5466echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005467if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470
5471# These are sane defaults that work on at least a few old systems.
5472# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5473
5474# Character class describing NM global symbol codes.
5475symcode='[BCDEGRST]'
5476
5477# Regexp to match symbols that can be accessed directly from C.
5478sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5479
a.rottmann9bc8b932004-02-29 15:18:31 +00005480# Transform an extracted symbol line into a proper C declaration
5481lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5482
5483# Transform an extracted symbol line into symbol name and symbol address
5484lt_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'"
5485
5486# Define system-specific variables.
5487case $host_os in
5488aix*)
5489 symcode='[BCDT]'
5490 ;;
5491cygwin* | mingw* | pw32*)
5492 symcode='[ABCDGISTW]'
5493 ;;
5494hpux*) # Its linker distinguishes data from code symbols
5495 if test "$host_cpu" = ia64; then
5496 symcode='[ABCDEGRST]'
5497 fi
5498 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5499 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'"
5500 ;;
vapier7f19c022007-02-17 14:46:31 +00005501linux*)
5502 if test "$host_cpu" = ia64; then
5503 symcode='[ABCDGIRSTW]'
5504 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5505 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'"
5506 fi
5507 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005508irix* | nonstopux*)
5509 symcode='[BCDEGRST]'
5510 ;;
5511osf*)
5512 symcode='[BCDEGQRST]'
5513 ;;
vapier7f19c022007-02-17 14:46:31 +00005514solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005515 symcode='[BDRT]'
5516 ;;
vapier7f19c022007-02-17 14:46:31 +00005517sco3.2v5*)
5518 symcode='[DT]'
5519 ;;
5520sysv4.2uw2*)
5521 symcode='[DT]'
5522 ;;
5523sysv5* | sco5v6* | unixware* | OpenUNIX*)
5524 symcode='[ABDT]'
5525 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005526sysv4)
5527 symcode='[DFNSTU]'
5528 ;;
5529esac
5530
5531# Handle CRLF in mingw tool chain
5532opt_cr=
5533case $build_os in
5534mingw*)
5535 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5536 ;;
5537esac
5538
5539# If we're using GNU nm, then use its standard symbol codes.
5540case `$NM -V 2>&1` in
5541*GNU* | *'with BFD'*)
5542 symcode='[ABCDGIRSTW]' ;;
5543esac
5544
5545# Try without a prefix undercore, then with it.
5546for ac_symprfx in "" "_"; do
5547
vapier7f19c022007-02-17 14:46:31 +00005548 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5549 symxfrm="\\1 $ac_symprfx\\2 \\2"
5550
a.rottmann9bc8b932004-02-29 15:18:31 +00005551 # Write the raw and C identifiers.
vapier7f19c022007-02-17 14:46:31 +00005552 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 +00005553
5554 # Check to see that the pipe works correctly.
5555 pipe_works=no
5556
5557 rm -f conftest*
5558 cat > conftest.$ac_ext <<EOF
5559#ifdef __cplusplus
5560extern "C" {
5561#endif
5562char nm_test_var;
5563void nm_test_func(){}
5564#ifdef __cplusplus
5565}
5566#endif
5567int main(){nm_test_var='a';nm_test_func();return(0);}
5568EOF
5569
5570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5571 (eval $ac_compile) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; then
5575 # Now try to grab the symbols.
5576 nlist=conftest.nm
5577 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && test -s "$nlist"; then
5582 # Try sorting and uniquifying the output.
5583 if sort "$nlist" | uniq > "$nlist"T; then
5584 mv -f "$nlist"T "$nlist"
5585 else
5586 rm -f "$nlist"T
5587 fi
5588
5589 # Make sure that we snagged all the symbols we need.
5590 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5591 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5592 cat <<EOF > conftest.$ac_ext
5593#ifdef __cplusplus
5594extern "C" {
5595#endif
5596
5597EOF
5598 # Now generate the symbol file.
5599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5600
5601 cat <<EOF >> conftest.$ac_ext
5602#if defined (__STDC__) && __STDC__
5603# define lt_ptr_t void *
5604#else
5605# define lt_ptr_t char *
5606# define const
5607#endif
5608
5609/* The mapping between symbol names and symbols. */
5610const struct {
5611 const char *name;
5612 lt_ptr_t address;
5613}
5614lt_preloaded_symbols[] =
5615{
5616EOF
5617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5618 cat <<\EOF >> conftest.$ac_ext
5619 {0, (lt_ptr_t) 0}
5620};
5621
5622#ifdef __cplusplus
5623}
5624#endif
5625EOF
5626 # Now try linking the two files.
5627 mv conftest.$ac_objext conftstm.$ac_objext
5628 lt_save_LIBS="$LIBS"
5629 lt_save_CFLAGS="$CFLAGS"
5630 LIBS="conftstm.$ac_objext"
5631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5633 (eval $ac_link) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5637 pipe_works=yes
5638 fi
5639 LIBS="$lt_save_LIBS"
5640 CFLAGS="$lt_save_CFLAGS"
5641 else
5642 echo "cannot find nm_test_func in $nlist" >&5
5643 fi
5644 else
5645 echo "cannot find nm_test_var in $nlist" >&5
5646 fi
5647 else
5648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5649 fi
5650 else
5651 echo "$progname: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5653 fi
5654 rm -f conftest* conftst*
5655
5656 # Do not use the global_symbol_pipe unless it works.
5657 if test "$pipe_works" = yes; then
5658 break
5659 else
5660 lt_cv_sys_global_symbol_pipe=
5661 fi
5662done
5663
5664fi
5665
5666if test -z "$lt_cv_sys_global_symbol_pipe"; then
5667 lt_cv_sys_global_symbol_to_cdecl=
5668fi
5669if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mlcreech94984912008-03-04 19:03:08 +00005670 { echo "$as_me:$LINENO: result: failed" >&5
5671echo "${ECHO_T}failed" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005672else
mlcreech94984912008-03-04 19:03:08 +00005673 { echo "$as_me:$LINENO: result: ok" >&5
5674echo "${ECHO_T}ok" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005675fi
5676
mlcreech94984912008-03-04 19:03:08 +00005677{ echo "$as_me:$LINENO: checking for objdir" >&5
5678echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005679if test "${lt_cv_objdir+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682 rm -f .libs 2>/dev/null
5683mkdir .libs 2>/dev/null
5684if test -d .libs; then
5685 lt_cv_objdir=.libs
5686else
5687 # MS-DOS does not allow filenames that begin with a dot.
5688 lt_cv_objdir=_libs
5689fi
5690rmdir .libs 2>/dev/null
5691fi
mlcreech94984912008-03-04 19:03:08 +00005692{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5693echo "${ECHO_T}$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005694objdir=$lt_cv_objdir
5695
5696
5697
5698
5699
5700case $host_os in
5701aix3*)
5702 # AIX sometimes has problems with the GCC collect2 program. For some
5703 # reason, if we set the COLLECT_NAMES environment variable, the problems
5704 # vanish in a puff of smoke.
5705 if test "X${COLLECT_NAMES+set}" != Xset; then
5706 COLLECT_NAMES=
5707 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005708 fi
5709 ;;
5710esac
5711
a.rottmann9bc8b932004-02-29 15:18:31 +00005712# Sed substitution that helps us do robust quoting. It backslashifies
5713# metacharacters that are still active within double-quoted strings.
vapier7f19c022007-02-17 14:46:31 +00005714Xsed='sed -e 1s/^X//'
a.rottmann9bc8b932004-02-29 15:18:31 +00005715sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5716
5717# Same as above, but do not quote variable references.
5718double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5719
5720# Sed substitution to delay expansion of an escaped shell variable in a
5721# double_quote_subst'ed string.
5722delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5723
5724# Sed substitution to avoid accidental globbing in evaled expressions
5725no_glob_subst='s/\*/\\\*/g'
5726
5727# Constants:
5728rm="rm -f"
5729
5730# Global variables:
5731default_ofile=libtool
5732can_build_shared=yes
5733
vapier7f19c022007-02-17 14:46:31 +00005734# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005735# which needs '.lib').
5736libext=a
5737ltmain="$ac_aux_dir/ltmain.sh"
5738ofile="$default_ofile"
5739with_gnu_ld="$lt_cv_prog_gnu_ld"
5740
5741if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5743set dummy ${ac_tool_prefix}ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005746if test "${ac_cv_prog_AR+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 if test -n "$AR"; then
5750 ac_cv_prog_AR="$AR" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005758 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 +00005759 ac_cv_prog_AR="${ac_tool_prefix}ar"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764done
mlcreech94984912008-03-04 19:03:08 +00005765IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005766
5767fi
5768fi
5769AR=$ac_cv_prog_AR
5770if test -n "$AR"; then
mlcreech94984912008-03-04 19:03:08 +00005771 { echo "$as_me:$LINENO: result: $AR" >&5
5772echo "${ECHO_T}$AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005773else
mlcreech94984912008-03-04 19:03:08 +00005774 { echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005776fi
5777
mlcreech94984912008-03-04 19:03:08 +00005778
a.rottmann9bc8b932004-02-29 15:18:31 +00005779fi
5780if test -z "$ac_cv_prog_AR"; then
5781 ac_ct_AR=$AR
5782 # Extract the first word of "ar", so it can be a program name with args.
5783set dummy ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005786if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789 if test -n "$ac_ct_AR"; then
5790 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5791else
5792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005798 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 +00005799 ac_cv_prog_ac_ct_AR="ar"
5800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 break 2
5802 fi
5803done
5804done
mlcreech94984912008-03-04 19:03:08 +00005805IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005806
a.rottmann9bc8b932004-02-29 15:18:31 +00005807fi
5808fi
5809ac_ct_AR=$ac_cv_prog_ac_ct_AR
5810if test -n "$ac_ct_AR"; then
mlcreech94984912008-03-04 19:03:08 +00005811 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5812echo "${ECHO_T}$ac_ct_AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005813else
mlcreech94984912008-03-04 19:03:08 +00005814 { echo "$as_me:$LINENO: result: no" >&5
5815echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005816fi
5817
mlcreech94984912008-03-04 19:03:08 +00005818 if test "x$ac_ct_AR" = x; then
5819 AR="false"
5820 else
5821 case $cross_compiling:$ac_tool_warned in
5822yes:)
5823{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5824whose name does not start with the host triplet. If you think this
5825configuration is useful to you, please write to autoconf@gnu.org." >&5
5826echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5827whose name does not start with the host triplet. If you think this
5828configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5829ac_tool_warned=yes ;;
5830esac
5831 AR=$ac_ct_AR
5832 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005833else
5834 AR="$ac_cv_prog_AR"
5835fi
5836
a.rottmann84e63352003-03-24 09:42:16 +00005837if test -n "$ac_tool_prefix"; then
5838 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5839set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005842if test "${ac_cv_prog_RANLIB+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844else
5845 if test -n "$RANLIB"; then
5846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5847else
5848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849for as_dir in $PATH
5850do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005854 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 +00005855 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859done
5860done
mlcreech94984912008-03-04 19:03:08 +00005861IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005862
5863fi
5864fi
5865RANLIB=$ac_cv_prog_RANLIB
5866if test -n "$RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005867 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5868echo "${ECHO_T}$RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005869else
mlcreech94984912008-03-04 19:03:08 +00005870 { echo "$as_me:$LINENO: result: no" >&5
5871echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005872fi
5873
mlcreech94984912008-03-04 19:03:08 +00005874
a.rottmann84e63352003-03-24 09:42:16 +00005875fi
5876if test -z "$ac_cv_prog_RANLIB"; then
5877 ac_ct_RANLIB=$RANLIB
5878 # Extract the first word of "ranlib", so it can be a program name with args.
5879set dummy ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005882if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 if test -n "$ac_ct_RANLIB"; then
5886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887else
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005894 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 +00005895 ac_cv_prog_ac_ct_RANLIB="ranlib"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5898 fi
5899done
5900done
mlcreech94984912008-03-04 19:03:08 +00005901IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005902
a.rottmann84e63352003-03-24 09:42:16 +00005903fi
5904fi
5905ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906if test -n "$ac_ct_RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005907 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005909else
mlcreech94984912008-03-04 19:03:08 +00005910 { echo "$as_me:$LINENO: result: no" >&5
5911echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005912fi
5913
mlcreech94984912008-03-04 19:03:08 +00005914 if test "x$ac_ct_RANLIB" = x; then
5915 RANLIB=":"
5916 else
5917 case $cross_compiling:$ac_tool_warned in
5918yes:)
5919{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5920whose name does not start with the host triplet. If you think this
5921configuration is useful to you, please write to autoconf@gnu.org." >&5
5922echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5923whose name does not start with the host triplet. If you think this
5924configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5925ac_tool_warned=yes ;;
5926esac
5927 RANLIB=$ac_ct_RANLIB
5928 fi
a.rottmann84e63352003-03-24 09:42:16 +00005929else
5930 RANLIB="$ac_cv_prog_RANLIB"
5931fi
5932
5933if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5935set dummy ${ac_tool_prefix}strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005936{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005938if test "${ac_cv_prog_STRIP+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5940else
5941 if test -n "$STRIP"; then
5942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005950 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 +00005951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956done
mlcreech94984912008-03-04 19:03:08 +00005957IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005958
5959fi
5960fi
5961STRIP=$ac_cv_prog_STRIP
5962if test -n "$STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00005963 { echo "$as_me:$LINENO: result: $STRIP" >&5
5964echo "${ECHO_T}$STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005965else
mlcreech94984912008-03-04 19:03:08 +00005966 { echo "$as_me:$LINENO: result: no" >&5
5967echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005968fi
5969
mlcreech94984912008-03-04 19:03:08 +00005970
a.rottmann84e63352003-03-24 09:42:16 +00005971fi
5972if test -z "$ac_cv_prog_STRIP"; then
5973 ac_ct_STRIP=$STRIP
5974 # Extract the first word of "strip", so it can be a program name with args.
5975set dummy strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005978if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 if test -n "$ac_ct_STRIP"; then
5982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005990 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 +00005991 ac_cv_prog_ac_ct_STRIP="strip"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995done
5996done
mlcreech94984912008-03-04 19:03:08 +00005997IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005998
a.rottmann84e63352003-03-24 09:42:16 +00005999fi
6000fi
6001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6002if test -n "$ac_ct_STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00006003 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6004echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006005else
mlcreech94984912008-03-04 19:03:08 +00006006 { echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006008fi
6009
mlcreech94984912008-03-04 19:03:08 +00006010 if test "x$ac_ct_STRIP" = x; then
6011 STRIP=":"
6012 else
6013 case $cross_compiling:$ac_tool_warned in
6014yes:)
6015{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6016whose name does not start with the host triplet. If you think this
6017configuration is useful to you, please write to autoconf@gnu.org." >&5
6018echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6019whose name does not start with the host triplet. If you think this
6020configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6021ac_tool_warned=yes ;;
6022esac
6023 STRIP=$ac_ct_STRIP
6024 fi
a.rottmann84e63352003-03-24 09:42:16 +00006025else
6026 STRIP="$ac_cv_prog_STRIP"
6027fi
6028
6029
a.rottmann84e63352003-03-24 09:42:16 +00006030old_CC="$CC"
6031old_CFLAGS="$CFLAGS"
6032
6033# Set sane defaults for various variables
6034test -z "$AR" && AR=ar
6035test -z "$AR_FLAGS" && AR_FLAGS=cru
6036test -z "$AS" && AS=as
6037test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006038test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006039test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006040test -z "$DLLTOOL" && DLLTOOL=dlltool
6041test -z "$LD" && LD=ld
6042test -z "$LN_S" && LN_S="ln -s"
6043test -z "$MAGIC_CMD" && MAGIC_CMD=file
6044test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00006045test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00006046test -z "$OBJDUMP" && OBJDUMP=objdump
6047test -z "$RANLIB" && RANLIB=:
6048test -z "$STRIP" && STRIP=:
6049test -z "$ac_objext" && ac_objext=o
6050
a.rottmann84e63352003-03-24 09:42:16 +00006051# Determine commands to create old-style static archives.
6052old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6053old_postinstall_cmds='chmod 644 $oldlib'
6054old_postuninstall_cmds=
6055
6056if test -n "$RANLIB"; then
6057 case $host_os in
6058 openbsd*)
vapier7f19c022007-02-17 14:46:31 +00006059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006060 ;;
6061 *)
vapier7f19c022007-02-17 14:46:31 +00006062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006063 ;;
6064 esac
6065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6066fi
6067
vapier7f19c022007-02-17 14:46:31 +00006068for cc_temp in $compiler""; do
6069 case $cc_temp in
6070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6072 \-*) ;;
6073 *) break;;
6074 esac
6075done
6076cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6077
6078
a.rottmann9bc8b932004-02-29 15:18:31 +00006079# Only perform the check for file, if the check method requires it
6080case $deplibs_check_method in
6081file_magic*)
6082 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mlcreech94984912008-03-04 19:03:08 +00006083 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6084echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006085if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00006087else
a.rottmann9bc8b932004-02-29 15:18:31 +00006088 case $MAGIC_CMD in
6089[\\/*] | ?:[\\/]*)
6090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6091 ;;
6092*)
6093 lt_save_MAGIC_CMD="$MAGIC_CMD"
6094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6096 for ac_dir in $ac_dummy; do
6097 IFS="$lt_save_ifs"
6098 test -z "$ac_dir" && ac_dir=.
6099 if test -f $ac_dir/${ac_tool_prefix}file; then
6100 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6101 if test -n "$file_magic_test_file"; then
6102 case $deplibs_check_method in
6103 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6107 $EGREP "$file_magic_regex" > /dev/null; then
6108 :
6109 else
6110 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006111
a.rottmann9bc8b932004-02-29 15:18:31 +00006112*** Warning: the command libtool uses to detect shared libraries,
6113*** $file_magic_cmd, produces output that libtool cannot recognize.
6114*** The result is that libtool may fail to recognize shared libraries
6115*** as such. This will affect the creation of libtool libraries that
6116*** depend on shared libraries, but programs linked with such libtool
6117*** libraries will work regardless of this problem. Nevertheless, you
6118*** may want to report the problem to your system manager and/or to
6119*** bug-libtool@gnu.org
6120
6121EOF
6122 fi ;;
6123 esac
6124 fi
6125 break
6126 fi
6127 done
6128 IFS="$lt_save_ifs"
6129 MAGIC_CMD="$lt_save_MAGIC_CMD"
6130 ;;
6131esac
6132fi
6133
6134MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6135if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006136 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6137echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006138else
mlcreech94984912008-03-04 19:03:08 +00006139 { echo "$as_me:$LINENO: result: no" >&5
6140echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006141fi
6142
6143if test -z "$lt_cv_path_MAGIC_CMD"; then
6144 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00006145 { echo "$as_me:$LINENO: checking for file" >&5
6146echo $ECHO_N "checking for file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006147if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 case $MAGIC_CMD in
6151[\\/*] | ?:[\\/]*)
6152 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6153 ;;
6154*)
6155 lt_save_MAGIC_CMD="$MAGIC_CMD"
6156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6157 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6158 for ac_dir in $ac_dummy; do
6159 IFS="$lt_save_ifs"
6160 test -z "$ac_dir" && ac_dir=.
6161 if test -f $ac_dir/file; then
6162 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6163 if test -n "$file_magic_test_file"; then
6164 case $deplibs_check_method in
6165 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006166 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6168 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6169 $EGREP "$file_magic_regex" > /dev/null; then
6170 :
6171 else
6172 cat <<EOF 1>&2
6173
6174*** Warning: the command libtool uses to detect shared libraries,
6175*** $file_magic_cmd, produces output that libtool cannot recognize.
6176*** The result is that libtool may fail to recognize shared libraries
6177*** as such. This will affect the creation of libtool libraries that
6178*** depend on shared libraries, but programs linked with such libtool
6179*** libraries will work regardless of this problem. Nevertheless, you
6180*** may want to report the problem to your system manager and/or to
6181*** bug-libtool@gnu.org
6182
6183EOF
6184 fi ;;
6185 esac
6186 fi
6187 break
6188 fi
6189 done
6190 IFS="$lt_save_ifs"
6191 MAGIC_CMD="$lt_save_MAGIC_CMD"
6192 ;;
6193esac
6194fi
6195
6196MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6197if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006198 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6199echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006200else
mlcreech94984912008-03-04 19:03:08 +00006201 { echo "$as_me:$LINENO: result: no" >&5
6202echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006203fi
6204
6205 else
6206 MAGIC_CMD=:
6207 fi
6208fi
6209
6210 fi
6211 ;;
6212esac
6213
6214enable_dlopen=no
6215enable_win32_dll=no
6216
mlcreech94984912008-03-04 19:03:08 +00006217# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00006218if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006219 enableval=$enable_libtool_lock;
6220fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006221
a.rottmann9bc8b932004-02-29 15:18:31 +00006222test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00006223
6224
mlcreech94984912008-03-04 19:03:08 +00006225# Check whether --with-pic was given.
drh71eb93e2001-09-28 01:34:43 +00006226if test "${with_pic+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006227 withval=$with_pic; pic_mode="$withval"
drh71eb93e2001-09-28 01:34:43 +00006228else
6229 pic_mode=default
mlcreech94984912008-03-04 19:03:08 +00006230fi
6231
drh71eb93e2001-09-28 01:34:43 +00006232test -z "$pic_mode" && pic_mode=default
6233
vapier7f19c022007-02-17 14:46:31 +00006234# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6235#
6236# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6237# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6238# calls AC_LIBTOOL_CONFIG and creates libtool.
6239#
mlcreech94984912008-03-04 19:03:08 +00006240{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6241echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006242if test "x$ltmain" = "x" ; then
mlcreech94984912008-03-04 19:03:08 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006245 { { echo "$as_me:$LINENO: error:
6246
6247*** [Gentoo] sanity check failed! ***
6248*** \$ltmain is not defined, please check the patch for consistency! ***
6249" >&5
6250echo "$as_me: error:
6251
6252*** [Gentoo] sanity check failed! ***
6253*** \$ltmain is not defined, please check the patch for consistency! ***
6254" >&2;}
6255 { (exit 1); exit 1; }; }
6256fi
6257gentoo_lt_version="1.5.22"
6258gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6259if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
mlcreech94984912008-03-04 19:03:08 +00006260 { echo "$as_me:$LINENO: result: no" >&5
6261echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006262 { { echo "$as_me:$LINENO: error:
6263
6264*** [Gentoo] sanity check failed! ***
6265*** libtool.m4 and ltmain.sh have a version mismatch! ***
6266*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6267
6268Please run:
6269
6270 libtoolize --copy --force
6271
6272if appropriate, please contact the maintainer of this
6273package (or your distribution) for help.
6274" >&5
6275echo "$as_me: error:
6276
6277*** [Gentoo] sanity check failed! ***
6278*** libtool.m4 and ltmain.sh have a version mismatch! ***
6279*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6280
6281Please run:
6282
6283 libtoolize --copy --force
6284
6285if appropriate, please contact the maintainer of this
6286package (or your distribution) for help.
6287" >&2;}
6288 { (exit 1); exit 1; }; }
6289else
mlcreech94984912008-03-04 19:03:08 +00006290 { echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006292fi
6293
6294
a.rottmann9bc8b932004-02-29 15:18:31 +00006295# Use C for the default configuration in the libtool script
6296tagname=
6297lt_save_CC="$CC"
6298ac_ext=c
6299ac_cpp='$CPP $CPPFLAGS'
6300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302ac_compiler_gnu=$ac_cv_c_compiler_gnu
6303
6304
6305# Source file extension for C test sources.
6306ac_ext=c
6307
6308# Object file extension for compiled C test sources.
6309objext=o
6310objext=$objext
6311
6312# Code to be used in simple compile tests
6313lt_simple_compile_test_code="int some_variable = 0;\n"
6314
6315# Code to be used in simple link tests
6316lt_simple_link_test_code='int main(){return(0);}\n'
6317
6318
6319# If no C compiler was specified, use CC.
6320LTCC=${LTCC-"$CC"}
6321
vapier7f19c022007-02-17 14:46:31 +00006322# If no C compiler flags were specified, use CFLAGS.
6323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324
a.rottmann9bc8b932004-02-29 15:18:31 +00006325# Allow CC to be a program name with arguments.
6326compiler=$CC
6327
6328
vapier7f19c022007-02-17 14:46:31 +00006329# save warnings/boilerplate of simple test code
6330ac_outfile=conftest.$ac_objext
6331printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6332eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6333_lt_compiler_boilerplate=`cat conftest.err`
6334$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006335
vapier7f19c022007-02-17 14:46:31 +00006336ac_outfile=conftest.$ac_objext
6337printf "$lt_simple_link_test_code" >conftest.$ac_ext
6338eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6339_lt_linker_boilerplate=`cat conftest.err`
6340$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006341
6342
6343
6344lt_prog_compiler_no_builtin_flag=
6345
6346if test "$GCC" = yes; then
6347 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6348
6349
mlcreech94984912008-03-04 19:03:08 +00006350{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6351echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006352if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355 lt_cv_prog_compiler_rtti_exceptions=no
6356 ac_outfile=conftest.$ac_objext
6357 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6358 lt_compiler_flag="-fno-rtti -fno-exceptions"
6359 # Insert the option either (1) after the last *FLAGS variable, or
6360 # (2) before a word containing "conftest.", or (3) at the end.
6361 # Note that $ac_compile itself does not contain backslashes and begins
6362 # with a dollar sign (not a hyphen), so the echo should work correctly.
6363 # The option is referenced via a variable to avoid confusing sed.
6364 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6367 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +00006368 (eval echo "\"\$as_me:6368: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006369 (eval "$lt_compile" 2>conftest.err)
6370 ac_status=$?
6371 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +00006372 echo "$as_me:6372: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006373 if (exit $ac_status) && test -s "$ac_outfile"; then
6374 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006375 # So say no if there are warnings other than the usual output.
6376 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6378 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006379 lt_cv_prog_compiler_rtti_exceptions=yes
6380 fi
6381 fi
6382 $rm conftest*
6383
6384fi
mlcreech94984912008-03-04 19:03:08 +00006385{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6386echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006387
6388if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6389 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6390else
6391 :
6392fi
6393
6394fi
6395
6396lt_prog_compiler_wl=
6397lt_prog_compiler_pic=
6398lt_prog_compiler_static=
6399
mlcreech94984912008-03-04 19:03:08 +00006400{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6401echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006402
drh71eb93e2001-09-28 01:34:43 +00006403 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006404 lt_prog_compiler_wl='-Wl,'
6405 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006406
6407 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006408 aix*)
6409 # All AIX code is PIC.
6410 if test "$host_cpu" = ia64; then
6411 # AIX 5 now supports IA64 processor
6412 lt_prog_compiler_static='-Bstatic'
6413 fi
drh71eb93e2001-09-28 01:34:43 +00006414 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006415
drh71eb93e2001-09-28 01:34:43 +00006416 amigaos*)
6417 # FIXME: we need at least 68020 code to build shared libraries, but
6418 # adding the `-m68020' flag to GCC prevents building anything better,
6419 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00006420 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00006421 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006422
6423 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006424 # PIC is the default for these OSes.
6425 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006426
6427 mingw* | pw32* | os2*)
6428 # This hack is so that the source file can tell whether it is being
6429 # built for inclusion in a dll (and should export symbols for example).
6430 lt_prog_compiler_pic='-DDLL_EXPORT'
6431 ;;
6432
drh71eb93e2001-09-28 01:34:43 +00006433 darwin* | rhapsody*)
6434 # PIC is the default on this platform
6435 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006436 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006437 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006438
vapier7f19c022007-02-17 14:46:31 +00006439 interix3*)
6440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6441 # Instead, we relocate shared libraries at runtime.
6442 ;;
6443
a.rottmann9bc8b932004-02-29 15:18:31 +00006444 msdosdjgpp*)
6445 # Just because we use GCC doesn't mean we suddenly get shared libraries
6446 # on systems that don't support them.
6447 lt_prog_compiler_can_build_shared=no
6448 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00006449 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006450
drh71eb93e2001-09-28 01:34:43 +00006451 sysv4*MP*)
6452 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006453 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00006454 fi
6455 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006456
6457 hpux*)
6458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6459 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006460 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006461 hppa*64*|ia64*)
6462 # +Z the default
6463 ;;
6464 *)
6465 lt_prog_compiler_pic='-fPIC'
6466 ;;
6467 esac
6468 ;;
6469
drh71eb93e2001-09-28 01:34:43 +00006470 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006471 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006472 ;;
6473 esac
6474 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006475 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006476 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006477 aix*)
6478 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006479 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006480 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006481 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006482 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006484 fi
6485 ;;
vapier7f19c022007-02-17 14:46:31 +00006486 darwin*)
6487 # PIC is the default on this platform
6488 # Common symbols not allowed in MH_DYLIB files
6489 case $cc_basename in
6490 xlc*)
6491 lt_prog_compiler_pic='-qnocommon'
6492 lt_prog_compiler_wl='-Wl,'
6493 ;;
6494 esac
6495 ;;
drh71eb93e2001-09-28 01:34:43 +00006496
a.rottmann9bc8b932004-02-29 15:18:31 +00006497 mingw* | pw32* | os2*)
6498 # This hack is so that the source file can tell whether it is being
6499 # built for inclusion in a dll (and should export symbols for example).
6500 lt_prog_compiler_pic='-DDLL_EXPORT'
6501 ;;
6502
a.rottmann84e63352003-03-24 09:42:16 +00006503 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006504 lt_prog_compiler_wl='-Wl,'
6505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6506 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006507 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006508 hppa*64*|ia64*)
6509 # +Z the default
6510 ;;
6511 *)
6512 lt_prog_compiler_pic='+Z'
6513 ;;
6514 esac
6515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6516 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006517 ;;
6518
6519 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006520 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006521 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006522 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006523 ;;
6524
6525 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00006526 lt_prog_compiler_pic='-KPIC'
6527 lt_prog_compiler_static='-Bstatic'
6528 ;;
6529
6530 linux*)
vapier7f19c022007-02-17 14:46:31 +00006531 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +00006532 icc* | ecc*)
6533 lt_prog_compiler_wl='-Wl,'
6534 lt_prog_compiler_pic='-KPIC'
6535 lt_prog_compiler_static='-static'
6536 ;;
vapier7f19c022007-02-17 14:46:31 +00006537 pgcc* | pgf77* | pgf90* | pgf95*)
6538 # Portland Group compilers (*not* the Pentium gcc compiler,
6539 # which looks to be a dead project)
6540 lt_prog_compiler_wl='-Wl,'
6541 lt_prog_compiler_pic='-fpic'
6542 lt_prog_compiler_static='-Bstatic'
6543 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006544 ccc*)
6545 lt_prog_compiler_wl='-Wl,'
6546 # All Alpha code is PIC.
6547 lt_prog_compiler_static='-non_shared'
6548 ;;
6549 esac
drh71eb93e2001-09-28 01:34:43 +00006550 ;;
6551
6552 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006553 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006554 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006555 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006556 ;;
6557
drh71eb93e2001-09-28 01:34:43 +00006558 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006559 lt_prog_compiler_pic='-KPIC'
6560 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006561 case $cc_basename in
6562 f77* | f90* | f95*)
6563 lt_prog_compiler_wl='-Qoption ld ';;
6564 *)
6565 lt_prog_compiler_wl='-Wl,';;
6566 esac
drh71eb93e2001-09-28 01:34:43 +00006567 ;;
6568
6569 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006570 lt_prog_compiler_wl='-Qoption ld '
6571 lt_prog_compiler_pic='-PIC'
6572 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006573 ;;
6574
vapier7f19c022007-02-17 14:46:31 +00006575 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006576 lt_prog_compiler_wl='-Wl,'
6577 lt_prog_compiler_pic='-KPIC'
6578 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006579 ;;
6580
6581 sysv4*MP*)
6582 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006583 lt_prog_compiler_pic='-Kconform_pic'
6584 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006585 fi
6586 ;;
6587
vapier7f19c022007-02-17 14:46:31 +00006588 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6589 lt_prog_compiler_wl='-Wl,'
6590 lt_prog_compiler_pic='-KPIC'
6591 lt_prog_compiler_static='-Bstatic'
6592 ;;
6593
6594 unicos*)
6595 lt_prog_compiler_wl='-Wl,'
6596 lt_prog_compiler_can_build_shared=no
6597 ;;
6598
a.rottmann9bc8b932004-02-29 15:18:31 +00006599 uts4*)
6600 lt_prog_compiler_pic='-pic'
6601 lt_prog_compiler_static='-Bstatic'
6602 ;;
6603
drh71eb93e2001-09-28 01:34:43 +00006604 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006605 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006606 ;;
6607 esac
6608 fi
6609
mlcreech94984912008-03-04 19:03:08 +00006610{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6611echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006612
a.rottmann9bc8b932004-02-29 15:18:31 +00006613#
6614# Check to make sure the PIC flag actually works.
6615#
6616if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00006617
mlcreech94984912008-03-04 19:03:08 +00006618{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6619echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006620if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
a.rottmann9bc8b932004-02-29 15:18:31 +00006623 lt_prog_compiler_pic_works=no
6624 ac_outfile=conftest.$ac_objext
6625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6627 # Insert the option either (1) after the last *FLAGS variable, or
6628 # (2) before a word containing "conftest.", or (3) at the end.
6629 # Note that $ac_compile itself does not contain backslashes and begins
6630 # with a dollar sign (not a hyphen), so the echo should work correctly.
6631 # The option is referenced via a variable to avoid confusing sed.
6632 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6635 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +00006636 (eval echo "\"\$as_me:6636: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006637 (eval "$lt_compile" 2>conftest.err)
6638 ac_status=$?
6639 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +00006640 echo "$as_me:6640: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006641 if (exit $ac_status) && test -s "$ac_outfile"; then
6642 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006643 # So say no if there are warnings other than the usual output.
6644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006647 lt_prog_compiler_pic_works=yes
6648 fi
6649 fi
6650 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006651
a.rottmann9bc8b932004-02-29 15:18:31 +00006652fi
mlcreech94984912008-03-04 19:03:08 +00006653{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6654echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006655
a.rottmann9bc8b932004-02-29 15:18:31 +00006656if test x"$lt_prog_compiler_pic_works" = xyes; then
6657 case $lt_prog_compiler_pic in
6658 "" | " "*) ;;
6659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6660 esac
drh71eb93e2001-09-28 01:34:43 +00006661else
a.rottmann9bc8b932004-02-29 15:18:31 +00006662 lt_prog_compiler_pic=
6663 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006664fi
6665
a.rottmann84e63352003-03-24 09:42:16 +00006666fi
vapier7f19c022007-02-17 14:46:31 +00006667case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006668 # For platforms which do not support PIC, -DPIC is meaningless:
6669 *djgpp*)
6670 lt_prog_compiler_pic=
6671 ;;
6672 *)
6673 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6674 ;;
6675esac
a.rottmann84e63352003-03-24 09:42:16 +00006676
vapier7f19c022007-02-17 14:46:31 +00006677#
6678# Check to make sure the static flag actually works.
6679#
6680wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00006681{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6682echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006683if test "${lt_prog_compiler_static_works+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685else
6686 lt_prog_compiler_static_works=no
6687 save_LDFLAGS="$LDFLAGS"
6688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6689 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6691 # The linker can only warn and ignore the option if not recognized
6692 # So say no if there are warnings
6693 if test -s conftest.err; then
6694 # Append any errors to the config.log.
6695 cat conftest.err 1>&5
6696 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6698 if diff conftest.exp conftest.er2 >/dev/null; then
6699 lt_prog_compiler_static_works=yes
6700 fi
6701 else
6702 lt_prog_compiler_static_works=yes
6703 fi
6704 fi
6705 $rm conftest*
6706 LDFLAGS="$save_LDFLAGS"
6707
6708fi
mlcreech94984912008-03-04 19:03:08 +00006709{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6710echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006711
6712if test x"$lt_prog_compiler_static_works" = xyes; then
6713 :
6714else
6715 lt_prog_compiler_static=
6716fi
6717
6718
mlcreech94984912008-03-04 19:03:08 +00006719{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6720echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006721if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006722 echo $ECHO_N "(cached) $ECHO_C" >&6
6723else
a.rottmann9bc8b932004-02-29 15:18:31 +00006724 lt_cv_prog_compiler_c_o=no
6725 $rm -r conftest 2>/dev/null
6726 mkdir conftest
6727 cd conftest
6728 mkdir out
6729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006730
a.rottmann9bc8b932004-02-29 15:18:31 +00006731 lt_compiler_flag="-o out/conftest2.$ac_objext"
6732 # Insert the option either (1) after the last *FLAGS variable, or
6733 # (2) before a word containing "conftest.", or (3) at the end.
6734 # Note that $ac_compile itself does not contain backslashes and begins
6735 # with a dollar sign (not a hyphen), so the echo should work correctly.
6736 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6739 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +00006740 (eval echo "\"\$as_me:6740: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006741 (eval "$lt_compile" 2>out/conftest.err)
6742 ac_status=$?
6743 cat out/conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +00006744 echo "$as_me:6744: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6746 then
6747 # The compiler can only warn and ignore the option if not recognized
6748 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +00006749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 lt_cv_prog_compiler_c_o=yes
6753 fi
6754 fi
vapier7f19c022007-02-17 14:46:31 +00006755 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006756 $rm conftest*
6757 # SGI C++ compiler will create directory out/ii_files/ for
6758 # template instantiation
6759 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6760 $rm out/* && rmdir out
6761 cd ..
6762 rmdir conftest
6763 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006764
6765fi
mlcreech94984912008-03-04 19:03:08 +00006766{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6767echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006768
a.rottmann84e63352003-03-24 09:42:16 +00006769
drh71eb93e2001-09-28 01:34:43 +00006770hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006771if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006772 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +00006773 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6774echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006775 hard_links=yes
6776 $rm conftest*
6777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6778 touch conftest.a
6779 ln conftest.a conftest.b 2>&5 || hard_links=no
6780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +00006781 { echo "$as_me:$LINENO: result: $hard_links" >&5
6782echo "${ECHO_T}$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006783 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00006784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00006785echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6786 need_locks=warn
6787 fi
6788else
6789 need_locks=no
6790fi
6791
mlcreech94984912008-03-04 19:03:08 +00006792{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6793echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006794
6795 runpath_var=
6796 allow_undefined_flag=
6797 enable_shared_with_static_runtimes=no
6798 archive_cmds=
6799 archive_expsym_cmds=
6800 old_archive_From_new_cmds=
6801 old_archive_from_expsyms_cmds=
6802 export_dynamic_flag_spec=
6803 whole_archive_flag_spec=
6804 thread_safe_flag_spec=
6805 hardcode_libdir_flag_spec=
6806 hardcode_libdir_flag_spec_ld=
6807 hardcode_libdir_separator=
6808 hardcode_direct=no
6809 hardcode_minus_L=no
6810 hardcode_shlibpath_var=unsupported
6811 link_all_deplibs=unknown
6812 hardcode_automatic=no
6813 module_cmds=
6814 module_expsym_cmds=
6815 always_export_symbols=no
6816 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6817 # include_expsyms should be a list of space-separated symbols to be *always*
6818 # included in the symbol list
6819 include_expsyms=
6820 # exclude_expsyms can be an extended regexp of symbols to exclude
6821 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6822 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6823 # as well as any symbol that contains `d'.
6824 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6825 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6826 # platforms (ab)use it in PIC code, but their linkers get confused if
6827 # the symbol is explicitly referenced. Since portable code cannot
6828 # rely on this symbol name, it's probably fine to never include it in
6829 # preloaded symbol tables.
6830 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +00006831 # Just being paranoid about ensuring that cc_basename is set.
6832 for cc_temp in $compiler""; do
6833 case $cc_temp in
6834 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6835 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6836 \-*) ;;
6837 *) break;;
6838 esac
6839done
6840cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006841
6842 case $host_os in
6843 cygwin* | mingw* | pw32*)
6844 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6845 # When not using gcc, we currently assume that we are using
6846 # Microsoft Visual C++.
6847 if test "$GCC" != yes; then
6848 with_gnu_ld=no
6849 fi
6850 ;;
vapier7f19c022007-02-17 14:46:31 +00006851 interix*)
6852 # we just hope/assume this is gcc and not c89 (= MSVC++)
6853 with_gnu_ld=yes
6854 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006855 openbsd*)
6856 with_gnu_ld=no
6857 ;;
6858 esac
6859
6860 ld_shlibs=yes
6861 if test "$with_gnu_ld" = yes; then
6862 # If archive_cmds runs LD, not CC, wlarc should be empty
6863 wlarc='${wl}'
6864
vapier7f19c022007-02-17 14:46:31 +00006865 # Set some defaults for GNU ld with shared library support. These
6866 # are reset later if shared libraries are not supported. Putting them
6867 # here allows them to be overridden if necessary.
6868 runpath_var=LD_RUN_PATH
6869 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6870 export_dynamic_flag_spec='${wl}--export-dynamic'
6871 # ancient GNU ld didn't support --whole-archive et. al.
6872 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6873 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6874 else
6875 whole_archive_flag_spec=
6876 fi
6877 supports_anon_versioning=no
6878 case `$LD -v 2>/dev/null` in
6879 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6880 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6881 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6882 *\ 2.11.*) ;; # other 2.11 versions
6883 *) supports_anon_versioning=yes ;;
6884 esac
6885
a.rottmann9bc8b932004-02-29 15:18:31 +00006886 # See if GNU ld supports shared libraries.
6887 case $host_os in
6888 aix3* | aix4* | aix5*)
6889 # On AIX/PPC, the GNU linker is very broken
6890 if test "$host_cpu" != ia64; then
6891 ld_shlibs=no
6892 cat <<EOF 1>&2
6893
6894*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6895*** to be unable to reliably create shared libraries on AIX.
6896*** Therefore, libtool is disabling shared libraries support. If you
6897*** really care for shared libraries, you may want to modify your PATH
6898*** so that a non-GNU linker is found, and then restart.
6899
6900EOF
6901 fi
6902 ;;
6903
6904 amigaos*)
6905 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)'
6906 hardcode_libdir_flag_spec='-L$libdir'
6907 hardcode_minus_L=yes
6908
6909 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6910 # that the semantics of dynamic libraries on AmigaOS, at least up
6911 # to version 4, is to share data among multiple programs linked
6912 # with the same dynamic library. Since this doesn't match the
6913 # behavior of shared libraries on other platforms, we can't use
6914 # them.
6915 ld_shlibs=no
6916 ;;
6917
6918 beos*)
6919 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6920 allow_undefined_flag=unsupported
6921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6922 # support --undefined. This deserves some investigation. FIXME
6923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6924 else
6925 ld_shlibs=no
6926 fi
6927 ;;
6928
6929 cygwin* | mingw* | pw32*)
6930 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6931 # as there is no search path for DLLs.
6932 hardcode_libdir_flag_spec='-L$libdir'
6933 allow_undefined_flag=unsupported
6934 always_export_symbols=no
6935 enable_shared_with_static_runtimes=yes
vapier7f19c022007-02-17 14:46:31 +00006936 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 +00006937
6938 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006939 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 +00006940 # If the export-symbols file already is a .def file (1st line
6941 # is EXPORTS), use it as is; otherwise, prepend...
6942 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6943 cp $export_symbols $output_objdir/$soname.def;
6944 else
6945 echo EXPORTS > $output_objdir/$soname.def;
6946 cat $export_symbols >> $output_objdir/$soname.def;
6947 fi~
vapier7f19c022007-02-17 14:46:31 +00006948 $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 +00006949 else
6950 ld_shlibs=no
6951 fi
6952 ;;
6953
vapier7f19c022007-02-17 14:46:31 +00006954 interix3*)
6955 hardcode_direct=no
6956 hardcode_shlibpath_var=no
6957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6958 export_dynamic_flag_spec='${wl}-E'
6959 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6960 # Instead, shared libraries are loaded at an image base (0x10000000 by
6961 # default) and relocated if they conflict, which is a slow very memory
6962 # consuming and fragmenting process. To avoid this, we pick a random,
6963 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6964 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6965 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6966 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'
6967 ;;
6968
6969 linux*)
6970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6971 tmp_addflag=
6972 case $cc_basename,$host_cpu in
6973 pgcc*) # Portland Group C compiler
6974 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'
6975 tmp_addflag=' $pic_flag'
6976 ;;
6977 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6978 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'
6979 tmp_addflag=' $pic_flag -Mnomain' ;;
6980 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6981 tmp_addflag=' -i_dynamic' ;;
6982 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6983 tmp_addflag=' -i_dynamic -nofor_main' ;;
6984 ifc* | ifort*) # Intel Fortran compiler
6985 tmp_addflag=' -nofor_main' ;;
6986 esac
6987 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6988
6989 if test $supports_anon_versioning = yes; then
6990 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6992 $echo "local: *; };" >> $output_objdir/$libname.ver~
6993 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6994 fi
6995 else
6996 ld_shlibs=no
6997 fi
6998 ;;
6999
7000 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7002 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7003 wlarc=
7004 else
7005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007 fi
7008 ;;
7009
vapier7f19c022007-02-17 14:46:31 +00007010 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7012 ld_shlibs=no
7013 cat <<EOF 1>&2
7014
7015*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7016*** create shared libraries on Solaris systems. Therefore, libtool
7017*** is disabling shared libraries support. We urge you to upgrade GNU
7018*** binutils to release 2.9.1 or newer. Another option is to modify
7019*** your PATH or compiler configuration so that the native linker is
7020*** used, and then restart.
7021
7022EOF
7023 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7026 else
7027 ld_shlibs=no
7028 fi
7029 ;;
7030
vapier7f19c022007-02-17 14:46:31 +00007031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7032 case `$LD -v 2>&1` in
7033 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7034 ld_shlibs=no
7035 cat <<_LT_EOF 1>&2
7036
7037*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7038*** reliably create shared libraries on SCO systems. Therefore, libtool
7039*** is disabling shared libraries support. We urge you to upgrade GNU
7040*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7041*** your PATH or compiler configuration so that the native linker is
7042*** used, and then restart.
7043
7044_LT_EOF
7045 ;;
7046 *)
7047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7048 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7051 else
7052 ld_shlibs=no
7053 fi
7054 ;;
7055 esac
7056 ;;
7057
a.rottmann9bc8b932004-02-29 15:18:31 +00007058 sunos4*)
7059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7060 wlarc=
7061 hardcode_direct=yes
7062 hardcode_shlibpath_var=no
7063 ;;
7064
a.rottmann9bc8b932004-02-29 15:18:31 +00007065 *)
7066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7069 else
7070 ld_shlibs=no
7071 fi
7072 ;;
7073 esac
7074
vapier7f19c022007-02-17 14:46:31 +00007075 if test "$ld_shlibs" = no; then
7076 runpath_var=
7077 hardcode_libdir_flag_spec=
7078 export_dynamic_flag_spec=
7079 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007080 fi
7081 else
7082 # PORTME fill in a description of your system's linker (not GNU ld)
7083 case $host_os in
7084 aix3*)
7085 allow_undefined_flag=unsupported
7086 always_export_symbols=yes
7087 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'
7088 # Note: this linker hardcodes the directories in LIBPATH if there
7089 # are no directories specified by -L.
7090 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007092 # Neither direct hardcoding nor static linking is supported with a
7093 # broken collect2.
7094 hardcode_direct=unsupported
7095 fi
7096 ;;
7097
7098 aix4* | aix5*)
7099 if test "$host_cpu" = ia64; then
7100 # On IA64, the linker does run time linking by default, so we don't
7101 # have to do anything special.
7102 aix_use_runtimelinking=no
7103 exp_sym_flag='-Bexport'
7104 no_entry_flag=""
7105 else
7106 # If we're using GNU nm, then we don't want the "-C" option.
7107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7108 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7109 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'
7110 else
7111 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'
7112 fi
7113 aix_use_runtimelinking=no
7114
7115 # Test if we are trying to use run time linking or normal
7116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7117 # need to do runtime linking.
7118 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7119 for ld_flag in $LDFLAGS; do
7120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7121 aix_use_runtimelinking=yes
7122 break
7123 fi
7124 done
vapier7f19c022007-02-17 14:46:31 +00007125 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 esac
7127
7128 exp_sym_flag='-bexport'
7129 no_entry_flag='-bnoentry'
7130 fi
7131
7132 # When large executables or shared objects are built, AIX ld can
7133 # have problems creating the table of contents. If linking a library
7134 # or program results in "error TOC overflow" add -mminimal-toc to
7135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7137
7138 archive_cmds=''
7139 hardcode_direct=yes
7140 hardcode_libdir_separator=':'
7141 link_all_deplibs=yes
7142
7143 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007144 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007145 # We only want to do this on AIX 4.2 and lower, the check
7146 # below for broken collect2 doesn't work under 4.3+
7147 collect2name=`${CC} -print-prog-name=collect2`
7148 if test -f "$collect2name" && \
7149 strings "$collect2name" | grep resolve_lib_name >/dev/null
7150 then
7151 # We have reworked collect2
7152 hardcode_direct=yes
7153 else
7154 # We have old collect2
7155 hardcode_direct=unsupported
7156 # It fails to find uninstalled libraries when the uninstalled
7157 # path is not listed in the libpath. Setting hardcode_minus_L
7158 # to unsupported forces relinking
7159 hardcode_minus_L=yes
7160 hardcode_libdir_flag_spec='-L$libdir'
7161 hardcode_libdir_separator=
7162 fi
vapier7f19c022007-02-17 14:46:31 +00007163 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007164 esac
7165 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007166 if test "$aix_use_runtimelinking" = yes; then
7167 shared_flag="$shared_flag "'${wl}-G'
7168 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007169 else
7170 # not using gcc
7171 if test "$host_cpu" = ia64; then
7172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7173 # chokes on -Wl,-G. The following line is correct:
7174 shared_flag='-G'
7175 else
vapier7f19c022007-02-17 14:46:31 +00007176 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007177 shared_flag='${wl}-G'
7178 else
7179 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007180 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007181 fi
7182 fi
7183
7184 # It seems that -bexpall does not export symbols beginning with
7185 # underscore (_), so it is better to generate a list of symbols to export.
7186 always_export_symbols=yes
7187 if test "$aix_use_runtimelinking" = yes; then
7188 # Warning - without using the other runtime loading flags (-brtl),
7189 # -berok will link without error, but may produce a broken library.
7190 allow_undefined_flag='-berok'
7191 # Determine the default libpath from the value encoded in an empty executable.
7192 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007193/* confdefs.h. */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007198
a.rottmann84e63352003-03-24 09:42:16 +00007199int
7200main ()
7201{
a.rottmann9bc8b932004-02-29 15:18:31 +00007202
a.rottmann84e63352003-03-24 09:42:16 +00007203 ;
7204 return 0;
7205}
7206_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007207rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007208if { (ac_try="$ac_link"
7209case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212esac
7213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007215 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest$ac_exeext &&
7224 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007225
a.rottmann9bc8b932004-02-29 15:18:31 +00007226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7227}'`
7228# Check for a 64-bit object if we didn't find anything.
7229if 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; }
7230}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007231else
7232 echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
mlcreech94984912008-03-04 19:03:08 +00007235
a.rottmann84e63352003-03-24 09:42:16 +00007236fi
mlcreech94984912008-03-04 19:03:08 +00007237
7238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007239 conftest$ac_exeext conftest.$ac_ext
7240if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007241
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +00007243 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 +00007244 else
7245 if test "$host_cpu" = ia64; then
7246 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7247 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007248 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 +00007249 else
7250 # Determine the default libpath from the value encoded in an empty executable.
7251 cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h. */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007257
a.rottmann9bc8b932004-02-29 15:18:31 +00007258int
7259main ()
7260{
a.rottmann84e63352003-03-24 09:42:16 +00007261
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 ;
7263 return 0;
7264}
7265_ACEOF
7266rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007267if { (ac_try="$ac_link"
7268case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271esac
7272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest$ac_exeext &&
7283 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007284
a.rottmann9bc8b932004-02-29 15:18:31 +00007285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7286}'`
7287# Check for a 64-bit object if we didn't find anything.
7288if 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; }
7289}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007290else
a.rottmann9bc8b932004-02-29 15:18:31 +00007291 echo "$as_me: failed program was:" >&5
7292sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007293
mlcreech94984912008-03-04 19:03:08 +00007294
a.rottmann9bc8b932004-02-29 15:18:31 +00007295fi
mlcreech94984912008-03-04 19:03:08 +00007296
7297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007298 conftest$ac_exeext conftest.$ac_ext
7299if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007300
a.rottmann9bc8b932004-02-29 15:18:31 +00007301 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7302 # Warning - without using the other run time loading flags,
7303 # -berok will link without error, but may produce a broken library.
7304 no_undefined_flag=' ${wl}-bernotok'
7305 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007306 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007307 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007308 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007309 # This is similar to how AIX traditionally builds its shared libraries.
7310 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 +00007311 fi
7312 fi
a.rottmann84e63352003-03-24 09:42:16 +00007313 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007314
7315 amigaos*)
7316 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)'
7317 hardcode_libdir_flag_spec='-L$libdir'
7318 hardcode_minus_L=yes
7319 # see comment about different semantics on the GNU ld section
7320 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00007321 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007322
vapier7f19c022007-02-17 14:46:31 +00007323 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007324 export_dynamic_flag_spec=-rdynamic
7325 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007326
a.rottmann9bc8b932004-02-29 15:18:31 +00007327 cygwin* | mingw* | pw32*)
7328 # When not using gcc, we currently assume that we are using
7329 # Microsoft Visual C++.
7330 # hardcode_libdir_flag_spec is actually meaningless, as there is
7331 # no search path for DLLs.
7332 hardcode_libdir_flag_spec=' '
7333 allow_undefined_flag=unsupported
7334 # Tell ltmain to make .lib files, not .a files.
7335 libext=lib
7336 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007337 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 # FIXME: Setting linknames here is a bad hack.
7339 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7340 # The linker will automatically build a .lib file if we build a DLL.
7341 old_archive_From_new_cmds='true'
7342 # FIXME: Should let the user specify the lib program.
7343 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7344 fix_srcfile_path='`cygpath -w "$srcfile"`'
7345 enable_shared_with_static_runtimes=yes
7346 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007347
a.rottmann9bc8b932004-02-29 15:18:31 +00007348 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +00007349 case $host_os in
7350 rhapsody* | darwin1.[012])
7351 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7352 ;;
7353 *) # Darwin 1.3 on
7354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7355 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7356 else
7357 case ${MACOSX_DEPLOYMENT_TARGET} in
7358 10.[012])
7359 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7360 ;;
7361 10.*)
7362 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7363 ;;
7364 esac
7365 fi
7366 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007367 esac
vapier7f19c022007-02-17 14:46:31 +00007368 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007369 hardcode_direct=no
7370 hardcode_automatic=yes
7371 hardcode_shlibpath_var=unsupported
vapier7f19c022007-02-17 14:46:31 +00007372 whole_archive_flag_spec=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007373 link_all_deplibs=yes
vapier7f19c022007-02-17 14:46:31 +00007374 if test "$GCC" = yes ; then
7375 output_verbose_link_cmd='echo'
7376 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7379 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}'
7380 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 +00007381 else
vapier7f19c022007-02-17 14:46:31 +00007382 case $cc_basename in
7383 xlc*)
7384 output_verbose_link_cmd='echo'
7385 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7386 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7388 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}'
7389 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}'
7390 ;;
7391 *)
7392 ld_shlibs=no
7393 ;;
7394 esac
a.rottmann84e63352003-03-24 09:42:16 +00007395 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007396 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007397
a.rottmann9bc8b932004-02-29 15:18:31 +00007398 dgux*)
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_libdir_flag_spec='-L$libdir'
7401 hardcode_shlibpath_var=no
7402 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007403
a.rottmann9bc8b932004-02-29 15:18:31 +00007404 freebsd1*)
7405 ld_shlibs=no
7406 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007407
a.rottmann9bc8b932004-02-29 15:18:31 +00007408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7409 # support. Future versions do this automatically, but an explicit c++rt0.o
7410 # does not break anything, and helps significantly (at the cost of a little
7411 # extra space).
7412 freebsd2.2*)
7413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7414 hardcode_libdir_flag_spec='-R$libdir'
7415 hardcode_direct=yes
7416 hardcode_shlibpath_var=no
7417 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007418
a.rottmann9bc8b932004-02-29 15:18:31 +00007419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7420 freebsd2*)
7421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7422 hardcode_direct=yes
7423 hardcode_minus_L=yes
7424 hardcode_shlibpath_var=no
7425 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007426
a.rottmann9bc8b932004-02-29 15:18:31 +00007427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +00007428 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007429 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7430 hardcode_libdir_flag_spec='-R$libdir'
7431 hardcode_direct=yes
7432 hardcode_shlibpath_var=no
7433 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007434
a.rottmann9bc8b932004-02-29 15:18:31 +00007435 hpux9*)
7436 if test "$GCC" = yes; then
7437 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'
7438 else
7439 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'
7440 fi
7441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7442 hardcode_libdir_separator=:
7443 hardcode_direct=yes
7444
7445 # hardcode_minus_L: Not really in the search PATH,
7446 # but as the default location of the library.
7447 hardcode_minus_L=yes
7448 export_dynamic_flag_spec='${wl}-E'
7449 ;;
7450
vapier7f19c022007-02-17 14:46:31 +00007451 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7454 else
7455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7456 fi
7457 if test "$with_gnu_ld" = no; then
7458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7459 hardcode_libdir_separator=:
7460
7461 hardcode_direct=yes
7462 export_dynamic_flag_spec='${wl}-E'
7463
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L=yes
7467 fi
7468 ;;
7469
7470 hpux11*)
7471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7472 case $host_cpu in
7473 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7475 ;;
vapier7f19c022007-02-17 14:46:31 +00007476 ia64*)
7477 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7478 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007479 *)
7480 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7481 ;;
7482 esac
7483 else
vapier7f19c022007-02-17 14:46:31 +00007484 case $host_cpu in
7485 hppa*64*)
7486 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7487 ;;
7488 ia64*)
7489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007490 ;;
7491 *)
vapier7f19c022007-02-17 14:46:31 +00007492 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 +00007493 ;;
7494 esac
7495 fi
7496 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7498 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007499
vapier7f19c022007-02-17 14:46:31 +00007500 case $host_cpu in
7501 hppa*64*|ia64*)
7502 hardcode_libdir_flag_spec_ld='+b $libdir'
7503 hardcode_direct=no
7504 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007505 ;;
7506 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007507 hardcode_direct=yes
7508 export_dynamic_flag_spec='${wl}-E'
7509
7510 # hardcode_minus_L: Not really in the search PATH,
7511 # but as the default location of the library.
7512 hardcode_minus_L=yes
7513 ;;
7514 esac
7515 fi
7516 ;;
7517
7518 irix5* | irix6* | nonstopux*)
7519 if test "$GCC" = yes; then
7520 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'
7521 else
7522 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'
7523 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7524 fi
7525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7526 hardcode_libdir_separator=:
7527 link_all_deplibs=yes
7528 ;;
7529
vapier7f19c022007-02-17 14:46:31 +00007530 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7533 else
7534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7535 fi
7536 hardcode_libdir_flag_spec='-R$libdir'
7537 hardcode_direct=yes
7538 hardcode_shlibpath_var=no
7539 ;;
7540
7541 newsos6)
7542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7543 hardcode_direct=yes
7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7545 hardcode_libdir_separator=:
7546 hardcode_shlibpath_var=no
7547 ;;
7548
7549 openbsd*)
7550 hardcode_direct=yes
7551 hardcode_shlibpath_var=no
7552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007554 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 +00007555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7556 export_dynamic_flag_spec='${wl}-E'
7557 else
7558 case $host_os in
7559 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7561 hardcode_libdir_flag_spec='-R$libdir'
7562 ;;
7563 *)
7564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7566 ;;
7567 esac
7568 fi
7569 ;;
7570
7571 os2*)
7572 hardcode_libdir_flag_spec='-L$libdir'
7573 hardcode_minus_L=yes
7574 allow_undefined_flag=unsupported
7575 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'
7576 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7577 ;;
7578
7579 osf3*)
7580 if test "$GCC" = yes; then
7581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7582 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'
7583 else
7584 allow_undefined_flag=' -expect_unresolved \*'
7585 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'
7586 fi
7587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7588 hardcode_libdir_separator=:
7589 ;;
7590
7591 osf4* | osf5*) # as osf3* with the addition of -msym flag
7592 if test "$GCC" = yes; then
7593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7594 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'
7595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7596 else
7597 allow_undefined_flag=' -expect_unresolved \*'
7598 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'
7599 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 +00007600 $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 +00007601
7602 # Both c and cxx compiler support -rpath directly
7603 hardcode_libdir_flag_spec='-rpath $libdir'
7604 fi
7605 hardcode_libdir_separator=:
7606 ;;
7607
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 solaris*)
7609 no_undefined_flag=' -z text'
7610 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007611 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007612 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7613 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7615 else
vapier7f19c022007-02-17 14:46:31 +00007616 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007617 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7618 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7620 fi
7621 hardcode_libdir_flag_spec='-R$libdir'
7622 hardcode_shlibpath_var=no
7623 case $host_os in
7624 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007625 *)
7626 # The compiler driver will combine linker options so we
7627 # cannot just pass the convience library names through
7628 # without $wl, iff we do not link with $LD.
7629 # Luckily, gcc supports the same syntax we need for Sun Studio.
7630 # Supported since Solaris 2.6 (maybe 2.5.1?)
7631 case $wlarc in
7632 '')
7633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7634 *)
7635 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' ;;
7636 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 esac
7638 link_all_deplibs=yes
7639 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007640
a.rottmann9bc8b932004-02-29 15:18:31 +00007641 sunos4*)
7642 if test "x$host_vendor" = xsequent; then
7643 # Use $CC to link under sequent, because it throws in some extra .o
7644 # files that make .init and .fini sections work.
7645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7646 else
7647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7648 fi
7649 hardcode_libdir_flag_spec='-L$libdir'
7650 hardcode_direct=yes
7651 hardcode_minus_L=yes
7652 hardcode_shlibpath_var=no
7653 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007654
a.rottmann9bc8b932004-02-29 15:18:31 +00007655 sysv4)
7656 case $host_vendor in
7657 sni)
7658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659 hardcode_direct=yes # is this really true???
7660 ;;
7661 siemens)
7662 ## LD is ld it makes a PLAMLIB
7663 ## CC just makes a GrossModule.
7664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7665 reload_cmds='$CC -r -o $output$reload_objs'
7666 hardcode_direct=no
7667 ;;
7668 motorola)
7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7671 ;;
7672 esac
7673 runpath_var='LD_RUN_PATH'
7674 hardcode_shlibpath_var=no
7675 ;;
7676
7677 sysv4.3*)
7678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7679 hardcode_shlibpath_var=no
7680 export_dynamic_flag_spec='-Bexport'
7681 ;;
7682
7683 sysv4*MP*)
7684 if test -d /usr/nec; then
7685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686 hardcode_shlibpath_var=no
7687 runpath_var=LD_RUN_PATH
7688 hardcode_runpath_var=yes
7689 ld_shlibs=yes
7690 fi
7691 ;;
7692
vapier7f19c022007-02-17 14:46:31 +00007693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7694 no_undefined_flag='${wl}-z,text'
7695 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007696 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007697 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007698
a.rottmann9bc8b932004-02-29 15:18:31 +00007699 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7701 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 +00007702 else
vapier7f19c022007-02-17 14:46:31 +00007703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7704 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 +00007705 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007706 ;;
7707
vapier7f19c022007-02-17 14:46:31 +00007708 sysv5* | sco3.2v5* | sco5v6*)
7709 # Note: We can NOT use -z defs as we might desire, because we do not
7710 # link with -lc, and that would cause any symbols used from libc to
7711 # always be unresolved, which means just about no library would
7712 # ever link correctly. If we're not using GNU ld we use -z text
7713 # though, which does catch some bad symbols but isn't as heavy-handed
7714 # as -z defs.
7715 no_undefined_flag='${wl}-z,text'
7716 allow_undefined_flag='${wl}-z,nodefs'
7717 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007718 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007719 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7720 hardcode_libdir_separator=':'
7721 link_all_deplibs=yes
7722 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007723 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007724
7725 if test "$GCC" = yes; then
7726 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7728 else
7729 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7731 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007732 ;;
7733
7734 uts4*)
7735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_shlibpath_var=no
7738 ;;
7739
7740 *)
7741 ld_shlibs=no
7742 ;;
7743 esac
7744 fi
7745
mlcreech94984912008-03-04 19:03:08 +00007746{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7747echo "${ECHO_T}$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00007748test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007749
a.rottmann9bc8b932004-02-29 15:18:31 +00007750#
7751# Do we need to explicitly link libc?
7752#
7753case "x$archive_cmds_need_lc" in
7754x|xyes)
7755 # Assume -lc should be added
7756 archive_cmds_need_lc=yes
7757
7758 if test "$enable_shared" = yes && test "$GCC" = yes; then
7759 case $archive_cmds in
7760 *'~'*)
7761 # FIXME: we may have to deal with multi-command sequences.
7762 ;;
7763 '$CC '*)
7764 # Test whether the compiler implicitly links with -lc since on some
7765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7766 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +00007767 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7768echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007769 $rm conftest*
7770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7771
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } 2>conftest.err; then
7777 soname=conftest
7778 lib=conftest
7779 libobjs=conftest.$ac_objext
7780 deplibs=
7781 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007782 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 compiler_flags=-v
7784 linker_flags=-v
7785 verstring=
7786 output_objdir=.
7787 libname=conftest
7788 lt_save_allow_undefined_flag=$allow_undefined_flag
7789 allow_undefined_flag=
7790 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7791 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }
7795 then
7796 archive_cmds_need_lc=no
7797 else
7798 archive_cmds_need_lc=yes
7799 fi
7800 allow_undefined_flag=$lt_save_allow_undefined_flag
7801 else
7802 cat conftest.err 1>&5
7803 fi
7804 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +00007805 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7806echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007807 ;;
7808 esac
drh71eb93e2001-09-28 01:34:43 +00007809 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007810 ;;
7811esac
drh71eb93e2001-09-28 01:34:43 +00007812
mlcreech94984912008-03-04 19:03:08 +00007813{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7814echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007815library_names_spec=
7816libname_spec='lib$name'
7817soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007818shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007819postinstall_cmds=
7820postuninstall_cmds=
7821finish_cmds=
7822finish_eval=
7823shlibpath_var=
7824shlibpath_overrides_runpath=unknown
7825version_type=none
7826dynamic_linker="$host_os ld.so"
7827sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007828if test "$GCC" = yes; then
7829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7830 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7831 # if the path contains ";" then we assume it to be the separator
7832 # otherwise default to the standard path separator (i.e. ":") - it is
7833 # assumed that no part of a normal pathname contains ";" but that should
7834 # okay in the real world where ";" in dirpaths is itself problematic.
7835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7836 else
7837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7838 fi
7839else
7840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7841fi
7842need_lib_prefix=unknown
7843hardcode_into_libs=no
7844
7845# when you set need_version to no, make sure it does not cause -set_version
7846# flags to be left without arguments
7847need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007848
7849case $host_os in
7850aix3*)
7851 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007853 shlibpath_var=LIBPATH
7854
a.rottmann9bc8b932004-02-29 15:18:31 +00007855 # AIX 3 has no versioning support, so we append a major version to the name.
7856 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007857 ;;
7858
7859aix4* | aix5*)
7860 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007861 need_lib_prefix=no
7862 need_version=no
7863 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007864 if test "$host_cpu" = ia64; then
7865 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007867 shlibpath_var=LD_LIBRARY_PATH
7868 else
7869 # With GCC up to 2.95.x, collect2 would create an import file
7870 # for dependence libraries. The import file would start with
7871 # the line `#! .'. This would cause the generated library to
7872 # depend on `.', always an invalid library. This was fixed in
7873 # development snapshots of GCC prior to 3.0.
7874 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007875 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7877 echo ' yes '
7878 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7879 :
7880 else
7881 can_build_shared=no
7882 fi
7883 ;;
drh71eb93e2001-09-28 01:34:43 +00007884 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7886 # soname into executable. Probably we can add versioning support to
7887 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007888 if test "$aix_use_runtimelinking" = yes; then
7889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7890 # instead of lib<name>.a to let people know that these are not
7891 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007893 else
7894 # We preserve .a as extension for shared libraries through AIX4.2
7895 # and later when we are not doing run time linking.
7896 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007897 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007898 fi
7899 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007900 fi
7901 ;;
7902
7903amigaos*)
7904 library_names_spec='$libname.ixlibrary $libname.a'
7905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 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 +00007907 ;;
7908
7909beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007911 dynamic_linker="$host_os ld.so"
7912 shlibpath_var=LIBRARY_PATH
7913 ;;
7914
vapier7f19c022007-02-17 14:46:31 +00007915bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007916 version_type=linux
7917 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7921 shlibpath_var=LD_LIBRARY_PATH
7922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7924 # the default ld.so.conf also contains /usr/contrib/lib and
7925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7926 # libtool to hard-code these into programs
7927 ;;
7928
7929cygwin* | mingw* | pw32*)
7930 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007931 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007932 need_version=no
7933 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007934
drh71eb93e2001-09-28 01:34:43 +00007935 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007937 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7939 postinstall_cmds='base_file=`basename \${file}`~
7940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007941 dldir=$destdir/`dirname \$dlpath`~
7942 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007943 $install_prog $dir/$dlname \$dldir/$dlname~
7944 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +00007945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007946 dlpath=$dir/\$dldll~
7947 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007948 shlibpath_overrides_runpath=yes
7949
7950 case $host_os in
7951 cygwin*)
7952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7955 ;;
7956 mingw*)
7957 # MinGW DLLs use traditional 'lib' prefix
7958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7960 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7961 # It is most probably a Windows format PATH printed by
7962 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7963 # path with ; separators, and with drive letters. We can handle the
7964 # drive letters (cygwin fileutils understands them), so leave them,
7965 # especially as we might pass files found there to a mingw objdump,
7966 # which wouldn't understand a cygwinified path. Ahh.
7967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7968 else
7969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7970 fi
7971 ;;
7972 pw32*)
7973 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007974 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 +00007975 ;;
7976 esac
drh71eb93e2001-09-28 01:34:43 +00007977 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007978
vapier7f19c022007-02-17 14:46:31 +00007979 linux*)
7980 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7982 supports_anon_versioning=no
7983 case `$LD -v 2>/dev/null` in
7984 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7985 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7986 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7987 *\ 2.11.*) ;; # other 2.11 versions
7988 *) supports_anon_versioning=yes ;;
7989 esac
7990 if test $supports_anon_versioning = yes; then
7991 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7992cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7993$echo "local: *; };" >> $output_objdir/$libname.ver~
7994 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7995 else
7996 $archive_expsym_cmds="$archive_cmds"
7997 fi
7998 else
7999 ld_shlibs=no
8000 fi
8001 ;;
8002
drh71eb93e2001-09-28 01:34:43 +00008003 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008004 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008005 ;;
8006 esac
8007 dynamic_linker='Win32 ld.exe'
8008 # FIXME: first we should search . and the directory the executable is in
8009 shlibpath_var=PATH
8010 ;;
8011
8012darwin* | rhapsody*)
8013 dynamic_linker="$host_os dyld"
8014 version_type=darwin
8015 need_lib_prefix=no
8016 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008017 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8018 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008019 shlibpath_overrides_runpath=yes
8020 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008021 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +00008022 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8023 if test "$GCC" = yes; then
8024 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"`
8025 else
8026 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8027 fi
8028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8029 ;;
8030
8031dgux*)
8032 version_type=linux
8033 need_lib_prefix=no
8034 need_version=no
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8036 soname_spec='${libname}${release}${shared_ext}$major'
8037 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008038 ;;
8039
a.rottmann84e63352003-03-24 09:42:16 +00008040freebsd1*)
8041 dynamic_linker=no
8042 ;;
8043
a.rottmann9bc8b932004-02-29 15:18:31 +00008044kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008045 version_type=linux
8046 need_lib_prefix=no
8047 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8049 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008050 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008051 shlibpath_overrides_runpath=no
8052 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008053 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00008054 ;;
8055
vapier7f19c022007-02-17 14:46:31 +00008056freebsd* | dragonfly*)
8057 # DragonFly does not have aout. When/if they implement a new
8058 # versioning mechanism, adjust this.
8059 if test -x /usr/bin/objformat; then
8060 objformat=`/usr/bin/objformat`
8061 else
8062 case $host_os in
8063 freebsd[123]*) objformat=aout ;;
8064 *) objformat=elf ;;
8065 esac
8066 fi
8067 # Handle Gentoo/FreeBSD as it was Linux
8068 case $host_vendor in
8069 gentoo)
8070 version_type=linux ;;
8071 *)
8072 version_type=freebsd-$objformat ;;
8073 esac
8074
drh71eb93e2001-09-28 01:34:43 +00008075 case $version_type in
8076 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008078 need_version=no
8079 need_lib_prefix=no
8080 ;;
8081 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008083 need_version=yes
8084 ;;
vapier7f19c022007-02-17 14:46:31 +00008085 linux)
8086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 need_lib_prefix=no
8089 need_version=no
8090 ;;
drh71eb93e2001-09-28 01:34:43 +00008091 esac
8092 shlibpath_var=LD_LIBRARY_PATH
8093 case $host_os in
8094 freebsd2*)
8095 shlibpath_overrides_runpath=yes
8096 ;;
vapier7f19c022007-02-17 14:46:31 +00008097 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008098 shlibpath_overrides_runpath=yes
8099 hardcode_into_libs=yes
8100 ;;
vapier7f19c022007-02-17 14:46:31 +00008101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008103 shlibpath_overrides_runpath=no
8104 hardcode_into_libs=yes
8105 ;;
vapier7f19c022007-02-17 14:46:31 +00008106 freebsd*) # from 4.6 on
8107 shlibpath_overrides_runpath=yes
8108 hardcode_into_libs=yes
8109 ;;
drh71eb93e2001-09-28 01:34:43 +00008110 esac
8111 ;;
8112
8113gnu*)
8114 version_type=linux
8115 need_lib_prefix=no
8116 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008119 shlibpath_var=LD_LIBRARY_PATH
8120 hardcode_into_libs=yes
8121 ;;
8122
8123hpux9* | hpux10* | hpux11*)
8124 # Give a soname corresponding to the major version so that dld.sl refuses to
8125 # link against other versions.
8126 version_type=sunos
8127 need_lib_prefix=no
8128 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008129 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008130 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008131 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008132 hardcode_into_libs=yes
8133 dynamic_linker="$host_os dld.so"
8134 shlibpath_var=LD_LIBRARY_PATH
8135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 soname_spec='${libname}${release}${shared_ext}$major'
8138 if test "X$HPUX_IA64_MODE" = X32; then
8139 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8140 else
8141 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8142 fi
8143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8144 ;;
8145 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +00008146 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008147 hardcode_into_libs=yes
8148 dynamic_linker="$host_os dld.sl"
8149 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8150 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8154 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8155 ;;
8156 *)
vapier7f19c022007-02-17 14:46:31 +00008157 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008158 dynamic_linker="$host_os dld.sl"
8159 shlibpath_var=SHLIB_PATH
8160 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 ;;
8164 esac
drh71eb93e2001-09-28 01:34:43 +00008165 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8166 postinstall_cmds='chmod 555 $lib'
8167 ;;
8168
vapier7f19c022007-02-17 14:46:31 +00008169interix3*)
8170 version_type=linux
8171 need_lib_prefix=no
8172 need_version=no
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8176 shlibpath_var=LD_LIBRARY_PATH
8177 shlibpath_overrides_runpath=no
8178 hardcode_into_libs=yes
8179 ;;
8180
a.rottmann84e63352003-03-24 09:42:16 +00008181irix5* | irix6* | nonstopux*)
8182 case $host_os in
8183 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008184 *)
8185 if test "$lt_cv_prog_gnu_ld" = yes; then
8186 version_type=linux
8187 else
8188 version_type=irix
8189 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008190 esac
drh71eb93e2001-09-28 01:34:43 +00008191 need_lib_prefix=no
8192 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008193 soname_spec='${libname}${release}${shared_ext}$major'
8194 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 +00008195 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008196 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008197 libsuff= shlibsuff=
8198 ;;
8199 *)
8200 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008201 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8202 libsuff= shlibsuff= libmagic=32-bit;;
8203 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8204 libsuff=32 shlibsuff=N32 libmagic=N32;;
8205 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8206 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008207 *) libsuff= shlibsuff= libmagic=never-match;;
8208 esac
8209 ;;
8210 esac
8211 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8212 shlibpath_overrides_runpath=no
8213 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8214 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008215 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008216 ;;
8217
8218# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008219linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008220 dynamic_linker=no
8221 ;;
8222
8223# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00008224linux*)
drh71eb93e2001-09-28 01:34:43 +00008225 version_type=linux
8226 need_lib_prefix=no
8227 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=no
8233 # This implies no fast_install, which is unacceptable.
8234 # Some rework will be needed to allow for fast_install
8235 # before this can be enabled.
8236 hardcode_into_libs=yes
8237
a.rottmann9bc8b932004-02-29 15:18:31 +00008238 # Append ld.so.conf contents to the search path
8239 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +00008240 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' ' '`
8241 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008242 fi
8243
drh71eb93e2001-09-28 01:34:43 +00008244 # We used to test for /lib/ld.so.1 and disable shared libraries on
8245 # powerpc, because MkLinux only supported shared libraries with the
8246 # GNU dynamic linker. Since this was broken with cross compilers,
8247 # most powerpc-linux boxes support dynamic linking these days and
8248 # people can always --disable-shared, the test was removed, and we
8249 # assume the GNU/Linux dynamic linker is in use.
8250 dynamic_linker='GNU/Linux ld.so'
8251 ;;
8252
a.rottmann9bc8b932004-02-29 15:18:31 +00008253knetbsd*-gnu)
8254 version_type=linux
8255 need_lib_prefix=no
8256 need_version=no
8257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8258 soname_spec='${libname}${release}${shared_ext}$major'
8259 shlibpath_var=LD_LIBRARY_PATH
8260 shlibpath_overrides_runpath=no
8261 hardcode_into_libs=yes
8262 dynamic_linker='GNU ld.so'
8263 ;;
8264
drh71eb93e2001-09-28 01:34:43 +00008265netbsd*)
8266 version_type=sunos
8267 need_lib_prefix=no
8268 need_version=no
8269 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8272 dynamic_linker='NetBSD (a.out) ld.so'
8273 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008276 dynamic_linker='NetBSD ld.elf_so'
8277 fi
8278 shlibpath_var=LD_LIBRARY_PATH
8279 shlibpath_overrides_runpath=yes
8280 hardcode_into_libs=yes
8281 ;;
8282
8283newsos6)
8284 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8286 shlibpath_var=LD_LIBRARY_PATH
8287 shlibpath_overrides_runpath=yes
8288 ;;
8289
8290nto-qnx*)
8291 version_type=linux
8292 need_lib_prefix=no
8293 need_version=no
8294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8295 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=yes
8298 ;;
8299
drh71eb93e2001-09-28 01:34:43 +00008300openbsd*)
8301 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008302 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008303 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8305 case $host_os in
8306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8307 *) need_version=no ;;
8308 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8311 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008312 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 +00008313 case $host_os in
8314 openbsd2.[89] | openbsd2.[89].*)
8315 shlibpath_overrides_runpath=no
8316 ;;
8317 *)
8318 shlibpath_overrides_runpath=yes
8319 ;;
8320 esac
a.rottmann84e63352003-03-24 09:42:16 +00008321 else
8322 shlibpath_overrides_runpath=yes
8323 fi
drh71eb93e2001-09-28 01:34:43 +00008324 ;;
8325
8326os2*)
8327 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008328 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008329 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008330 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008331 dynamic_linker='OS/2 ld.exe'
8332 shlibpath_var=LIBPATH
8333 ;;
8334
8335osf3* | osf4* | osf5*)
8336 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008337 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008338 need_version=no
8339 soname_spec='${libname}${release}${shared_ext}$major'
8340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008341 shlibpath_var=LD_LIBRARY_PATH
8342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8344 ;;
8345
drh71eb93e2001-09-28 01:34:43 +00008346solaris*)
8347 version_type=linux
8348 need_lib_prefix=no
8349 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008352 shlibpath_var=LD_LIBRARY_PATH
8353 shlibpath_overrides_runpath=yes
8354 hardcode_into_libs=yes
8355 # ldd complains unless libraries are executable
8356 postinstall_cmds='chmod +x $lib'
8357 ;;
8358
8359sunos4*)
8360 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=yes
8365 if test "$with_gnu_ld" = yes; then
8366 need_lib_prefix=no
8367 fi
8368 need_version=yes
8369 ;;
8370
vapier7f19c022007-02-17 14:46:31 +00008371sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008372 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8374 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008375 shlibpath_var=LD_LIBRARY_PATH
8376 case $host_vendor in
8377 sni)
8378 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008379 need_lib_prefix=no
8380 export_dynamic_flag_spec='${wl}-Blargedynsym'
8381 runpath_var=LD_RUN_PATH
8382 ;;
8383 siemens)
8384 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008385 ;;
8386 motorola)
8387 need_lib_prefix=no
8388 need_version=no
8389 shlibpath_overrides_runpath=no
8390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8391 ;;
8392 esac
8393 ;;
8394
8395sysv4*MP*)
8396 if test -d /usr/nec ;then
8397 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8399 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008400 shlibpath_var=LD_LIBRARY_PATH
8401 fi
8402 ;;
8403
vapier7f19c022007-02-17 14:46:31 +00008404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8405 version_type=freebsd-elf
8406 need_lib_prefix=no
8407 need_version=no
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8409 soname_spec='${libname}${release}${shared_ext}$major'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 hardcode_into_libs=yes
8412 if test "$with_gnu_ld" = yes; then
8413 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8414 shlibpath_overrides_runpath=no
8415 else
8416 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8417 shlibpath_overrides_runpath=yes
8418 case $host_os in
8419 sco3.2v5*)
8420 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8421 ;;
8422 esac
8423 fi
8424 sys_lib_dlsearch_path_spec='/usr/lib'
8425 ;;
8426
a.rottmann9bc8b932004-02-29 15:18:31 +00008427uts4*)
8428 version_type=linux
8429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8430 soname_spec='${libname}${release}${shared_ext}$major'
8431 shlibpath_var=LD_LIBRARY_PATH
8432 ;;
8433
drh71eb93e2001-09-28 01:34:43 +00008434*)
8435 dynamic_linker=no
8436 ;;
8437esac
mlcreech94984912008-03-04 19:03:08 +00008438{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8439echo "${ECHO_T}$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008440test "$dynamic_linker" = no && can_build_shared=no
8441
vapier7f19c022007-02-17 14:46:31 +00008442variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8443if test "$GCC" = yes; then
8444 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8445fi
8446
mlcreech94984912008-03-04 19:03:08 +00008447{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8448echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008449hardcode_action=
8450if test -n "$hardcode_libdir_flag_spec" || \
vapier7f19c022007-02-17 14:46:31 +00008451 test -n "$runpath_var" || \
8452 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008453
a.rottmann9bc8b932004-02-29 15:18:31 +00008454 # We can hardcode non-existant directories.
8455 if test "$hardcode_direct" != no &&
8456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8457 # have to relink, otherwise we might link with an installed library
8458 # when we should be linking with a yet-to-be-installed one
8459 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8460 test "$hardcode_minus_L" != no; then
8461 # Linking always hardcodes the temporary library directory.
8462 hardcode_action=relink
8463 else
8464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8465 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008466 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008467else
8468 # We cannot hardcode anything, or else we can only hardcode existing
8469 # directories.
8470 hardcode_action=unsupported
8471fi
mlcreech94984912008-03-04 19:03:08 +00008472{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8473echo "${ECHO_T}$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008474
8475if test "$hardcode_action" = relink; then
8476 # Fast installation is not supported
8477 enable_fast_install=no
8478elif test "$shlibpath_overrides_runpath" = yes ||
8479 test "$enable_shared" = no; then
8480 # Fast installation is not necessary
8481 enable_fast_install=needless
8482fi
8483
a.rottmann9bc8b932004-02-29 15:18:31 +00008484striplib=
8485old_striplib=
mlcreech94984912008-03-04 19:03:08 +00008486{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8487echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008488if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8490 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mlcreech94984912008-03-04 19:03:08 +00008491 { echo "$as_me:$LINENO: result: yes" >&5
8492echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008493else
8494# FIXME - insert some real tests, host_os isn't really good enough
8495 case $host_os in
8496 darwin*)
8497 if test -n "$STRIP" ; then
8498 striplib="$STRIP -x"
mlcreech94984912008-03-04 19:03:08 +00008499 { echo "$as_me:$LINENO: result: yes" >&5
8500echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008501 else
mlcreech94984912008-03-04 19:03:08 +00008502 { echo "$as_me:$LINENO: result: no" >&5
8503echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008504fi
8505 ;;
8506 *)
mlcreech94984912008-03-04 19:03:08 +00008507 { echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008509 ;;
8510 esac
a.rottmann84e63352003-03-24 09:42:16 +00008511fi
8512
drh71eb93e2001-09-28 01:34:43 +00008513if test "x$enable_dlopen" != xyes; then
8514 enable_dlopen=unknown
8515 enable_dlopen_self=unknown
8516 enable_dlopen_self_static=unknown
8517else
8518 lt_cv_dlopen=no
8519 lt_cv_dlopen_libs=
8520
8521 case $host_os in
8522 beos*)
8523 lt_cv_dlopen="load_add_on"
8524 lt_cv_dlopen_libs=
8525 lt_cv_dlopen_self=yes
8526 ;;
8527
a.rottmann9bc8b932004-02-29 15:18:31 +00008528 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008529 lt_cv_dlopen="LoadLibrary"
8530 lt_cv_dlopen_libs=
8531 ;;
8532
a.rottmann9bc8b932004-02-29 15:18:31 +00008533 cygwin*)
8534 lt_cv_dlopen="dlopen"
8535 lt_cv_dlopen_libs=
8536 ;;
8537
8538 darwin*)
8539 # if libdl is installed we need to link against it
mlcreech94984912008-03-04 19:03:08 +00008540 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8541echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008542if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8543 echo $ECHO_N "(cached) $ECHO_C" >&6
8544else
8545 ac_check_lib_save_LIBS=$LIBS
8546LIBS="-ldl $LIBS"
8547cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553
mlcreech94984912008-03-04 19:03:08 +00008554/* Override any GCC internal prototype to avoid an error.
8555 Use char because int might match the return type of a GCC
8556 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008557#ifdef __cplusplus
8558extern "C"
8559#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00008560char dlopen ();
8561int
8562main ()
8563{
mlcreech94984912008-03-04 19:03:08 +00008564return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008565 ;
8566 return 0;
8567}
8568_ACEOF
8569rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008570if { (ac_try="$ac_link"
8571case "(($ac_try" in
8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573 *) ac_try_echo=$ac_try;;
8574esac
8575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008577 ac_status=$?
8578 grep -v '^ *+' conftest.er1 >conftest.err
8579 rm -f conftest.er1
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest$ac_exeext &&
8586 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008587 ac_cv_lib_dl_dlopen=yes
8588else
8589 echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
mlcreech94984912008-03-04 19:03:08 +00008592 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008593fi
mlcreech94984912008-03-04 19:03:08 +00008594
8595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00008596 conftest$ac_exeext conftest.$ac_ext
8597LIBS=$ac_check_lib_save_LIBS
8598fi
mlcreech94984912008-03-04 19:03:08 +00008599{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8600echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008601if test $ac_cv_lib_dl_dlopen = yes; then
8602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8603else
8604
8605 lt_cv_dlopen="dyld"
8606 lt_cv_dlopen_libs=
8607 lt_cv_dlopen_self=yes
8608
8609fi
8610
8611 ;;
8612
drh71eb93e2001-09-28 01:34:43 +00008613 *)
mlcreech94984912008-03-04 19:03:08 +00008614 { echo "$as_me:$LINENO: checking for shl_load" >&5
8615echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008616if test "${ac_cv_func_shl_load+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
8619 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008620/* confdefs.h. */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008625/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8627#define shl_load innocuous_shl_load
8628
drh71eb93e2001-09-28 01:34:43 +00008629/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008630 which can conflict with char shl_load (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008633
a.rottmann84e63352003-03-24 09:42:16 +00008634#ifdef __STDC__
8635# include <limits.h>
8636#else
8637# include <assert.h>
8638#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008639
8640#undef shl_load
8641
mlcreech94984912008-03-04 19:03:08 +00008642/* Override any GCC internal prototype to avoid an error.
8643 Use char because int might match the return type of a GCC
8644 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008645#ifdef __cplusplus
8646extern "C"
8647#endif
drh71eb93e2001-09-28 01:34:43 +00008648char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008649/* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008652#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00008653choke me
drh71eb93e2001-09-28 01:34:43 +00008654#endif
8655
a.rottmann84e63352003-03-24 09:42:16 +00008656int
8657main ()
8658{
mlcreech94984912008-03-04 19:03:08 +00008659return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008660 ;
8661 return 0;
8662}
8663_ACEOF
8664rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008665if { (ac_try="$ac_link"
8666case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008672 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest$ac_exeext &&
8681 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008682 ac_cv_func_shl_load=yes
8683else
8684 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008685sed 's/^/| /' conftest.$ac_ext >&5
8686
mlcreech94984912008-03-04 19:03:08 +00008687 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008688fi
mlcreech94984912008-03-04 19:03:08 +00008689
8690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008691 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008692fi
mlcreech94984912008-03-04 19:03:08 +00008693{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8694echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008695if test $ac_cv_func_shl_load = yes; then
8696 lt_cv_dlopen="shl_load"
8697else
mlcreech94984912008-03-04 19:03:08 +00008698 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8699echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008700if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702else
8703 ac_check_lib_save_LIBS=$LIBS
8704LIBS="-ldld $LIBS"
8705cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008711
mlcreech94984912008-03-04 19:03:08 +00008712/* Override any GCC internal prototype to avoid an error.
8713 Use char because int might match the return type of a GCC
8714 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008715#ifdef __cplusplus
8716extern "C"
8717#endif
drh71eb93e2001-09-28 01:34:43 +00008718char shl_load ();
8719int
8720main ()
8721{
mlcreech94984912008-03-04 19:03:08 +00008722return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008723 ;
8724 return 0;
8725}
8726_ACEOF
8727rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008728if { (ac_try="$ac_link"
8729case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732esac
8733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8734 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008735 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008740 (exit $ac_status); } && {
8741 test -z "$ac_c_werror_flag" ||
8742 test ! -s conftest.err
8743 } && test -s conftest$ac_exeext &&
8744 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008745 ac_cv_lib_dld_shl_load=yes
8746else
8747 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008748sed 's/^/| /' conftest.$ac_ext >&5
8749
mlcreech94984912008-03-04 19:03:08 +00008750 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008751fi
mlcreech94984912008-03-04 19:03:08 +00008752
8753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008754 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008755LIBS=$ac_check_lib_save_LIBS
8756fi
mlcreech94984912008-03-04 19:03:08 +00008757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8758echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008759if test $ac_cv_lib_dld_shl_load = yes; then
8760 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8761else
mlcreech94984912008-03-04 19:03:08 +00008762 { echo "$as_me:$LINENO: checking for dlopen" >&5
8763echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008764if test "${ac_cv_func_dlopen+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008773/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8775#define dlopen innocuous_dlopen
8776
a.rottmann84e63352003-03-24 09:42:16 +00008777/* System header to define __stub macros and hopefully few prototypes,
8778 which can conflict with char dlopen (); below.
8779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8780 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008781
a.rottmann84e63352003-03-24 09:42:16 +00008782#ifdef __STDC__
8783# include <limits.h>
8784#else
8785# include <assert.h>
8786#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008787
8788#undef dlopen
8789
mlcreech94984912008-03-04 19:03:08 +00008790/* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008793#ifdef __cplusplus
8794extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008795#endif
a.rottmann84e63352003-03-24 09:42:16 +00008796char dlopen ();
8797/* The GNU C library defines this for functions which it implements
8798 to always fail with ENOSYS. Some functions are actually named
8799 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008800#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00008801choke me
a.rottmann84e63352003-03-24 09:42:16 +00008802#endif
8803
8804int
8805main ()
8806{
mlcreech94984912008-03-04 19:03:08 +00008807return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00008808 ;
8809 return 0;
8810}
8811_ACEOF
8812rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008813if { (ac_try="$ac_link"
8814case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817esac
8818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008820 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008825 (exit $ac_status); } && {
8826 test -z "$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8828 } && test -s conftest$ac_exeext &&
8829 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00008830 ac_cv_func_dlopen=yes
8831else
8832 echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
mlcreech94984912008-03-04 19:03:08 +00008835 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008836fi
mlcreech94984912008-03-04 19:03:08 +00008837
8838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008839 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008840fi
mlcreech94984912008-03-04 19:03:08 +00008841{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8842echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008843if test $ac_cv_func_dlopen = yes; then
8844 lt_cv_dlopen="dlopen"
8845else
mlcreech94984912008-03-04 19:03:08 +00008846 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8847echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008848if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850else
8851 ac_check_lib_save_LIBS=$LIBS
8852LIBS="-ldl $LIBS"
8853cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008854/* confdefs.h. */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008859
mlcreech94984912008-03-04 19:03:08 +00008860/* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008863#ifdef __cplusplus
8864extern "C"
8865#endif
drh71eb93e2001-09-28 01:34:43 +00008866char dlopen ();
8867int
8868main ()
8869{
mlcreech94984912008-03-04 19:03:08 +00008870return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008871 ;
8872 return 0;
8873}
8874_ACEOF
8875rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008876if { (ac_try="$ac_link"
8877case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880esac
8881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008883 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest$ac_exeext &&
8892 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008893 ac_cv_lib_dl_dlopen=yes
8894else
8895 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008896sed 's/^/| /' conftest.$ac_ext >&5
8897
mlcreech94984912008-03-04 19:03:08 +00008898 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008899fi
mlcreech94984912008-03-04 19:03:08 +00008900
8901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008902 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008903LIBS=$ac_check_lib_save_LIBS
8904fi
mlcreech94984912008-03-04 19:03:08 +00008905{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8906echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008907if test $ac_cv_lib_dl_dlopen = yes; then
8908 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8909else
mlcreech94984912008-03-04 19:03:08 +00008910 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8911echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008912if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915 ac_check_lib_save_LIBS=$LIBS
8916LIBS="-lsvld $LIBS"
8917cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008918/* confdefs.h. */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
8922/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008923
mlcreech94984912008-03-04 19:03:08 +00008924/* Override any GCC internal prototype to avoid an error.
8925 Use char because int might match the return type of a GCC
8926 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008927#ifdef __cplusplus
8928extern "C"
8929#endif
drh71eb93e2001-09-28 01:34:43 +00008930char dlopen ();
8931int
8932main ()
8933{
mlcreech94984912008-03-04 19:03:08 +00008934return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008935 ;
8936 return 0;
8937}
8938_ACEOF
8939rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008940if { (ac_try="$ac_link"
8941case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008947 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest$ac_exeext &&
8956 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008957 ac_cv_lib_svld_dlopen=yes
8958else
8959 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008960sed 's/^/| /' conftest.$ac_ext >&5
8961
mlcreech94984912008-03-04 19:03:08 +00008962 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008963fi
mlcreech94984912008-03-04 19:03:08 +00008964
8965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008966 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008967LIBS=$ac_check_lib_save_LIBS
8968fi
mlcreech94984912008-03-04 19:03:08 +00008969{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8970echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008971if test $ac_cv_lib_svld_dlopen = yes; then
8972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008973else
mlcreech94984912008-03-04 19:03:08 +00008974 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8975echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008976if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978else
8979 ac_check_lib_save_LIBS=$LIBS
8980LIBS="-ldld $LIBS"
8981cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h. */
8987
mlcreech94984912008-03-04 19:03:08 +00008988/* Override any GCC internal prototype to avoid an error.
8989 Use char because int might match the return type of a GCC
8990 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008991#ifdef __cplusplus
8992extern "C"
8993#endif
a.rottmann84e63352003-03-24 09:42:16 +00008994char dld_link ();
8995int
8996main ()
8997{
mlcreech94984912008-03-04 19:03:08 +00008998return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00008999 ;
9000 return 0;
9001}
9002_ACEOF
9003rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009004if { (ac_try="$ac_link"
9005case "(($ac_try" in
9006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9008esac
9009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009011 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009016 (exit $ac_status); } && {
9017 test -z "$ac_c_werror_flag" ||
9018 test ! -s conftest.err
9019 } && test -s conftest$ac_exeext &&
9020 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00009021 ac_cv_lib_dld_dld_link=yes
9022else
9023 echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
mlcreech94984912008-03-04 19:03:08 +00009026 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009027fi
mlcreech94984912008-03-04 19:03:08 +00009028
9029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009030 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009031LIBS=$ac_check_lib_save_LIBS
9032fi
mlcreech94984912008-03-04 19:03:08 +00009033{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9034echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009035if test $ac_cv_lib_dld_dld_link = yes; then
9036 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9037fi
9038
drh71eb93e2001-09-28 01:34:43 +00009039
9040fi
9041
drh71eb93e2001-09-28 01:34:43 +00009042
9043fi
9044
a.rottmann84e63352003-03-24 09:42:16 +00009045
9046fi
9047
9048
9049fi
9050
9051
drh71eb93e2001-09-28 01:34:43 +00009052fi
9053
9054 ;;
9055 esac
9056
9057 if test "x$lt_cv_dlopen" != xno; then
9058 enable_dlopen=yes
9059 else
9060 enable_dlopen=no
9061 fi
9062
9063 case $lt_cv_dlopen in
9064 dlopen)
9065 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009066 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009067
9068 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009070
9071 save_LIBS="$LIBS"
9072 LIBS="$lt_cv_dlopen_libs $LIBS"
9073
mlcreech94984912008-03-04 19:03:08 +00009074 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9075echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009076if test "${lt_cv_dlopen_self+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079 if test "$cross_compiling" = yes; then :
9080 lt_cv_dlopen_self=cross
9081else
a.rottmann9bc8b932004-02-29 15:18:31 +00009082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009083 lt_status=$lt_dlunknown
9084 cat > conftest.$ac_ext <<EOF
mlcreech94984912008-03-04 19:03:08 +00009085#line 9085 "configure"
drh71eb93e2001-09-28 01:34:43 +00009086#include "confdefs.h"
9087
9088#if HAVE_DLFCN_H
9089#include <dlfcn.h>
9090#endif
9091
9092#include <stdio.h>
9093
9094#ifdef RTLD_GLOBAL
9095# define LT_DLGLOBAL RTLD_GLOBAL
9096#else
9097# ifdef DL_GLOBAL
9098# define LT_DLGLOBAL DL_GLOBAL
9099# else
9100# define LT_DLGLOBAL 0
9101# endif
9102#endif
9103
9104/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9105 find out it does not work in some platform. */
9106#ifndef LT_DLLAZY_OR_NOW
9107# ifdef RTLD_LAZY
9108# define LT_DLLAZY_OR_NOW RTLD_LAZY
9109# else
9110# ifdef DL_LAZY
9111# define LT_DLLAZY_OR_NOW DL_LAZY
9112# else
9113# ifdef RTLD_NOW
9114# define LT_DLLAZY_OR_NOW RTLD_NOW
9115# else
9116# ifdef DL_NOW
9117# define LT_DLLAZY_OR_NOW DL_NOW
9118# else
9119# define LT_DLLAZY_OR_NOW 0
9120# endif
9121# endif
9122# endif
9123# endif
9124#endif
9125
9126#ifdef __cplusplus
9127extern "C" void exit (int);
9128#endif
9129
9130void fnord() { int i=42;}
9131int main ()
9132{
9133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9134 int status = $lt_dlunknown;
9135
9136 if (self)
9137 {
9138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9140 /* dlclose (self); */
9141 }
vapier7f19c022007-02-17 14:46:31 +00009142 else
9143 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009144
9145 exit (status);
9146}
9147EOF
a.rottmann84e63352003-03-24 09:42:16 +00009148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009149 (eval $ac_link) 2>&5
9150 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009153 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009154 lt_status=$?
9155 case x$lt_status in
9156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009159 esac
9160 else :
9161 # compilation failed
9162 lt_cv_dlopen_self=no
9163 fi
9164fi
9165rm -fr conftest*
9166
a.rottmann84e63352003-03-24 09:42:16 +00009167
drh71eb93e2001-09-28 01:34:43 +00009168fi
mlcreech94984912008-03-04 19:03:08 +00009169{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9170echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009171
9172 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00009174 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9175echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009176if test "${lt_cv_dlopen_self_static+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9178else
9179 if test "$cross_compiling" = yes; then :
9180 lt_cv_dlopen_self_static=cross
9181else
a.rottmann9bc8b932004-02-29 15:18:31 +00009182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009183 lt_status=$lt_dlunknown
9184 cat > conftest.$ac_ext <<EOF
mlcreech94984912008-03-04 19:03:08 +00009185#line 9185 "configure"
drh71eb93e2001-09-28 01:34:43 +00009186#include "confdefs.h"
9187
9188#if HAVE_DLFCN_H
9189#include <dlfcn.h>
9190#endif
9191
9192#include <stdio.h>
9193
9194#ifdef RTLD_GLOBAL
9195# define LT_DLGLOBAL RTLD_GLOBAL
9196#else
9197# ifdef DL_GLOBAL
9198# define LT_DLGLOBAL DL_GLOBAL
9199# else
9200# define LT_DLGLOBAL 0
9201# endif
9202#endif
9203
9204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9205 find out it does not work in some platform. */
9206#ifndef LT_DLLAZY_OR_NOW
9207# ifdef RTLD_LAZY
9208# define LT_DLLAZY_OR_NOW RTLD_LAZY
9209# else
9210# ifdef DL_LAZY
9211# define LT_DLLAZY_OR_NOW DL_LAZY
9212# else
9213# ifdef RTLD_NOW
9214# define LT_DLLAZY_OR_NOW RTLD_NOW
9215# else
9216# ifdef DL_NOW
9217# define LT_DLLAZY_OR_NOW DL_NOW
9218# else
9219# define LT_DLLAZY_OR_NOW 0
9220# endif
9221# endif
9222# endif
9223# endif
9224#endif
9225
9226#ifdef __cplusplus
9227extern "C" void exit (int);
9228#endif
9229
9230void fnord() { int i=42;}
9231int main ()
9232{
9233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9234 int status = $lt_dlunknown;
9235
9236 if (self)
9237 {
9238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9239 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9240 /* dlclose (self); */
9241 }
vapier7f19c022007-02-17 14:46:31 +00009242 else
9243 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009244
9245 exit (status);
9246}
9247EOF
a.rottmann84e63352003-03-24 09:42:16 +00009248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009249 (eval $ac_link) 2>&5
9250 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009252 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009253 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009254 lt_status=$?
9255 case x$lt_status in
9256 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9257 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009258 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009259 esac
9260 else :
9261 # compilation failed
9262 lt_cv_dlopen_self_static=no
9263 fi
9264fi
9265rm -fr conftest*
9266
a.rottmann84e63352003-03-24 09:42:16 +00009267
drh71eb93e2001-09-28 01:34:43 +00009268fi
mlcreech94984912008-03-04 19:03:08 +00009269{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9270echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009271 fi
9272
9273 CPPFLAGS="$save_CPPFLAGS"
9274 LDFLAGS="$save_LDFLAGS"
9275 LIBS="$save_LIBS"
9276 ;;
9277 esac
9278
9279 case $lt_cv_dlopen_self in
9280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9281 *) enable_dlopen_self=unknown ;;
9282 esac
9283
9284 case $lt_cv_dlopen_self_static in
9285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9286 *) enable_dlopen_self_static=unknown ;;
9287 esac
9288fi
9289
drh71eb93e2001-09-28 01:34:43 +00009290
vapier7f19c022007-02-17 14:46:31 +00009291# Report which library types will actually be built
mlcreech94984912008-03-04 19:03:08 +00009292{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9293echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9294{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9295echo "${ECHO_T}$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009296
mlcreech94984912008-03-04 19:03:08 +00009297{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9298echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009299test "$can_build_shared" = "no" && enable_shared=no
9300
9301# On AIX, shared libraries and static libraries use the same namespace, and
9302# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +00009303case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00009304aix3*)
9305 test "$enable_shared" = yes && enable_static=no
9306 if test -n "$RANLIB"; then
9307 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9308 postinstall_cmds='$RANLIB $lib'
9309 fi
9310 ;;
9311
vapier7f19c022007-02-17 14:46:31 +00009312aix4* | aix5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009313 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9314 test "$enable_shared" = yes && enable_static=no
9315 fi
a.rottmann84e63352003-03-24 09:42:16 +00009316 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009317esac
mlcreech94984912008-03-04 19:03:08 +00009318{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9319echo "${ECHO_T}$enable_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009320
mlcreech94984912008-03-04 19:03:08 +00009321{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9322echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009323# Make sure either enable_shared or enable_static is yes.
9324test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00009325{ echo "$as_me:$LINENO: result: $enable_static" >&5
9326echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009327
9328# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00009329# libtool distribution, otherwise you forgot to ship ltmain.sh
9330# with your package, and you will get complaints that there are
9331# no rules to generate ltmain.sh.
9332if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009333 # See if we are running on zsh, and set the options which allow our commands through
9334 # without removal of \ escapes.
9335 if test -n "${ZSH_VERSION+set}" ; then
9336 setopt NO_GLOB_SUBST
9337 fi
drh71eb93e2001-09-28 01:34:43 +00009338 # Now quote all the things that may contain metacharacters while being
9339 # careful not to overquote the AC_SUBSTed values. We take copies of the
9340 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +00009341 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 +00009342 SED SHELL STRIP \
9343 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9344 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9345 deplibs_check_method reload_flag reload_cmds need_locks \
9346 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9347 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00009348 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00009349 old_postinstall_cmds old_postuninstall_cmds \
9350 compiler \
9351 CC \
9352 LD \
9353 lt_prog_compiler_wl \
9354 lt_prog_compiler_pic \
9355 lt_prog_compiler_static \
9356 lt_prog_compiler_no_builtin_flag \
9357 export_dynamic_flag_spec \
9358 thread_safe_flag_spec \
9359 whole_archive_flag_spec \
9360 enable_shared_with_static_runtimes \
9361 old_archive_cmds \
9362 old_archive_from_new_cmds \
9363 predep_objects \
9364 postdep_objects \
9365 predeps \
9366 postdeps \
9367 compiler_lib_search_path \
9368 archive_cmds \
9369 archive_expsym_cmds \
9370 postinstall_cmds \
9371 postuninstall_cmds \
9372 old_archive_from_expsyms_cmds \
9373 allow_undefined_flag \
9374 no_undefined_flag \
9375 export_symbols_cmds \
9376 hardcode_libdir_flag_spec \
9377 hardcode_libdir_flag_spec_ld \
9378 hardcode_libdir_separator \
9379 hardcode_automatic \
9380 module_cmds \
9381 module_expsym_cmds \
9382 lt_cv_prog_compiler_c_o \
9383 exclude_expsyms \
9384 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00009385
9386 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00009387 old_archive_cmds | \
9388 old_archive_from_new_cmds | \
9389 archive_cmds | \
9390 archive_expsym_cmds | \
9391 module_cmds | \
9392 module_expsym_cmds | \
9393 old_archive_from_expsyms_cmds | \
9394 export_symbols_cmds | \
9395 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00009396 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00009397 old_postinstall_cmds | old_postuninstall_cmds | \
9398 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00009399 # Double-quote double-evaled strings.
9400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9401 ;;
9402 *)
9403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9404 ;;
9405 esac
9406 done
9407
a.rottmann9bc8b932004-02-29 15:18:31 +00009408 case $lt_echo in
9409 *'\$0 --fallback-echo"')
9410 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9411 ;;
9412 esac
9413
9414cfgfile="${ofile}T"
9415 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9416 $rm -f "$cfgfile"
9417 { echo "$as_me:$LINENO: creating $ofile" >&5
9418echo "$as_me: creating $ofile" >&6;}
9419
9420 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009421#! $SHELL
9422
a.rottmann9bc8b932004-02-29 15:18:31 +00009423# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00009424# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9425# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9426#
a.rottmann9bc8b932004-02-29 15:18:31 +00009427# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9428# Free Software Foundation, Inc.
9429#
9430# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00009431# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9432#
9433# This program is free software; you can redistribute it and/or modify
9434# it under the terms of the GNU General Public License as published by
9435# the Free Software Foundation; either version 2 of the License, or
9436# (at your option) any later version.
9437#
9438# This program is distributed in the hope that it will be useful, but
9439# WITHOUT ANY WARRANTY; without even the implied warranty of
9440# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9441# General Public License for more details.
9442#
9443# You should have received a copy of the GNU General Public License
9444# along with this program; if not, write to the Free Software
vapier7f19c022007-02-17 14:46:31 +00009445# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
drh71eb93e2001-09-28 01:34:43 +00009446#
9447# As a special exception to the GNU General Public License, if you
9448# distribute this file as part of a program that contains a
9449# configuration script generated by Autoconf, you may include it under
9450# the same distribution terms that you use for the rest of that program.
9451
a.rottmann9bc8b932004-02-29 15:18:31 +00009452# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00009453SED=$lt_SED
9454
drh71eb93e2001-09-28 01:34:43 +00009455# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vapier7f19c022007-02-17 14:46:31 +00009456Xsed="$SED -e 1s/^X//"
drh71eb93e2001-09-28 01:34:43 +00009457
9458# The HP-UX ksh and POSIX shell print the target directory to stdout
9459# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +00009460(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009461
a.rottmann9bc8b932004-02-29 15:18:31 +00009462# The names of the tagged configurations supported by this script.
9463available_tags=
9464
drh71eb93e2001-09-28 01:34:43 +00009465# ### BEGIN LIBTOOL CONFIG
9466
9467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9468
9469# Shell to use when invoking shell scripts.
9470SHELL=$lt_SHELL
9471
9472# Whether or not to build shared libraries.
9473build_libtool_libs=$enable_shared
9474
9475# Whether or not to build static libraries.
9476build_old_libs=$enable_static
9477
9478# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00009479build_libtool_need_lc=$archive_cmds_need_lc
9480
9481# Whether or not to disallow shared libs when runtime libs are static
9482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00009483
9484# Whether or not to optimize for fast installation.
9485fast_install=$enable_fast_install
9486
9487# The host system.
9488host_alias=$host_alias
9489host=$host
vapier7f19c022007-02-17 14:46:31 +00009490host_os=$host_os
9491
9492# The build system.
9493build_alias=$build_alias
9494build=$build
9495build_os=$build_os
drh71eb93e2001-09-28 01:34:43 +00009496
9497# An echo program that does not interpret backslashes.
9498echo=$lt_echo
9499
9500# The archiver.
9501AR=$lt_AR
9502AR_FLAGS=$lt_AR_FLAGS
9503
a.rottmann9bc8b932004-02-29 15:18:31 +00009504# A C compiler.
9505LTCC=$lt_LTCC
9506
vapier7f19c022007-02-17 14:46:31 +00009507# LTCC compiler flags.
9508LTCFLAGS=$lt_LTCFLAGS
9509
a.rottmann9bc8b932004-02-29 15:18:31 +00009510# A language-specific compiler.
9511CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00009512
9513# Is the compiler the GNU C compiler?
9514with_gcc=$GCC
9515
a.rottmann9bc8b932004-02-29 15:18:31 +00009516# An ERE matcher.
9517EGREP=$lt_EGREP
9518
drh71eb93e2001-09-28 01:34:43 +00009519# The linker used to build libraries.
9520LD=$lt_LD
9521
9522# Whether we need hard or soft links.
9523LN_S=$lt_LN_S
9524
9525# A BSD-compatible nm program.
9526NM=$lt_NM
9527
9528# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00009529STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00009530
9531# Used to examine libraries when file_magic_cmd begins "file"
9532MAGIC_CMD=$MAGIC_CMD
9533
9534# Used on cygwin: DLL creation program.
9535DLLTOOL="$DLLTOOL"
9536
9537# Used on cygwin: object dumper.
9538OBJDUMP="$OBJDUMP"
9539
9540# Used on cygwin: assembler.
9541AS="$AS"
9542
9543# The name of the directory that contains temporary libtool files.
9544objdir=$objdir
9545
9546# How to create reloadable object files.
9547reload_flag=$lt_reload_flag
9548reload_cmds=$lt_reload_cmds
9549
9550# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00009551wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00009552
9553# Object file suffix (normally "o").
9554objext="$ac_objext"
9555
9556# Old archive suffix (normally "a").
9557libext="$libext"
9558
a.rottmann9bc8b932004-02-29 15:18:31 +00009559# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +00009560shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +00009561
drh71eb93e2001-09-28 01:34:43 +00009562# Executable file suffix (normally "").
9563exeext="$exeext"
9564
9565# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00009566pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00009567pic_mode=$pic_mode
9568
a.rottmann9bc8b932004-02-29 15:18:31 +00009569# What is the maximum length of a command?
9570max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00009571
a.rottmann9bc8b932004-02-29 15:18:31 +00009572# Does compiler simultaneously support -c and -o options?
9573compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00009574
vapier7f19c022007-02-17 14:46:31 +00009575# Must we lock files when doing compilation?
drh71eb93e2001-09-28 01:34:43 +00009576need_locks=$lt_need_locks
9577
9578# Do we need the lib prefix for modules?
9579need_lib_prefix=$need_lib_prefix
9580
9581# Do we need a version for libraries?
9582need_version=$need_version
9583
9584# Whether dlopen is supported.
9585dlopen_support=$enable_dlopen
9586
9587# Whether dlopen of programs is supported.
9588dlopen_self=$enable_dlopen_self
9589
9590# Whether dlopen of statically linked programs is supported.
9591dlopen_self_static=$enable_dlopen_self_static
9592
9593# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00009594link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00009595
9596# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00009597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00009598
9599# Compiler flag to allow reflexive dlopens.
9600export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9601
9602# Compiler flag to generate shared objects directly from archives.
9603whole_archive_flag_spec=$lt_whole_archive_flag_spec
9604
9605# Compiler flag to generate thread-safe objects.
9606thread_safe_flag_spec=$lt_thread_safe_flag_spec
9607
9608# Library versioning type.
9609version_type=$version_type
9610
9611# Format of library name prefix.
9612libname_spec=$lt_libname_spec
9613
9614# List of archive names. First name is the real one, the rest are links.
9615# The last name is the one that the linker finds with -lNAME.
9616library_names_spec=$lt_library_names_spec
9617
9618# The coded name of the library, if different from the real name.
9619soname_spec=$lt_soname_spec
9620
9621# Commands used to build and install an old-style archive.
9622RANLIB=$lt_RANLIB
9623old_archive_cmds=$lt_old_archive_cmds
9624old_postinstall_cmds=$lt_old_postinstall_cmds
9625old_postuninstall_cmds=$lt_old_postuninstall_cmds
9626
9627# Create an old-style archive from a shared archive.
9628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9629
9630# Create a temporary old-style archive to link instead of a shared archive.
9631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9632
9633# Commands used to build and install a shared archive.
9634archive_cmds=$lt_archive_cmds
9635archive_expsym_cmds=$lt_archive_expsym_cmds
9636postinstall_cmds=$lt_postinstall_cmds
9637postuninstall_cmds=$lt_postuninstall_cmds
9638
a.rottmann9bc8b932004-02-29 15:18:31 +00009639# Commands used to build a loadable module (assumed same as above if empty)
9640module_cmds=$lt_module_cmds
9641module_expsym_cmds=$lt_module_expsym_cmds
9642
drh71eb93e2001-09-28 01:34:43 +00009643# Commands to strip libraries.
9644old_striplib=$lt_old_striplib
9645striplib=$lt_striplib
9646
a.rottmann9bc8b932004-02-29 15:18:31 +00009647# Dependencies to place before the objects being linked to create a
9648# shared library.
9649predep_objects=$lt_predep_objects
9650
9651# Dependencies to place after the objects being linked to create a
9652# shared library.
9653postdep_objects=$lt_postdep_objects
9654
9655# Dependencies to place before the objects being linked to create a
9656# shared library.
9657predeps=$lt_predeps
9658
9659# Dependencies to place after the objects being linked to create a
9660# shared library.
9661postdeps=$lt_postdeps
9662
9663# The library search path used internally by the compiler when linking
9664# a shared library.
9665compiler_lib_search_path=$lt_compiler_lib_search_path
9666
drh71eb93e2001-09-28 01:34:43 +00009667# Method to check whether dependent libraries are shared objects.
9668deplibs_check_method=$lt_deplibs_check_method
9669
9670# Command to use when deplibs_check_method == file_magic.
9671file_magic_cmd=$lt_file_magic_cmd
9672
9673# Flag that allows shared libraries with undefined symbols to be built.
9674allow_undefined_flag=$lt_allow_undefined_flag
9675
9676# Flag that forces no undefined symbols.
9677no_undefined_flag=$lt_no_undefined_flag
9678
9679# Commands used to finish a libtool library installation in a directory.
9680finish_cmds=$lt_finish_cmds
9681
9682# Same as above, but a single script fragment to be evaled but not shown.
9683finish_eval=$lt_finish_eval
9684
9685# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00009686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00009687
9688# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00009689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00009690
9691# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00009692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00009693
9694# This is the shared library runtime path variable.
9695runpath_var=$runpath_var
9696
9697# This is the shared library path variable.
9698shlibpath_var=$shlibpath_var
9699
9700# Is shlibpath searched before the hard-coded library search path?
9701shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9702
9703# How to hardcode a shared library path into an executable.
9704hardcode_action=$hardcode_action
9705
9706# Whether we should hardcode library paths into libraries.
9707hardcode_into_libs=$hardcode_into_libs
9708
9709# Flag to hardcode \$libdir into a binary during linking.
9710# This must work even if \$libdir does not exist.
9711hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9712
a.rottmann9bc8b932004-02-29 15:18:31 +00009713# If ld is used when linking, flag to hardcode \$libdir into
9714# a binary during linking. This must work even if \$libdir does
9715# not exist.
9716hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9717
drh71eb93e2001-09-28 01:34:43 +00009718# Whether we need a single -rpath flag with a separated argument.
9719hardcode_libdir_separator=$lt_hardcode_libdir_separator
9720
a.rottmann9bc8b932004-02-29 15:18:31 +00009721# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00009722# resulting binary.
9723hardcode_direct=$hardcode_direct
9724
9725# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9726# resulting binary.
9727hardcode_minus_L=$hardcode_minus_L
9728
9729# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9730# the resulting binary.
9731hardcode_shlibpath_var=$hardcode_shlibpath_var
9732
a.rottmann9bc8b932004-02-29 15:18:31 +00009733# Set to yes if building a shared library automatically hardcodes DIR into the library
9734# and all subsequent libraries and executables linked against it.
9735hardcode_automatic=$hardcode_automatic
9736
drh71eb93e2001-09-28 01:34:43 +00009737# Variables whose values should be saved in libtool wrapper scripts and
9738# restored at relink time.
9739variables_saved_for_relink="$variables_saved_for_relink"
9740
9741# Whether libtool must link a program against all its dependency libraries.
9742link_all_deplibs=$link_all_deplibs
9743
9744# Compile-time system search path for libraries
9745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9746
9747# Run-time system search path for libraries
9748sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9749
9750# Fix the shell variable \$srcfile for the compiler.
9751fix_srcfile_path="$fix_srcfile_path"
9752
9753# Set to yes if exported symbols are required.
9754always_export_symbols=$always_export_symbols
9755
9756# The commands to list exported symbols.
9757export_symbols_cmds=$lt_export_symbols_cmds
9758
9759# The commands to extract the exported symbol list from a shared archive.
9760extract_expsyms_cmds=$lt_extract_expsyms_cmds
9761
9762# Symbols that should not be listed in the preloaded symbols.
9763exclude_expsyms=$lt_exclude_expsyms
9764
9765# Symbols that must always be exported.
9766include_expsyms=$lt_include_expsyms
9767
9768# ### END LIBTOOL CONFIG
9769
9770__EOF__
9771
a.rottmann9bc8b932004-02-29 15:18:31 +00009772
drh71eb93e2001-09-28 01:34:43 +00009773 case $host_os in
9774 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009775 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009776
9777# AIX sometimes has problems with the GCC collect2 program. For some
9778# reason, if we set the COLLECT_NAMES environment variable, the problems
9779# vanish in a puff of smoke.
9780if test "X${COLLECT_NAMES+set}" != Xset; then
9781 COLLECT_NAMES=
9782 export COLLECT_NAMES
9783fi
9784EOF
9785 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009786 esac
drh71eb93e2001-09-28 01:34:43 +00009787
drh71eb93e2001-09-28 01:34:43 +00009788 # We use sed instead of cat because bash on DJGPP gets confused if
9789 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9790 # text mode, it properly converts lines to CR/LF. This bash problem
9791 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00009792 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00009793
a.rottmann9bc8b932004-02-29 15:18:31 +00009794 mv -f "$cfgfile" "$ofile" || \
9795 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00009796 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00009797
9798else
9799 # If there is no Makefile yet, we rely on a make rule to execute
9800 # `config.status --recheck' to rerun these tests and create the
9801 # libtool script then.
9802 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9803 if test -f "$ltmain_in"; then
9804 test -f Makefile && make "$ltmain"
9805 fi
drh71eb93e2001-09-28 01:34:43 +00009806fi
9807
drh71eb93e2001-09-28 01:34:43 +00009808
a.rottmann9bc8b932004-02-29 15:18:31 +00009809ac_ext=c
9810ac_cpp='$CPP $CPPFLAGS'
9811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814
9815CC="$lt_save_CC"
9816
9817
mlcreech94984912008-03-04 19:03:08 +00009818# Check whether --with-tags was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009819if test "${with_tags+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009820 withval=$with_tags; tagnames="$withval"
9821fi
9822
a.rottmann9bc8b932004-02-29 15:18:31 +00009823
9824if test -f "$ltmain" && test -n "$tagnames"; then
9825 if test ! -f "${ofile}"; then
9826 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9827echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9828 fi
9829
9830 if test -z "$LTCC"; then
9831 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9832 if test -z "$LTCC"; then
9833 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9834echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9835 else
9836 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9837echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9838 fi
9839 fi
vapier7f19c022007-02-17 14:46:31 +00009840 if test -z "$LTCFLAGS"; then
9841 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9842 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
9844 # Extract list of available tagged configurations in $ofile.
9845 # Note that this assumes the entire list is on one line.
9846 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9847
9848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9849 for tagname in $tagnames; do
9850 IFS="$lt_save_ifs"
9851 # Check whether tagname contains only valid characters
9852 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9853 "") ;;
9854 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9855echo "$as_me: error: invalid tag name: $tagname" >&2;}
9856 { (exit 1); exit 1; }; }
9857 ;;
9858 esac
9859
9860 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9861 then
9862 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9863echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9864 { (exit 1); exit 1; }; }
9865 fi
9866
9867 # Update the list of available tags.
9868 if test -n "$tagname"; then
9869 echo appending configuration tag \"$tagname\" to $ofile
9870
9871 case $tagname in
9872 CXX)
vapier7f19c022007-02-17 14:46:31 +00009873 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9874 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9875 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00009876 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009877ac_cpp='$CXXCPP $CPPFLAGS'
9878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9881
9882
9883
9884
9885archive_cmds_need_lc_CXX=no
9886allow_undefined_flag_CXX=
9887always_export_symbols_CXX=no
9888archive_expsym_cmds_CXX=
9889export_dynamic_flag_spec_CXX=
9890hardcode_direct_CXX=no
9891hardcode_libdir_flag_spec_CXX=
9892hardcode_libdir_flag_spec_ld_CXX=
9893hardcode_libdir_separator_CXX=
9894hardcode_minus_L_CXX=no
vapier7f19c022007-02-17 14:46:31 +00009895hardcode_shlibpath_var_CXX=unsupported
a.rottmann9bc8b932004-02-29 15:18:31 +00009896hardcode_automatic_CXX=no
9897module_cmds_CXX=
9898module_expsym_cmds_CXX=
9899link_all_deplibs_CXX=unknown
9900old_archive_cmds_CXX=$old_archive_cmds
9901no_undefined_flag_CXX=
9902whole_archive_flag_spec_CXX=
9903enable_shared_with_static_runtimes_CXX=no
9904
9905# Dependencies to place before and after the object being linked:
9906predep_objects_CXX=
9907postdep_objects_CXX=
9908predeps_CXX=
9909postdeps_CXX=
9910compiler_lib_search_path_CXX=
9911
9912# Source file extension for C++ test sources.
vapier7f19c022007-02-17 14:46:31 +00009913ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009914
9915# Object file extension for compiled C++ test sources.
9916objext=o
9917objext_CXX=$objext
9918
9919# Code to be used in simple compile tests
9920lt_simple_compile_test_code="int some_variable = 0;\n"
9921
9922# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +00009923lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +00009924
9925# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9926
9927# If no C compiler was specified, use CC.
9928LTCC=${LTCC-"$CC"}
9929
vapier7f19c022007-02-17 14:46:31 +00009930# If no C compiler flags were specified, use CFLAGS.
9931LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9932
a.rottmann9bc8b932004-02-29 15:18:31 +00009933# Allow CC to be a program name with arguments.
9934compiler=$CC
9935
9936
vapier7f19c022007-02-17 14:46:31 +00009937# save warnings/boilerplate of simple test code
9938ac_outfile=conftest.$ac_objext
9939printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9941_lt_compiler_boilerplate=`cat conftest.err`
9942$rm conftest*
9943
9944ac_outfile=conftest.$ac_objext
9945printf "$lt_simple_link_test_code" >conftest.$ac_ext
9946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9947_lt_linker_boilerplate=`cat conftest.err`
9948$rm conftest*
9949
9950
a.rottmann9bc8b932004-02-29 15:18:31 +00009951# Allow CC to be a program name with arguments.
9952lt_save_CC=$CC
9953lt_save_LD=$LD
9954lt_save_GCC=$GCC
9955GCC=$GXX
9956lt_save_with_gnu_ld=$with_gnu_ld
9957lt_save_path_LD=$lt_cv_path_LD
9958if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9959 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9960else
vapier7f19c022007-02-17 14:46:31 +00009961 $as_unset lt_cv_prog_gnu_ld
a.rottmann9bc8b932004-02-29 15:18:31 +00009962fi
9963if test -n "${lt_cv_path_LDCXX+set}"; then
9964 lt_cv_path_LD=$lt_cv_path_LDCXX
9965else
vapier7f19c022007-02-17 14:46:31 +00009966 $as_unset lt_cv_path_LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009967fi
9968test -z "${LDCXX+set}" || LD=$LDCXX
9969CC=${CXX-"c++"}
9970compiler=$CC
9971compiler_CXX=$CC
vapier7f19c022007-02-17 14:46:31 +00009972for cc_temp in $compiler""; do
9973 case $cc_temp in
9974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9976 \-*) ;;
9977 *) break;;
9978 esac
9979done
9980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9981
a.rottmann9bc8b932004-02-29 15:18:31 +00009982
9983# We don't want -fno-exception wen compiling C++ code, so set the
9984# no_builtin_flag separately
9985if test "$GXX" = yes; then
9986 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9987else
9988 lt_prog_compiler_no_builtin_flag_CXX=
9989fi
9990
9991if test "$GXX" = yes; then
9992 # Set up default GNU C++ configuration
9993
9994
mlcreech94984912008-03-04 19:03:08 +00009995# Check whether --with-gnu-ld was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009996if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00009998else
9999 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +000010000fi
10001
a.rottmann9bc8b932004-02-29 15:18:31 +000010002ac_prog=ld
10003if test "$GCC" = yes; then
10004 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +000010005 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10006echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010007 case $host in
10008 *-*-mingw*)
10009 # gcc leaves a trailing carriage return which upsets mingw
10010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10011 *)
10012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10013 esac
10014 case $ac_prog in
10015 # Accept absolute paths.
10016 [\\/]* | ?:[\\/]*)
10017 re_direlt='/[^/][^/]*/\.\./'
10018 # Canonicalize the pathname of ld
10019 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10020 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10021 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10022 done
10023 test -z "$LD" && LD="$ac_prog"
10024 ;;
10025 "")
10026 # If it fails, then pretend we aren't using GCC.
10027 ac_prog=ld
10028 ;;
10029 *)
10030 # If it is relative, then search for the first ld in PATH.
10031 with_gnu_ld=unknown
10032 ;;
10033 esac
10034elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +000010035 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10036echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010037else
mlcreech94984912008-03-04 19:03:08 +000010038 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10039echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010040fi
10041if test "${lt_cv_path_LD+set}" = set; then
10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10043else
10044 if test -z "$LD"; then
10045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10046 for ac_dir in $PATH; do
10047 IFS="$lt_save_ifs"
10048 test -z "$ac_dir" && ac_dir=.
10049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10050 lt_cv_path_LD="$ac_dir/$ac_prog"
10051 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +000010052 # but apparently some variants of GNU ld only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010053 # Break only if it was the GNU/non-GNU ld that we prefer.
10054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10055 *GNU* | *'with BFD'*)
10056 test "$with_gnu_ld" != no && break
10057 ;;
10058 *)
10059 test "$with_gnu_ld" != yes && break
10060 ;;
10061 esac
10062 fi
10063 done
10064 IFS="$lt_save_ifs"
10065else
10066 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10067fi
10068fi
10069
10070LD="$lt_cv_path_LD"
10071if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +000010072 { echo "$as_me:$LINENO: result: $LD" >&5
10073echo "${ECHO_T}$LD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010074else
mlcreech94984912008-03-04 19:03:08 +000010075 { echo "$as_me:$LINENO: result: no" >&5
10076echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010077fi
10078test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10079echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10080 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000010081{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10082echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010083if test "${lt_cv_prog_gnu_ld+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
vapier7f19c022007-02-17 14:46:31 +000010086 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010087case `$LD -v 2>&1 </dev/null` in
10088*GNU* | *'with BFD'*)
10089 lt_cv_prog_gnu_ld=yes
10090 ;;
10091*)
10092 lt_cv_prog_gnu_ld=no
10093 ;;
10094esac
10095fi
mlcreech94984912008-03-04 19:03:08 +000010096{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10097echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010098with_gnu_ld=$lt_cv_prog_gnu_ld
10099
10100
10101
10102 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10103 # archiving commands below assume that GNU ld is being used.
10104 if test "$with_gnu_ld" = yes; then
10105 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106 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'
10107
10108 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10109 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10110
10111 # If archive_cmds runs LD, not CC, wlarc should be empty
10112 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10113 # investigate it a little bit more. (MM)
10114 wlarc='${wl}'
10115
10116 # ancient GNU ld didn't support --whole-archive et. al.
10117 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10118 grep 'no-whole-archive' > /dev/null; then
10119 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10120 else
10121 whole_archive_flag_spec_CXX=
10122 fi
10123 else
10124 with_gnu_ld=no
10125 wlarc=
10126
10127 # A generic and very simple default shared library creation
10128 # command for GNU C++ for the case where it uses the native
10129 # linker, instead of GNU ld. If possible, this setting should
10130 # overridden to take advantage of the native linker features on
10131 # the platform it is being used on.
10132 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10133 fi
10134
10135 # Commands to make compiler produce verbose output that lists
10136 # what "hidden" libraries, object files and flags are used when
10137 # linking a shared library.
10138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10139
10140else
10141 GXX=no
10142 with_gnu_ld=no
10143 wlarc=
10144fi
10145
10146# PORTME: fill in a description of your system's C++ link characteristics
mlcreech94984912008-03-04 19:03:08 +000010147{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10148echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010149ld_shlibs_CXX=yes
10150case $host_os in
10151 aix3*)
10152 # FIXME: insert proper C++ library support
10153 ld_shlibs_CXX=no
10154 ;;
10155 aix4* | aix5*)
10156 if test "$host_cpu" = ia64; then
10157 # On IA64, the linker does run time linking by default, so we don't
10158 # have to do anything special.
10159 aix_use_runtimelinking=no
10160 exp_sym_flag='-Bexport'
10161 no_entry_flag=""
10162 else
10163 aix_use_runtimelinking=no
10164
10165 # Test if we are trying to use run time linking or normal
10166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10167 # need to do runtime linking.
10168 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10169 for ld_flag in $LDFLAGS; do
10170 case $ld_flag in
10171 *-brtl*)
10172 aix_use_runtimelinking=yes
10173 break
10174 ;;
10175 esac
10176 done
vapier7f19c022007-02-17 14:46:31 +000010177 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010178 esac
10179
10180 exp_sym_flag='-bexport'
10181 no_entry_flag='-bnoentry'
10182 fi
10183
10184 # When large executables or shared objects are built, AIX ld can
10185 # have problems creating the table of contents. If linking a library
10186 # or program results in "error TOC overflow" add -mminimal-toc to
10187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10189
10190 archive_cmds_CXX=''
10191 hardcode_direct_CXX=yes
10192 hardcode_libdir_separator_CXX=':'
10193 link_all_deplibs_CXX=yes
10194
10195 if test "$GXX" = yes; then
vapier7f19c022007-02-17 14:46:31 +000010196 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010197 # We only want to do this on AIX 4.2 and lower, the check
10198 # below for broken collect2 doesn't work under 4.3+
10199 collect2name=`${CC} -print-prog-name=collect2`
10200 if test -f "$collect2name" && \
10201 strings "$collect2name" | grep resolve_lib_name >/dev/null
10202 then
10203 # We have reworked collect2
10204 hardcode_direct_CXX=yes
10205 else
10206 # We have old collect2
10207 hardcode_direct_CXX=unsupported
10208 # It fails to find uninstalled libraries when the uninstalled
10209 # path is not listed in the libpath. Setting hardcode_minus_L
10210 # to unsupported forces relinking
10211 hardcode_minus_L_CXX=yes
10212 hardcode_libdir_flag_spec_CXX='-L$libdir'
10213 hardcode_libdir_separator_CXX=
10214 fi
vapier7f19c022007-02-17 14:46:31 +000010215 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010216 esac
10217 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000010218 if test "$aix_use_runtimelinking" = yes; then
10219 shared_flag="$shared_flag "'${wl}-G'
10220 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010221 else
10222 # not using gcc
10223 if test "$host_cpu" = ia64; then
10224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10225 # chokes on -Wl,-G. The following line is correct:
10226 shared_flag='-G'
10227 else
10228 if test "$aix_use_runtimelinking" = yes; then
10229 shared_flag='${wl}-G'
10230 else
10231 shared_flag='${wl}-bM:SRE'
10232 fi
10233 fi
10234 fi
10235
10236 # It seems that -bexpall does not export symbols beginning with
10237 # underscore (_), so it is better to generate a list of symbols to export.
10238 always_export_symbols_CXX=yes
10239 if test "$aix_use_runtimelinking" = yes; then
10240 # Warning - without using the other runtime loading flags (-brtl),
10241 # -berok will link without error, but may produce a broken library.
10242 allow_undefined_flag_CXX='-berok'
10243 # Determine the default libpath from the value encoded in an empty executable.
10244 cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h. */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h. */
10250
10251int
10252main ()
10253{
10254
10255 ;
10256 return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010260if { (ac_try="$ac_link"
10261case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264esac
10265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010272 (exit $ac_status); } && {
10273 test -z "$ac_cxx_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest$ac_exeext &&
10276 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010277
10278aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10279}'`
10280# Check for a 64-bit object if we didn't find anything.
10281if 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; }
10282}'`; fi
10283else
10284 echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
mlcreech94984912008-03-04 19:03:08 +000010287
a.rottmann9bc8b932004-02-29 15:18:31 +000010288fi
mlcreech94984912008-03-04 19:03:08 +000010289
10290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010291 conftest$ac_exeext conftest.$ac_ext
10292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10293
10294 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10295
vapier7f19c022007-02-17 14:46:31 +000010296 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 +000010297 else
10298 if test "$host_cpu" = ia64; then
10299 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10300 allow_undefined_flag_CXX="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000010301 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 +000010302 else
10303 # Determine the default libpath from the value encoded in an empty executable.
10304 cat >conftest.$ac_ext <<_ACEOF
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310
10311int
10312main ()
10313{
10314
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010320if { (ac_try="$ac_link"
10321case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324esac
10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010332 (exit $ac_status); } && {
10333 test -z "$ac_cxx_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext &&
10336 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010337
10338aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10339}'`
10340# Check for a 64-bit object if we didn't find anything.
10341if 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; }
10342}'`; fi
10343else
10344 echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
mlcreech94984912008-03-04 19:03:08 +000010347
a.rottmann9bc8b932004-02-29 15:18:31 +000010348fi
mlcreech94984912008-03-04 19:03:08 +000010349
10350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010351 conftest$ac_exeext conftest.$ac_ext
10352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10353
10354 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10355 # Warning - without using the other run time loading flags,
10356 # -berok will link without error, but may produce a broken library.
10357 no_undefined_flag_CXX=' ${wl}-bernotok'
10358 allow_undefined_flag_CXX=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000010359 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000010360 whole_archive_flag_spec_CXX='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000010361 archive_cmds_need_lc_CXX=yes
vapier7f19c022007-02-17 14:46:31 +000010362 # This is similar to how AIX traditionally builds its shared libraries.
10363 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 +000010364 fi
10365 fi
10366 ;;
vapier7f19c022007-02-17 14:46:31 +000010367
10368 beos*)
10369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10370 allow_undefined_flag_CXX=unsupported
10371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10372 # support --undefined. This deserves some investigation. FIXME
10373 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10374 else
10375 ld_shlibs_CXX=no
10376 fi
10377 ;;
10378
a.rottmann9bc8b932004-02-29 15:18:31 +000010379 chorus*)
10380 case $cc_basename in
10381 *)
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10384 ;;
10385 esac
10386 ;;
10387
10388 cygwin* | mingw* | pw32*)
10389 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10390 # as there is no search path for DLLs.
10391 hardcode_libdir_flag_spec_CXX='-L$libdir'
10392 allow_undefined_flag_CXX=unsupported
10393 always_export_symbols_CXX=no
10394 enable_shared_with_static_runtimes_CXX=yes
10395
10396 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010397 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 +000010398 # If the export-symbols file already is a .def file (1st line
10399 # is EXPORTS), use it as is; otherwise, prepend...
10400 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10401 cp $export_symbols $output_objdir/$soname.def;
10402 else
10403 echo EXPORTS > $output_objdir/$soname.def;
10404 cat $export_symbols >> $output_objdir/$soname.def;
10405 fi~
vapier7f19c022007-02-17 14:46:31 +000010406 $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 +000010407 else
10408 ld_shlibs_CXX=no
10409 fi
10410 ;;
vapier7f19c022007-02-17 14:46:31 +000010411 darwin* | rhapsody*)
10412 case $host_os in
10413 rhapsody* | darwin1.[012])
10414 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10415 ;;
10416 *) # Darwin 1.3 on
10417 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10418 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10419 else
10420 case ${MACOSX_DEPLOYMENT_TARGET} in
10421 10.[012])
10422 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10423 ;;
10424 10.*)
10425 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10426 ;;
10427 esac
10428 fi
10429 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010430 esac
vapier7f19c022007-02-17 14:46:31 +000010431 archive_cmds_need_lc_CXX=no
10432 hardcode_direct_CXX=no
10433 hardcode_automatic_CXX=yes
10434 hardcode_shlibpath_var_CXX=unsupported
10435 whole_archive_flag_spec_CXX=''
10436 link_all_deplibs_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010437
vapier7f19c022007-02-17 14:46:31 +000010438 if test "$GXX" = yes ; then
10439 lt_int_apple_cc_single_mod=no
10440 output_verbose_link_cmd='echo'
10441 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10442 lt_int_apple_cc_single_mod=yes
10443 fi
10444 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10445 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10446 else
10447 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'
10448 fi
10449 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10450 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10451 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10452 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}'
10453 else
10454 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}'
10455 fi
10456 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}'
10457 else
10458 case $cc_basename in
10459 xlc*)
10460 output_verbose_link_cmd='echo'
10461 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'
10462 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10464 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}'
10465 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}'
10466 ;;
10467 *)
10468 ld_shlibs_CXX=no
10469 ;;
10470 esac
10471 fi
10472 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010473
10474 dgux*)
10475 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010476 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10479 ;;
vapier7f19c022007-02-17 14:46:31 +000010480 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010481 # Green Hills C++ Compiler
10482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10484 ;;
10485 *)
10486 # FIXME: insert proper C++ library support
10487 ld_shlibs_CXX=no
10488 ;;
10489 esac
10490 ;;
vapier7f19c022007-02-17 14:46:31 +000010491 freebsd[12]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010492 # C++ shared libraries reported to be fairly broken before switch to ELF
10493 ld_shlibs_CXX=no
10494 ;;
10495 freebsd-elf*)
10496 archive_cmds_need_lc_CXX=no
10497 ;;
vapier7f19c022007-02-17 14:46:31 +000010498 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010499 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10500 # conventions
10501 ld_shlibs_CXX=yes
10502 ;;
10503 gnu*)
10504 ;;
10505 hpux9*)
10506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_separator_CXX=:
10508 export_dynamic_flag_spec_CXX='${wl}-E'
10509 hardcode_direct_CXX=yes
10510 hardcode_minus_L_CXX=yes # Not in the search PATH,
10511 # but as the default
10512 # location of the library.
10513
10514 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010515 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010516 # FIXME: insert proper C++ library support
10517 ld_shlibs_CXX=no
10518 ;;
vapier7f19c022007-02-17 14:46:31 +000010519 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010520 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'
10521 # Commands to make compiler produce verbose output that lists
10522 # what "hidden" libraries, object files and flags are used when
10523 # linking a shared library.
10524 #
10525 # There doesn't appear to be a way to prevent this compiler from
10526 # explicitly linking system object files so we need to strip them
10527 # from the output so that they don't get included in the library
10528 # dependencies.
vapier7f19c022007-02-17 14:46:31 +000010529 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 +000010530 ;;
10531 *)
10532 if test "$GXX" = yes; then
10533 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'
10534 else
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 fi
10538 ;;
10539 esac
10540 ;;
10541 hpux10*|hpux11*)
10542 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010543 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10544 hardcode_libdir_separator_CXX=:
10545
10546 case $host_cpu in
10547 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010548 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a.rottmann9bc8b932004-02-29 15:18:31 +000010549 ;;
10550 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000010551 export_dynamic_flag_spec_CXX='${wl}-E'
10552 ;;
10553 esac
10554 fi
vapier7f19c022007-02-17 14:46:31 +000010555 case $host_cpu in
10556 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010557 hardcode_direct_CXX=no
10558 hardcode_shlibpath_var_CXX=no
10559 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010560 *)
10561 hardcode_direct_CXX=yes
10562 hardcode_minus_L_CXX=yes # Not in the search PATH,
10563 # but as the default
10564 # location of the library.
10565 ;;
10566 esac
10567
10568 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010569 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010570 # FIXME: insert proper C++ library support
10571 ld_shlibs_CXX=no
10572 ;;
vapier7f19c022007-02-17 14:46:31 +000010573 aCC*)
10574 case $host_cpu in
10575 hppa*64*)
10576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10577 ;;
10578 ia64*)
10579 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 +000010580 ;;
10581 *)
10582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10583 ;;
10584 esac
10585 # Commands to make compiler produce verbose output that lists
10586 # what "hidden" libraries, object files and flags are used when
10587 # linking a shared library.
10588 #
10589 # There doesn't appear to be a way to prevent this compiler from
10590 # explicitly linking system object files so we need to strip them
10591 # from the output so that they don't get included in the library
10592 # dependencies.
10593 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'
10594 ;;
10595 *)
10596 if test "$GXX" = yes; then
10597 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010598 case $host_cpu in
10599 hppa*64*)
10600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10601 ;;
10602 ia64*)
10603 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 +000010604 ;;
10605 *)
10606 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'
10607 ;;
10608 esac
10609 fi
10610 else
10611 # FIXME: insert proper C++ library support
10612 ld_shlibs_CXX=no
10613 fi
10614 ;;
10615 esac
10616 ;;
vapier7f19c022007-02-17 14:46:31 +000010617 interix3*)
10618 hardcode_direct_CXX=no
10619 hardcode_shlibpath_var_CXX=no
10620 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10621 export_dynamic_flag_spec_CXX='${wl}-E'
10622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10623 # Instead, shared libraries are loaded at an image base (0x10000000 by
10624 # default) and relocated if they conflict, which is a slow very memory
10625 # consuming and fragmenting process. To avoid this, we pick a random,
10626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10628 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'
10629 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'
10630 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010631 irix5* | irix6*)
10632 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010633 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010634 # SGI C++
vapier7f19c022007-02-17 14:46:31 +000010635 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 +000010636
10637 # Archives containing C++ object files must be created using
10638 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10639 # necessary to make sure instantiated templates are included
10640 # in the archive.
10641 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10642 ;;
10643 *)
10644 if test "$GXX" = yes; then
10645 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000010646 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 +000010647 else
10648 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'
10649 fi
10650 fi
10651 link_all_deplibs_CXX=yes
10652 ;;
10653 esac
10654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10655 hardcode_libdir_separator_CXX=:
10656 ;;
10657 linux*)
10658 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010659 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010660 # Kuck and Associates, Inc. (KAI) C++ Compiler
10661
10662 # KCC will only create a shared library if the output file
10663 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10664 # to its proper name (with version) after linking.
10665 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'
10666 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'
10667 # Commands to make compiler produce verbose output that lists
10668 # what "hidden" libraries, object files and flags are used when
10669 # linking a shared library.
10670 #
10671 # There doesn't appear to be a way to prevent this compiler from
10672 # explicitly linking system object files so we need to strip them
10673 # from the output so that they don't get included in the library
10674 # dependencies.
10675 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'
10676
10677 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679
10680 # Archives containing C++ object files must be created using
10681 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10682 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10683 ;;
vapier7f19c022007-02-17 14:46:31 +000010684 icpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010685 # Intel C++
10686 with_gnu_ld=yes
vapier7f19c022007-02-17 14:46:31 +000010687 # version 8.0 and above of icpc choke on multiply defined symbols
10688 # if we add $predep_objects and $postdep_objects, however 7.1 and
10689 # earlier do not add the objects themselves.
10690 case `$CC -V 2>&1` in
10691 *"Version 7."*)
10692 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693 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'
10694 ;;
10695 *) # Version 8.0 or newer
10696 tmp_idyn=
10697 case $host_cpu in
10698 ia64*) tmp_idyn=' -i_dynamic';;
10699 esac
10700 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10701 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'
10702 ;;
10703 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010704 archive_cmds_need_lc_CXX=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10707 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10708 ;;
vapier7f19c022007-02-17 14:46:31 +000010709 pgCC*)
10710 # Portland Group C++ compiler
10711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10712 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'
10713
10714 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10715 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10716 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'
10717 ;;
10718 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010719 # Compaq C++
10720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10721 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'
10722
10723 runpath_var=LD_RUN_PATH
10724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10725 hardcode_libdir_separator_CXX=:
10726
10727 # Commands to make compiler produce verbose output that lists
10728 # what "hidden" libraries, object files and flags are used when
10729 # linking a shared library.
10730 #
10731 # There doesn't appear to be a way to prevent this compiler from
10732 # explicitly linking system object files so we need to strip them
10733 # from the output so that they don't get included in the library
10734 # dependencies.
10735 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'
10736 ;;
10737 esac
10738 ;;
10739 lynxos*)
10740 # FIXME: insert proper C++ library support
10741 ld_shlibs_CXX=no
10742 ;;
10743 m88k*)
10744 # FIXME: insert proper C++ library support
10745 ld_shlibs_CXX=no
10746 ;;
10747 mvs*)
10748 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010749 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 *)
10754 # FIXME: insert proper C++ library support
10755 ld_shlibs_CXX=no
10756 ;;
10757 esac
10758 ;;
vapier7f19c022007-02-17 14:46:31 +000010759 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10761 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10762 wlarc=
10763 hardcode_libdir_flag_spec_CXX='-R$libdir'
10764 hardcode_direct_CXX=yes
10765 hardcode_shlibpath_var_CXX=no
10766 fi
10767 # Workaround some broken pre-1.5 toolchains
10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10769 ;;
vapier7f19c022007-02-17 14:46:31 +000010770 openbsd2*)
10771 # C++ shared libraries are fairly broken
10772 ld_shlibs_CXX=no
10773 ;;
10774 openbsd*)
10775 hardcode_direct_CXX=yes
10776 hardcode_shlibpath_var_CXX=no
10777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10781 export_dynamic_flag_spec_CXX='${wl}-E'
10782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10783 fi
10784 output_verbose_link_cmd='echo'
10785 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010786 osf3*)
10787 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010788 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010789 # Kuck and Associates, Inc. (KAI) C++ Compiler
10790
10791 # KCC will only create a shared library if the output file
10792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10793 # to its proper name (with version) after linking.
10794 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'
10795
10796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10797 hardcode_libdir_separator_CXX=:
10798
10799 # Archives containing C++ object files must be created using
10800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10802
10803 ;;
vapier7f19c022007-02-17 14:46:31 +000010804 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010805 # Rational C++ 2.4.1
10806 # FIXME: insert proper C++ library support
10807 ld_shlibs_CXX=no
10808 ;;
vapier7f19c022007-02-17 14:46:31 +000010809 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010810 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010811 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 +000010812
10813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10814 hardcode_libdir_separator_CXX=:
10815
10816 # Commands to make compiler produce verbose output that lists
10817 # what "hidden" libraries, object files and flags are used when
10818 # linking a shared library.
10819 #
10820 # There doesn't appear to be a way to prevent this compiler from
10821 # explicitly linking system object files so we need to strip them
10822 # from the output so that they don't get included in the library
10823 # dependencies.
10824 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'
10825 ;;
10826 *)
10827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10828 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010829 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 +000010830
10831 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10832 hardcode_libdir_separator_CXX=:
10833
10834 # Commands to make compiler produce verbose output that lists
10835 # what "hidden" libraries, object files and flags are used when
10836 # linking a shared library.
10837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10838
10839 else
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10842 fi
10843 ;;
10844 esac
10845 ;;
10846 osf4* | osf5*)
10847 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010848 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010849 # Kuck and Associates, Inc. (KAI) C++ Compiler
10850
10851 # KCC will only create a shared library if the output file
10852 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10853 # to its proper name (with version) after linking.
10854 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'
10855
10856 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10857 hardcode_libdir_separator_CXX=:
10858
10859 # Archives containing C++ object files must be created using
10860 # the KAI C++ compiler.
10861 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10862 ;;
vapier7f19c022007-02-17 14:46:31 +000010863 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010864 # Rational C++ 2.4.1
10865 # FIXME: insert proper C++ library support
10866 ld_shlibs_CXX=no
10867 ;;
vapier7f19c022007-02-17 14:46:31 +000010868 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010869 allow_undefined_flag_CXX=' -expect_unresolved \*'
vapier7f19c022007-02-17 14:46:31 +000010870 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 +000010871 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10872 echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010873 $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 +000010874 $rm $lib.exp'
10875
10876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10877 hardcode_libdir_separator_CXX=:
10878
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 #
10883 # There doesn't appear to be a way to prevent this compiler from
10884 # explicitly linking system object files so we need to strip them
10885 # from the output so that they don't get included in the library
10886 # dependencies.
10887 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'
10888 ;;
10889 *)
10890 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10891 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010892 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 +000010893
10894 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10895 hardcode_libdir_separator_CXX=:
10896
10897 # Commands to make compiler produce verbose output that lists
10898 # what "hidden" libraries, object files and flags are used when
10899 # linking a shared library.
10900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10901
10902 else
10903 # FIXME: insert proper C++ library support
10904 ld_shlibs_CXX=no
10905 fi
10906 ;;
10907 esac
10908 ;;
10909 psos*)
10910 # FIXME: insert proper C++ library support
10911 ld_shlibs_CXX=no
10912 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010913 sunos4*)
10914 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010915 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010916 # Sun C++ 4.x
10917 # FIXME: insert proper C++ library support
10918 ld_shlibs_CXX=no
10919 ;;
vapier7f19c022007-02-17 14:46:31 +000010920 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010921 # Lucid
10922 # FIXME: insert proper C++ library support
10923 ld_shlibs_CXX=no
10924 ;;
10925 *)
10926 # FIXME: insert proper C++ library support
10927 ld_shlibs_CXX=no
10928 ;;
10929 esac
10930 ;;
10931 solaris*)
10932 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010933 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010934 # Sun C++ 4.2, 5.x and Centerline C++
vapier7f19c022007-02-17 14:46:31 +000010935 archive_cmds_need_lc_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010936 no_undefined_flag_CXX=' -zdefs'
vapier7f19c022007-02-17 14:46:31 +000010937 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 +000010938 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 +000010939 $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 +000010940
10941 hardcode_libdir_flag_spec_CXX='-R$libdir'
10942 hardcode_shlibpath_var_CXX=no
10943 case $host_os in
vapier7f19c022007-02-17 14:46:31 +000010944 solaris2.[0-5] | solaris2.[0-5].*) ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010945 *)
10946 # The C++ compiler is used as linker so we must use $wl
10947 # flag to pass the commands to the underlying system
vapier7f19c022007-02-17 14:46:31 +000010948 # linker. We must also pass each convience library through
10949 # to the system linker between allextract/defaultextract.
10950 # The C++ compiler will combine linker options so we
10951 # cannot just pass the convience library names through
10952 # without $wl.
a.rottmann9bc8b932004-02-29 15:18:31 +000010953 # Supported since Solaris 2.6 (maybe 2.5.1?)
vapier7f19c022007-02-17 14:46:31 +000010954 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 +000010955 ;;
10956 esac
10957 link_all_deplibs_CXX=yes
10958
vapier7f19c022007-02-17 14:46:31 +000010959 output_verbose_link_cmd='echo'
a.rottmann9bc8b932004-02-29 15:18:31 +000010960
10961 # Archives containing C++ object files must be created using
10962 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10963 # necessary to make sure instantiated templates are included
10964 # in the archive.
10965 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10966 ;;
vapier7f19c022007-02-17 14:46:31 +000010967 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010968 # Green Hills C++ Compiler
10969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970
10971 # The C++ compiler must be used to create the archive.
10972 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10973 ;;
10974 *)
10975 # GNU C++ compiler with Solaris linker
10976 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10977 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10978 if $CC --version | grep -v '^2\.7' > /dev/null; then
10979 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10981 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10982
10983 # Commands to make compiler produce verbose output that lists
10984 # what "hidden" libraries, object files and flags are used when
10985 # linking a shared library.
10986 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10987 else
10988 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10989 # platform.
10990 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10991 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10992 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10993
10994 # Commands to make compiler produce verbose output that lists
10995 # what "hidden" libraries, object files and flags are used when
10996 # linking a shared library.
10997 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10998 fi
10999
11000 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11001 fi
11002 ;;
11003 esac
11004 ;;
vapier7f19c022007-02-17 14:46:31 +000011005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11006 no_undefined_flag_CXX='${wl}-z,text'
a.rottmann9bc8b932004-02-29 15:18:31 +000011007 archive_cmds_need_lc_CXX=no
vapier7f19c022007-02-17 14:46:31 +000011008 hardcode_shlibpath_var_CXX=no
11009 runpath_var='LD_RUN_PATH'
11010
11011 case $cc_basename in
11012 CC*)
11013 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 ;;
11016 *)
11017 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 ;;
11020 esac
11021 ;;
11022 sysv5* | sco3.2v5* | sco5v6*)
11023 # Note: We can NOT use -z defs as we might desire, because we do not
11024 # link with -lc, and that would cause any symbols used from libc to
11025 # always be unresolved, which means just about no library would
11026 # ever link correctly. If we're not using GNU ld we use -z text
11027 # though, which does catch some bad symbols but isn't as heavy-handed
11028 # as -z defs.
11029 # For security reasons, it is highly recommended that you always
11030 # use absolute paths for naming shared libraries, and exclude the
11031 # DT_RUNPATH tag from executables and libraries. But doing so
11032 # requires that you compile everything twice, which is a pain.
11033 # So that behaviour is only enabled if SCOABSPATH is set to a
11034 # non-empty value in the environment. Most likely only useful for
11035 # creating official distributions of packages.
11036 # This is a hack until libtool officially supports absolute path
11037 # names for shared libraries.
11038 no_undefined_flag_CXX='${wl}-z,text'
11039 allow_undefined_flag_CXX='${wl}-z,nodefs'
11040 archive_cmds_need_lc_CXX=no
11041 hardcode_shlibpath_var_CXX=no
11042 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11043 hardcode_libdir_separator_CXX=':'
11044 link_all_deplibs_CXX=yes
11045 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11046 runpath_var='LD_RUN_PATH'
11047
11048 case $cc_basename in
11049 CC*)
11050 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11052 ;;
11053 *)
11054 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 ;;
11057 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011058 ;;
11059 tandem*)
11060 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011061 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011062 # NonStop-UX NCC 3.20
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11065 ;;
11066 *)
11067 # FIXME: insert proper C++ library support
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 ;;
11072 vxworks*)
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11075 ;;
11076 *)
11077 # FIXME: insert proper C++ library support
11078 ld_shlibs_CXX=no
11079 ;;
11080esac
mlcreech94984912008-03-04 19:03:08 +000011081{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11082echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011083test "$ld_shlibs_CXX" = no && can_build_shared=no
11084
11085GCC_CXX="$GXX"
11086LD_CXX="$LD"
11087
11088
11089cat > conftest.$ac_ext <<EOF
11090class Foo
11091{
11092public:
11093 Foo (void) { a = 0; }
11094private:
11095 int a;
11096};
11097EOF
11098
11099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11100 (eval $ac_compile) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; then
11104 # Parse the compiler output and extract the necessary
11105 # objects, libraries and library flags.
11106
11107 # Sentinel used to keep track of whether or not we are before
11108 # the conftest object file.
11109 pre_test_object_deps_done=no
11110
11111 # The `*' in the case matches for architectures that use `case' in
11112 # $output_verbose_cmd can trigger glob expansion during the loop
11113 # eval without this substitution.
vapier7f19c022007-02-17 14:46:31 +000011114 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a.rottmann9bc8b932004-02-29 15:18:31 +000011115
11116 for p in `eval $output_verbose_link_cmd`; do
11117 case $p in
11118
11119 -L* | -R* | -l*)
11120 # Some compilers place space between "-{L,R}" and the path.
11121 # Remove the space.
11122 if test $p = "-L" \
11123 || test $p = "-R"; then
11124 prev=$p
11125 continue
11126 else
11127 prev=
11128 fi
11129
11130 if test "$pre_test_object_deps_done" = no; then
11131 case $p in
11132 -L* | -R*)
11133 # Internal compiler library paths should come after those
11134 # provided the user. The postdeps already come after the
11135 # user supplied libs so there is no need to process them.
11136 if test -z "$compiler_lib_search_path_CXX"; then
11137 compiler_lib_search_path_CXX="${prev}${p}"
11138 else
11139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11140 fi
11141 ;;
11142 # The "-l" case would never come before the object being
11143 # linked, so don't bother handling this case.
11144 esac
11145 else
11146 if test -z "$postdeps_CXX"; then
11147 postdeps_CXX="${prev}${p}"
11148 else
11149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11150 fi
11151 fi
11152 ;;
11153
11154 *.$objext)
11155 # This assumes that the test object file only shows up
11156 # once in the compiler output.
11157 if test "$p" = "conftest.$objext"; then
11158 pre_test_object_deps_done=yes
11159 continue
11160 fi
11161
11162 if test "$pre_test_object_deps_done" = no; then
11163 if test -z "$predep_objects_CXX"; then
11164 predep_objects_CXX="$p"
11165 else
11166 predep_objects_CXX="$predep_objects_CXX $p"
11167 fi
11168 else
11169 if test -z "$postdep_objects_CXX"; then
11170 postdep_objects_CXX="$p"
11171 else
11172 postdep_objects_CXX="$postdep_objects_CXX $p"
11173 fi
11174 fi
11175 ;;
11176
11177 *) ;; # Ignore the rest.
11178
11179 esac
11180 done
11181
11182 # Clean up.
11183 rm -f a.out a.exe
11184else
11185 echo "libtool.m4: error: problem compiling CXX test program"
11186fi
11187
11188$rm -f confest.$objext
11189
vapier7f19c022007-02-17 14:46:31 +000011190# PORTME: override above test on systems where it is broken
11191case $host_os in
11192interix3*)
11193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11194 # hack all around it, let's just trust "g++" to DTRT.
11195 predep_objects_CXX=
11196 postdep_objects_CXX=
11197 postdeps_CXX=
11198 ;;
11199
11200solaris*)
11201 case $cc_basename in
11202 CC*)
11203 # Adding this requires a known-good setup of shared libraries for
11204 # Sun compiler versions before 5.6, else PIC objects from an old
11205 # archive will be linked into the output, leading to subtle bugs.
11206 postdeps_CXX='-lCstd -lCrun'
11207 ;;
11208 esac
11209 ;;
11210esac
11211
11212
a.rottmann9bc8b932004-02-29 15:18:31 +000011213case " $postdeps_CXX " in
11214*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11215esac
11216
11217lt_prog_compiler_wl_CXX=
11218lt_prog_compiler_pic_CXX=
11219lt_prog_compiler_static_CXX=
11220
mlcreech94984912008-03-04 19:03:08 +000011221{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11222echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011223
11224 # C++ specific cases for pic, static, wl, etc.
11225 if test "$GXX" = yes; then
11226 lt_prog_compiler_wl_CXX='-Wl,'
11227 lt_prog_compiler_static_CXX='-static'
11228
11229 case $host_os in
11230 aix*)
11231 # All AIX code is PIC.
11232 if test "$host_cpu" = ia64; then
11233 # AIX 5 now supports IA64 processor
11234 lt_prog_compiler_static_CXX='-Bstatic'
11235 fi
11236 ;;
11237 amigaos*)
11238 # FIXME: we need at least 68020 code to build shared libraries, but
11239 # adding the `-m68020' flag to GCC prevents building anything better,
11240 # like `-m68040'.
11241 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11242 ;;
11243 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11244 # PIC is the default for these OSes.
11245 ;;
11246 mingw* | os2* | pw32*)
11247 # This hack is so that the source file can tell whether it is being
11248 # built for inclusion in a dll (and should export symbols for example).
11249 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11250 ;;
11251 darwin* | rhapsody*)
11252 # PIC is the default on this platform
11253 # Common symbols not allowed in MH_DYLIB files
11254 lt_prog_compiler_pic_CXX='-fno-common'
11255 ;;
11256 *djgpp*)
11257 # DJGPP does not support shared libraries at all
11258 lt_prog_compiler_pic_CXX=
11259 ;;
vapier7f19c022007-02-17 14:46:31 +000011260 interix3*)
11261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11262 # Instead, we relocate shared libraries at runtime.
11263 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011264 sysv4*MP*)
11265 if test -d /usr/nec; then
11266 lt_prog_compiler_pic_CXX=-Kconform_pic
11267 fi
11268 ;;
11269 hpux*)
11270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11271 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000011272 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011273 hppa*64*|ia64*)
11274 ;;
11275 *)
11276 lt_prog_compiler_pic_CXX='-fPIC'
11277 ;;
11278 esac
11279 ;;
11280 *)
11281 lt_prog_compiler_pic_CXX='-fPIC'
11282 ;;
11283 esac
11284 else
11285 case $host_os in
11286 aix4* | aix5*)
11287 # All AIX code is PIC.
11288 if test "$host_cpu" = ia64; then
11289 # AIX 5 now supports IA64 processor
11290 lt_prog_compiler_static_CXX='-Bstatic'
11291 else
11292 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11293 fi
11294 ;;
11295 chorus*)
11296 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011297 cxch68*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011298 # Green Hills C++ Compiler
11299 # _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"
11300 ;;
11301 esac
11302 ;;
vapier7f19c022007-02-17 14:46:31 +000011303 darwin*)
11304 # PIC is the default on this platform
11305 # Common symbols not allowed in MH_DYLIB files
11306 case $cc_basename in
11307 xlc*)
11308 lt_prog_compiler_pic_CXX='-qnocommon'
11309 lt_prog_compiler_wl_CXX='-Wl,'
11310 ;;
11311 esac
11312 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011313 dgux*)
11314 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011315 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011316 lt_prog_compiler_pic_CXX='-KPIC'
11317 ;;
vapier7f19c022007-02-17 14:46:31 +000011318 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011319 # Green Hills C++ Compiler
11320 lt_prog_compiler_pic_CXX='-pic'
11321 ;;
11322 *)
11323 ;;
11324 esac
11325 ;;
vapier7f19c022007-02-17 14:46:31 +000011326 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011327 # FreeBSD uses GNU C++
11328 ;;
11329 hpux9* | hpux10* | hpux11*)
11330 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011331 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011332 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011333 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a.rottmann9bc8b932004-02-29 15:18:31 +000011334 if test "$host_cpu" != ia64; then
11335 lt_prog_compiler_pic_CXX='+Z'
11336 fi
11337 ;;
vapier7f19c022007-02-17 14:46:31 +000011338 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011339 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011340 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11341 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011342 hppa*64*|ia64*)
11343 # +Z the default
11344 ;;
11345 *)
11346 lt_prog_compiler_pic_CXX='+Z'
11347 ;;
11348 esac
11349 ;;
11350 *)
11351 ;;
11352 esac
11353 ;;
vapier7f19c022007-02-17 14:46:31 +000011354 interix*)
11355 # This is c89, which is MS Visual C++ (no shared libs)
11356 # Anyone wants to do a port?
11357 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011358 irix5* | irix6* | nonstopux*)
11359 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011360 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011361 lt_prog_compiler_wl_CXX='-Wl,'
11362 lt_prog_compiler_static_CXX='-non_shared'
11363 # CC pic flag -KPIC is the default.
11364 ;;
11365 *)
11366 ;;
11367 esac
11368 ;;
11369 linux*)
11370 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011371 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011372 # KAI C++ Compiler
11373 lt_prog_compiler_wl_CXX='--backend -Wl,'
11374 lt_prog_compiler_pic_CXX='-fPIC'
11375 ;;
vapier7f19c022007-02-17 14:46:31 +000011376 icpc* | ecpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011377 # Intel C++
11378 lt_prog_compiler_wl_CXX='-Wl,'
11379 lt_prog_compiler_pic_CXX='-KPIC'
11380 lt_prog_compiler_static_CXX='-static'
11381 ;;
vapier7f19c022007-02-17 14:46:31 +000011382 pgCC*)
11383 # Portland Group C++ compiler.
11384 lt_prog_compiler_wl_CXX='-Wl,'
11385 lt_prog_compiler_pic_CXX='-fpic'
11386 lt_prog_compiler_static_CXX='-Bstatic'
11387 ;;
11388 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011389 # Compaq C++
11390 # Make sure the PIC flag is empty. It appears that all Alpha
11391 # Linux and Compaq Tru64 Unix objects are PIC.
11392 lt_prog_compiler_pic_CXX=
11393 lt_prog_compiler_static_CXX='-non_shared'
11394 ;;
11395 *)
11396 ;;
11397 esac
11398 ;;
11399 lynxos*)
11400 ;;
11401 m88k*)
11402 ;;
11403 mvs*)
11404 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011405 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011406 lt_prog_compiler_pic_CXX='-W c,exportall'
11407 ;;
11408 *)
11409 ;;
11410 esac
11411 ;;
vapier7f19c022007-02-17 14:46:31 +000011412 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011413 ;;
11414 osf3* | osf4* | osf5*)
11415 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011416 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011417 lt_prog_compiler_wl_CXX='--backend -Wl,'
11418 ;;
vapier7f19c022007-02-17 14:46:31 +000011419 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011420 # Rational C++ 2.4.1
11421 lt_prog_compiler_pic_CXX='-pic'
11422 ;;
vapier7f19c022007-02-17 14:46:31 +000011423 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011424 # Digital/Compaq C++
11425 lt_prog_compiler_wl_CXX='-Wl,'
11426 # Make sure the PIC flag is empty. It appears that all Alpha
11427 # Linux and Compaq Tru64 Unix objects are PIC.
11428 lt_prog_compiler_pic_CXX=
11429 lt_prog_compiler_static_CXX='-non_shared'
11430 ;;
11431 *)
11432 ;;
11433 esac
11434 ;;
11435 psos*)
11436 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011437 solaris*)
11438 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011439 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011440 # Sun C++ 4.2, 5.x and Centerline C++
11441 lt_prog_compiler_pic_CXX='-KPIC'
11442 lt_prog_compiler_static_CXX='-Bstatic'
11443 lt_prog_compiler_wl_CXX='-Qoption ld '
11444 ;;
vapier7f19c022007-02-17 14:46:31 +000011445 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011446 # Green Hills C++ Compiler
11447 lt_prog_compiler_pic_CXX='-PIC'
11448 ;;
11449 *)
11450 ;;
11451 esac
11452 ;;
11453 sunos4*)
11454 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011455 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011456 # Sun C++ 4.x
11457 lt_prog_compiler_pic_CXX='-pic'
11458 lt_prog_compiler_static_CXX='-Bstatic'
11459 ;;
vapier7f19c022007-02-17 14:46:31 +000011460 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011461 # Lucid
11462 lt_prog_compiler_pic_CXX='-pic'
11463 ;;
11464 *)
11465 ;;
11466 esac
11467 ;;
11468 tandem*)
11469 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011470 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011471 # NonStop-UX NCC 3.20
11472 lt_prog_compiler_pic_CXX='-KPIC'
11473 ;;
11474 *)
11475 ;;
11476 esac
11477 ;;
vapier7f19c022007-02-17 14:46:31 +000011478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11479 case $cc_basename in
11480 CC*)
11481 lt_prog_compiler_wl_CXX='-Wl,'
11482 lt_prog_compiler_pic_CXX='-KPIC'
11483 lt_prog_compiler_static_CXX='-Bstatic'
11484 ;;
11485 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011486 ;;
11487 vxworks*)
11488 ;;
11489 *)
11490 lt_prog_compiler_can_build_shared_CXX=no
11491 ;;
11492 esac
11493 fi
11494
mlcreech94984912008-03-04 19:03:08 +000011495{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11496echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011497
11498#
11499# Check to make sure the PIC flag actually works.
11500#
11501if test -n "$lt_prog_compiler_pic_CXX"; then
11502
mlcreech94984912008-03-04 19:03:08 +000011503{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11504echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011505if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507else
11508 lt_prog_compiler_pic_works_CXX=no
11509 ac_outfile=conftest.$ac_objext
11510 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11511 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11512 # Insert the option either (1) after the last *FLAGS variable, or
11513 # (2) before a word containing "conftest.", or (3) at the end.
11514 # Note that $ac_compile itself does not contain backslashes and begins
11515 # with a dollar sign (not a hyphen), so the echo should work correctly.
11516 # The option is referenced via a variable to avoid confusing sed.
11517 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11520 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000011521 (eval echo "\"\$as_me:11521: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011522 (eval "$lt_compile" 2>conftest.err)
11523 ac_status=$?
11524 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000011525 echo "$as_me:11525: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011526 if (exit $ac_status) && test -s "$ac_outfile"; then
11527 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000011528 # So say no if there are warnings other than the usual output.
11529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11530 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11531 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011532 lt_prog_compiler_pic_works_CXX=yes
11533 fi
11534 fi
11535 $rm conftest*
11536
11537fi
mlcreech94984912008-03-04 19:03:08 +000011538{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11539echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011540
11541if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11542 case $lt_prog_compiler_pic_CXX in
11543 "" | " "*) ;;
11544 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11545 esac
11546else
11547 lt_prog_compiler_pic_CXX=
11548 lt_prog_compiler_can_build_shared_CXX=no
11549fi
11550
11551fi
vapier7f19c022007-02-17 14:46:31 +000011552case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000011553 # For platforms which do not support PIC, -DPIC is meaningless:
11554 *djgpp*)
11555 lt_prog_compiler_pic_CXX=
11556 ;;
11557 *)
11558 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11559 ;;
11560esac
11561
vapier7f19c022007-02-17 14:46:31 +000011562#
11563# Check to make sure the static flag actually works.
11564#
11565wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
mlcreech94984912008-03-04 19:03:08 +000011566{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11567echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011568if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570else
11571 lt_prog_compiler_static_works_CXX=no
11572 save_LDFLAGS="$LDFLAGS"
11573 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11574 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11575 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11576 # The linker can only warn and ignore the option if not recognized
11577 # So say no if there are warnings
11578 if test -s conftest.err; then
11579 # Append any errors to the config.log.
11580 cat conftest.err 1>&5
11581 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11583 if diff conftest.exp conftest.er2 >/dev/null; then
11584 lt_prog_compiler_static_works_CXX=yes
11585 fi
11586 else
11587 lt_prog_compiler_static_works_CXX=yes
11588 fi
11589 fi
11590 $rm conftest*
11591 LDFLAGS="$save_LDFLAGS"
11592
11593fi
mlcreech94984912008-03-04 19:03:08 +000011594{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11595echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011596
11597if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11598 :
11599else
11600 lt_prog_compiler_static_CXX=
11601fi
11602
11603
mlcreech94984912008-03-04 19:03:08 +000011604{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11605echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011606if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609 lt_cv_prog_compiler_c_o_CXX=no
11610 $rm -r conftest 2>/dev/null
11611 mkdir conftest
11612 cd conftest
11613 mkdir out
11614 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615
11616 lt_compiler_flag="-o out/conftest2.$ac_objext"
11617 # Insert the option either (1) after the last *FLAGS variable, or
11618 # (2) before a word containing "conftest.", or (3) at the end.
11619 # Note that $ac_compile itself does not contain backslashes and begins
11620 # with a dollar sign (not a hyphen), so the echo should work correctly.
11621 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11624 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000011625 (eval echo "\"\$as_me:11625: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011626 (eval "$lt_compile" 2>out/conftest.err)
11627 ac_status=$?
11628 cat out/conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000011629 echo "$as_me:11629: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011630 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11631 then
11632 # The compiler can only warn and ignore the option if not recognized
11633 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000011634 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11635 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11636 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011637 lt_cv_prog_compiler_c_o_CXX=yes
11638 fi
11639 fi
vapier7f19c022007-02-17 14:46:31 +000011640 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011641 $rm conftest*
11642 # SGI C++ compiler will create directory out/ii_files/ for
11643 # template instantiation
11644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11645 $rm out/* && rmdir out
11646 cd ..
11647 rmdir conftest
11648 $rm conftest*
11649
11650fi
mlcreech94984912008-03-04 19:03:08 +000011651{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11652echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011653
11654
11655hard_links="nottested"
11656if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11657 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000011658 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11659echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011660 hard_links=yes
11661 $rm conftest*
11662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11663 touch conftest.a
11664 ln conftest.a conftest.b 2>&5 || hard_links=no
11665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000011666 { echo "$as_me:$LINENO: result: $hard_links" >&5
11667echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011668 if test "$hard_links" = no; then
11669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11670echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11671 need_locks=warn
11672 fi
11673else
11674 need_locks=no
11675fi
11676
mlcreech94984912008-03-04 19:03:08 +000011677{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11678echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011679
11680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11681 case $host_os in
11682 aix4* | aix5*)
11683 # If we're using GNU nm, then we don't want the "-C" option.
11684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11685 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11686 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'
11687 else
11688 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'
11689 fi
11690 ;;
11691 pw32*)
11692 export_symbols_cmds_CXX="$ltdll_cmds"
11693 ;;
11694 cygwin* | mingw*)
vapier7f19c022007-02-17 14:46:31 +000011695 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 +000011696 ;;
11697 *)
11698 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11699 ;;
11700 esac
11701
mlcreech94984912008-03-04 19:03:08 +000011702{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11703echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011704test "$ld_shlibs_CXX" = no && can_build_shared=no
11705
a.rottmann9bc8b932004-02-29 15:18:31 +000011706#
11707# Do we need to explicitly link libc?
11708#
11709case "x$archive_cmds_need_lc_CXX" in
11710x|xyes)
11711 # Assume -lc should be added
11712 archive_cmds_need_lc_CXX=yes
11713
11714 if test "$enable_shared" = yes && test "$GCC" = yes; then
11715 case $archive_cmds_CXX in
11716 *'~'*)
11717 # FIXME: we may have to deal with multi-command sequences.
11718 ;;
11719 '$CC '*)
11720 # Test whether the compiler implicitly links with -lc since on some
11721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11722 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000011723 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11724echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011725 $rm conftest*
11726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11727
11728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } 2>conftest.err; then
11733 soname=conftest
11734 lib=conftest
11735 libobjs=conftest.$ac_objext
11736 deplibs=
11737 wl=$lt_prog_compiler_wl_CXX
vapier7f19c022007-02-17 14:46:31 +000011738 pic_flag=$lt_prog_compiler_pic_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +000011739 compiler_flags=-v
11740 linker_flags=-v
11741 verstring=
11742 output_objdir=.
11743 libname=conftest
11744 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11745 allow_undefined_flag_CXX=
11746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11747 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }
11751 then
11752 archive_cmds_need_lc_CXX=no
11753 else
11754 archive_cmds_need_lc_CXX=yes
11755 fi
11756 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11757 else
11758 cat conftest.err 1>&5
11759 fi
11760 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000011761 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11762echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011763 ;;
11764 esac
11765 fi
11766 ;;
11767esac
11768
mlcreech94984912008-03-04 19:03:08 +000011769{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11770echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011771library_names_spec=
11772libname_spec='lib$name'
11773soname_spec=
vapier7f19c022007-02-17 14:46:31 +000011774shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000011775postinstall_cmds=
11776postuninstall_cmds=
11777finish_cmds=
11778finish_eval=
11779shlibpath_var=
11780shlibpath_overrides_runpath=unknown
11781version_type=none
11782dynamic_linker="$host_os ld.so"
11783sys_lib_dlsearch_path_spec="/lib /usr/lib"
11784if test "$GCC" = yes; then
11785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11787 # if the path contains ";" then we assume it to be the separator
11788 # otherwise default to the standard path separator (i.e. ":") - it is
11789 # assumed that no part of a normal pathname contains ";" but that should
11790 # okay in the real world where ";" in dirpaths is itself problematic.
11791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11792 else
11793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11794 fi
11795else
11796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11797fi
11798need_lib_prefix=unknown
11799hardcode_into_libs=no
11800
11801# when you set need_version to no, make sure it does not cause -set_version
11802# flags to be left without arguments
11803need_version=unknown
11804
11805case $host_os in
11806aix3*)
11807 version_type=linux
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11809 shlibpath_var=LIBPATH
11810
11811 # AIX 3 has no versioning support, so we append a major version to the name.
11812 soname_spec='${libname}${release}${shared_ext}$major'
11813 ;;
11814
11815aix4* | aix5*)
11816 version_type=linux
11817 need_lib_prefix=no
11818 need_version=no
11819 hardcode_into_libs=yes
11820 if test "$host_cpu" = ia64; then
11821 # AIX 5 supports IA64
11822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 else
11825 # With GCC up to 2.95.x, collect2 would create an import file
11826 # for dependence libraries. The import file would start with
11827 # the line `#! .'. This would cause the generated library to
11828 # depend on `.', always an invalid library. This was fixed in
11829 # development snapshots of GCC prior to 3.0.
11830 case $host_os in
11831 aix4 | aix4.[01] | aix4.[01].*)
11832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11833 echo ' yes '
11834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11835 :
11836 else
11837 can_build_shared=no
11838 fi
11839 ;;
11840 esac
11841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11842 # soname into executable. Probably we can add versioning support to
11843 # collect2, so additional links can be useful in future.
11844 if test "$aix_use_runtimelinking" = yes; then
11845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11846 # instead of lib<name>.a to let people know that these are not
11847 # typical AIX shared libraries.
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 else
11850 # We preserve .a as extension for shared libraries through AIX4.2
11851 # and later when we are not doing run time linking.
11852 library_names_spec='${libname}${release}.a $libname.a'
11853 soname_spec='${libname}${release}${shared_ext}$major'
11854 fi
11855 shlibpath_var=LIBPATH
11856 fi
11857 ;;
11858
11859amigaos*)
11860 library_names_spec='$libname.ixlibrary $libname.a'
11861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11862 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'
11863 ;;
11864
11865beos*)
11866 library_names_spec='${libname}${shared_ext}'
11867 dynamic_linker="$host_os ld.so"
11868 shlibpath_var=LIBRARY_PATH
11869 ;;
11870
vapier7f19c022007-02-17 14:46:31 +000011871bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011872 version_type=linux
11873 need_version=no
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11880 # the default ld.so.conf also contains /usr/contrib/lib and
11881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11882 # libtool to hard-code these into programs
11883 ;;
11884
11885cygwin* | mingw* | pw32*)
11886 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000011887 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011888 need_version=no
11889 need_lib_prefix=no
11890
11891 case $GCC,$host_os in
11892 yes,cygwin* | yes,mingw* | yes,pw32*)
11893 library_names_spec='$libname.dll.a'
11894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11895 postinstall_cmds='base_file=`basename \${file}`~
11896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11897 dldir=$destdir/`dirname \$dlpath`~
11898 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000011899 $install_prog $dir/$dlname \$dldir/$dlname~
11900 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000011901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11902 dlpath=$dir/\$dldll~
11903 $rm \$dlpath'
11904 shlibpath_overrides_runpath=yes
11905
11906 case $host_os in
11907 cygwin*)
11908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11911 ;;
11912 mingw*)
11913 # MinGW DLLs use traditional 'lib' prefix
11914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11917 # It is most probably a Windows format PATH printed by
11918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11919 # path with ; separators, and with drive letters. We can handle the
11920 # drive letters (cygwin fileutils understands them), so leave them,
11921 # especially as we might pass files found there to a mingw objdump,
11922 # which wouldn't understand a cygwinified path. Ahh.
11923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11924 else
11925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11926 fi
11927 ;;
11928 pw32*)
11929 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000011930 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 +000011931 ;;
11932 esac
11933 ;;
11934
vapier7f19c022007-02-17 14:46:31 +000011935 linux*)
11936 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11938 supports_anon_versioning=no
11939 case `$LD -v 2>/dev/null` in
11940 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11941 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11942 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11943 *\ 2.11.*) ;; # other 2.11 versions
11944 *) supports_anon_versioning=yes ;;
11945 esac
11946 if test $supports_anon_versioning = yes; then
11947 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11948cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11949$echo "local: *; };" >> $output_objdir/$libname.ver~
11950 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11951 else
11952 $archive_expsym_cmds="$archive_cmds"
11953 fi
11954 else
11955 ld_shlibs=no
11956 fi
11957 ;;
11958
a.rottmann9bc8b932004-02-29 15:18:31 +000011959 *)
11960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11961 ;;
11962 esac
11963 dynamic_linker='Win32 ld.exe'
11964 # FIXME: first we should search . and the directory the executable is in
11965 shlibpath_var=PATH
11966 ;;
11967
11968darwin* | rhapsody*)
11969 dynamic_linker="$host_os dyld"
11970 version_type=darwin
11971 need_lib_prefix=no
11972 need_version=no
11973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11974 soname_spec='${libname}${release}${major}$shared_ext'
11975 shlibpath_overrides_runpath=yes
11976 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000011977 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000011978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11979 if test "$GCC" = yes; then
11980 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"`
11981 else
11982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11983 fi
11984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11985 ;;
11986
11987dgux*)
11988 version_type=linux
11989 need_lib_prefix=no
11990 need_version=no
11991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 ;;
11995
11996freebsd1*)
11997 dynamic_linker=no
11998 ;;
11999
12000kfreebsd*-gnu)
12001 version_type=linux
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12005 soname_spec='${libname}${release}${shared_ext}$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 shlibpath_overrides_runpath=no
12008 hardcode_into_libs=yes
12009 dynamic_linker='GNU ld.so'
12010 ;;
12011
vapier7f19c022007-02-17 14:46:31 +000012012freebsd* | dragonfly*)
12013 # DragonFly does not have aout. When/if they implement a new
12014 # versioning mechanism, adjust this.
12015 if test -x /usr/bin/objformat; then
12016 objformat=`/usr/bin/objformat`
12017 else
12018 case $host_os in
12019 freebsd[123]*) objformat=aout ;;
12020 *) objformat=elf ;;
12021 esac
12022 fi
12023 # Handle Gentoo/FreeBSD as it was Linux
12024 case $host_vendor in
12025 gentoo)
12026 version_type=linux ;;
12027 *)
12028 version_type=freebsd-$objformat ;;
12029 esac
12030
a.rottmann9bc8b932004-02-29 15:18:31 +000012031 case $version_type in
12032 freebsd-elf*)
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12034 need_version=no
12035 need_lib_prefix=no
12036 ;;
12037 freebsd-*)
12038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12039 need_version=yes
12040 ;;
vapier7f19c022007-02-17 14:46:31 +000012041 linux)
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12043 soname_spec='${libname}${release}${shared_ext}$major'
12044 need_lib_prefix=no
12045 need_version=no
12046 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012047 esac
12048 shlibpath_var=LD_LIBRARY_PATH
12049 case $host_os in
12050 freebsd2*)
12051 shlibpath_overrides_runpath=yes
12052 ;;
vapier7f19c022007-02-17 14:46:31 +000012053 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012054 shlibpath_overrides_runpath=yes
12055 hardcode_into_libs=yes
12056 ;;
vapier7f19c022007-02-17 14:46:31 +000012057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000012059 shlibpath_overrides_runpath=no
12060 hardcode_into_libs=yes
12061 ;;
vapier7f19c022007-02-17 14:46:31 +000012062 freebsd*) # from 4.6 on
12063 shlibpath_overrides_runpath=yes
12064 hardcode_into_libs=yes
12065 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012066 esac
12067 ;;
12068
12069gnu*)
12070 version_type=linux
12071 need_lib_prefix=no
12072 need_version=no
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 hardcode_into_libs=yes
12077 ;;
12078
12079hpux9* | hpux10* | hpux11*)
12080 # Give a soname corresponding to the major version so that dld.sl refuses to
12081 # link against other versions.
12082 version_type=sunos
12083 need_lib_prefix=no
12084 need_version=no
vapier7f19c022007-02-17 14:46:31 +000012085 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012086 ia64*)
vapier7f19c022007-02-17 14:46:31 +000012087 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000012088 hardcode_into_libs=yes
12089 dynamic_linker="$host_os dld.so"
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093 soname_spec='${libname}${release}${shared_ext}$major'
12094 if test "X$HPUX_IA64_MODE" = X32; then
12095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12096 else
12097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12098 fi
12099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100 ;;
12101 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000012102 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012103 hardcode_into_libs=yes
12104 dynamic_linker="$host_os dld.sl"
12105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108 soname_spec='${libname}${release}${shared_ext}$major'
12109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111 ;;
12112 *)
vapier7f19c022007-02-17 14:46:31 +000012113 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012114 dynamic_linker="$host_os dld.sl"
12115 shlibpath_var=SHLIB_PATH
12116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118 soname_spec='${libname}${release}${shared_ext}$major'
12119 ;;
12120 esac
12121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12122 postinstall_cmds='chmod 555 $lib'
12123 ;;
12124
vapier7f19c022007-02-17 14:46:31 +000012125interix3*)
12126 version_type=linux
12127 need_lib_prefix=no
12128 need_version=no
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=no
12134 hardcode_into_libs=yes
12135 ;;
12136
a.rottmann9bc8b932004-02-29 15:18:31 +000012137irix5* | irix6* | nonstopux*)
12138 case $host_os in
12139 nonstopux*) version_type=nonstopux ;;
12140 *)
12141 if test "$lt_cv_prog_gnu_ld" = yes; then
12142 version_type=linux
12143 else
12144 version_type=irix
12145 fi ;;
12146 esac
12147 need_lib_prefix=no
12148 need_version=no
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12151 case $host_os in
12152 irix5* | nonstopux*)
12153 libsuff= shlibsuff=
12154 ;;
12155 *)
12156 case $LD in # libtool.m4 will add one of these switches to LD
12157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12158 libsuff= shlibsuff= libmagic=32-bit;;
12159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12160 libsuff=32 shlibsuff=N32 libmagic=N32;;
12161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12163 *) libsuff= shlibsuff= libmagic=never-match;;
12164 esac
12165 ;;
12166 esac
12167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12168 shlibpath_overrides_runpath=no
12169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12171 hardcode_into_libs=yes
12172 ;;
12173
12174# No shared lib support for Linux oldld, aout, or coff.
12175linux*oldld* | linux*aout* | linux*coff*)
12176 dynamic_linker=no
12177 ;;
12178
12179# This must be Linux ELF.
12180linux*)
12181 version_type=linux
12182 need_lib_prefix=no
12183 need_version=no
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185 soname_spec='${libname}${release}${shared_ext}$major'
12186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12187 shlibpath_var=LD_LIBRARY_PATH
12188 shlibpath_overrides_runpath=no
12189 # This implies no fast_install, which is unacceptable.
12190 # Some rework will be needed to allow for fast_install
12191 # before this can be enabled.
12192 hardcode_into_libs=yes
12193
12194 # Append ld.so.conf contents to the search path
12195 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000012196 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' ' '`
12197 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000012198 fi
12199
12200 # We used to test for /lib/ld.so.1 and disable shared libraries on
12201 # powerpc, because MkLinux only supported shared libraries with the
12202 # GNU dynamic linker. Since this was broken with cross compilers,
12203 # most powerpc-linux boxes support dynamic linking these days and
12204 # people can always --disable-shared, the test was removed, and we
12205 # assume the GNU/Linux dynamic linker is in use.
12206 dynamic_linker='GNU/Linux ld.so'
12207 ;;
12208
12209knetbsd*-gnu)
12210 version_type=linux
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 shlibpath_overrides_runpath=no
12217 hardcode_into_libs=yes
12218 dynamic_linker='GNU ld.so'
12219 ;;
12220
12221netbsd*)
12222 version_type=sunos
12223 need_lib_prefix=no
12224 need_version=no
12225 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12228 dynamic_linker='NetBSD (a.out) ld.so'
12229 else
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 dynamic_linker='NetBSD ld.elf_so'
12233 fi
12234 shlibpath_var=LD_LIBRARY_PATH
12235 shlibpath_overrides_runpath=yes
12236 hardcode_into_libs=yes
12237 ;;
12238
12239newsos6)
12240 version_type=linux
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 shlibpath_var=LD_LIBRARY_PATH
12243 shlibpath_overrides_runpath=yes
12244 ;;
12245
12246nto-qnx*)
12247 version_type=linux
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251 soname_spec='${libname}${release}${shared_ext}$major'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12254 ;;
12255
12256openbsd*)
12257 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000012258 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000012259 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000012260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12261 case $host_os in
12262 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12263 *) need_version=no ;;
12264 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000012265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12269 case $host_os in
12270 openbsd2.[89] | openbsd2.[89].*)
12271 shlibpath_overrides_runpath=no
12272 ;;
12273 *)
12274 shlibpath_overrides_runpath=yes
12275 ;;
12276 esac
12277 else
12278 shlibpath_overrides_runpath=yes
12279 fi
12280 ;;
12281
12282os2*)
12283 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000012284 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000012285 need_lib_prefix=no
12286 library_names_spec='$libname${shared_ext} $libname.a'
12287 dynamic_linker='OS/2 ld.exe'
12288 shlibpath_var=LIBPATH
12289 ;;
12290
12291osf3* | osf4* | osf5*)
12292 version_type=osf
12293 need_lib_prefix=no
12294 need_version=no
12295 soname_spec='${libname}${release}${shared_ext}$major'
12296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297 shlibpath_var=LD_LIBRARY_PATH
12298 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12299 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12300 ;;
12301
a.rottmann9bc8b932004-02-29 15:18:31 +000012302solaris*)
12303 version_type=linux
12304 need_lib_prefix=no
12305 need_version=no
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307 soname_spec='${libname}${release}${shared_ext}$major'
12308 shlibpath_var=LD_LIBRARY_PATH
12309 shlibpath_overrides_runpath=yes
12310 hardcode_into_libs=yes
12311 # ldd complains unless libraries are executable
12312 postinstall_cmds='chmod +x $lib'
12313 ;;
12314
12315sunos4*)
12316 version_type=sunos
12317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=yes
12321 if test "$with_gnu_ld" = yes; then
12322 need_lib_prefix=no
12323 fi
12324 need_version=yes
12325 ;;
12326
vapier7f19c022007-02-17 14:46:31 +000012327sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012328 version_type=linux
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 case $host_vendor in
12333 sni)
12334 shlibpath_overrides_runpath=no
12335 need_lib_prefix=no
12336 export_dynamic_flag_spec='${wl}-Blargedynsym'
12337 runpath_var=LD_RUN_PATH
12338 ;;
12339 siemens)
12340 need_lib_prefix=no
12341 ;;
12342 motorola)
12343 need_lib_prefix=no
12344 need_version=no
12345 shlibpath_overrides_runpath=no
12346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12347 ;;
12348 esac
12349 ;;
12350
12351sysv4*MP*)
12352 if test -d /usr/nec ;then
12353 version_type=linux
12354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12355 soname_spec='$libname${shared_ext}.$major'
12356 shlibpath_var=LD_LIBRARY_PATH
12357 fi
12358 ;;
12359
vapier7f19c022007-02-17 14:46:31 +000012360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12361 version_type=freebsd-elf
12362 need_lib_prefix=no
12363 need_version=no
12364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12365 soname_spec='${libname}${release}${shared_ext}$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 hardcode_into_libs=yes
12368 if test "$with_gnu_ld" = yes; then
12369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12370 shlibpath_overrides_runpath=no
12371 else
12372 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12373 shlibpath_overrides_runpath=yes
12374 case $host_os in
12375 sco3.2v5*)
12376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12377 ;;
12378 esac
12379 fi
12380 sys_lib_dlsearch_path_spec='/usr/lib'
12381 ;;
12382
a.rottmann9bc8b932004-02-29 15:18:31 +000012383uts4*)
12384 version_type=linux
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 ;;
12389
12390*)
12391 dynamic_linker=no
12392 ;;
12393esac
mlcreech94984912008-03-04 19:03:08 +000012394{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12395echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012396test "$dynamic_linker" = no && can_build_shared=no
12397
vapier7f19c022007-02-17 14:46:31 +000012398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12399if test "$GCC" = yes; then
12400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12401fi
12402
mlcreech94984912008-03-04 19:03:08 +000012403{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12404echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012405hardcode_action_CXX=
12406if test -n "$hardcode_libdir_flag_spec_CXX" || \
vapier7f19c022007-02-17 14:46:31 +000012407 test -n "$runpath_var_CXX" || \
12408 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012409
12410 # We can hardcode non-existant directories.
12411 if test "$hardcode_direct_CXX" != no &&
12412 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12413 # have to relink, otherwise we might link with an installed library
12414 # when we should be linking with a yet-to-be-installed one
12415 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12416 test "$hardcode_minus_L_CXX" != no; then
12417 # Linking always hardcodes the temporary library directory.
12418 hardcode_action_CXX=relink
12419 else
12420 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12421 hardcode_action_CXX=immediate
12422 fi
12423else
12424 # We cannot hardcode anything, or else we can only hardcode existing
12425 # directories.
12426 hardcode_action_CXX=unsupported
12427fi
mlcreech94984912008-03-04 19:03:08 +000012428{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12429echo "${ECHO_T}$hardcode_action_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012430
12431if test "$hardcode_action_CXX" = relink; then
12432 # Fast installation is not supported
12433 enable_fast_install=no
12434elif test "$shlibpath_overrides_runpath" = yes ||
12435 test "$enable_shared" = no; then
12436 # Fast installation is not necessary
12437 enable_fast_install=needless
12438fi
12439
a.rottmann9bc8b932004-02-29 15:18:31 +000012440
12441# The else clause should only fire when bootstrapping the
12442# libtool distribution, otherwise you forgot to ship ltmain.sh
12443# with your package, and you will get complaints that there are
12444# no rules to generate ltmain.sh.
12445if test -f "$ltmain"; then
12446 # See if we are running on zsh, and set the options which allow our commands through
12447 # without removal of \ escapes.
12448 if test -n "${ZSH_VERSION+set}" ; then
12449 setopt NO_GLOB_SUBST
12450 fi
12451 # Now quote all the things that may contain metacharacters while being
12452 # careful not to overquote the AC_SUBSTed values. We take copies of the
12453 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000012454 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 +000012455 SED SHELL STRIP \
12456 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12457 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12458 deplibs_check_method reload_flag reload_cmds need_locks \
12459 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12460 lt_cv_sys_global_symbol_to_c_name_address \
12461 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12462 old_postinstall_cmds old_postuninstall_cmds \
12463 compiler_CXX \
12464 CC_CXX \
12465 LD_CXX \
12466 lt_prog_compiler_wl_CXX \
12467 lt_prog_compiler_pic_CXX \
12468 lt_prog_compiler_static_CXX \
12469 lt_prog_compiler_no_builtin_flag_CXX \
12470 export_dynamic_flag_spec_CXX \
12471 thread_safe_flag_spec_CXX \
12472 whole_archive_flag_spec_CXX \
12473 enable_shared_with_static_runtimes_CXX \
12474 old_archive_cmds_CXX \
12475 old_archive_from_new_cmds_CXX \
12476 predep_objects_CXX \
12477 postdep_objects_CXX \
12478 predeps_CXX \
12479 postdeps_CXX \
12480 compiler_lib_search_path_CXX \
12481 archive_cmds_CXX \
12482 archive_expsym_cmds_CXX \
12483 postinstall_cmds_CXX \
12484 postuninstall_cmds_CXX \
12485 old_archive_from_expsyms_cmds_CXX \
12486 allow_undefined_flag_CXX \
12487 no_undefined_flag_CXX \
12488 export_symbols_cmds_CXX \
12489 hardcode_libdir_flag_spec_CXX \
12490 hardcode_libdir_flag_spec_ld_CXX \
12491 hardcode_libdir_separator_CXX \
12492 hardcode_automatic_CXX \
12493 module_cmds_CXX \
12494 module_expsym_cmds_CXX \
12495 lt_cv_prog_compiler_c_o_CXX \
12496 exclude_expsyms_CXX \
12497 include_expsyms_CXX; do
12498
12499 case $var in
12500 old_archive_cmds_CXX | \
12501 old_archive_from_new_cmds_CXX | \
12502 archive_cmds_CXX | \
12503 archive_expsym_cmds_CXX | \
12504 module_cmds_CXX | \
12505 module_expsym_cmds_CXX | \
12506 old_archive_from_expsyms_cmds_CXX | \
12507 export_symbols_cmds_CXX | \
12508 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12509 postinstall_cmds | postuninstall_cmds | \
12510 old_postinstall_cmds | old_postuninstall_cmds | \
12511 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12512 # Double-quote double-evaled strings.
12513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12514 ;;
12515 *)
12516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12517 ;;
12518 esac
12519 done
12520
12521 case $lt_echo in
12522 *'\$0 --fallback-echo"')
12523 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12524 ;;
12525 esac
12526
12527cfgfile="$ofile"
12528
12529 cat <<__EOF__ >> "$cfgfile"
12530# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12531
12532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12533
12534# Shell to use when invoking shell scripts.
12535SHELL=$lt_SHELL
12536
12537# Whether or not to build shared libraries.
12538build_libtool_libs=$enable_shared
12539
12540# Whether or not to build static libraries.
12541build_old_libs=$enable_static
12542
12543# Whether or not to add -lc for building shared libraries.
12544build_libtool_need_lc=$archive_cmds_need_lc_CXX
12545
12546# Whether or not to disallow shared libs when runtime libs are static
12547allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12548
12549# Whether or not to optimize for fast installation.
12550fast_install=$enable_fast_install
12551
12552# The host system.
12553host_alias=$host_alias
12554host=$host
vapier7f19c022007-02-17 14:46:31 +000012555host_os=$host_os
12556
12557# The build system.
12558build_alias=$build_alias
12559build=$build
12560build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000012561
12562# An echo program that does not interpret backslashes.
12563echo=$lt_echo
12564
12565# The archiver.
12566AR=$lt_AR
12567AR_FLAGS=$lt_AR_FLAGS
12568
12569# A C compiler.
12570LTCC=$lt_LTCC
12571
vapier7f19c022007-02-17 14:46:31 +000012572# LTCC compiler flags.
12573LTCFLAGS=$lt_LTCFLAGS
12574
a.rottmann9bc8b932004-02-29 15:18:31 +000012575# A language-specific compiler.
12576CC=$lt_compiler_CXX
12577
12578# Is the compiler the GNU C compiler?
12579with_gcc=$GCC_CXX
12580
12581# An ERE matcher.
12582EGREP=$lt_EGREP
12583
12584# The linker used to build libraries.
12585LD=$lt_LD_CXX
12586
12587# Whether we need hard or soft links.
12588LN_S=$lt_LN_S
12589
12590# A BSD-compatible nm program.
12591NM=$lt_NM
12592
12593# A symbol stripping program
12594STRIP=$lt_STRIP
12595
12596# Used to examine libraries when file_magic_cmd begins "file"
12597MAGIC_CMD=$MAGIC_CMD
12598
12599# Used on cygwin: DLL creation program.
12600DLLTOOL="$DLLTOOL"
12601
12602# Used on cygwin: object dumper.
12603OBJDUMP="$OBJDUMP"
12604
12605# Used on cygwin: assembler.
12606AS="$AS"
12607
12608# The name of the directory that contains temporary libtool files.
12609objdir=$objdir
12610
12611# How to create reloadable object files.
12612reload_flag=$lt_reload_flag
12613reload_cmds=$lt_reload_cmds
12614
12615# How to pass a linker flag through the compiler.
12616wl=$lt_lt_prog_compiler_wl_CXX
12617
12618# Object file suffix (normally "o").
12619objext="$ac_objext"
12620
12621# Old archive suffix (normally "a").
12622libext="$libext"
12623
12624# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000012625shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000012626
12627# Executable file suffix (normally "").
12628exeext="$exeext"
12629
12630# Additional compiler flags for building library objects.
12631pic_flag=$lt_lt_prog_compiler_pic_CXX
12632pic_mode=$pic_mode
12633
12634# What is the maximum length of a command?
12635max_cmd_len=$lt_cv_sys_max_cmd_len
12636
12637# Does compiler simultaneously support -c and -o options?
12638compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12639
vapier7f19c022007-02-17 14:46:31 +000012640# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000012641need_locks=$lt_need_locks
12642
12643# Do we need the lib prefix for modules?
12644need_lib_prefix=$need_lib_prefix
12645
12646# Do we need a version for libraries?
12647need_version=$need_version
12648
12649# Whether dlopen is supported.
12650dlopen_support=$enable_dlopen
12651
12652# Whether dlopen of programs is supported.
12653dlopen_self=$enable_dlopen_self
12654
12655# Whether dlopen of statically linked programs is supported.
12656dlopen_self_static=$enable_dlopen_self_static
12657
12658# Compiler flag to prevent dynamic linking.
12659link_static_flag=$lt_lt_prog_compiler_static_CXX
12660
12661# Compiler flag to turn off builtin functions.
12662no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12663
12664# Compiler flag to allow reflexive dlopens.
12665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12666
12667# Compiler flag to generate shared objects directly from archives.
12668whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12669
12670# Compiler flag to generate thread-safe objects.
12671thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12672
12673# Library versioning type.
12674version_type=$version_type
12675
12676# Format of library name prefix.
12677libname_spec=$lt_libname_spec
12678
12679# List of archive names. First name is the real one, the rest are links.
12680# The last name is the one that the linker finds with -lNAME.
12681library_names_spec=$lt_library_names_spec
12682
12683# The coded name of the library, if different from the real name.
12684soname_spec=$lt_soname_spec
12685
12686# Commands used to build and install an old-style archive.
12687RANLIB=$lt_RANLIB
12688old_archive_cmds=$lt_old_archive_cmds_CXX
12689old_postinstall_cmds=$lt_old_postinstall_cmds
12690old_postuninstall_cmds=$lt_old_postuninstall_cmds
12691
12692# Create an old-style archive from a shared archive.
12693old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12694
12695# Create a temporary old-style archive to link instead of a shared archive.
12696old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12697
12698# Commands used to build and install a shared archive.
12699archive_cmds=$lt_archive_cmds_CXX
12700archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12701postinstall_cmds=$lt_postinstall_cmds
12702postuninstall_cmds=$lt_postuninstall_cmds
12703
12704# Commands used to build a loadable module (assumed same as above if empty)
12705module_cmds=$lt_module_cmds_CXX
12706module_expsym_cmds=$lt_module_expsym_cmds_CXX
12707
12708# Commands to strip libraries.
12709old_striplib=$lt_old_striplib
12710striplib=$lt_striplib
12711
12712# Dependencies to place before the objects being linked to create a
12713# shared library.
12714predep_objects=$lt_predep_objects_CXX
12715
12716# Dependencies to place after the objects being linked to create a
12717# shared library.
12718postdep_objects=$lt_postdep_objects_CXX
12719
12720# Dependencies to place before the objects being linked to create a
12721# shared library.
12722predeps=$lt_predeps_CXX
12723
12724# Dependencies to place after the objects being linked to create a
12725# shared library.
12726postdeps=$lt_postdeps_CXX
12727
12728# The library search path used internally by the compiler when linking
12729# a shared library.
12730compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12731
12732# Method to check whether dependent libraries are shared objects.
12733deplibs_check_method=$lt_deplibs_check_method
12734
12735# Command to use when deplibs_check_method == file_magic.
12736file_magic_cmd=$lt_file_magic_cmd
12737
12738# Flag that allows shared libraries with undefined symbols to be built.
12739allow_undefined_flag=$lt_allow_undefined_flag_CXX
12740
12741# Flag that forces no undefined symbols.
12742no_undefined_flag=$lt_no_undefined_flag_CXX
12743
12744# Commands used to finish a libtool library installation in a directory.
12745finish_cmds=$lt_finish_cmds
12746
12747# Same as above, but a single script fragment to be evaled but not shown.
12748finish_eval=$lt_finish_eval
12749
12750# Take the output of nm and produce a listing of raw symbols and C names.
12751global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12752
12753# Transform the output of nm in a proper C declaration
12754global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12755
12756# Transform the output of nm in a C name address pair
12757global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12758
12759# This is the shared library runtime path variable.
12760runpath_var=$runpath_var
12761
12762# This is the shared library path variable.
12763shlibpath_var=$shlibpath_var
12764
12765# Is shlibpath searched before the hard-coded library search path?
12766shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12767
12768# How to hardcode a shared library path into an executable.
12769hardcode_action=$hardcode_action_CXX
12770
12771# Whether we should hardcode library paths into libraries.
12772hardcode_into_libs=$hardcode_into_libs
12773
12774# Flag to hardcode \$libdir into a binary during linking.
12775# This must work even if \$libdir does not exist.
12776hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12777
12778# If ld is used when linking, flag to hardcode \$libdir into
12779# a binary during linking. This must work even if \$libdir does
12780# not exist.
12781hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12782
12783# Whether we need a single -rpath flag with a separated argument.
12784hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12785
12786# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12787# resulting binary.
12788hardcode_direct=$hardcode_direct_CXX
12789
12790# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12791# resulting binary.
12792hardcode_minus_L=$hardcode_minus_L_CXX
12793
12794# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12795# the resulting binary.
12796hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12797
12798# Set to yes if building a shared library automatically hardcodes DIR into the library
12799# and all subsequent libraries and executables linked against it.
12800hardcode_automatic=$hardcode_automatic_CXX
12801
12802# Variables whose values should be saved in libtool wrapper scripts and
12803# restored at relink time.
12804variables_saved_for_relink="$variables_saved_for_relink"
12805
12806# Whether libtool must link a program against all its dependency libraries.
12807link_all_deplibs=$link_all_deplibs_CXX
12808
12809# Compile-time system search path for libraries
12810sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12811
12812# Run-time system search path for libraries
12813sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12814
12815# Fix the shell variable \$srcfile for the compiler.
12816fix_srcfile_path="$fix_srcfile_path_CXX"
12817
12818# Set to yes if exported symbols are required.
12819always_export_symbols=$always_export_symbols_CXX
12820
12821# The commands to list exported symbols.
12822export_symbols_cmds=$lt_export_symbols_cmds_CXX
12823
12824# The commands to extract the exported symbol list from a shared archive.
12825extract_expsyms_cmds=$lt_extract_expsyms_cmds
12826
12827# Symbols that should not be listed in the preloaded symbols.
12828exclude_expsyms=$lt_exclude_expsyms_CXX
12829
12830# Symbols that must always be exported.
12831include_expsyms=$lt_include_expsyms_CXX
12832
12833# ### END LIBTOOL TAG CONFIG: $tagname
12834
12835__EOF__
12836
12837
12838else
12839 # If there is no Makefile yet, we rely on a make rule to execute
12840 # `config.status --recheck' to rerun these tests and create the
12841 # libtool script then.
12842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12843 if test -f "$ltmain_in"; then
12844 test -f Makefile && make "$ltmain"
12845 fi
12846fi
12847
12848
12849ac_ext=c
12850ac_cpp='$CPP $CPPFLAGS'
12851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853ac_compiler_gnu=$ac_cv_c_compiler_gnu
12854
12855CC=$lt_save_CC
12856LDCXX=$LD
12857LD=$lt_save_LD
12858GCC=$lt_save_GCC
12859with_gnu_ldcxx=$with_gnu_ld
12860with_gnu_ld=$lt_save_with_gnu_ld
12861lt_cv_path_LDCXX=$lt_cv_path_LD
12862lt_cv_path_LD=$lt_save_path_LD
12863lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12864lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12865
12866 else
12867 tagname=""
12868 fi
12869 ;;
12870
12871 F77)
12872 if test -n "$F77" && test "X$F77" != "Xno"; then
12873
12874ac_ext=f
12875ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12876ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12878
12879
12880archive_cmds_need_lc_F77=no
12881allow_undefined_flag_F77=
12882always_export_symbols_F77=no
12883archive_expsym_cmds_F77=
12884export_dynamic_flag_spec_F77=
12885hardcode_direct_F77=no
12886hardcode_libdir_flag_spec_F77=
12887hardcode_libdir_flag_spec_ld_F77=
12888hardcode_libdir_separator_F77=
12889hardcode_minus_L_F77=no
12890hardcode_automatic_F77=no
12891module_cmds_F77=
12892module_expsym_cmds_F77=
12893link_all_deplibs_F77=unknown
12894old_archive_cmds_F77=$old_archive_cmds
12895no_undefined_flag_F77=
12896whole_archive_flag_spec_F77=
12897enable_shared_with_static_runtimes_F77=no
12898
12899# Source file extension for f77 test sources.
12900ac_ext=f
12901
12902# Object file extension for compiled f77 test sources.
12903objext=o
12904objext_F77=$objext
12905
12906# Code to be used in simple compile tests
12907lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12908
12909# Code to be used in simple link tests
12910lt_simple_link_test_code=" program t\n end\n"
12911
12912# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12913
12914# If no C compiler was specified, use CC.
12915LTCC=${LTCC-"$CC"}
12916
vapier7f19c022007-02-17 14:46:31 +000012917# If no C compiler flags were specified, use CFLAGS.
12918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12919
a.rottmann9bc8b932004-02-29 15:18:31 +000012920# Allow CC to be a program name with arguments.
12921compiler=$CC
12922
12923
vapier7f19c022007-02-17 14:46:31 +000012924# save warnings/boilerplate of simple test code
12925ac_outfile=conftest.$ac_objext
12926printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12927eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12928_lt_compiler_boilerplate=`cat conftest.err`
12929$rm conftest*
12930
12931ac_outfile=conftest.$ac_objext
12932printf "$lt_simple_link_test_code" >conftest.$ac_ext
12933eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934_lt_linker_boilerplate=`cat conftest.err`
12935$rm conftest*
12936
12937
a.rottmann9bc8b932004-02-29 15:18:31 +000012938# Allow CC to be a program name with arguments.
12939lt_save_CC="$CC"
12940CC=${F77-"f77"}
12941compiler=$CC
12942compiler_F77=$CC
vapier7f19c022007-02-17 14:46:31 +000012943for cc_temp in $compiler""; do
12944 case $cc_temp in
12945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12947 \-*) ;;
12948 *) break;;
12949 esac
12950done
12951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012952
a.rottmann9bc8b932004-02-29 15:18:31 +000012953
mlcreech94984912008-03-04 19:03:08 +000012954{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12955echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12956{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12957echo "${ECHO_T}$can_build_shared" >&6; }
vapier7f19c022007-02-17 14:46:31 +000012958
mlcreech94984912008-03-04 19:03:08 +000012959{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12960echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012961test "$can_build_shared" = "no" && enable_shared=no
12962
12963# On AIX, shared libraries and static libraries use the same namespace, and
12964# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +000012965case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012966aix3*)
12967 test "$enable_shared" = yes && enable_static=no
12968 if test -n "$RANLIB"; then
12969 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12970 postinstall_cmds='$RANLIB $lib'
12971 fi
12972 ;;
vapier7f19c022007-02-17 14:46:31 +000012973aix4* | aix5*)
12974 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975 test "$enable_shared" = yes && enable_static=no
12976 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000012977 ;;
12978esac
mlcreech94984912008-03-04 19:03:08 +000012979{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12980echo "${ECHO_T}$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012981
mlcreech94984912008-03-04 19:03:08 +000012982{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012984# Make sure either enable_shared or enable_static is yes.
12985test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +000012986{ echo "$as_me:$LINENO: result: $enable_static" >&5
12987echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012988
12989GCC_F77="$G77"
12990LD_F77="$LD"
12991
12992lt_prog_compiler_wl_F77=
12993lt_prog_compiler_pic_F77=
12994lt_prog_compiler_static_F77=
12995
mlcreech94984912008-03-04 19:03:08 +000012996{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12997echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012998
12999 if test "$GCC" = yes; then
13000 lt_prog_compiler_wl_F77='-Wl,'
13001 lt_prog_compiler_static_F77='-static'
13002
13003 case $host_os in
13004 aix*)
13005 # All AIX code is PIC.
13006 if test "$host_cpu" = ia64; then
13007 # AIX 5 now supports IA64 processor
13008 lt_prog_compiler_static_F77='-Bstatic'
13009 fi
13010 ;;
13011
13012 amigaos*)
13013 # FIXME: we need at least 68020 code to build shared libraries, but
13014 # adding the `-m68020' flag to GCC prevents building anything better,
13015 # like `-m68040'.
13016 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13017 ;;
13018
13019 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13020 # PIC is the default for these OSes.
13021 ;;
13022
13023 mingw* | pw32* | os2*)
13024 # This hack is so that the source file can tell whether it is being
13025 # built for inclusion in a dll (and should export symbols for example).
13026 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13027 ;;
13028
13029 darwin* | rhapsody*)
13030 # PIC is the default on this platform
13031 # Common symbols not allowed in MH_DYLIB files
13032 lt_prog_compiler_pic_F77='-fno-common'
13033 ;;
13034
vapier7f19c022007-02-17 14:46:31 +000013035 interix3*)
13036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13037 # Instead, we relocate shared libraries at runtime.
13038 ;;
13039
a.rottmann9bc8b932004-02-29 15:18:31 +000013040 msdosdjgpp*)
13041 # Just because we use GCC doesn't mean we suddenly get shared libraries
13042 # on systems that don't support them.
13043 lt_prog_compiler_can_build_shared_F77=no
13044 enable_shared=no
13045 ;;
13046
13047 sysv4*MP*)
13048 if test -d /usr/nec; then
13049 lt_prog_compiler_pic_F77=-Kconform_pic
13050 fi
13051 ;;
13052
13053 hpux*)
13054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013056 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013057 hppa*64*|ia64*)
13058 # +Z the default
13059 ;;
13060 *)
13061 lt_prog_compiler_pic_F77='-fPIC'
13062 ;;
13063 esac
13064 ;;
13065
13066 *)
13067 lt_prog_compiler_pic_F77='-fPIC'
13068 ;;
13069 esac
13070 else
13071 # PORTME Check for flag to pass linker flags through the system compiler.
13072 case $host_os in
13073 aix*)
13074 lt_prog_compiler_wl_F77='-Wl,'
13075 if test "$host_cpu" = ia64; then
13076 # AIX 5 now supports IA64 processor
13077 lt_prog_compiler_static_F77='-Bstatic'
13078 else
13079 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13080 fi
13081 ;;
vapier7f19c022007-02-17 14:46:31 +000013082 darwin*)
13083 # PIC is the default on this platform
13084 # Common symbols not allowed in MH_DYLIB files
13085 case $cc_basename in
13086 xlc*)
13087 lt_prog_compiler_pic_F77='-qnocommon'
13088 lt_prog_compiler_wl_F77='-Wl,'
13089 ;;
13090 esac
13091 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013092
13093 mingw* | pw32* | os2*)
13094 # This hack is so that the source file can tell whether it is being
13095 # built for inclusion in a dll (and should export symbols for example).
13096 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13097 ;;
13098
13099 hpux9* | hpux10* | hpux11*)
13100 lt_prog_compiler_wl_F77='-Wl,'
13101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13102 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013103 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013104 hppa*64*|ia64*)
13105 # +Z the default
13106 ;;
13107 *)
13108 lt_prog_compiler_pic_F77='+Z'
13109 ;;
13110 esac
13111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13112 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13113 ;;
13114
13115 irix5* | irix6* | nonstopux*)
13116 lt_prog_compiler_wl_F77='-Wl,'
13117 # PIC (with -KPIC) is the default.
13118 lt_prog_compiler_static_F77='-non_shared'
13119 ;;
13120
13121 newsos6)
13122 lt_prog_compiler_pic_F77='-KPIC'
13123 lt_prog_compiler_static_F77='-Bstatic'
13124 ;;
13125
13126 linux*)
vapier7f19c022007-02-17 14:46:31 +000013127 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000013128 icc* | ecc*)
13129 lt_prog_compiler_wl_F77='-Wl,'
13130 lt_prog_compiler_pic_F77='-KPIC'
13131 lt_prog_compiler_static_F77='-static'
13132 ;;
vapier7f19c022007-02-17 14:46:31 +000013133 pgcc* | pgf77* | pgf90* | pgf95*)
13134 # Portland Group compilers (*not* the Pentium gcc compiler,
13135 # which looks to be a dead project)
13136 lt_prog_compiler_wl_F77='-Wl,'
13137 lt_prog_compiler_pic_F77='-fpic'
13138 lt_prog_compiler_static_F77='-Bstatic'
13139 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013140 ccc*)
13141 lt_prog_compiler_wl_F77='-Wl,'
13142 # All Alpha code is PIC.
13143 lt_prog_compiler_static_F77='-non_shared'
13144 ;;
13145 esac
13146 ;;
13147
13148 osf3* | osf4* | osf5*)
13149 lt_prog_compiler_wl_F77='-Wl,'
13150 # All OSF/1 code is PIC.
13151 lt_prog_compiler_static_F77='-non_shared'
13152 ;;
13153
a.rottmann9bc8b932004-02-29 15:18:31 +000013154 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013155 lt_prog_compiler_pic_F77='-KPIC'
13156 lt_prog_compiler_static_F77='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000013157 case $cc_basename in
13158 f77* | f90* | f95*)
13159 lt_prog_compiler_wl_F77='-Qoption ld ';;
13160 *)
13161 lt_prog_compiler_wl_F77='-Wl,';;
13162 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013163 ;;
13164
13165 sunos4*)
13166 lt_prog_compiler_wl_F77='-Qoption ld '
13167 lt_prog_compiler_pic_F77='-PIC'
13168 lt_prog_compiler_static_F77='-Bstatic'
13169 ;;
13170
vapier7f19c022007-02-17 14:46:31 +000013171 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-Bstatic'
13175 ;;
13176
13177 sysv4*MP*)
13178 if test -d /usr/nec ;then
13179 lt_prog_compiler_pic_F77='-Kconform_pic'
13180 lt_prog_compiler_static_F77='-Bstatic'
13181 fi
13182 ;;
13183
vapier7f19c022007-02-17 14:46:31 +000013184 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13185 lt_prog_compiler_wl_F77='-Wl,'
13186 lt_prog_compiler_pic_F77='-KPIC'
13187 lt_prog_compiler_static_F77='-Bstatic'
13188 ;;
13189
13190 unicos*)
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 lt_prog_compiler_can_build_shared_F77=no
13193 ;;
13194
a.rottmann9bc8b932004-02-29 15:18:31 +000013195 uts4*)
13196 lt_prog_compiler_pic_F77='-pic'
13197 lt_prog_compiler_static_F77='-Bstatic'
13198 ;;
13199
13200 *)
13201 lt_prog_compiler_can_build_shared_F77=no
13202 ;;
13203 esac
13204 fi
13205
mlcreech94984912008-03-04 19:03:08 +000013206{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13207echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013208
13209#
13210# Check to make sure the PIC flag actually works.
13211#
13212if test -n "$lt_prog_compiler_pic_F77"; then
13213
mlcreech94984912008-03-04 19:03:08 +000013214{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13215echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013216if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
13219 lt_prog_compiler_pic_works_F77=no
13220 ac_outfile=conftest.$ac_objext
13221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13222 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13223 # Insert the option either (1) after the last *FLAGS variable, or
13224 # (2) before a word containing "conftest.", or (3) at the end.
13225 # Note that $ac_compile itself does not contain backslashes and begins
13226 # with a dollar sign (not a hyphen), so the echo should work correctly.
13227 # The option is referenced via a variable to avoid confusing sed.
13228 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13231 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000013232 (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013233 (eval "$lt_compile" 2>conftest.err)
13234 ac_status=$?
13235 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000013236 echo "$as_me:13236: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013237 if (exit $ac_status) && test -s "$ac_outfile"; then
13238 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000013239 # So say no if there are warnings other than the usual output.
13240 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013243 lt_prog_compiler_pic_works_F77=yes
13244 fi
13245 fi
13246 $rm conftest*
13247
13248fi
mlcreech94984912008-03-04 19:03:08 +000013249{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13250echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013251
13252if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13253 case $lt_prog_compiler_pic_F77 in
13254 "" | " "*) ;;
13255 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13256 esac
13257else
13258 lt_prog_compiler_pic_F77=
13259 lt_prog_compiler_can_build_shared_F77=no
13260fi
13261
13262fi
vapier7f19c022007-02-17 14:46:31 +000013263case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000013264 # For platforms which do not support PIC, -DPIC is meaningless:
13265 *djgpp*)
13266 lt_prog_compiler_pic_F77=
13267 ;;
13268 *)
13269 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13270 ;;
13271esac
13272
vapier7f19c022007-02-17 14:46:31 +000013273#
13274# Check to make sure the static flag actually works.
13275#
13276wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
mlcreech94984912008-03-04 19:03:08 +000013277{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13278echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013279if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13281else
13282 lt_prog_compiler_static_works_F77=no
13283 save_LDFLAGS="$LDFLAGS"
13284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13285 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13287 # The linker can only warn and ignore the option if not recognized
13288 # So say no if there are warnings
13289 if test -s conftest.err; then
13290 # Append any errors to the config.log.
13291 cat conftest.err 1>&5
13292 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13294 if diff conftest.exp conftest.er2 >/dev/null; then
13295 lt_prog_compiler_static_works_F77=yes
13296 fi
13297 else
13298 lt_prog_compiler_static_works_F77=yes
13299 fi
13300 fi
13301 $rm conftest*
13302 LDFLAGS="$save_LDFLAGS"
13303
13304fi
mlcreech94984912008-03-04 19:03:08 +000013305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13306echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013307
13308if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13309 :
13310else
13311 lt_prog_compiler_static_F77=
13312fi
13313
13314
mlcreech94984912008-03-04 19:03:08 +000013315{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13316echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013317if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13318 echo $ECHO_N "(cached) $ECHO_C" >&6
13319else
13320 lt_cv_prog_compiler_c_o_F77=no
13321 $rm -r conftest 2>/dev/null
13322 mkdir conftest
13323 cd conftest
13324 mkdir out
13325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13326
13327 lt_compiler_flag="-o out/conftest2.$ac_objext"
13328 # Insert the option either (1) after the last *FLAGS variable, or
13329 # (2) before a word containing "conftest.", or (3) at the end.
13330 # Note that $ac_compile itself does not contain backslashes and begins
13331 # with a dollar sign (not a hyphen), so the echo should work correctly.
13332 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000013336 (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013337 (eval "$lt_compile" 2>out/conftest.err)
13338 ac_status=$?
13339 cat out/conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000013340 echo "$as_me:13340: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13342 then
13343 # The compiler can only warn and ignore the option if not recognized
13344 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000013345 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013348 lt_cv_prog_compiler_c_o_F77=yes
13349 fi
13350 fi
vapier7f19c022007-02-17 14:46:31 +000013351 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013352 $rm conftest*
13353 # SGI C++ compiler will create directory out/ii_files/ for
13354 # template instantiation
13355 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13356 $rm out/* && rmdir out
13357 cd ..
13358 rmdir conftest
13359 $rm conftest*
13360
13361fi
mlcreech94984912008-03-04 19:03:08 +000013362{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13363echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013364
13365
13366hard_links="nottested"
13367if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13368 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000013369 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13370echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013371 hard_links=yes
13372 $rm conftest*
13373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13374 touch conftest.a
13375 ln conftest.a conftest.b 2>&5 || hard_links=no
13376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000013377 { echo "$as_me:$LINENO: result: $hard_links" >&5
13378echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013379 if test "$hard_links" = no; then
13380 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13381echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13382 need_locks=warn
13383 fi
13384else
13385 need_locks=no
13386fi
13387
mlcreech94984912008-03-04 19:03:08 +000013388{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13389echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013390
13391 runpath_var=
13392 allow_undefined_flag_F77=
13393 enable_shared_with_static_runtimes_F77=no
13394 archive_cmds_F77=
13395 archive_expsym_cmds_F77=
13396 old_archive_From_new_cmds_F77=
13397 old_archive_from_expsyms_cmds_F77=
13398 export_dynamic_flag_spec_F77=
13399 whole_archive_flag_spec_F77=
13400 thread_safe_flag_spec_F77=
13401 hardcode_libdir_flag_spec_F77=
13402 hardcode_libdir_flag_spec_ld_F77=
13403 hardcode_libdir_separator_F77=
13404 hardcode_direct_F77=no
13405 hardcode_minus_L_F77=no
13406 hardcode_shlibpath_var_F77=unsupported
13407 link_all_deplibs_F77=unknown
13408 hardcode_automatic_F77=no
13409 module_cmds_F77=
13410 module_expsym_cmds_F77=
13411 always_export_symbols_F77=no
13412 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13413 # include_expsyms should be a list of space-separated symbols to be *always*
13414 # included in the symbol list
13415 include_expsyms_F77=
13416 # exclude_expsyms can be an extended regexp of symbols to exclude
13417 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13418 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13419 # as well as any symbol that contains `d'.
13420 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13421 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13422 # platforms (ab)use it in PIC code, but their linkers get confused if
13423 # the symbol is explicitly referenced. Since portable code cannot
13424 # rely on this symbol name, it's probably fine to never include it in
13425 # preloaded symbol tables.
13426 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000013427 # Just being paranoid about ensuring that cc_basename is set.
13428 for cc_temp in $compiler""; do
13429 case $cc_temp in
13430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13432 \-*) ;;
13433 *) break;;
13434 esac
13435done
13436cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000013437
13438 case $host_os in
13439 cygwin* | mingw* | pw32*)
13440 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13441 # When not using gcc, we currently assume that we are using
13442 # Microsoft Visual C++.
13443 if test "$GCC" != yes; then
13444 with_gnu_ld=no
13445 fi
13446 ;;
vapier7f19c022007-02-17 14:46:31 +000013447 interix*)
13448 # we just hope/assume this is gcc and not c89 (= MSVC++)
13449 with_gnu_ld=yes
13450 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013451 openbsd*)
13452 with_gnu_ld=no
13453 ;;
13454 esac
13455
13456 ld_shlibs_F77=yes
13457 if test "$with_gnu_ld" = yes; then
13458 # If archive_cmds runs LD, not CC, wlarc should be empty
13459 wlarc='${wl}'
13460
vapier7f19c022007-02-17 14:46:31 +000013461 # Set some defaults for GNU ld with shared library support. These
13462 # are reset later if shared libraries are not supported. Putting them
13463 # here allows them to be overridden if necessary.
13464 runpath_var=LD_RUN_PATH
13465 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13466 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13467 # ancient GNU ld didn't support --whole-archive et. al.
13468 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13469 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13470 else
13471 whole_archive_flag_spec_F77=
13472 fi
13473 supports_anon_versioning=no
13474 case `$LD -v 2>/dev/null` in
13475 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13476 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13477 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13478 *\ 2.11.*) ;; # other 2.11 versions
13479 *) supports_anon_versioning=yes ;;
13480 esac
13481
a.rottmann9bc8b932004-02-29 15:18:31 +000013482 # See if GNU ld supports shared libraries.
13483 case $host_os in
13484 aix3* | aix4* | aix5*)
13485 # On AIX/PPC, the GNU linker is very broken
13486 if test "$host_cpu" != ia64; then
13487 ld_shlibs_F77=no
13488 cat <<EOF 1>&2
13489
13490*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13491*** to be unable to reliably create shared libraries on AIX.
13492*** Therefore, libtool is disabling shared libraries support. If you
13493*** really care for shared libraries, you may want to modify your PATH
13494*** so that a non-GNU linker is found, and then restart.
13495
13496EOF
13497 fi
13498 ;;
13499
13500 amigaos*)
13501 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)'
13502 hardcode_libdir_flag_spec_F77='-L$libdir'
13503 hardcode_minus_L_F77=yes
13504
13505 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13506 # that the semantics of dynamic libraries on AmigaOS, at least up
13507 # to version 4, is to share data among multiple programs linked
13508 # with the same dynamic library. Since this doesn't match the
13509 # behavior of shared libraries on other platforms, we can't use
13510 # them.
13511 ld_shlibs_F77=no
13512 ;;
13513
13514 beos*)
13515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13516 allow_undefined_flag_F77=unsupported
13517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13518 # support --undefined. This deserves some investigation. FIXME
13519 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520 else
13521 ld_shlibs_F77=no
13522 fi
13523 ;;
13524
13525 cygwin* | mingw* | pw32*)
13526 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13527 # as there is no search path for DLLs.
13528 hardcode_libdir_flag_spec_F77='-L$libdir'
13529 allow_undefined_flag_F77=unsupported
13530 always_export_symbols_F77=no
13531 enable_shared_with_static_runtimes_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013532 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 +000013533
13534 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000013535 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 +000013536 # If the export-symbols file already is a .def file (1st line
13537 # is EXPORTS), use it as is; otherwise, prepend...
13538 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13539 cp $export_symbols $output_objdir/$soname.def;
13540 else
13541 echo EXPORTS > $output_objdir/$soname.def;
13542 cat $export_symbols >> $output_objdir/$soname.def;
13543 fi~
vapier7f19c022007-02-17 14:46:31 +000013544 $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 +000013545 else
vapier7f19c022007-02-17 14:46:31 +000013546 ld_shlibs_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013547 fi
13548 ;;
13549
vapier7f19c022007-02-17 14:46:31 +000013550 interix3*)
13551 hardcode_direct_F77=no
13552 hardcode_shlibpath_var_F77=no
13553 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13554 export_dynamic_flag_spec_F77='${wl}-E'
13555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13556 # Instead, shared libraries are loaded at an image base (0x10000000 by
13557 # default) and relocated if they conflict, which is a slow very memory
13558 # consuming and fragmenting process. To avoid this, we pick a random,
13559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13561 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'
13562 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'
13563 ;;
13564
13565 linux*)
13566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13567 tmp_addflag=
13568 case $cc_basename,$host_cpu in
13569 pgcc*) # Portland Group C compiler
13570 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'
13571 tmp_addflag=' $pic_flag'
13572 ;;
13573 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13574 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'
13575 tmp_addflag=' $pic_flag -Mnomain' ;;
13576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13577 tmp_addflag=' -i_dynamic' ;;
13578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13579 tmp_addflag=' -i_dynamic -nofor_main' ;;
13580 ifc* | ifort*) # Intel Fortran compiler
13581 tmp_addflag=' -nofor_main' ;;
13582 esac
13583 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13584
13585 if test $supports_anon_versioning = yes; then
13586 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13587 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13588 $echo "local: *; };" >> $output_objdir/$libname.ver~
13589 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13590 fi
13591 else
13592 ld_shlibs_F77=no
13593 fi
13594 ;;
13595
13596 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13599 wlarc=
13600 else
13601 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13602 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13603 fi
13604 ;;
13605
vapier7f19c022007-02-17 14:46:31 +000013606 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013607 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13608 ld_shlibs_F77=no
13609 cat <<EOF 1>&2
13610
13611*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13612*** create shared libraries on Solaris systems. Therefore, libtool
13613*** is disabling shared libraries support. We urge you to upgrade GNU
13614*** binutils to release 2.9.1 or newer. Another option is to modify
13615*** your PATH or compiler configuration so that the native linker is
13616*** used, and then restart.
13617
13618EOF
13619 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13620 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13622 else
13623 ld_shlibs_F77=no
13624 fi
13625 ;;
13626
vapier7f19c022007-02-17 14:46:31 +000013627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13628 case `$LD -v 2>&1` in
13629 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13630 ld_shlibs_F77=no
13631 cat <<_LT_EOF 1>&2
13632
13633*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13634*** reliably create shared libraries on SCO systems. Therefore, libtool
13635*** is disabling shared libraries support. We urge you to upgrade GNU
13636*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13637*** your PATH or compiler configuration so that the native linker is
13638*** used, and then restart.
13639
13640_LT_EOF
13641 ;;
13642 *)
13643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13644 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13645 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13646 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13647 else
13648 ld_shlibs_F77=no
13649 fi
13650 ;;
13651 esac
13652 ;;
13653
a.rottmann9bc8b932004-02-29 15:18:31 +000013654 sunos4*)
13655 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13656 wlarc=
13657 hardcode_direct_F77=yes
13658 hardcode_shlibpath_var_F77=no
13659 ;;
13660
a.rottmann9bc8b932004-02-29 15:18:31 +000013661 *)
13662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13663 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13665 else
13666 ld_shlibs_F77=no
13667 fi
13668 ;;
13669 esac
13670
vapier7f19c022007-02-17 14:46:31 +000013671 if test "$ld_shlibs_F77" = no; then
13672 runpath_var=
13673 hardcode_libdir_flag_spec_F77=
13674 export_dynamic_flag_spec_F77=
13675 whole_archive_flag_spec_F77=
a.rottmann9bc8b932004-02-29 15:18:31 +000013676 fi
13677 else
13678 # PORTME fill in a description of your system's linker (not GNU ld)
13679 case $host_os in
13680 aix3*)
13681 allow_undefined_flag_F77=unsupported
13682 always_export_symbols_F77=yes
13683 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'
13684 # Note: this linker hardcodes the directories in LIBPATH if there
13685 # are no directories specified by -L.
13686 hardcode_minus_L_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013687 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013688 # Neither direct hardcoding nor static linking is supported with a
13689 # broken collect2.
13690 hardcode_direct_F77=unsupported
13691 fi
13692 ;;
13693
13694 aix4* | aix5*)
13695 if test "$host_cpu" = ia64; then
13696 # On IA64, the linker does run time linking by default, so we don't
13697 # have to do anything special.
13698 aix_use_runtimelinking=no
13699 exp_sym_flag='-Bexport'
13700 no_entry_flag=""
13701 else
13702 # If we're using GNU nm, then we don't want the "-C" option.
13703 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13704 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13705 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'
13706 else
13707 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'
13708 fi
13709 aix_use_runtimelinking=no
13710
13711 # Test if we are trying to use run time linking or normal
13712 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13713 # need to do runtime linking.
13714 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13715 for ld_flag in $LDFLAGS; do
13716 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13717 aix_use_runtimelinking=yes
13718 break
13719 fi
13720 done
vapier7f19c022007-02-17 14:46:31 +000013721 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013722 esac
13723
13724 exp_sym_flag='-bexport'
13725 no_entry_flag='-bnoentry'
13726 fi
13727
13728 # When large executables or shared objects are built, AIX ld can
13729 # have problems creating the table of contents. If linking a library
13730 # or program results in "error TOC overflow" add -mminimal-toc to
13731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13733
13734 archive_cmds_F77=''
13735 hardcode_direct_F77=yes
13736 hardcode_libdir_separator_F77=':'
13737 link_all_deplibs_F77=yes
13738
13739 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013740 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013741 # We only want to do this on AIX 4.2 and lower, the check
13742 # below for broken collect2 doesn't work under 4.3+
13743 collect2name=`${CC} -print-prog-name=collect2`
13744 if test -f "$collect2name" && \
13745 strings "$collect2name" | grep resolve_lib_name >/dev/null
13746 then
13747 # We have reworked collect2
13748 hardcode_direct_F77=yes
13749 else
13750 # We have old collect2
13751 hardcode_direct_F77=unsupported
13752 # It fails to find uninstalled libraries when the uninstalled
13753 # path is not listed in the libpath. Setting hardcode_minus_L
13754 # to unsupported forces relinking
13755 hardcode_minus_L_F77=yes
13756 hardcode_libdir_flag_spec_F77='-L$libdir'
13757 hardcode_libdir_separator_F77=
13758 fi
vapier7f19c022007-02-17 14:46:31 +000013759 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013760 esac
13761 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000013762 if test "$aix_use_runtimelinking" = yes; then
13763 shared_flag="$shared_flag "'${wl}-G'
13764 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013765 else
13766 # not using gcc
13767 if test "$host_cpu" = ia64; then
13768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13769 # chokes on -Wl,-G. The following line is correct:
13770 shared_flag='-G'
13771 else
vapier7f19c022007-02-17 14:46:31 +000013772 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013773 shared_flag='${wl}-G'
13774 else
13775 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000013776 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013777 fi
13778 fi
13779
13780 # It seems that -bexpall does not export symbols beginning with
13781 # underscore (_), so it is better to generate a list of symbols to export.
13782 always_export_symbols_F77=yes
13783 if test "$aix_use_runtimelinking" = yes; then
13784 # Warning - without using the other runtime loading flags (-brtl),
13785 # -berok will link without error, but may produce a broken library.
13786 allow_undefined_flag_F77='-berok'
13787 # Determine the default libpath from the value encoded in an empty executable.
13788 cat >conftest.$ac_ext <<_ACEOF
13789 program main
13790
13791 end
13792_ACEOF
13793rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013794if { (ac_try="$ac_link"
13795case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798esac
13799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013801 ac_status=$?
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013806 (exit $ac_status); } && {
13807 test -z "$ac_f77_werror_flag" ||
13808 test ! -s conftest.err
13809 } && test -s conftest$ac_exeext &&
13810 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013811
13812aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13813}'`
13814# Check for a 64-bit object if we didn't find anything.
13815if 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; }
13816}'`; fi
13817else
13818 echo "$as_me: failed program was:" >&5
13819sed 's/^/| /' conftest.$ac_ext >&5
13820
mlcreech94984912008-03-04 19:03:08 +000013821
a.rottmann9bc8b932004-02-29 15:18:31 +000013822fi
mlcreech94984912008-03-04 19:03:08 +000013823
13824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013825 conftest$ac_exeext conftest.$ac_ext
13826if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13827
13828 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000013829 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 +000013830 else
13831 if test "$host_cpu" = ia64; then
13832 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13833 allow_undefined_flag_F77="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000013834 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 +000013835 else
13836 # Determine the default libpath from the value encoded in an empty executable.
13837 cat >conftest.$ac_ext <<_ACEOF
13838 program main
13839
13840 end
13841_ACEOF
13842rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013843if { (ac_try="$ac_link"
13844case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847esac
13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013850 ac_status=$?
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013855 (exit $ac_status); } && {
13856 test -z "$ac_f77_werror_flag" ||
13857 test ! -s conftest.err
13858 } && test -s conftest$ac_exeext &&
13859 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013860
13861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13862}'`
13863# Check for a 64-bit object if we didn't find anything.
13864if 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; }
13865}'`; fi
13866else
13867 echo "$as_me: failed program was:" >&5
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
mlcreech94984912008-03-04 19:03:08 +000013870
a.rottmann9bc8b932004-02-29 15:18:31 +000013871fi
mlcreech94984912008-03-04 19:03:08 +000013872
13873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013874 conftest$ac_exeext conftest.$ac_ext
13875if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13876
13877 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13878 # Warning - without using the other run time loading flags,
13879 # -berok will link without error, but may produce a broken library.
13880 no_undefined_flag_F77=' ${wl}-bernotok'
13881 allow_undefined_flag_F77=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000013882 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000013883 whole_archive_flag_spec_F77='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000013884 archive_cmds_need_lc_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013885 # This is similar to how AIX traditionally builds its shared libraries.
13886 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 +000013887 fi
13888 fi
13889 ;;
13890
13891 amigaos*)
13892 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)'
13893 hardcode_libdir_flag_spec_F77='-L$libdir'
13894 hardcode_minus_L_F77=yes
13895 # see comment about different semantics on the GNU ld section
13896 ld_shlibs_F77=no
13897 ;;
13898
vapier7f19c022007-02-17 14:46:31 +000013899 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013900 export_dynamic_flag_spec_F77=-rdynamic
13901 ;;
13902
13903 cygwin* | mingw* | pw32*)
13904 # When not using gcc, we currently assume that we are using
13905 # Microsoft Visual C++.
13906 # hardcode_libdir_flag_spec is actually meaningless, as there is
13907 # no search path for DLLs.
13908 hardcode_libdir_flag_spec_F77=' '
13909 allow_undefined_flag_F77=unsupported
13910 # Tell ltmain to make .lib files, not .a files.
13911 libext=lib
13912 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000013913 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013914 # FIXME: Setting linknames here is a bad hack.
13915 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13916 # The linker will automatically build a .lib file if we build a DLL.
13917 old_archive_From_new_cmds_F77='true'
13918 # FIXME: Should let the user specify the lib program.
13919 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000013920 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013921 enable_shared_with_static_runtimes_F77=yes
13922 ;;
13923
13924 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000013925 case $host_os in
13926 rhapsody* | darwin1.[012])
13927 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13928 ;;
13929 *) # Darwin 1.3 on
13930 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13931 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13932 else
13933 case ${MACOSX_DEPLOYMENT_TARGET} in
13934 10.[012])
13935 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13936 ;;
13937 10.*)
13938 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13939 ;;
13940 esac
13941 fi
13942 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013943 esac
vapier7f19c022007-02-17 14:46:31 +000013944 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013945 hardcode_direct_F77=no
13946 hardcode_automatic_F77=yes
13947 hardcode_shlibpath_var_F77=unsupported
vapier7f19c022007-02-17 14:46:31 +000013948 whole_archive_flag_spec_F77=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013949 link_all_deplibs_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013950 if test "$GCC" = yes ; then
13951 output_verbose_link_cmd='echo'
13952 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13953 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13954 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13955 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}'
13956 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 +000013957 else
vapier7f19c022007-02-17 14:46:31 +000013958 case $cc_basename in
13959 xlc*)
13960 output_verbose_link_cmd='echo'
13961 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13962 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13963 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13964 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}'
13965 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}'
13966 ;;
13967 *)
13968 ld_shlibs_F77=no
13969 ;;
13970 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013971 fi
13972 ;;
13973
13974 dgux*)
13975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13976 hardcode_libdir_flag_spec_F77='-L$libdir'
13977 hardcode_shlibpath_var_F77=no
13978 ;;
13979
13980 freebsd1*)
13981 ld_shlibs_F77=no
13982 ;;
13983
13984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13985 # support. Future versions do this automatically, but an explicit c++rt0.o
13986 # does not break anything, and helps significantly (at the cost of a little
13987 # extra space).
13988 freebsd2.2*)
13989 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13990 hardcode_libdir_flag_spec_F77='-R$libdir'
13991 hardcode_direct_F77=yes
13992 hardcode_shlibpath_var_F77=no
13993 ;;
13994
13995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13996 freebsd2*)
13997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_minus_L_F77=yes
14000 hardcode_shlibpath_var_F77=no
14001 ;;
14002
14003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000014004 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014005 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14006 hardcode_libdir_flag_spec_F77='-R$libdir'
14007 hardcode_direct_F77=yes
14008 hardcode_shlibpath_var_F77=no
14009 ;;
14010
14011 hpux9*)
14012 if test "$GCC" = yes; then
14013 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'
14014 else
14015 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'
14016 fi
14017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14018 hardcode_libdir_separator_F77=:
14019 hardcode_direct_F77=yes
14020
14021 # hardcode_minus_L: Not really in the search PATH,
14022 # but as the default location of the library.
14023 hardcode_minus_L_F77=yes
14024 export_dynamic_flag_spec_F77='${wl}-E'
14025 ;;
14026
vapier7f19c022007-02-17 14:46:31 +000014027 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014029 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14030 else
14031 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14032 fi
14033 if test "$with_gnu_ld" = no; then
14034 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14035 hardcode_libdir_separator_F77=:
14036
14037 hardcode_direct_F77=yes
14038 export_dynamic_flag_spec_F77='${wl}-E'
14039
14040 # hardcode_minus_L: Not really in the search PATH,
14041 # but as the default location of the library.
14042 hardcode_minus_L_F77=yes
14043 fi
14044 ;;
14045
14046 hpux11*)
14047 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14048 case $host_cpu in
14049 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014050 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14051 ;;
vapier7f19c022007-02-17 14:46:31 +000014052 ia64*)
14053 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14054 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014055 *)
14056 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14057 ;;
14058 esac
14059 else
vapier7f19c022007-02-17 14:46:31 +000014060 case $host_cpu in
14061 hppa*64*)
14062 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14063 ;;
14064 ia64*)
14065 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014066 ;;
14067 *)
vapier7f19c022007-02-17 14:46:31 +000014068 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 +000014069 ;;
14070 esac
14071 fi
14072 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014073 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14074 hardcode_libdir_separator_F77=:
a.rottmann9bc8b932004-02-29 15:18:31 +000014075
vapier7f19c022007-02-17 14:46:31 +000014076 case $host_cpu in
14077 hppa*64*|ia64*)
14078 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14079 hardcode_direct_F77=no
14080 hardcode_shlibpath_var_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014081 ;;
14082 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000014083 hardcode_direct_F77=yes
14084 export_dynamic_flag_spec_F77='${wl}-E'
14085
14086 # hardcode_minus_L: Not really in the search PATH,
14087 # but as the default location of the library.
14088 hardcode_minus_L_F77=yes
14089 ;;
14090 esac
14091 fi
14092 ;;
14093
14094 irix5* | irix6* | nonstopux*)
14095 if test "$GCC" = yes; then
14096 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'
14097 else
14098 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'
14099 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14100 fi
14101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14102 hardcode_libdir_separator_F77=:
14103 link_all_deplibs_F77=yes
14104 ;;
14105
vapier7f19c022007-02-17 14:46:31 +000014106 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14108 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14109 else
14110 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14111 fi
14112 hardcode_libdir_flag_spec_F77='-R$libdir'
14113 hardcode_direct_F77=yes
14114 hardcode_shlibpath_var_F77=no
14115 ;;
14116
14117 newsos6)
14118 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14119 hardcode_direct_F77=yes
14120 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14121 hardcode_libdir_separator_F77=:
14122 hardcode_shlibpath_var_F77=no
14123 ;;
14124
14125 openbsd*)
14126 hardcode_direct_F77=yes
14127 hardcode_shlibpath_var_F77=no
14128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14129 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000014130 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 +000014131 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14132 export_dynamic_flag_spec_F77='${wl}-E'
14133 else
14134 case $host_os in
14135 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14136 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_libdir_flag_spec_F77='-R$libdir'
14138 ;;
14139 *)
14140 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14141 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14142 ;;
14143 esac
14144 fi
14145 ;;
14146
14147 os2*)
14148 hardcode_libdir_flag_spec_F77='-L$libdir'
14149 hardcode_minus_L_F77=yes
14150 allow_undefined_flag_F77=unsupported
14151 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'
14152 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14153 ;;
14154
14155 osf3*)
14156 if test "$GCC" = yes; then
14157 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14158 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'
14159 else
14160 allow_undefined_flag_F77=' -expect_unresolved \*'
14161 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'
14162 fi
14163 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14164 hardcode_libdir_separator_F77=:
14165 ;;
14166
14167 osf4* | osf5*) # as osf3* with the addition of -msym flag
14168 if test "$GCC" = yes; then
14169 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14170 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'
14171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14172 else
14173 allow_undefined_flag_F77=' -expect_unresolved \*'
14174 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'
14175 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 +000014176 $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 +000014177
14178 # Both c and cxx compiler support -rpath directly
14179 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14180 fi
14181 hardcode_libdir_separator_F77=:
14182 ;;
14183
a.rottmann9bc8b932004-02-29 15:18:31 +000014184 solaris*)
14185 no_undefined_flag_F77=' -z text'
14186 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014187 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014188 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14190 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14191 else
vapier7f19c022007-02-17 14:46:31 +000014192 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000014193 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14194 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14196 fi
14197 hardcode_libdir_flag_spec_F77='-R$libdir'
14198 hardcode_shlibpath_var_F77=no
14199 case $host_os in
14200 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000014201 *)
14202 # The compiler driver will combine linker options so we
14203 # cannot just pass the convience library names through
14204 # without $wl, iff we do not link with $LD.
14205 # Luckily, gcc supports the same syntax we need for Sun Studio.
14206 # Supported since Solaris 2.6 (maybe 2.5.1?)
14207 case $wlarc in
14208 '')
14209 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14210 *)
14211 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' ;;
14212 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014213 esac
14214 link_all_deplibs_F77=yes
14215 ;;
14216
14217 sunos4*)
14218 if test "x$host_vendor" = xsequent; then
14219 # Use $CC to link under sequent, because it throws in some extra .o
14220 # files that make .init and .fini sections work.
14221 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14222 else
14223 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14224 fi
14225 hardcode_libdir_flag_spec_F77='-L$libdir'
14226 hardcode_direct_F77=yes
14227 hardcode_minus_L_F77=yes
14228 hardcode_shlibpath_var_F77=no
14229 ;;
14230
14231 sysv4)
14232 case $host_vendor in
14233 sni)
14234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235 hardcode_direct_F77=yes # is this really true???
14236 ;;
14237 siemens)
14238 ## LD is ld it makes a PLAMLIB
14239 ## CC just makes a GrossModule.
14240 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14241 reload_cmds_F77='$CC -r -o $output$reload_objs'
14242 hardcode_direct_F77=no
14243 ;;
14244 motorola)
14245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14246 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14247 ;;
14248 esac
14249 runpath_var='LD_RUN_PATH'
14250 hardcode_shlibpath_var_F77=no
14251 ;;
14252
14253 sysv4.3*)
14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255 hardcode_shlibpath_var_F77=no
14256 export_dynamic_flag_spec_F77='-Bexport'
14257 ;;
14258
14259 sysv4*MP*)
14260 if test -d /usr/nec; then
14261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14262 hardcode_shlibpath_var_F77=no
14263 runpath_var=LD_RUN_PATH
14264 hardcode_runpath_var=yes
14265 ld_shlibs_F77=yes
14266 fi
14267 ;;
14268
vapier7f19c022007-02-17 14:46:31 +000014269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14270 no_undefined_flag_F77='${wl}-z,text'
14271 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014272 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014273 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000014274
a.rottmann9bc8b932004-02-29 15:18:31 +000014275 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014276 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 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 +000014278 else
vapier7f19c022007-02-17 14:46:31 +000014279 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14280 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 +000014281 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014282 ;;
14283
vapier7f19c022007-02-17 14:46:31 +000014284 sysv5* | sco3.2v5* | sco5v6*)
14285 # Note: We can NOT use -z defs as we might desire, because we do not
14286 # link with -lc, and that would cause any symbols used from libc to
14287 # always be unresolved, which means just about no library would
14288 # ever link correctly. If we're not using GNU ld we use -z text
14289 # though, which does catch some bad symbols but isn't as heavy-handed
14290 # as -z defs.
14291 no_undefined_flag_F77='${wl}-z,text'
14292 allow_undefined_flag_F77='${wl}-z,nodefs'
14293 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014294 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014295 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14296 hardcode_libdir_separator_F77=':'
14297 link_all_deplibs_F77=yes
14298 export_dynamic_flag_spec_F77='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000014299 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000014300
14301 if test "$GCC" = yes; then
14302 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14303 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14304 else
14305 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14306 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014308 ;;
14309
14310 uts4*)
14311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312 hardcode_libdir_flag_spec_F77='-L$libdir'
14313 hardcode_shlibpath_var_F77=no
14314 ;;
14315
14316 *)
14317 ld_shlibs_F77=no
14318 ;;
14319 esac
14320 fi
14321
mlcreech94984912008-03-04 19:03:08 +000014322{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14323echo "${ECHO_T}$ld_shlibs_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014324test "$ld_shlibs_F77" = no && can_build_shared=no
14325
a.rottmann9bc8b932004-02-29 15:18:31 +000014326#
14327# Do we need to explicitly link libc?
14328#
14329case "x$archive_cmds_need_lc_F77" in
14330x|xyes)
14331 # Assume -lc should be added
14332 archive_cmds_need_lc_F77=yes
14333
14334 if test "$enable_shared" = yes && test "$GCC" = yes; then
14335 case $archive_cmds_F77 in
14336 *'~'*)
14337 # FIXME: we may have to deal with multi-command sequences.
14338 ;;
14339 '$CC '*)
14340 # Test whether the compiler implicitly links with -lc since on some
14341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14342 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000014343 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14344echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014345 $rm conftest*
14346 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14347
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } 2>conftest.err; then
14353 soname=conftest
14354 lib=conftest
14355 libobjs=conftest.$ac_objext
14356 deplibs=
14357 wl=$lt_prog_compiler_wl_F77
vapier7f19c022007-02-17 14:46:31 +000014358 pic_flag=$lt_prog_compiler_pic_F77
a.rottmann9bc8b932004-02-29 15:18:31 +000014359 compiler_flags=-v
14360 linker_flags=-v
14361 verstring=
14362 output_objdir=.
14363 libname=conftest
14364 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14365 allow_undefined_flag_F77=
14366 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14367 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }
14371 then
14372 archive_cmds_need_lc_F77=no
14373 else
14374 archive_cmds_need_lc_F77=yes
14375 fi
14376 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14377 else
14378 cat conftest.err 1>&5
14379 fi
14380 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000014381 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14382echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014383 ;;
14384 esac
14385 fi
14386 ;;
14387esac
14388
mlcreech94984912008-03-04 19:03:08 +000014389{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14390echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014391library_names_spec=
14392libname_spec='lib$name'
14393soname_spec=
vapier7f19c022007-02-17 14:46:31 +000014394shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000014395postinstall_cmds=
14396postuninstall_cmds=
14397finish_cmds=
14398finish_eval=
14399shlibpath_var=
14400shlibpath_overrides_runpath=unknown
14401version_type=none
14402dynamic_linker="$host_os ld.so"
14403sys_lib_dlsearch_path_spec="/lib /usr/lib"
14404if test "$GCC" = yes; then
14405 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14406 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14407 # if the path contains ";" then we assume it to be the separator
14408 # otherwise default to the standard path separator (i.e. ":") - it is
14409 # assumed that no part of a normal pathname contains ";" but that should
14410 # okay in the real world where ";" in dirpaths is itself problematic.
14411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14412 else
14413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14414 fi
14415else
14416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14417fi
14418need_lib_prefix=unknown
14419hardcode_into_libs=no
14420
14421# when you set need_version to no, make sure it does not cause -set_version
14422# flags to be left without arguments
14423need_version=unknown
14424
14425case $host_os in
14426aix3*)
14427 version_type=linux
14428 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14429 shlibpath_var=LIBPATH
14430
14431 # AIX 3 has no versioning support, so we append a major version to the name.
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 ;;
14434
14435aix4* | aix5*)
14436 version_type=linux
14437 need_lib_prefix=no
14438 need_version=no
14439 hardcode_into_libs=yes
14440 if test "$host_cpu" = ia64; then
14441 # AIX 5 supports IA64
14442 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14443 shlibpath_var=LD_LIBRARY_PATH
14444 else
14445 # With GCC up to 2.95.x, collect2 would create an import file
14446 # for dependence libraries. The import file would start with
14447 # the line `#! .'. This would cause the generated library to
14448 # depend on `.', always an invalid library. This was fixed in
14449 # development snapshots of GCC prior to 3.0.
14450 case $host_os in
14451 aix4 | aix4.[01] | aix4.[01].*)
14452 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14453 echo ' yes '
14454 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14455 :
14456 else
14457 can_build_shared=no
14458 fi
14459 ;;
14460 esac
14461 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14462 # soname into executable. Probably we can add versioning support to
14463 # collect2, so additional links can be useful in future.
14464 if test "$aix_use_runtimelinking" = yes; then
14465 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14466 # instead of lib<name>.a to let people know that these are not
14467 # typical AIX shared libraries.
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14469 else
14470 # We preserve .a as extension for shared libraries through AIX4.2
14471 # and later when we are not doing run time linking.
14472 library_names_spec='${libname}${release}.a $libname.a'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 fi
14475 shlibpath_var=LIBPATH
14476 fi
14477 ;;
14478
14479amigaos*)
14480 library_names_spec='$libname.ixlibrary $libname.a'
14481 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14482 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'
14483 ;;
14484
14485beos*)
14486 library_names_spec='${libname}${shared_ext}'
14487 dynamic_linker="$host_os ld.so"
14488 shlibpath_var=LIBRARY_PATH
14489 ;;
14490
vapier7f19c022007-02-17 14:46:31 +000014491bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014492 version_type=linux
14493 need_version=no
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14500 # the default ld.so.conf also contains /usr/contrib/lib and
14501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14502 # libtool to hard-code these into programs
14503 ;;
14504
14505cygwin* | mingw* | pw32*)
14506 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000014507 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014508 need_version=no
14509 need_lib_prefix=no
14510
14511 case $GCC,$host_os in
14512 yes,cygwin* | yes,mingw* | yes,pw32*)
14513 library_names_spec='$libname.dll.a'
14514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14515 postinstall_cmds='base_file=`basename \${file}`~
14516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14517 dldir=$destdir/`dirname \$dlpath`~
14518 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000014519 $install_prog $dir/$dlname \$dldir/$dlname~
14520 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000014521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14522 dlpath=$dir/\$dldll~
14523 $rm \$dlpath'
14524 shlibpath_overrides_runpath=yes
14525
14526 case $host_os in
14527 cygwin*)
14528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14531 ;;
14532 mingw*)
14533 # MinGW DLLs use traditional 'lib' prefix
14534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14536 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14537 # It is most probably a Windows format PATH printed by
14538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14539 # path with ; separators, and with drive letters. We can handle the
14540 # drive letters (cygwin fileutils understands them), so leave them,
14541 # especially as we might pass files found there to a mingw objdump,
14542 # which wouldn't understand a cygwinified path. Ahh.
14543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14544 else
14545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14546 fi
14547 ;;
14548 pw32*)
14549 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000014550 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 +000014551 ;;
14552 esac
14553 ;;
14554
vapier7f19c022007-02-17 14:46:31 +000014555 linux*)
14556 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14558 supports_anon_versioning=no
14559 case `$LD -v 2>/dev/null` in
14560 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14563 *\ 2.11.*) ;; # other 2.11 versions
14564 *) supports_anon_versioning=yes ;;
14565 esac
14566 if test $supports_anon_versioning = yes; then
14567 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14568cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14569$echo "local: *; };" >> $output_objdir/$libname.ver~
14570 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14571 else
14572 $archive_expsym_cmds="$archive_cmds"
14573 fi
14574 else
14575 ld_shlibs=no
14576 fi
14577 ;;
14578
a.rottmann9bc8b932004-02-29 15:18:31 +000014579 *)
14580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14581 ;;
14582 esac
14583 dynamic_linker='Win32 ld.exe'
14584 # FIXME: first we should search . and the directory the executable is in
14585 shlibpath_var=PATH
14586 ;;
14587
14588darwin* | rhapsody*)
14589 dynamic_linker="$host_os dyld"
14590 version_type=darwin
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14594 soname_spec='${libname}${release}${major}$shared_ext'
14595 shlibpath_overrides_runpath=yes
14596 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000014597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000014598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14599 if test "$GCC" = yes; then
14600 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"`
14601 else
14602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14603 fi
14604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14605 ;;
14606
14607dgux*)
14608 version_type=linux
14609 need_lib_prefix=no
14610 need_version=no
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 ;;
14615
14616freebsd1*)
14617 dynamic_linker=no
14618 ;;
14619
14620kfreebsd*-gnu)
14621 version_type=linux
14622 need_lib_prefix=no
14623 need_version=no
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 dynamic_linker='GNU ld.so'
14630 ;;
14631
vapier7f19c022007-02-17 14:46:31 +000014632freebsd* | dragonfly*)
14633 # DragonFly does not have aout. When/if they implement a new
14634 # versioning mechanism, adjust this.
14635 if test -x /usr/bin/objformat; then
14636 objformat=`/usr/bin/objformat`
14637 else
14638 case $host_os in
14639 freebsd[123]*) objformat=aout ;;
14640 *) objformat=elf ;;
14641 esac
14642 fi
14643 # Handle Gentoo/FreeBSD as it was Linux
14644 case $host_vendor in
14645 gentoo)
14646 version_type=linux ;;
14647 *)
14648 version_type=freebsd-$objformat ;;
14649 esac
14650
a.rottmann9bc8b932004-02-29 15:18:31 +000014651 case $version_type in
14652 freebsd-elf*)
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14654 need_version=no
14655 need_lib_prefix=no
14656 ;;
14657 freebsd-*)
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14659 need_version=yes
14660 ;;
vapier7f19c022007-02-17 14:46:31 +000014661 linux)
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 need_lib_prefix=no
14665 need_version=no
14666 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014667 esac
14668 shlibpath_var=LD_LIBRARY_PATH
14669 case $host_os in
14670 freebsd2*)
14671 shlibpath_overrides_runpath=yes
14672 ;;
vapier7f19c022007-02-17 14:46:31 +000014673 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014674 shlibpath_overrides_runpath=yes
14675 hardcode_into_libs=yes
14676 ;;
vapier7f19c022007-02-17 14:46:31 +000014677 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14678 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000014679 shlibpath_overrides_runpath=no
14680 hardcode_into_libs=yes
14681 ;;
vapier7f19c022007-02-17 14:46:31 +000014682 freebsd*) # from 4.6 on
14683 shlibpath_overrides_runpath=yes
14684 hardcode_into_libs=yes
14685 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014686 esac
14687 ;;
14688
14689gnu*)
14690 version_type=linux
14691 need_lib_prefix=no
14692 need_version=no
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 hardcode_into_libs=yes
14697 ;;
14698
14699hpux9* | hpux10* | hpux11*)
14700 # Give a soname corresponding to the major version so that dld.sl refuses to
14701 # link against other versions.
14702 version_type=sunos
14703 need_lib_prefix=no
14704 need_version=no
vapier7f19c022007-02-17 14:46:31 +000014705 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000014706 ia64*)
vapier7f19c022007-02-17 14:46:31 +000014707 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000014708 hardcode_into_libs=yes
14709 dynamic_linker="$host_os dld.so"
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 if test "X$HPUX_IA64_MODE" = X32; then
14715 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14716 else
14717 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14718 fi
14719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14720 ;;
14721 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000014722 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014723 hardcode_into_libs=yes
14724 dynamic_linker="$host_os dld.sl"
14725 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14731 ;;
14732 *)
vapier7f19c022007-02-17 14:46:31 +000014733 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014734 dynamic_linker="$host_os dld.sl"
14735 shlibpath_var=SHLIB_PATH
14736 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 ;;
14740 esac
14741 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14742 postinstall_cmds='chmod 555 $lib'
14743 ;;
14744
vapier7f19c022007-02-17 14:46:31 +000014745interix3*)
14746 version_type=linux
14747 need_lib_prefix=no
14748 need_version=no
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=no
14754 hardcode_into_libs=yes
14755 ;;
14756
a.rottmann9bc8b932004-02-29 15:18:31 +000014757irix5* | irix6* | nonstopux*)
14758 case $host_os in
14759 nonstopux*) version_type=nonstopux ;;
14760 *)
14761 if test "$lt_cv_prog_gnu_ld" = yes; then
14762 version_type=linux
14763 else
14764 version_type=irix
14765 fi ;;
14766 esac
14767 need_lib_prefix=no
14768 need_version=no
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14771 case $host_os in
14772 irix5* | nonstopux*)
14773 libsuff= shlibsuff=
14774 ;;
14775 *)
14776 case $LD in # libtool.m4 will add one of these switches to LD
14777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14778 libsuff= shlibsuff= libmagic=32-bit;;
14779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14780 libsuff=32 shlibsuff=N32 libmagic=N32;;
14781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14783 *) libsuff= shlibsuff= libmagic=never-match;;
14784 esac
14785 ;;
14786 esac
14787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14788 shlibpath_overrides_runpath=no
14789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14791 hardcode_into_libs=yes
14792 ;;
14793
14794# No shared lib support for Linux oldld, aout, or coff.
14795linux*oldld* | linux*aout* | linux*coff*)
14796 dynamic_linker=no
14797 ;;
14798
14799# This must be Linux ELF.
14800linux*)
14801 version_type=linux
14802 need_lib_prefix=no
14803 need_version=no
14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805 soname_spec='${libname}${release}${shared_ext}$major'
14806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14807 shlibpath_var=LD_LIBRARY_PATH
14808 shlibpath_overrides_runpath=no
14809 # This implies no fast_install, which is unacceptable.
14810 # Some rework will be needed to allow for fast_install
14811 # before this can be enabled.
14812 hardcode_into_libs=yes
14813
14814 # Append ld.so.conf contents to the search path
14815 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000014816 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' ' '`
14817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000014818 fi
14819
14820 # We used to test for /lib/ld.so.1 and disable shared libraries on
14821 # powerpc, because MkLinux only supported shared libraries with the
14822 # GNU dynamic linker. Since this was broken with cross compilers,
14823 # most powerpc-linux boxes support dynamic linking these days and
14824 # people can always --disable-shared, the test was removed, and we
14825 # assume the GNU/Linux dynamic linker is in use.
14826 dynamic_linker='GNU/Linux ld.so'
14827 ;;
14828
14829knetbsd*-gnu)
14830 version_type=linux
14831 need_lib_prefix=no
14832 need_version=no
14833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14834 soname_spec='${libname}${release}${shared_ext}$major'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 shlibpath_overrides_runpath=no
14837 hardcode_into_libs=yes
14838 dynamic_linker='GNU ld.so'
14839 ;;
14840
14841netbsd*)
14842 version_type=sunos
14843 need_lib_prefix=no
14844 need_version=no
14845 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14848 dynamic_linker='NetBSD (a.out) ld.so'
14849 else
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 dynamic_linker='NetBSD ld.elf_so'
14853 fi
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 hardcode_into_libs=yes
14857 ;;
14858
14859newsos6)
14860 version_type=linux
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 shlibpath_overrides_runpath=yes
14864 ;;
14865
14866nto-qnx*)
14867 version_type=linux
14868 need_lib_prefix=no
14869 need_version=no
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 shlibpath_overrides_runpath=yes
14874 ;;
14875
14876openbsd*)
14877 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000014878 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000014879 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000014880 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14881 case $host_os in
14882 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14883 *) need_version=no ;;
14884 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000014885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14889 case $host_os in
14890 openbsd2.[89] | openbsd2.[89].*)
14891 shlibpath_overrides_runpath=no
14892 ;;
14893 *)
14894 shlibpath_overrides_runpath=yes
14895 ;;
14896 esac
14897 else
14898 shlibpath_overrides_runpath=yes
14899 fi
14900 ;;
14901
14902os2*)
14903 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000014904 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014905 need_lib_prefix=no
14906 library_names_spec='$libname${shared_ext} $libname.a'
14907 dynamic_linker='OS/2 ld.exe'
14908 shlibpath_var=LIBPATH
14909 ;;
14910
14911osf3* | osf4* | osf5*)
14912 version_type=osf
14913 need_lib_prefix=no
14914 need_version=no
14915 soname_spec='${libname}${release}${shared_ext}$major'
14916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917 shlibpath_var=LD_LIBRARY_PATH
14918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14920 ;;
14921
a.rottmann9bc8b932004-02-29 15:18:31 +000014922solaris*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 # ldd complains unless libraries are executable
14932 postinstall_cmds='chmod +x $lib'
14933 ;;
14934
14935sunos4*)
14936 version_type=sunos
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 if test "$with_gnu_ld" = yes; then
14942 need_lib_prefix=no
14943 fi
14944 need_version=yes
14945 ;;
14946
vapier7f19c022007-02-17 14:46:31 +000014947sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014948 version_type=linux
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 case $host_vendor in
14953 sni)
14954 shlibpath_overrides_runpath=no
14955 need_lib_prefix=no
14956 export_dynamic_flag_spec='${wl}-Blargedynsym'
14957 runpath_var=LD_RUN_PATH
14958 ;;
14959 siemens)
14960 need_lib_prefix=no
14961 ;;
14962 motorola)
14963 need_lib_prefix=no
14964 need_version=no
14965 shlibpath_overrides_runpath=no
14966 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14967 ;;
14968 esac
14969 ;;
14970
14971sysv4*MP*)
14972 if test -d /usr/nec ;then
14973 version_type=linux
14974 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14975 soname_spec='$libname${shared_ext}.$major'
14976 shlibpath_var=LD_LIBRARY_PATH
14977 fi
14978 ;;
14979
vapier7f19c022007-02-17 14:46:31 +000014980sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14981 version_type=freebsd-elf
14982 need_lib_prefix=no
14983 need_version=no
14984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14985 soname_spec='${libname}${release}${shared_ext}$major'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 hardcode_into_libs=yes
14988 if test "$with_gnu_ld" = yes; then
14989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14990 shlibpath_overrides_runpath=no
14991 else
14992 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14993 shlibpath_overrides_runpath=yes
14994 case $host_os in
14995 sco3.2v5*)
14996 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14997 ;;
14998 esac
14999 fi
15000 sys_lib_dlsearch_path_spec='/usr/lib'
15001 ;;
15002
a.rottmann9bc8b932004-02-29 15:18:31 +000015003uts4*)
15004 version_type=linux
15005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006 soname_spec='${libname}${release}${shared_ext}$major'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 ;;
15009
15010*)
15011 dynamic_linker=no
15012 ;;
15013esac
mlcreech94984912008-03-04 19:03:08 +000015014{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15015echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015016test "$dynamic_linker" = no && can_build_shared=no
15017
vapier7f19c022007-02-17 14:46:31 +000015018variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15019if test "$GCC" = yes; then
15020 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15021fi
15022
mlcreech94984912008-03-04 19:03:08 +000015023{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15024echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015025hardcode_action_F77=
15026if test -n "$hardcode_libdir_flag_spec_F77" || \
vapier7f19c022007-02-17 14:46:31 +000015027 test -n "$runpath_var_F77" || \
15028 test "X$hardcode_automatic_F77" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015029
15030 # We can hardcode non-existant directories.
15031 if test "$hardcode_direct_F77" != no &&
15032 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15033 # have to relink, otherwise we might link with an installed library
15034 # when we should be linking with a yet-to-be-installed one
15035 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15036 test "$hardcode_minus_L_F77" != no; then
15037 # Linking always hardcodes the temporary library directory.
15038 hardcode_action_F77=relink
15039 else
15040 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15041 hardcode_action_F77=immediate
15042 fi
15043else
15044 # We cannot hardcode anything, or else we can only hardcode existing
15045 # directories.
15046 hardcode_action_F77=unsupported
15047fi
mlcreech94984912008-03-04 19:03:08 +000015048{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15049echo "${ECHO_T}$hardcode_action_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015050
15051if test "$hardcode_action_F77" = relink; then
15052 # Fast installation is not supported
15053 enable_fast_install=no
15054elif test "$shlibpath_overrides_runpath" = yes ||
15055 test "$enable_shared" = no; then
15056 # Fast installation is not necessary
15057 enable_fast_install=needless
15058fi
15059
a.rottmann9bc8b932004-02-29 15:18:31 +000015060
15061# The else clause should only fire when bootstrapping the
15062# libtool distribution, otherwise you forgot to ship ltmain.sh
15063# with your package, and you will get complaints that there are
15064# no rules to generate ltmain.sh.
15065if test -f "$ltmain"; then
15066 # See if we are running on zsh, and set the options which allow our commands through
15067 # without removal of \ escapes.
15068 if test -n "${ZSH_VERSION+set}" ; then
15069 setopt NO_GLOB_SUBST
15070 fi
15071 # Now quote all the things that may contain metacharacters while being
15072 # careful not to overquote the AC_SUBSTed values. We take copies of the
15073 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000015074 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 +000015075 SED SHELL STRIP \
15076 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15077 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15078 deplibs_check_method reload_flag reload_cmds need_locks \
15079 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15080 lt_cv_sys_global_symbol_to_c_name_address \
15081 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15082 old_postinstall_cmds old_postuninstall_cmds \
15083 compiler_F77 \
15084 CC_F77 \
15085 LD_F77 \
15086 lt_prog_compiler_wl_F77 \
15087 lt_prog_compiler_pic_F77 \
15088 lt_prog_compiler_static_F77 \
15089 lt_prog_compiler_no_builtin_flag_F77 \
15090 export_dynamic_flag_spec_F77 \
15091 thread_safe_flag_spec_F77 \
15092 whole_archive_flag_spec_F77 \
15093 enable_shared_with_static_runtimes_F77 \
15094 old_archive_cmds_F77 \
15095 old_archive_from_new_cmds_F77 \
15096 predep_objects_F77 \
15097 postdep_objects_F77 \
15098 predeps_F77 \
15099 postdeps_F77 \
15100 compiler_lib_search_path_F77 \
15101 archive_cmds_F77 \
15102 archive_expsym_cmds_F77 \
15103 postinstall_cmds_F77 \
15104 postuninstall_cmds_F77 \
15105 old_archive_from_expsyms_cmds_F77 \
15106 allow_undefined_flag_F77 \
15107 no_undefined_flag_F77 \
15108 export_symbols_cmds_F77 \
15109 hardcode_libdir_flag_spec_F77 \
15110 hardcode_libdir_flag_spec_ld_F77 \
15111 hardcode_libdir_separator_F77 \
15112 hardcode_automatic_F77 \
15113 module_cmds_F77 \
15114 module_expsym_cmds_F77 \
15115 lt_cv_prog_compiler_c_o_F77 \
15116 exclude_expsyms_F77 \
15117 include_expsyms_F77; do
15118
15119 case $var in
15120 old_archive_cmds_F77 | \
15121 old_archive_from_new_cmds_F77 | \
15122 archive_cmds_F77 | \
15123 archive_expsym_cmds_F77 | \
15124 module_cmds_F77 | \
15125 module_expsym_cmds_F77 | \
15126 old_archive_from_expsyms_cmds_F77 | \
15127 export_symbols_cmds_F77 | \
15128 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15129 postinstall_cmds | postuninstall_cmds | \
15130 old_postinstall_cmds | old_postuninstall_cmds | \
15131 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15132 # Double-quote double-evaled strings.
15133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15134 ;;
15135 *)
15136 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15137 ;;
15138 esac
15139 done
15140
15141 case $lt_echo in
15142 *'\$0 --fallback-echo"')
15143 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15144 ;;
15145 esac
15146
15147cfgfile="$ofile"
15148
15149 cat <<__EOF__ >> "$cfgfile"
15150# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15151
15152# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15153
15154# Shell to use when invoking shell scripts.
15155SHELL=$lt_SHELL
15156
15157# Whether or not to build shared libraries.
15158build_libtool_libs=$enable_shared
15159
15160# Whether or not to build static libraries.
15161build_old_libs=$enable_static
15162
15163# Whether or not to add -lc for building shared libraries.
15164build_libtool_need_lc=$archive_cmds_need_lc_F77
15165
15166# Whether or not to disallow shared libs when runtime libs are static
15167allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15168
15169# Whether or not to optimize for fast installation.
15170fast_install=$enable_fast_install
15171
15172# The host system.
15173host_alias=$host_alias
15174host=$host
vapier7f19c022007-02-17 14:46:31 +000015175host_os=$host_os
15176
15177# The build system.
15178build_alias=$build_alias
15179build=$build
15180build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000015181
15182# An echo program that does not interpret backslashes.
15183echo=$lt_echo
15184
15185# The archiver.
15186AR=$lt_AR
15187AR_FLAGS=$lt_AR_FLAGS
15188
15189# A C compiler.
15190LTCC=$lt_LTCC
15191
vapier7f19c022007-02-17 14:46:31 +000015192# LTCC compiler flags.
15193LTCFLAGS=$lt_LTCFLAGS
15194
a.rottmann9bc8b932004-02-29 15:18:31 +000015195# A language-specific compiler.
15196CC=$lt_compiler_F77
15197
15198# Is the compiler the GNU C compiler?
15199with_gcc=$GCC_F77
15200
15201# An ERE matcher.
15202EGREP=$lt_EGREP
15203
15204# The linker used to build libraries.
15205LD=$lt_LD_F77
15206
15207# Whether we need hard or soft links.
15208LN_S=$lt_LN_S
15209
15210# A BSD-compatible nm program.
15211NM=$lt_NM
15212
15213# A symbol stripping program
15214STRIP=$lt_STRIP
15215
15216# Used to examine libraries when file_magic_cmd begins "file"
15217MAGIC_CMD=$MAGIC_CMD
15218
15219# Used on cygwin: DLL creation program.
15220DLLTOOL="$DLLTOOL"
15221
15222# Used on cygwin: object dumper.
15223OBJDUMP="$OBJDUMP"
15224
15225# Used on cygwin: assembler.
15226AS="$AS"
15227
15228# The name of the directory that contains temporary libtool files.
15229objdir=$objdir
15230
15231# How to create reloadable object files.
15232reload_flag=$lt_reload_flag
15233reload_cmds=$lt_reload_cmds
15234
15235# How to pass a linker flag through the compiler.
15236wl=$lt_lt_prog_compiler_wl_F77
15237
15238# Object file suffix (normally "o").
15239objext="$ac_objext"
15240
15241# Old archive suffix (normally "a").
15242libext="$libext"
15243
15244# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000015245shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000015246
15247# Executable file suffix (normally "").
15248exeext="$exeext"
15249
15250# Additional compiler flags for building library objects.
15251pic_flag=$lt_lt_prog_compiler_pic_F77
15252pic_mode=$pic_mode
15253
15254# What is the maximum length of a command?
15255max_cmd_len=$lt_cv_sys_max_cmd_len
15256
15257# Does compiler simultaneously support -c and -o options?
15258compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15259
vapier7f19c022007-02-17 14:46:31 +000015260# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000015261need_locks=$lt_need_locks
15262
15263# Do we need the lib prefix for modules?
15264need_lib_prefix=$need_lib_prefix
15265
15266# Do we need a version for libraries?
15267need_version=$need_version
15268
15269# Whether dlopen is supported.
15270dlopen_support=$enable_dlopen
15271
15272# Whether dlopen of programs is supported.
15273dlopen_self=$enable_dlopen_self
15274
15275# Whether dlopen of statically linked programs is supported.
15276dlopen_self_static=$enable_dlopen_self_static
15277
15278# Compiler flag to prevent dynamic linking.
15279link_static_flag=$lt_lt_prog_compiler_static_F77
15280
15281# Compiler flag to turn off builtin functions.
15282no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15283
15284# Compiler flag to allow reflexive dlopens.
15285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15286
15287# Compiler flag to generate shared objects directly from archives.
15288whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15289
15290# Compiler flag to generate thread-safe objects.
15291thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15292
15293# Library versioning type.
15294version_type=$version_type
15295
15296# Format of library name prefix.
15297libname_spec=$lt_libname_spec
15298
15299# List of archive names. First name is the real one, the rest are links.
15300# The last name is the one that the linker finds with -lNAME.
15301library_names_spec=$lt_library_names_spec
15302
15303# The coded name of the library, if different from the real name.
15304soname_spec=$lt_soname_spec
15305
15306# Commands used to build and install an old-style archive.
15307RANLIB=$lt_RANLIB
15308old_archive_cmds=$lt_old_archive_cmds_F77
15309old_postinstall_cmds=$lt_old_postinstall_cmds
15310old_postuninstall_cmds=$lt_old_postuninstall_cmds
15311
15312# Create an old-style archive from a shared archive.
15313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15314
15315# Create a temporary old-style archive to link instead of a shared archive.
15316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15317
15318# Commands used to build and install a shared archive.
15319archive_cmds=$lt_archive_cmds_F77
15320archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15321postinstall_cmds=$lt_postinstall_cmds
15322postuninstall_cmds=$lt_postuninstall_cmds
15323
15324# Commands used to build a loadable module (assumed same as above if empty)
15325module_cmds=$lt_module_cmds_F77
15326module_expsym_cmds=$lt_module_expsym_cmds_F77
15327
15328# Commands to strip libraries.
15329old_striplib=$lt_old_striplib
15330striplib=$lt_striplib
15331
15332# Dependencies to place before the objects being linked to create a
15333# shared library.
15334predep_objects=$lt_predep_objects_F77
15335
15336# Dependencies to place after the objects being linked to create a
15337# shared library.
15338postdep_objects=$lt_postdep_objects_F77
15339
15340# Dependencies to place before the objects being linked to create a
15341# shared library.
15342predeps=$lt_predeps_F77
15343
15344# Dependencies to place after the objects being linked to create a
15345# shared library.
15346postdeps=$lt_postdeps_F77
15347
15348# The library search path used internally by the compiler when linking
15349# a shared library.
15350compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15351
15352# Method to check whether dependent libraries are shared objects.
15353deplibs_check_method=$lt_deplibs_check_method
15354
15355# Command to use when deplibs_check_method == file_magic.
15356file_magic_cmd=$lt_file_magic_cmd
15357
15358# Flag that allows shared libraries with undefined symbols to be built.
15359allow_undefined_flag=$lt_allow_undefined_flag_F77
15360
15361# Flag that forces no undefined symbols.
15362no_undefined_flag=$lt_no_undefined_flag_F77
15363
15364# Commands used to finish a libtool library installation in a directory.
15365finish_cmds=$lt_finish_cmds
15366
15367# Same as above, but a single script fragment to be evaled but not shown.
15368finish_eval=$lt_finish_eval
15369
15370# Take the output of nm and produce a listing of raw symbols and C names.
15371global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15372
15373# Transform the output of nm in a proper C declaration
15374global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15375
15376# Transform the output of nm in a C name address pair
15377global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15378
15379# This is the shared library runtime path variable.
15380runpath_var=$runpath_var
15381
15382# This is the shared library path variable.
15383shlibpath_var=$shlibpath_var
15384
15385# Is shlibpath searched before the hard-coded library search path?
15386shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15387
15388# How to hardcode a shared library path into an executable.
15389hardcode_action=$hardcode_action_F77
15390
15391# Whether we should hardcode library paths into libraries.
15392hardcode_into_libs=$hardcode_into_libs
15393
15394# Flag to hardcode \$libdir into a binary during linking.
15395# This must work even if \$libdir does not exist.
15396hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15397
15398# If ld is used when linking, flag to hardcode \$libdir into
15399# a binary during linking. This must work even if \$libdir does
15400# not exist.
15401hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15402
15403# Whether we need a single -rpath flag with a separated argument.
15404hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15405
15406# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15407# resulting binary.
15408hardcode_direct=$hardcode_direct_F77
15409
15410# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15411# resulting binary.
15412hardcode_minus_L=$hardcode_minus_L_F77
15413
15414# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15415# the resulting binary.
15416hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15417
15418# Set to yes if building a shared library automatically hardcodes DIR into the library
15419# and all subsequent libraries and executables linked against it.
15420hardcode_automatic=$hardcode_automatic_F77
15421
15422# Variables whose values should be saved in libtool wrapper scripts and
15423# restored at relink time.
15424variables_saved_for_relink="$variables_saved_for_relink"
15425
15426# Whether libtool must link a program against all its dependency libraries.
15427link_all_deplibs=$link_all_deplibs_F77
15428
15429# Compile-time system search path for libraries
15430sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15431
15432# Run-time system search path for libraries
15433sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15434
15435# Fix the shell variable \$srcfile for the compiler.
15436fix_srcfile_path="$fix_srcfile_path_F77"
15437
15438# Set to yes if exported symbols are required.
15439always_export_symbols=$always_export_symbols_F77
15440
15441# The commands to list exported symbols.
15442export_symbols_cmds=$lt_export_symbols_cmds_F77
15443
15444# The commands to extract the exported symbol list from a shared archive.
15445extract_expsyms_cmds=$lt_extract_expsyms_cmds
15446
15447# Symbols that should not be listed in the preloaded symbols.
15448exclude_expsyms=$lt_exclude_expsyms_F77
15449
15450# Symbols that must always be exported.
15451include_expsyms=$lt_include_expsyms_F77
15452
15453# ### END LIBTOOL TAG CONFIG: $tagname
15454
15455__EOF__
15456
15457
15458else
15459 # If there is no Makefile yet, we rely on a make rule to execute
15460 # `config.status --recheck' to rerun these tests and create the
15461 # libtool script then.
15462 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15463 if test -f "$ltmain_in"; then
15464 test -f Makefile && make "$ltmain"
15465 fi
15466fi
15467
15468
15469ac_ext=c
15470ac_cpp='$CPP $CPPFLAGS'
15471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15473ac_compiler_gnu=$ac_cv_c_compiler_gnu
15474
15475CC="$lt_save_CC"
15476
15477 else
15478 tagname=""
15479 fi
15480 ;;
15481
15482 GCJ)
15483 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15484
15485
a.rottmann9bc8b932004-02-29 15:18:31 +000015486# Source file extension for Java test sources.
15487ac_ext=java
15488
15489# Object file extension for compiled Java test sources.
15490objext=o
15491objext_GCJ=$objext
15492
15493# Code to be used in simple compile tests
15494lt_simple_compile_test_code="class foo {}\n"
15495
15496# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +000015497lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +000015498
15499# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15500
15501# If no C compiler was specified, use CC.
15502LTCC=${LTCC-"$CC"}
15503
vapier7f19c022007-02-17 14:46:31 +000015504# If no C compiler flags were specified, use CFLAGS.
15505LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15506
a.rottmann9bc8b932004-02-29 15:18:31 +000015507# Allow CC to be a program name with arguments.
15508compiler=$CC
15509
15510
vapier7f19c022007-02-17 14:46:31 +000015511# save warnings/boilerplate of simple test code
15512ac_outfile=conftest.$ac_objext
15513printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15514eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15515_lt_compiler_boilerplate=`cat conftest.err`
15516$rm conftest*
15517
15518ac_outfile=conftest.$ac_objext
15519printf "$lt_simple_link_test_code" >conftest.$ac_ext
15520eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15521_lt_linker_boilerplate=`cat conftest.err`
15522$rm conftest*
15523
15524
a.rottmann9bc8b932004-02-29 15:18:31 +000015525# Allow CC to be a program name with arguments.
15526lt_save_CC="$CC"
15527CC=${GCJ-"gcj"}
15528compiler=$CC
15529compiler_GCJ=$CC
vapier7f19c022007-02-17 14:46:31 +000015530for cc_temp in $compiler""; do
15531 case $cc_temp in
15532 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15533 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15534 \-*) ;;
15535 *) break;;
15536 esac
15537done
15538cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15539
a.rottmann9bc8b932004-02-29 15:18:31 +000015540
15541# GCJ did not exist at the time GCC didn't implicitly link libc in.
15542archive_cmds_need_lc_GCJ=no
15543
vapier7f19c022007-02-17 14:46:31 +000015544old_archive_cmds_GCJ=$old_archive_cmds
15545
a.rottmann9bc8b932004-02-29 15:18:31 +000015546
15547lt_prog_compiler_no_builtin_flag_GCJ=
15548
15549if test "$GCC" = yes; then
15550 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15551
15552
mlcreech94984912008-03-04 19:03:08 +000015553{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15554echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015555if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 lt_cv_prog_compiler_rtti_exceptions=no
15559 ac_outfile=conftest.$ac_objext
15560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561 lt_compiler_flag="-fno-rtti -fno-exceptions"
15562 # Insert the option either (1) after the last *FLAGS variable, or
15563 # (2) before a word containing "conftest.", or (3) at the end.
15564 # Note that $ac_compile itself does not contain backslashes and begins
15565 # with a dollar sign (not a hyphen), so the echo should work correctly.
15566 # The option is referenced via a variable to avoid confusing sed.
15567 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000015571 (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015572 (eval "$lt_compile" 2>conftest.err)
15573 ac_status=$?
15574 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000015575 echo "$as_me:15575: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015576 if (exit $ac_status) && test -s "$ac_outfile"; then
15577 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015578 # So say no if there are warnings other than the usual output.
15579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015582 lt_cv_prog_compiler_rtti_exceptions=yes
15583 fi
15584 fi
15585 $rm conftest*
15586
15587fi
mlcreech94984912008-03-04 19:03:08 +000015588{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15589echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015590
15591if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15592 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15593else
15594 :
15595fi
15596
15597fi
15598
15599lt_prog_compiler_wl_GCJ=
15600lt_prog_compiler_pic_GCJ=
15601lt_prog_compiler_static_GCJ=
15602
mlcreech94984912008-03-04 19:03:08 +000015603{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15604echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015605
15606 if test "$GCC" = yes; then
15607 lt_prog_compiler_wl_GCJ='-Wl,'
15608 lt_prog_compiler_static_GCJ='-static'
15609
15610 case $host_os in
15611 aix*)
15612 # All AIX code is PIC.
15613 if test "$host_cpu" = ia64; then
15614 # AIX 5 now supports IA64 processor
15615 lt_prog_compiler_static_GCJ='-Bstatic'
15616 fi
15617 ;;
15618
15619 amigaos*)
15620 # FIXME: we need at least 68020 code to build shared libraries, but
15621 # adding the `-m68020' flag to GCC prevents building anything better,
15622 # like `-m68040'.
15623 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15624 ;;
15625
15626 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15627 # PIC is the default for these OSes.
15628 ;;
15629
15630 mingw* | pw32* | os2*)
15631 # This hack is so that the source file can tell whether it is being
15632 # built for inclusion in a dll (and should export symbols for example).
15633 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15634 ;;
15635
15636 darwin* | rhapsody*)
15637 # PIC is the default on this platform
15638 # Common symbols not allowed in MH_DYLIB files
15639 lt_prog_compiler_pic_GCJ='-fno-common'
15640 ;;
15641
vapier7f19c022007-02-17 14:46:31 +000015642 interix3*)
15643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15644 # Instead, we relocate shared libraries at runtime.
15645 ;;
15646
a.rottmann9bc8b932004-02-29 15:18:31 +000015647 msdosdjgpp*)
15648 # Just because we use GCC doesn't mean we suddenly get shared libraries
15649 # on systems that don't support them.
15650 lt_prog_compiler_can_build_shared_GCJ=no
15651 enable_shared=no
15652 ;;
15653
15654 sysv4*MP*)
15655 if test -d /usr/nec; then
15656 lt_prog_compiler_pic_GCJ=-Kconform_pic
15657 fi
15658 ;;
15659
15660 hpux*)
15661 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15662 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015663 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015664 hppa*64*|ia64*)
15665 # +Z the default
15666 ;;
15667 *)
15668 lt_prog_compiler_pic_GCJ='-fPIC'
15669 ;;
15670 esac
15671 ;;
15672
15673 *)
15674 lt_prog_compiler_pic_GCJ='-fPIC'
15675 ;;
15676 esac
15677 else
15678 # PORTME Check for flag to pass linker flags through the system compiler.
15679 case $host_os in
15680 aix*)
15681 lt_prog_compiler_wl_GCJ='-Wl,'
15682 if test "$host_cpu" = ia64; then
15683 # AIX 5 now supports IA64 processor
15684 lt_prog_compiler_static_GCJ='-Bstatic'
15685 else
15686 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15687 fi
15688 ;;
vapier7f19c022007-02-17 14:46:31 +000015689 darwin*)
15690 # PIC is the default on this platform
15691 # Common symbols not allowed in MH_DYLIB files
15692 case $cc_basename in
15693 xlc*)
15694 lt_prog_compiler_pic_GCJ='-qnocommon'
15695 lt_prog_compiler_wl_GCJ='-Wl,'
15696 ;;
15697 esac
15698 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015699
15700 mingw* | pw32* | os2*)
15701 # This hack is so that the source file can tell whether it is being
15702 # built for inclusion in a dll (and should export symbols for example).
15703 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15704 ;;
15705
15706 hpux9* | hpux10* | hpux11*)
15707 lt_prog_compiler_wl_GCJ='-Wl,'
15708 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15709 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015710 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015711 hppa*64*|ia64*)
15712 # +Z the default
15713 ;;
15714 *)
15715 lt_prog_compiler_pic_GCJ='+Z'
15716 ;;
15717 esac
15718 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15719 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15720 ;;
15721
15722 irix5* | irix6* | nonstopux*)
15723 lt_prog_compiler_wl_GCJ='-Wl,'
15724 # PIC (with -KPIC) is the default.
15725 lt_prog_compiler_static_GCJ='-non_shared'
15726 ;;
15727
15728 newsos6)
15729 lt_prog_compiler_pic_GCJ='-KPIC'
15730 lt_prog_compiler_static_GCJ='-Bstatic'
15731 ;;
15732
15733 linux*)
vapier7f19c022007-02-17 14:46:31 +000015734 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000015735 icc* | ecc*)
15736 lt_prog_compiler_wl_GCJ='-Wl,'
15737 lt_prog_compiler_pic_GCJ='-KPIC'
15738 lt_prog_compiler_static_GCJ='-static'
15739 ;;
vapier7f19c022007-02-17 14:46:31 +000015740 pgcc* | pgf77* | pgf90* | pgf95*)
15741 # Portland Group compilers (*not* the Pentium gcc compiler,
15742 # which looks to be a dead project)
15743 lt_prog_compiler_wl_GCJ='-Wl,'
15744 lt_prog_compiler_pic_GCJ='-fpic'
15745 lt_prog_compiler_static_GCJ='-Bstatic'
15746 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015747 ccc*)
15748 lt_prog_compiler_wl_GCJ='-Wl,'
15749 # All Alpha code is PIC.
15750 lt_prog_compiler_static_GCJ='-non_shared'
15751 ;;
15752 esac
15753 ;;
15754
15755 osf3* | osf4* | osf5*)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 # All OSF/1 code is PIC.
15758 lt_prog_compiler_static_GCJ='-non_shared'
15759 ;;
15760
a.rottmann9bc8b932004-02-29 15:18:31 +000015761 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015762 lt_prog_compiler_pic_GCJ='-KPIC'
15763 lt_prog_compiler_static_GCJ='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000015764 case $cc_basename in
15765 f77* | f90* | f95*)
15766 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15767 *)
15768 lt_prog_compiler_wl_GCJ='-Wl,';;
15769 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015770 ;;
15771
15772 sunos4*)
15773 lt_prog_compiler_wl_GCJ='-Qoption ld '
15774 lt_prog_compiler_pic_GCJ='-PIC'
15775 lt_prog_compiler_static_GCJ='-Bstatic'
15776 ;;
15777
vapier7f19c022007-02-17 14:46:31 +000015778 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015779 lt_prog_compiler_wl_GCJ='-Wl,'
15780 lt_prog_compiler_pic_GCJ='-KPIC'
15781 lt_prog_compiler_static_GCJ='-Bstatic'
15782 ;;
15783
15784 sysv4*MP*)
15785 if test -d /usr/nec ;then
15786 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15787 lt_prog_compiler_static_GCJ='-Bstatic'
15788 fi
15789 ;;
15790
vapier7f19c022007-02-17 14:46:31 +000015791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15792 lt_prog_compiler_wl_GCJ='-Wl,'
15793 lt_prog_compiler_pic_GCJ='-KPIC'
15794 lt_prog_compiler_static_GCJ='-Bstatic'
15795 ;;
15796
15797 unicos*)
15798 lt_prog_compiler_wl_GCJ='-Wl,'
15799 lt_prog_compiler_can_build_shared_GCJ=no
15800 ;;
15801
a.rottmann9bc8b932004-02-29 15:18:31 +000015802 uts4*)
15803 lt_prog_compiler_pic_GCJ='-pic'
15804 lt_prog_compiler_static_GCJ='-Bstatic'
15805 ;;
15806
15807 *)
15808 lt_prog_compiler_can_build_shared_GCJ=no
15809 ;;
15810 esac
15811 fi
15812
mlcreech94984912008-03-04 19:03:08 +000015813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15814echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015815
15816#
15817# Check to make sure the PIC flag actually works.
15818#
15819if test -n "$lt_prog_compiler_pic_GCJ"; then
15820
mlcreech94984912008-03-04 19:03:08 +000015821{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15822echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015823if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15825else
15826 lt_prog_compiler_pic_works_GCJ=no
15827 ac_outfile=conftest.$ac_objext
15828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15829 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15830 # Insert the option either (1) after the last *FLAGS variable, or
15831 # (2) before a word containing "conftest.", or (3) at the end.
15832 # Note that $ac_compile itself does not contain backslashes and begins
15833 # with a dollar sign (not a hyphen), so the echo should work correctly.
15834 # The option is referenced via a variable to avoid confusing sed.
15835 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15838 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000015839 (eval echo "\"\$as_me:15839: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015840 (eval "$lt_compile" 2>conftest.err)
15841 ac_status=$?
15842 cat conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000015843 echo "$as_me:15843: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015844 if (exit $ac_status) && test -s "$ac_outfile"; then
15845 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015846 # So say no if there are warnings other than the usual output.
15847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015850 lt_prog_compiler_pic_works_GCJ=yes
15851 fi
15852 fi
15853 $rm conftest*
15854
15855fi
mlcreech94984912008-03-04 19:03:08 +000015856{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15857echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015858
15859if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15860 case $lt_prog_compiler_pic_GCJ in
15861 "" | " "*) ;;
15862 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15863 esac
15864else
15865 lt_prog_compiler_pic_GCJ=
15866 lt_prog_compiler_can_build_shared_GCJ=no
15867fi
15868
15869fi
vapier7f19c022007-02-17 14:46:31 +000015870case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000015871 # For platforms which do not support PIC, -DPIC is meaningless:
15872 *djgpp*)
15873 lt_prog_compiler_pic_GCJ=
15874 ;;
15875 *)
15876 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15877 ;;
15878esac
15879
vapier7f19c022007-02-17 14:46:31 +000015880#
15881# Check to make sure the static flag actually works.
15882#
15883wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
mlcreech94984912008-03-04 19:03:08 +000015884{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15885echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015886if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15888else
15889 lt_prog_compiler_static_works_GCJ=no
15890 save_LDFLAGS="$LDFLAGS"
15891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15892 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15894 # The linker can only warn and ignore the option if not recognized
15895 # So say no if there are warnings
15896 if test -s conftest.err; then
15897 # Append any errors to the config.log.
15898 cat conftest.err 1>&5
15899 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15901 if diff conftest.exp conftest.er2 >/dev/null; then
15902 lt_prog_compiler_static_works_GCJ=yes
15903 fi
15904 else
15905 lt_prog_compiler_static_works_GCJ=yes
15906 fi
15907 fi
15908 $rm conftest*
15909 LDFLAGS="$save_LDFLAGS"
15910
15911fi
mlcreech94984912008-03-04 19:03:08 +000015912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15913echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015914
15915if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15916 :
15917else
15918 lt_prog_compiler_static_GCJ=
15919fi
15920
15921
mlcreech94984912008-03-04 19:03:08 +000015922{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15923echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015924if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926else
15927 lt_cv_prog_compiler_c_o_GCJ=no
15928 $rm -r conftest 2>/dev/null
15929 mkdir conftest
15930 cd conftest
15931 mkdir out
15932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15933
15934 lt_compiler_flag="-o out/conftest2.$ac_objext"
15935 # Insert the option either (1) after the last *FLAGS variable, or
15936 # (2) before a word containing "conftest.", or (3) at the end.
15937 # Note that $ac_compile itself does not contain backslashes and begins
15938 # with a dollar sign (not a hyphen), so the echo should work correctly.
15939 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15942 -e 's:$: $lt_compiler_flag:'`
mlcreech94984912008-03-04 19:03:08 +000015943 (eval echo "\"\$as_me:15943: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015944 (eval "$lt_compile" 2>out/conftest.err)
15945 ac_status=$?
15946 cat out/conftest.err >&5
mlcreech94984912008-03-04 19:03:08 +000015947 echo "$as_me:15947: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15949 then
15950 # The compiler can only warn and ignore the option if not recognized
15951 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000015952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015955 lt_cv_prog_compiler_c_o_GCJ=yes
15956 fi
15957 fi
vapier7f19c022007-02-17 14:46:31 +000015958 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015959 $rm conftest*
15960 # SGI C++ compiler will create directory out/ii_files/ for
15961 # template instantiation
15962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15963 $rm out/* && rmdir out
15964 cd ..
15965 rmdir conftest
15966 $rm conftest*
15967
15968fi
mlcreech94984912008-03-04 19:03:08 +000015969{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15970echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015971
15972
15973hard_links="nottested"
15974if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15975 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000015976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15977echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015978 hard_links=yes
15979 $rm conftest*
15980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 touch conftest.a
15982 ln conftest.a conftest.b 2>&5 || hard_links=no
15983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000015984 { echo "$as_me:$LINENO: result: $hard_links" >&5
15985echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015986 if test "$hard_links" = no; then
15987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15988echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15989 need_locks=warn
15990 fi
15991else
15992 need_locks=no
15993fi
15994
mlcreech94984912008-03-04 19:03:08 +000015995{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15996echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015997
15998 runpath_var=
15999 allow_undefined_flag_GCJ=
16000 enable_shared_with_static_runtimes_GCJ=no
16001 archive_cmds_GCJ=
16002 archive_expsym_cmds_GCJ=
16003 old_archive_From_new_cmds_GCJ=
16004 old_archive_from_expsyms_cmds_GCJ=
16005 export_dynamic_flag_spec_GCJ=
16006 whole_archive_flag_spec_GCJ=
16007 thread_safe_flag_spec_GCJ=
16008 hardcode_libdir_flag_spec_GCJ=
16009 hardcode_libdir_flag_spec_ld_GCJ=
16010 hardcode_libdir_separator_GCJ=
16011 hardcode_direct_GCJ=no
16012 hardcode_minus_L_GCJ=no
16013 hardcode_shlibpath_var_GCJ=unsupported
16014 link_all_deplibs_GCJ=unknown
16015 hardcode_automatic_GCJ=no
16016 module_cmds_GCJ=
16017 module_expsym_cmds_GCJ=
16018 always_export_symbols_GCJ=no
16019 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16020 # include_expsyms should be a list of space-separated symbols to be *always*
16021 # included in the symbol list
16022 include_expsyms_GCJ=
16023 # exclude_expsyms can be an extended regexp of symbols to exclude
16024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16026 # as well as any symbol that contains `d'.
16027 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16029 # platforms (ab)use it in PIC code, but their linkers get confused if
16030 # the symbol is explicitly referenced. Since portable code cannot
16031 # rely on this symbol name, it's probably fine to never include it in
16032 # preloaded symbol tables.
16033 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000016034 # Just being paranoid about ensuring that cc_basename is set.
16035 for cc_temp in $compiler""; do
16036 case $cc_temp in
16037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16039 \-*) ;;
16040 *) break;;
16041 esac
16042done
16043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000016044
16045 case $host_os in
16046 cygwin* | mingw* | pw32*)
16047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16048 # When not using gcc, we currently assume that we are using
16049 # Microsoft Visual C++.
16050 if test "$GCC" != yes; then
16051 with_gnu_ld=no
16052 fi
16053 ;;
vapier7f19c022007-02-17 14:46:31 +000016054 interix*)
16055 # we just hope/assume this is gcc and not c89 (= MSVC++)
16056 with_gnu_ld=yes
16057 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016058 openbsd*)
16059 with_gnu_ld=no
16060 ;;
16061 esac
16062
16063 ld_shlibs_GCJ=yes
16064 if test "$with_gnu_ld" = yes; then
16065 # If archive_cmds runs LD, not CC, wlarc should be empty
16066 wlarc='${wl}'
16067
vapier7f19c022007-02-17 14:46:31 +000016068 # Set some defaults for GNU ld with shared library support. These
16069 # are reset later if shared libraries are not supported. Putting them
16070 # here allows them to be overridden if necessary.
16071 runpath_var=LD_RUN_PATH
16072 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16073 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16074 # ancient GNU ld didn't support --whole-archive et. al.
16075 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16076 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16077 else
16078 whole_archive_flag_spec_GCJ=
16079 fi
16080 supports_anon_versioning=no
16081 case `$LD -v 2>/dev/null` in
16082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16085 *\ 2.11.*) ;; # other 2.11 versions
16086 *) supports_anon_versioning=yes ;;
16087 esac
16088
a.rottmann9bc8b932004-02-29 15:18:31 +000016089 # See if GNU ld supports shared libraries.
16090 case $host_os in
16091 aix3* | aix4* | aix5*)
16092 # On AIX/PPC, the GNU linker is very broken
16093 if test "$host_cpu" != ia64; then
16094 ld_shlibs_GCJ=no
16095 cat <<EOF 1>&2
16096
16097*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16098*** to be unable to reliably create shared libraries on AIX.
16099*** Therefore, libtool is disabling shared libraries support. If you
16100*** really care for shared libraries, you may want to modify your PATH
16101*** so that a non-GNU linker is found, and then restart.
16102
16103EOF
16104 fi
16105 ;;
16106
16107 amigaos*)
16108 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)'
16109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16110 hardcode_minus_L_GCJ=yes
16111
16112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16113 # that the semantics of dynamic libraries on AmigaOS, at least up
16114 # to version 4, is to share data among multiple programs linked
16115 # with the same dynamic library. Since this doesn't match the
16116 # behavior of shared libraries on other platforms, we can't use
16117 # them.
16118 ld_shlibs_GCJ=no
16119 ;;
16120
16121 beos*)
16122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16123 allow_undefined_flag_GCJ=unsupported
16124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16125 # support --undefined. This deserves some investigation. FIXME
16126 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127 else
16128 ld_shlibs_GCJ=no
16129 fi
16130 ;;
16131
16132 cygwin* | mingw* | pw32*)
16133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16134 # as there is no search path for DLLs.
16135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16136 allow_undefined_flag_GCJ=unsupported
16137 always_export_symbols_GCJ=no
16138 enable_shared_with_static_runtimes_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016139 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 +000016140
16141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000016142 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 +000016143 # If the export-symbols file already is a .def file (1st line
16144 # is EXPORTS), use it as is; otherwise, prepend...
16145 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16146 cp $export_symbols $output_objdir/$soname.def;
16147 else
16148 echo EXPORTS > $output_objdir/$soname.def;
16149 cat $export_symbols >> $output_objdir/$soname.def;
16150 fi~
vapier7f19c022007-02-17 14:46:31 +000016151 $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 +000016152 else
vapier7f19c022007-02-17 14:46:31 +000016153 ld_shlibs_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016154 fi
16155 ;;
16156
vapier7f19c022007-02-17 14:46:31 +000016157 interix3*)
16158 hardcode_direct_GCJ=no
16159 hardcode_shlibpath_var_GCJ=no
16160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16161 export_dynamic_flag_spec_GCJ='${wl}-E'
16162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16163 # Instead, shared libraries are loaded at an image base (0x10000000 by
16164 # default) and relocated if they conflict, which is a slow very memory
16165 # consuming and fragmenting process. To avoid this, we pick a random,
16166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16168 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'
16169 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'
16170 ;;
16171
16172 linux*)
16173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16174 tmp_addflag=
16175 case $cc_basename,$host_cpu in
16176 pgcc*) # Portland Group C compiler
16177 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'
16178 tmp_addflag=' $pic_flag'
16179 ;;
16180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16181 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'
16182 tmp_addflag=' $pic_flag -Mnomain' ;;
16183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16184 tmp_addflag=' -i_dynamic' ;;
16185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16186 tmp_addflag=' -i_dynamic -nofor_main' ;;
16187 ifc* | ifort*) # Intel Fortran compiler
16188 tmp_addflag=' -nofor_main' ;;
16189 esac
16190 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16191
16192 if test $supports_anon_versioning = yes; then
16193 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16195 $echo "local: *; };" >> $output_objdir/$libname.ver~
16196 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16197 fi
16198 else
16199 ld_shlibs_GCJ=no
16200 fi
16201 ;;
16202
16203 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16205 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16206 wlarc=
16207 else
16208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16210 fi
16211 ;;
16212
vapier7f19c022007-02-17 14:46:31 +000016213 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016214 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16215 ld_shlibs_GCJ=no
16216 cat <<EOF 1>&2
16217
16218*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16219*** create shared libraries on Solaris systems. Therefore, libtool
16220*** is disabling shared libraries support. We urge you to upgrade GNU
16221*** binutils to release 2.9.1 or newer. Another option is to modify
16222*** your PATH or compiler configuration so that the native linker is
16223*** used, and then restart.
16224
16225EOF
16226 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16229 else
16230 ld_shlibs_GCJ=no
16231 fi
16232 ;;
16233
vapier7f19c022007-02-17 14:46:31 +000016234 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16235 case `$LD -v 2>&1` in
16236 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16237 ld_shlibs_GCJ=no
16238 cat <<_LT_EOF 1>&2
16239
16240*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16241*** reliably create shared libraries on SCO systems. Therefore, libtool
16242*** is disabling shared libraries support. We urge you to upgrade GNU
16243*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16244*** your PATH or compiler configuration so that the native linker is
16245*** used, and then restart.
16246
16247_LT_EOF
16248 ;;
16249 *)
16250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16251 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16252 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16253 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16254 else
16255 ld_shlibs_GCJ=no
16256 fi
16257 ;;
16258 esac
16259 ;;
16260
a.rottmann9bc8b932004-02-29 15:18:31 +000016261 sunos4*)
16262 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16263 wlarc=
16264 hardcode_direct_GCJ=yes
16265 hardcode_shlibpath_var_GCJ=no
16266 ;;
16267
a.rottmann9bc8b932004-02-29 15:18:31 +000016268 *)
16269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16270 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16272 else
16273 ld_shlibs_GCJ=no
16274 fi
16275 ;;
16276 esac
16277
vapier7f19c022007-02-17 14:46:31 +000016278 if test "$ld_shlibs_GCJ" = no; then
16279 runpath_var=
16280 hardcode_libdir_flag_spec_GCJ=
16281 export_dynamic_flag_spec_GCJ=
16282 whole_archive_flag_spec_GCJ=
a.rottmann9bc8b932004-02-29 15:18:31 +000016283 fi
16284 else
16285 # PORTME fill in a description of your system's linker (not GNU ld)
16286 case $host_os in
16287 aix3*)
16288 allow_undefined_flag_GCJ=unsupported
16289 always_export_symbols_GCJ=yes
16290 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'
16291 # Note: this linker hardcodes the directories in LIBPATH if there
16292 # are no directories specified by -L.
16293 hardcode_minus_L_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016295 # Neither direct hardcoding nor static linking is supported with a
16296 # broken collect2.
16297 hardcode_direct_GCJ=unsupported
16298 fi
16299 ;;
16300
16301 aix4* | aix5*)
16302 if test "$host_cpu" = ia64; then
16303 # On IA64, the linker does run time linking by default, so we don't
16304 # have to do anything special.
16305 aix_use_runtimelinking=no
16306 exp_sym_flag='-Bexport'
16307 no_entry_flag=""
16308 else
16309 # If we're using GNU nm, then we don't want the "-C" option.
16310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16311 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16312 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'
16313 else
16314 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'
16315 fi
16316 aix_use_runtimelinking=no
16317
16318 # Test if we are trying to use run time linking or normal
16319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16320 # need to do runtime linking.
16321 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16322 for ld_flag in $LDFLAGS; do
16323 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16324 aix_use_runtimelinking=yes
16325 break
16326 fi
16327 done
vapier7f19c022007-02-17 14:46:31 +000016328 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016329 esac
16330
16331 exp_sym_flag='-bexport'
16332 no_entry_flag='-bnoentry'
16333 fi
16334
16335 # When large executables or shared objects are built, AIX ld can
16336 # have problems creating the table of contents. If linking a library
16337 # or program results in "error TOC overflow" add -mminimal-toc to
16338 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16339 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16340
16341 archive_cmds_GCJ=''
16342 hardcode_direct_GCJ=yes
16343 hardcode_libdir_separator_GCJ=':'
16344 link_all_deplibs_GCJ=yes
16345
16346 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016347 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016348 # We only want to do this on AIX 4.2 and lower, the check
16349 # below for broken collect2 doesn't work under 4.3+
16350 collect2name=`${CC} -print-prog-name=collect2`
16351 if test -f "$collect2name" && \
16352 strings "$collect2name" | grep resolve_lib_name >/dev/null
16353 then
16354 # We have reworked collect2
16355 hardcode_direct_GCJ=yes
16356 else
16357 # We have old collect2
16358 hardcode_direct_GCJ=unsupported
16359 # It fails to find uninstalled libraries when the uninstalled
16360 # path is not listed in the libpath. Setting hardcode_minus_L
16361 # to unsupported forces relinking
16362 hardcode_minus_L_GCJ=yes
16363 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16364 hardcode_libdir_separator_GCJ=
16365 fi
vapier7f19c022007-02-17 14:46:31 +000016366 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016367 esac
16368 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000016369 if test "$aix_use_runtimelinking" = yes; then
16370 shared_flag="$shared_flag "'${wl}-G'
16371 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016372 else
16373 # not using gcc
16374 if test "$host_cpu" = ia64; then
16375 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16376 # chokes on -Wl,-G. The following line is correct:
16377 shared_flag='-G'
16378 else
vapier7f19c022007-02-17 14:46:31 +000016379 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016380 shared_flag='${wl}-G'
16381 else
16382 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000016383 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016384 fi
16385 fi
16386
16387 # It seems that -bexpall does not export symbols beginning with
16388 # underscore (_), so it is better to generate a list of symbols to export.
16389 always_export_symbols_GCJ=yes
16390 if test "$aix_use_runtimelinking" = yes; then
16391 # Warning - without using the other runtime loading flags (-brtl),
16392 # -berok will link without error, but may produce a broken library.
16393 allow_undefined_flag_GCJ='-berok'
16394 # Determine the default libpath from the value encoded in an empty executable.
16395 cat >conftest.$ac_ext <<_ACEOF
16396/* confdefs.h. */
16397_ACEOF
16398cat confdefs.h >>conftest.$ac_ext
16399cat >>conftest.$ac_ext <<_ACEOF
16400/* end confdefs.h. */
16401
16402int
16403main ()
16404{
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016411if { (ac_try="$ac_link"
16412case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016418 ac_status=$?
16419 grep -v '^ *+' conftest.er1 >conftest.err
16420 rm -f conftest.er1
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest$ac_exeext &&
16427 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016428
16429aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16430}'`
16431# Check for a 64-bit object if we didn't find anything.
16432if 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; }
16433}'`; fi
16434else
16435 echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
mlcreech94984912008-03-04 19:03:08 +000016438
a.rottmann9bc8b932004-02-29 15:18:31 +000016439fi
mlcreech94984912008-03-04 19:03:08 +000016440
16441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016442 conftest$ac_exeext conftest.$ac_ext
16443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16444
16445 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000016446 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 +000016447 else
16448 if test "$host_cpu" = ia64; then
16449 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16450 allow_undefined_flag_GCJ="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000016451 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 +000016452 else
16453 # Determine the default libpath from the value encoded in an empty executable.
16454 cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460
16461int
16462main ()
16463{
16464
16465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016470if { (ac_try="$ac_link"
16471case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
16475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016477 ac_status=$?
16478 grep -v '^ *+' conftest.er1 >conftest.err
16479 rm -f conftest.er1
16480 cat conftest.err >&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016482 (exit $ac_status); } && {
16483 test -z "$ac_c_werror_flag" ||
16484 test ! -s conftest.err
16485 } && test -s conftest$ac_exeext &&
16486 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016487
16488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16489}'`
16490# Check for a 64-bit object if we didn't find anything.
16491if 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; }
16492}'`; fi
16493else
16494 echo "$as_me: failed program was:" >&5
16495sed 's/^/| /' conftest.$ac_ext >&5
16496
mlcreech94984912008-03-04 19:03:08 +000016497
a.rottmann9bc8b932004-02-29 15:18:31 +000016498fi
mlcreech94984912008-03-04 19:03:08 +000016499
16500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016501 conftest$ac_exeext conftest.$ac_ext
16502if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16503
16504 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16505 # Warning - without using the other run time loading flags,
16506 # -berok will link without error, but may produce a broken library.
16507 no_undefined_flag_GCJ=' ${wl}-bernotok'
16508 allow_undefined_flag_GCJ=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000016509 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000016510 whole_archive_flag_spec_GCJ='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000016511 archive_cmds_need_lc_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016512 # This is similar to how AIX traditionally builds its shared libraries.
16513 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 +000016514 fi
16515 fi
16516 ;;
16517
16518 amigaos*)
16519 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)'
16520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16521 hardcode_minus_L_GCJ=yes
16522 # see comment about different semantics on the GNU ld section
16523 ld_shlibs_GCJ=no
16524 ;;
16525
vapier7f19c022007-02-17 14:46:31 +000016526 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016527 export_dynamic_flag_spec_GCJ=-rdynamic
16528 ;;
16529
16530 cygwin* | mingw* | pw32*)
16531 # When not using gcc, we currently assume that we are using
16532 # Microsoft Visual C++.
16533 # hardcode_libdir_flag_spec is actually meaningless, as there is
16534 # no search path for DLLs.
16535 hardcode_libdir_flag_spec_GCJ=' '
16536 allow_undefined_flag_GCJ=unsupported
16537 # Tell ltmain to make .lib files, not .a files.
16538 libext=lib
16539 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000016540 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016541 # FIXME: Setting linknames here is a bad hack.
16542 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16543 # The linker will automatically build a .lib file if we build a DLL.
16544 old_archive_From_new_cmds_GCJ='true'
16545 # FIXME: Should let the user specify the lib program.
16546 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000016547 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000016548 enable_shared_with_static_runtimes_GCJ=yes
16549 ;;
16550
16551 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000016552 case $host_os in
16553 rhapsody* | darwin1.[012])
16554 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16555 ;;
16556 *) # Darwin 1.3 on
16557 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16558 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16559 else
16560 case ${MACOSX_DEPLOYMENT_TARGET} in
16561 10.[012])
16562 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16563 ;;
16564 10.*)
16565 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16566 ;;
16567 esac
16568 fi
16569 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016570 esac
vapier7f19c022007-02-17 14:46:31 +000016571 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016572 hardcode_direct_GCJ=no
16573 hardcode_automatic_GCJ=yes
16574 hardcode_shlibpath_var_GCJ=unsupported
vapier7f19c022007-02-17 14:46:31 +000016575 whole_archive_flag_spec_GCJ=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016576 link_all_deplibs_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016577 if test "$GCC" = yes ; then
16578 output_verbose_link_cmd='echo'
16579 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16580 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16581 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16582 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}'
16583 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 +000016584 else
vapier7f19c022007-02-17 14:46:31 +000016585 case $cc_basename in
16586 xlc*)
16587 output_verbose_link_cmd='echo'
16588 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16589 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16590 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16591 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}'
16592 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}'
16593 ;;
16594 *)
16595 ld_shlibs_GCJ=no
16596 ;;
16597 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000016598 fi
16599 ;;
16600
16601 dgux*)
16602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16604 hardcode_shlibpath_var_GCJ=no
16605 ;;
16606
16607 freebsd1*)
16608 ld_shlibs_GCJ=no
16609 ;;
16610
16611 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16612 # support. Future versions do this automatically, but an explicit c++rt0.o
16613 # does not break anything, and helps significantly (at the cost of a little
16614 # extra space).
16615 freebsd2.2*)
16616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16617 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16618 hardcode_direct_GCJ=yes
16619 hardcode_shlibpath_var_GCJ=no
16620 ;;
16621
16622 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16623 freebsd2*)
16624 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_direct_GCJ=yes
16626 hardcode_minus_L_GCJ=yes
16627 hardcode_shlibpath_var_GCJ=no
16628 ;;
16629
16630 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000016631 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016632 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16633 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16634 hardcode_direct_GCJ=yes
16635 hardcode_shlibpath_var_GCJ=no
16636 ;;
16637
16638 hpux9*)
16639 if test "$GCC" = yes; then
16640 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'
16641 else
16642 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'
16643 fi
16644 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16645 hardcode_libdir_separator_GCJ=:
16646 hardcode_direct_GCJ=yes
16647
16648 # hardcode_minus_L: Not really in the search PATH,
16649 # but as the default location of the library.
16650 hardcode_minus_L_GCJ=yes
16651 export_dynamic_flag_spec_GCJ='${wl}-E'
16652 ;;
16653
vapier7f19c022007-02-17 14:46:31 +000016654 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016655 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016656 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16657 else
16658 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16659 fi
16660 if test "$with_gnu_ld" = no; then
16661 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_separator_GCJ=:
16663
16664 hardcode_direct_GCJ=yes
16665 export_dynamic_flag_spec_GCJ='${wl}-E'
16666
16667 # hardcode_minus_L: Not really in the search PATH,
16668 # but as the default location of the library.
16669 hardcode_minus_L_GCJ=yes
16670 fi
16671 ;;
16672
16673 hpux11*)
16674 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16675 case $host_cpu in
16676 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016677 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16678 ;;
vapier7f19c022007-02-17 14:46:31 +000016679 ia64*)
16680 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16681 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016682 *)
16683 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16684 ;;
16685 esac
16686 else
vapier7f19c022007-02-17 14:46:31 +000016687 case $host_cpu in
16688 hppa*64*)
16689 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 ;;
16691 ia64*)
16692 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016693 ;;
16694 *)
vapier7f19c022007-02-17 14:46:31 +000016695 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 +000016696 ;;
16697 esac
16698 fi
16699 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016700 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16701 hardcode_libdir_separator_GCJ=:
a.rottmann9bc8b932004-02-29 15:18:31 +000016702
vapier7f19c022007-02-17 14:46:31 +000016703 case $host_cpu in
16704 hppa*64*|ia64*)
16705 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16706 hardcode_direct_GCJ=no
16707 hardcode_shlibpath_var_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016708 ;;
16709 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000016710 hardcode_direct_GCJ=yes
16711 export_dynamic_flag_spec_GCJ='${wl}-E'
16712
16713 # hardcode_minus_L: Not really in the search PATH,
16714 # but as the default location of the library.
16715 hardcode_minus_L_GCJ=yes
16716 ;;
16717 esac
16718 fi
16719 ;;
16720
16721 irix5* | irix6* | nonstopux*)
16722 if test "$GCC" = yes; then
16723 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'
16724 else
16725 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'
16726 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16727 fi
16728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16729 hardcode_libdir_separator_GCJ=:
16730 link_all_deplibs_GCJ=yes
16731 ;;
16732
vapier7f19c022007-02-17 14:46:31 +000016733 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16735 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16736 else
16737 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16738 fi
16739 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16740 hardcode_direct_GCJ=yes
16741 hardcode_shlibpath_var_GCJ=no
16742 ;;
16743
16744 newsos6)
16745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16746 hardcode_direct_GCJ=yes
16747 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16748 hardcode_libdir_separator_GCJ=:
16749 hardcode_shlibpath_var_GCJ=no
16750 ;;
16751
16752 openbsd*)
16753 hardcode_direct_GCJ=yes
16754 hardcode_shlibpath_var_GCJ=no
16755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16756 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000016757 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 +000016758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16759 export_dynamic_flag_spec_GCJ='${wl}-E'
16760 else
16761 case $host_os in
16762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16763 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16764 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16765 ;;
16766 *)
16767 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16769 ;;
16770 esac
16771 fi
16772 ;;
16773
16774 os2*)
16775 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16776 hardcode_minus_L_GCJ=yes
16777 allow_undefined_flag_GCJ=unsupported
16778 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'
16779 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16780 ;;
16781
16782 osf3*)
16783 if test "$GCC" = yes; then
16784 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16785 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'
16786 else
16787 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16788 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'
16789 fi
16790 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16791 hardcode_libdir_separator_GCJ=:
16792 ;;
16793
16794 osf4* | osf5*) # as osf3* with the addition of -msym flag
16795 if test "$GCC" = yes; then
16796 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16797 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'
16798 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16799 else
16800 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16801 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'
16802 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 +000016803 $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 +000016804
16805 # Both c and cxx compiler support -rpath directly
16806 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16807 fi
16808 hardcode_libdir_separator_GCJ=:
16809 ;;
16810
a.rottmann9bc8b932004-02-29 15:18:31 +000016811 solaris*)
16812 no_undefined_flag_GCJ=' -z text'
16813 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016814 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016815 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16817 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16818 else
vapier7f19c022007-02-17 14:46:31 +000016819 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016820 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16823 fi
16824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16825 hardcode_shlibpath_var_GCJ=no
16826 case $host_os in
16827 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000016828 *)
16829 # The compiler driver will combine linker options so we
16830 # cannot just pass the convience library names through
16831 # without $wl, iff we do not link with $LD.
16832 # Luckily, gcc supports the same syntax we need for Sun Studio.
16833 # Supported since Solaris 2.6 (maybe 2.5.1?)
16834 case $wlarc in
16835 '')
16836 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16837 *)
16838 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' ;;
16839 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016840 esac
16841 link_all_deplibs_GCJ=yes
16842 ;;
16843
16844 sunos4*)
16845 if test "x$host_vendor" = xsequent; then
16846 # Use $CC to link under sequent, because it throws in some extra .o
16847 # files that make .init and .fini sections work.
16848 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16849 else
16850 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16851 fi
16852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16853 hardcode_direct_GCJ=yes
16854 hardcode_minus_L_GCJ=yes
16855 hardcode_shlibpath_var_GCJ=no
16856 ;;
16857
16858 sysv4)
16859 case $host_vendor in
16860 sni)
16861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16862 hardcode_direct_GCJ=yes # is this really true???
16863 ;;
16864 siemens)
16865 ## LD is ld it makes a PLAMLIB
16866 ## CC just makes a GrossModule.
16867 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16868 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16869 hardcode_direct_GCJ=no
16870 ;;
16871 motorola)
16872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16874 ;;
16875 esac
16876 runpath_var='LD_RUN_PATH'
16877 hardcode_shlibpath_var_GCJ=no
16878 ;;
16879
16880 sysv4.3*)
16881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882 hardcode_shlibpath_var_GCJ=no
16883 export_dynamic_flag_spec_GCJ='-Bexport'
16884 ;;
16885
16886 sysv4*MP*)
16887 if test -d /usr/nec; then
16888 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16889 hardcode_shlibpath_var_GCJ=no
16890 runpath_var=LD_RUN_PATH
16891 hardcode_runpath_var=yes
16892 ld_shlibs_GCJ=yes
16893 fi
16894 ;;
16895
vapier7f19c022007-02-17 14:46:31 +000016896 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16897 no_undefined_flag_GCJ='${wl}-z,text'
16898 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016899 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016900 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000016901
a.rottmann9bc8b932004-02-29 15:18:31 +000016902 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016903 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16904 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 +000016905 else
vapier7f19c022007-02-17 14:46:31 +000016906 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16907 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 +000016908 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016909 ;;
16910
vapier7f19c022007-02-17 14:46:31 +000016911 sysv5* | sco3.2v5* | sco5v6*)
16912 # Note: We can NOT use -z defs as we might desire, because we do not
16913 # link with -lc, and that would cause any symbols used from libc to
16914 # always be unresolved, which means just about no library would
16915 # ever link correctly. If we're not using GNU ld we use -z text
16916 # though, which does catch some bad symbols but isn't as heavy-handed
16917 # as -z defs.
16918 no_undefined_flag_GCJ='${wl}-z,text'
16919 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16920 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016921 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016922 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16923 hardcode_libdir_separator_GCJ=':'
16924 link_all_deplibs_GCJ=yes
16925 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000016926 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000016927
16928 if test "$GCC" = yes; then
16929 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16930 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16931 else
16932 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16934 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016935 ;;
16936
16937 uts4*)
16938 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940 hardcode_shlibpath_var_GCJ=no
16941 ;;
16942
16943 *)
16944 ld_shlibs_GCJ=no
16945 ;;
16946 esac
16947 fi
16948
mlcreech94984912008-03-04 19:03:08 +000016949{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16950echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016951test "$ld_shlibs_GCJ" = no && can_build_shared=no
16952
a.rottmann9bc8b932004-02-29 15:18:31 +000016953#
16954# Do we need to explicitly link libc?
16955#
16956case "x$archive_cmds_need_lc_GCJ" in
16957x|xyes)
16958 # Assume -lc should be added
16959 archive_cmds_need_lc_GCJ=yes
16960
16961 if test "$enable_shared" = yes && test "$GCC" = yes; then
16962 case $archive_cmds_GCJ in
16963 *'~'*)
16964 # FIXME: we may have to deal with multi-command sequences.
16965 ;;
16966 '$CC '*)
16967 # Test whether the compiler implicitly links with -lc since on some
16968 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16969 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000016970 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016972 $rm conftest*
16973 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16974
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976 (eval $ac_compile) 2>&5
16977 ac_status=$?
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } 2>conftest.err; then
16980 soname=conftest
16981 lib=conftest
16982 libobjs=conftest.$ac_objext
16983 deplibs=
16984 wl=$lt_prog_compiler_wl_GCJ
vapier7f19c022007-02-17 14:46:31 +000016985 pic_flag=$lt_prog_compiler_pic_GCJ
a.rottmann9bc8b932004-02-29 15:18:31 +000016986 compiler_flags=-v
16987 linker_flags=-v
16988 verstring=
16989 output_objdir=.
16990 libname=conftest
16991 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16992 allow_undefined_flag_GCJ=
16993 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16994 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }
16998 then
16999 archive_cmds_need_lc_GCJ=no
17000 else
17001 archive_cmds_need_lc_GCJ=yes
17002 fi
17003 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17004 else
17005 cat conftest.err 1>&5
17006 fi
17007 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000017008 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17009echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017010 ;;
17011 esac
17012 fi
17013 ;;
17014esac
17015
mlcreech94984912008-03-04 19:03:08 +000017016{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17017echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017018library_names_spec=
17019libname_spec='lib$name'
17020soname_spec=
vapier7f19c022007-02-17 14:46:31 +000017021shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000017022postinstall_cmds=
17023postuninstall_cmds=
17024finish_cmds=
17025finish_eval=
17026shlibpath_var=
17027shlibpath_overrides_runpath=unknown
17028version_type=none
17029dynamic_linker="$host_os ld.so"
17030sys_lib_dlsearch_path_spec="/lib /usr/lib"
17031if test "$GCC" = yes; then
17032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17033 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17034 # if the path contains ";" then we assume it to be the separator
17035 # otherwise default to the standard path separator (i.e. ":") - it is
17036 # assumed that no part of a normal pathname contains ";" but that should
17037 # okay in the real world where ";" in dirpaths is itself problematic.
17038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17039 else
17040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17041 fi
17042else
17043 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17044fi
17045need_lib_prefix=unknown
17046hardcode_into_libs=no
17047
17048# when you set need_version to no, make sure it does not cause -set_version
17049# flags to be left without arguments
17050need_version=unknown
17051
17052case $host_os in
17053aix3*)
17054 version_type=linux
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17056 shlibpath_var=LIBPATH
17057
17058 # AIX 3 has no versioning support, so we append a major version to the name.
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 ;;
17061
17062aix4* | aix5*)
17063 version_type=linux
17064 need_lib_prefix=no
17065 need_version=no
17066 hardcode_into_libs=yes
17067 if test "$host_cpu" = ia64; then
17068 # AIX 5 supports IA64
17069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 else
17072 # With GCC up to 2.95.x, collect2 would create an import file
17073 # for dependence libraries. The import file would start with
17074 # the line `#! .'. This would cause the generated library to
17075 # depend on `.', always an invalid library. This was fixed in
17076 # development snapshots of GCC prior to 3.0.
17077 case $host_os in
17078 aix4 | aix4.[01] | aix4.[01].*)
17079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17080 echo ' yes '
17081 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17082 :
17083 else
17084 can_build_shared=no
17085 fi
17086 ;;
17087 esac
17088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17089 # soname into executable. Probably we can add versioning support to
17090 # collect2, so additional links can be useful in future.
17091 if test "$aix_use_runtimelinking" = yes; then
17092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17093 # instead of lib<name>.a to let people know that these are not
17094 # typical AIX shared libraries.
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 else
17097 # We preserve .a as extension for shared libraries through AIX4.2
17098 # and later when we are not doing run time linking.
17099 library_names_spec='${libname}${release}.a $libname.a'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 fi
17102 shlibpath_var=LIBPATH
17103 fi
17104 ;;
17105
17106amigaos*)
17107 library_names_spec='$libname.ixlibrary $libname.a'
17108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17109 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'
17110 ;;
17111
17112beos*)
17113 library_names_spec='${libname}${shared_ext}'
17114 dynamic_linker="$host_os ld.so"
17115 shlibpath_var=LIBRARY_PATH
17116 ;;
17117
vapier7f19c022007-02-17 14:46:31 +000017118bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017119 version_type=linux
17120 need_version=no
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17126 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17127 # the default ld.so.conf also contains /usr/contrib/lib and
17128 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17129 # libtool to hard-code these into programs
17130 ;;
17131
17132cygwin* | mingw* | pw32*)
17133 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000017134 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017135 need_version=no
17136 need_lib_prefix=no
17137
17138 case $GCC,$host_os in
17139 yes,cygwin* | yes,mingw* | yes,pw32*)
17140 library_names_spec='$libname.dll.a'
17141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17142 postinstall_cmds='base_file=`basename \${file}`~
17143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17144 dldir=$destdir/`dirname \$dlpath`~
17145 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000017146 $install_prog $dir/$dlname \$dldir/$dlname~
17147 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000017148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17149 dlpath=$dir/\$dldll~
17150 $rm \$dlpath'
17151 shlibpath_overrides_runpath=yes
17152
17153 case $host_os in
17154 cygwin*)
17155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17157 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17158 ;;
17159 mingw*)
17160 # MinGW DLLs use traditional 'lib' prefix
17161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17163 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17164 # It is most probably a Windows format PATH printed by
17165 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17166 # path with ; separators, and with drive letters. We can handle the
17167 # drive letters (cygwin fileutils understands them), so leave them,
17168 # especially as we might pass files found there to a mingw objdump,
17169 # which wouldn't understand a cygwinified path. Ahh.
17170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17171 else
17172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17173 fi
17174 ;;
17175 pw32*)
17176 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000017177 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 +000017178 ;;
17179 esac
17180 ;;
17181
vapier7f19c022007-02-17 14:46:31 +000017182 linux*)
17183 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17185 supports_anon_versioning=no
17186 case `$LD -v 2>/dev/null` in
17187 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17188 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17189 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17190 *\ 2.11.*) ;; # other 2.11 versions
17191 *) supports_anon_versioning=yes ;;
17192 esac
17193 if test $supports_anon_versioning = yes; then
17194 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17195cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17196$echo "local: *; };" >> $output_objdir/$libname.ver~
17197 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17198 else
17199 $archive_expsym_cmds="$archive_cmds"
17200 fi
17201 else
17202 ld_shlibs=no
17203 fi
17204 ;;
17205
a.rottmann9bc8b932004-02-29 15:18:31 +000017206 *)
17207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17208 ;;
17209 esac
17210 dynamic_linker='Win32 ld.exe'
17211 # FIXME: first we should search . and the directory the executable is in
17212 shlibpath_var=PATH
17213 ;;
17214
17215darwin* | rhapsody*)
17216 dynamic_linker="$host_os dyld"
17217 version_type=darwin
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17221 soname_spec='${libname}${release}${major}$shared_ext'
17222 shlibpath_overrides_runpath=yes
17223 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000017224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000017225 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17226 if test "$GCC" = yes; then
17227 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"`
17228 else
17229 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17230 fi
17231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17232 ;;
17233
17234dgux*)
17235 version_type=linux
17236 need_lib_prefix=no
17237 need_version=no
17238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17239 soname_spec='${libname}${release}${shared_ext}$major'
17240 shlibpath_var=LD_LIBRARY_PATH
17241 ;;
17242
17243freebsd1*)
17244 dynamic_linker=no
17245 ;;
17246
17247kfreebsd*-gnu)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17254 shlibpath_overrides_runpath=no
17255 hardcode_into_libs=yes
17256 dynamic_linker='GNU ld.so'
17257 ;;
17258
vapier7f19c022007-02-17 14:46:31 +000017259freebsd* | dragonfly*)
17260 # DragonFly does not have aout. When/if they implement a new
17261 # versioning mechanism, adjust this.
17262 if test -x /usr/bin/objformat; then
17263 objformat=`/usr/bin/objformat`
17264 else
17265 case $host_os in
17266 freebsd[123]*) objformat=aout ;;
17267 *) objformat=elf ;;
17268 esac
17269 fi
17270 # Handle Gentoo/FreeBSD as it was Linux
17271 case $host_vendor in
17272 gentoo)
17273 version_type=linux ;;
17274 *)
17275 version_type=freebsd-$objformat ;;
17276 esac
17277
a.rottmann9bc8b932004-02-29 15:18:31 +000017278 case $version_type in
17279 freebsd-elf*)
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17281 need_version=no
17282 need_lib_prefix=no
17283 ;;
17284 freebsd-*)
17285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17286 need_version=yes
17287 ;;
vapier7f19c022007-02-17 14:46:31 +000017288 linux)
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 need_lib_prefix=no
17292 need_version=no
17293 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017294 esac
17295 shlibpath_var=LD_LIBRARY_PATH
17296 case $host_os in
17297 freebsd2*)
17298 shlibpath_overrides_runpath=yes
17299 ;;
vapier7f19c022007-02-17 14:46:31 +000017300 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017301 shlibpath_overrides_runpath=yes
17302 hardcode_into_libs=yes
17303 ;;
vapier7f19c022007-02-17 14:46:31 +000017304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000017306 shlibpath_overrides_runpath=no
17307 hardcode_into_libs=yes
17308 ;;
vapier7f19c022007-02-17 14:46:31 +000017309 freebsd*) # from 4.6 on
17310 shlibpath_overrides_runpath=yes
17311 hardcode_into_libs=yes
17312 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017313 esac
17314 ;;
17315
17316gnu*)
17317 version_type=linux
17318 need_lib_prefix=no
17319 need_version=no
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 hardcode_into_libs=yes
17324 ;;
17325
17326hpux9* | hpux10* | hpux11*)
17327 # Give a soname corresponding to the major version so that dld.sl refuses to
17328 # link against other versions.
17329 version_type=sunos
17330 need_lib_prefix=no
17331 need_version=no
vapier7f19c022007-02-17 14:46:31 +000017332 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000017333 ia64*)
vapier7f19c022007-02-17 14:46:31 +000017334 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000017335 hardcode_into_libs=yes
17336 dynamic_linker="$host_os dld.so"
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 if test "X$HPUX_IA64_MODE" = X32; then
17342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17343 else
17344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17345 fi
17346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17347 ;;
17348 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000017349 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017350 hardcode_into_libs=yes
17351 dynamic_linker="$host_os dld.sl"
17352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17358 ;;
17359 *)
vapier7f19c022007-02-17 14:46:31 +000017360 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017361 dynamic_linker="$host_os dld.sl"
17362 shlibpath_var=SHLIB_PATH
17363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17366 ;;
17367 esac
17368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17369 postinstall_cmds='chmod 555 $lib'
17370 ;;
17371
vapier7f19c022007-02-17 14:46:31 +000017372interix3*)
17373 version_type=linux
17374 need_lib_prefix=no
17375 need_version=no
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17381 hardcode_into_libs=yes
17382 ;;
17383
a.rottmann9bc8b932004-02-29 15:18:31 +000017384irix5* | irix6* | nonstopux*)
17385 case $host_os in
17386 nonstopux*) version_type=nonstopux ;;
17387 *)
17388 if test "$lt_cv_prog_gnu_ld" = yes; then
17389 version_type=linux
17390 else
17391 version_type=irix
17392 fi ;;
17393 esac
17394 need_lib_prefix=no
17395 need_version=no
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17398 case $host_os in
17399 irix5* | nonstopux*)
17400 libsuff= shlibsuff=
17401 ;;
17402 *)
17403 case $LD in # libtool.m4 will add one of these switches to LD
17404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17405 libsuff= shlibsuff= libmagic=32-bit;;
17406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17407 libsuff=32 shlibsuff=N32 libmagic=N32;;
17408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17410 *) libsuff= shlibsuff= libmagic=never-match;;
17411 esac
17412 ;;
17413 esac
17414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17415 shlibpath_overrides_runpath=no
17416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17418 hardcode_into_libs=yes
17419 ;;
17420
17421# No shared lib support for Linux oldld, aout, or coff.
17422linux*oldld* | linux*aout* | linux*coff*)
17423 dynamic_linker=no
17424 ;;
17425
17426# This must be Linux ELF.
17427linux*)
17428 version_type=linux
17429 need_lib_prefix=no
17430 need_version=no
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=no
17436 # This implies no fast_install, which is unacceptable.
17437 # Some rework will be needed to allow for fast_install
17438 # before this can be enabled.
17439 hardcode_into_libs=yes
17440
17441 # Append ld.so.conf contents to the search path
17442 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000017443 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' ' '`
17444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000017445 fi
17446
17447 # We used to test for /lib/ld.so.1 and disable shared libraries on
17448 # powerpc, because MkLinux only supported shared libraries with the
17449 # GNU dynamic linker. Since this was broken with cross compilers,
17450 # most powerpc-linux boxes support dynamic linking these days and
17451 # people can always --disable-shared, the test was removed, and we
17452 # assume the GNU/Linux dynamic linker is in use.
17453 dynamic_linker='GNU/Linux ld.so'
17454 ;;
17455
17456knetbsd*-gnu)
17457 version_type=linux
17458 need_lib_prefix=no
17459 need_version=no
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 dynamic_linker='GNU ld.so'
17466 ;;
17467
17468netbsd*)
17469 version_type=sunos
17470 need_lib_prefix=no
17471 need_version=no
17472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 dynamic_linker='NetBSD (a.out) ld.so'
17476 else
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 dynamic_linker='NetBSD ld.elf_so'
17480 fi
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 hardcode_into_libs=yes
17484 ;;
17485
17486newsos6)
17487 version_type=linux
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=yes
17491 ;;
17492
17493nto-qnx*)
17494 version_type=linux
17495 need_lib_prefix=no
17496 need_version=no
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 ;;
17502
17503openbsd*)
17504 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000017505 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000017506 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000017507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17508 case $host_os in
17509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17510 *) need_version=no ;;
17511 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000017512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17516 case $host_os in
17517 openbsd2.[89] | openbsd2.[89].*)
17518 shlibpath_overrides_runpath=no
17519 ;;
17520 *)
17521 shlibpath_overrides_runpath=yes
17522 ;;
17523 esac
17524 else
17525 shlibpath_overrides_runpath=yes
17526 fi
17527 ;;
17528
17529os2*)
17530 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000017531 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017532 need_lib_prefix=no
17533 library_names_spec='$libname${shared_ext} $libname.a'
17534 dynamic_linker='OS/2 ld.exe'
17535 shlibpath_var=LIBPATH
17536 ;;
17537
17538osf3* | osf4* | osf5*)
17539 version_type=osf
17540 need_lib_prefix=no
17541 need_version=no
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17547 ;;
17548
a.rottmann9bc8b932004-02-29 15:18:31 +000017549solaris*)
17550 version_type=linux
17551 need_lib_prefix=no
17552 need_version=no
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath=yes
17557 hardcode_into_libs=yes
17558 # ldd complains unless libraries are executable
17559 postinstall_cmds='chmod +x $lib'
17560 ;;
17561
17562sunos4*)
17563 version_type=sunos
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes
17568 if test "$with_gnu_ld" = yes; then
17569 need_lib_prefix=no
17570 fi
17571 need_version=yes
17572 ;;
17573
vapier7f19c022007-02-17 14:46:31 +000017574sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017575 version_type=linux
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 case $host_vendor in
17580 sni)
17581 shlibpath_overrides_runpath=no
17582 need_lib_prefix=no
17583 export_dynamic_flag_spec='${wl}-Blargedynsym'
17584 runpath_var=LD_RUN_PATH
17585 ;;
17586 siemens)
17587 need_lib_prefix=no
17588 ;;
17589 motorola)
17590 need_lib_prefix=no
17591 need_version=no
17592 shlibpath_overrides_runpath=no
17593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17594 ;;
17595 esac
17596 ;;
17597
17598sysv4*MP*)
17599 if test -d /usr/nec ;then
17600 version_type=linux
17601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17602 soname_spec='$libname${shared_ext}.$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17604 fi
17605 ;;
17606
vapier7f19c022007-02-17 14:46:31 +000017607sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17608 version_type=freebsd-elf
17609 need_lib_prefix=no
17610 need_version=no
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 hardcode_into_libs=yes
17615 if test "$with_gnu_ld" = yes; then
17616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17617 shlibpath_overrides_runpath=no
17618 else
17619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17620 shlibpath_overrides_runpath=yes
17621 case $host_os in
17622 sco3.2v5*)
17623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17624 ;;
17625 esac
17626 fi
17627 sys_lib_dlsearch_path_spec='/usr/lib'
17628 ;;
17629
a.rottmann9bc8b932004-02-29 15:18:31 +000017630uts4*)
17631 version_type=linux
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 ;;
17636
17637*)
17638 dynamic_linker=no
17639 ;;
17640esac
mlcreech94984912008-03-04 19:03:08 +000017641{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17642echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017643test "$dynamic_linker" = no && can_build_shared=no
17644
vapier7f19c022007-02-17 14:46:31 +000017645variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17646if test "$GCC" = yes; then
17647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17648fi
17649
mlcreech94984912008-03-04 19:03:08 +000017650{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17651echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017652hardcode_action_GCJ=
17653if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vapier7f19c022007-02-17 14:46:31 +000017654 test -n "$runpath_var_GCJ" || \
17655 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000017656
17657 # We can hardcode non-existant directories.
17658 if test "$hardcode_direct_GCJ" != no &&
17659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17660 # have to relink, otherwise we might link with an installed library
17661 # when we should be linking with a yet-to-be-installed one
17662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17663 test "$hardcode_minus_L_GCJ" != no; then
17664 # Linking always hardcodes the temporary library directory.
17665 hardcode_action_GCJ=relink
17666 else
17667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17668 hardcode_action_GCJ=immediate
17669 fi
17670else
17671 # We cannot hardcode anything, or else we can only hardcode existing
17672 # directories.
17673 hardcode_action_GCJ=unsupported
17674fi
mlcreech94984912008-03-04 19:03:08 +000017675{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17676echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017677
17678if test "$hardcode_action_GCJ" = relink; then
17679 # Fast installation is not supported
17680 enable_fast_install=no
17681elif test "$shlibpath_overrides_runpath" = yes ||
17682 test "$enable_shared" = no; then
17683 # Fast installation is not necessary
17684 enable_fast_install=needless
17685fi
17686
a.rottmann9bc8b932004-02-29 15:18:31 +000017687
17688# The else clause should only fire when bootstrapping the
17689# libtool distribution, otherwise you forgot to ship ltmain.sh
17690# with your package, and you will get complaints that there are
17691# no rules to generate ltmain.sh.
17692if test -f "$ltmain"; then
17693 # See if we are running on zsh, and set the options which allow our commands through
17694 # without removal of \ escapes.
17695 if test -n "${ZSH_VERSION+set}" ; then
17696 setopt NO_GLOB_SUBST
17697 fi
17698 # Now quote all the things that may contain metacharacters while being
17699 # careful not to overquote the AC_SUBSTed values. We take copies of the
17700 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017701 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 +000017702 SED SHELL STRIP \
17703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705 deplibs_check_method reload_flag reload_cmds need_locks \
17706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707 lt_cv_sys_global_symbol_to_c_name_address \
17708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709 old_postinstall_cmds old_postuninstall_cmds \
17710 compiler_GCJ \
17711 CC_GCJ \
17712 LD_GCJ \
17713 lt_prog_compiler_wl_GCJ \
17714 lt_prog_compiler_pic_GCJ \
17715 lt_prog_compiler_static_GCJ \
17716 lt_prog_compiler_no_builtin_flag_GCJ \
17717 export_dynamic_flag_spec_GCJ \
17718 thread_safe_flag_spec_GCJ \
17719 whole_archive_flag_spec_GCJ \
17720 enable_shared_with_static_runtimes_GCJ \
17721 old_archive_cmds_GCJ \
17722 old_archive_from_new_cmds_GCJ \
17723 predep_objects_GCJ \
17724 postdep_objects_GCJ \
17725 predeps_GCJ \
17726 postdeps_GCJ \
17727 compiler_lib_search_path_GCJ \
17728 archive_cmds_GCJ \
17729 archive_expsym_cmds_GCJ \
17730 postinstall_cmds_GCJ \
17731 postuninstall_cmds_GCJ \
17732 old_archive_from_expsyms_cmds_GCJ \
17733 allow_undefined_flag_GCJ \
17734 no_undefined_flag_GCJ \
17735 export_symbols_cmds_GCJ \
17736 hardcode_libdir_flag_spec_GCJ \
17737 hardcode_libdir_flag_spec_ld_GCJ \
17738 hardcode_libdir_separator_GCJ \
17739 hardcode_automatic_GCJ \
17740 module_cmds_GCJ \
17741 module_expsym_cmds_GCJ \
17742 lt_cv_prog_compiler_c_o_GCJ \
17743 exclude_expsyms_GCJ \
17744 include_expsyms_GCJ; do
17745
17746 case $var in
17747 old_archive_cmds_GCJ | \
17748 old_archive_from_new_cmds_GCJ | \
17749 archive_cmds_GCJ | \
17750 archive_expsym_cmds_GCJ | \
17751 module_cmds_GCJ | \
17752 module_expsym_cmds_GCJ | \
17753 old_archive_from_expsyms_cmds_GCJ | \
17754 export_symbols_cmds_GCJ | \
17755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756 postinstall_cmds | postuninstall_cmds | \
17757 old_postinstall_cmds | old_postuninstall_cmds | \
17758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759 # Double-quote double-evaled strings.
17760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17761 ;;
17762 *)
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17764 ;;
17765 esac
17766 done
17767
17768 case $lt_echo in
17769 *'\$0 --fallback-echo"')
17770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17771 ;;
17772 esac
17773
17774cfgfile="$ofile"
17775
17776 cat <<__EOF__ >> "$cfgfile"
17777# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17778
17779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17780
17781# Shell to use when invoking shell scripts.
17782SHELL=$lt_SHELL
17783
17784# Whether or not to build shared libraries.
17785build_libtool_libs=$enable_shared
17786
17787# Whether or not to build static libraries.
17788build_old_libs=$enable_static
17789
17790# Whether or not to add -lc for building shared libraries.
17791build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17792
17793# Whether or not to disallow shared libs when runtime libs are static
17794allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17795
17796# Whether or not to optimize for fast installation.
17797fast_install=$enable_fast_install
17798
17799# The host system.
17800host_alias=$host_alias
17801host=$host
vapier7f19c022007-02-17 14:46:31 +000017802host_os=$host_os
17803
17804# The build system.
17805build_alias=$build_alias
17806build=$build
17807build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017808
17809# An echo program that does not interpret backslashes.
17810echo=$lt_echo
17811
17812# The archiver.
17813AR=$lt_AR
17814AR_FLAGS=$lt_AR_FLAGS
17815
17816# A C compiler.
17817LTCC=$lt_LTCC
17818
vapier7f19c022007-02-17 14:46:31 +000017819# LTCC compiler flags.
17820LTCFLAGS=$lt_LTCFLAGS
17821
a.rottmann9bc8b932004-02-29 15:18:31 +000017822# A language-specific compiler.
17823CC=$lt_compiler_GCJ
17824
17825# Is the compiler the GNU C compiler?
17826with_gcc=$GCC_GCJ
17827
17828# An ERE matcher.
17829EGREP=$lt_EGREP
17830
17831# The linker used to build libraries.
17832LD=$lt_LD_GCJ
17833
17834# Whether we need hard or soft links.
17835LN_S=$lt_LN_S
17836
17837# A BSD-compatible nm program.
17838NM=$lt_NM
17839
17840# A symbol stripping program
17841STRIP=$lt_STRIP
17842
17843# Used to examine libraries when file_magic_cmd begins "file"
17844MAGIC_CMD=$MAGIC_CMD
17845
17846# Used on cygwin: DLL creation program.
17847DLLTOOL="$DLLTOOL"
17848
17849# Used on cygwin: object dumper.
17850OBJDUMP="$OBJDUMP"
17851
17852# Used on cygwin: assembler.
17853AS="$AS"
17854
17855# The name of the directory that contains temporary libtool files.
17856objdir=$objdir
17857
17858# How to create reloadable object files.
17859reload_flag=$lt_reload_flag
17860reload_cmds=$lt_reload_cmds
17861
17862# How to pass a linker flag through the compiler.
17863wl=$lt_lt_prog_compiler_wl_GCJ
17864
17865# Object file suffix (normally "o").
17866objext="$ac_objext"
17867
17868# Old archive suffix (normally "a").
17869libext="$libext"
17870
17871# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017872shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017873
17874# Executable file suffix (normally "").
17875exeext="$exeext"
17876
17877# Additional compiler flags for building library objects.
17878pic_flag=$lt_lt_prog_compiler_pic_GCJ
17879pic_mode=$pic_mode
17880
17881# What is the maximum length of a command?
17882max_cmd_len=$lt_cv_sys_max_cmd_len
17883
17884# Does compiler simultaneously support -c and -o options?
17885compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17886
vapier7f19c022007-02-17 14:46:31 +000017887# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017888need_locks=$lt_need_locks
17889
17890# Do we need the lib prefix for modules?
17891need_lib_prefix=$need_lib_prefix
17892
17893# Do we need a version for libraries?
17894need_version=$need_version
17895
17896# Whether dlopen is supported.
17897dlopen_support=$enable_dlopen
17898
17899# Whether dlopen of programs is supported.
17900dlopen_self=$enable_dlopen_self
17901
17902# Whether dlopen of statically linked programs is supported.
17903dlopen_self_static=$enable_dlopen_self_static
17904
17905# Compiler flag to prevent dynamic linking.
17906link_static_flag=$lt_lt_prog_compiler_static_GCJ
17907
17908# Compiler flag to turn off builtin functions.
17909no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17910
17911# Compiler flag to allow reflexive dlopens.
17912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17913
17914# Compiler flag to generate shared objects directly from archives.
17915whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17916
17917# Compiler flag to generate thread-safe objects.
17918thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17919
17920# Library versioning type.
17921version_type=$version_type
17922
17923# Format of library name prefix.
17924libname_spec=$lt_libname_spec
17925
17926# List of archive names. First name is the real one, the rest are links.
17927# The last name is the one that the linker finds with -lNAME.
17928library_names_spec=$lt_library_names_spec
17929
17930# The coded name of the library, if different from the real name.
17931soname_spec=$lt_soname_spec
17932
17933# Commands used to build and install an old-style archive.
17934RANLIB=$lt_RANLIB
17935old_archive_cmds=$lt_old_archive_cmds_GCJ
17936old_postinstall_cmds=$lt_old_postinstall_cmds
17937old_postuninstall_cmds=$lt_old_postuninstall_cmds
17938
17939# Create an old-style archive from a shared archive.
17940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17941
17942# Create a temporary old-style archive to link instead of a shared archive.
17943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17944
17945# Commands used to build and install a shared archive.
17946archive_cmds=$lt_archive_cmds_GCJ
17947archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17948postinstall_cmds=$lt_postinstall_cmds
17949postuninstall_cmds=$lt_postuninstall_cmds
17950
17951# Commands used to build a loadable module (assumed same as above if empty)
17952module_cmds=$lt_module_cmds_GCJ
17953module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17954
17955# Commands to strip libraries.
17956old_striplib=$lt_old_striplib
17957striplib=$lt_striplib
17958
17959# Dependencies to place before the objects being linked to create a
17960# shared library.
17961predep_objects=$lt_predep_objects_GCJ
17962
17963# Dependencies to place after the objects being linked to create a
17964# shared library.
17965postdep_objects=$lt_postdep_objects_GCJ
17966
17967# Dependencies to place before the objects being linked to create a
17968# shared library.
17969predeps=$lt_predeps_GCJ
17970
17971# Dependencies to place after the objects being linked to create a
17972# shared library.
17973postdeps=$lt_postdeps_GCJ
17974
17975# The library search path used internally by the compiler when linking
17976# a shared library.
17977compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17978
17979# Method to check whether dependent libraries are shared objects.
17980deplibs_check_method=$lt_deplibs_check_method
17981
17982# Command to use when deplibs_check_method == file_magic.
17983file_magic_cmd=$lt_file_magic_cmd
17984
17985# Flag that allows shared libraries with undefined symbols to be built.
17986allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17987
17988# Flag that forces no undefined symbols.
17989no_undefined_flag=$lt_no_undefined_flag_GCJ
17990
17991# Commands used to finish a libtool library installation in a directory.
17992finish_cmds=$lt_finish_cmds
17993
17994# Same as above, but a single script fragment to be evaled but not shown.
17995finish_eval=$lt_finish_eval
17996
17997# Take the output of nm and produce a listing of raw symbols and C names.
17998global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17999
18000# Transform the output of nm in a proper C declaration
18001global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18002
18003# Transform the output of nm in a C name address pair
18004global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18005
18006# This is the shared library runtime path variable.
18007runpath_var=$runpath_var
18008
18009# This is the shared library path variable.
18010shlibpath_var=$shlibpath_var
18011
18012# Is shlibpath searched before the hard-coded library search path?
18013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18014
18015# How to hardcode a shared library path into an executable.
18016hardcode_action=$hardcode_action_GCJ
18017
18018# Whether we should hardcode library paths into libraries.
18019hardcode_into_libs=$hardcode_into_libs
18020
18021# Flag to hardcode \$libdir into a binary during linking.
18022# This must work even if \$libdir does not exist.
18023hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18024
18025# If ld is used when linking, flag to hardcode \$libdir into
18026# a binary during linking. This must work even if \$libdir does
18027# not exist.
18028hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18029
18030# Whether we need a single -rpath flag with a separated argument.
18031hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18032
18033# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18034# resulting binary.
18035hardcode_direct=$hardcode_direct_GCJ
18036
18037# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18038# resulting binary.
18039hardcode_minus_L=$hardcode_minus_L_GCJ
18040
18041# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18042# the resulting binary.
18043hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18044
18045# Set to yes if building a shared library automatically hardcodes DIR into the library
18046# and all subsequent libraries and executables linked against it.
18047hardcode_automatic=$hardcode_automatic_GCJ
18048
18049# Variables whose values should be saved in libtool wrapper scripts and
18050# restored at relink time.
18051variables_saved_for_relink="$variables_saved_for_relink"
18052
18053# Whether libtool must link a program against all its dependency libraries.
18054link_all_deplibs=$link_all_deplibs_GCJ
18055
18056# Compile-time system search path for libraries
18057sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18058
18059# Run-time system search path for libraries
18060sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18061
18062# Fix the shell variable \$srcfile for the compiler.
18063fix_srcfile_path="$fix_srcfile_path_GCJ"
18064
18065# Set to yes if exported symbols are required.
18066always_export_symbols=$always_export_symbols_GCJ
18067
18068# The commands to list exported symbols.
18069export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18070
18071# The commands to extract the exported symbol list from a shared archive.
18072extract_expsyms_cmds=$lt_extract_expsyms_cmds
18073
18074# Symbols that should not be listed in the preloaded symbols.
18075exclude_expsyms=$lt_exclude_expsyms_GCJ
18076
18077# Symbols that must always be exported.
18078include_expsyms=$lt_include_expsyms_GCJ
18079
18080# ### END LIBTOOL TAG CONFIG: $tagname
18081
18082__EOF__
18083
18084
18085else
18086 # If there is no Makefile yet, we rely on a make rule to execute
18087 # `config.status --recheck' to rerun these tests and create the
18088 # libtool script then.
18089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18090 if test -f "$ltmain_in"; then
18091 test -f Makefile && make "$ltmain"
18092 fi
18093fi
18094
18095
18096ac_ext=c
18097ac_cpp='$CPP $CPPFLAGS'
18098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18100ac_compiler_gnu=$ac_cv_c_compiler_gnu
18101
18102CC="$lt_save_CC"
18103
18104 else
18105 tagname=""
18106 fi
18107 ;;
18108
18109 RC)
18110
18111
a.rottmann9bc8b932004-02-29 15:18:31 +000018112# Source file extension for RC test sources.
18113ac_ext=rc
18114
18115# Object file extension for compiled RC test sources.
18116objext=o
18117objext_RC=$objext
18118
18119# Code to be used in simple compile tests
18120lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18121
18122# Code to be used in simple link tests
18123lt_simple_link_test_code="$lt_simple_compile_test_code"
18124
18125# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18126
18127# If no C compiler was specified, use CC.
18128LTCC=${LTCC-"$CC"}
18129
vapier7f19c022007-02-17 14:46:31 +000018130# If no C compiler flags were specified, use CFLAGS.
18131LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18132
a.rottmann9bc8b932004-02-29 15:18:31 +000018133# Allow CC to be a program name with arguments.
18134compiler=$CC
18135
18136
vapier7f19c022007-02-17 14:46:31 +000018137# save warnings/boilerplate of simple test code
18138ac_outfile=conftest.$ac_objext
18139printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18141_lt_compiler_boilerplate=`cat conftest.err`
18142$rm conftest*
18143
18144ac_outfile=conftest.$ac_objext
18145printf "$lt_simple_link_test_code" >conftest.$ac_ext
18146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18147_lt_linker_boilerplate=`cat conftest.err`
18148$rm conftest*
18149
18150
a.rottmann9bc8b932004-02-29 15:18:31 +000018151# Allow CC to be a program name with arguments.
18152lt_save_CC="$CC"
18153CC=${RC-"windres"}
18154compiler=$CC
18155compiler_RC=$CC
vapier7f19c022007-02-17 14:46:31 +000018156for cc_temp in $compiler""; do
18157 case $cc_temp in
18158 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18159 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18160 \-*) ;;
18161 *) break;;
18162 esac
18163done
18164cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18165
a.rottmann9bc8b932004-02-29 15:18:31 +000018166lt_cv_prog_compiler_c_o_RC=yes
18167
18168# The else clause should only fire when bootstrapping the
18169# libtool distribution, otherwise you forgot to ship ltmain.sh
18170# with your package, and you will get complaints that there are
18171# no rules to generate ltmain.sh.
18172if test -f "$ltmain"; then
18173 # See if we are running on zsh, and set the options which allow our commands through
18174 # without removal of \ escapes.
18175 if test -n "${ZSH_VERSION+set}" ; then
18176 setopt NO_GLOB_SUBST
18177 fi
18178 # Now quote all the things that may contain metacharacters while being
18179 # careful not to overquote the AC_SUBSTed values. We take copies of the
18180 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000018181 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 +000018182 SED SHELL STRIP \
18183 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18184 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18185 deplibs_check_method reload_flag reload_cmds need_locks \
18186 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18187 lt_cv_sys_global_symbol_to_c_name_address \
18188 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18189 old_postinstall_cmds old_postuninstall_cmds \
18190 compiler_RC \
18191 CC_RC \
18192 LD_RC \
18193 lt_prog_compiler_wl_RC \
18194 lt_prog_compiler_pic_RC \
18195 lt_prog_compiler_static_RC \
18196 lt_prog_compiler_no_builtin_flag_RC \
18197 export_dynamic_flag_spec_RC \
18198 thread_safe_flag_spec_RC \
18199 whole_archive_flag_spec_RC \
18200 enable_shared_with_static_runtimes_RC \
18201 old_archive_cmds_RC \
18202 old_archive_from_new_cmds_RC \
18203 predep_objects_RC \
18204 postdep_objects_RC \
18205 predeps_RC \
18206 postdeps_RC \
18207 compiler_lib_search_path_RC \
18208 archive_cmds_RC \
18209 archive_expsym_cmds_RC \
18210 postinstall_cmds_RC \
18211 postuninstall_cmds_RC \
18212 old_archive_from_expsyms_cmds_RC \
18213 allow_undefined_flag_RC \
18214 no_undefined_flag_RC \
18215 export_symbols_cmds_RC \
18216 hardcode_libdir_flag_spec_RC \
18217 hardcode_libdir_flag_spec_ld_RC \
18218 hardcode_libdir_separator_RC \
18219 hardcode_automatic_RC \
18220 module_cmds_RC \
18221 module_expsym_cmds_RC \
18222 lt_cv_prog_compiler_c_o_RC \
18223 exclude_expsyms_RC \
18224 include_expsyms_RC; do
18225
18226 case $var in
18227 old_archive_cmds_RC | \
18228 old_archive_from_new_cmds_RC | \
18229 archive_cmds_RC | \
18230 archive_expsym_cmds_RC | \
18231 module_cmds_RC | \
18232 module_expsym_cmds_RC | \
18233 old_archive_from_expsyms_cmds_RC | \
18234 export_symbols_cmds_RC | \
18235 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18236 postinstall_cmds | postuninstall_cmds | \
18237 old_postinstall_cmds | old_postuninstall_cmds | \
18238 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18239 # Double-quote double-evaled strings.
18240 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18241 ;;
18242 *)
18243 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18244 ;;
18245 esac
18246 done
18247
18248 case $lt_echo in
18249 *'\$0 --fallback-echo"')
18250 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18251 ;;
18252 esac
18253
18254cfgfile="$ofile"
18255
18256 cat <<__EOF__ >> "$cfgfile"
18257# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18258
18259# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18260
18261# Shell to use when invoking shell scripts.
18262SHELL=$lt_SHELL
18263
18264# Whether or not to build shared libraries.
18265build_libtool_libs=$enable_shared
18266
18267# Whether or not to build static libraries.
18268build_old_libs=$enable_static
18269
18270# Whether or not to add -lc for building shared libraries.
18271build_libtool_need_lc=$archive_cmds_need_lc_RC
18272
18273# Whether or not to disallow shared libs when runtime libs are static
18274allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18275
18276# Whether or not to optimize for fast installation.
18277fast_install=$enable_fast_install
18278
18279# The host system.
18280host_alias=$host_alias
18281host=$host
vapier7f19c022007-02-17 14:46:31 +000018282host_os=$host_os
18283
18284# The build system.
18285build_alias=$build_alias
18286build=$build
18287build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000018288
18289# An echo program that does not interpret backslashes.
18290echo=$lt_echo
18291
18292# The archiver.
18293AR=$lt_AR
18294AR_FLAGS=$lt_AR_FLAGS
18295
18296# A C compiler.
18297LTCC=$lt_LTCC
18298
vapier7f19c022007-02-17 14:46:31 +000018299# LTCC compiler flags.
18300LTCFLAGS=$lt_LTCFLAGS
18301
a.rottmann9bc8b932004-02-29 15:18:31 +000018302# A language-specific compiler.
18303CC=$lt_compiler_RC
18304
18305# Is the compiler the GNU C compiler?
18306with_gcc=$GCC_RC
18307
18308# An ERE matcher.
18309EGREP=$lt_EGREP
18310
18311# The linker used to build libraries.
18312LD=$lt_LD_RC
18313
18314# Whether we need hard or soft links.
18315LN_S=$lt_LN_S
18316
18317# A BSD-compatible nm program.
18318NM=$lt_NM
18319
18320# A symbol stripping program
18321STRIP=$lt_STRIP
18322
18323# Used to examine libraries when file_magic_cmd begins "file"
18324MAGIC_CMD=$MAGIC_CMD
18325
18326# Used on cygwin: DLL creation program.
18327DLLTOOL="$DLLTOOL"
18328
18329# Used on cygwin: object dumper.
18330OBJDUMP="$OBJDUMP"
18331
18332# Used on cygwin: assembler.
18333AS="$AS"
18334
18335# The name of the directory that contains temporary libtool files.
18336objdir=$objdir
18337
18338# How to create reloadable object files.
18339reload_flag=$lt_reload_flag
18340reload_cmds=$lt_reload_cmds
18341
18342# How to pass a linker flag through the compiler.
18343wl=$lt_lt_prog_compiler_wl_RC
18344
18345# Object file suffix (normally "o").
18346objext="$ac_objext"
18347
18348# Old archive suffix (normally "a").
18349libext="$libext"
18350
18351# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000018352shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000018353
18354# Executable file suffix (normally "").
18355exeext="$exeext"
18356
18357# Additional compiler flags for building library objects.
18358pic_flag=$lt_lt_prog_compiler_pic_RC
18359pic_mode=$pic_mode
18360
18361# What is the maximum length of a command?
18362max_cmd_len=$lt_cv_sys_max_cmd_len
18363
18364# Does compiler simultaneously support -c and -o options?
18365compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18366
vapier7f19c022007-02-17 14:46:31 +000018367# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000018368need_locks=$lt_need_locks
18369
18370# Do we need the lib prefix for modules?
18371need_lib_prefix=$need_lib_prefix
18372
18373# Do we need a version for libraries?
18374need_version=$need_version
18375
18376# Whether dlopen is supported.
18377dlopen_support=$enable_dlopen
18378
18379# Whether dlopen of programs is supported.
18380dlopen_self=$enable_dlopen_self
18381
18382# Whether dlopen of statically linked programs is supported.
18383dlopen_self_static=$enable_dlopen_self_static
18384
18385# Compiler flag to prevent dynamic linking.
18386link_static_flag=$lt_lt_prog_compiler_static_RC
18387
18388# Compiler flag to turn off builtin functions.
18389no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18390
18391# Compiler flag to allow reflexive dlopens.
18392export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18393
18394# Compiler flag to generate shared objects directly from archives.
18395whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18396
18397# Compiler flag to generate thread-safe objects.
18398thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18399
18400# Library versioning type.
18401version_type=$version_type
18402
18403# Format of library name prefix.
18404libname_spec=$lt_libname_spec
18405
18406# List of archive names. First name is the real one, the rest are links.
18407# The last name is the one that the linker finds with -lNAME.
18408library_names_spec=$lt_library_names_spec
18409
18410# The coded name of the library, if different from the real name.
18411soname_spec=$lt_soname_spec
18412
18413# Commands used to build and install an old-style archive.
18414RANLIB=$lt_RANLIB
18415old_archive_cmds=$lt_old_archive_cmds_RC
18416old_postinstall_cmds=$lt_old_postinstall_cmds
18417old_postuninstall_cmds=$lt_old_postuninstall_cmds
18418
18419# Create an old-style archive from a shared archive.
18420old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18421
18422# Create a temporary old-style archive to link instead of a shared archive.
18423old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18424
18425# Commands used to build and install a shared archive.
18426archive_cmds=$lt_archive_cmds_RC
18427archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18428postinstall_cmds=$lt_postinstall_cmds
18429postuninstall_cmds=$lt_postuninstall_cmds
18430
18431# Commands used to build a loadable module (assumed same as above if empty)
18432module_cmds=$lt_module_cmds_RC
18433module_expsym_cmds=$lt_module_expsym_cmds_RC
18434
18435# Commands to strip libraries.
18436old_striplib=$lt_old_striplib
18437striplib=$lt_striplib
18438
18439# Dependencies to place before the objects being linked to create a
18440# shared library.
18441predep_objects=$lt_predep_objects_RC
18442
18443# Dependencies to place after the objects being linked to create a
18444# shared library.
18445postdep_objects=$lt_postdep_objects_RC
18446
18447# Dependencies to place before the objects being linked to create a
18448# shared library.
18449predeps=$lt_predeps_RC
18450
18451# Dependencies to place after the objects being linked to create a
18452# shared library.
18453postdeps=$lt_postdeps_RC
18454
18455# The library search path used internally by the compiler when linking
18456# a shared library.
18457compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18458
18459# Method to check whether dependent libraries are shared objects.
18460deplibs_check_method=$lt_deplibs_check_method
18461
18462# Command to use when deplibs_check_method == file_magic.
18463file_magic_cmd=$lt_file_magic_cmd
18464
18465# Flag that allows shared libraries with undefined symbols to be built.
18466allow_undefined_flag=$lt_allow_undefined_flag_RC
18467
18468# Flag that forces no undefined symbols.
18469no_undefined_flag=$lt_no_undefined_flag_RC
18470
18471# Commands used to finish a libtool library installation in a directory.
18472finish_cmds=$lt_finish_cmds
18473
18474# Same as above, but a single script fragment to be evaled but not shown.
18475finish_eval=$lt_finish_eval
18476
18477# Take the output of nm and produce a listing of raw symbols and C names.
18478global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18479
18480# Transform the output of nm in a proper C declaration
18481global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18482
18483# Transform the output of nm in a C name address pair
18484global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18485
18486# This is the shared library runtime path variable.
18487runpath_var=$runpath_var
18488
18489# This is the shared library path variable.
18490shlibpath_var=$shlibpath_var
18491
18492# Is shlibpath searched before the hard-coded library search path?
18493shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18494
18495# How to hardcode a shared library path into an executable.
18496hardcode_action=$hardcode_action_RC
18497
18498# Whether we should hardcode library paths into libraries.
18499hardcode_into_libs=$hardcode_into_libs
18500
18501# Flag to hardcode \$libdir into a binary during linking.
18502# This must work even if \$libdir does not exist.
18503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18504
18505# If ld is used when linking, flag to hardcode \$libdir into
18506# a binary during linking. This must work even if \$libdir does
18507# not exist.
18508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18509
18510# Whether we need a single -rpath flag with a separated argument.
18511hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18512
18513# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18514# resulting binary.
18515hardcode_direct=$hardcode_direct_RC
18516
18517# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18518# resulting binary.
18519hardcode_minus_L=$hardcode_minus_L_RC
18520
18521# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18522# the resulting binary.
18523hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18524
18525# Set to yes if building a shared library automatically hardcodes DIR into the library
18526# and all subsequent libraries and executables linked against it.
18527hardcode_automatic=$hardcode_automatic_RC
18528
18529# Variables whose values should be saved in libtool wrapper scripts and
18530# restored at relink time.
18531variables_saved_for_relink="$variables_saved_for_relink"
18532
18533# Whether libtool must link a program against all its dependency libraries.
18534link_all_deplibs=$link_all_deplibs_RC
18535
18536# Compile-time system search path for libraries
18537sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18538
18539# Run-time system search path for libraries
18540sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18541
18542# Fix the shell variable \$srcfile for the compiler.
18543fix_srcfile_path="$fix_srcfile_path_RC"
18544
18545# Set to yes if exported symbols are required.
18546always_export_symbols=$always_export_symbols_RC
18547
18548# The commands to list exported symbols.
18549export_symbols_cmds=$lt_export_symbols_cmds_RC
18550
18551# The commands to extract the exported symbol list from a shared archive.
18552extract_expsyms_cmds=$lt_extract_expsyms_cmds
18553
18554# Symbols that should not be listed in the preloaded symbols.
18555exclude_expsyms=$lt_exclude_expsyms_RC
18556
18557# Symbols that must always be exported.
18558include_expsyms=$lt_include_expsyms_RC
18559
18560# ### END LIBTOOL TAG CONFIG: $tagname
18561
18562__EOF__
18563
18564
18565else
18566 # If there is no Makefile yet, we rely on a make rule to execute
18567 # `config.status --recheck' to rerun these tests and create the
18568 # libtool script then.
18569 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18570 if test -f "$ltmain_in"; then
18571 test -f Makefile && make "$ltmain"
18572 fi
18573fi
18574
18575
18576ac_ext=c
18577ac_cpp='$CPP $CPPFLAGS'
18578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580ac_compiler_gnu=$ac_cv_c_compiler_gnu
18581
18582CC="$lt_save_CC"
18583
18584 ;;
18585
18586 *)
18587 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18588echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18589 { (exit 1); exit 1; }; }
18590 ;;
18591 esac
18592
18593 # Append the new tag name to the list of available tags.
18594 if test -n "$tagname" ; then
18595 available_tags="$available_tags $tagname"
18596 fi
18597 fi
18598 done
18599 IFS="$lt_save_ifs"
18600
18601 # Now substitute the updated list of available tags.
18602 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18603 mv "${ofile}T" "$ofile"
18604 chmod +x "$ofile"
18605 else
18606 rm -f "${ofile}T"
18607 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18608echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18609 { (exit 1); exit 1; }; }
18610 fi
18611fi
drh71eb93e2001-09-28 01:34:43 +000018612
drh71eb93e2001-09-28 01:34:43 +000018613
drh71eb93e2001-09-28 01:34:43 +000018614
18615# This can be used to rebuild libtool when needed
18616LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18617
18618# Always use our own libtool.
18619LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18620
18621# Prevent multiple expansion
18622
a.rottmann84e63352003-03-24 09:42:16 +000018623
a.rottmann9bc8b932004-02-29 15:18:31 +000018624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
drh71eb93e2001-09-28 01:34:43 +000018642# Find a good install program. We prefer a C program (faster),
18643# so one script is as good as another. But avoid the broken or
18644# incompatible versions:
18645# SysV /etc/install, /usr/sbin/install
18646# SunOS /usr/etc/install
18647# IRIX /sbin/install
18648# AIX /bin/install
18649# AmigaOS /C/install, which installs bootblocks on floppy discs
18650# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18651# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18652# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018653# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018654# ./install, which can be erroneously created by make from ./install.sh.
mlcreech94984912008-03-04 19:03:08 +000018655{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18656echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018657if test -z "$INSTALL"; then
18658if test "${ac_cv_path_install+set}" = set; then
18659 echo $ECHO_N "(cached) $ECHO_C" >&6
18660else
a.rottmann84e63352003-03-24 09:42:16 +000018661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662for as_dir in $PATH
18663do
18664 IFS=$as_save_IFS
18665 test -z "$as_dir" && as_dir=.
18666 # Account for people who put trailing slashes in PATH elements.
18667case $as_dir/ in
18668 ./ | .// | /cC/* | \
18669 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018670 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018671 /usr/ucb/* ) ;;
18672 *)
18673 # OSF1 and SCO ODT 3.0 have their own names for install.
18674 # Don't use installbsd from OSF since it installs stuff as root
18675 # by default.
18676 for ac_prog in ginstall scoinst install; do
18677 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018678 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 +000018679 if test $ac_prog = install &&
18680 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18681 # AIX install. It has an incompatible calling convention.
18682 :
18683 elif test $ac_prog = install &&
18684 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18685 # program-specific install script used by HP pwplus--don't use.
18686 :
18687 else
18688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18689 break 3
18690 fi
18691 fi
drh71eb93e2001-09-28 01:34:43 +000018692 done
a.rottmann84e63352003-03-24 09:42:16 +000018693 done
18694 ;;
18695esac
18696done
mlcreech94984912008-03-04 19:03:08 +000018697IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000018698
drh71eb93e2001-09-28 01:34:43 +000018699
18700fi
18701 if test "${ac_cv_path_install+set}" = set; then
18702 INSTALL=$ac_cv_path_install
18703 else
mlcreech94984912008-03-04 19:03:08 +000018704 # As a last resort, use the slow shell script. Don't cache a
18705 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000018706 # break other packages using the cache if that directory is
mlcreech94984912008-03-04 19:03:08 +000018707 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000018708 INSTALL=$ac_install_sh
18709 fi
18710fi
mlcreech94984912008-03-04 19:03:08 +000018711{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18712echo "${ECHO_T}$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018713
18714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18715# It thinks the first close brace ends the variable substitution.
18716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18717
18718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18719
18720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18721
drhf1878b42006-01-23 18:06:52 +000018722for ac_prog in gawk mawk nawk awk
18723do
18724 # Extract the first word of "$ac_prog", so it can be a program name with args.
18725set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drhf1878b42006-01-23 18:06:52 +000018728if test "${ac_cv_prog_AWK+set}" = set; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18730else
18731 if test -n "$AWK"; then
18732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18733else
18734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18735for as_dir in $PATH
18736do
18737 IFS=$as_save_IFS
18738 test -z "$as_dir" && as_dir=.
18739 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018740 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 +000018741 ac_cv_prog_AWK="$ac_prog"
18742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18743 break 2
18744 fi
18745done
18746done
mlcreech94984912008-03-04 19:03:08 +000018747IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000018748
18749fi
18750fi
18751AWK=$ac_cv_prog_AWK
18752if test -n "$AWK"; then
mlcreech94984912008-03-04 19:03:08 +000018753 { echo "$as_me:$LINENO: result: $AWK" >&5
18754echo "${ECHO_T}$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000018755else
mlcreech94984912008-03-04 19:03:08 +000018756 { echo "$as_me:$LINENO: result: no" >&5
18757echo "${ECHO_T}no" >&6; }
drhf1878b42006-01-23 18:06:52 +000018758fi
18759
mlcreech94984912008-03-04 19:03:08 +000018760
drhf1878b42006-01-23 18:06:52 +000018761 test -n "$AWK" && break
18762done
18763
a.rottmann84e63352003-03-24 09:42:16 +000018764
drh75897232000-05-29 14:26:00 +000018765#########
18766# Set up an appropriate program prefix
18767#
18768if test "$program_prefix" = "NONE"; then
18769 program_prefix=""
18770fi
18771
a.rottmann84e63352003-03-24 09:42:16 +000018772
drh4b2266a2004-11-27 15:52:16 +000018773VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
18774echo "Version set to $VERSION"
18775
18776RELEASE=`cat $srcdir/VERSION`
18777echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000018778
danielk197799ba19e2005-02-05 07:33:34 +000018779VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000018780 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000018781 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000018782echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000018783
drh26d0e2a2005-07-06 13:51:27 +000018784
drh75897232000-05-29 14:26:00 +000018785#########
18786# Check to see if the --with-hints=FILE option is used. If there is none,
18787# then check for a files named "$host.hints" and ../$hosts.hints where
18788# $host is the hostname of the build system. If still no hints are
18789# found, try looking in $system.hints and ../$system.hints where
18790# $system is the result of uname -s.
18791#
drh71eb93e2001-09-28 01:34:43 +000018792
mlcreech94984912008-03-04 19:03:08 +000018793# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000018794if test "${with_hints+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018795 withval=$with_hints; hints=$withval
18796fi
18797
drh75897232000-05-29 14:26:00 +000018798if test "$hints" = ""; then
18799 host=`hostname | sed 's/\..*//'`
18800 if test -r $host.hints; then
18801 hints=$host.hints
18802 else
18803 if test -r ../$host.hints; then
18804 hints=../$host.hints
18805 fi
18806 fi
18807fi
18808if test "$hints" = ""; then
18809 sys=`uname -s`
18810 if test -r $sys.hints; then
18811 hints=$sys.hints
18812 else
18813 if test -r ../$sys.hints; then
18814 hints=../$sys.hints
18815 fi
18816 fi
18817fi
18818if test "$hints" != ""; then
mlcreech94984912008-03-04 19:03:08 +000018819 { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
18820echo "${ECHO_T}reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000018821 . $hints
18822fi
18823
18824#########
18825# Locate a compiler for the build machine. This compiler should
18826# generate command-line programs that run on the build machine.
18827#
vapier7f19c022007-02-17 14:46:31 +000018828if test x"$cross_compiling" = xno; then
18829 BUILD_CC=$CC
18830 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000018831else
vapier7f19c022007-02-17 14:46:31 +000018832 if test "${BUILD_CC+set}" != set; then
18833 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000018834do
18835 # Extract the first word of "$ac_prog", so it can be a program name with args.
18836set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000018839if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000018840 echo $ECHO_N "(cached) $ECHO_C" >&6
18841else
vapier7f19c022007-02-17 14:46:31 +000018842 if test -n "$BUILD_CC"; then
18843 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000018844else
a.rottmann84e63352003-03-24 09:42:16 +000018845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18846for as_dir in $PATH
18847do
18848 IFS=$as_save_IFS
18849 test -z "$as_dir" && as_dir=.
18850 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018851 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 +000018852 ac_cv_prog_BUILD_CC="$ac_prog"
a.rottmann84e63352003-03-24 09:42:16 +000018853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18854 break 2
18855 fi
18856done
drh71eb93e2001-09-28 01:34:43 +000018857done
mlcreech94984912008-03-04 19:03:08 +000018858IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000018859
drh71eb93e2001-09-28 01:34:43 +000018860fi
18861fi
vapier7f19c022007-02-17 14:46:31 +000018862BUILD_CC=$ac_cv_prog_BUILD_CC
18863if test -n "$BUILD_CC"; then
mlcreech94984912008-03-04 19:03:08 +000018864 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
18865echo "${ECHO_T}$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018866else
mlcreech94984912008-03-04 19:03:08 +000018867 { echo "$as_me:$LINENO: result: no" >&5
18868echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018869fi
drh75897232000-05-29 14:26:00 +000018870
mlcreech94984912008-03-04 19:03:08 +000018871
vapier7f19c022007-02-17 14:46:31 +000018872 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000018873done
drh75897232000-05-29 14:26:00 +000018874
vapier7f19c022007-02-17 14:46:31 +000018875 fi
18876 if test "${BUILD_CFLAGS+set}" != set; then
18877 BUILD_CFLAGS="-g"
18878 fi
drh71eb93e2001-09-28 01:34:43 +000018879fi
18880
a.rottmann84e63352003-03-24 09:42:16 +000018881
drh75897232000-05-29 14:26:00 +000018882
drh297ecf12001-04-05 15:57:13 +000018883##########
dougcurrie0f290bf2004-06-21 18:57:29 +000018884# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000018885#
mlcreech94984912008-03-04 19:03:08 +000018886# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000018887if test "${enable_threadsafe+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018888 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000018889else
drh5a3032b2007-09-03 16:12:09 +000018890 enable_threadsafe=yes
mlcreech94984912008-03-04 19:03:08 +000018891fi
18892
18893{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
18894echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000018895if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000018896 SQLITE_THREADSAFE=0
mlcreech94984912008-03-04 19:03:08 +000018897 { echo "$as_me:$LINENO: result: no" >&5
18898echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000018899else
drh5a3032b2007-09-03 16:12:09 +000018900 SQLITE_THREADSAFE=1
mlcreech94984912008-03-04 19:03:08 +000018901 { echo "$as_me:$LINENO: result: yes" >&5
18902echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000018903fi
18904
a.rottmann964dbb12004-02-26 19:47:42 +000018905
drh5a3032b2007-09-03 16:12:09 +000018906if test "$SQLITE_THREADSAFE" = "1"; then
dougcurrie65623c72004-09-20 14:57:23 +000018907 LIBS=""
18908
mlcreech94984912008-03-04 19:03:08 +000018909{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18910echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000018911if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18913else
18914 ac_check_lib_save_LIBS=$LIBS
18915LIBS="-lpthread $LIBS"
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922
mlcreech94984912008-03-04 19:03:08 +000018923/* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000018926#ifdef __cplusplus
18927extern "C"
18928#endif
dougcurrie65623c72004-09-20 14:57:23 +000018929char pthread_create ();
18930int
18931main ()
18932{
mlcreech94984912008-03-04 19:03:08 +000018933return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000018934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000018939if { (ac_try="$ac_link"
18940case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000018946 ac_status=$?
18947 grep -v '^ *+' conftest.er1 >conftest.err
18948 rm -f conftest.er1
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000018951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest$ac_exeext &&
18955 $as_test_x conftest$ac_exeext; then
dougcurrie65623c72004-09-20 14:57:23 +000018956 ac_cv_lib_pthread_pthread_create=yes
18957else
18958 echo "$as_me: failed program was:" >&5
18959sed 's/^/| /' conftest.$ac_ext >&5
18960
mlcreech94984912008-03-04 19:03:08 +000018961 ac_cv_lib_pthread_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000018962fi
mlcreech94984912008-03-04 19:03:08 +000018963
18964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dougcurrie65623c72004-09-20 14:57:23 +000018965 conftest$ac_exeext conftest.$ac_ext
18966LIBS=$ac_check_lib_save_LIBS
18967fi
mlcreech94984912008-03-04 19:03:08 +000018968{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18969echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
dougcurrie65623c72004-09-20 14:57:23 +000018970if test $ac_cv_lib_pthread_pthread_create = yes; then
18971 cat >>confdefs.h <<_ACEOF
18972#define HAVE_LIBPTHREAD 1
18973_ACEOF
18974
18975 LIBS="-lpthread $LIBS"
18976
18977fi
18978
18979 TARGET_THREAD_LIB="$LIBS"
18980 LIBS=""
18981else
18982 TARGET_THREAD_LIB=""
18983fi
18984
18985
xdong28f79f72003-09-23 00:35:21 +000018986##########
drh91636d52005-11-24 23:14:00 +000018987# Do we want to allow a connection created in one thread to be used
18988# in another thread. This does not work on many Linux systems (ex: RedHat 9)
18989# due to bugs in the threading implementations. This is thus off by default.
18990#
mlcreech94984912008-03-04 19:03:08 +000018991# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000018992if test "${enable_cross_thread_connections+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000018993 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000018994else
18995 enable_xthreadconnect=no
mlcreech94984912008-03-04 19:03:08 +000018996fi
18997
18998{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
18999echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
drh91636d52005-11-24 23:14:00 +000019000if test "$enable_xthreadconnect" = "no"; then
19001 XTHREADCONNECT=''
mlcreech94984912008-03-04 19:03:08 +000019002 { echo "$as_me:$LINENO: result: no" >&5
19003echo "${ECHO_T}no" >&6; }
drh91636d52005-11-24 23:14:00 +000019004else
19005 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
mlcreech94984912008-03-04 19:03:08 +000019006 { echo "$as_me:$LINENO: result: yes" >&5
19007echo "${ECHO_T}yes" >&6; }
drh91636d52005-11-24 23:14:00 +000019008fi
19009
19010
19011##########
drh8e2e2a12006-02-01 01:55:17 +000019012# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19013# default. Normally, a test at runtime is performed to determine the
19014# appropriate value of this variable. Use this option only if you're sure that
19015# threads can safely override each others locks in all runtime situations.
19016#
mlcreech94984912008-03-04 19:03:08 +000019017# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000019018if test "${enable_threads_override_locks+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019019 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000019020else
19021 enable_threads_override_locks=no
mlcreech94984912008-03-04 19:03:08 +000019022fi
19023
19024{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19025echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019026if test "$enable_threads_override_locks" = "no"; then
19027 THREADSOVERRIDELOCKS='-1'
mlcreech94984912008-03-04 19:03:08 +000019028 { echo "$as_me:$LINENO: result: no" >&5
19029echo "${ECHO_T}no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019030else
19031 THREADSOVERRIDELOCKS='1'
mlcreech94984912008-03-04 19:03:08 +000019032 { echo "$as_me:$LINENO: result: yes" >&5
19033echo "${ECHO_T}yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019034fi
19035
19036
19037##########
xdong28f79f72003-09-23 00:35:21 +000019038# Do we want to support release
19039#
mlcreech94984912008-03-04 19:03:08 +000019040# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000019041if test "${enable_releasemode+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019042 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000019043else
19044 enable_releasemode=no
mlcreech94984912008-03-04 19:03:08 +000019045fi
19046
19047{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19048echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019049if test "$enable_releasemode" = "no"; then
19050 ALLOWRELEASE=""
mlcreech94984912008-03-04 19:03:08 +000019051 { echo "$as_me:$LINENO: result: no" >&5
19052echo "${ECHO_T}no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019053else
drh0b47d342007-11-27 14:50:06 +000019054 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
mlcreech94984912008-03-04 19:03:08 +000019055 { echo "$as_me:$LINENO: result: yes" >&5
19056echo "${ECHO_T}yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019057fi
paulb0208cc2003-04-13 18:26:49 +000019058
a.rottmann964dbb12004-02-26 19:47:42 +000019059
paulb0208cc2003-04-13 18:26:49 +000019060##########
19061# Do we want temporary databases in memory
19062#
mlcreech94984912008-03-04 19:03:08 +000019063# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000019064if test "${enable_tempstore+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019065 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000019066else
drh54414bb2005-10-10 00:05:50 +000019067 enable_tempstore=no
mlcreech94984912008-03-04 19:03:08 +000019068fi
19069
19070{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
19071echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000019072case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000019073 never )
paul2dc96f92003-04-20 11:46:34 +000019074 TEMP_STORE=0
mlcreech94984912008-03-04 19:03:08 +000019075 { echo "$as_me:$LINENO: result: never" >&5
19076echo "${ECHO_T}never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019077 ;;
19078 no )
paul2dc96f92003-04-20 11:46:34 +000019079 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019080 { echo "$as_me:$LINENO: result: no" >&5
19081echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019082 ;;
19083 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000019084 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019085 { echo "$as_me:$LINENO: result: always" >&5
19086echo "${ECHO_T}always" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019087 ;;
drh54414bb2005-10-10 00:05:50 +000019088 yes )
19089 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000019090 { echo "$as_me:$LINENO: result: always" >&5
19091echo "${ECHO_T}always" >&6; }
drh54414bb2005-10-10 00:05:50 +000019092 ;;
paulb0208cc2003-04-13 18:26:49 +000019093 * )
drh54414bb2005-10-10 00:05:50 +000019094 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000019095 { echo "$as_me:$LINENO: result: yes" >&5
19096echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019097 ;;
19098esac
19099
19100
19101
drh75897232000-05-29 14:26:00 +000019102###########
19103# Lots of things are different if we are compiling for Windows using
19104# the CYGWIN environment. So check for that special case and handle
19105# things accordingly.
19106#
mlcreech94984912008-03-04 19:03:08 +000019107{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
19108echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
drh75897232000-05-29 14:26:00 +000019109if test "$config_BUILD_EXEEXT" = ".exe"; then
19110 CYGWIN=yes
mlcreech94984912008-03-04 19:03:08 +000019111 { echo "$as_me:$LINENO: result: yes" >&5
19112echo "${ECHO_T}yes" >&6; }
drh75897232000-05-29 14:26:00 +000019113else
mlcreech94984912008-03-04 19:03:08 +000019114 { echo "$as_me:$LINENO: result: unknown" >&5
19115echo "${ECHO_T}unknown" >&6; }
drh75897232000-05-29 14:26:00 +000019116fi
19117if test "$CYGWIN" != "yes"; then
mlcreech94984912008-03-04 19:03:08 +000019118 { echo "$as_me:$LINENO: checking host system type" >&5
19119echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19120if test "${ac_cv_host+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19122else
19123 if test "x$host_alias" = x; then
19124 ac_cv_host=$ac_cv_build
19125else
19126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19127 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19128echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19129 { (exit 1); exit 1; }; }
19130fi
19131
19132fi
19133{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19134echo "${ECHO_T}$ac_cv_host" >&6; }
19135case $ac_cv_host in
19136*-*-*) ;;
19137*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19138echo "$as_me: error: invalid value of canonical host" >&2;}
19139 { (exit 1); exit 1; }; };;
19140esac
19141host=$ac_cv_host
19142ac_save_IFS=$IFS; IFS='-'
19143set x $ac_cv_host
19144shift
19145host_cpu=$1
19146host_vendor=$2
19147shift; shift
19148# Remember, the first character of IFS is used to create $*,
19149# except with old shells:
19150host_os=$*
19151IFS=$ac_save_IFS
19152case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19153
a.rottmann84e63352003-03-24 09:42:16 +000019154
19155case $host_os in
drh71eb93e2001-09-28 01:34:43 +000019156 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000019157 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000019158esac
drh75897232000-05-29 14:26:00 +000019159
drh75897232000-05-29 14:26:00 +000019160fi
19161if test "$CYGWIN" = "yes"; then
19162 BUILD_EXEEXT=.exe
19163else
dougcurrie6194a5f2003-12-19 20:09:51 +000019164 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000019165fi
vapier7f19c022007-02-17 14:46:31 +000019166if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000019167 TARGET_EXEEXT=$BUILD_EXEEXT
19168else
19169 TARGET_EXEEXT=$config_TARGET_EXEEXT
19170fi
19171if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000019172 if test $OS2_SHELL ; then
19173 OS_UNIX=0
19174 OS_WIN=0
19175 OS_OS2=1
19176 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1"
19177 if test "$ac_compiler_gnu" == "yes" ; then
19178 TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap"
19179 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
19180 fi
19181 else
19182 OS_UNIX=0
19183 OS_WIN=1
19184 OS_OS2=0
19185 tclsubdir=win
19186 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_WIN=1"
19187 fi
drh75897232000-05-29 14:26:00 +000019188else
19189 OS_UNIX=1
19190 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000019191 OS_OS2=0
drh75897232000-05-29 14:26:00 +000019192 tclsubdir=unix
dougcurrie0f290bf2004-06-21 18:57:29 +000019193 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000019194fi
drh75897232000-05-29 14:26:00 +000019195
a.rottmann84e63352003-03-24 09:42:16 +000019196
19197
19198
19199
19200
drh75897232000-05-29 14:26:00 +000019201
drh75897232000-05-29 14:26:00 +000019202##########
drh7b5717e2004-11-25 13:50:01 +000019203# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000019204#
drh7b5717e2004-11-25 13:50:01 +000019205# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
19206# macros in the in the tcl.m4 file of the standard TCL distribution.
19207# Those macros could not be used directly since we have to make some
19208# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000019209#
mlcreech94984912008-03-04 19:03:08 +000019210# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019211if test "${enable_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019212 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000019213else
drh7b5717e2004-11-25 13:50:01 +000019214 use_tcl=yes
mlcreech94984912008-03-04 19:03:08 +000019215fi
19216
drh7b5717e2004-11-25 13:50:01 +000019217if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000019218
mlcreech94984912008-03-04 19:03:08 +000019219# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000019220if test "${with_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019221 withval=$with_tcl; with_tclconfig=${withval}
19222fi
19223
19224 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19225echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019226 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000019227 echo $ECHO_N "(cached) $ECHO_C" >&6
19228else
a.rottmann84e63352003-03-24 09:42:16 +000019229
drh7b5717e2004-11-25 13:50:01 +000019230 # First check to see if --with-tcl was specified.
19231 if test x"${with_tclconfig}" != x ; then
19232 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19233 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19234 else
19235 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19236echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000019237 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000019238 fi
19239 fi
19240 # then check for a private Tcl installation
19241 if test x"${ac_cv_c_tclconfig}" = x ; then
19242 for i in \
19243 ../tcl \
19244 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19245 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19246 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19247 ../../tcl \
19248 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19249 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19250 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19251 ../../../tcl \
19252 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19253 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19254 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
19255 do
19256 if test -f "$i/unix/tclConfig.sh" ; then
19257 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19258 break
19259 fi
19260 done
19261 fi
19262
19263 # check in a few common install locations
19264 if test x"${ac_cv_c_tclconfig}" = x ; then
19265 for i in \
19266 `ls -d ${libdir} 2>/dev/null` \
19267 `ls -d /usr/local/lib 2>/dev/null` \
19268 `ls -d /usr/contrib/lib 2>/dev/null` \
19269 `ls -d /usr/lib 2>/dev/null`
19270 do
19271 if test -f "$i/tclConfig.sh" ; then
19272 ac_cv_c_tclconfig=`(cd $i; pwd)`
19273 break
19274 fi
19275 done
19276 fi
19277
19278 # check in a few other private locations
19279 if test x"${ac_cv_c_tclconfig}" = x ; then
19280 for i in \
19281 ${srcdir}/../tcl \
19282 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19283 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19284 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
19285 do
19286 if test -f "$i/unix/tclConfig.sh" ; then
19287 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
19288 break
19289 fi
19290 done
19291 fi
19292
drh75897232000-05-29 14:26:00 +000019293fi
19294
drh7b5717e2004-11-25 13:50:01 +000019295
19296 if test x"${ac_cv_c_tclconfig}" = x ; then
19297 use_tcl=no
19298 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19299echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19300 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
19301echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
19303echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
19304 else
19305 TCL_BIN_DIR=${ac_cv_c_tclconfig}
mlcreech94984912008-03-04 19:03:08 +000019306 { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
19307echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019308
mlcreech94984912008-03-04 19:03:08 +000019309 { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
19310echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019311 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
mlcreech94984912008-03-04 19:03:08 +000019312 { echo "$as_me:$LINENO: result: loading" >&5
19313echo "${ECHO_T}loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000019314 . $TCL_BIN_DIR/tclConfig.sh
19315 else
mlcreech94984912008-03-04 19:03:08 +000019316 { echo "$as_me:$LINENO: result: file not found" >&5
19317echo "${ECHO_T}file not found" >&6; }
drh75897232000-05-29 14:26:00 +000019318 fi
drh7b5717e2004-11-25 13:50:01 +000019319
19320 #
19321 # If the TCL_BIN_DIR is the build directory (not the install directory),
19322 # then set the common variable name to the value of the build variables.
19323 # For example, the variable TCL_LIB_SPEC will be set to the value
19324 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19325 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19326 # installed and uninstalled version of Tcl.
19327 #
19328
19329 if test -f $TCL_BIN_DIR/Makefile ; then
19330 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19331 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19332 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19333 fi
19334
19335 #
19336 # eval is required to do the TCL_DBGX substitution
19337 #
19338
19339 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19340 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19341 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19342
19343 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19344 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19345 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360 fi
drh75897232000-05-29 14:26:00 +000019361fi
drh7b5717e2004-11-25 13:50:01 +000019362if test "${use_tcl}" = "no" ; then
19363 HAVE_TCL=""
19364else
19365 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000019366fi
drh75897232000-05-29 14:26:00 +000019367
a.rottmann84e63352003-03-24 09:42:16 +000019368
drh75897232000-05-29 14:26:00 +000019369##########
19370# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000019371# that use "readline()" library.
19372#
vapier7f19c022007-02-17 14:46:31 +000019373TARGET_READLINE_LIBS=""
19374TARGET_READLINE_INC=""
19375TARGET_HAVE_READLINE=0
mlcreech94984912008-03-04 19:03:08 +000019376# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000019377if test "${enable_readline+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019378 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000019379else
vapier7f19c022007-02-17 14:46:31 +000019380 with_readline=auto
mlcreech94984912008-03-04 19:03:08 +000019381fi
19382
vapier7f19c022007-02-17 14:46:31 +000019383
19384if test x"$with_readline" != xno; then
19385 found="yes"
19386
19387
mlcreech94984912008-03-04 19:03:08 +000019388# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000019389if test "${with_readline_lib+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019390 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000019391else
19392 with_readline_lib="auto"
mlcreech94984912008-03-04 19:03:08 +000019393fi
19394
vapier7f19c022007-02-17 14:46:31 +000019395 if test "x$with_readline_lib" = xauto; then
19396 save_LIBS="$LIBS"
19397 LIBS=""
mlcreech94984912008-03-04 19:03:08 +000019398 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
19399echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000019400if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019401 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000019402else
drh71eb93e2001-09-28 01:34:43 +000019403 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000019404cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000019405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410
mlcreech94984912008-03-04 19:03:08 +000019411/* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000019414#ifdef __cplusplus
19415extern "C"
19416#endif
paul38372372003-04-22 08:04:49 +000019417char tgetent ();
19418int
19419main ()
19420{
mlcreech94984912008-03-04 19:03:08 +000019421return tgetent ();
paul38372372003-04-22 08:04:49 +000019422 ;
19423 return 0;
19424}
19425_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019426for ac_lib in '' readline ncurses curses termcap; do
19427 if test -z "$ac_lib"; then
19428 ac_res="none required"
19429 else
19430 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000019431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000019432 fi
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434if { (ac_try="$ac_link"
19435case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19438esac
19439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000019441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019446 (exit $ac_status); } && {
19447 test -z "$ac_c_werror_flag" ||
19448 test ! -s conftest.err
19449 } && test -s conftest$ac_exeext &&
19450 $as_test_x conftest$ac_exeext; then
19451 ac_cv_search_tgetent=$ac_res
vapier7f19c022007-02-17 14:46:31 +000019452else
drh613a0fe2007-11-23 17:31:17 +000019453 echo "$as_me: failed program was:" >&5
19454sed 's/^/| /' conftest.$ac_ext >&5
19455
mlcreech94984912008-03-04 19:03:08 +000019456
vapier7f19c022007-02-17 14:46:31 +000019457fi
mlcreech94984912008-03-04 19:03:08 +000019458
19459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19460 conftest$ac_exeext
19461 if test "${ac_cv_search_tgetent+set}" = set; then
19462 break
drh613a0fe2007-11-23 17:31:17 +000019463fi
mlcreech94984912008-03-04 19:03:08 +000019464done
19465if test "${ac_cv_search_tgetent+set}" = set; then
19466 :
19467else
19468 ac_cv_search_tgetent=no
19469fi
19470rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019471LIBS=$ac_func_search_save_LIBS
19472fi
mlcreech94984912008-03-04 19:03:08 +000019473{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
19474echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
19475ac_res=$ac_cv_search_tgetent
19476if test "$ac_res" != no; then
19477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000019478 term_LIBS="$LIBS"
19479else
19480 term_LIBS=""
paul38372372003-04-22 08:04:49 +000019481fi
19482
mlcreech94984912008-03-04 19:03:08 +000019483 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
19484echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000019485if test "${ac_cv_lib_readline_readline+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487else
19488 ac_check_lib_save_LIBS=$LIBS
19489LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000019490cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019496
mlcreech94984912008-03-04 19:03:08 +000019497/* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000019500#ifdef __cplusplus
19501extern "C"
19502#endif
drh71eb93e2001-09-28 01:34:43 +000019503char readline ();
19504int
19505main ()
19506{
mlcreech94984912008-03-04 19:03:08 +000019507return readline ();
drh71eb93e2001-09-28 01:34:43 +000019508 ;
19509 return 0;
19510}
19511_ACEOF
19512rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019513if { (ac_try="$ac_link"
19514case "(($ac_try" in
19515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19516 *) ac_try_echo=$ac_try;;
19517esac
19518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19519 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019520 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019525 (exit $ac_status); } && {
19526 test -z "$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19528 } && test -s conftest$ac_exeext &&
19529 $as_test_x conftest$ac_exeext; then
paul38372372003-04-22 08:04:49 +000019530 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000019531else
drh71eb93e2001-09-28 01:34:43 +000019532 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019533sed 's/^/| /' conftest.$ac_ext >&5
19534
mlcreech94984912008-03-04 19:03:08 +000019535 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000019536fi
mlcreech94984912008-03-04 19:03:08 +000019537
19538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000019539 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000019540LIBS=$ac_check_lib_save_LIBS
19541fi
mlcreech94984912008-03-04 19:03:08 +000019542{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
19543echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000019544if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000019545 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000019546else
vapier7f19c022007-02-17 14:46:31 +000019547 found="no"
19548fi
drhf1878b42006-01-23 18:06:52 +000019549
vapier7f19c022007-02-17 14:46:31 +000019550 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
19551 LIBS="$save_LIBS"
19552 else
19553 TARGET_READLINE_LIBS="$with_readline_lib"
19554 fi
19555
19556
mlcreech94984912008-03-04 19:03:08 +000019557# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000019558if test "${with_readline_inc+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019559 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000019560else
vapier7f19c022007-02-17 14:46:31 +000019561 with_readline_inc="auto"
mlcreech94984912008-03-04 19:03:08 +000019562fi
19563
vapier7f19c022007-02-17 14:46:31 +000019564 if test "x$with_readline_inc" = xauto; then
19565 if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019566 { echo "$as_me:$LINENO: checking for readline.h" >&5
19567echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019568if test "${ac_cv_header_readline_h+set}" = set; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000019570fi
mlcreech94984912008-03-04 19:03:08 +000019571{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19572echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000019573else
a.rottmann84e63352003-03-24 09:42:16 +000019574 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +000019575{ echo "$as_me:$LINENO: checking readline.h usability" >&5
19576echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019577cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
19583$ac_includes_default
drh75897232000-05-29 14:26:00 +000019584#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000019585_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019586rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +000019587if { (ac_try="$ac_compile"
19588case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000019594 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000019603 ac_header_compiler=yes
19604else
19605 echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
mlcreech94984912008-03-04 19:03:08 +000019608 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000019609fi
mlcreech94984912008-03-04 19:03:08 +000019610
19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19612{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019614
19615# Is the header present?
mlcreech94984912008-03-04 19:03:08 +000019616{ echo "$as_me:$LINENO: checking readline.h presence" >&5
19617echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019618cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h. */
19624#include <readline.h>
19625_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019626if { (ac_try="$ac_cpp conftest.$ac_ext"
19627case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630esac
19631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019633 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000019634 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000019635 rm -f conftest.er1
19636 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019638 (exit $ac_status); } >/dev/null && {
19639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 }; then
a.rottmann84e63352003-03-24 09:42:16 +000019642 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000019643else
19644 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019645sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000019648fi
mlcreech94984912008-03-04 19:03:08 +000019649
drh71eb93e2001-09-28 01:34:43 +000019650rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +000019651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19652echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019653
19654# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000019655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19656 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000019657 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
19658echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019659 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
19660echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
19661 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000019662 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000019663 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000019664 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
19665echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019666 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
19667echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
19669echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
19671echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000019672 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
19673echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000019674 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
19675echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +000019676
a.rottmann84e63352003-03-24 09:42:16 +000019677 ;;
19678esac
mlcreech94984912008-03-04 19:03:08 +000019679{ echo "$as_me:$LINENO: checking for readline.h" >&5
19680echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019681if test "${ac_cv_header_readline_h+set}" = set; then
19682 echo $ECHO_N "(cached) $ECHO_C" >&6
19683else
19684 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000019685fi
mlcreech94984912008-03-04 19:03:08 +000019686{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
19687echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000019688
19689fi
drh71eb93e2001-09-28 01:34:43 +000019690if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000019691 found="yes"
19692else
drh75897232000-05-29 14:26:00 +000019693
vapier7f19c022007-02-17 14:46:31 +000019694 found="no"
19695 if test "$cross_compiling" != yes; then
19696 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
19697 for subdir in include include/readline; do
19698 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +000019699{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
19700echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
19701if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +000019702 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019703else
19704 test "$cross_compiling" = yes &&
19705 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
19706echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
19707 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000019708if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000019709 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000019710else
drh71eb93e2001-09-28 01:34:43 +000019711 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000019712fi
19713fi
mlcreech94984912008-03-04 19:03:08 +000019714ac_res=`eval echo '${'$as_ac_File'}'`
19715 { echo "$as_me:$LINENO: result: $ac_res" >&5
19716echo "${ECHO_T}$ac_res" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019717if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000019718 found=yes
drh75897232000-05-29 14:26:00 +000019719fi
19720
vapier7f19c022007-02-17 14:46:31 +000019721 if test "$found" = "yes"; then
19722 TARGET_READLINE_INC="-I$dir/$subdir"
19723 break
19724 fi
19725 done
19726 test "$found" = "yes" && break
19727 done
19728 fi
19729
19730fi
19731
19732
19733 else
19734 TARGET_READLINE_INC="$with_readline_inc"
19735 fi
19736
19737 if test x"$found" = xno; then
19738 TARGET_READLINE_LIBS=""
19739 TARGET_READLINE_INC=""
19740 TARGET_HAVE_READLINE=0
19741 else
19742 TARGET_HAVE_READLINE=1
19743 fi
19744fi
19745
19746
19747
19748
19749
19750##########
19751# Figure out what C libraries are required to compile programs
19752# that use "fdatasync()" function.
19753#
mlcreech94984912008-03-04 19:03:08 +000019754{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
19755echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000019756if test "${ac_cv_search_fdatasync+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019757 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000019758else
vapier7f19c022007-02-17 14:46:31 +000019759 ac_func_search_save_LIBS=$LIBS
19760cat >conftest.$ac_ext <<_ACEOF
19761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000019766
mlcreech94984912008-03-04 19:03:08 +000019767/* Override any GCC internal prototype to avoid an error.
19768 Use char because int might match the return type of a GCC
19769 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000019770#ifdef __cplusplus
19771extern "C"
19772#endif
19773char fdatasync ();
19774int
19775main ()
19776{
mlcreech94984912008-03-04 19:03:08 +000019777return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000019778 ;
19779 return 0;
19780}
19781_ACEOF
mlcreech94984912008-03-04 19:03:08 +000019782for ac_lib in '' rt; do
19783 if test -z "$ac_lib"; then
19784 ac_res="none required"
19785 else
19786 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000019787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000019788 fi
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790if { (ac_try="$ac_link"
19791case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19794esac
19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000019797 ac_status=$?
19798 grep -v '^ *+' conftest.er1 >conftest.err
19799 rm -f conftest.er1
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019802 (exit $ac_status); } && {
19803 test -z "$ac_c_werror_flag" ||
19804 test ! -s conftest.err
19805 } && test -s conftest$ac_exeext &&
19806 $as_test_x conftest$ac_exeext; then
19807 ac_cv_search_fdatasync=$ac_res
vapier7f19c022007-02-17 14:46:31 +000019808else
drh613a0fe2007-11-23 17:31:17 +000019809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
mlcreech94984912008-03-04 19:03:08 +000019812
vapier7f19c022007-02-17 14:46:31 +000019813fi
mlcreech94984912008-03-04 19:03:08 +000019814
19815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19816 conftest$ac_exeext
19817 if test "${ac_cv_search_fdatasync+set}" = set; then
19818 break
drh613a0fe2007-11-23 17:31:17 +000019819fi
mlcreech94984912008-03-04 19:03:08 +000019820done
19821if test "${ac_cv_search_fdatasync+set}" = set; then
19822 :
19823else
19824 ac_cv_search_fdatasync=no
19825fi
19826rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000019827LIBS=$ac_func_search_save_LIBS
19828fi
mlcreech94984912008-03-04 19:03:08 +000019829{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
19830echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
19831ac_res=$ac_cv_search_fdatasync
19832if test "$ac_res" != no; then
19833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000019834
vapier7f19c022007-02-17 14:46:31 +000019835fi
19836
a.rottmann84e63352003-03-24 09:42:16 +000019837
drh75897232000-05-29 14:26:00 +000019838#########
tpoindex9d9f76c2005-01-03 21:28:56 +000019839# check for debug enabled
mlcreech94984912008-03-04 19:03:08 +000019840# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000019841if test "${enable_debug+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019842 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000019843else
19844 use_debug=no
mlcreech94984912008-03-04 19:03:08 +000019845fi
19846
tpoindex9d9f76c2005-01-03 21:28:56 +000019847if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000019848 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000019849else
19850 TARGET_DEBUG="-DNDEBUG"
19851fi
19852
19853
19854#########
mlcreech94984912008-03-04 19:03:08 +000019855# See whether we should use the amalgamation to build
19856# Check whether --enable-amalgamation was given.
19857if test "${enable_amalgamation+set}" = set; then
19858 enableval=$enable_amalgamation; use_amalgamation=$enableval
19859else
19860 use_amalgamation=yes
19861fi
19862
19863if test "${use_amalgamation}" = "yes" ; then
19864 USE_AMALGAMATION=1
19865else
19866 USE_AMALGAMATION=0
19867fi
19868
19869
19870#########
drh2dfbbca2000-07-28 14:32:48 +000019871# Figure out whether or not we have a "usleep()" function.
19872#
mlcreech94984912008-03-04 19:03:08 +000019873{ echo "$as_me:$LINENO: checking for usleep" >&5
19874echo $ECHO_N "checking for usleep... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019875if test "${ac_cv_func_usleep+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
drh2dfbbca2000-07-28 14:32:48 +000019877else
drh71eb93e2001-09-28 01:34:43 +000019878 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000019879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +000019884/* Define usleep to an innocuous variant, in case <limits.h> declares usleep.
19885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19886#define usleep innocuous_usleep
19887
drh2dfbbca2000-07-28 14:32:48 +000019888/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +000019889 which can conflict with char usleep (); below.
19890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19891 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +000019892
a.rottmann84e63352003-03-24 09:42:16 +000019893#ifdef __STDC__
19894# include <limits.h>
19895#else
19896# include <assert.h>
19897#endif
a.rottmann964dbb12004-02-26 19:47:42 +000019898
19899#undef usleep
19900
mlcreech94984912008-03-04 19:03:08 +000019901/* Override any GCC internal prototype to avoid an error.
19902 Use char because int might match the return type of a GCC
19903 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000019904#ifdef __cplusplus
19905extern "C"
19906#endif
drh71eb93e2001-09-28 01:34:43 +000019907char usleep ();
drh2dfbbca2000-07-28 14:32:48 +000019908/* The GNU C library defines this for functions which it implements
19909 to always fail with ENOSYS. Some functions are actually named
19910 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000019911#if defined __stub_usleep || defined __stub___usleep
drh2dfbbca2000-07-28 14:32:48 +000019912choke me
drh2dfbbca2000-07-28 14:32:48 +000019913#endif
19914
a.rottmann84e63352003-03-24 09:42:16 +000019915int
19916main ()
19917{
mlcreech94984912008-03-04 19:03:08 +000019918return usleep ();
drh71eb93e2001-09-28 01:34:43 +000019919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019924if { (ac_try="$ac_link"
19925case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928esac
19929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000019931 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000019932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000019935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +000019941 ac_cv_func_usleep=yes
drh2dfbbca2000-07-28 14:32:48 +000019942else
drh71eb93e2001-09-28 01:34:43 +000019943 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000019944sed 's/^/| /' conftest.$ac_ext >&5
19945
mlcreech94984912008-03-04 19:03:08 +000019946 ac_cv_func_usleep=no
drh2dfbbca2000-07-28 14:32:48 +000019947fi
mlcreech94984912008-03-04 19:03:08 +000019948
19949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000019950 conftest$ac_exeext conftest.$ac_ext
drh2dfbbca2000-07-28 14:32:48 +000019951fi
mlcreech94984912008-03-04 19:03:08 +000019952{ echo "$as_me:$LINENO: result: $ac_cv_func_usleep" >&5
19953echo "${ECHO_T}$ac_cv_func_usleep" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019954if test $ac_cv_func_usleep = yes; then
drh2dfbbca2000-07-28 14:32:48 +000019955 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1"
drh2dfbbca2000-07-28 14:32:48 +000019956fi
19957
a.rottmann84e63352003-03-24 09:42:16 +000019958
drhaf6edf52005-10-04 18:38:49 +000019959#--------------------------------------------------------------------
19960# Redefine fdatasync as fsync on systems that lack fdatasync
19961#--------------------------------------------------------------------
19962
mlcreech94984912008-03-04 19:03:08 +000019963{ echo "$as_me:$LINENO: checking for fdatasync" >&5
19964echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
drhaf6edf52005-10-04 18:38:49 +000019965if test "${ac_cv_func_fdatasync+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967else
19968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h. */
19974/* Define fdatasync to an innocuous variant, in case <limits.h> declares fdatasync.
19975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19976#define fdatasync innocuous_fdatasync
19977
19978/* System header to define __stub macros and hopefully few prototypes,
19979 which can conflict with char fdatasync (); below.
19980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19981 <limits.h> exists even on freestanding compilers. */
19982
19983#ifdef __STDC__
19984# include <limits.h>
19985#else
19986# include <assert.h>
19987#endif
19988
19989#undef fdatasync
19990
mlcreech94984912008-03-04 19:03:08 +000019991/* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
drhaf6edf52005-10-04 18:38:49 +000019994#ifdef __cplusplus
19995extern "C"
drhaf6edf52005-10-04 18:38:49 +000019996#endif
drhaf6edf52005-10-04 18:38:49 +000019997char fdatasync ();
19998/* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +000020001#if defined __stub_fdatasync || defined __stub___fdatasync
drhaf6edf52005-10-04 18:38:49 +000020002choke me
drhaf6edf52005-10-04 18:38:49 +000020003#endif
20004
20005int
20006main ()
20007{
mlcreech94984912008-03-04 19:03:08 +000020008return fdatasync ();
drhaf6edf52005-10-04 18:38:49 +000020009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020014if { (ac_try="$ac_link"
20015case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018esac
20019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_link") 2>conftest.er1
drhaf6edf52005-10-04 18:38:49 +000020021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020026 (exit $ac_status); } && {
20027 test -z "$ac_c_werror_flag" ||
20028 test ! -s conftest.err
20029 } && test -s conftest$ac_exeext &&
20030 $as_test_x conftest$ac_exeext; then
drhaf6edf52005-10-04 18:38:49 +000020031 ac_cv_func_fdatasync=yes
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
mlcreech94984912008-03-04 19:03:08 +000020036 ac_cv_func_fdatasync=no
drhaf6edf52005-10-04 18:38:49 +000020037fi
mlcreech94984912008-03-04 19:03:08 +000020038
20039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
drhaf6edf52005-10-04 18:38:49 +000020040 conftest$ac_exeext conftest.$ac_ext
20041fi
mlcreech94984912008-03-04 19:03:08 +000020042{ echo "$as_me:$LINENO: result: $ac_cv_func_fdatasync" >&5
20043echo "${ECHO_T}$ac_cv_func_fdatasync" >&6; }
drhaf6edf52005-10-04 18:38:49 +000020044if test $ac_cv_func_fdatasync = yes; then
drhf2f23912005-10-05 10:29:36 +000020045 TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_FDATASYNC=1"
drhaf6edf52005-10-04 18:38:49 +000020046fi
20047
20048
drh2dfbbca2000-07-28 14:32:48 +000020049#########
drh75897232000-05-29 14:26:00 +000020050# Generate the output files.
20051#
mlcreech94984912008-03-04 19:03:08 +000020052ac_config_files="$ac_config_files Makefile sqlite3.pc"
20053
drh71eb93e2001-09-28 01:34:43 +000020054cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020055# This file is a shell script that caches the results of configure
20056# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020057# scripts and configure runs, see configure's option --config-cache.
20058# It is not useful on other systems. If it contains results you don't
20059# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020060#
drh71eb93e2001-09-28 01:34:43 +000020061# config.status only pays attention to the cache file if you give it
20062# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020063#
a.rottmann84e63352003-03-24 09:42:16 +000020064# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020065# loading this file, other *unset* `ac_cv_foo' will be assigned the
20066# following values.
20067
20068_ACEOF
20069
drh75897232000-05-29 14:26:00 +000020070# The following way of writing the cache mishandles newlines in values,
20071# but we know of no workaround that is simple, portable, and efficient.
mlcreech94984912008-03-04 19:03:08 +000020072# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000020073# Ultrix sh set writes to stderr and can't be redirected directly,
20074# and sets the high bit in the cache file unless we assign to the vars.
mlcreech94984912008-03-04 19:03:08 +000020075(
20076 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20077 eval ac_val=\$$ac_var
20078 case $ac_val in #(
20079 *${as_nl}*)
20080 case $ac_var in #(
20081 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20082echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20083 esac
20084 case $ac_var in #(
20085 _ | IFS | as_nl) ;; #(
20086 *) $as_unset $ac_var ;;
20087 esac ;;
20088 esac
20089 done
20090
drh71eb93e2001-09-28 01:34:43 +000020091 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +000020092 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20093 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000020094 # `set' does not quote correctly, so add quotes (double-quote
20095 # substitution turns \\\\ into \\, and sed turns \\ into \).
20096 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020097 "s/'/'\\\\''/g;
20098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mlcreech94984912008-03-04 19:03:08 +000020099 ;; #(
drh71eb93e2001-09-28 01:34:43 +000020100 *)
20101 # `set' quotes correctly as required by POSIX, so do not add quotes.
mlcreech94984912008-03-04 19:03:08 +000020102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000020103 ;;
mlcreech94984912008-03-04 19:03:08 +000020104 esac |
20105 sort
20106) |
drh71eb93e2001-09-28 01:34:43 +000020107 sed '
mlcreech94984912008-03-04 19:03:08 +000020108 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000020109 t clear
mlcreech94984912008-03-04 19:03:08 +000020110 :clear
drh71eb93e2001-09-28 01:34:43 +000020111 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20112 t end
mlcreech94984912008-03-04 19:03:08 +000020113 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20114 :end' >>confcache
20115if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20116 if test -w "$cache_file"; then
20117 test "x$cache_file" != "x/dev/null" &&
20118 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20119echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000020120 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020121 else
mlcreech94984912008-03-04 19:03:08 +000020122 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20123echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000020124 fi
20125fi
20126rm -f confcache
20127
drh75897232000-05-29 14:26:00 +000020128test "x$prefix" = xNONE && prefix=$ac_default_prefix
20129# Let make expand exec_prefix.
20130test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20131
drh75897232000-05-29 14:26:00 +000020132# Transform confdefs.h into DEFS.
20133# Protect against shell expansion while executing Makefile rules.
20134# Protect against Makefile macro expansion.
drh71eb93e2001-09-28 01:34:43 +000020135#
20136# If the first sed substitution is executed (which looks for macros that
mlcreech94984912008-03-04 19:03:08 +000020137# take arguments), then branch to the quote section. Otherwise,
drh71eb93e2001-09-28 01:34:43 +000020138# look for a macro that doesn't take arguments.
mlcreech94984912008-03-04 19:03:08 +000020139ac_script='
drh71eb93e2001-09-28 01:34:43 +000020140t clear
mlcreech94984912008-03-04 19:03:08 +000020141:clear
20142s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
drh71eb93e2001-09-28 01:34:43 +000020143t quote
mlcreech94984912008-03-04 19:03:08 +000020144s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
drh71eb93e2001-09-28 01:34:43 +000020145t quote
mlcreech94984912008-03-04 19:03:08 +000020146b any
20147:quote
20148s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20149s/\[/\\&/g
20150s/\]/\\&/g
20151s/\$/$$/g
20152H
20153:any
20154${
20155 g
20156 s/^\n//
20157 s/\n/ /g
20158 p
20159}
20160'
20161DEFS=`sed -n "$ac_script" confdefs.h`
drh75897232000-05-29 14:26:00 +000020162
a.rottmann84e63352003-03-24 09:42:16 +000020163
20164ac_libobjs=
20165ac_ltlibobjs=
20166for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20167 # 1. Remove the extension, and $U if already installed.
mlcreech94984912008-03-04 19:03:08 +000020168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20169 ac_i=`echo "$ac_i" | sed "$ac_script"`
20170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20171 # will be set to the directory where LIBOBJS objects are built.
20172 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20173 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000020174done
20175LIBOBJS=$ac_libobjs
20176
20177LTLIBOBJS=$ac_ltlibobjs
20178
20179
20180
drh75897232000-05-29 14:26:00 +000020181: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020182ac_clean_files_save=$ac_clean_files
20183ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020184{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020185echo "$as_me: creating $CONFIG_STATUS" >&6;}
20186cat >$CONFIG_STATUS <<_ACEOF
20187#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020188# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020189# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020190# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020191# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020192
drh71eb93e2001-09-28 01:34:43 +000020193debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020194ac_cs_recheck=false
20195ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020196SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020197_ACEOF
drh75897232000-05-29 14:26:00 +000020198
drh71eb93e2001-09-28 01:34:43 +000020199cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020200## --------------------- ##
20201## M4sh Initialization. ##
20202## --------------------- ##
20203
mlcreech94984912008-03-04 19:03:08 +000020204# Be more Bourne compatible
20205DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020206if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20207 emulate sh
20208 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020209 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20210 # is contrary to our usage. Disable this feature.
20211 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000020212 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000020213else
mlcreech94984912008-03-04 19:03:08 +000020214 case `(set -o) 2>/dev/null` in
20215 *posix*) set -o posix ;;
20216esac
20217
a.rottmann84e63352003-03-24 09:42:16 +000020218fi
20219
20220
a.rottmann84e63352003-03-24 09:42:16 +000020221
20222
mlcreech94984912008-03-04 19:03:08 +000020223# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000020224# Avoid depending upon Character Ranges.
20225as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20226as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20227as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20228as_cr_digits='0123456789'
20229as_cr_alnum=$as_cr_Letters$as_cr_digits
20230
20231# The user is always right.
20232if test "${PATH_SEPARATOR+set}" != set; then
20233 echo "#! /bin/sh" >conf$$.sh
20234 echo "exit 0" >>conf$$.sh
20235 chmod +x conf$$.sh
20236 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20237 PATH_SEPARATOR=';'
20238 else
20239 PATH_SEPARATOR=:
20240 fi
20241 rm -f conf$$.sh
20242fi
20243
mlcreech94984912008-03-04 19:03:08 +000020244# Support unset when possible.
20245if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20246 as_unset=unset
20247else
20248 as_unset=false
20249fi
a.rottmann84e63352003-03-24 09:42:16 +000020250
mlcreech94984912008-03-04 19:03:08 +000020251
20252# IFS
20253# We need space, tab and new line, in precisely that order. Quoting is
20254# there to prevent editors from complaining about space-tab.
20255# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20256# splitting by setting IFS to empty value.)
20257as_nl='
20258'
20259IFS=" "" $as_nl"
20260
20261# Find who we are. Look in the path if we contain no directory separator.
20262case $0 in
20263 *[\\/]* ) as_myself=$0 ;;
20264 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000020265for as_dir in $PATH
20266do
20267 IFS=$as_save_IFS
20268 test -z "$as_dir" && as_dir=.
20269 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20270done
mlcreech94984912008-03-04 19:03:08 +000020271IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000020272
mlcreech94984912008-03-04 19:03:08 +000020273 ;;
20274esac
20275# We did not find ourselves, most probably we were run as `sh COMMAND'
20276# in which case we are not to be found in the path.
20277if test "x$as_myself" = x; then
20278 as_myself=$0
20279fi
20280if test ! -f "$as_myself"; then
20281 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20282 { (exit 1); exit 1; }
20283fi
20284
20285# Work around bugs in pre-3.0 UWIN ksh.
20286for as_var in ENV MAIL MAILPATH
20287do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20288done
20289PS1='$ '
20290PS2='> '
20291PS4='+ '
20292
20293# NLS nuisances.
20294for as_var in \
20295 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20296 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20297 LC_TELEPHONE LC_TIME
drh613a0fe2007-11-23 17:31:17 +000020298do
mlcreech94984912008-03-04 19:03:08 +000020299 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20300 eval $as_var=C; export $as_var
20301 else
20302 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20303 fi
20304done
20305
20306# Required to use basename.
20307if expr a : '\(a\)' >/dev/null 2>&1 &&
20308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20309 as_expr=expr
20310else
20311 as_expr=false
20312fi
20313
20314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20315 as_basename=basename
20316else
20317 as_basename=false
20318fi
20319
20320
20321# Name of the executable.
20322as_me=`$as_basename -- "$0" ||
20323$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20324 X"$0" : 'X\(//\)$' \| \
20325 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20326echo X/"$0" |
20327 sed '/^.*\/\([^/][^/]*\)\/*$/{
20328 s//\1/
20329 q
20330 }
20331 /^X\/\(\/\/\)$/{
20332 s//\1/
20333 q
20334 }
20335 /^X\/\(\/\).*/{
20336 s//\1/
20337 q
20338 }
20339 s/.*/./; q'`
20340
20341# CDPATH.
20342$as_unset CDPATH
20343
20344
20345
a.rottmann84e63352003-03-24 09:42:16 +000020346 as_lineno_1=$LINENO
20347 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000020348 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +000020349 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000020350
20351 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20352 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +000020353 # line-number line after each line using $LINENO; the second 'sed'
20354 # does the real work. The second script uses 'N' to pair each
20355 # line-number line with the line containing $LINENO, and appends
20356 # trailing '-' during substitution so that $LINENO is not a special
20357 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000020358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +000020359 # scripts with optimization help from Paolo Bonzini. Blame Lee
20360 # E. McMahon (1931-1989) for sed's syntax. :-)
20361 sed -n '
20362 p
20363 /[$]LINENO/=
20364 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000020365 sed '
mlcreech94984912008-03-04 19:03:08 +000020366 s/[$]LINENO.*/&-/
20367 t lineno
20368 b
20369 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000020370 N
mlcreech94984912008-03-04 19:03:08 +000020371 :loop
20372 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000020373 t loop
mlcreech94984912008-03-04 19:03:08 +000020374 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000020375 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +000020376 chmod +x "$as_me.lineno" ||
20377 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000020378 { (exit 1); exit 1; }; }
20379
20380 # Don't try to exec as it changes $[0], causing all sort of problems
20381 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +000020382 # original and so on. Autoconf is especially sensitive to this).
20383 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000020384 # Exit status is that of the last command.
20385 exit
20386}
20387
20388
mlcreech94984912008-03-04 19:03:08 +000020389if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20390 as_dirname=dirname
20391else
20392 as_dirname=false
20393fi
20394
20395ECHO_C= ECHO_N= ECHO_T=
20396case `echo -n x` in
20397-n*)
20398 case `echo 'x\c'` in
20399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20400 *) ECHO_C='\c';;
20401 esac;;
20402*)
20403 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +000020404esac
drh71eb93e2001-09-28 01:34:43 +000020405
mlcreech94984912008-03-04 19:03:08 +000020406if expr a : '\(a\)' >/dev/null 2>&1 &&
20407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000020408 as_expr=expr
20409else
20410 as_expr=false
20411fi
20412
20413rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +000020414if test -d conf$$.dir; then
20415 rm -f conf$$.dir/conf$$.file
20416else
20417 rm -f conf$$.dir
20418 mkdir conf$$.dir
20419fi
drh71eb93e2001-09-28 01:34:43 +000020420echo >conf$$.file
20421if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +000020422 as_ln_s='ln -s'
20423 # ... but there are two gotchas:
20424 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20425 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20426 # In both cases, we have to default to `cp -p'.
20427 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drh71eb93e2001-09-28 01:34:43 +000020428 as_ln_s='cp -p'
drh71eb93e2001-09-28 01:34:43 +000020429elif ln conf$$.file conf$$ 2>/dev/null; then
20430 as_ln_s=ln
20431else
20432 as_ln_s='cp -p'
20433fi
mlcreech94984912008-03-04 19:03:08 +000020434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20435rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000020436
a.rottmann84e63352003-03-24 09:42:16 +000020437if mkdir -p . 2>/dev/null; then
20438 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000020439else
a.rottmann964dbb12004-02-26 19:47:42 +000020440 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000020441 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000020442fi
20443
mlcreech94984912008-03-04 19:03:08 +000020444if test -x / >/dev/null 2>&1; then
20445 as_test_x='test -x'
20446else
20447 if ls -dL / >/dev/null 2>&1; then
20448 as_ls_L_option=L
20449 else
20450 as_ls_L_option=
20451 fi
20452 as_test_x='
20453 eval sh -c '\''
20454 if test -d "$1"; then
20455 test -d "$1/.";
20456 else
20457 case $1 in
20458 -*)set "./$1";;
20459 esac;
20460 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20461 ???[sx]*):;;*)false;;esac;fi
20462 '\'' sh
20463 '
20464fi
20465as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000020466
20467# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000020468as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020469
20470# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000020471as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000020472
drh71eb93e2001-09-28 01:34:43 +000020473
drh71eb93e2001-09-28 01:34:43 +000020474exec 6>&1
20475
mlcreech94984912008-03-04 19:03:08 +000020476# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000020477# report actual input values of CONFIG_FILES etc. instead of their
mlcreech94984912008-03-04 19:03:08 +000020478# values after options handling.
20479ac_log="
a.rottmann84e63352003-03-24 09:42:16 +000020480This file was extended by $as_me, which was
mlcreech94984912008-03-04 19:03:08 +000020481generated by GNU Autoconf 2.61. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000020482
20483 CONFIG_FILES = $CONFIG_FILES
20484 CONFIG_HEADERS = $CONFIG_HEADERS
20485 CONFIG_LINKS = $CONFIG_LINKS
20486 CONFIG_COMMANDS = $CONFIG_COMMANDS
20487 $ $0 $@
20488
mlcreech94984912008-03-04 19:03:08 +000020489on `(hostname || uname -n) 2>/dev/null | sed 1q`
20490"
20491
drh71eb93e2001-09-28 01:34:43 +000020492_ACEOF
20493
mlcreech94984912008-03-04 19:03:08 +000020494cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020495# Files that config.status was made for.
mlcreech94984912008-03-04 19:03:08 +000020496config_files="$ac_config_files"
drh71eb93e2001-09-28 01:34:43 +000020497
mlcreech94984912008-03-04 19:03:08 +000020498_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020499
a.rottmann84e63352003-03-24 09:42:16 +000020500cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020501ac_cs_usage="\
20502\`$as_me' instantiates files from templates according to the
20503current configuration.
20504
20505Usage: $0 [OPTIONS] [FILE]...
20506
20507 -h, --help print this help, then exit
mlcreech94984912008-03-04 19:03:08 +000020508 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000020509 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000020510 -d, --debug don't remove temporary files
20511 --recheck update $as_me by reconfiguring in the same conditions
20512 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000020513 instantiate the configuration file FILE
drh71eb93e2001-09-28 01:34:43 +000020514
20515Configuration files:
20516$config_files
20517
20518Report bugs to <bug-autoconf@gnu.org>."
drh613a0fe2007-11-23 17:31:17 +000020519
mlcreech94984912008-03-04 19:03:08 +000020520_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020521cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020522ac_cs_version="\\
20523config.status
mlcreech94984912008-03-04 19:03:08 +000020524configured by $0, generated by GNU Autoconf 2.61,
20525 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000020526
mlcreech94984912008-03-04 19:03:08 +000020527Copyright (C) 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000020528This config.status script is free software; the Free Software Foundation
20529gives unlimited permission to copy, distribute and modify it."
mlcreech94984912008-03-04 19:03:08 +000020530
20531ac_pwd='$ac_pwd'
20532srcdir='$srcdir'
20533INSTALL='$INSTALL'
a.rottmann84e63352003-03-24 09:42:16 +000020534_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020535
a.rottmann84e63352003-03-24 09:42:16 +000020536cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020537# If no file are specified by the user, then we need to provide default
20538# value. By we need to know if files were specified by the user.
20539ac_need_defaults=:
20540while test $# != 0
20541do
20542 case $1 in
20543 --*=*)
mlcreech94984912008-03-04 19:03:08 +000020544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000020546 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000020547 ;;
mlcreech94984912008-03-04 19:03:08 +000020548 *)
a.rottmann84e63352003-03-24 09:42:16 +000020549 ac_option=$1
20550 ac_optarg=$2
20551 ac_shift=shift
20552 ;;
drh75897232000-05-29 14:26:00 +000020553 esac
20554
a.rottmann84e63352003-03-24 09:42:16 +000020555 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000020556 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000020557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000020558 ac_cs_recheck=: ;;
mlcreech94984912008-03-04 19:03:08 +000020559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20560 echo "$ac_cs_version"; exit ;;
20561 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000020562 debug=: ;;
20563 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000020564 $ac_shift
20565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000020566 ac_need_defaults=false;;
mlcreech94984912008-03-04 19:03:08 +000020567 --he | --h | --help | --hel | -h )
20568 echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000020569 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20570 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20571 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000020572
drh71eb93e2001-09-28 01:34:43 +000020573 # This is an error.
mlcreech94984912008-03-04 19:03:08 +000020574 -*) { echo "$as_me: error: unrecognized option: $1
20575Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000020576 { (exit 1); exit 1; }; } ;;
20577
mlcreech94984912008-03-04 19:03:08 +000020578 *) ac_config_targets="$ac_config_targets $1"
20579 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000020580
20581 esac
20582 shift
20583done
20584
a.rottmann84e63352003-03-24 09:42:16 +000020585ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000020586
a.rottmann84e63352003-03-24 09:42:16 +000020587if $ac_cs_silent; then
20588 exec 6>/dev/null
20589 ac_configure_extra_args="$ac_configure_extra_args --silent"
20590fi
drh71eb93e2001-09-28 01:34:43 +000020591
20592_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020593cat >>$CONFIG_STATUS <<_ACEOF
20594if \$ac_cs_recheck; then
mlcreech94984912008-03-04 19:03:08 +000020595 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20596 CONFIG_SHELL=$SHELL
20597 export CONFIG_SHELL
20598 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000020599fi
drh71eb93e2001-09-28 01:34:43 +000020600
a.rottmann84e63352003-03-24 09:42:16 +000020601_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020602cat >>$CONFIG_STATUS <<\_ACEOF
20603exec 5>>config.log
20604{
20605 echo
20606 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20607## Running $as_me. ##
20608_ASBOX
20609 echo "$ac_log"
20610} >&5
a.rottmann84e63352003-03-24 09:42:16 +000020611
mlcreech94984912008-03-04 19:03:08 +000020612_ACEOF
20613cat >>$CONFIG_STATUS <<_ACEOF
20614_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020615
20616cat >>$CONFIG_STATUS <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020617
20618# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000020619for ac_config_target in $ac_config_targets
20620do
mlcreech94984912008-03-04 19:03:08 +000020621 case $ac_config_target in
20622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20623 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
20624
a.rottmann84e63352003-03-24 09:42:16 +000020625 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000020626echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20627 { (exit 1); exit 1; }; };;
20628 esac
20629done
20630
mlcreech94984912008-03-04 19:03:08 +000020631
drh71eb93e2001-09-28 01:34:43 +000020632# If the user did not use the arguments to specify the items to instantiate,
20633# then the envvar interface is used. Set only those that are not.
20634# We use the long form for the default assignment because of an extremely
20635# bizarre bug on SunOS 4.1.3.
20636if $ac_need_defaults; then
20637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20638fi
20639
a.rottmann84e63352003-03-24 09:42:16 +000020640# Have a temporary directory for convenience. Make it in the build tree
mlcreech94984912008-03-04 19:03:08 +000020641# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000020642# creating and moving files from /tmp can sometimes cause problems.
mlcreech94984912008-03-04 19:03:08 +000020643# Hook for its removal unless debugging.
20644# Note that there is a small window in which the directory will not be cleaned:
20645# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000020646$debug ||
20647{
mlcreech94984912008-03-04 19:03:08 +000020648 tmp=
20649 trap 'exit_status=$?
20650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20651' 0
drh71eb93e2001-09-28 01:34:43 +000020652 trap '{ (exit 1); exit 1; }' 1 2 13 15
20653}
drh71eb93e2001-09-28 01:34:43 +000020654# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000020655
drh71eb93e2001-09-28 01:34:43 +000020656{
mlcreech94984912008-03-04 19:03:08 +000020657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000020658 test -n "$tmp" && test -d "$tmp"
20659} ||
20660{
mlcreech94984912008-03-04 19:03:08 +000020661 tmp=./conf$$-$RANDOM
20662 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000020663} ||
20664{
a.rottmann84e63352003-03-24 09:42:16 +000020665 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000020666 { (exit 1); exit 1; }
20667}
20668
drh71eb93e2001-09-28 01:34:43 +000020669#
mlcreech94984912008-03-04 19:03:08 +000020670# Set up the sed scripts for CONFIG_FILES section.
drh71eb93e2001-09-28 01:34:43 +000020671#
20672
20673# No need to generate the scripts if there are no CONFIG_FILES.
20674# This happens for instance when ./config.status config.h
mlcreech94984912008-03-04 19:03:08 +000020675if test -n "$CONFIG_FILES"; then
drh71eb93e2001-09-28 01:34:43 +000020676
a.rottmann84e63352003-03-24 09:42:16 +000020677_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020678
mlcreech94984912008-03-04 19:03:08 +000020679
20680
20681ac_delim='%!_!# '
20682for ac_last_try in false false false false false :; do
20683 cat >conf$$subs.sed <<_ACEOF
20684SHELL!$SHELL$ac_delim
20685PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20686PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20687PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20688PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20689PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20690PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20691exec_prefix!$exec_prefix$ac_delim
20692prefix!$prefix$ac_delim
20693program_transform_name!$program_transform_name$ac_delim
20694bindir!$bindir$ac_delim
20695sbindir!$sbindir$ac_delim
20696libexecdir!$libexecdir$ac_delim
20697datarootdir!$datarootdir$ac_delim
20698datadir!$datadir$ac_delim
20699sysconfdir!$sysconfdir$ac_delim
20700sharedstatedir!$sharedstatedir$ac_delim
20701localstatedir!$localstatedir$ac_delim
20702includedir!$includedir$ac_delim
20703oldincludedir!$oldincludedir$ac_delim
20704docdir!$docdir$ac_delim
20705infodir!$infodir$ac_delim
20706htmldir!$htmldir$ac_delim
20707dvidir!$dvidir$ac_delim
20708pdfdir!$pdfdir$ac_delim
20709psdir!$psdir$ac_delim
20710libdir!$libdir$ac_delim
20711localedir!$localedir$ac_delim
20712mandir!$mandir$ac_delim
20713DEFS!$DEFS$ac_delim
20714ECHO_C!$ECHO_C$ac_delim
20715ECHO_N!$ECHO_N$ac_delim
20716ECHO_T!$ECHO_T$ac_delim
20717LIBS!$LIBS$ac_delim
20718build_alias!$build_alias$ac_delim
20719host_alias!$host_alias$ac_delim
20720target_alias!$target_alias$ac_delim
20721build!$build$ac_delim
20722build_cpu!$build_cpu$ac_delim
20723build_vendor!$build_vendor$ac_delim
20724build_os!$build_os$ac_delim
20725host!$host$ac_delim
20726host_cpu!$host_cpu$ac_delim
20727host_vendor!$host_vendor$ac_delim
20728host_os!$host_os$ac_delim
20729CC!$CC$ac_delim
20730CFLAGS!$CFLAGS$ac_delim
20731LDFLAGS!$LDFLAGS$ac_delim
20732CPPFLAGS!$CPPFLAGS$ac_delim
20733ac_ct_CC!$ac_ct_CC$ac_delim
20734EXEEXT!$EXEEXT$ac_delim
20735OBJEXT!$OBJEXT$ac_delim
20736GREP!$GREP$ac_delim
20737EGREP!$EGREP$ac_delim
20738LN_S!$LN_S$ac_delim
20739ECHO!$ECHO$ac_delim
20740AR!$AR$ac_delim
20741RANLIB!$RANLIB$ac_delim
20742STRIP!$STRIP$ac_delim
20743CPP!$CPP$ac_delim
20744CXX!$CXX$ac_delim
20745CXXFLAGS!$CXXFLAGS$ac_delim
20746ac_ct_CXX!$ac_ct_CXX$ac_delim
20747CXXCPP!$CXXCPP$ac_delim
20748F77!$F77$ac_delim
20749FFLAGS!$FFLAGS$ac_delim
20750ac_ct_F77!$ac_ct_F77$ac_delim
20751LIBTOOL!$LIBTOOL$ac_delim
20752INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20753INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20754INSTALL_DATA!$INSTALL_DATA$ac_delim
20755AWK!$AWK$ac_delim
20756program_prefix!$program_prefix$ac_delim
20757VERSION!$VERSION$ac_delim
20758RELEASE!$RELEASE$ac_delim
20759VERSION_NUMBER!$VERSION_NUMBER$ac_delim
20760BUILD_CC!$BUILD_CC$ac_delim
20761BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
20762SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
20763TARGET_THREAD_LIB!$TARGET_THREAD_LIB$ac_delim
20764XTHREADCONNECT!$XTHREADCONNECT$ac_delim
20765THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
20766ALLOWRELEASE!$ALLOWRELEASE$ac_delim
20767TEMP_STORE!$TEMP_STORE$ac_delim
20768BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20769OS_UNIX!$OS_UNIX$ac_delim
20770OS_WIN!$OS_WIN$ac_delim
20771OS_OS2!$OS_OS2$ac_delim
20772TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
20773TCL_VERSION!$TCL_VERSION$ac_delim
20774TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
20775TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
20776TCL_LIBS!$TCL_LIBS$ac_delim
20777TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
20778TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
20779TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
20780TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
20781_ACEOF
20782
20783 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20784 break
20785 elif $ac_last_try; then
20786 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20787echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20788 { (exit 1); exit 1; }; }
20789 else
20790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000020791 fi
mlcreech94984912008-03-04 19:03:08 +000020792done
20793
20794ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20795if test -n "$ac_eof"; then
20796 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20797 ac_eof=`expr $ac_eof + 1`
20798fi
20799
20800cat >>$CONFIG_STATUS <<_ACEOF
20801cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20802/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20803_ACEOF
20804sed '
20805s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20806s/^/s,@/; s/!/@,|#_!!_#|/
20807:n
20808t n
20809s/'"$ac_delim"'$/,g/; t
20810s/$/\\/; p
20811N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20812' >>$CONFIG_STATUS <conf$$subs.sed
20813rm -f conf$$subs.sed
20814cat >>$CONFIG_STATUS <<_ACEOF
20815CEOF$ac_eof
20816_ACEOF
20817
20818
20819ac_delim='%!_!# '
20820for ac_last_try in false false false false false :; do
20821 cat >conf$$subs.sed <<_ACEOF
20822TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
20823TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
20824TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
20825HAVE_TCL!$HAVE_TCL$ac_delim
20826TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
20827TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
20828TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
20829TARGET_DEBUG!$TARGET_DEBUG$ac_delim
20830USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim
20831LIBOBJS!$LIBOBJS$ac_delim
20832LTLIBOBJS!$LTLIBOBJS$ac_delim
20833_ACEOF
20834
20835 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
20836 break
20837 elif $ac_last_try; then
20838 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20839echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20840 { (exit 1); exit 1; }; }
20841 else
20842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20843 fi
20844done
20845
20846ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20847if test -n "$ac_eof"; then
20848 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20849 ac_eof=`expr $ac_eof + 1`
20850fi
20851
20852cat >>$CONFIG_STATUS <<_ACEOF
20853cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20855_ACEOF
20856sed '
20857s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20858s/^/s,@/; s/!/@,|#_!!_#|/
20859:n
20860t n
20861s/'"$ac_delim"'$/,g/; t
20862s/$/\\/; p
20863N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20864' >>$CONFIG_STATUS <conf$$subs.sed
20865rm -f conf$$subs.sed
20866cat >>$CONFIG_STATUS <<_ACEOF
20867:end
20868s/|#_!!_#|//g
20869CEOF$ac_eof
20870_ACEOF
20871
20872
20873# VPATH may cause trouble with some makes, so we remove $(srcdir),
20874# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20875# trailing colons and then remove the whole line if VPATH becomes empty
20876# (actually we leave an empty line to preserve line numbers).
20877if test "x$srcdir" = x.; then
20878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20879s/:*\$(srcdir):*/:/
20880s/:*\${srcdir}:*/:/
20881s/:*@srcdir@:*/:/
20882s/^\([^=]*=[ ]*\):*/\1/
20883s/:*$//
20884s/^[^=]*=[ ]*$//
20885}'
20886fi
20887
20888cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000020889fi # test -n "$CONFIG_FILES"
20890
mlcreech94984912008-03-04 19:03:08 +000020891
20892for ac_tag in :F $CONFIG_FILES
20893do
20894 case $ac_tag in
20895 :[FHLC]) ac_mode=$ac_tag; continue;;
20896 esac
20897 case $ac_mode$ac_tag in
20898 :[FHL]*:*);;
20899 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20900echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20901 { (exit 1); exit 1; }; };;
20902 :[FH]-) ac_tag=-:-;;
20903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20904 esac
20905 ac_save_IFS=$IFS
20906 IFS=:
20907 set x $ac_tag
20908 IFS=$ac_save_IFS
20909 shift
20910 ac_file=$1
20911 shift
20912
20913 case $ac_mode in
20914 :L) ac_source=$1;;
20915 :[FH])
20916 ac_file_inputs=
20917 for ac_f
20918 do
20919 case $ac_f in
20920 -) ac_f="$tmp/stdin";;
20921 *) # Look for the file first in the build tree, then in the source tree
20922 # (if the path is not absolute). The absolute path cannot be DOS-style,
20923 # because $ac_f cannot contain `:'.
20924 test -f "$ac_f" ||
20925 case $ac_f in
20926 [\\/$]*) false;;
20927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20928 esac ||
20929 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20930echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20931 { (exit 1); exit 1; }; };;
20932 esac
20933 ac_file_inputs="$ac_file_inputs $ac_f"
20934 done
20935
20936 # Let's still pretend it is `configure' which instantiates (i.e., don't
20937 # use $as_me), people would be surprised to read:
20938 # /* config.h. Generated by config.status. */
20939 configure_input="Generated from "`IFS=:
20940 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20941 if test x"$ac_file" != x-; then
20942 configure_input="$ac_file. $configure_input"
20943 { echo "$as_me:$LINENO: creating $ac_file" >&5
20944echo "$as_me: creating $ac_file" >&6;}
20945 fi
20946
20947 case $ac_tag in
20948 *:-:* | *:-) cat >"$tmp/stdin";;
20949 esac
20950 ;;
drh71eb93e2001-09-28 01:34:43 +000020951 esac
20952
mlcreech94984912008-03-04 19:03:08 +000020953 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000020954$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000020955 X"$ac_file" : 'X\(//\)[^/]' \| \
20956 X"$ac_file" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000020957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000020958echo X"$ac_file" |
mlcreech94984912008-03-04 19:03:08 +000020959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20960 s//\1/
20961 q
20962 }
20963 /^X\(\/\/\)[^/].*/{
20964 s//\1/
20965 q
20966 }
20967 /^X\(\/\/\)$/{
20968 s//\1/
20969 q
20970 }
20971 /^X\(\/\).*/{
20972 s//\1/
20973 q
20974 }
20975 s/.*/./; q'`
20976 { as_dir="$ac_dir"
20977 case $as_dir in #(
20978 -*) as_dir=./$as_dir;;
20979 esac
20980 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000020981 as_dirs=
mlcreech94984912008-03-04 19:03:08 +000020982 while :; do
20983 case $as_dir in #(
20984 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20985 *) as_qdir=$as_dir;;
20986 esac
20987 as_dirs="'$as_qdir' $as_dirs"
20988 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000020989$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000020990 X"$as_dir" : 'X\(//\)[^/]' \| \
20991 X"$as_dir" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000020992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000020993echo X"$as_dir" |
mlcreech94984912008-03-04 19:03:08 +000020994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20995 s//\1/
20996 q
20997 }
20998 /^X\(\/\/\)[^/].*/{
20999 s//\1/
21000 q
21001 }
21002 /^X\(\/\/\)$/{
21003 s//\1/
21004 q
21005 }
21006 /^X\(\/\).*/{
21007 s//\1/
21008 q
21009 }
21010 s/.*/./; q'`
21011 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000021012 done
mlcreech94984912008-03-04 19:03:08 +000021013 test -z "$as_dirs" || eval "mkdir $as_dirs"
21014 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21015echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000021016 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000021017 ac_builddir=.
21018
mlcreech94984912008-03-04 19:03:08 +000021019case "$ac_dir" in
21020.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21021*)
a.rottmann84e63352003-03-24 09:42:16 +000021022 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +000021023 # A ".." for each directory in $ac_dir_suffix.
21024 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21025 case $ac_top_builddir_sub in
21026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21028 esac ;;
21029esac
21030ac_abs_top_builddir=$ac_pwd
21031ac_abs_builddir=$ac_pwd$ac_dir_suffix
21032# for backward compatibility:
21033ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000021034
21035case $srcdir in
mlcreech94984912008-03-04 19:03:08 +000021036 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000021037 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +000021038 ac_top_srcdir=$ac_top_builddir_sub
21039 ac_abs_top_srcdir=$ac_pwd ;;
21040 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000021041 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +000021042 ac_top_srcdir=$srcdir
21043 ac_abs_top_srcdir=$srcdir ;;
21044 *) # Relative name.
21045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21046 ac_top_srcdir=$ac_top_build_prefix$srcdir
21047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000021048esac
mlcreech94984912008-03-04 19:03:08 +000021049ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000021050
a.rottmann84e63352003-03-24 09:42:16 +000021051
mlcreech94984912008-03-04 19:03:08 +000021052 case $ac_mode in
21053 :F)
21054 #
21055 # CONFIG_FILE
21056 #
drh75897232000-05-29 14:26:00 +000021057
drh71eb93e2001-09-28 01:34:43 +000021058 case $INSTALL in
21059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mlcreech94984912008-03-04 19:03:08 +000021060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021061 esac
vapier7f19c022007-02-17 14:46:31 +000021062_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021063
21064cat >>$CONFIG_STATUS <<\_ACEOF
21065# If the template does not know about datarootdir, expand it.
21066# FIXME: This hack should be removed a few years after 2.60.
21067ac_datarootdir_hack=; ac_datarootdir_seen=
21068
21069case `sed -n '/datarootdir/ {
21070 p
21071 q
21072}
21073/@datadir@/p
21074/@docdir@/p
21075/@infodir@/p
21076/@localedir@/p
21077/@mandir@/p
21078' $ac_file_inputs` in
21079*datarootdir*) ac_datarootdir_seen=yes;;
21080*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21081 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21082echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21083_ACEOF
21084cat >>$CONFIG_STATUS <<_ACEOF
21085 ac_datarootdir_hack='
21086 s&@datadir@&$datadir&g
21087 s&@docdir@&$docdir&g
21088 s&@infodir@&$infodir&g
21089 s&@localedir@&$localedir&g
21090 s&@mandir@&$mandir&g
21091 s&\\\${datarootdir}&$datarootdir&g' ;;
21092esac
21093_ACEOF
21094
21095# Neutralize VPATH when `$srcdir' = `.'.
21096# Shell code in configure.ac might set extrasub.
21097# FIXME: do we really want to maintain this feature?
vapier7f19c022007-02-17 14:46:31 +000021098cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021099 sed "$ac_vpsub
21100$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021101_ACEOF
21102cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021103:t
21104/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mlcreech94984912008-03-04 19:03:08 +000021105s&@configure_input@&$configure_input&;t t
21106s&@top_builddir@&$ac_top_builddir_sub&;t t
21107s&@srcdir@&$ac_srcdir&;t t
21108s&@abs_srcdir@&$ac_abs_srcdir&;t t
21109s&@top_srcdir@&$ac_top_srcdir&;t t
21110s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21111s&@builddir@&$ac_builddir&;t t
21112s&@abs_builddir@&$ac_abs_builddir&;t t
21113s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21114s&@INSTALL@&$ac_INSTALL&;t t
21115$ac_datarootdir_hack
21116" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
drh75897232000-05-29 14:26:00 +000021117
mlcreech94984912008-03-04 19:03:08 +000021118test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21119 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21121 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21122which seems to be undefined. Please make sure it is defined." >&5
21123echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21124which seems to be undefined. Please make sure it is defined." >&2;}
drh71eb93e2001-09-28 01:34:43 +000021125
mlcreech94984912008-03-04 19:03:08 +000021126 rm -f "$tmp/stdin"
21127 case $ac_file in
21128 -) cat "$tmp/out"; rm -f "$tmp/out";;
21129 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21130 esac
21131 ;;
21132
21133
21134
21135 esac
21136
21137done # for ac_tag
21138
drh71eb93e2001-09-28 01:34:43 +000021139
21140{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000021141_ACEOF
drh75897232000-05-29 14:26:00 +000021142chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000021143ac_clean_files=$ac_clean_files_save
21144
a.rottmann84e63352003-03-24 09:42:16 +000021145
drh71eb93e2001-09-28 01:34:43 +000021146# configure is writing to config.log, and then calls config.status.
21147# config.status does its own redirection, appending to config.log.
21148# Unfortunately, on DOS this fails, as config.log is still kept open
21149# by configure, so config.status won't be able to write to it; its
21150# output is simply discarded. So we exec the FD to /dev/null,
21151# effectively closing config.log, so it can be properly (re)opened and
21152# appended to by config.status. When coming back to configure, we
21153# need to make the FD available again.
21154if test "$no_create" != yes; then
21155 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000021156 ac_config_status_args=
21157 test "$silent" = yes &&
21158 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000021159 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000021160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000021161 exec 5>>config.log
21162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21163 # would make configure fail if this is the last instruction.
21164 $ac_cs_success || { (exit 1); exit 1; }
21165fi
drh613a0fe2007-11-23 17:31:17 +000021166