blob: 0d9ad8157a297136f687a3bc0ada77959fe40ee1 [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.
mlcreechf3868112008-03-11 18:03:30 +00003# Generated by GNU Autoconf 2.61 for sqlite 3.5.7.
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.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
mlcreechf3868112008-03-11 18:03:30 +0000729PACKAGE_VERSION='3.5.7'
730PACKAGE_STRING='sqlite 3.5.7'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000732
a.rottmann84e63352003-03-24 09:42:16 +0000733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
mlcreech94984912008-03-04 19:03:08 +0000736#ifdef HAVE_SYS_TYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000737# include <sys/types.h>
738#endif
mlcreech94984912008-03-04 19:03:08 +0000739#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000740# include <sys/stat.h>
741#endif
mlcreech94984912008-03-04 19:03:08 +0000742#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000743# include <stdlib.h>
744# include <stddef.h>
745#else
mlcreech94984912008-03-04 19:03:08 +0000746# ifdef HAVE_STDLIB_H
a.rottmann84e63352003-03-24 09:42:16 +0000747# include <stdlib.h>
748# endif
749#endif
mlcreech94984912008-03-04 19:03:08 +0000750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000752# include <memory.h>
753# endif
754# include <string.h>
755#endif
mlcreech94984912008-03-04 19:03:08 +0000756#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <strings.h>
758#endif
mlcreech94984912008-03-04 19:03:08 +0000759#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000761#endif
mlcreech94984912008-03-04 19:03:08 +0000762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000766# include <unistd.h>
767#endif"
768
mlcreech94984912008-03-04 19:03:08 +0000769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806build
807build_cpu
808build_vendor
809build_os
810host
811host_cpu
812host_vendor
813host_os
814CC
815CFLAGS
816LDFLAGS
817CPPFLAGS
818ac_ct_CC
819EXEEXT
820OBJEXT
821GREP
822EGREP
823LN_S
824ECHO
825AR
826RANLIB
827STRIP
828CPP
829CXX
830CXXFLAGS
831ac_ct_CXX
832CXXCPP
833F77
834FFLAGS
835ac_ct_F77
836LIBTOOL
837INSTALL_PROGRAM
838INSTALL_SCRIPT
839INSTALL_DATA
840AWK
mlcreechab1c47b2008-03-09 02:51:10 +0000841TCLSH_CMD
mlcreech94984912008-03-04 19:03:08 +0000842program_prefix
843VERSION
844RELEASE
845VERSION_NUMBER
846BUILD_CC
mlcreech94984912008-03-04 19:03:08 +0000847SQLITE_THREADSAFE
mlcreech94984912008-03-04 19:03:08 +0000848XTHREADCONNECT
849THREADSOVERRIDELOCKS
850ALLOWRELEASE
851TEMP_STORE
852BUILD_EXEEXT
853OS_UNIX
854OS_WIN
855OS_OS2
856TARGET_EXEEXT
857TCL_VERSION
858TCL_BIN_DIR
859TCL_SRC_DIR
860TCL_LIBS
861TCL_INCLUDE_SPEC
862TCL_LIB_FILE
863TCL_LIB_FLAG
864TCL_LIB_SPEC
865TCL_STUB_LIB_FILE
866TCL_STUB_LIB_FLAG
867TCL_STUB_LIB_SPEC
868HAVE_TCL
869TARGET_READLINE_LIBS
870TARGET_READLINE_INC
871TARGET_HAVE_READLINE
872TARGET_DEBUG
873USE_AMALGAMATION
mlcreecha4edab02008-03-06 04:14:17 +0000874LOADEXTENSION_FLAGS
mlcreech8390bc32008-03-06 08:54:38 +0000875BUILD_CFLAGS
mlcreech94984912008-03-04 19:03:08 +0000876LIBOBJS
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'
mlcreechb87057f2008-03-06 07:19:20 +0000932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
mlcreech94984912008-03-04 19:03:08 +0000933infodir='${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
mlcreechf3868112008-03-11 18:03:30 +00001396\`configure' configures sqlite 3.5.7 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001397
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]
mlcreechb87057f2008-03-06 07:19:20 +00001444 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
mlcreech94984912008-03-04 19:03:08 +00001445 --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
mlcreechb87057f2008-03-06 07:19:20 +00001460 case $ac_init_help in
mlcreechf3868112008-03-11 18:03:30 +00001461 short | recursive ) echo "Configuration of sqlite 3.5.7:";;
mlcreechb87057f2008-03-06 07:19:20 +00001462 esac
a.rottmann84e63352003-03-24 09:42:16 +00001463 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001464
1465Optional Features:
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
mlcreech94984912008-03-04 19:03:08 +00001468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001470 --enable-fast-install[=PKGS]
1471 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001472 --disable-libtool-lock avoid locking (might break parallel builds)
drh94e4f822006-02-15 02:00:25 +00001473 --enable-threadsafe Support threadsafe operation
1474 --enable-cross-thread-connections
1475 Allow connection sharing across threads
1476 --enable-threads-override-locks
1477 Threads can override each others locks
1478 --enable-releasemode Support libtool link to release mode
1479 --enable-tempstore Use an in-ram database for temporary tables
1480 (never,no,yes,always)
1481 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001482 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001483 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001484 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001485 separately
mlcreecha4edab02008-03-06 04:14:17 +00001486 --enable-load-extension Enable loading of external extensions
drh71eb93e2001-09-28 01:34:43 +00001487
1488Optional Packages:
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1493 both]
mlcreech94984912008-03-04 19:03:08 +00001494 --with-tags[=TAGS] include additional configurations [automatic]
drh71eb93e2001-09-28 01:34:43 +00001495 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001496 --with-tcl=DIR directory containing tcl configuration
1497 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001498 --with-readline-lib specify readline library
1499 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001500
1501Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
mlcreech94984912008-03-04 19:03:08 +00001506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001509 CPP C preprocessor
a.rottmann9bc8b932004-02-29 15:18:31 +00001510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 CXXCPP C++ preprocessor
1513 F77 Fortran 77 compiler command
1514 FFLAGS Fortran 77 compiler flags
drh71eb93e2001-09-28 01:34:43 +00001515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
a.rottmann84e63352003-03-24 09:42:16 +00001519_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001520ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
mlcreech94984912008-03-04 19:03:08 +00001526 test -d "$ac_dir" || continue
a.rottmann84e63352003-03-24 09:42:16 +00001527 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001528
mlcreech94984912008-03-04 19:03:08 +00001529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
a.rottmann84e63352003-03-24 09:42:16 +00001532 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +00001533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001544
a.rottmann84e63352003-03-24 09:42:16 +00001545case $srcdir in
mlcreech94984912008-03-04 19:03:08 +00001546 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001547 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +00001548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +00001551 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +00001552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +00001558esac
mlcreech94984912008-03-04 19:03:08 +00001559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +00001560
mlcreech94984912008-03-04 19:03:08 +00001561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
1563 if test -f "$ac_srcdir/configure.gnu"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
1567 echo &&
1568 $SHELL "$ac_srcdir/configure" --help=recursive
drh71eb93e2001-09-28 01:34:43 +00001569 else
a.rottmann84e63352003-03-24 09:42:16 +00001570 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mlcreech94984912008-03-04 19:03:08 +00001571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001573 done
1574fi
1575
mlcreech94984912008-03-04 19:03:08 +00001576test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001577if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001578 cat <<\_ACEOF
mlcreechf3868112008-03-11 18:03:30 +00001579sqlite configure 3.5.7
mlcreech94984912008-03-04 19:03:08 +00001580generated by GNU Autoconf 2.61
drh71eb93e2001-09-28 01:34:43 +00001581
mlcreech94984912008-03-04 19:03:08 +00001582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001586_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001587 exit
drh71eb93e2001-09-28 01:34:43 +00001588fi
mlcreech94984912008-03-04 19:03:08 +00001589cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
mlcreechf3868112008-03-11 18:03:30 +00001593It was created by sqlite $as_me 3.5.7, which was
mlcreech94984912008-03-04 19:03:08 +00001594generated by GNU Autoconf 2.61. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001595
1596 $ $0 $@
1597
a.rottmann84e63352003-03-24 09:42:16 +00001598_ACEOF
mlcreech94984912008-03-04 19:03:08 +00001599exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001600{
1601cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001602## --------- ##
1603## Platform. ##
1604## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1614
1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mlcreech94984912008-03-04 19:03:08 +00001618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1622
drh71eb93e2001-09-28 01:34:43 +00001623_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628 IFS=$as_save_IFS
1629 test -z "$as_dir" && as_dir=.
1630 echo "PATH: $as_dir"
1631done
mlcreech94984912008-03-04 19:03:08 +00001632IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001633
drh71eb93e2001-09-28 01:34:43 +00001634} >&5
1635
a.rottmann84e63352003-03-24 09:42:16 +00001636cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001637
a.rottmann84e63352003-03-24 09:42:16 +00001638
1639## ----------- ##
1640## Core tests. ##
1641## ----------- ##
1642
1643_ACEOF
1644
drh71eb93e2001-09-28 01:34:43 +00001645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001648# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001649# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001650# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001651ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001652ac_configure_args0=
1653ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001654ac_must_keep_next=false
1655for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001656do
a.rottmann84e63352003-03-24 09:42:16 +00001657 for ac_arg
1658 do
1659 case $ac_arg in
1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662 | -silent | --silent | --silen | --sile | --sil)
1663 continue ;;
mlcreech94984912008-03-04 19:03:08 +00001664 *\'*)
a.rottmann84e63352003-03-24 09:42:16 +00001665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666 esac
1667 case $ac_pass in
1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669 2)
1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001672 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001673 else
a.rottmann964dbb12004-02-26 19:47:42 +00001674 case $ac_arg in
1675 *=* | --config-cache | -C | -disable-* | --disable-* \
1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678 | -with-* | --with-* | -without-* | --without-* | --x)
1679 case "$ac_configure_args0 " in
1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681 esac
1682 ;;
1683 -* ) ac_must_keep_next=true ;;
1684 esac
a.rottmann84e63352003-03-24 09:42:16 +00001685 fi
mlcreech94984912008-03-04 19:03:08 +00001686 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001687 ;;
1688 esac
1689 done
drh71eb93e2001-09-28 01:34:43 +00001690done
a.rottmann84e63352003-03-24 09:42:16 +00001691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log. We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
mlcreech94984912008-03-04 19:03:08 +00001697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001699trap 'exit_status=$?
1700 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001701 {
1702 echo
1703
1704 cat <<\_ASBOX
1705## ---------------- ##
1706## Cache variables. ##
1707## ---------------- ##
1708_ASBOX
1709 echo
1710 # The following way of writing the cache mishandles newlines in values,
mlcreech94984912008-03-04 19:03:08 +00001711(
1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713 eval ac_val=\$$ac_var
1714 case $ac_val in #(
1715 *${as_nl}*)
1716 case $ac_var in #(
1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719 esac
1720 case $ac_var in #(
1721 _ | IFS | as_nl) ;; #(
1722 *) $as_unset $ac_var ;;
1723 esac ;;
1724 esac
1725 done
drh71eb93e2001-09-28 01:34:43 +00001726 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +00001727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001729 sed -n \
mlcreech94984912008-03-04 19:03:08 +00001730 "s/'\''/'\''\\\\'\'''\''/g;
1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732 ;; #(
drh613a0fe2007-11-23 17:31:17 +00001733 *)
mlcreech94984912008-03-04 19:03:08 +00001734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh613a0fe2007-11-23 17:31:17 +00001735 ;;
mlcreech94984912008-03-04 19:03:08 +00001736 esac |
1737 sort
1738)
a.rottmann84e63352003-03-24 09:42:16 +00001739 echo
1740
1741 cat <<\_ASBOX
1742## ----------------- ##
1743## Output variables. ##
1744## ----------------- ##
1745_ASBOX
1746 echo
1747 for ac_var in $ac_subst_vars
1748 do
mlcreech94984912008-03-04 19:03:08 +00001749 eval ac_val=\$$ac_var
1750 case $ac_val in
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752 esac
1753 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001754 done | sort
1755 echo
1756
1757 if test -n "$ac_subst_files"; then
1758 cat <<\_ASBOX
mlcreech94984912008-03-04 19:03:08 +00001759## ------------------- ##
1760## File substitutions. ##
1761## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001762_ASBOX
1763 echo
1764 for ac_var in $ac_subst_files
1765 do
mlcreech94984912008-03-04 19:03:08 +00001766 eval ac_val=\$$ac_var
1767 case $ac_val in
1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769 esac
1770 echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001771 done | sort
1772 echo
1773 fi
1774
1775 if test -s confdefs.h; then
1776 cat <<\_ASBOX
1777## ----------- ##
1778## confdefs.h. ##
1779## ----------- ##
1780_ASBOX
1781 echo
mlcreech94984912008-03-04 19:03:08 +00001782 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001783 echo
1784 fi
1785 test "$ac_signal" != 0 &&
1786 echo "$as_me: caught signal $ac_signal"
1787 echo "$as_me: exit $exit_status"
1788 } >&5
mlcreech94984912008-03-04 19:03:08 +00001789 rm -f core *.core core.conftest.* &&
1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001791 exit $exit_status
mlcreech94984912008-03-04 19:03:08 +00001792' 0
drh71eb93e2001-09-28 01:34:43 +00001793for ac_signal in 1 2 13 15; do
1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
mlcreech94984912008-03-04 19:03:08 +00001799rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001800
a.rottmann84e63352003-03-24 09:42:16 +00001801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
drh71eb93e2001-09-28 01:34:43 +00001828# Let the site file select an alternate cache file if it wants to.
drh75897232000-05-29 14:26:00 +00001829# Prefer explicitly selected file to automatically selected ones.
mlcreech94984912008-03-04 19:03:08 +00001830if test -n "$CONFIG_SITE"; then
1831 set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835 set x "$ac_default_prefix/share/config.site" \
1836 "$ac_default_prefix/etc/config.site"
drh75897232000-05-29 14:26:00 +00001837fi
mlcreech94984912008-03-04 19:03:08 +00001838shift
1839for ac_site_file
1840do
drh75897232000-05-29 14:26:00 +00001841 if test -r "$ac_site_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001843echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001844 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001845 . "$ac_site_file"
1846 fi
1847done
1848
1849if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
a.rottmann84e63352003-03-24 09:42:16 +00001853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001854echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
mlcreech94984912008-03-04 19:03:08 +00001856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001858 esac
1859 fi
drh75897232000-05-29 14:26:00 +00001860else
a.rottmann84e63352003-03-24 09:42:16 +00001861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh71eb93e2001-09-28 01:34:43 +00001862echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
mlcreech94984912008-03-04 19:03:08 +00001869for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001870 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871 eval ac_new_set=\$ac_env_${ac_var}_set
mlcreech94984912008-03-04 19:03:08 +00001872 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001874 case $ac_old_set,$ac_new_set in
1875 set,)
a.rottmann84e63352003-03-24 09:42:16 +00001876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,set)
a.rottmann84e63352003-03-24 09:42:16 +00001880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh71eb93e2001-09-28 01:34:43 +00001881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882 ac_cache_corrupted=: ;;
1883 ,);;
1884 *)
1885 if test "x$ac_old_val" != "x$ac_new_val"; then
a.rottmann964dbb12004-02-26 19:47:42 +00001886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh71eb93e2001-09-28 01:34:43 +00001887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001889echo "$as_me: former value: $ac_old_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
drh71eb93e2001-09-28 01:34:43 +00001891echo "$as_me: current value: $ac_new_val" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00001892 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001893 fi;;
1894 esac
a.rottmann84e63352003-03-24 09:42:16 +00001895 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001896 if test "$ac_new_set" = set; then
1897 case $ac_new_val in
mlcreech94984912008-03-04 19:03:08 +00001898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001899 *) ac_arg=$ac_var=$ac_new_val ;;
1900 esac
1901 case " $ac_configure_args " in
1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001904 esac
1905 fi
1906done
1907if $ac_cache_corrupted; then
a.rottmann84e63352003-03-24 09:42:16 +00001908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh71eb93e2001-09-28 01:34:43 +00001909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00001910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
drh71eb93e2001-09-28 01:34:43 +00001911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001913fi
1914
mlcreech94984912008-03-04 19:03:08 +00001915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
mlcreechb87057f2008-03-06 07:19:20 +00001931
1932
1933
1934
1935
1936
1937
1938
drh75897232000-05-29 14:26:00 +00001939ac_ext=c
drh75897232000-05-29 14:26:00 +00001940ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001944
a.rottmann84e63352003-03-24 09:42:16 +00001945
1946
drh75897232000-05-29 14:26:00 +00001947# The following RCS revision string applies to configure.in
mlcreech23797062008-03-20 02:25:35 +00001948# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00001949
1950#########
drh71eb93e2001-09-28 01:34:43 +00001951# Programs needed
drh75897232000-05-29 14:26:00 +00001952#
mlcreech94984912008-03-04 19:03:08 +00001953# Check whether --enable-shared was given.
drh71eb93e2001-09-28 01:34:43 +00001954if test "${enable_shared+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001955 enableval=$enable_shared; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001956 case $enableval in
1957 yes) enable_shared=yes ;;
1958 no) enable_shared=no ;;
1959 *)
1960 enable_shared=no
1961 # Look at the argument we got. We use all the common list separators.
1962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1963 for pkg in $enableval; do
1964 IFS="$lt_save_ifs"
1965 if test "X$pkg" = "X$p"; then
1966 enable_shared=yes
1967 fi
1968 done
1969 IFS="$lt_save_ifs"
1970 ;;
1971 esac
drh71eb93e2001-09-28 01:34:43 +00001972else
1973 enable_shared=yes
mlcreech94984912008-03-04 19:03:08 +00001974fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001975
mlcreech94984912008-03-04 19:03:08 +00001976
1977# Check whether --enable-static was given.
drh71eb93e2001-09-28 01:34:43 +00001978if test "${enable_static+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00001979 enableval=$enable_static; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00001980 case $enableval in
1981 yes) enable_static=yes ;;
1982 no) enable_static=no ;;
1983 *)
1984 enable_static=no
1985 # Look at the argument we got. We use all the common list separators.
1986 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1987 for pkg in $enableval; do
1988 IFS="$lt_save_ifs"
1989 if test "X$pkg" = "X$p"; then
1990 enable_static=yes
1991 fi
1992 done
1993 IFS="$lt_save_ifs"
1994 ;;
1995 esac
drh71eb93e2001-09-28 01:34:43 +00001996else
1997 enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00001998fi
a.rottmann9bc8b932004-02-29 15:18:31 +00001999
mlcreech94984912008-03-04 19:03:08 +00002000
2001# Check whether --enable-fast-install was given.
drh71eb93e2001-09-28 01:34:43 +00002002if test "${enable_fast_install+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00002003 enableval=$enable_fast_install; p=${PACKAGE-default}
a.rottmann9bc8b932004-02-29 15:18:31 +00002004 case $enableval in
2005 yes) enable_fast_install=yes ;;
2006 no) enable_fast_install=no ;;
2007 *)
2008 enable_fast_install=no
2009 # Look at the argument we got. We use all the common list separators.
2010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2011 for pkg in $enableval; do
2012 IFS="$lt_save_ifs"
2013 if test "X$pkg" = "X$p"; then
2014 enable_fast_install=yes
2015 fi
2016 done
2017 IFS="$lt_save_ifs"
2018 ;;
2019 esac
drh71eb93e2001-09-28 01:34:43 +00002020else
2021 enable_fast_install=yes
mlcreech94984912008-03-04 19:03:08 +00002022fi
2023
a.rottmann9bc8b932004-02-29 15:18:31 +00002024
drh71eb93e2001-09-28 01:34:43 +00002025ac_aux_dir=
mlcreech94984912008-03-04 19:03:08 +00002026for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2027 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install-sh -c"
2030 break
mlcreech94984912008-03-04 19:03:08 +00002031 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install.sh -c"
2034 break
mlcreech94984912008-03-04 19:03:08 +00002035 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/shtool install -c"
2038 break
2039 fi
2040done
2041if test -z "$ac_aux_dir"; then
mlcreech94984912008-03-04 19:03:08 +00002042 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2043echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002044 { (exit 1); exit 1; }; }
2045fi
mlcreech94984912008-03-04 19:03:08 +00002046
2047# These three variables are undocumented and unsupported,
2048# and are intended to be withdrawn in a future Autoconf release.
2049# They can cause serious problems if a builder's source tree is in a directory
2050# whose full name contains unusual characters.
2051ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2052ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2053ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2054
drh71eb93e2001-09-28 01:34:43 +00002055
2056# Make sure we can run config.sub.
mlcreech94984912008-03-04 19:03:08 +00002057$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2058 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2059echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002060 { (exit 1); exit 1; }; }
2061
mlcreech94984912008-03-04 19:03:08 +00002062{ echo "$as_me:$LINENO: checking build system type" >&5
2063echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002064if test "${ac_cv_build+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
mlcreech94984912008-03-04 19:03:08 +00002067 ac_build_alias=$build_alias
2068test "x$ac_build_alias" = x &&
2069 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2070test "x$ac_build_alias" = x &&
a.rottmann84e63352003-03-24 09:42:16 +00002071 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
drh71eb93e2001-09-28 01:34:43 +00002072echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2073 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002074ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2075 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2076echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002077 { (exit 1); exit 1; }; }
2078
2079fi
mlcreech94984912008-03-04 19:03:08 +00002080{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2081echo "${ECHO_T}$ac_cv_build" >&6; }
2082case $ac_cv_build in
2083*-*-*) ;;
2084*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2085echo "$as_me: error: invalid value of canonical build" >&2;}
2086 { (exit 1); exit 1; }; };;
2087esac
drh71eb93e2001-09-28 01:34:43 +00002088build=$ac_cv_build
mlcreech94984912008-03-04 19:03:08 +00002089ac_save_IFS=$IFS; IFS='-'
2090set x $ac_cv_build
2091shift
2092build_cpu=$1
2093build_vendor=$2
2094shift; shift
2095# Remember, the first character of IFS is used to create $*,
2096# except with old shells:
2097build_os=$*
2098IFS=$ac_save_IFS
2099case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002100
a.rottmann84e63352003-03-24 09:42:16 +00002101
mlcreech94984912008-03-04 19:03:08 +00002102{ echo "$as_me:$LINENO: checking host system type" >&5
2103echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002104if test "${ac_cv_host+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
mlcreech94984912008-03-04 19:03:08 +00002107 if test "x$host_alias" = x; then
2108 ac_cv_host=$ac_cv_build
2109else
2110 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2112echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002113 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00002114fi
drh71eb93e2001-09-28 01:34:43 +00002115
2116fi
mlcreech94984912008-03-04 19:03:08 +00002117{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2118echo "${ECHO_T}$ac_cv_host" >&6; }
2119case $ac_cv_host in
2120*-*-*) ;;
2121*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2122echo "$as_me: error: invalid value of canonical host" >&2;}
2123 { (exit 1); exit 1; }; };;
2124esac
drh71eb93e2001-09-28 01:34:43 +00002125host=$ac_cv_host
mlcreech94984912008-03-04 19:03:08 +00002126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_host
2128shift
2129host_cpu=$1
2130host_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134host_os=$*
2135IFS=$ac_save_IFS
2136case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002137
a.rottmann84e63352003-03-24 09:42:16 +00002138
drh71eb93e2001-09-28 01:34:43 +00002139ac_ext=c
2140ac_cpp='$CPP $CPPFLAGS'
2141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144if test -n "$ac_tool_prefix"; then
2145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2146set dummy ${ac_tool_prefix}gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002149if test "${ac_cv_prog_CC+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151else
2152 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else
a.rottmann84e63352003-03-24 09:42:16 +00002155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002161 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 +00002162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2
2165 fi
2166done
drh71eb93e2001-09-28 01:34:43 +00002167done
mlcreech94984912008-03-04 19:03:08 +00002168IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002169
2170fi
2171fi
2172CC=$ac_cv_prog_CC
2173if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002174 { echo "$as_me:$LINENO: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002176else
mlcreech94984912008-03-04 19:03:08 +00002177 { echo "$as_me:$LINENO: result: no" >&5
2178echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002179fi
2180
mlcreech94984912008-03-04 19:03:08 +00002181
drh71eb93e2001-09-28 01:34:43 +00002182fi
2183if test -z "$ac_cv_prog_CC"; then
2184 ac_ct_CC=$CC
2185 # Extract the first word of "gcc", so it can be a program name with args.
2186set dummy gcc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002187{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191else
2192 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194else
a.rottmann84e63352003-03-24 09:42:16 +00002195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002201 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 +00002202 ac_cv_prog_ac_ct_CC="gcc"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2
2205 fi
2206done
drh71eb93e2001-09-28 01:34:43 +00002207done
mlcreech94984912008-03-04 19:03:08 +00002208IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002209
2210fi
2211fi
2212ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002214 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002216else
mlcreech94984912008-03-04 19:03:08 +00002217 { echo "$as_me:$LINENO: result: no" >&5
2218echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002219fi
2220
mlcreech94984912008-03-04 19:03:08 +00002221 if test "x$ac_ct_CC" = x; then
2222 CC=""
2223 else
2224 case $cross_compiling:$ac_tool_warned in
2225yes:)
2226{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2227whose name does not start with the host triplet. If you think this
2228configuration is useful to you, please write to autoconf@gnu.org." >&5
2229echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2230whose name does not start with the host triplet. If you think this
2231configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2232ac_tool_warned=yes ;;
2233esac
2234 CC=$ac_ct_CC
2235 fi
drh71eb93e2001-09-28 01:34:43 +00002236else
2237 CC="$ac_cv_prog_CC"
2238fi
2239
2240if test -z "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002241 if test -n "$ac_tool_prefix"; then
2242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002243set dummy ${ac_tool_prefix}cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002246if test "${ac_cv_prog_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249 if test -n "$CC"; then
2250 ac_cv_prog_CC="$CC" # Let the user override the test.
2251else
a.rottmann84e63352003-03-24 09:42:16 +00002252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253for as_dir in $PATH
2254do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002258 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 +00002259 ac_cv_prog_CC="${ac_tool_prefix}cc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263done
drh71eb93e2001-09-28 01:34:43 +00002264done
mlcreech94984912008-03-04 19:03:08 +00002265IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002266
2267fi
2268fi
2269CC=$ac_cv_prog_CC
2270if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002271 { echo "$as_me:$LINENO: result: $CC" >&5
2272echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002273else
mlcreech94984912008-03-04 19:03:08 +00002274 { echo "$as_me:$LINENO: result: no" >&5
2275echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002276fi
2277
mlcreech94984912008-03-04 19:03:08 +00002278
a.rottmann84e63352003-03-24 09:42:16 +00002279 fi
drh71eb93e2001-09-28 01:34:43 +00002280fi
2281if test -z "$CC"; then
2282 # Extract the first word of "cc", so it can be a program name with args.
2283set dummy cc; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002284{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002286if test "${ac_cv_prog_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2291else
2292 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002299 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 +00002300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2301 ac_prog_rejected=yes
2302 continue
2303 fi
2304 ac_cv_prog_CC="cc"
2305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308done
drh71eb93e2001-09-28 01:34:43 +00002309done
mlcreech94984912008-03-04 19:03:08 +00002310IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002311
2312if test $ac_prog_rejected = yes; then
2313 # We found a bogon in the path, so make sure we never use it.
2314 set dummy $ac_cv_prog_CC
2315 shift
2316 if test $# != 0; then
2317 # We chose a different compiler from the bogus one.
2318 # However, it has the same basename, so the bogon will be chosen
2319 # first if we set CC to just the basename; use the full file name.
2320 shift
a.rottmann84e63352003-03-24 09:42:16 +00002321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002322 fi
2323fi
2324fi
2325fi
2326CC=$ac_cv_prog_CC
2327if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002328 { echo "$as_me:$LINENO: result: $CC" >&5
2329echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002330else
mlcreech94984912008-03-04 19:03:08 +00002331 { echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002333fi
2334
mlcreech94984912008-03-04 19:03:08 +00002335
drh71eb93e2001-09-28 01:34:43 +00002336fi
2337if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00002339 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002340 do
2341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002345if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350else
a.rottmann84e63352003-03-24 09:42:16 +00002351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002357 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 +00002358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2361 fi
2362done
drh71eb93e2001-09-28 01:34:43 +00002363done
mlcreech94984912008-03-04 19:03:08 +00002364IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002365
2366fi
2367fi
2368CC=$ac_cv_prog_CC
2369if test -n "$CC"; then
mlcreech94984912008-03-04 19:03:08 +00002370 { echo "$as_me:$LINENO: result: $CC" >&5
2371echo "${ECHO_T}$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002372else
mlcreech94984912008-03-04 19:03:08 +00002373 { echo "$as_me:$LINENO: result: no" >&5
2374echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002375fi
2376
mlcreech94984912008-03-04 19:03:08 +00002377
drh71eb93e2001-09-28 01:34:43 +00002378 test -n "$CC" && break
2379 done
2380fi
2381if test -z "$CC"; then
2382 ac_ct_CC=$CC
mlcreech94984912008-03-04 19:03:08 +00002383 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002384do
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00002387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002389if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2394else
a.rottmann84e63352003-03-24 09:42:16 +00002395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00002401 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 +00002402 ac_cv_prog_ac_ct_CC="$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2405 fi
2406done
drh71eb93e2001-09-28 01:34:43 +00002407done
mlcreech94984912008-03-04 19:03:08 +00002408IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002409
2410fi
2411fi
2412ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413if test -n "$ac_ct_CC"; then
mlcreech94984912008-03-04 19:03:08 +00002414 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2415echo "${ECHO_T}$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002416else
mlcreech94984912008-03-04 19:03:08 +00002417 { echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002419fi
2420
mlcreech94984912008-03-04 19:03:08 +00002421
drh71eb93e2001-09-28 01:34:43 +00002422 test -n "$ac_ct_CC" && break
2423done
2424
mlcreech94984912008-03-04 19:03:08 +00002425 if test "x$ac_ct_CC" = x; then
2426 CC=""
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429yes:)
2430{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431whose name does not start with the host triplet. If you think this
2432configuration is useful to you, please write to autoconf@gnu.org." >&5
2433echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434whose name does not start with the host triplet. If you think this
2435configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2436ac_tool_warned=yes ;;
2437esac
2438 CC=$ac_ct_CC
2439 fi
drh71eb93e2001-09-28 01:34:43 +00002440fi
2441
2442fi
2443
a.rottmann84e63352003-03-24 09:42:16 +00002444
2445test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2446See \`config.log' for more details." >&5
2447echo "$as_me: error: no acceptable C compiler found in \$PATH
2448See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002449 { (exit 1); exit 1; }; }
2450
2451# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00002452echo "$as_me:$LINENO: checking for C compiler version" >&5
drh71eb93e2001-09-28 01:34:43 +00002453ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00002454{ (ac_try="$ac_compiler --version >&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 --version >&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); }
mlcreech94984912008-03-04 19:03:08 +00002474{ (ac_try="$ac_compiler -V >&5"
2475case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002481 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002483 (exit $ac_status); }
2484
2485cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002486/* confdefs.h. */
2487_ACEOF
2488cat confdefs.h >>conftest.$ac_ext
2489cat >>conftest.$ac_ext <<_ACEOF
2490/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002491
2492int
2493main ()
2494{
2495
2496 ;
2497 return 0;
2498}
2499_ACEOF
2500ac_clean_files_save=$ac_clean_files
a.rottmann84e63352003-03-24 09:42:16 +00002501ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002502# Try to create an executable without -o first, disregard a.out.
2503# It will help us diagnose broken compilers, and finding out an intuition
2504# of exeext.
mlcreech94984912008-03-04 19:03:08 +00002505{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2506echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002507ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
mlcreech94984912008-03-04 19:03:08 +00002508#
2509# List of possible output files, starting from the most likely.
2510# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2511# only as a last resort. b.out is created by i960 compilers.
2512ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2513#
2514# The IRIX 6 linker writes into existing files which may not be
2515# executable, retaining their permissions. Remove them first so a
2516# subsequent execution test works.
2517ac_rmfiles=
2518for ac_file in $ac_files
2519do
2520 case $ac_file in
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2523 esac
2524done
2525rm -f $ac_rmfiles
2526
2527if { (ac_try="$ac_link_default"
2528case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2531esac
2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_link_default") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002534 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002536 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002537 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2538# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2539# in a Makefile. We should not override ac_cv_exeext if it was cached,
2540# so that the user can short-circuit this test for compilers unknown to
2541# Autoconf.
2542for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002543do
2544 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002545 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002547 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002548 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002549 # We found the default executable, but exeext='' is most
2550 # certainly right.
2551 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002552 *.* )
mlcreech94984912008-03-04 19:03:08 +00002553 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2554 then :; else
2555 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556 fi
2557 # We set ac_cv_exeext here because the later test for it is not
2558 # safe: cross compilers may not add the suffix if given an `-o'
2559 # argument, so we may need to know it at that point already.
2560 # Even if this section looks crufty: it has the advantage of
2561 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002562 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002563 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002564 break;;
drh71eb93e2001-09-28 01:34:43 +00002565 esac
2566done
mlcreech94984912008-03-04 19:03:08 +00002567test "$ac_cv_exeext" = no && ac_cv_exeext=
2568
drh71eb93e2001-09-28 01:34:43 +00002569else
mlcreech94984912008-03-04 19:03:08 +00002570 ac_file=''
2571fi
2572
2573{ echo "$as_me:$LINENO: result: $ac_file" >&5
2574echo "${ECHO_T}$ac_file" >&6; }
2575if test -z "$ac_file"; then
drh71eb93e2001-09-28 01:34:43 +00002576 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002577sed 's/^/| /' conftest.$ac_ext >&5
2578
2579{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2580See \`config.log' for more details." >&5
2581echo "$as_me: error: C compiler cannot create executables
2582See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002583 { (exit 77); exit 77; }; }
2584fi
2585
2586ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002587
mlcreech94984912008-03-04 19:03:08 +00002588# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002589# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002590{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2591echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002592# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2593# If not cross compiling, check that we can run a simple program.
2594if test "$cross_compiling" != yes; then
2595 if { ac_try='./$ac_file'
mlcreech94984912008-03-04 19:03:08 +00002596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599esac
2600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002602 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002604 (exit $ac_status); }; }; then
2605 cross_compiling=no
2606 else
2607 if test "$cross_compiling" = maybe; then
2608 cross_compiling=yes
2609 else
a.rottmann84e63352003-03-24 09:42:16 +00002610 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2611If you meant to cross compile, use \`--host'.
2612See \`config.log' for more details." >&5
drh71eb93e2001-09-28 01:34:43 +00002613echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002614If you meant to cross compile, use \`--host'.
2615See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002616 { (exit 1); exit 1; }; }
2617 fi
2618 fi
2619fi
mlcreech94984912008-03-04 19:03:08 +00002620{ echo "$as_me:$LINENO: result: yes" >&5
2621echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002622
a.rottmann84e63352003-03-24 09:42:16 +00002623rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002624ac_clean_files=$ac_clean_files_save
mlcreech94984912008-03-04 19:03:08 +00002625# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002626# the compiler is broken, or we cross compile.
mlcreech94984912008-03-04 19:03:08 +00002627{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2628echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2629{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2630echo "${ECHO_T}$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002631
mlcreech94984912008-03-04 19:03:08 +00002632{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2633echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2634if { (ac_try="$ac_link"
2635case "(($ac_try" in
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2638esac
2639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002641 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002643 (exit $ac_status); }; then
2644 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2645# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2646# work properly (i.e., refer to `conftest.exe'), while it won't with
2647# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002648for ac_file in conftest.exe conftest conftest.*; do
2649 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002650 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002653 break;;
drh71eb93e2001-09-28 01:34:43 +00002654 * ) break;;
2655 esac
2656done
2657else
a.rottmann84e63352003-03-24 09:42:16 +00002658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659See \`config.log' for more details." >&5
2660echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002662 { (exit 1); exit 1; }; }
2663fi
2664
2665rm -f conftest$ac_cv_exeext
mlcreech94984912008-03-04 19:03:08 +00002666{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667echo "${ECHO_T}$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002668
2669rm -f conftest.$ac_ext
2670EXEEXT=$ac_cv_exeext
2671ac_exeext=$EXEEXT
mlcreech94984912008-03-04 19:03:08 +00002672{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002674if test "${ac_cv_objext+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002678/* confdefs.h. */
2679_ACEOF
2680cat confdefs.h >>conftest.$ac_ext
2681cat >>conftest.$ac_ext <<_ACEOF
2682/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002683
2684int
2685main ()
2686{
2687
2688 ;
2689 return 0;
2690}
2691_ACEOF
2692rm -f conftest.o conftest.obj
mlcreech94984912008-03-04 19:03:08 +00002693if { (ac_try="$ac_compile"
2694case "(($ac_try" in
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2697esac
2698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002700 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00002701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002702 (exit $ac_status); }; then
mlcreech94984912008-03-04 19:03:08 +00002703 for ac_file in conftest.o conftest.obj conftest.*; do
2704 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002705 case $ac_file in
mlcreech94984912008-03-04 19:03:08 +00002706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
drh71eb93e2001-09-28 01:34:43 +00002707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 break;;
2709 esac
2710done
2711else
2712 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002713sed 's/^/| /' conftest.$ac_ext >&5
2714
2715{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716See \`config.log' for more details." >&5
2717echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002719 { (exit 1); exit 1; }; }
2720fi
2721
2722rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723fi
mlcreech94984912008-03-04 19:03:08 +00002724{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725echo "${ECHO_T}$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002726OBJEXT=$ac_cv_objext
2727ac_objext=$OBJEXT
mlcreech94984912008-03-04 19:03:08 +00002728{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002730if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002734/* confdefs.h. */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002739
2740int
2741main ()
2742{
2743#ifndef __GNUC__
2744 choke me
2745#endif
2746
2747 ;
2748 return 0;
2749}
2750_ACEOF
2751rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002752if { (ac_try="$ac_compile"
2753case "(($ac_try" in
2754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755 *) ac_try_echo=$ac_try;;
2756esac
2757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002759 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002764 (exit $ac_status); } && {
2765 test -z "$ac_c_werror_flag" ||
2766 test ! -s conftest.err
2767 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002768 ac_compiler_gnu=yes
2769else
2770 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002771sed 's/^/| /' conftest.$ac_ext >&5
2772
mlcreech94984912008-03-04 19:03:08 +00002773 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002774fi
mlcreech94984912008-03-04 19:03:08 +00002775
2776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002777ac_cv_c_compiler_gnu=$ac_compiler_gnu
2778
2779fi
mlcreech94984912008-03-04 19:03:08 +00002780{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2781echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002782GCC=`test $ac_compiler_gnu = yes && echo yes`
2783ac_test_CFLAGS=${CFLAGS+set}
2784ac_save_CFLAGS=$CFLAGS
mlcreech94984912008-03-04 19:03:08 +00002785{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2786echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002787if test "${ac_cv_prog_cc_g+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789else
mlcreech94984912008-03-04 19:03:08 +00002790 ac_save_c_werror_flag=$ac_c_werror_flag
2791 ac_c_werror_flag=yes
2792 ac_cv_prog_cc_g=no
2793 CFLAGS="-g"
2794 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002795/* confdefs.h. */
2796_ACEOF
2797cat confdefs.h >>conftest.$ac_ext
2798cat >>conftest.$ac_ext <<_ACEOF
2799/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002800
2801int
2802main ()
2803{
2804
2805 ;
2806 return 0;
2807}
2808_ACEOF
2809rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00002810if { (ac_try="$ac_compile"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002817 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00002821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00002822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002826 ac_cv_prog_cc_g=yes
2827else
2828 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002829sed 's/^/| /' conftest.$ac_ext >&5
2830
mlcreech94984912008-03-04 19:03:08 +00002831 CFLAGS=""
2832 cat >conftest.$ac_ext <<_ACEOF
2833/* confdefs.h. */
2834_ACEOF
2835cat confdefs.h >>conftest.$ac_ext
2836cat >>conftest.$ac_ext <<_ACEOF
2837/* end confdefs.h. */
2838
2839int
2840main ()
2841{
2842
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext
2848if { (ac_try="$ac_compile"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_compile") 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } && {
2861 test -z "$ac_c_werror_flag" ||
2862 test ! -s conftest.err
2863 } && test -s conftest.$ac_objext; then
2864 :
2865else
2866 echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 ac_c_werror_flag=$ac_save_c_werror_flag
2870 CFLAGS="-g"
2871 cat >conftest.$ac_ext <<_ACEOF
2872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
2877
2878int
2879main ()
2880{
2881
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
2887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_g=yes
2904else
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908
drh71eb93e2001-09-28 01:34:43 +00002909fi
mlcreech94984912008-03-04 19:03:08 +00002910
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002912fi
mlcreech94984912008-03-04 19:03:08 +00002913
2914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915fi
2916
2917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2919fi
2920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002922if test "$ac_test_CFLAGS" = set; then
2923 CFLAGS=$ac_save_CFLAGS
2924elif test $ac_cv_prog_cc_g = yes; then
2925 if test "$GCC" = yes; then
2926 CFLAGS="-g -O2"
2927 else
2928 CFLAGS="-g"
2929 fi
2930else
2931 if test "$GCC" = yes; then
2932 CFLAGS="-O2"
2933 else
2934 CFLAGS=
2935 fi
2936fi
mlcreech94984912008-03-04 19:03:08 +00002937{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2938echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2939if test "${ac_cv_prog_cc_c89+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +00002940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941else
mlcreech94984912008-03-04 19:03:08 +00002942 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00002943ac_save_CC=$CC
2944cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h. */
2950#include <stdarg.h>
2951#include <stdio.h>
2952#include <sys/types.h>
2953#include <sys/stat.h>
2954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2955struct buf { int x; };
2956FILE * (*rcsopen) (struct buf *, struct stat *, int);
2957static char *e (p, i)
2958 char **p;
2959 int i;
2960{
2961 return p[i];
2962}
2963static char *f (char * (*g) (char **, int), char **p, ...)
2964{
2965 char *s;
2966 va_list v;
2967 va_start (v,p);
2968 s = g (p, va_arg (v,int));
2969 va_end (v);
2970 return s;
2971}
a.rottmann964dbb12004-02-26 19:47:42 +00002972
2973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2974 function prototypes and stuff, but not '\xHH' hex character constants.
2975 These don't provoke an error unfortunately, instead are silently treated
mlcreech94984912008-03-04 19:03:08 +00002976 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2978 array size at least. It's necessary to write '\x00'==0 to get something
mlcreech94984912008-03-04 19:03:08 +00002979 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00002980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
mlcreech94984912008-03-04 19:03:08 +00002982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983 inside strings and character constants. */
2984#define FOO(x) 'x'
2985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
a.rottmann84e63352003-03-24 09:42:16 +00002987int test (int i, double x);
2988struct s1 {int (*f) (int a);};
2989struct s2 {int (*f) (double a);};
2990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2991int argc;
2992char **argv;
2993int
2994main ()
2995{
2996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 ;
2998 return 0;
2999}
3000_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003003do
3004 CC="$ac_save_CC $ac_arg"
3005 rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00003006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003013 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00003017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003018 (exit $ac_status); } && {
3019 test -z "$ac_c_werror_flag" ||
3020 test ! -s conftest.err
3021 } && test -s conftest.$ac_objext; then
3022 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003023else
3024 echo "$as_me: failed program was:" >&5
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
mlcreech94984912008-03-04 19:03:08 +00003027
a.rottmann84e63352003-03-24 09:42:16 +00003028fi
mlcreech94984912008-03-04 19:03:08 +00003029
3030rm -f core conftest.err conftest.$ac_objext
3031 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003032done
mlcreech94984912008-03-04 19:03:08 +00003033rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003034CC=$ac_save_CC
3035
3036fi
mlcreech94984912008-03-04 19:03:08 +00003037# AC_CACHE_VAL
3038case "x$ac_cv_prog_cc_c89" in
3039 x)
3040 { echo "$as_me:$LINENO: result: none needed" >&5
3041echo "${ECHO_T}none needed" >&6; } ;;
3042 xno)
3043 { echo "$as_me:$LINENO: result: unsupported" >&5
3044echo "${ECHO_T}unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003045 *)
mlcreech94984912008-03-04 19:03:08 +00003046 CC="$CC $ac_cv_prog_cc_c89"
3047 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3048echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003049esac
3050
a.rottmann84e63352003-03-24 09:42:16 +00003051
drh71eb93e2001-09-28 01:34:43 +00003052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
mlcreech94984912008-03-04 19:03:08 +00003058{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3059echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003060if test "${lt_cv_path_SED+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 # Loop through the user's path and test for sed and gsed.
3064# Then use that list of sed's as ones to test for truncation.
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for lt_ac_prog in sed gsed; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3073 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3074 fi
3075 done
3076 done
3077done
3078lt_ac_max=0
3079lt_ac_count=0
3080# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3081# along with /bin/sed that truncates output.
3082for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
vapier7f19c022007-02-17 14:46:31 +00003083 test ! -f $lt_ac_sed && continue
a.rottmann9bc8b932004-02-29 15:18:31 +00003084 cat /dev/null > conftest.in
3085 lt_ac_count=0
3086 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3087 # Check for GNU sed and select it if it is found.
3088 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3089 lt_cv_path_SED=$lt_ac_sed
3090 break
3091 fi
3092 while true; do
3093 cat conftest.in conftest.in >conftest.tmp
3094 mv conftest.tmp conftest.in
3095 cp conftest.in conftest.nl
3096 echo >>conftest.nl
3097 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3098 cmp -s conftest.out conftest.nl || break
3099 # 10000 chars as input seems more than enough
3100 test $lt_ac_count -gt 10 && break
3101 lt_ac_count=`expr $lt_ac_count + 1`
3102 if test $lt_ac_count -gt $lt_ac_max; then
3103 lt_ac_max=$lt_ac_count
3104 lt_cv_path_SED=$lt_ac_sed
3105 fi
3106 done
3107done
a.rottmann9bc8b932004-02-29 15:18:31 +00003108
a.rottmann84e63352003-03-24 09:42:16 +00003109fi
3110
vapier7f19c022007-02-17 14:46:31 +00003111SED=$lt_cv_path_SED
mlcreech94984912008-03-04 19:03:08 +00003112{ echo "$as_me:$LINENO: result: $SED" >&5
3113echo "${ECHO_T}$SED" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003114
mlcreech94984912008-03-04 19:03:08 +00003115{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3116echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3117if test "${ac_cv_path_GREP+set}" = set; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
mlcreech94984912008-03-04 19:03:08 +00003120 # Extract the first word of "grep ggrep" to use in msg output
3121if test -z "$GREP"; then
3122set dummy grep ggrep; ac_prog_name=$2
3123if test "${ac_cv_path_GREP+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 ac_path_GREP_found=false
3127# Loop through the user's path and test for each of PROGNAME-LIST
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_prog in grep ggrep; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3136 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3137 # Check for GNU ac_path_GREP and select it if it is found.
3138 # Check for GNU $ac_path_GREP
3139case `"$ac_path_GREP" --version 2>&1` in
3140*GNU*)
3141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3142*)
3143 ac_count=0
3144 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3145 while :
3146 do
3147 cat "conftest.in" "conftest.in" >"conftest.tmp"
3148 mv "conftest.tmp" "conftest.in"
3149 cp "conftest.in" "conftest.nl"
3150 echo 'GREP' >> "conftest.nl"
3151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3153 ac_count=`expr $ac_count + 1`
3154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3155 # Best one so far, save it but keep looking for a better one
3156 ac_cv_path_GREP="$ac_path_GREP"
3157 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003158 fi
mlcreech94984912008-03-04 19:03:08 +00003159 # 10*(2^10) chars as input seems more than enough
3160 test $ac_count -gt 10 && break
3161 done
3162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3163esac
3164
3165
3166 $ac_path_GREP_found && break 3
3167 done
3168done
3169
3170done
3171IFS=$as_save_IFS
3172
3173
a.rottmann9bc8b932004-02-29 15:18:31 +00003174fi
mlcreech94984912008-03-04 19:03:08 +00003175
3176GREP="$ac_cv_path_GREP"
3177if test -z "$GREP"; then
3178 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3179echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3180 { (exit 1); exit 1; }; }
3181fi
3182
3183else
3184 ac_cv_path_GREP=$GREP
3185fi
3186
3187
3188fi
3189{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3190echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3191 GREP="$ac_cv_path_GREP"
3192
3193
3194{ echo "$as_me:$LINENO: checking for egrep" >&5
3195echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3196if test "${ac_cv_path_EGREP+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3200 then ac_cv_path_EGREP="$GREP -E"
3201 else
3202 # Extract the first word of "egrep" to use in msg output
3203if test -z "$EGREP"; then
3204set dummy egrep; ac_prog_name=$2
3205if test "${ac_cv_path_EGREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208 ac_path_EGREP_found=false
3209# Loop through the user's path and test for each of PROGNAME-LIST
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_prog in egrep; do
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3219 # Check for GNU ac_path_EGREP and select it if it is found.
3220 # Check for GNU $ac_path_EGREP
3221case `"$ac_path_EGREP" --version 2>&1` in
3222*GNU*)
3223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3224*)
3225 ac_count=0
3226 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3227 while :
3228 do
3229 cat "conftest.in" "conftest.in" >"conftest.tmp"
3230 mv "conftest.tmp" "conftest.in"
3231 cp "conftest.in" "conftest.nl"
3232 echo 'EGREP' >> "conftest.nl"
3233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3235 ac_count=`expr $ac_count + 1`
3236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3237 # Best one so far, save it but keep looking for a better one
3238 ac_cv_path_EGREP="$ac_path_EGREP"
3239 ac_path_EGREP_max=$ac_count
3240 fi
3241 # 10*(2^10) chars as input seems more than enough
3242 test $ac_count -gt 10 && break
3243 done
3244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245esac
3246
3247
3248 $ac_path_EGREP_found && break 3
3249 done
3250done
3251
3252done
3253IFS=$as_save_IFS
3254
3255
3256fi
3257
3258EGREP="$ac_cv_path_EGREP"
3259if test -z "$EGREP"; then
3260 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3261echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3262 { (exit 1); exit 1; }; }
3263fi
3264
3265else
3266 ac_cv_path_EGREP=$EGREP
3267fi
3268
3269
3270 fi
3271fi
3272{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3273echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3274 EGREP="$ac_cv_path_EGREP"
a.rottmann9bc8b932004-02-29 15:18:31 +00003275
3276
a.rottmann84e63352003-03-24 09:42:16 +00003277
mlcreech94984912008-03-04 19:03:08 +00003278# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003279if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003280 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003281else
3282 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +00003283fi
3284
drh71eb93e2001-09-28 01:34:43 +00003285ac_prog=ld
3286if test "$GCC" = yes; then
3287 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +00003288 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3289echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003290 case $host in
3291 *-*-mingw*)
3292 # gcc leaves a trailing carriage return which upsets mingw
3293 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3294 *)
3295 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3296 esac
3297 case $ac_prog in
3298 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003299 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003300 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003301 # Canonicalize the pathname of ld
3302 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
drh71eb93e2001-09-28 01:34:43 +00003303 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003304 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003305 done
3306 test -z "$LD" && LD="$ac_prog"
3307 ;;
3308 "")
3309 # If it fails, then pretend we aren't using GCC.
3310 ac_prog=ld
3311 ;;
3312 *)
3313 # If it is relative, then search for the first ld in PATH.
3314 with_gnu_ld=unknown
3315 ;;
3316 esac
3317elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +00003318 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3319echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003320else
mlcreech94984912008-03-04 19:03:08 +00003321 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3322echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003323fi
3324if test "${lt_cv_path_LD+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003329 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003330 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003331 test -z "$ac_dir" && ac_dir=.
3332 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3333 lt_cv_path_LD="$ac_dir/$ac_prog"
3334 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003335 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003336 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003337 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3338 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003339 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003340 ;;
3341 *)
drh71eb93e2001-09-28 01:34:43 +00003342 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003343 ;;
3344 esac
drh71eb93e2001-09-28 01:34:43 +00003345 fi
3346 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003347 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003348else
3349 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3350fi
3351fi
3352
3353LD="$lt_cv_path_LD"
3354if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +00003355 { echo "$as_me:$LINENO: result: $LD" >&5
3356echo "${ECHO_T}$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003357else
mlcreech94984912008-03-04 19:03:08 +00003358 { echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003360fi
a.rottmann84e63352003-03-24 09:42:16 +00003361test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
drh71eb93e2001-09-28 01:34:43 +00003362echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3363 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00003364{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3365echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003366if test "${lt_cv_prog_gnu_ld+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
vapier7f19c022007-02-17 14:46:31 +00003369 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003370case `$LD -v 2>&1 </dev/null` in
3371*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003372 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003373 ;;
3374*)
drh71eb93e2001-09-28 01:34:43 +00003375 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003376 ;;
3377esac
drh71eb93e2001-09-28 01:34:43 +00003378fi
mlcreech94984912008-03-04 19:03:08 +00003379{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3380echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003381with_gnu_ld=$lt_cv_prog_gnu_ld
3382
a.rottmann84e63352003-03-24 09:42:16 +00003383
mlcreech94984912008-03-04 19:03:08 +00003384{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3385echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003386if test "${lt_cv_ld_reload_flag+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389 lt_cv_ld_reload_flag='-r'
3390fi
mlcreech94984912008-03-04 19:03:08 +00003391{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3392echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003393reload_flag=$lt_cv_ld_reload_flag
a.rottmann9bc8b932004-02-29 15:18:31 +00003394case $reload_flag in
3395"" | " "*) ;;
3396*) reload_flag=" $reload_flag" ;;
3397esac
3398reload_cmds='$LD$reload_flag -o $output$reload_objs'
vapier7f19c022007-02-17 14:46:31 +00003399case $host_os in
3400 darwin*)
3401 if test "$GCC" = yes; then
3402 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3403 else
3404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3405 fi
3406 ;;
3407esac
drh71eb93e2001-09-28 01:34:43 +00003408
mlcreech94984912008-03-04 19:03:08 +00003409{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003411if test "${lt_cv_path_NM+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 if test -n "$NM"; then
3415 # Let the user override the test.
3416 lt_cv_path_NM="$NM"
3417else
vapier7f19c022007-02-17 14:46:31 +00003418 lt_nm_to_check="${ac_tool_prefix}nm"
3419 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3420 lt_nm_to_check="$lt_nm_to_check nm"
3421 fi
3422 for lt_tmp_nm in $lt_nm_to_check; do
3423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3424 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3425 IFS="$lt_save_ifs"
3426 test -z "$ac_dir" && ac_dir=.
3427 tmp_nm="$ac_dir/$lt_tmp_nm"
3428 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3429 # Check to see if the nm accepts a BSD-compat flag.
3430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3431 # nm: unknown option "B" ignored
3432 # Tru64's nm complains that /dev/null is an invalid object file
3433 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3434 */dev/null* | *'Invalid file or object type'*)
3435 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003436 break
3437 ;;
3438 *)
vapier7f19c022007-02-17 14:46:31 +00003439 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3440 */dev/null*)
3441 lt_cv_path_NM="$tmp_nm -p"
3442 break
3443 ;;
3444 *)
3445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3446 continue # so that we can try to find one that supports BSD flags
3447 ;;
3448 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003449 ;;
3450 esac
vapier7f19c022007-02-17 14:46:31 +00003451 fi
3452 done
3453 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003454 done
drh71eb93e2001-09-28 01:34:43 +00003455 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3456fi
3457fi
mlcreech94984912008-03-04 19:03:08 +00003458{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3459echo "${ECHO_T}$lt_cv_path_NM" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003460NM="$lt_cv_path_NM"
a.rottmann84e63352003-03-24 09:42:16 +00003461
mlcreech94984912008-03-04 19:03:08 +00003462{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3463echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003464LN_S=$as_ln_s
3465if test "$LN_S" = "ln -s"; then
mlcreech94984912008-03-04 19:03:08 +00003466 { echo "$as_me:$LINENO: result: yes" >&5
3467echo "${ECHO_T}yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003468else
mlcreech94984912008-03-04 19:03:08 +00003469 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3470echo "${ECHO_T}no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003471fi
3472
mlcreech94984912008-03-04 19:03:08 +00003473{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3474echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003475if test "${lt_cv_deplibs_check_method+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3477else
3478 lt_cv_file_magic_cmd='$MAGIC_CMD'
3479lt_cv_file_magic_test_file=
3480lt_cv_deplibs_check_method='unknown'
3481# Need to set the preceding variable on all platforms that support
3482# interlibrary dependencies.
3483# 'none' -- dependencies not supported.
3484# `unknown' -- same as none, but documents that we really don't know.
3485# 'pass_all' -- all dependencies passed with no checks.
3486# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003487# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003488# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003489# If you have `file' or equivalent on your system and you're not sure
3490# whether `pass_all' will *always* work, you probably want this one.
3491
3492case $host_os in
3493aix4* | aix5*)
3494 lt_cv_deplibs_check_method=pass_all
3495 ;;
3496
3497beos*)
3498 lt_cv_deplibs_check_method=pass_all
3499 ;;
3500
vapier7f19c022007-02-17 14:46:31 +00003501bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3503 lt_cv_file_magic_cmd='/usr/bin/file -L'
3504 lt_cv_file_magic_test_file=/shlib/libc.so
3505 ;;
3506
a.rottmann9bc8b932004-02-29 15:18:31 +00003507cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003508 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003509 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003510 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003511 ;;
3512
3513mingw* | pw32*)
3514 # Base MSYS/MinGW do not provide the 'file' command needed by
vapier7f19c022007-02-17 14:46:31 +00003515 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
drh71eb93e2001-09-28 01:34:43 +00003516 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3517 lt_cv_file_magic_cmd='$OBJDUMP -f'
3518 ;;
3519
3520darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003521 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003522 ;;
3523
vapier7f19c022007-02-17 14:46:31 +00003524freebsd* | kfreebsd*-gnu | dragonfly*)
drh71eb93e2001-09-28 01:34:43 +00003525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 case $host_cpu in
3527 i*86 )
3528 # Not sure whether the presence of OpenBSD here was a mistake.
3529 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003530 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 +00003531 lt_cv_file_magic_cmd=/usr/bin/file
3532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 ;;
3534 esac
3535 else
3536 lt_cv_deplibs_check_method=pass_all
3537 fi
3538 ;;
3539
3540gnu*)
3541 lt_cv_deplibs_check_method=pass_all
3542 ;;
3543
a.rottmann9bc8b932004-02-29 15:18:31 +00003544hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003545 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003546 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003547 ia64*)
3548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 ;;
3551 hppa*64*)
3552 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]'
3553 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3554 ;;
3555 *)
3556 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3557 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3558 ;;
3559 esac
drh71eb93e2001-09-28 01:34:43 +00003560 ;;
3561
vapier7f19c022007-02-17 14:46:31 +00003562interix3*)
3563 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3565 ;;
3566
a.rottmann84e63352003-03-24 09:42:16 +00003567irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003568 case $LD in
3569 *-32|*"-32 ") libmagic=32-bit;;
3570 *-n32|*"-n32 ") libmagic=N32;;
3571 *-64|*"-64 ") libmagic=64-bit;;
3572 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003573 esac
drh71eb93e2001-09-28 01:34:43 +00003574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00003578linux*)
3579 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003580 ;;
3581
vapier7f19c022007-02-17 14:46:31 +00003582netbsd*)
drh71eb93e2001-09-28 01:34:43 +00003583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003585 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003587 fi
3588 ;;
3589
3590newos6*)
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3594 ;;
3595
a.rottmann9bc8b932004-02-29 15:18:31 +00003596nto-qnx*)
3597 lt_cv_deplibs_check_method=unknown
3598 ;;
3599
a.rottmann84e63352003-03-24 09:42:16 +00003600openbsd*)
a.rottmann84e63352003-03-24 09:42:16 +00003601 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003603 else
vapier7f19c022007-02-17 14:46:31 +00003604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003605 fi
drh71eb93e2001-09-28 01:34:43 +00003606 ;;
3607
3608osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
drh71eb93e2001-09-28 01:34:43 +00003612solaris*)
3613 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003614 ;;
3615
vapier7f19c022007-02-17 14:46:31 +00003616sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003617 case $host_vendor in
3618 motorola)
3619 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]'
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3621 ;;
3622 ncr)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625 sequent)
3626 lt_cv_file_magic_cmd='/bin/file'
3627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3628 ;;
3629 sni)
3630 lt_cv_file_magic_cmd='/bin/file'
3631 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3632 lt_cv_file_magic_test_file=/lib/libc.so
3633 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003634 siemens)
3635 lt_cv_deplibs_check_method=pass_all
3636 ;;
vapier7f19c022007-02-17 14:46:31 +00003637 pc)
3638 lt_cv_deplibs_check_method=pass_all
3639 ;;
drh71eb93e2001-09-28 01:34:43 +00003640 esac
3641 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003642
vapier7f19c022007-02-17 14:46:31 +00003643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003644 lt_cv_deplibs_check_method=pass_all
3645 ;;
drh71eb93e2001-09-28 01:34:43 +00003646esac
3647
3648fi
mlcreech94984912008-03-04 19:03:08 +00003649{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3650echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003651file_magic_cmd=$lt_cv_file_magic_cmd
3652deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003653test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003654
drh71eb93e2001-09-28 01:34:43 +00003655
drh71eb93e2001-09-28 01:34:43 +00003656
drh71eb93e2001-09-28 01:34:43 +00003657
a.rottmann9bc8b932004-02-29 15:18:31 +00003658# If no C compiler was specified, use CC.
3659LTCC=${LTCC-"$CC"}
3660
vapier7f19c022007-02-17 14:46:31 +00003661# If no C compiler flags were specified, use CFLAGS.
3662LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3663
a.rottmann9bc8b932004-02-29 15:18:31 +00003664# Allow CC to be a program name with arguments.
3665compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003666
drh71eb93e2001-09-28 01:34:43 +00003667
mlcreech94984912008-03-04 19:03:08 +00003668# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003669if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00003670 enableval=$enable_libtool_lock;
3671fi
drh71eb93e2001-09-28 01:34:43 +00003672
a.rottmann9bc8b932004-02-29 15:18:31 +00003673test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003674
a.rottmann9bc8b932004-02-29 15:18:31 +00003675# Some flags need to be propagated to the compiler or linker for good
3676# libtool support.
3677case $host in
3678ia64-*-hpux*)
3679 # Find out which ABI we are using.
3680 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003682 (eval $ac_compile) 2>&5
3683 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003685 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003686 case `/usr/bin/file conftest.$ac_objext` in
3687 *ELF-32*)
3688 HPUX_IA64_MODE="32"
3689 ;;
3690 *ELF-64*)
3691 HPUX_IA64_MODE="64"
3692 ;;
3693 esac
3694 fi
3695 rm -rf conftest*
3696 ;;
3697*-*-irix6*)
3698 # Find out which ABI we are using.
mlcreech969b2cd2008-03-14 04:11:03 +00003699 echo '#line 3699 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003702 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00003703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00003704 (exit $ac_status); }; then
3705 if test "$lt_cv_prog_gnu_ld" = yes; then
3706 case `/usr/bin/file conftest.$ac_objext` in
3707 *32-bit*)
3708 LD="${LD-ld} -melf32bsmip"
3709 ;;
3710 *N32*)
3711 LD="${LD-ld} -melf32bmipn32"
3712 ;;
3713 *64-bit*)
3714 LD="${LD-ld} -melf64bmip"
3715 ;;
3716 esac
3717 else
3718 case `/usr/bin/file conftest.$ac_objext` in
3719 *32-bit*)
3720 LD="${LD-ld} -32"
3721 ;;
3722 *N32*)
3723 LD="${LD-ld} -n32"
3724 ;;
3725 *64-bit*)
3726 LD="${LD-ld} -64"
3727 ;;
3728 esac
3729 fi
3730 fi
3731 rm -rf conftest*
3732 ;;
drh71eb93e2001-09-28 01:34:43 +00003733
a.rottmann9bc8b932004-02-29 15:18:31 +00003734x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3735 # Find out which ABI we are using.
3736 echo 'int i;' > conftest.$ac_ext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00003742 case `/usr/bin/file conftest.o` in
a.rottmann9bc8b932004-02-29 15:18:31 +00003743 *32-bit*)
3744 case $host in
3745 x86_64-*linux*)
3746 LD="${LD-ld} -m elf_i386"
3747 ;;
3748 ppc64-*linux*|powerpc64-*linux*)
3749 LD="${LD-ld} -m elf32ppclinux"
3750 ;;
3751 s390x-*linux*)
3752 LD="${LD-ld} -m elf_s390"
3753 ;;
3754 sparc64-*linux*)
3755 LD="${LD-ld} -m elf32_sparc"
3756 ;;
3757 esac
3758 ;;
3759 *64-bit*)
3760 case $host in
3761 x86_64-*linux*)
3762 LD="${LD-ld} -m elf_x86_64"
3763 ;;
3764 ppc*-*linux*|powerpc*-*linux*)
3765 LD="${LD-ld} -m elf64ppc"
3766 ;;
3767 s390*-*linux*)
3768 LD="${LD-ld} -m elf64_s390"
3769 ;;
3770 sparc*-*linux*)
3771 LD="${LD-ld} -m elf64_sparc"
3772 ;;
3773 esac
3774 ;;
3775 esac
3776 fi
3777 rm -rf conftest*
3778 ;;
drh71eb93e2001-09-28 01:34:43 +00003779
a.rottmann9bc8b932004-02-29 15:18:31 +00003780*-*-sco3.2v5*)
3781 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3782 SAVE_CFLAGS="$CFLAGS"
3783 CFLAGS="$CFLAGS -belf"
mlcreech94984912008-03-04 19:03:08 +00003784 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3785echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003786if test "${lt_cv_cc_needs_belf+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 ac_ext=c
3790ac_cpp='$CPP $CPPFLAGS'
3791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00003794
a.rottmann9bc8b932004-02-29 15:18:31 +00003795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003801
a.rottmann9bc8b932004-02-29 15:18:31 +00003802int
3803main ()
drh71eb93e2001-09-28 01:34:43 +00003804{
drh71eb93e2001-09-28 01:34:43 +00003805
a.rottmann9bc8b932004-02-29 15:18:31 +00003806 ;
3807 return 0;
drh71eb93e2001-09-28 01:34:43 +00003808}
a.rottmann9bc8b932004-02-29 15:18:31 +00003809_ACEOF
3810rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00003811if { (ac_try="$ac_link"
3812case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00003818 ac_status=$?
3819 grep -v '^ *+' conftest.er1 >conftest.err
3820 rm -f conftest.er1
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003823 (exit $ac_status); } && {
3824 test -z "$ac_c_werror_flag" ||
3825 test ! -s conftest.err
3826 } && test -s conftest$ac_exeext &&
3827 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003828 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00003829else
a.rottmann9bc8b932004-02-29 15:18:31 +00003830 echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
mlcreech94984912008-03-04 19:03:08 +00003833 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00003834fi
mlcreech94984912008-03-04 19:03:08 +00003835
3836rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00003837 conftest$ac_exeext conftest.$ac_ext
3838 ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843
drh71eb93e2001-09-28 01:34:43 +00003844fi
mlcreech94984912008-03-04 19:03:08 +00003845{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3846echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003847 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3849 CFLAGS="$SAVE_CFLAGS"
3850 fi
3851 ;;
vapier7f19c022007-02-17 14:46:31 +00003852sparc*-*solaris*)
3853 # Find out which ABI we are using.
3854 echo 'int i;' > conftest.$ac_ext
3855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; then
3860 case `/usr/bin/file conftest.o` in
3861 *64-bit*)
3862 case $lt_cv_prog_gnu_ld in
3863 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3864 *) LD="${LD-ld} -64" ;;
3865 esac
3866 ;;
3867 esac
3868 fi
3869 rm -rf conftest*
3870 ;;
3871
a.rottmann9bc8b932004-02-29 15:18:31 +00003872
3873esac
3874
3875need_locks="$enable_libtool_lock"
3876
drh71eb93e2001-09-28 01:34:43 +00003877
a.rottmann84e63352003-03-24 09:42:16 +00003878ac_ext=c
3879ac_cpp='$CPP $CPPFLAGS'
3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_c_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00003883{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3884echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00003885# On Suns, sometimes $CPP names a directory.
3886if test -n "$CPP" && test -d "$CPP"; then
3887 CPP=
3888fi
3889if test -z "$CPP"; then
3890 if test "${ac_cv_prog_CPP+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00003891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
a.rottmann84e63352003-03-24 09:42:16 +00003893 # Double quotes because CPP needs to be expanded
3894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3895 do
3896 ac_preproc_ok=false
3897for ac_c_preproc_warn_flag in '' yes
3898do
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
3911#ifdef __STDC__
3912# include <limits.h>
3913#else
3914# include <assert.h>
3915#endif
a.rottmann964dbb12004-02-26 19:47:42 +00003916 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00003917_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003918if { (ac_try="$ac_cpp conftest.$ac_ext"
3919case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922esac
3923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003930 (exit $ac_status); } >/dev/null && {
3931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3933 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003934 :
3935else
3936 echo "$as_me: failed program was:" >&5
3937sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 # Broken: fails on valid input.
3940continue
3941fi
mlcreech94984912008-03-04 19:03:08 +00003942
a.rottmann84e63352003-03-24 09:42:16 +00003943rm -f conftest.err conftest.$ac_ext
3944
mlcreech94984912008-03-04 19:03:08 +00003945 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00003946 # can be detected and how.
3947 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
3953#include <ac_nonexistent.h>
3954_ACEOF
mlcreech94984912008-03-04 19:03:08 +00003955if { (ac_try="$ac_cpp conftest.$ac_ext"
3956case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00003967 (exit $ac_status); } >/dev/null && {
3968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 }; then
a.rottmann84e63352003-03-24 09:42:16 +00003971 # Broken: success on invalid input.
3972continue
3973else
3974 echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 # Passes both tests.
3978ac_preproc_ok=:
3979break
3980fi
mlcreech94984912008-03-04 19:03:08 +00003981
a.rottmann84e63352003-03-24 09:42:16 +00003982rm -f conftest.err conftest.$ac_ext
3983
3984done
3985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986rm -f conftest.err conftest.$ac_ext
3987if $ac_preproc_ok; then
3988 break
3989fi
3990
3991 done
3992 ac_cv_prog_CPP=$CPP
3993
3994fi
3995 CPP=$ac_cv_prog_CPP
3996else
3997 ac_cv_prog_CPP=$CPP
3998fi
mlcreech94984912008-03-04 19:03:08 +00003999{ echo "$as_me:$LINENO: result: $CPP" >&5
4000echo "${ECHO_T}$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004001ac_preproc_ok=false
4002for ac_c_preproc_warn_flag in '' yes
4003do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
4010 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
4016#ifdef __STDC__
4017# include <limits.h>
4018#else
4019# include <assert.h>
4020#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004021 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004022_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004023if { (ac_try="$ac_cpp conftest.$ac_ext"
4024case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
4028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004039 :
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 # Broken: fails on valid input.
4045continue
4046fi
mlcreech94984912008-03-04 19:03:08 +00004047
a.rottmann84e63352003-03-24 09:42:16 +00004048rm -f conftest.err conftest.$ac_ext
4049
mlcreech94984912008-03-04 19:03:08 +00004050 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00004051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */
4058#include <ac_nonexistent.h>
4059_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004060if { (ac_try="$ac_cpp conftest.$ac_ext"
4061case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004072 (exit $ac_status); } >/dev/null && {
4073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004076 # Broken: success on invalid input.
4077continue
4078else
4079 echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 # Passes both tests.
4083ac_preproc_ok=:
4084break
4085fi
mlcreech94984912008-03-04 19:03:08 +00004086
a.rottmann84e63352003-03-24 09:42:16 +00004087rm -f conftest.err conftest.$ac_ext
4088
4089done
4090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091rm -f conftest.err conftest.$ac_ext
4092if $ac_preproc_ok; then
4093 :
4094else
4095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4096See \`config.log' for more details." >&5
4097echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4098See \`config.log' for more details." >&2;}
4099 { (exit 1); exit 1; }; }
4100fi
4101
4102ac_ext=c
4103ac_cpp='$CPP $CPPFLAGS'
4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
mlcreech94984912008-03-04 19:03:08 +00004109{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4110echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004111if test "${ac_cv_header_stdc+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120#include <stdlib.h>
4121#include <stdarg.h>
4122#include <string.h>
4123#include <float.h>
4124
4125int
4126main ()
4127{
4128
4129 ;
4130 return 0;
4131}
4132_ACEOF
4133rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004134if { (ac_try="$ac_compile"
4135case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004141 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004142 grep -v '^ *+' conftest.er1 >conftest.err
4143 rm -f conftest.er1
4144 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004150 ac_cv_header_stdc=yes
4151else
4152 echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
mlcreech94984912008-03-04 19:03:08 +00004155 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00004156fi
mlcreech94984912008-03-04 19:03:08 +00004157
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004159
4160if test $ac_cv_header_stdc = yes; then
4161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4162 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168#include <string.h>
4169
4170_ACEOF
4171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "memchr" >/dev/null 2>&1; then
4173 :
4174else
4175 ac_cv_header_stdc=no
4176fi
4177rm -f conftest*
4178
4179fi
4180
4181if test $ac_cv_header_stdc = yes; then
4182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4183 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <stdlib.h>
4190
4191_ACEOF
4192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193 $EGREP "free" >/dev/null 2>&1; then
4194 :
4195else
4196 ac_cv_header_stdc=no
4197fi
4198rm -f conftest*
4199
4200fi
4201
4202if test $ac_cv_header_stdc = yes; then
4203 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4204 if test "$cross_compiling" = yes; then
4205 :
4206else
4207 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
4213#include <ctype.h>
mlcreech94984912008-03-04 19:03:08 +00004214#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00004215#if ((' ' & 0x0FF) == 0x020)
4216# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4217# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4218#else
4219# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00004220 (('a' <= (c) && (c) <= 'i') \
4221 || ('j' <= (c) && (c) <= 'r') \
4222 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00004223# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4224#endif
4225
4226#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4227int
4228main ()
4229{
4230 int i;
4231 for (i = 0; i < 256; i++)
4232 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00004233 || toupper (i) != TOUPPER (i))
mlcreech94984912008-03-04 19:03:08 +00004234 return 2;
4235 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00004236}
4237_ACEOF
4238rm -f conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00004239if { (ac_try="$ac_link"
4240case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243esac
4244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004246 ac_status=$?
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
mlcreech94984912008-03-04 19:03:08 +00004249 { (case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00004255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; }; then
4258 :
4259else
4260 echo "$as_me: program exited with status $ac_status" >&5
4261echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264( exit $ac_status )
4265ac_cv_header_stdc=no
4266fi
mlcreech94984912008-03-04 19:03:08 +00004267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4268fi
4269
4270
a.rottmann84e63352003-03-24 09:42:16 +00004271fi
4272fi
mlcreech94984912008-03-04 19:03:08 +00004273{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4274echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004275if test $ac_cv_header_stdc = yes; then
4276
4277cat >>confdefs.h <<\_ACEOF
4278#define STDC_HEADERS 1
4279_ACEOF
4280
4281fi
4282
4283# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00004294 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00004295do
4296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004297{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004303/* confdefs.h. */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h. */
4308$ac_includes_default
4309
4310#include <$ac_header>
4311_ACEOF
4312rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004313if { (ac_try="$ac_compile"
4314case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004320 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004321 grep -v '^ *+' conftest.er1 >conftest.err
4322 rm -f conftest.er1
4323 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004325 (exit $ac_status); } && {
4326 test -z "$ac_c_werror_flag" ||
4327 test ! -s conftest.err
4328 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004329 eval "$as_ac_Header=yes"
4330else
4331 echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
mlcreech94984912008-03-04 19:03:08 +00004334 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00004335fi
mlcreech94984912008-03-04 19:03:08 +00004336
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004338fi
mlcreech94984912008-03-04 19:03:08 +00004339ac_res=`eval echo '${'$as_ac_Header'}'`
4340 { echo "$as_me:$LINENO: result: $ac_res" >&5
4341echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004342if test `eval echo '${'$as_ac_Header'}'` = yes; then
4343 cat >>confdefs.h <<_ACEOF
4344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345_ACEOF
4346
4347fi
4348
4349done
4350
4351
4352
4353for ac_header in dlfcn.h
4354do
4355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +00004356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00004360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361fi
mlcreech94984912008-03-04 19:03:08 +00004362ac_res=`eval echo '${'$as_ac_Header'}'`
4363 { echo "$as_me:$LINENO: result: $ac_res" >&5
4364echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004365else
4366 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +00004367{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004369cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004370/* confdefs.h. */
4371_ACEOF
4372cat confdefs.h >>conftest.$ac_ext
4373cat >>conftest.$ac_ext <<_ACEOF
4374/* end confdefs.h. */
4375$ac_includes_default
4376#include <$ac_header>
4377_ACEOF
4378rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004379if { (ac_try="$ac_compile"
4380case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
4384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004386 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00004387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00004390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004391 (exit $ac_status); } && {
4392 test -z "$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00004395 ac_header_compiler=yes
4396else
4397 echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
mlcreech94984912008-03-04 19:03:08 +00004400 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +00004401fi
mlcreech94984912008-03-04 19:03:08 +00004402
4403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4405echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004406
4407# Is the header present?
mlcreech94984912008-03-04 19:03:08 +00004408{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004410cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416#include <$ac_header>
4417_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004418if { (ac_try="$ac_cpp conftest.$ac_ext"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004425 ac_status=$?
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004430 (exit $ac_status); } >/dev/null && {
4431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 }; then
a.rottmann84e63352003-03-24 09:42:16 +00004434 ac_header_preproc=yes
4435else
4436 echo "$as_me: failed program was:" >&5
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 ac_header_preproc=no
4440fi
mlcreech94984912008-03-04 19:03:08 +00004441
a.rottmann84e63352003-03-24 09:42:16 +00004442rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +00004443{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4444echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004445
4446# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +00004447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4448 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +00004449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4453 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +00004454 ;;
a.rottmann964dbb12004-02-26 19:47:42 +00004455 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +00004456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +00004464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +00004466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +00004468
a.rottmann84e63352003-03-24 09:42:16 +00004469 ;;
drh71eb93e2001-09-28 01:34:43 +00004470esac
mlcreech94984912008-03-04 19:03:08 +00004471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +00004474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
a.rottmann964dbb12004-02-26 19:47:42 +00004476 eval "$as_ac_Header=\$ac_header_preproc"
a.rottmann84e63352003-03-24 09:42:16 +00004477fi
mlcreech94984912008-03-04 19:03:08 +00004478ac_res=`eval echo '${'$as_ac_Header'}'`
4479 { echo "$as_me:$LINENO: result: $ac_res" >&5
4480echo "${ECHO_T}$ac_res" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00004481
4482fi
4483if test `eval echo '${'$as_ac_Header'}'` = yes; then
4484 cat >>confdefs.h <<_ACEOF
4485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4486_ACEOF
4487
4488fi
4489
drh71eb93e2001-09-28 01:34:43 +00004490done
4491
mlcreech94984912008-03-04 19:03:08 +00004492ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004493ac_cpp='$CXXCPP $CPPFLAGS'
4494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004497if test -z "$CXX"; then
4498 if test -n "$CCC"; then
4499 CXX=$CCC
4500 else
4501 if test -n "$ac_tool_prefix"; then
4502 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 +00004503 do
4504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004508if test "${ac_cv_prog_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
a.rottmann9bc8b932004-02-29 15:18:31 +00004511 if test -n "$CXX"; then
4512 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004520 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 +00004521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526done
mlcreech94984912008-03-04 19:03:08 +00004527IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004528
drh71eb93e2001-09-28 01:34:43 +00004529fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004530fi
4531CXX=$ac_cv_prog_CXX
4532if test -n "$CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004533 { echo "$as_me:$LINENO: result: $CXX" >&5
4534echo "${ECHO_T}$CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004535else
mlcreech94984912008-03-04 19:03:08 +00004536 { echo "$as_me:$LINENO: result: no" >&5
4537echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004538fi
4539
mlcreech94984912008-03-04 19:03:08 +00004540
a.rottmann9bc8b932004-02-29 15:18:31 +00004541 test -n "$CXX" && break
4542 done
4543fi
4544if test -z "$CXX"; then
4545 ac_ct_CXX=$CXX
mlcreech94984912008-03-04 19:03:08 +00004546 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 +00004547do
4548 # Extract the first word of "$ac_prog", so it can be a program name with args.
4549set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00004550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004552if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00004553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
a.rottmann9bc8b932004-02-29 15:18:31 +00004555 if test -n "$ac_ct_CXX"; then
4556 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00004564 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 +00004565 ac_cv_prog_ac_ct_CXX="$ac_prog"
4566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4568 fi
4569done
4570done
mlcreech94984912008-03-04 19:03:08 +00004571IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00004572
drh71eb93e2001-09-28 01:34:43 +00004573fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004574fi
4575ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4576if test -n "$ac_ct_CXX"; then
mlcreech94984912008-03-04 19:03:08 +00004577 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4578echo "${ECHO_T}$ac_ct_CXX" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004579else
mlcreech94984912008-03-04 19:03:08 +00004580 { echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004582fi
4583
mlcreech94984912008-03-04 19:03:08 +00004584
a.rottmann9bc8b932004-02-29 15:18:31 +00004585 test -n "$ac_ct_CXX" && break
4586done
a.rottmann9bc8b932004-02-29 15:18:31 +00004587
mlcreech94984912008-03-04 19:03:08 +00004588 if test "x$ac_ct_CXX" = x; then
4589 CXX="g++"
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592yes:)
4593{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4594whose name does not start with the host triplet. If you think this
4595configuration is useful to you, please write to autoconf@gnu.org." >&5
4596echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4597whose name does not start with the host triplet. If you think this
4598configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4599ac_tool_warned=yes ;;
4600esac
4601 CXX=$ac_ct_CXX
4602 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004603fi
4604
mlcreech94984912008-03-04 19:03:08 +00004605 fi
4606fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004607# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00004608echo "$as_me:$LINENO: checking for C++ compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004609ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00004610{ (ac_try="$ac_compiler --version >&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 --version >&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); }
mlcreech94984912008-03-04 19:03:08 +00004630{ (ac_try="$ac_compiler -V >&5"
4631case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634esac
4635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }
4640
mlcreech94984912008-03-04 19:03:08 +00004641{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4642echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004643if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652
4653int
4654main ()
4655{
4656#ifndef __GNUC__
4657 choke me
4658#endif
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004665if { (ac_try="$ac_compile"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004677 (exit $ac_status); } && {
4678 test -z "$ac_cxx_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004681 ac_compiler_gnu=yes
4682else
4683 echo "$as_me: failed program was:" >&5
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
mlcreech94984912008-03-04 19:03:08 +00004686 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00004687fi
mlcreech94984912008-03-04 19:03:08 +00004688
4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004690ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4691
4692fi
mlcreech94984912008-03-04 19:03:08 +00004693{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4694echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004695GXX=`test $ac_compiler_gnu = yes && echo yes`
4696ac_test_CXXFLAGS=${CXXFLAGS+set}
4697ac_save_CXXFLAGS=$CXXFLAGS
mlcreech94984912008-03-04 19:03:08 +00004698{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4699echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004700if test "${ac_cv_prog_cxx_g+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702else
mlcreech94984912008-03-04 19:03:08 +00004703 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4704 ac_cxx_werror_flag=yes
4705 ac_cv_prog_cxx_g=no
4706 CXXFLAGS="-g"
4707 cat >conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00004708/* confdefs.h. */
4709_ACEOF
4710cat confdefs.h >>conftest.$ac_ext
4711cat >>conftest.$ac_ext <<_ACEOF
4712/* end confdefs.h. */
4713
4714int
4715main ()
4716{
4717
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00004723if { (ac_try="$ac_compile"
4724case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727esac
4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004730 ac_status=$?
4731 grep -v '^ *+' conftest.er1 >conftest.err
4732 rm -f conftest.er1
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004735 (exit $ac_status); } && {
4736 test -z "$ac_cxx_werror_flag" ||
4737 test ! -s conftest.err
4738 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004739 ac_cv_prog_cxx_g=yes
4740else
4741 echo "$as_me: failed program was:" >&5
4742sed 's/^/| /' conftest.$ac_ext >&5
4743
mlcreech94984912008-03-04 19:03:08 +00004744 CXXFLAGS=""
4745 cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h. */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (ac_try="$ac_compile"
4762case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765esac
4766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_compile") 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_cxx_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.$ac_objext; then
4777 :
4778else
4779 echo "$as_me: failed program was:" >&5
4780sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4783 CXXFLAGS="-g"
4784 cat >conftest.$ac_ext <<_ACEOF
4785/* confdefs.h. */
4786_ACEOF
4787cat confdefs.h >>conftest.$ac_ext
4788cat >>conftest.$ac_ext <<_ACEOF
4789/* end confdefs.h. */
4790
4791int
4792main ()
4793{
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799rm -f conftest.$ac_objext
4800if { (ac_try="$ac_compile"
4801case "(($ac_try" in
4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803 *) ac_try_echo=$ac_try;;
4804esac
4805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4806 (eval "$ac_compile") 2>conftest.er1
4807 ac_status=$?
4808 grep -v '^ *+' conftest.er1 >conftest.err
4809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && {
4813 test -z "$ac_cxx_werror_flag" ||
4814 test ! -s conftest.err
4815 } && test -s conftest.$ac_objext; then
4816 ac_cv_prog_cxx_g=yes
4817else
4818 echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821
a.rottmann9bc8b932004-02-29 15:18:31 +00004822fi
mlcreech94984912008-03-04 19:03:08 +00004823
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004825fi
mlcreech94984912008-03-04 19:03:08 +00004826
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828fi
4829
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4832fi
4833{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4834echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004835if test "$ac_test_CXXFLAGS" = set; then
4836 CXXFLAGS=$ac_save_CXXFLAGS
4837elif test $ac_cv_prog_cxx_g = yes; then
4838 if test "$GXX" = yes; then
4839 CXXFLAGS="-g -O2"
drh71eb93e2001-09-28 01:34:43 +00004840 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004841 CXXFLAGS="-g"
4842 fi
4843else
4844 if test "$GXX" = yes; then
4845 CXXFLAGS="-O2"
4846 else
4847 CXXFLAGS=
4848 fi
4849fi
mlcreech94984912008-03-04 19:03:08 +00004850ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004851ac_cpp='$CXXCPP $CPPFLAGS'
4852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4855
vapier7f19c022007-02-17 14:46:31 +00004856
4857
4858if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4859 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4860 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00004861 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00004862ac_cpp='$CXXCPP $CPPFLAGS'
4863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mlcreech94984912008-03-04 19:03:08 +00004866{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4867echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004868if test -z "$CXXCPP"; then
4869 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 # Double quotes because CXXCPP needs to be expanded
4873 for CXXCPP in "$CXX -E" "/lib/cpp"
4874 do
4875 ac_preproc_ok=false
4876for ac_cxx_preproc_warn_flag in '' yes
4877do
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat >conftest.$ac_ext <<_ACEOF
4885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
4890#ifdef __STDC__
4891# include <limits.h>
4892#else
4893# include <assert.h>
4894#endif
4895 Syntax error
4896_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004897if { (ac_try="$ac_cpp conftest.$ac_ext"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4911 test ! -s conftest.err
4912 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004913 :
4914else
4915 echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 # Broken: fails on valid input.
4919continue
4920fi
mlcreech94984912008-03-04 19:03:08 +00004921
a.rottmann9bc8b932004-02-29 15:18:31 +00004922rm -f conftest.err conftest.$ac_ext
4923
mlcreech94984912008-03-04 19:03:08 +00004924 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00004925 # can be detected and how.
4926 cat >conftest.$ac_ext <<_ACEOF
4927/* confdefs.h. */
4928_ACEOF
4929cat confdefs.h >>conftest.$ac_ext
4930cat >>conftest.$ac_ext <<_ACEOF
4931/* end confdefs.h. */
4932#include <ac_nonexistent.h>
4933_ACEOF
mlcreech94984912008-03-04 19:03:08 +00004934if { (ac_try="$ac_cpp conftest.$ac_ext"
4935case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938esac
4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00004946 (exit $ac_status); } >/dev/null && {
4947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4948 test ! -s conftest.err
4949 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004950 # Broken: success on invalid input.
4951continue
4952else
4953 echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 # Passes both tests.
4957ac_preproc_ok=:
4958break
4959fi
mlcreech94984912008-03-04 19:03:08 +00004960
a.rottmann9bc8b932004-02-29 15:18:31 +00004961rm -f conftest.err conftest.$ac_ext
4962
4963done
4964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965rm -f conftest.err conftest.$ac_ext
4966if $ac_preproc_ok; then
4967 break
4968fi
4969
4970 done
4971 ac_cv_prog_CXXCPP=$CXXCPP
4972
4973fi
4974 CXXCPP=$ac_cv_prog_CXXCPP
4975else
4976 ac_cv_prog_CXXCPP=$CXXCPP
4977fi
mlcreech94984912008-03-04 19:03:08 +00004978{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4979echo "${ECHO_T}$CXXCPP" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00004980ac_preproc_ok=false
4981for ac_cxx_preproc_warn_flag in '' yes
4982do
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat >conftest.$ac_ext <<_ACEOF
4990/* confdefs.h. */
4991_ACEOF
4992cat confdefs.h >>conftest.$ac_ext
4993cat >>conftest.$ac_ext <<_ACEOF
4994/* end confdefs.h. */
4995#ifdef __STDC__
4996# include <limits.h>
4997#else
4998# include <assert.h>
4999#endif
5000 Syntax error
5001_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005002if { (ac_try="$ac_cpp conftest.$ac_ext"
5003case "(($ac_try" in
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5006esac
5007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005014 (exit $ac_status); } >/dev/null && {
5015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5016 test ! -s conftest.err
5017 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005018 :
5019else
5020 echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023 # Broken: fails on valid input.
5024continue
5025fi
mlcreech94984912008-03-04 19:03:08 +00005026
a.rottmann9bc8b932004-02-29 15:18:31 +00005027rm -f conftest.err conftest.$ac_ext
5028
mlcreech94984912008-03-04 19:03:08 +00005029 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann9bc8b932004-02-29 15:18:31 +00005030 # can be detected and how.
5031 cat >conftest.$ac_ext <<_ACEOF
5032/* confdefs.h. */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h. */
5037#include <ac_nonexistent.h>
5038_ACEOF
mlcreech94984912008-03-04 19:03:08 +00005039if { (ac_try="$ac_cpp conftest.$ac_ext"
5040case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005046 ac_status=$?
5047 grep -v '^ *+' conftest.er1 >conftest.err
5048 rm -f conftest.er1
5049 cat conftest.err >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005051 (exit $ac_status); } >/dev/null && {
5052 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5053 test ! -s conftest.err
5054 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005055 # Broken: success on invalid input.
5056continue
5057else
5058 echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 # Passes both tests.
5062ac_preproc_ok=:
5063break
5064fi
mlcreech94984912008-03-04 19:03:08 +00005065
a.rottmann9bc8b932004-02-29 15:18:31 +00005066rm -f conftest.err conftest.$ac_ext
5067
5068done
5069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070rm -f conftest.err conftest.$ac_ext
5071if $ac_preproc_ok; then
5072 :
5073else
5074 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5075See \`config.log' for more details." >&5
5076echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5077See \`config.log' for more details." >&2;}
5078 { (exit 1); exit 1; }; }
5079fi
5080
mlcreech94984912008-03-04 19:03:08 +00005081ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00005082ac_cpp='$CXXCPP $CPPFLAGS'
5083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5086
vapier7f19c022007-02-17 14:46:31 +00005087fi
5088
a.rottmann9bc8b932004-02-29 15:18:31 +00005089
5090ac_ext=f
5091ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5092ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5094if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00005095 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 +00005096 do
5097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005101if test "${ac_cv_prog_F77+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 if test -n "$F77"; then
5105 ac_cv_prog_F77="$F77" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005113 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 +00005114 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118done
5119done
mlcreech94984912008-03-04 19:03:08 +00005120IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005121
5122fi
5123fi
5124F77=$ac_cv_prog_F77
5125if test -n "$F77"; then
mlcreech94984912008-03-04 19:03:08 +00005126 { echo "$as_me:$LINENO: result: $F77" >&5
5127echo "${ECHO_T}$F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005128else
mlcreech94984912008-03-04 19:03:08 +00005129 { echo "$as_me:$LINENO: result: no" >&5
5130echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005131fi
5132
mlcreech94984912008-03-04 19:03:08 +00005133
a.rottmann9bc8b932004-02-29 15:18:31 +00005134 test -n "$F77" && break
5135 done
5136fi
5137if test -z "$F77"; then
5138 ac_ct_F77=$F77
mlcreech94984912008-03-04 19:03:08 +00005139 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 +00005140do
5141 # Extract the first word of "$ac_prog", so it can be a program name with args.
5142set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005145if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 if test -n "$ac_ct_F77"; then
5149 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005157 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 +00005158 ac_cv_prog_ac_ct_F77="$ac_prog"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
mlcreech94984912008-03-04 19:03:08 +00005164IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005165
5166fi
5167fi
5168ac_ct_F77=$ac_cv_prog_ac_ct_F77
5169if test -n "$ac_ct_F77"; then
mlcreech94984912008-03-04 19:03:08 +00005170 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5171echo "${ECHO_T}$ac_ct_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005172else
mlcreech94984912008-03-04 19:03:08 +00005173 { echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005175fi
5176
mlcreech94984912008-03-04 19:03:08 +00005177
a.rottmann9bc8b932004-02-29 15:18:31 +00005178 test -n "$ac_ct_F77" && break
5179done
5180
mlcreech94984912008-03-04 19:03:08 +00005181 if test "x$ac_ct_F77" = x; then
5182 F77=""
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185yes:)
5186{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5187whose name does not start with the host triplet. If you think this
5188configuration is useful to you, please write to autoconf@gnu.org." >&5
5189echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5190whose name does not start with the host triplet. If you think this
5191configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5192ac_tool_warned=yes ;;
5193esac
5194 F77=$ac_ct_F77
5195 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005196fi
5197
5198
5199# Provide some information about the compiler.
mlcreech94984912008-03-04 19:03:08 +00005200echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005201ac_compiler=`set X $ac_compile; echo $2`
mlcreech94984912008-03-04 19:03:08 +00005202{ (ac_try="$ac_compiler --version >&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 --version >&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); }
mlcreech94984912008-03-04 19:03:08 +00005222{ (ac_try="$ac_compiler -V >&5"
5223case "(($ac_try" in
5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225 *) ac_try_echo=$ac_try;;
5226esac
5227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228 (eval "$ac_compiler -V >&5") 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005229 ac_status=$?
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }
5232rm -f a.out
5233
5234# If we don't use `.F' as extension, the preprocessor is not run on the
5235# input file. (Note that this only needs to work for GNU compilers.)
5236ac_save_ext=$ac_ext
5237ac_ext=F
mlcreech94984912008-03-04 19:03:08 +00005238{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5239echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005240if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 program main
5245#ifndef __GNUC__
5246 choke me
5247#endif
5248
5249 end
5250_ACEOF
5251rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005252if { (ac_try="$ac_compile"
5253case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
5257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005264 (exit $ac_status); } && {
5265 test -z "$ac_f77_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005268 ac_compiler_gnu=yes
5269else
5270 echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
mlcreech94984912008-03-04 19:03:08 +00005273 ac_compiler_gnu=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005274fi
mlcreech94984912008-03-04 19:03:08 +00005275
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005277ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5278
5279fi
mlcreech94984912008-03-04 19:03:08 +00005280{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5281echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005282ac_ext=$ac_save_ext
5283ac_test_FFLAGS=${FFLAGS+set}
5284ac_save_FFLAGS=$FFLAGS
5285FFLAGS=
mlcreech94984912008-03-04 19:03:08 +00005286{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5287echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005288if test "${ac_cv_prog_f77_g+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291 FFLAGS=-g
5292cat >conftest.$ac_ext <<_ACEOF
5293 program main
5294
5295 end
5296_ACEOF
5297rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +00005298if { (ac_try="$ac_compile"
5299case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302esac
5303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_compile") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00005310 (exit $ac_status); } && {
5311 test -z "$ac_f77_werror_flag" ||
5312 test ! -s conftest.err
5313 } && test -s conftest.$ac_objext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005314 ac_cv_prog_f77_g=yes
5315else
5316 echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
mlcreech94984912008-03-04 19:03:08 +00005319 ac_cv_prog_f77_g=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005320fi
mlcreech94984912008-03-04 19:03:08 +00005321
5322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005323
5324fi
mlcreech94984912008-03-04 19:03:08 +00005325{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5326echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005327if test "$ac_test_FFLAGS" = set; then
5328 FFLAGS=$ac_save_FFLAGS
5329elif test $ac_cv_prog_f77_g = yes; then
5330 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5331 FFLAGS="-g -O2"
5332 else
5333 FFLAGS="-g"
5334 fi
5335else
5336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5337 FFLAGS="-O2"
5338 else
5339 FFLAGS=
drh71eb93e2001-09-28 01:34:43 +00005340 fi
5341fi
5342
a.rottmann9bc8b932004-02-29 15:18:31 +00005343G77=`test $ac_compiler_gnu = yes && echo yes`
5344ac_ext=c
5345ac_cpp='$CPP $CPPFLAGS'
5346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_c_compiler_gnu
5349
5350
5351
5352# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5353
5354# find the maximum length of command line arguments
mlcreech94984912008-03-04 19:03:08 +00005355{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5356echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005357if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360 i=0
vapier7f19c022007-02-17 14:46:31 +00005361 teststring="ABCD"
a.rottmann9bc8b932004-02-29 15:18:31 +00005362
5363 case $build_os in
5364 msdosdjgpp*)
5365 # On DJGPP, this test can blow up pretty badly due to problems in libc
5366 # (any single argument exceeding 2000 bytes causes a buffer overrun
5367 # during glob expansion). Even if it were fixed, the result of this
5368 # check would be larger than it should be.
5369 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5370 ;;
5371
5372 gnu*)
5373 # Under GNU Hurd, this test is not required because there is
5374 # no limit to the length of command line arguments.
5375 # Libtool will interpret -1 as no limit whatsoever
5376 lt_cv_sys_max_cmd_len=-1;
5377 ;;
5378
5379 cygwin* | mingw*)
5380 # On Win9x/ME, this test blows up -- it succeeds, but takes
5381 # about 5 minutes as the teststring grows exponentially.
5382 # Worse, since 9x/ME are not pre-emptively multitasking,
5383 # you end up with a "frozen" computer, even though with patience
5384 # the test eventually succeeds (with a max line length of 256k).
5385 # Instead, let's just punt: use the minimum linelength reported by
5386 # all of the supported platforms: 8192 (on NT/2K/XP).
5387 lt_cv_sys_max_cmd_len=8192;
5388 ;;
5389
5390 amigaos*)
5391 # On AmigaOS with pdksh, this test takes hours, literally.
5392 # So we just punt and use a minimum line length of 8192.
5393 lt_cv_sys_max_cmd_len=8192;
5394 ;;
5395
vapier7f19c022007-02-17 14:46:31 +00005396 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5397 # This has been around since 386BSD, at least. Likely further.
5398 if test -x /sbin/sysctl; then
5399 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5400 elif test -x /usr/sbin/sysctl; then
5401 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5402 else
5403 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5404 fi
5405 # And add a safety zone
5406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5408 ;;
5409
5410 interix*)
5411 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5412 lt_cv_sys_max_cmd_len=196608
5413 ;;
5414
5415 osf*)
5416 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5417 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5418 # nice to cause kernel panics so lets avoid the loop below.
5419 # First set a reasonable default.
5420 lt_cv_sys_max_cmd_len=16384
5421 #
5422 if test -x /sbin/sysconfig; then
5423 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5424 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5425 esac
5426 fi
5427 ;;
5428 sco3.2v5*)
5429 lt_cv_sys_max_cmd_len=102400
5430 ;;
5431 sysv5* | sco5v6* | sysv4.2uw2*)
5432 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5433 if test -n "$kargmax"; then
5434 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5435 else
5436 lt_cv_sys_max_cmd_len=32768
5437 fi
5438 ;;
5439 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005440 # If test is not a shell built-in, we'll probably end up computing a
5441 # maximum length that is only half of the actual maximum length, but
5442 # we can't tell.
vapier7f19c022007-02-17 14:46:31 +00005443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5444 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5445 = "XX$teststring") >/dev/null 2>&1 &&
5446 new_result=`expr "X$teststring" : ".*" 2>&1` &&
a.rottmann9bc8b932004-02-29 15:18:31 +00005447 lt_cv_sys_max_cmd_len=$new_result &&
5448 test $i != 17 # 1/2 MB should be enough
5449 do
5450 i=`expr $i + 1`
vapier7f19c022007-02-17 14:46:31 +00005451 teststring=$teststring$teststring
a.rottmann9bc8b932004-02-29 15:18:31 +00005452 done
vapier7f19c022007-02-17 14:46:31 +00005453 teststring=
a.rottmann9bc8b932004-02-29 15:18:31 +00005454 # Add a significant safety factor because C++ compilers can tack on massive
5455 # amounts of additional arguments before passing them to the linker.
5456 # It appears as though 1/2 is a usable value.
5457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5458 ;;
5459 esac
5460
5461fi
5462
5463if test -n $lt_cv_sys_max_cmd_len ; then
mlcreech94984912008-03-04 19:03:08 +00005464 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5465echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005466else
mlcreech94984912008-03-04 19:03:08 +00005467 { echo "$as_me:$LINENO: result: none" >&5
5468echo "${ECHO_T}none" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005469fi
5470
5471
5472
5473
5474# Check for command to grab the raw symbol name followed by C symbol from nm.
mlcreech94984912008-03-04 19:03:08 +00005475{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5476echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005477if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5479else
5480
5481# These are sane defaults that work on at least a few old systems.
5482# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5483
5484# Character class describing NM global symbol codes.
5485symcode='[BCDEGRST]'
5486
5487# Regexp to match symbols that can be accessed directly from C.
5488sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5489
a.rottmann9bc8b932004-02-29 15:18:31 +00005490# Transform an extracted symbol line into a proper C declaration
5491lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5492
5493# Transform an extracted symbol line into symbol name and symbol address
5494lt_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'"
5495
5496# Define system-specific variables.
5497case $host_os in
5498aix*)
5499 symcode='[BCDT]'
5500 ;;
5501cygwin* | mingw* | pw32*)
5502 symcode='[ABCDGISTW]'
5503 ;;
5504hpux*) # Its linker distinguishes data from code symbols
5505 if test "$host_cpu" = ia64; then
5506 symcode='[ABCDEGRST]'
5507 fi
5508 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5509 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'"
5510 ;;
vapier7f19c022007-02-17 14:46:31 +00005511linux*)
5512 if test "$host_cpu" = ia64; then
5513 symcode='[ABCDGIRSTW]'
5514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5515 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'"
5516 fi
5517 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005518irix* | nonstopux*)
5519 symcode='[BCDEGRST]'
5520 ;;
5521osf*)
5522 symcode='[BCDEGQRST]'
5523 ;;
vapier7f19c022007-02-17 14:46:31 +00005524solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005525 symcode='[BDRT]'
5526 ;;
vapier7f19c022007-02-17 14:46:31 +00005527sco3.2v5*)
5528 symcode='[DT]'
5529 ;;
5530sysv4.2uw2*)
5531 symcode='[DT]'
5532 ;;
5533sysv5* | sco5v6* | unixware* | OpenUNIX*)
5534 symcode='[ABDT]'
5535 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005536sysv4)
5537 symcode='[DFNSTU]'
5538 ;;
5539esac
5540
5541# Handle CRLF in mingw tool chain
5542opt_cr=
5543case $build_os in
5544mingw*)
5545 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5546 ;;
5547esac
5548
5549# If we're using GNU nm, then use its standard symbol codes.
5550case `$NM -V 2>&1` in
5551*GNU* | *'with BFD'*)
5552 symcode='[ABCDGIRSTW]' ;;
5553esac
5554
5555# Try without a prefix undercore, then with it.
5556for ac_symprfx in "" "_"; do
5557
vapier7f19c022007-02-17 14:46:31 +00005558 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5559 symxfrm="\\1 $ac_symprfx\\2 \\2"
5560
a.rottmann9bc8b932004-02-29 15:18:31 +00005561 # Write the raw and C identifiers.
vapier7f19c022007-02-17 14:46:31 +00005562 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 +00005563
5564 # Check to see that the pipe works correctly.
5565 pipe_works=no
5566
5567 rm -f conftest*
5568 cat > conftest.$ac_ext <<EOF
5569#ifdef __cplusplus
5570extern "C" {
5571#endif
5572char nm_test_var;
5573void nm_test_func(){}
5574#ifdef __cplusplus
5575}
5576#endif
5577int main(){nm_test_var='a';nm_test_func();return(0);}
5578EOF
5579
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); }; then
5585 # Now try to grab the symbols.
5586 nlist=conftest.nm
5587 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5588 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && test -s "$nlist"; then
5592 # Try sorting and uniquifying the output.
5593 if sort "$nlist" | uniq > "$nlist"T; then
5594 mv -f "$nlist"T "$nlist"
5595 else
5596 rm -f "$nlist"T
5597 fi
5598
5599 # Make sure that we snagged all the symbols we need.
5600 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5601 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5602 cat <<EOF > conftest.$ac_ext
5603#ifdef __cplusplus
5604extern "C" {
5605#endif
5606
5607EOF
5608 # Now generate the symbol file.
5609 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5610
5611 cat <<EOF >> conftest.$ac_ext
5612#if defined (__STDC__) && __STDC__
5613# define lt_ptr_t void *
5614#else
5615# define lt_ptr_t char *
5616# define const
5617#endif
5618
5619/* The mapping between symbol names and symbols. */
5620const struct {
5621 const char *name;
5622 lt_ptr_t address;
5623}
5624lt_preloaded_symbols[] =
5625{
5626EOF
5627 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5628 cat <<\EOF >> conftest.$ac_ext
5629 {0, (lt_ptr_t) 0}
5630};
5631
5632#ifdef __cplusplus
5633}
5634#endif
5635EOF
5636 # Now try linking the two files.
5637 mv conftest.$ac_objext conftstm.$ac_objext
5638 lt_save_LIBS="$LIBS"
5639 lt_save_CFLAGS="$CFLAGS"
5640 LIBS="conftstm.$ac_objext"
5641 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5647 pipe_works=yes
5648 fi
5649 LIBS="$lt_save_LIBS"
5650 CFLAGS="$lt_save_CFLAGS"
5651 else
5652 echo "cannot find nm_test_func in $nlist" >&5
5653 fi
5654 else
5655 echo "cannot find nm_test_var in $nlist" >&5
5656 fi
5657 else
5658 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5659 fi
5660 else
5661 echo "$progname: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5663 fi
5664 rm -f conftest* conftst*
5665
5666 # Do not use the global_symbol_pipe unless it works.
5667 if test "$pipe_works" = yes; then
5668 break
5669 else
5670 lt_cv_sys_global_symbol_pipe=
5671 fi
5672done
5673
5674fi
5675
5676if test -z "$lt_cv_sys_global_symbol_pipe"; then
5677 lt_cv_sys_global_symbol_to_cdecl=
5678fi
5679if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
mlcreech94984912008-03-04 19:03:08 +00005680 { echo "$as_me:$LINENO: result: failed" >&5
5681echo "${ECHO_T}failed" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005682else
mlcreech94984912008-03-04 19:03:08 +00005683 { echo "$as_me:$LINENO: result: ok" >&5
5684echo "${ECHO_T}ok" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005685fi
5686
mlcreech94984912008-03-04 19:03:08 +00005687{ echo "$as_me:$LINENO: checking for objdir" >&5
5688echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005689if test "${lt_cv_objdir+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 rm -f .libs 2>/dev/null
5693mkdir .libs 2>/dev/null
5694if test -d .libs; then
5695 lt_cv_objdir=.libs
5696else
5697 # MS-DOS does not allow filenames that begin with a dot.
5698 lt_cv_objdir=_libs
5699fi
5700rmdir .libs 2>/dev/null
5701fi
mlcreech94984912008-03-04 19:03:08 +00005702{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5703echo "${ECHO_T}$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005704objdir=$lt_cv_objdir
5705
5706
5707
5708
5709
5710case $host_os in
5711aix3*)
5712 # AIX sometimes has problems with the GCC collect2 program. For some
5713 # reason, if we set the COLLECT_NAMES environment variable, the problems
5714 # vanish in a puff of smoke.
5715 if test "X${COLLECT_NAMES+set}" != Xset; then
5716 COLLECT_NAMES=
5717 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005718 fi
5719 ;;
5720esac
5721
a.rottmann9bc8b932004-02-29 15:18:31 +00005722# Sed substitution that helps us do robust quoting. It backslashifies
5723# metacharacters that are still active within double-quoted strings.
vapier7f19c022007-02-17 14:46:31 +00005724Xsed='sed -e 1s/^X//'
a.rottmann9bc8b932004-02-29 15:18:31 +00005725sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5726
5727# Same as above, but do not quote variable references.
5728double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5729
5730# Sed substitution to delay expansion of an escaped shell variable in a
5731# double_quote_subst'ed string.
5732delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5733
5734# Sed substitution to avoid accidental globbing in evaled expressions
5735no_glob_subst='s/\*/\\\*/g'
5736
5737# Constants:
5738rm="rm -f"
5739
5740# Global variables:
5741default_ofile=libtool
5742can_build_shared=yes
5743
vapier7f19c022007-02-17 14:46:31 +00005744# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005745# which needs '.lib').
5746libext=a
5747ltmain="$ac_aux_dir/ltmain.sh"
5748ofile="$default_ofile"
5749with_gnu_ld="$lt_cv_prog_gnu_ld"
5750
5751if test -n "$ac_tool_prefix"; then
5752 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5753set dummy ${ac_tool_prefix}ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005756if test "${ac_cv_prog_AR+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 if test -n "$AR"; then
5760 ac_cv_prog_AR="$AR" # Let the user override the test.
5761else
5762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005768 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 +00005769 ac_cv_prog_AR="${ac_tool_prefix}ar"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
5774done
mlcreech94984912008-03-04 19:03:08 +00005775IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005776
5777fi
5778fi
5779AR=$ac_cv_prog_AR
5780if test -n "$AR"; then
mlcreech94984912008-03-04 19:03:08 +00005781 { echo "$as_me:$LINENO: result: $AR" >&5
5782echo "${ECHO_T}$AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005783else
mlcreech94984912008-03-04 19:03:08 +00005784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005786fi
5787
mlcreech94984912008-03-04 19:03:08 +00005788
a.rottmann9bc8b932004-02-29 15:18:31 +00005789fi
5790if test -z "$ac_cv_prog_AR"; then
5791 ac_ct_AR=$AR
5792 # Extract the first word of "ar", so it can be a program name with args.
5793set dummy ar; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005796if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5801else
5802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803for as_dir in $PATH
5804do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005808 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 +00005809 ac_cv_prog_ac_ct_AR="ar"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813done
5814done
mlcreech94984912008-03-04 19:03:08 +00005815IFS=$as_save_IFS
a.rottmann9bc8b932004-02-29 15:18:31 +00005816
a.rottmann9bc8b932004-02-29 15:18:31 +00005817fi
5818fi
5819ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820if test -n "$ac_ct_AR"; then
mlcreech94984912008-03-04 19:03:08 +00005821 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822echo "${ECHO_T}$ac_ct_AR" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005823else
mlcreech94984912008-03-04 19:03:08 +00005824 { echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005826fi
5827
mlcreech94984912008-03-04 19:03:08 +00005828 if test "x$ac_ct_AR" = x; then
5829 AR="false"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832yes:)
5833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5834whose name does not start with the host triplet. If you think this
5835configuration is useful to you, please write to autoconf@gnu.org." >&5
5836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5837whose name does not start with the host triplet. If you think this
5838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841 AR=$ac_ct_AR
5842 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005843else
5844 AR="$ac_cv_prog_AR"
5845fi
5846
a.rottmann84e63352003-03-24 09:42:16 +00005847if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5849set dummy ${ac_tool_prefix}ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005852if test "${ac_cv_prog_RANLIB+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855 if test -n "$RANLIB"; then
5856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005864 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 +00005865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
5870done
mlcreech94984912008-03-04 19:03:08 +00005871IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005872
5873fi
5874fi
5875RANLIB=$ac_cv_prog_RANLIB
5876if test -n "$RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005877 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5878echo "${ECHO_T}$RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005879else
mlcreech94984912008-03-04 19:03:08 +00005880 { echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005882fi
5883
mlcreech94984912008-03-04 19:03:08 +00005884
a.rottmann84e63352003-03-24 09:42:16 +00005885fi
5886if test -z "$ac_cv_prog_RANLIB"; then
5887 ac_ct_RANLIB=$RANLIB
5888 # Extract the first word of "ranlib", so it can be a program name with args.
5889set dummy ranlib; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005892if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895 if test -n "$ac_ct_RANLIB"; then
5896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5897else
5898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899for as_dir in $PATH
5900do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005904 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 +00005905 ac_cv_prog_ac_ct_RANLIB="ranlib"
5906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5908 fi
5909done
5910done
mlcreech94984912008-03-04 19:03:08 +00005911IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005912
a.rottmann84e63352003-03-24 09:42:16 +00005913fi
5914fi
5915ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5916if test -n "$ac_ct_RANLIB"; then
mlcreech94984912008-03-04 19:03:08 +00005917 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5918echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005919else
mlcreech94984912008-03-04 19:03:08 +00005920 { echo "$as_me:$LINENO: result: no" >&5
5921echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005922fi
5923
mlcreech94984912008-03-04 19:03:08 +00005924 if test "x$ac_ct_RANLIB" = x; then
5925 RANLIB=":"
5926 else
5927 case $cross_compiling:$ac_tool_warned in
5928yes:)
5929{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5930whose name does not start with the host triplet. If you think this
5931configuration is useful to you, please write to autoconf@gnu.org." >&5
5932echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5933whose name does not start with the host triplet. If you think this
5934configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5935ac_tool_warned=yes ;;
5936esac
5937 RANLIB=$ac_ct_RANLIB
5938 fi
a.rottmann84e63352003-03-24 09:42:16 +00005939else
5940 RANLIB="$ac_cv_prog_RANLIB"
5941fi
5942
5943if test -n "$ac_tool_prefix"; then
5944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005948if test "${ac_cv_prog_STRIP+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951 if test -n "$STRIP"; then
5952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00005960 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 +00005961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965done
5966done
mlcreech94984912008-03-04 19:03:08 +00005967IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00005968
5969fi
5970fi
5971STRIP=$ac_cv_prog_STRIP
5972if test -n "$STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00005973 { echo "$as_me:$LINENO: result: $STRIP" >&5
5974echo "${ECHO_T}$STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005975else
mlcreech94984912008-03-04 19:03:08 +00005976 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005978fi
5979
mlcreech94984912008-03-04 19:03:08 +00005980
a.rottmann84e63352003-03-24 09:42:16 +00005981fi
5982if test -z "$ac_cv_prog_STRIP"; then
5983 ac_ct_STRIP=$STRIP
5984 # Extract the first word of "strip", so it can be a program name with args.
5985set dummy strip; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +00005986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005988if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 if test -n "$ac_ct_STRIP"; then
5992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +00006000 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 +00006001 ac_cv_prog_ac_ct_STRIP="strip"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006done
mlcreech94984912008-03-04 19:03:08 +00006007IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00006008
a.rottmann84e63352003-03-24 09:42:16 +00006009fi
6010fi
6011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6012if test -n "$ac_ct_STRIP"; then
mlcreech94984912008-03-04 19:03:08 +00006013 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6014echo "${ECHO_T}$ac_ct_STRIP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006015else
mlcreech94984912008-03-04 19:03:08 +00006016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006018fi
6019
mlcreech94984912008-03-04 19:03:08 +00006020 if test "x$ac_ct_STRIP" = x; then
6021 STRIP=":"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026whose name does not start with the host triplet. If you think this
6027configuration is useful to you, please write to autoconf@gnu.org." >&5
6028echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029whose name does not start with the host triplet. If you think this
6030configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031ac_tool_warned=yes ;;
6032esac
6033 STRIP=$ac_ct_STRIP
6034 fi
a.rottmann84e63352003-03-24 09:42:16 +00006035else
6036 STRIP="$ac_cv_prog_STRIP"
6037fi
6038
6039
a.rottmann84e63352003-03-24 09:42:16 +00006040old_CC="$CC"
6041old_CFLAGS="$CFLAGS"
6042
6043# Set sane defaults for various variables
6044test -z "$AR" && AR=ar
6045test -z "$AR_FLAGS" && AR_FLAGS=cru
6046test -z "$AS" && AS=as
6047test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006048test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006049test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006050test -z "$DLLTOOL" && DLLTOOL=dlltool
6051test -z "$LD" && LD=ld
6052test -z "$LN_S" && LN_S="ln -s"
6053test -z "$MAGIC_CMD" && MAGIC_CMD=file
6054test -z "$NM" && NM=nm
a.rottmann9bc8b932004-02-29 15:18:31 +00006055test -z "$SED" && SED=sed
a.rottmann84e63352003-03-24 09:42:16 +00006056test -z "$OBJDUMP" && OBJDUMP=objdump
6057test -z "$RANLIB" && RANLIB=:
6058test -z "$STRIP" && STRIP=:
6059test -z "$ac_objext" && ac_objext=o
6060
a.rottmann84e63352003-03-24 09:42:16 +00006061# Determine commands to create old-style static archives.
6062old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6063old_postinstall_cmds='chmod 644 $oldlib'
6064old_postuninstall_cmds=
6065
6066if test -n "$RANLIB"; then
6067 case $host_os in
6068 openbsd*)
vapier7f19c022007-02-17 14:46:31 +00006069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006070 ;;
6071 *)
vapier7f19c022007-02-17 14:46:31 +00006072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
a.rottmann84e63352003-03-24 09:42:16 +00006073 ;;
6074 esac
6075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6076fi
6077
vapier7f19c022007-02-17 14:46:31 +00006078for cc_temp in $compiler""; do
6079 case $cc_temp in
6080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6082 \-*) ;;
6083 *) break;;
6084 esac
6085done
6086cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6087
6088
a.rottmann9bc8b932004-02-29 15:18:31 +00006089# Only perform the check for file, if the check method requires it
6090case $deplibs_check_method in
6091file_magic*)
6092 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
mlcreech94984912008-03-04 19:03:08 +00006093 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6094echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006095if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00006097else
a.rottmann9bc8b932004-02-29 15:18:31 +00006098 case $MAGIC_CMD in
6099[\\/*] | ?:[\\/]*)
6100 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6101 ;;
6102*)
6103 lt_save_MAGIC_CMD="$MAGIC_CMD"
6104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6105 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6106 for ac_dir in $ac_dummy; do
6107 IFS="$lt_save_ifs"
6108 test -z "$ac_dir" && ac_dir=.
6109 if test -f $ac_dir/${ac_tool_prefix}file; then
6110 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6111 if test -n "$file_magic_test_file"; then
6112 case $deplibs_check_method in
6113 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006114 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006115 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6116 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6117 $EGREP "$file_magic_regex" > /dev/null; then
6118 :
6119 else
6120 cat <<EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006121
a.rottmann9bc8b932004-02-29 15:18:31 +00006122*** Warning: the command libtool uses to detect shared libraries,
6123*** $file_magic_cmd, produces output that libtool cannot recognize.
6124*** The result is that libtool may fail to recognize shared libraries
6125*** as such. This will affect the creation of libtool libraries that
6126*** depend on shared libraries, but programs linked with such libtool
6127*** libraries will work regardless of this problem. Nevertheless, you
6128*** may want to report the problem to your system manager and/or to
6129*** bug-libtool@gnu.org
6130
6131EOF
6132 fi ;;
6133 esac
6134 fi
6135 break
6136 fi
6137 done
6138 IFS="$lt_save_ifs"
6139 MAGIC_CMD="$lt_save_MAGIC_CMD"
6140 ;;
6141esac
6142fi
6143
6144MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6145if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006146 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6147echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006148else
mlcreech94984912008-03-04 19:03:08 +00006149 { echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006151fi
6152
6153if test -z "$lt_cv_path_MAGIC_CMD"; then
6154 if test -n "$ac_tool_prefix"; then
mlcreech94984912008-03-04 19:03:08 +00006155 { echo "$as_me:$LINENO: checking for file" >&5
6156echo $ECHO_N "checking for file... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006157if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159else
6160 case $MAGIC_CMD in
6161[\\/*] | ?:[\\/]*)
6162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6163 ;;
6164*)
6165 lt_save_MAGIC_CMD="$MAGIC_CMD"
6166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6168 for ac_dir in $ac_dummy; do
6169 IFS="$lt_save_ifs"
6170 test -z "$ac_dir" && ac_dir=.
6171 if test -f $ac_dir/file; then
6172 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6173 if test -n "$file_magic_test_file"; then
6174 case $deplibs_check_method in
6175 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6179 $EGREP "$file_magic_regex" > /dev/null; then
6180 :
6181 else
6182 cat <<EOF 1>&2
6183
6184*** Warning: the command libtool uses to detect shared libraries,
6185*** $file_magic_cmd, produces output that libtool cannot recognize.
6186*** The result is that libtool may fail to recognize shared libraries
6187*** as such. This will affect the creation of libtool libraries that
6188*** depend on shared libraries, but programs linked with such libtool
6189*** libraries will work regardless of this problem. Nevertheless, you
6190*** may want to report the problem to your system manager and/or to
6191*** bug-libtool@gnu.org
6192
6193EOF
6194 fi ;;
6195 esac
6196 fi
6197 break
6198 fi
6199 done
6200 IFS="$lt_save_ifs"
6201 MAGIC_CMD="$lt_save_MAGIC_CMD"
6202 ;;
6203esac
6204fi
6205
6206MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6207if test -n "$MAGIC_CMD"; then
mlcreech94984912008-03-04 19:03:08 +00006208 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6209echo "${ECHO_T}$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006210else
mlcreech94984912008-03-04 19:03:08 +00006211 { echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006213fi
6214
6215 else
6216 MAGIC_CMD=:
6217 fi
6218fi
6219
6220 fi
6221 ;;
6222esac
6223
6224enable_dlopen=no
6225enable_win32_dll=no
6226
mlcreech94984912008-03-04 19:03:08 +00006227# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00006228if test "${enable_libtool_lock+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006229 enableval=$enable_libtool_lock;
6230fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006231
a.rottmann9bc8b932004-02-29 15:18:31 +00006232test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
a.rottmann84e63352003-03-24 09:42:16 +00006233
6234
mlcreech94984912008-03-04 19:03:08 +00006235# Check whether --with-pic was given.
drh71eb93e2001-09-28 01:34:43 +00006236if test "${with_pic+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00006237 withval=$with_pic; pic_mode="$withval"
drh71eb93e2001-09-28 01:34:43 +00006238else
6239 pic_mode=default
mlcreech94984912008-03-04 19:03:08 +00006240fi
6241
drh71eb93e2001-09-28 01:34:43 +00006242test -z "$pic_mode" && pic_mode=default
6243
vapier7f19c022007-02-17 14:46:31 +00006244# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6245#
6246# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6247# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6248# calls AC_LIBTOOL_CONFIG and creates libtool.
6249#
mlcreech94984912008-03-04 19:03:08 +00006250{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6251echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006252if test "x$ltmain" = "x" ; then
mlcreech94984912008-03-04 19:03:08 +00006253 { echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006255 { { echo "$as_me:$LINENO: error:
6256
6257*** [Gentoo] sanity check failed! ***
6258*** \$ltmain is not defined, please check the patch for consistency! ***
6259" >&5
6260echo "$as_me: error:
6261
6262*** [Gentoo] sanity check failed! ***
6263*** \$ltmain is not defined, please check the patch for consistency! ***
6264" >&2;}
6265 { (exit 1); exit 1; }; }
6266fi
6267gentoo_lt_version="1.5.22"
6268gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6269if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
mlcreech94984912008-03-04 19:03:08 +00006270 { echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006272 { { echo "$as_me:$LINENO: error:
6273
6274*** [Gentoo] sanity check failed! ***
6275*** libtool.m4 and ltmain.sh have a version mismatch! ***
6276*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6277
6278Please run:
6279
6280 libtoolize --copy --force
6281
6282if appropriate, please contact the maintainer of this
6283package (or your distribution) for help.
6284" >&5
6285echo "$as_me: error:
6286
6287*** [Gentoo] sanity check failed! ***
6288*** libtool.m4 and ltmain.sh have a version mismatch! ***
6289*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6290
6291Please run:
6292
6293 libtoolize --copy --force
6294
6295if appropriate, please contact the maintainer of this
6296package (or your distribution) for help.
6297" >&2;}
6298 { (exit 1); exit 1; }; }
6299else
mlcreech94984912008-03-04 19:03:08 +00006300 { echo "$as_me:$LINENO: result: yes" >&5
6301echo "${ECHO_T}yes" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006302fi
6303
6304
a.rottmann9bc8b932004-02-29 15:18:31 +00006305# Use C for the default configuration in the libtool script
6306tagname=
6307lt_save_CC="$CC"
6308ac_ext=c
6309ac_cpp='$CPP $CPPFLAGS'
6310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6312ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313
6314
6315# Source file extension for C test sources.
6316ac_ext=c
6317
6318# Object file extension for compiled C test sources.
6319objext=o
6320objext=$objext
6321
6322# Code to be used in simple compile tests
6323lt_simple_compile_test_code="int some_variable = 0;\n"
6324
6325# Code to be used in simple link tests
6326lt_simple_link_test_code='int main(){return(0);}\n'
6327
6328
6329# If no C compiler was specified, use CC.
6330LTCC=${LTCC-"$CC"}
6331
vapier7f19c022007-02-17 14:46:31 +00006332# If no C compiler flags were specified, use CFLAGS.
6333LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6334
a.rottmann9bc8b932004-02-29 15:18:31 +00006335# Allow CC to be a program name with arguments.
6336compiler=$CC
6337
6338
vapier7f19c022007-02-17 14:46:31 +00006339# save warnings/boilerplate of simple test code
6340ac_outfile=conftest.$ac_objext
6341printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6342eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6343_lt_compiler_boilerplate=`cat conftest.err`
6344$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006345
vapier7f19c022007-02-17 14:46:31 +00006346ac_outfile=conftest.$ac_objext
6347printf "$lt_simple_link_test_code" >conftest.$ac_ext
6348eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6349_lt_linker_boilerplate=`cat conftest.err`
6350$rm conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006351
6352
6353
6354lt_prog_compiler_no_builtin_flag=
6355
6356if test "$GCC" = yes; then
6357 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6358
6359
mlcreech94984912008-03-04 19:03:08 +00006360{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6361echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006362if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 lt_cv_prog_compiler_rtti_exceptions=no
6366 ac_outfile=conftest.$ac_objext
6367 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6368 lt_compiler_flag="-fno-rtti -fno-exceptions"
6369 # Insert the option either (1) after the last *FLAGS variable, or
6370 # (2) before a word containing "conftest.", or (3) at the end.
6371 # Note that $ac_compile itself does not contain backslashes and begins
6372 # with a dollar sign (not a hyphen), so the echo should work correctly.
6373 # The option is referenced via a variable to avoid confusing sed.
6374 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6377 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +00006378 (eval echo "\"\$as_me:6378: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006379 (eval "$lt_compile" 2>conftest.err)
6380 ac_status=$?
6381 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +00006382 echo "$as_me:6382: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006383 if (exit $ac_status) && test -s "$ac_outfile"; then
6384 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006385 # So say no if there are warnings other than the usual output.
6386 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6388 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006389 lt_cv_prog_compiler_rtti_exceptions=yes
6390 fi
6391 fi
6392 $rm conftest*
6393
6394fi
mlcreech94984912008-03-04 19:03:08 +00006395{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6396echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006397
6398if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6399 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6400else
6401 :
6402fi
6403
6404fi
6405
6406lt_prog_compiler_wl=
6407lt_prog_compiler_pic=
6408lt_prog_compiler_static=
6409
mlcreech94984912008-03-04 19:03:08 +00006410{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6411echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006412
drh71eb93e2001-09-28 01:34:43 +00006413 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006414 lt_prog_compiler_wl='-Wl,'
6415 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006416
6417 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006418 aix*)
6419 # All AIX code is PIC.
6420 if test "$host_cpu" = ia64; then
6421 # AIX 5 now supports IA64 processor
6422 lt_prog_compiler_static='-Bstatic'
6423 fi
drh71eb93e2001-09-28 01:34:43 +00006424 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006425
drh71eb93e2001-09-28 01:34:43 +00006426 amigaos*)
6427 # FIXME: we need at least 68020 code to build shared libraries, but
6428 # adding the `-m68020' flag to GCC prevents building anything better,
6429 # like `-m68040'.
a.rottmann9bc8b932004-02-29 15:18:31 +00006430 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
drh71eb93e2001-09-28 01:34:43 +00006431 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006432
6433 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006434 # PIC is the default for these OSes.
6435 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006436
6437 mingw* | pw32* | os2*)
6438 # This hack is so that the source file can tell whether it is being
6439 # built for inclusion in a dll (and should export symbols for example).
6440 lt_prog_compiler_pic='-DDLL_EXPORT'
6441 ;;
6442
drh71eb93e2001-09-28 01:34:43 +00006443 darwin* | rhapsody*)
6444 # PIC is the default on this platform
6445 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006446 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006447 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006448
vapier7f19c022007-02-17 14:46:31 +00006449 interix3*)
6450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6451 # Instead, we relocate shared libraries at runtime.
6452 ;;
6453
a.rottmann9bc8b932004-02-29 15:18:31 +00006454 msdosdjgpp*)
6455 # Just because we use GCC doesn't mean we suddenly get shared libraries
6456 # on systems that don't support them.
6457 lt_prog_compiler_can_build_shared=no
6458 enable_shared=no
drh71eb93e2001-09-28 01:34:43 +00006459 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006460
drh71eb93e2001-09-28 01:34:43 +00006461 sysv4*MP*)
6462 if test -d /usr/nec; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006463 lt_prog_compiler_pic=-Kconform_pic
drh71eb93e2001-09-28 01:34:43 +00006464 fi
6465 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006466
6467 hpux*)
6468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6469 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006470 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006471 hppa*64*|ia64*)
6472 # +Z the default
6473 ;;
6474 *)
6475 lt_prog_compiler_pic='-fPIC'
6476 ;;
6477 esac
6478 ;;
6479
drh71eb93e2001-09-28 01:34:43 +00006480 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006481 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006482 ;;
6483 esac
6484 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006485 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006486 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006487 aix*)
6488 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006489 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006490 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006491 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006492 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006493 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006494 fi
6495 ;;
vapier7f19c022007-02-17 14:46:31 +00006496 darwin*)
6497 # PIC is the default on this platform
6498 # Common symbols not allowed in MH_DYLIB files
6499 case $cc_basename in
6500 xlc*)
6501 lt_prog_compiler_pic='-qnocommon'
6502 lt_prog_compiler_wl='-Wl,'
6503 ;;
6504 esac
6505 ;;
drh71eb93e2001-09-28 01:34:43 +00006506
a.rottmann9bc8b932004-02-29 15:18:31 +00006507 mingw* | pw32* | os2*)
6508 # This hack is so that the source file can tell whether it is being
6509 # built for inclusion in a dll (and should export symbols for example).
6510 lt_prog_compiler_pic='-DDLL_EXPORT'
6511 ;;
6512
a.rottmann84e63352003-03-24 09:42:16 +00006513 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006514 lt_prog_compiler_wl='-Wl,'
6515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6516 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006517 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006518 hppa*64*|ia64*)
6519 # +Z the default
6520 ;;
6521 *)
6522 lt_prog_compiler_pic='+Z'
6523 ;;
6524 esac
6525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6526 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006527 ;;
6528
6529 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006530 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006531 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006532 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006533 ;;
6534
6535 newsos6)
a.rottmann9bc8b932004-02-29 15:18:31 +00006536 lt_prog_compiler_pic='-KPIC'
6537 lt_prog_compiler_static='-Bstatic'
6538 ;;
6539
6540 linux*)
vapier7f19c022007-02-17 14:46:31 +00006541 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +00006542 icc* | ecc*)
6543 lt_prog_compiler_wl='-Wl,'
6544 lt_prog_compiler_pic='-KPIC'
6545 lt_prog_compiler_static='-static'
6546 ;;
vapier7f19c022007-02-17 14:46:31 +00006547 pgcc* | pgf77* | pgf90* | pgf95*)
6548 # Portland Group compilers (*not* the Pentium gcc compiler,
6549 # which looks to be a dead project)
6550 lt_prog_compiler_wl='-Wl,'
6551 lt_prog_compiler_pic='-fpic'
6552 lt_prog_compiler_static='-Bstatic'
6553 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006554 ccc*)
6555 lt_prog_compiler_wl='-Wl,'
6556 # All Alpha code is PIC.
6557 lt_prog_compiler_static='-non_shared'
6558 ;;
6559 esac
drh71eb93e2001-09-28 01:34:43 +00006560 ;;
6561
6562 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006563 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006564 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006565 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006566 ;;
6567
drh71eb93e2001-09-28 01:34:43 +00006568 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006569 lt_prog_compiler_pic='-KPIC'
6570 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006571 case $cc_basename in
6572 f77* | f90* | f95*)
6573 lt_prog_compiler_wl='-Qoption ld ';;
6574 *)
6575 lt_prog_compiler_wl='-Wl,';;
6576 esac
drh71eb93e2001-09-28 01:34:43 +00006577 ;;
6578
6579 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006580 lt_prog_compiler_wl='-Qoption ld '
6581 lt_prog_compiler_pic='-PIC'
6582 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006583 ;;
6584
vapier7f19c022007-02-17 14:46:31 +00006585 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006586 lt_prog_compiler_wl='-Wl,'
6587 lt_prog_compiler_pic='-KPIC'
6588 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006589 ;;
6590
6591 sysv4*MP*)
6592 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006593 lt_prog_compiler_pic='-Kconform_pic'
6594 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006595 fi
6596 ;;
6597
vapier7f19c022007-02-17 14:46:31 +00006598 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6599 lt_prog_compiler_wl='-Wl,'
6600 lt_prog_compiler_pic='-KPIC'
6601 lt_prog_compiler_static='-Bstatic'
6602 ;;
6603
6604 unicos*)
6605 lt_prog_compiler_wl='-Wl,'
6606 lt_prog_compiler_can_build_shared=no
6607 ;;
6608
a.rottmann9bc8b932004-02-29 15:18:31 +00006609 uts4*)
6610 lt_prog_compiler_pic='-pic'
6611 lt_prog_compiler_static='-Bstatic'
6612 ;;
6613
drh71eb93e2001-09-28 01:34:43 +00006614 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006615 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006616 ;;
6617 esac
6618 fi
6619
mlcreech94984912008-03-04 19:03:08 +00006620{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6621echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006622
a.rottmann9bc8b932004-02-29 15:18:31 +00006623#
6624# Check to make sure the PIC flag actually works.
6625#
6626if test -n "$lt_prog_compiler_pic"; then
a.rottmann84e63352003-03-24 09:42:16 +00006627
mlcreech94984912008-03-04 19:03:08 +00006628{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6629echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006630if test "${lt_prog_compiler_pic_works+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
a.rottmann9bc8b932004-02-29 15:18:31 +00006633 lt_prog_compiler_pic_works=no
6634 ac_outfile=conftest.$ac_objext
6635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6636 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6637 # Insert the option either (1) after the last *FLAGS variable, or
6638 # (2) before a word containing "conftest.", or (3) at the end.
6639 # Note that $ac_compile itself does not contain backslashes and begins
6640 # with a dollar sign (not a hyphen), so the echo should work correctly.
6641 # The option is referenced via a variable to avoid confusing sed.
6642 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6645 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +00006646 (eval echo "\"\$as_me:6646: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006647 (eval "$lt_compile" 2>conftest.err)
6648 ac_status=$?
6649 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +00006650 echo "$as_me:6650: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006651 if (exit $ac_status) && test -s "$ac_outfile"; then
6652 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006653 # So say no if there are warnings other than the usual output.
6654 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6655 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6656 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006657 lt_prog_compiler_pic_works=yes
6658 fi
6659 fi
6660 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006661
a.rottmann9bc8b932004-02-29 15:18:31 +00006662fi
mlcreech94984912008-03-04 19:03:08 +00006663{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6664echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006665
a.rottmann9bc8b932004-02-29 15:18:31 +00006666if test x"$lt_prog_compiler_pic_works" = xyes; then
6667 case $lt_prog_compiler_pic in
6668 "" | " "*) ;;
6669 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6670 esac
drh71eb93e2001-09-28 01:34:43 +00006671else
a.rottmann9bc8b932004-02-29 15:18:31 +00006672 lt_prog_compiler_pic=
6673 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006674fi
6675
a.rottmann84e63352003-03-24 09:42:16 +00006676fi
vapier7f19c022007-02-17 14:46:31 +00006677case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006678 # For platforms which do not support PIC, -DPIC is meaningless:
6679 *djgpp*)
6680 lt_prog_compiler_pic=
6681 ;;
6682 *)
6683 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6684 ;;
6685esac
a.rottmann84e63352003-03-24 09:42:16 +00006686
vapier7f19c022007-02-17 14:46:31 +00006687#
6688# Check to make sure the static flag actually works.
6689#
6690wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00006691{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6692echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006693if test "${lt_prog_compiler_static_works+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 lt_prog_compiler_static_works=no
6697 save_LDFLAGS="$LDFLAGS"
6698 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6699 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6700 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6701 # The linker can only warn and ignore the option if not recognized
6702 # So say no if there are warnings
6703 if test -s conftest.err; then
6704 # Append any errors to the config.log.
6705 cat conftest.err 1>&5
6706 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6708 if diff conftest.exp conftest.er2 >/dev/null; then
6709 lt_prog_compiler_static_works=yes
6710 fi
6711 else
6712 lt_prog_compiler_static_works=yes
6713 fi
6714 fi
6715 $rm conftest*
6716 LDFLAGS="$save_LDFLAGS"
6717
6718fi
mlcreech94984912008-03-04 19:03:08 +00006719{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6720echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00006721
6722if test x"$lt_prog_compiler_static_works" = xyes; then
6723 :
6724else
6725 lt_prog_compiler_static=
6726fi
6727
6728
mlcreech94984912008-03-04 19:03:08 +00006729{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6730echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006731if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +00006732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 lt_cv_prog_compiler_c_o=no
6735 $rm -r conftest 2>/dev/null
6736 mkdir conftest
6737 cd conftest
6738 mkdir out
6739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006740
a.rottmann9bc8b932004-02-29 15:18:31 +00006741 lt_compiler_flag="-o out/conftest2.$ac_objext"
6742 # Insert the option either (1) after the last *FLAGS variable, or
6743 # (2) before a word containing "conftest.", or (3) at the end.
6744 # Note that $ac_compile itself does not contain backslashes and begins
6745 # with a dollar sign (not a hyphen), so the echo should work correctly.
6746 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6749 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +00006750 (eval echo "\"\$as_me:6750: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 (eval "$lt_compile" 2>out/conftest.err)
6752 ac_status=$?
6753 cat out/conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +00006754 echo "$as_me:6754: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6756 then
6757 # The compiler can only warn and ignore the option if not recognized
6758 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +00006759 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006762 lt_cv_prog_compiler_c_o=yes
6763 fi
6764 fi
vapier7f19c022007-02-17 14:46:31 +00006765 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006766 $rm conftest*
6767 # SGI C++ compiler will create directory out/ii_files/ for
6768 # template instantiation
6769 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6770 $rm out/* && rmdir out
6771 cd ..
6772 rmdir conftest
6773 $rm conftest*
drh71eb93e2001-09-28 01:34:43 +00006774
6775fi
mlcreech94984912008-03-04 19:03:08 +00006776{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6777echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006778
a.rottmann84e63352003-03-24 09:42:16 +00006779
drh71eb93e2001-09-28 01:34:43 +00006780hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006781if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006782 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +00006783 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6784echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006785 hard_links=yes
6786 $rm conftest*
6787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6788 touch conftest.a
6789 ln conftest.a conftest.b 2>&5 || hard_links=no
6790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +00006791 { echo "$as_me:$LINENO: result: $hard_links" >&5
6792echo "${ECHO_T}$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00006793 if test "$hard_links" = no; then
a.rottmann84e63352003-03-24 09:42:16 +00006794 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh71eb93e2001-09-28 01:34:43 +00006795echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6796 need_locks=warn
6797 fi
6798else
6799 need_locks=no
6800fi
6801
mlcreech94984912008-03-04 19:03:08 +00006802{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6803echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006804
6805 runpath_var=
6806 allow_undefined_flag=
6807 enable_shared_with_static_runtimes=no
6808 archive_cmds=
6809 archive_expsym_cmds=
6810 old_archive_From_new_cmds=
6811 old_archive_from_expsyms_cmds=
6812 export_dynamic_flag_spec=
6813 whole_archive_flag_spec=
6814 thread_safe_flag_spec=
6815 hardcode_libdir_flag_spec=
6816 hardcode_libdir_flag_spec_ld=
6817 hardcode_libdir_separator=
6818 hardcode_direct=no
6819 hardcode_minus_L=no
6820 hardcode_shlibpath_var=unsupported
6821 link_all_deplibs=unknown
6822 hardcode_automatic=no
6823 module_cmds=
6824 module_expsym_cmds=
6825 always_export_symbols=no
6826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6827 # include_expsyms should be a list of space-separated symbols to be *always*
6828 # included in the symbol list
6829 include_expsyms=
6830 # exclude_expsyms can be an extended regexp of symbols to exclude
6831 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6832 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6833 # as well as any symbol that contains `d'.
6834 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6835 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6836 # platforms (ab)use it in PIC code, but their linkers get confused if
6837 # the symbol is explicitly referenced. Since portable code cannot
6838 # rely on this symbol name, it's probably fine to never include it in
6839 # preloaded symbol tables.
6840 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +00006841 # Just being paranoid about ensuring that cc_basename is set.
6842 for cc_temp in $compiler""; do
6843 case $cc_temp in
6844 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6845 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6846 \-*) ;;
6847 *) break;;
6848 esac
6849done
6850cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006851
6852 case $host_os in
6853 cygwin* | mingw* | pw32*)
6854 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6855 # When not using gcc, we currently assume that we are using
6856 # Microsoft Visual C++.
6857 if test "$GCC" != yes; then
6858 with_gnu_ld=no
6859 fi
6860 ;;
vapier7f19c022007-02-17 14:46:31 +00006861 interix*)
6862 # we just hope/assume this is gcc and not c89 (= MSVC++)
6863 with_gnu_ld=yes
6864 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006865 openbsd*)
6866 with_gnu_ld=no
6867 ;;
6868 esac
6869
6870 ld_shlibs=yes
6871 if test "$with_gnu_ld" = yes; then
6872 # If archive_cmds runs LD, not CC, wlarc should be empty
6873 wlarc='${wl}'
6874
vapier7f19c022007-02-17 14:46:31 +00006875 # Set some defaults for GNU ld with shared library support. These
6876 # are reset later if shared libraries are not supported. Putting them
6877 # here allows them to be overridden if necessary.
6878 runpath_var=LD_RUN_PATH
6879 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6880 export_dynamic_flag_spec='${wl}--export-dynamic'
6881 # ancient GNU ld didn't support --whole-archive et. al.
6882 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6883 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6884 else
6885 whole_archive_flag_spec=
6886 fi
6887 supports_anon_versioning=no
6888 case `$LD -v 2>/dev/null` in
6889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6892 *\ 2.11.*) ;; # other 2.11 versions
6893 *) supports_anon_versioning=yes ;;
6894 esac
6895
a.rottmann9bc8b932004-02-29 15:18:31 +00006896 # See if GNU ld supports shared libraries.
6897 case $host_os in
6898 aix3* | aix4* | aix5*)
6899 # On AIX/PPC, the GNU linker is very broken
6900 if test "$host_cpu" != ia64; then
6901 ld_shlibs=no
6902 cat <<EOF 1>&2
6903
6904*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6905*** to be unable to reliably create shared libraries on AIX.
6906*** Therefore, libtool is disabling shared libraries support. If you
6907*** really care for shared libraries, you may want to modify your PATH
6908*** so that a non-GNU linker is found, and then restart.
6909
6910EOF
6911 fi
6912 ;;
6913
6914 amigaos*)
6915 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)'
6916 hardcode_libdir_flag_spec='-L$libdir'
6917 hardcode_minus_L=yes
6918
6919 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6920 # that the semantics of dynamic libraries on AmigaOS, at least up
6921 # to version 4, is to share data among multiple programs linked
6922 # with the same dynamic library. Since this doesn't match the
6923 # behavior of shared libraries on other platforms, we can't use
6924 # them.
6925 ld_shlibs=no
6926 ;;
6927
6928 beos*)
6929 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6930 allow_undefined_flag=unsupported
6931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6932 # support --undefined. This deserves some investigation. FIXME
6933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934 else
6935 ld_shlibs=no
6936 fi
6937 ;;
6938
6939 cygwin* | mingw* | pw32*)
6940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6941 # as there is no search path for DLLs.
6942 hardcode_libdir_flag_spec='-L$libdir'
6943 allow_undefined_flag=unsupported
6944 always_export_symbols=no
6945 enable_shared_with_static_runtimes=yes
vapier7f19c022007-02-17 14:46:31 +00006946 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 +00006947
6948 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006949 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 +00006950 # If the export-symbols file already is a .def file (1st line
6951 # is EXPORTS), use it as is; otherwise, prepend...
6952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6953 cp $export_symbols $output_objdir/$soname.def;
6954 else
6955 echo EXPORTS > $output_objdir/$soname.def;
6956 cat $export_symbols >> $output_objdir/$soname.def;
6957 fi~
vapier7f19c022007-02-17 14:46:31 +00006958 $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 +00006959 else
6960 ld_shlibs=no
6961 fi
6962 ;;
6963
vapier7f19c022007-02-17 14:46:31 +00006964 interix3*)
6965 hardcode_direct=no
6966 hardcode_shlibpath_var=no
6967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6968 export_dynamic_flag_spec='${wl}-E'
6969 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6970 # Instead, shared libraries are loaded at an image base (0x10000000 by
6971 # default) and relocated if they conflict, which is a slow very memory
6972 # consuming and fragmenting process. To avoid this, we pick a random,
6973 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6974 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6975 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6976 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'
6977 ;;
6978
6979 linux*)
6980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6981 tmp_addflag=
6982 case $cc_basename,$host_cpu in
6983 pgcc*) # Portland Group C compiler
6984 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'
6985 tmp_addflag=' $pic_flag'
6986 ;;
6987 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6988 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'
6989 tmp_addflag=' $pic_flag -Mnomain' ;;
6990 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6991 tmp_addflag=' -i_dynamic' ;;
6992 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6993 tmp_addflag=' -i_dynamic -nofor_main' ;;
6994 ifc* | ifort*) # Intel Fortran compiler
6995 tmp_addflag=' -nofor_main' ;;
6996 esac
6997 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6998
6999 if test $supports_anon_versioning = yes; then
7000 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7001 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7002 $echo "local: *; };" >> $output_objdir/$libname.ver~
7003 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7004 fi
7005 else
7006 ld_shlibs=no
7007 fi
7008 ;;
7009
7010 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7012 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7013 wlarc=
7014 else
7015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7017 fi
7018 ;;
7019
vapier7f19c022007-02-17 14:46:31 +00007020 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007021 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7022 ld_shlibs=no
7023 cat <<EOF 1>&2
7024
7025*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7026*** create shared libraries on Solaris systems. Therefore, libtool
7027*** is disabling shared libraries support. We urge you to upgrade GNU
7028*** binutils to release 2.9.1 or newer. Another option is to modify
7029*** your PATH or compiler configuration so that the native linker is
7030*** used, and then restart.
7031
7032EOF
7033 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7036 else
7037 ld_shlibs=no
7038 fi
7039 ;;
7040
vapier7f19c022007-02-17 14:46:31 +00007041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7042 case `$LD -v 2>&1` in
7043 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7044 ld_shlibs=no
7045 cat <<_LT_EOF 1>&2
7046
7047*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7048*** reliably create shared libraries on SCO systems. Therefore, libtool
7049*** is disabling shared libraries support. We urge you to upgrade GNU
7050*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7051*** your PATH or compiler configuration so that the native linker is
7052*** used, and then restart.
7053
7054_LT_EOF
7055 ;;
7056 *)
7057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7061 else
7062 ld_shlibs=no
7063 fi
7064 ;;
7065 esac
7066 ;;
7067
a.rottmann9bc8b932004-02-29 15:18:31 +00007068 sunos4*)
7069 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7070 wlarc=
7071 hardcode_direct=yes
7072 hardcode_shlibpath_var=no
7073 ;;
7074
a.rottmann9bc8b932004-02-29 15:18:31 +00007075 *)
7076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7079 else
7080 ld_shlibs=no
7081 fi
7082 ;;
7083 esac
7084
vapier7f19c022007-02-17 14:46:31 +00007085 if test "$ld_shlibs" = no; then
7086 runpath_var=
7087 hardcode_libdir_flag_spec=
7088 export_dynamic_flag_spec=
7089 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007090 fi
7091 else
7092 # PORTME fill in a description of your system's linker (not GNU ld)
7093 case $host_os in
7094 aix3*)
7095 allow_undefined_flag=unsupported
7096 always_export_symbols=yes
7097 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'
7098 # Note: this linker hardcodes the directories in LIBPATH if there
7099 # are no directories specified by -L.
7100 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007102 # Neither direct hardcoding nor static linking is supported with a
7103 # broken collect2.
7104 hardcode_direct=unsupported
7105 fi
7106 ;;
7107
7108 aix4* | aix5*)
7109 if test "$host_cpu" = ia64; then
7110 # On IA64, the linker does run time linking by default, so we don't
7111 # have to do anything special.
7112 aix_use_runtimelinking=no
7113 exp_sym_flag='-Bexport'
7114 no_entry_flag=""
7115 else
7116 # If we're using GNU nm, then we don't want the "-C" option.
7117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7118 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7119 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'
7120 else
7121 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'
7122 fi
7123 aix_use_runtimelinking=no
7124
7125 # Test if we are trying to use run time linking or normal
7126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7127 # need to do runtime linking.
7128 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7129 for ld_flag in $LDFLAGS; do
7130 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7131 aix_use_runtimelinking=yes
7132 break
7133 fi
7134 done
vapier7f19c022007-02-17 14:46:31 +00007135 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007136 esac
7137
7138 exp_sym_flag='-bexport'
7139 no_entry_flag='-bnoentry'
7140 fi
7141
7142 # When large executables or shared objects are built, AIX ld can
7143 # have problems creating the table of contents. If linking a library
7144 # or program results in "error TOC overflow" add -mminimal-toc to
7145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7147
7148 archive_cmds=''
7149 hardcode_direct=yes
7150 hardcode_libdir_separator=':'
7151 link_all_deplibs=yes
7152
7153 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007154 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007155 # We only want to do this on AIX 4.2 and lower, the check
7156 # below for broken collect2 doesn't work under 4.3+
7157 collect2name=`${CC} -print-prog-name=collect2`
7158 if test -f "$collect2name" && \
7159 strings "$collect2name" | grep resolve_lib_name >/dev/null
7160 then
7161 # We have reworked collect2
7162 hardcode_direct=yes
7163 else
7164 # We have old collect2
7165 hardcode_direct=unsupported
7166 # It fails to find uninstalled libraries when the uninstalled
7167 # path is not listed in the libpath. Setting hardcode_minus_L
7168 # to unsupported forces relinking
7169 hardcode_minus_L=yes
7170 hardcode_libdir_flag_spec='-L$libdir'
7171 hardcode_libdir_separator=
7172 fi
vapier7f19c022007-02-17 14:46:31 +00007173 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007174 esac
7175 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007176 if test "$aix_use_runtimelinking" = yes; then
7177 shared_flag="$shared_flag "'${wl}-G'
7178 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007179 else
7180 # not using gcc
7181 if test "$host_cpu" = ia64; then
7182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7183 # chokes on -Wl,-G. The following line is correct:
7184 shared_flag='-G'
7185 else
vapier7f19c022007-02-17 14:46:31 +00007186 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007187 shared_flag='${wl}-G'
7188 else
7189 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007190 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007191 fi
7192 fi
7193
7194 # It seems that -bexpall does not export symbols beginning with
7195 # underscore (_), so it is better to generate a list of symbols to export.
7196 always_export_symbols=yes
7197 if test "$aix_use_runtimelinking" = yes; then
7198 # Warning - without using the other runtime loading flags (-brtl),
7199 # -berok will link without error, but may produce a broken library.
7200 allow_undefined_flag='-berok'
7201 # Determine the default libpath from the value encoded in an empty executable.
7202 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007203/* confdefs.h. */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007208
a.rottmann84e63352003-03-24 09:42:16 +00007209int
7210main ()
7211{
a.rottmann9bc8b932004-02-29 15:18:31 +00007212
a.rottmann84e63352003-03-24 09:42:16 +00007213 ;
7214 return 0;
7215}
7216_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007217rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007218if { (ac_try="$ac_link"
7219case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007225 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00007229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest$ac_exeext &&
7234 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007235
a.rottmann9bc8b932004-02-29 15:18:31 +00007236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7237}'`
7238# Check for a 64-bit object if we didn't find anything.
7239if 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; }
7240}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007241else
7242 echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
mlcreech94984912008-03-04 19:03:08 +00007245
a.rottmann84e63352003-03-24 09:42:16 +00007246fi
mlcreech94984912008-03-04 19:03:08 +00007247
7248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 conftest$ac_exeext conftest.$ac_ext
7250if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007251
a.rottmann9bc8b932004-02-29 15:18:31 +00007252 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +00007253 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 +00007254 else
7255 if test "$host_cpu" = ia64; then
7256 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7257 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007258 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 +00007259 else
7260 # Determine the default libpath from the value encoded in an empty executable.
7261 cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007267
a.rottmann9bc8b932004-02-29 15:18:31 +00007268int
7269main ()
7270{
a.rottmann84e63352003-03-24 09:42:16 +00007271
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00007277if { (ac_try="$ac_link"
7278case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7281esac
7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007284 ac_status=$?
7285 grep -v '^ *+' conftest.er1 >conftest.err
7286 rm -f conftest.er1
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00007289 (exit $ac_status); } && {
7290 test -z "$ac_c_werror_flag" ||
7291 test ! -s conftest.err
7292 } && test -s conftest$ac_exeext &&
7293 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00007294
a.rottmann9bc8b932004-02-29 15:18:31 +00007295aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7296}'`
7297# Check for a 64-bit object if we didn't find anything.
7298if 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; }
7299}'`; fi
a.rottmann84e63352003-03-24 09:42:16 +00007300else
a.rottmann9bc8b932004-02-29 15:18:31 +00007301 echo "$as_me: failed program was:" >&5
7302sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007303
mlcreech94984912008-03-04 19:03:08 +00007304
a.rottmann9bc8b932004-02-29 15:18:31 +00007305fi
mlcreech94984912008-03-04 19:03:08 +00007306
7307rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007308 conftest$ac_exeext conftest.$ac_ext
7309if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007310
a.rottmann9bc8b932004-02-29 15:18:31 +00007311 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7312 # Warning - without using the other run time loading flags,
7313 # -berok will link without error, but may produce a broken library.
7314 no_undefined_flag=' ${wl}-bernotok'
7315 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007316 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007317 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007318 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007319 # This is similar to how AIX traditionally builds its shared libraries.
7320 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 +00007321 fi
7322 fi
a.rottmann84e63352003-03-24 09:42:16 +00007323 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007324
7325 amigaos*)
7326 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)'
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 hardcode_minus_L=yes
7329 # see comment about different semantics on the GNU ld section
7330 ld_shlibs=no
a.rottmann84e63352003-03-24 09:42:16 +00007331 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007332
vapier7f19c022007-02-17 14:46:31 +00007333 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007334 export_dynamic_flag_spec=-rdynamic
7335 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007336
a.rottmann9bc8b932004-02-29 15:18:31 +00007337 cygwin* | mingw* | pw32*)
7338 # When not using gcc, we currently assume that we are using
7339 # Microsoft Visual C++.
7340 # hardcode_libdir_flag_spec is actually meaningless, as there is
7341 # no search path for DLLs.
7342 hardcode_libdir_flag_spec=' '
7343 allow_undefined_flag=unsupported
7344 # Tell ltmain to make .lib files, not .a files.
7345 libext=lib
7346 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007347 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007348 # FIXME: Setting linknames here is a bad hack.
7349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7350 # The linker will automatically build a .lib file if we build a DLL.
7351 old_archive_From_new_cmds='true'
7352 # FIXME: Should let the user specify the lib program.
7353 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7354 fix_srcfile_path='`cygpath -w "$srcfile"`'
7355 enable_shared_with_static_runtimes=yes
7356 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007357
a.rottmann9bc8b932004-02-29 15:18:31 +00007358 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +00007359 case $host_os in
7360 rhapsody* | darwin1.[012])
7361 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7362 ;;
7363 *) # Darwin 1.3 on
7364 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7365 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7366 else
7367 case ${MACOSX_DEPLOYMENT_TARGET} in
7368 10.[012])
7369 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7370 ;;
7371 10.*)
7372 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7373 ;;
7374 esac
7375 fi
7376 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007377 esac
vapier7f19c022007-02-17 14:46:31 +00007378 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007379 hardcode_direct=no
7380 hardcode_automatic=yes
7381 hardcode_shlibpath_var=unsupported
vapier7f19c022007-02-17 14:46:31 +00007382 whole_archive_flag_spec=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007383 link_all_deplibs=yes
vapier7f19c022007-02-17 14:46:31 +00007384 if test "$GCC" = yes ; then
7385 output_verbose_link_cmd='echo'
7386 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7387 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7388 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7389 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}'
7390 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 +00007391 else
vapier7f19c022007-02-17 14:46:31 +00007392 case $cc_basename in
7393 xlc*)
7394 output_verbose_link_cmd='echo'
7395 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7398 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}'
7399 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}'
7400 ;;
7401 *)
7402 ld_shlibs=no
7403 ;;
7404 esac
a.rottmann84e63352003-03-24 09:42:16 +00007405 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007406 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007407
a.rottmann9bc8b932004-02-29 15:18:31 +00007408 dgux*)
7409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_libdir_flag_spec='-L$libdir'
7411 hardcode_shlibpath_var=no
7412 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007413
a.rottmann9bc8b932004-02-29 15:18:31 +00007414 freebsd1*)
7415 ld_shlibs=no
7416 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007417
a.rottmann9bc8b932004-02-29 15:18:31 +00007418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7419 # support. Future versions do this automatically, but an explicit c++rt0.o
7420 # does not break anything, and helps significantly (at the cost of a little
7421 # extra space).
7422 freebsd2.2*)
7423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7424 hardcode_libdir_flag_spec='-R$libdir'
7425 hardcode_direct=yes
7426 hardcode_shlibpath_var=no
7427 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007428
a.rottmann9bc8b932004-02-29 15:18:31 +00007429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7430 freebsd2*)
7431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7432 hardcode_direct=yes
7433 hardcode_minus_L=yes
7434 hardcode_shlibpath_var=no
7435 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007436
a.rottmann9bc8b932004-02-29 15:18:31 +00007437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +00007438 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007439 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7440 hardcode_libdir_flag_spec='-R$libdir'
7441 hardcode_direct=yes
7442 hardcode_shlibpath_var=no
7443 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007444
a.rottmann9bc8b932004-02-29 15:18:31 +00007445 hpux9*)
7446 if test "$GCC" = yes; then
7447 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'
7448 else
7449 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'
7450 fi
7451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7452 hardcode_libdir_separator=:
7453 hardcode_direct=yes
7454
7455 # hardcode_minus_L: Not really in the search PATH,
7456 # but as the default location of the library.
7457 hardcode_minus_L=yes
7458 export_dynamic_flag_spec='${wl}-E'
7459 ;;
7460
vapier7f19c022007-02-17 14:46:31 +00007461 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007463 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7464 else
7465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7466 fi
7467 if test "$with_gnu_ld" = no; then
7468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7469 hardcode_libdir_separator=:
7470
7471 hardcode_direct=yes
7472 export_dynamic_flag_spec='${wl}-E'
7473
7474 # hardcode_minus_L: Not really in the search PATH,
7475 # but as the default location of the library.
7476 hardcode_minus_L=yes
7477 fi
7478 ;;
7479
7480 hpux11*)
7481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7482 case $host_cpu in
7483 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007484 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 ;;
vapier7f19c022007-02-17 14:46:31 +00007486 ia64*)
7487 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7488 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007489 *)
7490 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7491 ;;
7492 esac
7493 else
vapier7f19c022007-02-17 14:46:31 +00007494 case $host_cpu in
7495 hppa*64*)
7496 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7497 ;;
7498 ia64*)
7499 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007500 ;;
7501 *)
vapier7f19c022007-02-17 14:46:31 +00007502 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 +00007503 ;;
7504 esac
7505 fi
7506 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007507 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7508 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007509
vapier7f19c022007-02-17 14:46:31 +00007510 case $host_cpu in
7511 hppa*64*|ia64*)
7512 hardcode_libdir_flag_spec_ld='+b $libdir'
7513 hardcode_direct=no
7514 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007515 ;;
7516 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007517 hardcode_direct=yes
7518 export_dynamic_flag_spec='${wl}-E'
7519
7520 # hardcode_minus_L: Not really in the search PATH,
7521 # but as the default location of the library.
7522 hardcode_minus_L=yes
7523 ;;
7524 esac
7525 fi
7526 ;;
7527
7528 irix5* | irix6* | nonstopux*)
7529 if test "$GCC" = yes; then
7530 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'
7531 else
7532 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'
7533 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7534 fi
7535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7536 hardcode_libdir_separator=:
7537 link_all_deplibs=yes
7538 ;;
7539
vapier7f19c022007-02-17 14:46:31 +00007540 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7543 else
7544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7545 fi
7546 hardcode_libdir_flag_spec='-R$libdir'
7547 hardcode_direct=yes
7548 hardcode_shlibpath_var=no
7549 ;;
7550
7551 newsos6)
7552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7553 hardcode_direct=yes
7554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7555 hardcode_libdir_separator=:
7556 hardcode_shlibpath_var=no
7557 ;;
7558
7559 openbsd*)
7560 hardcode_direct=yes
7561 hardcode_shlibpath_var=no
7562 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007564 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 +00007565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7566 export_dynamic_flag_spec='${wl}-E'
7567 else
7568 case $host_os in
7569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7571 hardcode_libdir_flag_spec='-R$libdir'
7572 ;;
7573 *)
7574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7576 ;;
7577 esac
7578 fi
7579 ;;
7580
7581 os2*)
7582 hardcode_libdir_flag_spec='-L$libdir'
7583 hardcode_minus_L=yes
7584 allow_undefined_flag=unsupported
7585 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'
7586 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7587 ;;
7588
7589 osf3*)
7590 if test "$GCC" = yes; then
7591 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7592 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'
7593 else
7594 allow_undefined_flag=' -expect_unresolved \*'
7595 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'
7596 fi
7597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7598 hardcode_libdir_separator=:
7599 ;;
7600
7601 osf4* | osf5*) # as osf3* with the addition of -msym flag
7602 if test "$GCC" = yes; then
7603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7604 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'
7605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7606 else
7607 allow_undefined_flag=' -expect_unresolved \*'
7608 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'
7609 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 +00007610 $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 +00007611
7612 # Both c and cxx compiler support -rpath directly
7613 hardcode_libdir_flag_spec='-rpath $libdir'
7614 fi
7615 hardcode_libdir_separator=:
7616 ;;
7617
a.rottmann9bc8b932004-02-29 15:18:31 +00007618 solaris*)
7619 no_undefined_flag=' -z text'
7620 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007621 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7623 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7624 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7625 else
vapier7f19c022007-02-17 14:46:31 +00007626 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +00007627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7630 fi
7631 hardcode_libdir_flag_spec='-R$libdir'
7632 hardcode_shlibpath_var=no
7633 case $host_os in
7634 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007635 *)
7636 # The compiler driver will combine linker options so we
7637 # cannot just pass the convience library names through
7638 # without $wl, iff we do not link with $LD.
7639 # Luckily, gcc supports the same syntax we need for Sun Studio.
7640 # Supported since Solaris 2.6 (maybe 2.5.1?)
7641 case $wlarc in
7642 '')
7643 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7644 *)
7645 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' ;;
7646 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 esac
7648 link_all_deplibs=yes
7649 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007650
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 sunos4*)
7652 if test "x$host_vendor" = xsequent; then
7653 # Use $CC to link under sequent, because it throws in some extra .o
7654 # files that make .init and .fini sections work.
7655 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7656 else
7657 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7658 fi
7659 hardcode_libdir_flag_spec='-L$libdir'
7660 hardcode_direct=yes
7661 hardcode_minus_L=yes
7662 hardcode_shlibpath_var=no
7663 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007664
a.rottmann9bc8b932004-02-29 15:18:31 +00007665 sysv4)
7666 case $host_vendor in
7667 sni)
7668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7669 hardcode_direct=yes # is this really true???
7670 ;;
7671 siemens)
7672 ## LD is ld it makes a PLAMLIB
7673 ## CC just makes a GrossModule.
7674 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7675 reload_cmds='$CC -r -o $output$reload_objs'
7676 hardcode_direct=no
7677 ;;
7678 motorola)
7679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7680 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7681 ;;
7682 esac
7683 runpath_var='LD_RUN_PATH'
7684 hardcode_shlibpath_var=no
7685 ;;
7686
7687 sysv4.3*)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_shlibpath_var=no
7690 export_dynamic_flag_spec='-Bexport'
7691 ;;
7692
7693 sysv4*MP*)
7694 if test -d /usr/nec; then
7695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7696 hardcode_shlibpath_var=no
7697 runpath_var=LD_RUN_PATH
7698 hardcode_runpath_var=yes
7699 ld_shlibs=yes
7700 fi
7701 ;;
7702
vapier7f19c022007-02-17 14:46:31 +00007703 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7704 no_undefined_flag='${wl}-z,text'
7705 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007706 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007707 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007708
a.rottmann9bc8b932004-02-29 15:18:31 +00007709 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007710 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7711 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 +00007712 else
vapier7f19c022007-02-17 14:46:31 +00007713 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7714 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 +00007715 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 ;;
7717
vapier7f19c022007-02-17 14:46:31 +00007718 sysv5* | sco3.2v5* | sco5v6*)
7719 # Note: We can NOT use -z defs as we might desire, because we do not
7720 # link with -lc, and that would cause any symbols used from libc to
7721 # always be unresolved, which means just about no library would
7722 # ever link correctly. If we're not using GNU ld we use -z text
7723 # though, which does catch some bad symbols but isn't as heavy-handed
7724 # as -z defs.
7725 no_undefined_flag='${wl}-z,text'
7726 allow_undefined_flag='${wl}-z,nodefs'
7727 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007728 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007729 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7730 hardcode_libdir_separator=':'
7731 link_all_deplibs=yes
7732 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007733 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007734
7735 if test "$GCC" = yes; then
7736 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738 else
7739 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7741 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007742 ;;
7743
7744 uts4*)
7745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7746 hardcode_libdir_flag_spec='-L$libdir'
7747 hardcode_shlibpath_var=no
7748 ;;
7749
7750 *)
7751 ld_shlibs=no
7752 ;;
7753 esac
7754 fi
7755
mlcreech94984912008-03-04 19:03:08 +00007756{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7757echo "${ECHO_T}$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00007758test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007759
a.rottmann9bc8b932004-02-29 15:18:31 +00007760#
7761# Do we need to explicitly link libc?
7762#
7763case "x$archive_cmds_need_lc" in
7764x|xyes)
7765 # Assume -lc should be added
7766 archive_cmds_need_lc=yes
7767
7768 if test "$enable_shared" = yes && test "$GCC" = yes; then
7769 case $archive_cmds in
7770 *'~'*)
7771 # FIXME: we may have to deal with multi-command sequences.
7772 ;;
7773 '$CC '*)
7774 # Test whether the compiler implicitly links with -lc since on some
7775 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7776 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +00007777 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7778echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 $rm conftest*
7780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7781
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } 2>conftest.err; then
7787 soname=conftest
7788 lib=conftest
7789 libobjs=conftest.$ac_objext
7790 deplibs=
7791 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007792 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 compiler_flags=-v
7794 linker_flags=-v
7795 verstring=
7796 output_objdir=.
7797 libname=conftest
7798 lt_save_allow_undefined_flag=$allow_undefined_flag
7799 allow_undefined_flag=
7800 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7801 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }
7805 then
7806 archive_cmds_need_lc=no
7807 else
7808 archive_cmds_need_lc=yes
7809 fi
7810 allow_undefined_flag=$lt_save_allow_undefined_flag
7811 else
7812 cat conftest.err 1>&5
7813 fi
7814 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +00007815 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7816echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007817 ;;
7818 esac
drh71eb93e2001-09-28 01:34:43 +00007819 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 ;;
7821esac
drh71eb93e2001-09-28 01:34:43 +00007822
mlcreech94984912008-03-04 19:03:08 +00007823{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7824echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007825library_names_spec=
7826libname_spec='lib$name'
7827soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007828shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007829postinstall_cmds=
7830postuninstall_cmds=
7831finish_cmds=
7832finish_eval=
7833shlibpath_var=
7834shlibpath_overrides_runpath=unknown
7835version_type=none
7836dynamic_linker="$host_os ld.so"
7837sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007838if test "$GCC" = yes; then
7839 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7840 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7841 # if the path contains ";" then we assume it to be the separator
7842 # otherwise default to the standard path separator (i.e. ":") - it is
7843 # assumed that no part of a normal pathname contains ";" but that should
7844 # okay in the real world where ";" in dirpaths is itself problematic.
7845 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7846 else
7847 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7848 fi
7849else
7850 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7851fi
7852need_lib_prefix=unknown
7853hardcode_into_libs=no
7854
7855# when you set need_version to no, make sure it does not cause -set_version
7856# flags to be left without arguments
7857need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007858
7859case $host_os in
7860aix3*)
7861 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007863 shlibpath_var=LIBPATH
7864
a.rottmann9bc8b932004-02-29 15:18:31 +00007865 # AIX 3 has no versioning support, so we append a major version to the name.
7866 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007867 ;;
7868
7869aix4* | aix5*)
7870 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007871 need_lib_prefix=no
7872 need_version=no
7873 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007874 if test "$host_cpu" = ia64; then
7875 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007877 shlibpath_var=LD_LIBRARY_PATH
7878 else
7879 # With GCC up to 2.95.x, collect2 would create an import file
7880 # for dependence libraries. The import file would start with
7881 # the line `#! .'. This would cause the generated library to
7882 # depend on `.', always an invalid library. This was fixed in
7883 # development snapshots of GCC prior to 3.0.
7884 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007885 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7887 echo ' yes '
7888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7889 :
7890 else
7891 can_build_shared=no
7892 fi
7893 ;;
drh71eb93e2001-09-28 01:34:43 +00007894 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7896 # soname into executable. Probably we can add versioning support to
7897 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007898 if test "$aix_use_runtimelinking" = yes; then
7899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7900 # instead of lib<name>.a to let people know that these are not
7901 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007903 else
7904 # We preserve .a as extension for shared libraries through AIX4.2
7905 # and later when we are not doing run time linking.
7906 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007907 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007908 fi
7909 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007910 fi
7911 ;;
7912
7913amigaos*)
7914 library_names_spec='$libname.ixlibrary $libname.a'
7915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
a.rottmann9bc8b932004-02-29 15:18:31 +00007916 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 +00007917 ;;
7918
7919beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007921 dynamic_linker="$host_os ld.so"
7922 shlibpath_var=LIBRARY_PATH
7923 ;;
7924
vapier7f19c022007-02-17 14:46:31 +00007925bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007926 version_type=linux
7927 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7929 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7934 # the default ld.so.conf also contains /usr/contrib/lib and
7935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7936 # libtool to hard-code these into programs
7937 ;;
7938
7939cygwin* | mingw* | pw32*)
7940 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007941 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007942 need_version=no
7943 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007944
drh71eb93e2001-09-28 01:34:43 +00007945 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007946 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007947 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7949 postinstall_cmds='base_file=`basename \${file}`~
7950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007951 dldir=$destdir/`dirname \$dlpath`~
7952 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007953 $install_prog $dir/$dlname \$dldir/$dlname~
7954 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +00007955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007956 dlpath=$dir/\$dldll~
7957 $rm \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007958 shlibpath_overrides_runpath=yes
7959
7960 case $host_os in
7961 cygwin*)
7962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7965 ;;
7966 mingw*)
7967 # MinGW DLLs use traditional 'lib' prefix
7968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7971 # It is most probably a Windows format PATH printed by
7972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7973 # path with ; separators, and with drive letters. We can handle the
7974 # drive letters (cygwin fileutils understands them), so leave them,
7975 # especially as we might pass files found there to a mingw objdump,
7976 # which wouldn't understand a cygwinified path. Ahh.
7977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7978 else
7979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7980 fi
7981 ;;
7982 pw32*)
7983 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007984 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 +00007985 ;;
7986 esac
drh71eb93e2001-09-28 01:34:43 +00007987 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007988
vapier7f19c022007-02-17 14:46:31 +00007989 linux*)
7990 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 supports_anon_versioning=no
7993 case `$LD -v 2>/dev/null` in
7994 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7995 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7996 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7997 *\ 2.11.*) ;; # other 2.11 versions
7998 *) supports_anon_versioning=yes ;;
7999 esac
8000 if test $supports_anon_versioning = yes; then
8001 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8002cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8003$echo "local: *; };" >> $output_objdir/$libname.ver~
8004 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8005 else
8006 $archive_expsym_cmds="$archive_cmds"
8007 fi
8008 else
8009 ld_shlibs=no
8010 fi
8011 ;;
8012
drh71eb93e2001-09-28 01:34:43 +00008013 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008015 ;;
8016 esac
8017 dynamic_linker='Win32 ld.exe'
8018 # FIXME: first we should search . and the directory the executable is in
8019 shlibpath_var=PATH
8020 ;;
8021
8022darwin* | rhapsody*)
8023 dynamic_linker="$host_os dyld"
8024 version_type=darwin
8025 need_lib_prefix=no
8026 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8028 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008029 shlibpath_overrides_runpath=yes
8030 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +00008032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8033 if test "$GCC" = yes; then
8034 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"`
8035 else
8036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8037 fi
8038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8039 ;;
8040
8041dgux*)
8042 version_type=linux
8043 need_lib_prefix=no
8044 need_version=no
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008048 ;;
8049
a.rottmann84e63352003-03-24 09:42:16 +00008050freebsd1*)
8051 dynamic_linker=no
8052 ;;
8053
a.rottmann9bc8b932004-02-29 15:18:31 +00008054kfreebsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008055 version_type=linux
8056 need_lib_prefix=no
8057 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8059 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008060 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008061 shlibpath_overrides_runpath=no
8062 hardcode_into_libs=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008063 dynamic_linker='GNU ld.so'
drh71eb93e2001-09-28 01:34:43 +00008064 ;;
8065
vapier7f19c022007-02-17 14:46:31 +00008066freebsd* | dragonfly*)
8067 # DragonFly does not have aout. When/if they implement a new
8068 # versioning mechanism, adjust this.
8069 if test -x /usr/bin/objformat; then
8070 objformat=`/usr/bin/objformat`
8071 else
8072 case $host_os in
8073 freebsd[123]*) objformat=aout ;;
8074 *) objformat=elf ;;
8075 esac
8076 fi
8077 # Handle Gentoo/FreeBSD as it was Linux
8078 case $host_vendor in
8079 gentoo)
8080 version_type=linux ;;
8081 *)
8082 version_type=freebsd-$objformat ;;
8083 esac
8084
drh71eb93e2001-09-28 01:34:43 +00008085 case $version_type in
8086 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008088 need_version=no
8089 need_lib_prefix=no
8090 ;;
8091 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008093 need_version=yes
8094 ;;
vapier7f19c022007-02-17 14:46:31 +00008095 linux)
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 need_lib_prefix=no
8099 need_version=no
8100 ;;
drh71eb93e2001-09-28 01:34:43 +00008101 esac
8102 shlibpath_var=LD_LIBRARY_PATH
8103 case $host_os in
8104 freebsd2*)
8105 shlibpath_overrides_runpath=yes
8106 ;;
vapier7f19c022007-02-17 14:46:31 +00008107 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008108 shlibpath_overrides_runpath=yes
8109 hardcode_into_libs=yes
8110 ;;
vapier7f19c022007-02-17 14:46:31 +00008111 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8112 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008113 shlibpath_overrides_runpath=no
8114 hardcode_into_libs=yes
8115 ;;
vapier7f19c022007-02-17 14:46:31 +00008116 freebsd*) # from 4.6 on
8117 shlibpath_overrides_runpath=yes
8118 hardcode_into_libs=yes
8119 ;;
drh71eb93e2001-09-28 01:34:43 +00008120 esac
8121 ;;
8122
8123gnu*)
8124 version_type=linux
8125 need_lib_prefix=no
8126 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8128 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008129 shlibpath_var=LD_LIBRARY_PATH
8130 hardcode_into_libs=yes
8131 ;;
8132
8133hpux9* | hpux10* | hpux11*)
8134 # Give a soname corresponding to the major version so that dld.sl refuses to
8135 # link against other versions.
8136 version_type=sunos
8137 need_lib_prefix=no
8138 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008139 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008140 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008141 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008142 hardcode_into_libs=yes
8143 dynamic_linker="$host_os dld.so"
8144 shlibpath_var=LD_LIBRARY_PATH
8145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8147 soname_spec='${libname}${release}${shared_ext}$major'
8148 if test "X$HPUX_IA64_MODE" = X32; then
8149 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8150 else
8151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8152 fi
8153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8154 ;;
8155 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +00008156 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008157 hardcode_into_libs=yes
8158 dynamic_linker="$host_os dld.sl"
8159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8165 ;;
8166 *)
vapier7f19c022007-02-17 14:46:31 +00008167 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008168 dynamic_linker="$host_os dld.sl"
8169 shlibpath_var=SHLIB_PATH
8170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8172 soname_spec='${libname}${release}${shared_ext}$major'
8173 ;;
8174 esac
drh71eb93e2001-09-28 01:34:43 +00008175 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8176 postinstall_cmds='chmod 555 $lib'
8177 ;;
8178
vapier7f19c022007-02-17 14:46:31 +00008179interix3*)
8180 version_type=linux
8181 need_lib_prefix=no
8182 need_version=no
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8186 shlibpath_var=LD_LIBRARY_PATH
8187 shlibpath_overrides_runpath=no
8188 hardcode_into_libs=yes
8189 ;;
8190
a.rottmann84e63352003-03-24 09:42:16 +00008191irix5* | irix6* | nonstopux*)
8192 case $host_os in
8193 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008194 *)
8195 if test "$lt_cv_prog_gnu_ld" = yes; then
8196 version_type=linux
8197 else
8198 version_type=irix
8199 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008200 esac
drh71eb93e2001-09-28 01:34:43 +00008201 need_lib_prefix=no
8202 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008203 soname_spec='${libname}${release}${shared_ext}$major'
8204 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 +00008205 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008206 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008207 libsuff= shlibsuff=
8208 ;;
8209 *)
8210 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8212 libsuff= shlibsuff= libmagic=32-bit;;
8213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8214 libsuff=32 shlibsuff=N32 libmagic=N32;;
8215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008217 *) libsuff= shlibsuff= libmagic=never-match;;
8218 esac
8219 ;;
8220 esac
8221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8222 shlibpath_overrides_runpath=no
8223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008225 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008226 ;;
8227
8228# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008229linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008230 dynamic_linker=no
8231 ;;
8232
8233# This must be Linux ELF.
a.rottmann9bc8b932004-02-29 15:18:31 +00008234linux*)
drh71eb93e2001-09-28 01:34:43 +00008235 version_type=linux
8236 need_lib_prefix=no
8237 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 shlibpath_overrides_runpath=no
8243 # This implies no fast_install, which is unacceptable.
8244 # Some rework will be needed to allow for fast_install
8245 # before this can be enabled.
8246 hardcode_into_libs=yes
8247
a.rottmann9bc8b932004-02-29 15:18:31 +00008248 # Append ld.so.conf contents to the search path
8249 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +00008250 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' ' '`
8251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008252 fi
8253
drh71eb93e2001-09-28 01:34:43 +00008254 # We used to test for /lib/ld.so.1 and disable shared libraries on
8255 # powerpc, because MkLinux only supported shared libraries with the
8256 # GNU dynamic linker. Since this was broken with cross compilers,
8257 # most powerpc-linux boxes support dynamic linking these days and
8258 # people can always --disable-shared, the test was removed, and we
8259 # assume the GNU/Linux dynamic linker is in use.
8260 dynamic_linker='GNU/Linux ld.so'
8261 ;;
8262
a.rottmann9bc8b932004-02-29 15:18:31 +00008263knetbsd*-gnu)
8264 version_type=linux
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 shlibpath_overrides_runpath=no
8271 hardcode_into_libs=yes
8272 dynamic_linker='GNU ld.so'
8273 ;;
8274
drh71eb93e2001-09-28 01:34:43 +00008275netbsd*)
8276 version_type=sunos
8277 need_lib_prefix=no
8278 need_version=no
8279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8282 dynamic_linker='NetBSD (a.out) ld.so'
8283 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8285 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008286 dynamic_linker='NetBSD ld.elf_so'
8287 fi
8288 shlibpath_var=LD_LIBRARY_PATH
8289 shlibpath_overrides_runpath=yes
8290 hardcode_into_libs=yes
8291 ;;
8292
8293newsos6)
8294 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8296 shlibpath_var=LD_LIBRARY_PATH
8297 shlibpath_overrides_runpath=yes
8298 ;;
8299
8300nto-qnx*)
8301 version_type=linux
8302 need_lib_prefix=no
8303 need_version=no
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008306 shlibpath_var=LD_LIBRARY_PATH
8307 shlibpath_overrides_runpath=yes
8308 ;;
8309
drh71eb93e2001-09-28 01:34:43 +00008310openbsd*)
8311 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008312 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008313 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008314 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8315 case $host_os in
8316 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8317 *) need_version=no ;;
8318 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8321 shlibpath_var=LD_LIBRARY_PATH
a.rottmann84e63352003-03-24 09:42:16 +00008322 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 +00008323 case $host_os in
8324 openbsd2.[89] | openbsd2.[89].*)
8325 shlibpath_overrides_runpath=no
8326 ;;
8327 *)
8328 shlibpath_overrides_runpath=yes
8329 ;;
8330 esac
a.rottmann84e63352003-03-24 09:42:16 +00008331 else
8332 shlibpath_overrides_runpath=yes
8333 fi
drh71eb93e2001-09-28 01:34:43 +00008334 ;;
8335
8336os2*)
8337 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008338 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008339 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008340 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008341 dynamic_linker='OS/2 ld.exe'
8342 shlibpath_var=LIBPATH
8343 ;;
8344
8345osf3* | osf4* | osf5*)
8346 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008347 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008348 need_version=no
8349 soname_spec='${libname}${release}${shared_ext}$major'
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008351 shlibpath_var=LD_LIBRARY_PATH
8352 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8353 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8354 ;;
8355
drh71eb93e2001-09-28 01:34:43 +00008356solaris*)
8357 version_type=linux
8358 need_lib_prefix=no
8359 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8361 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008362 shlibpath_var=LD_LIBRARY_PATH
8363 shlibpath_overrides_runpath=yes
8364 hardcode_into_libs=yes
8365 # ldd complains unless libraries are executable
8366 postinstall_cmds='chmod +x $lib'
8367 ;;
8368
8369sunos4*)
8370 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008372 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8373 shlibpath_var=LD_LIBRARY_PATH
8374 shlibpath_overrides_runpath=yes
8375 if test "$with_gnu_ld" = yes; then
8376 need_lib_prefix=no
8377 fi
8378 need_version=yes
8379 ;;
8380
vapier7f19c022007-02-17 14:46:31 +00008381sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008382 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8384 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008385 shlibpath_var=LD_LIBRARY_PATH
8386 case $host_vendor in
8387 sni)
8388 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008389 need_lib_prefix=no
8390 export_dynamic_flag_spec='${wl}-Blargedynsym'
8391 runpath_var=LD_RUN_PATH
8392 ;;
8393 siemens)
8394 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008395 ;;
8396 motorola)
8397 need_lib_prefix=no
8398 need_version=no
8399 shlibpath_overrides_runpath=no
8400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8401 ;;
8402 esac
8403 ;;
8404
8405sysv4*MP*)
8406 if test -d /usr/nec ;then
8407 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8409 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008410 shlibpath_var=LD_LIBRARY_PATH
8411 fi
8412 ;;
8413
vapier7f19c022007-02-17 14:46:31 +00008414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8415 version_type=freebsd-elf
8416 need_lib_prefix=no
8417 need_version=no
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8419 soname_spec='${libname}${release}${shared_ext}$major'
8420 shlibpath_var=LD_LIBRARY_PATH
8421 hardcode_into_libs=yes
8422 if test "$with_gnu_ld" = yes; then
8423 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8424 shlibpath_overrides_runpath=no
8425 else
8426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8427 shlibpath_overrides_runpath=yes
8428 case $host_os in
8429 sco3.2v5*)
8430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8431 ;;
8432 esac
8433 fi
8434 sys_lib_dlsearch_path_spec='/usr/lib'
8435 ;;
8436
a.rottmann9bc8b932004-02-29 15:18:31 +00008437uts4*)
8438 version_type=linux
8439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440 soname_spec='${libname}${release}${shared_ext}$major'
8441 shlibpath_var=LD_LIBRARY_PATH
8442 ;;
8443
drh71eb93e2001-09-28 01:34:43 +00008444*)
8445 dynamic_linker=no
8446 ;;
8447esac
mlcreech94984912008-03-04 19:03:08 +00008448{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8449echo "${ECHO_T}$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008450test "$dynamic_linker" = no && can_build_shared=no
8451
vapier7f19c022007-02-17 14:46:31 +00008452variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8453if test "$GCC" = yes; then
8454 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8455fi
8456
mlcreech94984912008-03-04 19:03:08 +00008457{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8458echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008459hardcode_action=
8460if test -n "$hardcode_libdir_flag_spec" || \
vapier7f19c022007-02-17 14:46:31 +00008461 test -n "$runpath_var" || \
8462 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008463
a.rottmann9bc8b932004-02-29 15:18:31 +00008464 # We can hardcode non-existant directories.
8465 if test "$hardcode_direct" != no &&
8466 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8467 # have to relink, otherwise we might link with an installed library
8468 # when we should be linking with a yet-to-be-installed one
8469 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8470 test "$hardcode_minus_L" != no; then
8471 # Linking always hardcodes the temporary library directory.
8472 hardcode_action=relink
8473 else
8474 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8475 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008476 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008477else
8478 # We cannot hardcode anything, or else we can only hardcode existing
8479 # directories.
8480 hardcode_action=unsupported
8481fi
mlcreech94984912008-03-04 19:03:08 +00008482{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8483echo "${ECHO_T}$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008484
8485if test "$hardcode_action" = relink; then
8486 # Fast installation is not supported
8487 enable_fast_install=no
8488elif test "$shlibpath_overrides_runpath" = yes ||
8489 test "$enable_shared" = no; then
8490 # Fast installation is not necessary
8491 enable_fast_install=needless
8492fi
8493
a.rottmann9bc8b932004-02-29 15:18:31 +00008494striplib=
8495old_striplib=
mlcreech94984912008-03-04 19:03:08 +00008496{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8497echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008498if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8499 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8500 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
mlcreech94984912008-03-04 19:03:08 +00008501 { echo "$as_me:$LINENO: result: yes" >&5
8502echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008503else
8504# FIXME - insert some real tests, host_os isn't really good enough
8505 case $host_os in
8506 darwin*)
8507 if test -n "$STRIP" ; then
8508 striplib="$STRIP -x"
mlcreech94984912008-03-04 19:03:08 +00008509 { echo "$as_me:$LINENO: result: yes" >&5
8510echo "${ECHO_T}yes" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008511 else
mlcreech94984912008-03-04 19:03:08 +00008512 { echo "$as_me:$LINENO: result: no" >&5
8513echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008514fi
8515 ;;
8516 *)
mlcreech94984912008-03-04 19:03:08 +00008517 { echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008519 ;;
8520 esac
a.rottmann84e63352003-03-24 09:42:16 +00008521fi
8522
drh71eb93e2001-09-28 01:34:43 +00008523if test "x$enable_dlopen" != xyes; then
8524 enable_dlopen=unknown
8525 enable_dlopen_self=unknown
8526 enable_dlopen_self_static=unknown
8527else
8528 lt_cv_dlopen=no
8529 lt_cv_dlopen_libs=
8530
8531 case $host_os in
8532 beos*)
8533 lt_cv_dlopen="load_add_on"
8534 lt_cv_dlopen_libs=
8535 lt_cv_dlopen_self=yes
8536 ;;
8537
a.rottmann9bc8b932004-02-29 15:18:31 +00008538 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008539 lt_cv_dlopen="LoadLibrary"
8540 lt_cv_dlopen_libs=
8541 ;;
8542
a.rottmann9bc8b932004-02-29 15:18:31 +00008543 cygwin*)
8544 lt_cv_dlopen="dlopen"
8545 lt_cv_dlopen_libs=
8546 ;;
8547
8548 darwin*)
8549 # if libdl is installed we need to link against it
mlcreech94984912008-03-04 19:03:08 +00008550 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8551echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008552if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554else
8555 ac_check_lib_save_LIBS=$LIBS
8556LIBS="-ldl $LIBS"
8557cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
8563
mlcreech94984912008-03-04 19:03:08 +00008564/* Override any GCC internal prototype to avoid an error.
8565 Use char because int might match the return type of a GCC
8566 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008567#ifdef __cplusplus
8568extern "C"
8569#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00008570char dlopen ();
8571int
8572main ()
8573{
mlcreech94984912008-03-04 19:03:08 +00008574return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008575 ;
8576 return 0;
8577}
8578_ACEOF
8579rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008580if { (ac_try="$ac_link"
8581case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584esac
8585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008592 (exit $ac_status); } && {
8593 test -z "$ac_c_werror_flag" ||
8594 test ! -s conftest.err
8595 } && test -s conftest$ac_exeext &&
8596 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008597 ac_cv_lib_dl_dlopen=yes
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
mlcreech94984912008-03-04 19:03:08 +00008602 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008603fi
mlcreech94984912008-03-04 19:03:08 +00008604
8605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00008606 conftest$ac_exeext conftest.$ac_ext
8607LIBS=$ac_check_lib_save_LIBS
8608fi
mlcreech94984912008-03-04 19:03:08 +00008609{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8610echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008611if test $ac_cv_lib_dl_dlopen = yes; then
8612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8613else
8614
8615 lt_cv_dlopen="dyld"
8616 lt_cv_dlopen_libs=
8617 lt_cv_dlopen_self=yes
8618
8619fi
8620
8621 ;;
8622
drh71eb93e2001-09-28 01:34:43 +00008623 *)
mlcreech94984912008-03-04 19:03:08 +00008624 { echo "$as_me:$LINENO: checking for shl_load" >&5
8625echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008626if test "${ac_cv_func_shl_load+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008635/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8637#define shl_load innocuous_shl_load
8638
drh71eb93e2001-09-28 01:34:43 +00008639/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008640 which can conflict with char shl_load (); below.
8641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008643
a.rottmann84e63352003-03-24 09:42:16 +00008644#ifdef __STDC__
8645# include <limits.h>
8646#else
8647# include <assert.h>
8648#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008649
8650#undef shl_load
8651
mlcreech94984912008-03-04 19:03:08 +00008652/* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008655#ifdef __cplusplus
8656extern "C"
8657#endif
drh71eb93e2001-09-28 01:34:43 +00008658char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008659/* The GNU C library defines this for functions which it implements
8660 to always fail with ENOSYS. Some functions are actually named
8661 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008662#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00008663choke me
drh71eb93e2001-09-28 01:34:43 +00008664#endif
8665
a.rottmann84e63352003-03-24 09:42:16 +00008666int
8667main ()
8668{
mlcreech94984912008-03-04 19:03:08 +00008669return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008670 ;
8671 return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008675if { (ac_try="$ac_link"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008682 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext &&
8691 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008692 ac_cv_func_shl_load=yes
8693else
8694 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008695sed 's/^/| /' conftest.$ac_ext >&5
8696
mlcreech94984912008-03-04 19:03:08 +00008697 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008698fi
mlcreech94984912008-03-04 19:03:08 +00008699
8700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008701 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008702fi
mlcreech94984912008-03-04 19:03:08 +00008703{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8704echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008705if test $ac_cv_func_shl_load = yes; then
8706 lt_cv_dlopen="shl_load"
8707else
mlcreech94984912008-03-04 19:03:08 +00008708 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8709echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008710if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713 ac_check_lib_save_LIBS=$LIBS
8714LIBS="-ldld $LIBS"
8715cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008721
mlcreech94984912008-03-04 19:03:08 +00008722/* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008725#ifdef __cplusplus
8726extern "C"
8727#endif
drh71eb93e2001-09-28 01:34:43 +00008728char shl_load ();
8729int
8730main ()
8731{
mlcreech94984912008-03-04 19:03:08 +00008732return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008733 ;
8734 return 0;
8735}
8736_ACEOF
8737rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008738if { (ac_try="$ac_link"
8739case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008745 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008750 (exit $ac_status); } && {
8751 test -z "$ac_c_werror_flag" ||
8752 test ! -s conftest.err
8753 } && test -s conftest$ac_exeext &&
8754 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008755 ac_cv_lib_dld_shl_load=yes
8756else
8757 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008758sed 's/^/| /' conftest.$ac_ext >&5
8759
mlcreech94984912008-03-04 19:03:08 +00008760 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008761fi
mlcreech94984912008-03-04 19:03:08 +00008762
8763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008764 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008765LIBS=$ac_check_lib_save_LIBS
8766fi
mlcreech94984912008-03-04 19:03:08 +00008767{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8768echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008769if test $ac_cv_lib_dld_shl_load = yes; then
8770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8771else
mlcreech94984912008-03-04 19:03:08 +00008772 { echo "$as_me:$LINENO: checking for dlopen" >&5
8773echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008774if test "${ac_cv_func_dlopen+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
8777 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008778/* confdefs.h. */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008783/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8785#define dlopen innocuous_dlopen
8786
a.rottmann84e63352003-03-24 09:42:16 +00008787/* System header to define __stub macros and hopefully few prototypes,
8788 which can conflict with char dlopen (); below.
8789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8790 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008791
a.rottmann84e63352003-03-24 09:42:16 +00008792#ifdef __STDC__
8793# include <limits.h>
8794#else
8795# include <assert.h>
8796#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008797
8798#undef dlopen
8799
mlcreech94984912008-03-04 19:03:08 +00008800/* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008803#ifdef __cplusplus
8804extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00008805#endif
a.rottmann84e63352003-03-24 09:42:16 +00008806char dlopen ();
8807/* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
mlcreech94984912008-03-04 19:03:08 +00008810#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00008811choke me
a.rottmann84e63352003-03-24 09:42:16 +00008812#endif
8813
8814int
8815main ()
8816{
mlcreech94984912008-03-04 19:03:08 +00008817return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00008818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008823if { (ac_try="$ac_link"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008830 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest$ac_exeext &&
8839 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00008840 ac_cv_func_dlopen=yes
8841else
8842 echo "$as_me: failed program was:" >&5
8843sed 's/^/| /' conftest.$ac_ext >&5
8844
mlcreech94984912008-03-04 19:03:08 +00008845 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008846fi
mlcreech94984912008-03-04 19:03:08 +00008847
8848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008849 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008850fi
mlcreech94984912008-03-04 19:03:08 +00008851{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8852echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008853if test $ac_cv_func_dlopen = yes; then
8854 lt_cv_dlopen="dlopen"
8855else
mlcreech94984912008-03-04 19:03:08 +00008856 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8857echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008858if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8859 echo $ECHO_N "(cached) $ECHO_C" >&6
8860else
8861 ac_check_lib_save_LIBS=$LIBS
8862LIBS="-ldl $LIBS"
8863cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008869
mlcreech94984912008-03-04 19:03:08 +00008870/* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008873#ifdef __cplusplus
8874extern "C"
8875#endif
drh71eb93e2001-09-28 01:34:43 +00008876char dlopen ();
8877int
8878main ()
8879{
mlcreech94984912008-03-04 19:03:08 +00008880return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008881 ;
8882 return 0;
8883}
8884_ACEOF
8885rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008886if { (ac_try="$ac_link"
8887case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890esac
8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008893 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008898 (exit $ac_status); } && {
8899 test -z "$ac_c_werror_flag" ||
8900 test ! -s conftest.err
8901 } && test -s conftest$ac_exeext &&
8902 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008903 ac_cv_lib_dl_dlopen=yes
8904else
8905 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008906sed 's/^/| /' conftest.$ac_ext >&5
8907
mlcreech94984912008-03-04 19:03:08 +00008908 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008909fi
mlcreech94984912008-03-04 19:03:08 +00008910
8911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008912 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008913LIBS=$ac_check_lib_save_LIBS
8914fi
mlcreech94984912008-03-04 19:03:08 +00008915{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8916echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008917if test $ac_cv_lib_dl_dlopen = yes; then
8918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8919else
mlcreech94984912008-03-04 19:03:08 +00008920 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8921echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008922if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 ac_check_lib_save_LIBS=$LIBS
8926LIBS="-lsvld $LIBS"
8927cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008928/* confdefs.h. */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008933
mlcreech94984912008-03-04 19:03:08 +00008934/* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008937#ifdef __cplusplus
8938extern "C"
8939#endif
drh71eb93e2001-09-28 01:34:43 +00008940char dlopen ();
8941int
8942main ()
8943{
mlcreech94984912008-03-04 19:03:08 +00008944return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008945 ;
8946 return 0;
8947}
8948_ACEOF
8949rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00008950if { (ac_try="$ac_link"
8951case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008957 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00008961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00008962 (exit $ac_status); } && {
8963 test -z "$ac_c_werror_flag" ||
8964 test ! -s conftest.err
8965 } && test -s conftest$ac_exeext &&
8966 $as_test_x conftest$ac_exeext; then
drh71eb93e2001-09-28 01:34:43 +00008967 ac_cv_lib_svld_dlopen=yes
8968else
8969 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008970sed 's/^/| /' conftest.$ac_ext >&5
8971
mlcreech94984912008-03-04 19:03:08 +00008972 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008973fi
mlcreech94984912008-03-04 19:03:08 +00008974
8975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00008976 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008977LIBS=$ac_check_lib_save_LIBS
8978fi
mlcreech94984912008-03-04 19:03:08 +00008979{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8980echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
drh71eb93e2001-09-28 01:34:43 +00008981if test $ac_cv_lib_svld_dlopen = yes; then
8982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008983else
mlcreech94984912008-03-04 19:03:08 +00008984 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8985echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008986if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989 ac_check_lib_save_LIBS=$LIBS
8990LIBS="-ldld $LIBS"
8991cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008992/* confdefs.h. */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h. */
8997
mlcreech94984912008-03-04 19:03:08 +00008998/* Override any GCC internal prototype to avoid an error.
8999 Use char because int might match the return type of a GCC
9000 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009001#ifdef __cplusplus
9002extern "C"
9003#endif
a.rottmann84e63352003-03-24 09:42:16 +00009004char dld_link ();
9005int
9006main ()
9007{
mlcreech94984912008-03-04 19:03:08 +00009008return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009009 ;
9010 return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +00009014if { (ac_try="$ac_link"
9015case "(($ac_try" in
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9018esac
9019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009021 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009022 grep -v '^ *+' conftest.er1 >conftest.err
9023 rm -f conftest.er1
9024 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +00009025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +00009026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest$ac_exeext &&
9030 $as_test_x conftest$ac_exeext; then
a.rottmann84e63352003-03-24 09:42:16 +00009031 ac_cv_lib_dld_dld_link=yes
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
mlcreech94984912008-03-04 19:03:08 +00009036 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009037fi
mlcreech94984912008-03-04 19:03:08 +00009038
9039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009040 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009041LIBS=$ac_check_lib_save_LIBS
9042fi
mlcreech94984912008-03-04 19:03:08 +00009043{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9044echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009045if test $ac_cv_lib_dld_dld_link = yes; then
9046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9047fi
9048
drh71eb93e2001-09-28 01:34:43 +00009049
9050fi
9051
drh71eb93e2001-09-28 01:34:43 +00009052
9053fi
9054
a.rottmann84e63352003-03-24 09:42:16 +00009055
9056fi
9057
9058
9059fi
9060
9061
drh71eb93e2001-09-28 01:34:43 +00009062fi
9063
9064 ;;
9065 esac
9066
9067 if test "x$lt_cv_dlopen" != xno; then
9068 enable_dlopen=yes
9069 else
9070 enable_dlopen=no
9071 fi
9072
9073 case $lt_cv_dlopen in
9074 dlopen)
9075 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009077
9078 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009080
9081 save_LIBS="$LIBS"
9082 LIBS="$lt_cv_dlopen_libs $LIBS"
9083
mlcreech94984912008-03-04 19:03:08 +00009084 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9085echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009086if test "${lt_cv_dlopen_self+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088else
9089 if test "$cross_compiling" = yes; then :
9090 lt_cv_dlopen_self=cross
9091else
a.rottmann9bc8b932004-02-29 15:18:31 +00009092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009093 lt_status=$lt_dlunknown
9094 cat > conftest.$ac_ext <<EOF
mlcreech969b2cd2008-03-14 04:11:03 +00009095#line 9095 "configure"
drh71eb93e2001-09-28 01:34:43 +00009096#include "confdefs.h"
9097
9098#if HAVE_DLFCN_H
9099#include <dlfcn.h>
9100#endif
9101
9102#include <stdio.h>
9103
9104#ifdef RTLD_GLOBAL
9105# define LT_DLGLOBAL RTLD_GLOBAL
9106#else
9107# ifdef DL_GLOBAL
9108# define LT_DLGLOBAL DL_GLOBAL
9109# else
9110# define LT_DLGLOBAL 0
9111# endif
9112#endif
9113
9114/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9115 find out it does not work in some platform. */
9116#ifndef LT_DLLAZY_OR_NOW
9117# ifdef RTLD_LAZY
9118# define LT_DLLAZY_OR_NOW RTLD_LAZY
9119# else
9120# ifdef DL_LAZY
9121# define LT_DLLAZY_OR_NOW DL_LAZY
9122# else
9123# ifdef RTLD_NOW
9124# define LT_DLLAZY_OR_NOW RTLD_NOW
9125# else
9126# ifdef DL_NOW
9127# define LT_DLLAZY_OR_NOW DL_NOW
9128# else
9129# define LT_DLLAZY_OR_NOW 0
9130# endif
9131# endif
9132# endif
9133# endif
9134#endif
9135
9136#ifdef __cplusplus
9137extern "C" void exit (int);
9138#endif
9139
9140void fnord() { int i=42;}
9141int main ()
9142{
9143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9144 int status = $lt_dlunknown;
9145
9146 if (self)
9147 {
9148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9150 /* dlclose (self); */
9151 }
vapier7f19c022007-02-17 14:46:31 +00009152 else
9153 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009154
9155 exit (status);
9156}
9157EOF
a.rottmann84e63352003-03-24 09:42:16 +00009158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009159 (eval $ac_link) 2>&5
9160 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009162 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009163 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009164 lt_status=$?
9165 case x$lt_status in
9166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009168 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009169 esac
9170 else :
9171 # compilation failed
9172 lt_cv_dlopen_self=no
9173 fi
9174fi
9175rm -fr conftest*
9176
a.rottmann84e63352003-03-24 09:42:16 +00009177
drh71eb93e2001-09-28 01:34:43 +00009178fi
mlcreech94984912008-03-04 19:03:08 +00009179{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9180echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009181
9182 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
mlcreech94984912008-03-04 19:03:08 +00009184 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9185echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009186if test "${lt_cv_dlopen_self_static+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9188else
9189 if test "$cross_compiling" = yes; then :
9190 lt_cv_dlopen_self_static=cross
9191else
a.rottmann9bc8b932004-02-29 15:18:31 +00009192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009193 lt_status=$lt_dlunknown
9194 cat > conftest.$ac_ext <<EOF
mlcreech969b2cd2008-03-14 04:11:03 +00009195#line 9195 "configure"
drh71eb93e2001-09-28 01:34:43 +00009196#include "confdefs.h"
9197
9198#if HAVE_DLFCN_H
9199#include <dlfcn.h>
9200#endif
9201
9202#include <stdio.h>
9203
9204#ifdef RTLD_GLOBAL
9205# define LT_DLGLOBAL RTLD_GLOBAL
9206#else
9207# ifdef DL_GLOBAL
9208# define LT_DLGLOBAL DL_GLOBAL
9209# else
9210# define LT_DLGLOBAL 0
9211# endif
9212#endif
9213
9214/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9215 find out it does not work in some platform. */
9216#ifndef LT_DLLAZY_OR_NOW
9217# ifdef RTLD_LAZY
9218# define LT_DLLAZY_OR_NOW RTLD_LAZY
9219# else
9220# ifdef DL_LAZY
9221# define LT_DLLAZY_OR_NOW DL_LAZY
9222# else
9223# ifdef RTLD_NOW
9224# define LT_DLLAZY_OR_NOW RTLD_NOW
9225# else
9226# ifdef DL_NOW
9227# define LT_DLLAZY_OR_NOW DL_NOW
9228# else
9229# define LT_DLLAZY_OR_NOW 0
9230# endif
9231# endif
9232# endif
9233# endif
9234#endif
9235
9236#ifdef __cplusplus
9237extern "C" void exit (int);
9238#endif
9239
9240void fnord() { int i=42;}
9241int main ()
9242{
9243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9244 int status = $lt_dlunknown;
9245
9246 if (self)
9247 {
9248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9250 /* dlclose (self); */
9251 }
vapier7f19c022007-02-17 14:46:31 +00009252 else
9253 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009254
9255 exit (status);
9256}
9257EOF
a.rottmann84e63352003-03-24 09:42:16 +00009258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009259 (eval $ac_link) 2>&5
9260 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +00009261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009263 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009264 lt_status=$?
9265 case x$lt_status in
9266 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9267 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009268 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009269 esac
9270 else :
9271 # compilation failed
9272 lt_cv_dlopen_self_static=no
9273 fi
9274fi
9275rm -fr conftest*
9276
a.rottmann84e63352003-03-24 09:42:16 +00009277
drh71eb93e2001-09-28 01:34:43 +00009278fi
mlcreech94984912008-03-04 19:03:08 +00009279{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9280echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009281 fi
9282
9283 CPPFLAGS="$save_CPPFLAGS"
9284 LDFLAGS="$save_LDFLAGS"
9285 LIBS="$save_LIBS"
9286 ;;
9287 esac
9288
9289 case $lt_cv_dlopen_self in
9290 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9291 *) enable_dlopen_self=unknown ;;
9292 esac
9293
9294 case $lt_cv_dlopen_self_static in
9295 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9296 *) enable_dlopen_self_static=unknown ;;
9297 esac
9298fi
9299
drh71eb93e2001-09-28 01:34:43 +00009300
vapier7f19c022007-02-17 14:46:31 +00009301# Report which library types will actually be built
mlcreech94984912008-03-04 19:03:08 +00009302{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9303echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9304{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9305echo "${ECHO_T}$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009306
mlcreech94984912008-03-04 19:03:08 +00009307{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9308echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009309test "$can_build_shared" = "no" && enable_shared=no
9310
9311# On AIX, shared libraries and static libraries use the same namespace, and
9312# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +00009313case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00009314aix3*)
9315 test "$enable_shared" = yes && enable_static=no
9316 if test -n "$RANLIB"; then
9317 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9318 postinstall_cmds='$RANLIB $lib'
9319 fi
9320 ;;
9321
vapier7f19c022007-02-17 14:46:31 +00009322aix4* | aix5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009323 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9324 test "$enable_shared" = yes && enable_static=no
9325 fi
a.rottmann84e63352003-03-24 09:42:16 +00009326 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009327esac
mlcreech94984912008-03-04 19:03:08 +00009328{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9329echo "${ECHO_T}$enable_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009330
mlcreech94984912008-03-04 19:03:08 +00009331{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9332echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009333# Make sure either enable_shared or enable_static is yes.
9334test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +00009335{ echo "$as_me:$LINENO: result: $enable_static" >&5
9336echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009337
9338# The else clause should only fire when bootstrapping the
drh71eb93e2001-09-28 01:34:43 +00009339# libtool distribution, otherwise you forgot to ship ltmain.sh
9340# with your package, and you will get complaints that there are
9341# no rules to generate ltmain.sh.
9342if test -f "$ltmain"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009343 # See if we are running on zsh, and set the options which allow our commands through
9344 # without removal of \ escapes.
9345 if test -n "${ZSH_VERSION+set}" ; then
9346 setopt NO_GLOB_SUBST
9347 fi
drh71eb93e2001-09-28 01:34:43 +00009348 # Now quote all the things that may contain metacharacters while being
9349 # careful not to overquote the AC_SUBSTed values. We take copies of the
9350 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +00009351 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 +00009352 SED SHELL STRIP \
9353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9355 deplibs_check_method reload_flag reload_cmds need_locks \
9356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9357 lt_cv_sys_global_symbol_to_c_name_address \
drh71eb93e2001-09-28 01:34:43 +00009358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
a.rottmann9bc8b932004-02-29 15:18:31 +00009359 old_postinstall_cmds old_postuninstall_cmds \
9360 compiler \
9361 CC \
9362 LD \
9363 lt_prog_compiler_wl \
9364 lt_prog_compiler_pic \
9365 lt_prog_compiler_static \
9366 lt_prog_compiler_no_builtin_flag \
9367 export_dynamic_flag_spec \
9368 thread_safe_flag_spec \
9369 whole_archive_flag_spec \
9370 enable_shared_with_static_runtimes \
9371 old_archive_cmds \
9372 old_archive_from_new_cmds \
9373 predep_objects \
9374 postdep_objects \
9375 predeps \
9376 postdeps \
9377 compiler_lib_search_path \
9378 archive_cmds \
9379 archive_expsym_cmds \
9380 postinstall_cmds \
9381 postuninstall_cmds \
9382 old_archive_from_expsyms_cmds \
9383 allow_undefined_flag \
9384 no_undefined_flag \
9385 export_symbols_cmds \
9386 hardcode_libdir_flag_spec \
9387 hardcode_libdir_flag_spec_ld \
9388 hardcode_libdir_separator \
9389 hardcode_automatic \
9390 module_cmds \
9391 module_expsym_cmds \
9392 lt_cv_prog_compiler_c_o \
9393 exclude_expsyms \
9394 include_expsyms; do
drh71eb93e2001-09-28 01:34:43 +00009395
9396 case $var in
a.rottmann9bc8b932004-02-29 15:18:31 +00009397 old_archive_cmds | \
9398 old_archive_from_new_cmds | \
9399 archive_cmds | \
9400 archive_expsym_cmds | \
9401 module_cmds | \
9402 module_expsym_cmds | \
9403 old_archive_from_expsyms_cmds | \
9404 export_symbols_cmds | \
9405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
a.rottmann84e63352003-03-24 09:42:16 +00009406 postinstall_cmds | postuninstall_cmds | \
a.rottmann9bc8b932004-02-29 15:18:31 +00009407 old_postinstall_cmds | old_postuninstall_cmds | \
9408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
drh71eb93e2001-09-28 01:34:43 +00009409 # Double-quote double-evaled strings.
9410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9411 ;;
9412 *)
9413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9414 ;;
9415 esac
9416 done
9417
a.rottmann9bc8b932004-02-29 15:18:31 +00009418 case $lt_echo in
9419 *'\$0 --fallback-echo"')
9420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9421 ;;
9422 esac
9423
9424cfgfile="${ofile}T"
9425 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9426 $rm -f "$cfgfile"
9427 { echo "$as_me:$LINENO: creating $ofile" >&5
9428echo "$as_me: creating $ofile" >&6;}
9429
9430 cat <<__EOF__ >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009431#! $SHELL
9432
a.rottmann9bc8b932004-02-29 15:18:31 +00009433# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
drh71eb93e2001-09-28 01:34:43 +00009434# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9435# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9436#
a.rottmann9bc8b932004-02-29 15:18:31 +00009437# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9438# Free Software Foundation, Inc.
9439#
9440# This file is part of GNU Libtool:
drh71eb93e2001-09-28 01:34:43 +00009441# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9442#
9443# This program is free software; you can redistribute it and/or modify
9444# it under the terms of the GNU General Public License as published by
9445# the Free Software Foundation; either version 2 of the License, or
9446# (at your option) any later version.
9447#
9448# This program is distributed in the hope that it will be useful, but
9449# WITHOUT ANY WARRANTY; without even the implied warranty of
9450# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9451# General Public License for more details.
9452#
9453# You should have received a copy of the GNU General Public License
9454# along with this program; if not, write to the Free Software
vapier7f19c022007-02-17 14:46:31 +00009455# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
drh71eb93e2001-09-28 01:34:43 +00009456#
9457# As a special exception to the GNU General Public License, if you
9458# distribute this file as part of a program that contains a
9459# configuration script generated by Autoconf, you may include it under
9460# the same distribution terms that you use for the rest of that program.
9461
a.rottmann9bc8b932004-02-29 15:18:31 +00009462# A sed program that does not truncate output.
a.rottmann84e63352003-03-24 09:42:16 +00009463SED=$lt_SED
9464
drh71eb93e2001-09-28 01:34:43 +00009465# Sed that helps us avoid accidentally triggering echo(1) options like -n.
vapier7f19c022007-02-17 14:46:31 +00009466Xsed="$SED -e 1s/^X//"
drh71eb93e2001-09-28 01:34:43 +00009467
9468# The HP-UX ksh and POSIX shell print the target directory to stdout
9469# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +00009470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +00009471
a.rottmann9bc8b932004-02-29 15:18:31 +00009472# The names of the tagged configurations supported by this script.
9473available_tags=
9474
drh71eb93e2001-09-28 01:34:43 +00009475# ### BEGIN LIBTOOL CONFIG
9476
9477# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9478
9479# Shell to use when invoking shell scripts.
9480SHELL=$lt_SHELL
9481
9482# Whether or not to build shared libraries.
9483build_libtool_libs=$enable_shared
9484
9485# Whether or not to build static libraries.
9486build_old_libs=$enable_static
9487
9488# Whether or not to add -lc for building shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00009489build_libtool_need_lc=$archive_cmds_need_lc
9490
9491# Whether or not to disallow shared libs when runtime libs are static
9492allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
drh71eb93e2001-09-28 01:34:43 +00009493
9494# Whether or not to optimize for fast installation.
9495fast_install=$enable_fast_install
9496
9497# The host system.
9498host_alias=$host_alias
9499host=$host
vapier7f19c022007-02-17 14:46:31 +00009500host_os=$host_os
9501
9502# The build system.
9503build_alias=$build_alias
9504build=$build
9505build_os=$build_os
drh71eb93e2001-09-28 01:34:43 +00009506
9507# An echo program that does not interpret backslashes.
9508echo=$lt_echo
9509
9510# The archiver.
9511AR=$lt_AR
9512AR_FLAGS=$lt_AR_FLAGS
9513
a.rottmann9bc8b932004-02-29 15:18:31 +00009514# A C compiler.
9515LTCC=$lt_LTCC
9516
vapier7f19c022007-02-17 14:46:31 +00009517# LTCC compiler flags.
9518LTCFLAGS=$lt_LTCFLAGS
9519
a.rottmann9bc8b932004-02-29 15:18:31 +00009520# A language-specific compiler.
9521CC=$lt_compiler
drh71eb93e2001-09-28 01:34:43 +00009522
9523# Is the compiler the GNU C compiler?
9524with_gcc=$GCC
9525
a.rottmann9bc8b932004-02-29 15:18:31 +00009526# An ERE matcher.
9527EGREP=$lt_EGREP
9528
drh71eb93e2001-09-28 01:34:43 +00009529# The linker used to build libraries.
9530LD=$lt_LD
9531
9532# Whether we need hard or soft links.
9533LN_S=$lt_LN_S
9534
9535# A BSD-compatible nm program.
9536NM=$lt_NM
9537
9538# A symbol stripping program
a.rottmann9bc8b932004-02-29 15:18:31 +00009539STRIP=$lt_STRIP
drh71eb93e2001-09-28 01:34:43 +00009540
9541# Used to examine libraries when file_magic_cmd begins "file"
9542MAGIC_CMD=$MAGIC_CMD
9543
9544# Used on cygwin: DLL creation program.
9545DLLTOOL="$DLLTOOL"
9546
9547# Used on cygwin: object dumper.
9548OBJDUMP="$OBJDUMP"
9549
9550# Used on cygwin: assembler.
9551AS="$AS"
9552
9553# The name of the directory that contains temporary libtool files.
9554objdir=$objdir
9555
9556# How to create reloadable object files.
9557reload_flag=$lt_reload_flag
9558reload_cmds=$lt_reload_cmds
9559
9560# How to pass a linker flag through the compiler.
a.rottmann9bc8b932004-02-29 15:18:31 +00009561wl=$lt_lt_prog_compiler_wl
drh71eb93e2001-09-28 01:34:43 +00009562
9563# Object file suffix (normally "o").
9564objext="$ac_objext"
9565
9566# Old archive suffix (normally "a").
9567libext="$libext"
9568
a.rottmann9bc8b932004-02-29 15:18:31 +00009569# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +00009570shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +00009571
drh71eb93e2001-09-28 01:34:43 +00009572# Executable file suffix (normally "").
9573exeext="$exeext"
9574
9575# Additional compiler flags for building library objects.
a.rottmann9bc8b932004-02-29 15:18:31 +00009576pic_flag=$lt_lt_prog_compiler_pic
drh71eb93e2001-09-28 01:34:43 +00009577pic_mode=$pic_mode
9578
a.rottmann9bc8b932004-02-29 15:18:31 +00009579# What is the maximum length of a command?
9580max_cmd_len=$lt_cv_sys_max_cmd_len
a.rottmann84e63352003-03-24 09:42:16 +00009581
a.rottmann9bc8b932004-02-29 15:18:31 +00009582# Does compiler simultaneously support -c and -o options?
9583compiler_c_o=$lt_lt_cv_prog_compiler_c_o
drh71eb93e2001-09-28 01:34:43 +00009584
vapier7f19c022007-02-17 14:46:31 +00009585# Must we lock files when doing compilation?
drh71eb93e2001-09-28 01:34:43 +00009586need_locks=$lt_need_locks
9587
9588# Do we need the lib prefix for modules?
9589need_lib_prefix=$need_lib_prefix
9590
9591# Do we need a version for libraries?
9592need_version=$need_version
9593
9594# Whether dlopen is supported.
9595dlopen_support=$enable_dlopen
9596
9597# Whether dlopen of programs is supported.
9598dlopen_self=$enable_dlopen_self
9599
9600# Whether dlopen of statically linked programs is supported.
9601dlopen_self_static=$enable_dlopen_self_static
9602
9603# Compiler flag to prevent dynamic linking.
a.rottmann9bc8b932004-02-29 15:18:31 +00009604link_static_flag=$lt_lt_prog_compiler_static
drh71eb93e2001-09-28 01:34:43 +00009605
9606# Compiler flag to turn off builtin functions.
a.rottmann9bc8b932004-02-29 15:18:31 +00009607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
drh71eb93e2001-09-28 01:34:43 +00009608
9609# Compiler flag to allow reflexive dlopens.
9610export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9611
9612# Compiler flag to generate shared objects directly from archives.
9613whole_archive_flag_spec=$lt_whole_archive_flag_spec
9614
9615# Compiler flag to generate thread-safe objects.
9616thread_safe_flag_spec=$lt_thread_safe_flag_spec
9617
9618# Library versioning type.
9619version_type=$version_type
9620
9621# Format of library name prefix.
9622libname_spec=$lt_libname_spec
9623
9624# List of archive names. First name is the real one, the rest are links.
9625# The last name is the one that the linker finds with -lNAME.
9626library_names_spec=$lt_library_names_spec
9627
9628# The coded name of the library, if different from the real name.
9629soname_spec=$lt_soname_spec
9630
9631# Commands used to build and install an old-style archive.
9632RANLIB=$lt_RANLIB
9633old_archive_cmds=$lt_old_archive_cmds
9634old_postinstall_cmds=$lt_old_postinstall_cmds
9635old_postuninstall_cmds=$lt_old_postuninstall_cmds
9636
9637# Create an old-style archive from a shared archive.
9638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9639
9640# Create a temporary old-style archive to link instead of a shared archive.
9641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9642
9643# Commands used to build and install a shared archive.
9644archive_cmds=$lt_archive_cmds
9645archive_expsym_cmds=$lt_archive_expsym_cmds
9646postinstall_cmds=$lt_postinstall_cmds
9647postuninstall_cmds=$lt_postuninstall_cmds
9648
a.rottmann9bc8b932004-02-29 15:18:31 +00009649# Commands used to build a loadable module (assumed same as above if empty)
9650module_cmds=$lt_module_cmds
9651module_expsym_cmds=$lt_module_expsym_cmds
9652
drh71eb93e2001-09-28 01:34:43 +00009653# Commands to strip libraries.
9654old_striplib=$lt_old_striplib
9655striplib=$lt_striplib
9656
a.rottmann9bc8b932004-02-29 15:18:31 +00009657# Dependencies to place before the objects being linked to create a
9658# shared library.
9659predep_objects=$lt_predep_objects
9660
9661# Dependencies to place after the objects being linked to create a
9662# shared library.
9663postdep_objects=$lt_postdep_objects
9664
9665# Dependencies to place before the objects being linked to create a
9666# shared library.
9667predeps=$lt_predeps
9668
9669# Dependencies to place after the objects being linked to create a
9670# shared library.
9671postdeps=$lt_postdeps
9672
9673# The library search path used internally by the compiler when linking
9674# a shared library.
9675compiler_lib_search_path=$lt_compiler_lib_search_path
9676
drh71eb93e2001-09-28 01:34:43 +00009677# Method to check whether dependent libraries are shared objects.
9678deplibs_check_method=$lt_deplibs_check_method
9679
9680# Command to use when deplibs_check_method == file_magic.
9681file_magic_cmd=$lt_file_magic_cmd
9682
9683# Flag that allows shared libraries with undefined symbols to be built.
9684allow_undefined_flag=$lt_allow_undefined_flag
9685
9686# Flag that forces no undefined symbols.
9687no_undefined_flag=$lt_no_undefined_flag
9688
9689# Commands used to finish a libtool library installation in a directory.
9690finish_cmds=$lt_finish_cmds
9691
9692# Same as above, but a single script fragment to be evaled but not shown.
9693finish_eval=$lt_finish_eval
9694
9695# Take the output of nm and produce a listing of raw symbols and C names.
a.rottmann9bc8b932004-02-29 15:18:31 +00009696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
drh71eb93e2001-09-28 01:34:43 +00009697
9698# Transform the output of nm in a proper C declaration
a.rottmann9bc8b932004-02-29 15:18:31 +00009699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
drh71eb93e2001-09-28 01:34:43 +00009700
9701# Transform the output of nm in a C name address pair
a.rottmann9bc8b932004-02-29 15:18:31 +00009702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
drh71eb93e2001-09-28 01:34:43 +00009703
9704# This is the shared library runtime path variable.
9705runpath_var=$runpath_var
9706
9707# This is the shared library path variable.
9708shlibpath_var=$shlibpath_var
9709
9710# Is shlibpath searched before the hard-coded library search path?
9711shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9712
9713# How to hardcode a shared library path into an executable.
9714hardcode_action=$hardcode_action
9715
9716# Whether we should hardcode library paths into libraries.
9717hardcode_into_libs=$hardcode_into_libs
9718
9719# Flag to hardcode \$libdir into a binary during linking.
9720# This must work even if \$libdir does not exist.
9721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9722
a.rottmann9bc8b932004-02-29 15:18:31 +00009723# If ld is used when linking, flag to hardcode \$libdir into
9724# a binary during linking. This must work even if \$libdir does
9725# not exist.
9726hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9727
drh71eb93e2001-09-28 01:34:43 +00009728# Whether we need a single -rpath flag with a separated argument.
9729hardcode_libdir_separator=$lt_hardcode_libdir_separator
9730
a.rottmann9bc8b932004-02-29 15:18:31 +00009731# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
drh71eb93e2001-09-28 01:34:43 +00009732# resulting binary.
9733hardcode_direct=$hardcode_direct
9734
9735# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9736# resulting binary.
9737hardcode_minus_L=$hardcode_minus_L
9738
9739# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9740# the resulting binary.
9741hardcode_shlibpath_var=$hardcode_shlibpath_var
9742
a.rottmann9bc8b932004-02-29 15:18:31 +00009743# Set to yes if building a shared library automatically hardcodes DIR into the library
9744# and all subsequent libraries and executables linked against it.
9745hardcode_automatic=$hardcode_automatic
9746
drh71eb93e2001-09-28 01:34:43 +00009747# Variables whose values should be saved in libtool wrapper scripts and
9748# restored at relink time.
9749variables_saved_for_relink="$variables_saved_for_relink"
9750
9751# Whether libtool must link a program against all its dependency libraries.
9752link_all_deplibs=$link_all_deplibs
9753
9754# Compile-time system search path for libraries
9755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9756
9757# Run-time system search path for libraries
9758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9759
9760# Fix the shell variable \$srcfile for the compiler.
9761fix_srcfile_path="$fix_srcfile_path"
9762
9763# Set to yes if exported symbols are required.
9764always_export_symbols=$always_export_symbols
9765
9766# The commands to list exported symbols.
9767export_symbols_cmds=$lt_export_symbols_cmds
9768
9769# The commands to extract the exported symbol list from a shared archive.
9770extract_expsyms_cmds=$lt_extract_expsyms_cmds
9771
9772# Symbols that should not be listed in the preloaded symbols.
9773exclude_expsyms=$lt_exclude_expsyms
9774
9775# Symbols that must always be exported.
9776include_expsyms=$lt_include_expsyms
9777
9778# ### END LIBTOOL CONFIG
9779
9780__EOF__
9781
a.rottmann9bc8b932004-02-29 15:18:31 +00009782
drh71eb93e2001-09-28 01:34:43 +00009783 case $host_os in
9784 aix3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009785 cat <<\EOF >> "$cfgfile"
drh71eb93e2001-09-28 01:34:43 +00009786
9787# AIX sometimes has problems with the GCC collect2 program. For some
9788# reason, if we set the COLLECT_NAMES environment variable, the problems
9789# vanish in a puff of smoke.
9790if test "X${COLLECT_NAMES+set}" != Xset; then
9791 COLLECT_NAMES=
9792 export COLLECT_NAMES
9793fi
9794EOF
9795 ;;
a.rottmann84e63352003-03-24 09:42:16 +00009796 esac
drh71eb93e2001-09-28 01:34:43 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798 # We use sed instead of cat because bash on DJGPP gets confused if
9799 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9800 # text mode, it properly converts lines to CR/LF. This bash problem
9801 # is reportedly fixed, but why not run on old versions too?
a.rottmann9bc8b932004-02-29 15:18:31 +00009802 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
drh71eb93e2001-09-28 01:34:43 +00009803
a.rottmann9bc8b932004-02-29 15:18:31 +00009804 mv -f "$cfgfile" "$ofile" || \
9805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
drh71eb93e2001-09-28 01:34:43 +00009806 chmod +x "$ofile"
a.rottmann9bc8b932004-02-29 15:18:31 +00009807
9808else
9809 # If there is no Makefile yet, we rely on a make rule to execute
9810 # `config.status --recheck' to rerun these tests and create the
9811 # libtool script then.
9812 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9813 if test -f "$ltmain_in"; then
9814 test -f Makefile && make "$ltmain"
9815 fi
drh71eb93e2001-09-28 01:34:43 +00009816fi
9817
drh71eb93e2001-09-28 01:34:43 +00009818
a.rottmann9bc8b932004-02-29 15:18:31 +00009819ac_ext=c
9820ac_cpp='$CPP $CPPFLAGS'
9821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9823ac_compiler_gnu=$ac_cv_c_compiler_gnu
9824
9825CC="$lt_save_CC"
9826
9827
mlcreech94984912008-03-04 19:03:08 +00009828# Check whether --with-tags was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00009829if test "${with_tags+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +00009830 withval=$with_tags; tagnames="$withval"
9831fi
9832
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
9834if test -f "$ltmain" && test -n "$tagnames"; then
9835 if test ! -f "${ofile}"; then
9836 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9837echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9838 fi
9839
9840 if test -z "$LTCC"; then
9841 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9842 if test -z "$LTCC"; then
9843 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9844echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9845 else
9846 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9847echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9848 fi
9849 fi
vapier7f19c022007-02-17 14:46:31 +00009850 if test -z "$LTCFLAGS"; then
9851 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9852 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009853
9854 # Extract list of available tagged configurations in $ofile.
9855 # Note that this assumes the entire list is on one line.
9856 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9857
9858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9859 for tagname in $tagnames; do
9860 IFS="$lt_save_ifs"
9861 # Check whether tagname contains only valid characters
9862 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9863 "") ;;
9864 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9865echo "$as_me: error: invalid tag name: $tagname" >&2;}
9866 { (exit 1); exit 1; }; }
9867 ;;
9868 esac
9869
9870 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9871 then
9872 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9873echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9874 { (exit 1); exit 1; }; }
9875 fi
9876
9877 # Update the list of available tags.
9878 if test -n "$tagname"; then
9879 echo appending configuration tag \"$tagname\" to $ofile
9880
9881 case $tagname in
9882 CXX)
vapier7f19c022007-02-17 14:46:31 +00009883 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9884 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9885 (test "X$CXX" != "Xg++"))) ; then
mlcreech94984912008-03-04 19:03:08 +00009886 ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009887ac_cpp='$CXXCPP $CPPFLAGS'
9888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9891
9892
9893
9894
9895archive_cmds_need_lc_CXX=no
9896allow_undefined_flag_CXX=
9897always_export_symbols_CXX=no
9898archive_expsym_cmds_CXX=
9899export_dynamic_flag_spec_CXX=
9900hardcode_direct_CXX=no
9901hardcode_libdir_flag_spec_CXX=
9902hardcode_libdir_flag_spec_ld_CXX=
9903hardcode_libdir_separator_CXX=
9904hardcode_minus_L_CXX=no
vapier7f19c022007-02-17 14:46:31 +00009905hardcode_shlibpath_var_CXX=unsupported
a.rottmann9bc8b932004-02-29 15:18:31 +00009906hardcode_automatic_CXX=no
9907module_cmds_CXX=
9908module_expsym_cmds_CXX=
9909link_all_deplibs_CXX=unknown
9910old_archive_cmds_CXX=$old_archive_cmds
9911no_undefined_flag_CXX=
9912whole_archive_flag_spec_CXX=
9913enable_shared_with_static_runtimes_CXX=no
9914
9915# Dependencies to place before and after the object being linked:
9916predep_objects_CXX=
9917postdep_objects_CXX=
9918predeps_CXX=
9919postdeps_CXX=
9920compiler_lib_search_path_CXX=
9921
9922# Source file extension for C++ test sources.
vapier7f19c022007-02-17 14:46:31 +00009923ac_ext=cpp
a.rottmann9bc8b932004-02-29 15:18:31 +00009924
9925# Object file extension for compiled C++ test sources.
9926objext=o
9927objext_CXX=$objext
9928
9929# Code to be used in simple compile tests
9930lt_simple_compile_test_code="int some_variable = 0;\n"
9931
9932# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +00009933lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +00009934
9935# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9936
9937# If no C compiler was specified, use CC.
9938LTCC=${LTCC-"$CC"}
9939
vapier7f19c022007-02-17 14:46:31 +00009940# If no C compiler flags were specified, use CFLAGS.
9941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9942
a.rottmann9bc8b932004-02-29 15:18:31 +00009943# Allow CC to be a program name with arguments.
9944compiler=$CC
9945
9946
vapier7f19c022007-02-17 14:46:31 +00009947# save warnings/boilerplate of simple test code
9948ac_outfile=conftest.$ac_objext
9949printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9951_lt_compiler_boilerplate=`cat conftest.err`
9952$rm conftest*
9953
9954ac_outfile=conftest.$ac_objext
9955printf "$lt_simple_link_test_code" >conftest.$ac_ext
9956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9957_lt_linker_boilerplate=`cat conftest.err`
9958$rm conftest*
9959
9960
a.rottmann9bc8b932004-02-29 15:18:31 +00009961# Allow CC to be a program name with arguments.
9962lt_save_CC=$CC
9963lt_save_LD=$LD
9964lt_save_GCC=$GCC
9965GCC=$GXX
9966lt_save_with_gnu_ld=$with_gnu_ld
9967lt_save_path_LD=$lt_cv_path_LD
9968if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9969 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9970else
vapier7f19c022007-02-17 14:46:31 +00009971 $as_unset lt_cv_prog_gnu_ld
a.rottmann9bc8b932004-02-29 15:18:31 +00009972fi
9973if test -n "${lt_cv_path_LDCXX+set}"; then
9974 lt_cv_path_LD=$lt_cv_path_LDCXX
9975else
vapier7f19c022007-02-17 14:46:31 +00009976 $as_unset lt_cv_path_LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009977fi
9978test -z "${LDCXX+set}" || LD=$LDCXX
9979CC=${CXX-"c++"}
9980compiler=$CC
9981compiler_CXX=$CC
vapier7f19c022007-02-17 14:46:31 +00009982for cc_temp in $compiler""; do
9983 case $cc_temp in
9984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9986 \-*) ;;
9987 *) break;;
9988 esac
9989done
9990cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9991
a.rottmann9bc8b932004-02-29 15:18:31 +00009992
9993# We don't want -fno-exception wen compiling C++ code, so set the
9994# no_builtin_flag separately
9995if test "$GXX" = yes; then
9996 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9997else
9998 lt_prog_compiler_no_builtin_flag_CXX=
9999fi
10000
10001if test "$GXX" = yes; then
10002 # Set up default GNU C++ configuration
10003
10004
mlcreech94984912008-03-04 19:03:08 +000010005# Check whether --with-gnu-ld was given.
a.rottmann9bc8b932004-02-29 15:18:31 +000010006if test "${with_gnu_ld+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000010007 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010008else
10009 with_gnu_ld=no
mlcreech94984912008-03-04 19:03:08 +000010010fi
10011
a.rottmann9bc8b932004-02-29 15:18:31 +000010012ac_prog=ld
10013if test "$GCC" = yes; then
10014 # Check if gcc -print-prog-name=ld gives a path.
mlcreech94984912008-03-04 19:03:08 +000010015 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10016echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010017 case $host in
10018 *-*-mingw*)
10019 # gcc leaves a trailing carriage return which upsets mingw
10020 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10021 *)
10022 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10023 esac
10024 case $ac_prog in
10025 # Accept absolute paths.
10026 [\\/]* | ?:[\\/]*)
10027 re_direlt='/[^/][^/]*/\.\./'
10028 # Canonicalize the pathname of ld
10029 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10030 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10031 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10032 done
10033 test -z "$LD" && LD="$ac_prog"
10034 ;;
10035 "")
10036 # If it fails, then pretend we aren't using GCC.
10037 ac_prog=ld
10038 ;;
10039 *)
10040 # If it is relative, then search for the first ld in PATH.
10041 with_gnu_ld=unknown
10042 ;;
10043 esac
10044elif test "$with_gnu_ld" = yes; then
mlcreech94984912008-03-04 19:03:08 +000010045 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10046echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010047else
mlcreech94984912008-03-04 19:03:08 +000010048 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10049echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010050fi
10051if test "${lt_cv_path_LD+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053else
10054 if test -z "$LD"; then
10055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10056 for ac_dir in $PATH; do
10057 IFS="$lt_save_ifs"
10058 test -z "$ac_dir" && ac_dir=.
10059 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10060 lt_cv_path_LD="$ac_dir/$ac_prog"
10061 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +000010062 # but apparently some variants of GNU ld only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010063 # Break only if it was the GNU/non-GNU ld that we prefer.
10064 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10065 *GNU* | *'with BFD'*)
10066 test "$with_gnu_ld" != no && break
10067 ;;
10068 *)
10069 test "$with_gnu_ld" != yes && break
10070 ;;
10071 esac
10072 fi
10073 done
10074 IFS="$lt_save_ifs"
10075else
10076 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10077fi
10078fi
10079
10080LD="$lt_cv_path_LD"
10081if test -n "$LD"; then
mlcreech94984912008-03-04 19:03:08 +000010082 { echo "$as_me:$LINENO: result: $LD" >&5
10083echo "${ECHO_T}$LD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010084else
mlcreech94984912008-03-04 19:03:08 +000010085 { echo "$as_me:$LINENO: result: no" >&5
10086echo "${ECHO_T}no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010087fi
10088test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10089echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10090 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000010091{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10092echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010093if test "${lt_cv_prog_gnu_ld+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
vapier7f19c022007-02-17 14:46:31 +000010096 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +000010097case `$LD -v 2>&1 </dev/null` in
10098*GNU* | *'with BFD'*)
10099 lt_cv_prog_gnu_ld=yes
10100 ;;
10101*)
10102 lt_cv_prog_gnu_ld=no
10103 ;;
10104esac
10105fi
mlcreech94984912008-03-04 19:03:08 +000010106{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10107echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010108with_gnu_ld=$lt_cv_prog_gnu_ld
10109
10110
10111
10112 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10113 # archiving commands below assume that GNU ld is being used.
10114 if test "$with_gnu_ld" = yes; then
10115 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10116 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'
10117
10118 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10119 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10120
10121 # If archive_cmds runs LD, not CC, wlarc should be empty
10122 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10123 # investigate it a little bit more. (MM)
10124 wlarc='${wl}'
10125
10126 # ancient GNU ld didn't support --whole-archive et. al.
10127 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10128 grep 'no-whole-archive' > /dev/null; then
10129 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10130 else
10131 whole_archive_flag_spec_CXX=
10132 fi
10133 else
10134 with_gnu_ld=no
10135 wlarc=
10136
10137 # A generic and very simple default shared library creation
10138 # command for GNU C++ for the case where it uses the native
10139 # linker, instead of GNU ld. If possible, this setting should
10140 # overridden to take advantage of the native linker features on
10141 # the platform it is being used on.
10142 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10143 fi
10144
10145 # Commands to make compiler produce verbose output that lists
10146 # what "hidden" libraries, object files and flags are used when
10147 # linking a shared library.
10148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10149
10150else
10151 GXX=no
10152 with_gnu_ld=no
10153 wlarc=
10154fi
10155
10156# PORTME: fill in a description of your system's C++ link characteristics
mlcreech94984912008-03-04 19:03:08 +000010157{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10158echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010159ld_shlibs_CXX=yes
10160case $host_os in
10161 aix3*)
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10164 ;;
10165 aix4* | aix5*)
10166 if test "$host_cpu" = ia64; then
10167 # On IA64, the linker does run time linking by default, so we don't
10168 # have to do anything special.
10169 aix_use_runtimelinking=no
10170 exp_sym_flag='-Bexport'
10171 no_entry_flag=""
10172 else
10173 aix_use_runtimelinking=no
10174
10175 # Test if we are trying to use run time linking or normal
10176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10177 # need to do runtime linking.
10178 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10179 for ld_flag in $LDFLAGS; do
10180 case $ld_flag in
10181 *-brtl*)
10182 aix_use_runtimelinking=yes
10183 break
10184 ;;
10185 esac
10186 done
vapier7f19c022007-02-17 14:46:31 +000010187 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010188 esac
10189
10190 exp_sym_flag='-bexport'
10191 no_entry_flag='-bnoentry'
10192 fi
10193
10194 # When large executables or shared objects are built, AIX ld can
10195 # have problems creating the table of contents. If linking a library
10196 # or program results in "error TOC overflow" add -mminimal-toc to
10197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10199
10200 archive_cmds_CXX=''
10201 hardcode_direct_CXX=yes
10202 hardcode_libdir_separator_CXX=':'
10203 link_all_deplibs_CXX=yes
10204
10205 if test "$GXX" = yes; then
vapier7f19c022007-02-17 14:46:31 +000010206 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010207 # We only want to do this on AIX 4.2 and lower, the check
10208 # below for broken collect2 doesn't work under 4.3+
10209 collect2name=`${CC} -print-prog-name=collect2`
10210 if test -f "$collect2name" && \
10211 strings "$collect2name" | grep resolve_lib_name >/dev/null
10212 then
10213 # We have reworked collect2
10214 hardcode_direct_CXX=yes
10215 else
10216 # We have old collect2
10217 hardcode_direct_CXX=unsupported
10218 # It fails to find uninstalled libraries when the uninstalled
10219 # path is not listed in the libpath. Setting hardcode_minus_L
10220 # to unsupported forces relinking
10221 hardcode_minus_L_CXX=yes
10222 hardcode_libdir_flag_spec_CXX='-L$libdir'
10223 hardcode_libdir_separator_CXX=
10224 fi
vapier7f19c022007-02-17 14:46:31 +000010225 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010226 esac
10227 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000010228 if test "$aix_use_runtimelinking" = yes; then
10229 shared_flag="$shared_flag "'${wl}-G'
10230 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010231 else
10232 # not using gcc
10233 if test "$host_cpu" = ia64; then
10234 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10235 # chokes on -Wl,-G. The following line is correct:
10236 shared_flag='-G'
10237 else
10238 if test "$aix_use_runtimelinking" = yes; then
10239 shared_flag='${wl}-G'
10240 else
10241 shared_flag='${wl}-bM:SRE'
10242 fi
10243 fi
10244 fi
10245
10246 # It seems that -bexpall does not export symbols beginning with
10247 # underscore (_), so it is better to generate a list of symbols to export.
10248 always_export_symbols_CXX=yes
10249 if test "$aix_use_runtimelinking" = yes; then
10250 # Warning - without using the other runtime loading flags (-brtl),
10251 # -berok will link without error, but may produce a broken library.
10252 allow_undefined_flag_CXX='-berok'
10253 # Determine the default libpath from the value encoded in an empty executable.
10254 cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h. */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h. */
10260
10261int
10262main ()
10263{
10264
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010270if { (ac_try="$ac_link"
10271case "(($ac_try" in
10272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273 *) ac_try_echo=$ac_try;;
10274esac
10275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010282 (exit $ac_status); } && {
10283 test -z "$ac_cxx_werror_flag" ||
10284 test ! -s conftest.err
10285 } && test -s conftest$ac_exeext &&
10286 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010287
10288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10289}'`
10290# Check for a 64-bit object if we didn't find anything.
10291if 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; }
10292}'`; fi
10293else
10294 echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
mlcreech94984912008-03-04 19:03:08 +000010297
a.rottmann9bc8b932004-02-29 15:18:31 +000010298fi
mlcreech94984912008-03-04 19:03:08 +000010299
10300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010301 conftest$ac_exeext conftest.$ac_ext
10302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10303
10304 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10305
vapier7f19c022007-02-17 14:46:31 +000010306 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 +000010307 else
10308 if test "$host_cpu" = ia64; then
10309 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10310 allow_undefined_flag_CXX="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000010311 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 +000010312 else
10313 # Determine the default libpath from the value encoded in an empty executable.
10314 cat >conftest.$ac_ext <<_ACEOF
10315/* confdefs.h. */
10316_ACEOF
10317cat confdefs.h >>conftest.$ac_ext
10318cat >>conftest.$ac_ext <<_ACEOF
10319/* end confdefs.h. */
10320
10321int
10322main ()
10323{
10324
10325 ;
10326 return 0;
10327}
10328_ACEOF
10329rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000010330if { (ac_try="$ac_link"
10331case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334esac
10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000010337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000010342 (exit $ac_status); } && {
10343 test -z "$ac_cxx_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext &&
10346 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000010347
10348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10349}'`
10350# Check for a 64-bit object if we didn't find anything.
10351if 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; }
10352}'`; fi
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
mlcreech94984912008-03-04 19:03:08 +000010357
a.rottmann9bc8b932004-02-29 15:18:31 +000010358fi
mlcreech94984912008-03-04 19:03:08 +000010359
10360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000010361 conftest$ac_exeext conftest.$ac_ext
10362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10363
10364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10365 # Warning - without using the other run time loading flags,
10366 # -berok will link without error, but may produce a broken library.
10367 no_undefined_flag_CXX=' ${wl}-bernotok'
10368 allow_undefined_flag_CXX=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000010369 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000010370 whole_archive_flag_spec_CXX='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000010371 archive_cmds_need_lc_CXX=yes
vapier7f19c022007-02-17 14:46:31 +000010372 # This is similar to how AIX traditionally builds its shared libraries.
10373 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 +000010374 fi
10375 fi
10376 ;;
vapier7f19c022007-02-17 14:46:31 +000010377
10378 beos*)
10379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10380 allow_undefined_flag_CXX=unsupported
10381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10382 # support --undefined. This deserves some investigation. FIXME
10383 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384 else
10385 ld_shlibs_CXX=no
10386 fi
10387 ;;
10388
a.rottmann9bc8b932004-02-29 15:18:31 +000010389 chorus*)
10390 case $cc_basename in
10391 *)
10392 # FIXME: insert proper C++ library support
10393 ld_shlibs_CXX=no
10394 ;;
10395 esac
10396 ;;
10397
10398 cygwin* | mingw* | pw32*)
10399 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10400 # as there is no search path for DLLs.
10401 hardcode_libdir_flag_spec_CXX='-L$libdir'
10402 allow_undefined_flag_CXX=unsupported
10403 always_export_symbols_CXX=no
10404 enable_shared_with_static_runtimes_CXX=yes
10405
10406 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010407 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 +000010408 # If the export-symbols file already is a .def file (1st line
10409 # is EXPORTS), use it as is; otherwise, prepend...
10410 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10411 cp $export_symbols $output_objdir/$soname.def;
10412 else
10413 echo EXPORTS > $output_objdir/$soname.def;
10414 cat $export_symbols >> $output_objdir/$soname.def;
10415 fi~
vapier7f19c022007-02-17 14:46:31 +000010416 $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 +000010417 else
10418 ld_shlibs_CXX=no
10419 fi
10420 ;;
vapier7f19c022007-02-17 14:46:31 +000010421 darwin* | rhapsody*)
10422 case $host_os in
10423 rhapsody* | darwin1.[012])
10424 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10425 ;;
10426 *) # Darwin 1.3 on
10427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10428 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10429 else
10430 case ${MACOSX_DEPLOYMENT_TARGET} in
10431 10.[012])
10432 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10433 ;;
10434 10.*)
10435 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10436 ;;
10437 esac
10438 fi
10439 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010440 esac
vapier7f19c022007-02-17 14:46:31 +000010441 archive_cmds_need_lc_CXX=no
10442 hardcode_direct_CXX=no
10443 hardcode_automatic_CXX=yes
10444 hardcode_shlibpath_var_CXX=unsupported
10445 whole_archive_flag_spec_CXX=''
10446 link_all_deplibs_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010447
vapier7f19c022007-02-17 14:46:31 +000010448 if test "$GXX" = yes ; then
10449 lt_int_apple_cc_single_mod=no
10450 output_verbose_link_cmd='echo'
10451 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10452 lt_int_apple_cc_single_mod=yes
10453 fi
10454 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10455 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10456 else
10457 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'
10458 fi
10459 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10461 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10462 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}'
10463 else
10464 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}'
10465 fi
10466 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}'
10467 else
10468 case $cc_basename in
10469 xlc*)
10470 output_verbose_link_cmd='echo'
10471 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'
10472 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10473 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10474 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}'
10475 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}'
10476 ;;
10477 *)
10478 ld_shlibs_CXX=no
10479 ;;
10480 esac
10481 fi
10482 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010483
10484 dgux*)
10485 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010486 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010487 # FIXME: insert proper C++ library support
10488 ld_shlibs_CXX=no
10489 ;;
vapier7f19c022007-02-17 14:46:31 +000010490 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010491 # Green Hills C++ Compiler
10492 # FIXME: insert proper C++ library support
10493 ld_shlibs_CXX=no
10494 ;;
10495 *)
10496 # FIXME: insert proper C++ library support
10497 ld_shlibs_CXX=no
10498 ;;
10499 esac
10500 ;;
vapier7f19c022007-02-17 14:46:31 +000010501 freebsd[12]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010502 # C++ shared libraries reported to be fairly broken before switch to ELF
10503 ld_shlibs_CXX=no
10504 ;;
10505 freebsd-elf*)
10506 archive_cmds_need_lc_CXX=no
10507 ;;
vapier7f19c022007-02-17 14:46:31 +000010508 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010509 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10510 # conventions
10511 ld_shlibs_CXX=yes
10512 ;;
10513 gnu*)
10514 ;;
10515 hpux9*)
10516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10517 hardcode_libdir_separator_CXX=:
10518 export_dynamic_flag_spec_CXX='${wl}-E'
10519 hardcode_direct_CXX=yes
10520 hardcode_minus_L_CXX=yes # Not in the search PATH,
10521 # but as the default
10522 # location of the library.
10523
10524 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010525 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
vapier7f19c022007-02-17 14:46:31 +000010529 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010530 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'
10531 # Commands to make compiler produce verbose output that lists
10532 # what "hidden" libraries, object files and flags are used when
10533 # linking a shared library.
10534 #
10535 # There doesn't appear to be a way to prevent this compiler from
10536 # explicitly linking system object files so we need to strip them
10537 # from the output so that they don't get included in the library
10538 # dependencies.
vapier7f19c022007-02-17 14:46:31 +000010539 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 +000010540 ;;
10541 *)
10542 if test "$GXX" = yes; then
10543 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'
10544 else
10545 # FIXME: insert proper C++ library support
10546 ld_shlibs_CXX=no
10547 fi
10548 ;;
10549 esac
10550 ;;
10551 hpux10*|hpux11*)
10552 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010553 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10554 hardcode_libdir_separator_CXX=:
10555
10556 case $host_cpu in
10557 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010558 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
a.rottmann9bc8b932004-02-29 15:18:31 +000010559 ;;
10560 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000010561 export_dynamic_flag_spec_CXX='${wl}-E'
10562 ;;
10563 esac
10564 fi
vapier7f19c022007-02-17 14:46:31 +000010565 case $host_cpu in
10566 hppa*64*|ia64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010567 hardcode_direct_CXX=no
10568 hardcode_shlibpath_var_CXX=no
10569 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010570 *)
10571 hardcode_direct_CXX=yes
10572 hardcode_minus_L_CXX=yes # Not in the search PATH,
10573 # but as the default
10574 # location of the library.
10575 ;;
10576 esac
10577
10578 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010579 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010580 # FIXME: insert proper C++ library support
10581 ld_shlibs_CXX=no
10582 ;;
vapier7f19c022007-02-17 14:46:31 +000010583 aCC*)
10584 case $host_cpu in
10585 hppa*64*)
10586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10587 ;;
10588 ia64*)
10589 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 +000010590 ;;
10591 *)
10592 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593 ;;
10594 esac
10595 # Commands to make compiler produce verbose output that lists
10596 # what "hidden" libraries, object files and flags are used when
10597 # linking a shared library.
10598 #
10599 # There doesn't appear to be a way to prevent this compiler from
10600 # explicitly linking system object files so we need to strip them
10601 # from the output so that they don't get included in the library
10602 # dependencies.
10603 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'
10604 ;;
10605 *)
10606 if test "$GXX" = yes; then
10607 if test $with_gnu_ld = no; then
vapier7f19c022007-02-17 14:46:31 +000010608 case $host_cpu in
10609 hppa*64*)
10610 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10611 ;;
10612 ia64*)
10613 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 +000010614 ;;
10615 *)
10616 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'
10617 ;;
10618 esac
10619 fi
10620 else
10621 # FIXME: insert proper C++ library support
10622 ld_shlibs_CXX=no
10623 fi
10624 ;;
10625 esac
10626 ;;
vapier7f19c022007-02-17 14:46:31 +000010627 interix3*)
10628 hardcode_direct_CXX=no
10629 hardcode_shlibpath_var_CXX=no
10630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10631 export_dynamic_flag_spec_CXX='${wl}-E'
10632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10633 # Instead, shared libraries are loaded at an image base (0x10000000 by
10634 # default) and relocated if they conflict, which is a slow very memory
10635 # consuming and fragmenting process. To avoid this, we pick a random,
10636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10638 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'
10639 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'
10640 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010641 irix5* | irix6*)
10642 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010643 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010644 # SGI C++
vapier7f19c022007-02-17 14:46:31 +000010645 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 +000010646
10647 # Archives containing C++ object files must be created using
10648 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10649 # necessary to make sure instantiated templates are included
10650 # in the archive.
10651 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10652 ;;
10653 *)
10654 if test "$GXX" = yes; then
10655 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000010656 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 +000010657 else
10658 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'
10659 fi
10660 fi
10661 link_all_deplibs_CXX=yes
10662 ;;
10663 esac
10664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10665 hardcode_libdir_separator_CXX=:
10666 ;;
10667 linux*)
10668 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010669 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010670 # Kuck and Associates, Inc. (KAI) C++ Compiler
10671
10672 # KCC will only create a shared library if the output file
10673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10674 # to its proper name (with version) after linking.
10675 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'
10676 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'
10677 # Commands to make compiler produce verbose output that lists
10678 # what "hidden" libraries, object files and flags are used when
10679 # linking a shared library.
10680 #
10681 # There doesn't appear to be a way to prevent this compiler from
10682 # explicitly linking system object files so we need to strip them
10683 # from the output so that they don't get included in the library
10684 # dependencies.
10685 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'
10686
10687 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10689
10690 # Archives containing C++ object files must be created using
10691 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10692 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10693 ;;
vapier7f19c022007-02-17 14:46:31 +000010694 icpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010695 # Intel C++
10696 with_gnu_ld=yes
vapier7f19c022007-02-17 14:46:31 +000010697 # version 8.0 and above of icpc choke on multiply defined symbols
10698 # if we add $predep_objects and $postdep_objects, however 7.1 and
10699 # earlier do not add the objects themselves.
10700 case `$CC -V 2>&1` in
10701 *"Version 7."*)
10702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10703 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'
10704 ;;
10705 *) # Version 8.0 or newer
10706 tmp_idyn=
10707 case $host_cpu in
10708 ia64*) tmp_idyn=' -i_dynamic';;
10709 esac
10710 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10711 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'
10712 ;;
10713 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000010714 archive_cmds_need_lc_CXX=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010715 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10717 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10718 ;;
vapier7f19c022007-02-17 14:46:31 +000010719 pgCC*)
10720 # Portland Group C++ compiler
10721 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10722 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'
10723
10724 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10725 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10726 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'
10727 ;;
10728 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010729 # Compaq C++
10730 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10731 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'
10732
10733 runpath_var=LD_RUN_PATH
10734 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10735 hardcode_libdir_separator_CXX=:
10736
10737 # Commands to make compiler produce verbose output that lists
10738 # what "hidden" libraries, object files and flags are used when
10739 # linking a shared library.
10740 #
10741 # There doesn't appear to be a way to prevent this compiler from
10742 # explicitly linking system object files so we need to strip them
10743 # from the output so that they don't get included in the library
10744 # dependencies.
10745 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'
10746 ;;
10747 esac
10748 ;;
10749 lynxos*)
10750 # FIXME: insert proper C++ library support
10751 ld_shlibs_CXX=no
10752 ;;
10753 m88k*)
10754 # FIXME: insert proper C++ library support
10755 ld_shlibs_CXX=no
10756 ;;
10757 mvs*)
10758 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010759 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010760 # FIXME: insert proper C++ library support
10761 ld_shlibs_CXX=no
10762 ;;
10763 *)
10764 # FIXME: insert proper C++ library support
10765 ld_shlibs_CXX=no
10766 ;;
10767 esac
10768 ;;
vapier7f19c022007-02-17 14:46:31 +000010769 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10771 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10772 wlarc=
10773 hardcode_libdir_flag_spec_CXX='-R$libdir'
10774 hardcode_direct_CXX=yes
10775 hardcode_shlibpath_var_CXX=no
10776 fi
10777 # Workaround some broken pre-1.5 toolchains
10778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10779 ;;
vapier7f19c022007-02-17 14:46:31 +000010780 openbsd2*)
10781 # C++ shared libraries are fairly broken
10782 ld_shlibs_CXX=no
10783 ;;
10784 openbsd*)
10785 hardcode_direct_CXX=yes
10786 hardcode_shlibpath_var_CXX=no
10787 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10789 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10790 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10791 export_dynamic_flag_spec_CXX='${wl}-E'
10792 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10793 fi
10794 output_verbose_link_cmd='echo'
10795 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010796 osf3*)
10797 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010798 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010799 # Kuck and Associates, Inc. (KAI) C++ Compiler
10800
10801 # KCC will only create a shared library if the output file
10802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10803 # to its proper name (with version) after linking.
10804 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'
10805
10806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10807 hardcode_libdir_separator_CXX=:
10808
10809 # Archives containing C++ object files must be created using
10810 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10811 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10812
10813 ;;
vapier7f19c022007-02-17 14:46:31 +000010814 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010815 # Rational C++ 2.4.1
10816 # FIXME: insert proper C++ library support
10817 ld_shlibs_CXX=no
10818 ;;
vapier7f19c022007-02-17 14:46:31 +000010819 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010821 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 +000010822
10823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10824 hardcode_libdir_separator_CXX=:
10825
10826 # Commands to make compiler produce verbose output that lists
10827 # what "hidden" libraries, object files and flags are used when
10828 # linking a shared library.
10829 #
10830 # There doesn't appear to be a way to prevent this compiler from
10831 # explicitly linking system object files so we need to strip them
10832 # from the output so that they don't get included in the library
10833 # dependencies.
10834 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'
10835 ;;
10836 *)
10837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10838 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010839 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 +000010840
10841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10842 hardcode_libdir_separator_CXX=:
10843
10844 # Commands to make compiler produce verbose output that lists
10845 # what "hidden" libraries, object files and flags are used when
10846 # linking a shared library.
10847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10848
10849 else
10850 # FIXME: insert proper C++ library support
10851 ld_shlibs_CXX=no
10852 fi
10853 ;;
10854 esac
10855 ;;
10856 osf4* | osf5*)
10857 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010858 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010859 # Kuck and Associates, Inc. (KAI) C++ Compiler
10860
10861 # KCC will only create a shared library if the output file
10862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10863 # to its proper name (with version) after linking.
10864 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'
10865
10866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10867 hardcode_libdir_separator_CXX=:
10868
10869 # Archives containing C++ object files must be created using
10870 # the KAI C++ compiler.
10871 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10872 ;;
vapier7f19c022007-02-17 14:46:31 +000010873 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010874 # Rational C++ 2.4.1
10875 # FIXME: insert proper C++ library support
10876 ld_shlibs_CXX=no
10877 ;;
vapier7f19c022007-02-17 14:46:31 +000010878 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010879 allow_undefined_flag_CXX=' -expect_unresolved \*'
vapier7f19c022007-02-17 14:46:31 +000010880 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 +000010881 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10882 echo "-hidden">> $lib.exp~
vapier7f19c022007-02-17 14:46:31 +000010883 $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 +000010884 $rm $lib.exp'
10885
10886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10887 hardcode_libdir_separator_CXX=:
10888
10889 # Commands to make compiler produce verbose output that lists
10890 # what "hidden" libraries, object files and flags are used when
10891 # linking a shared library.
10892 #
10893 # There doesn't appear to be a way to prevent this compiler from
10894 # explicitly linking system object files so we need to strip them
10895 # from the output so that they don't get included in the library
10896 # dependencies.
10897 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'
10898 ;;
10899 *)
10900 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10901 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
vapier7f19c022007-02-17 14:46:31 +000010902 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 +000010903
10904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10905 hardcode_libdir_separator_CXX=:
10906
10907 # Commands to make compiler produce verbose output that lists
10908 # what "hidden" libraries, object files and flags are used when
10909 # linking a shared library.
10910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10911
10912 else
10913 # FIXME: insert proper C++ library support
10914 ld_shlibs_CXX=no
10915 fi
10916 ;;
10917 esac
10918 ;;
10919 psos*)
10920 # FIXME: insert proper C++ library support
10921 ld_shlibs_CXX=no
10922 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010923 sunos4*)
10924 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010925 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010926 # Sun C++ 4.x
10927 # FIXME: insert proper C++ library support
10928 ld_shlibs_CXX=no
10929 ;;
vapier7f19c022007-02-17 14:46:31 +000010930 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010931 # Lucid
10932 # FIXME: insert proper C++ library support
10933 ld_shlibs_CXX=no
10934 ;;
10935 *)
10936 # FIXME: insert proper C++ library support
10937 ld_shlibs_CXX=no
10938 ;;
10939 esac
10940 ;;
10941 solaris*)
10942 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000010943 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010944 # Sun C++ 4.2, 5.x and Centerline C++
vapier7f19c022007-02-17 14:46:31 +000010945 archive_cmds_need_lc_CXX=yes
a.rottmann9bc8b932004-02-29 15:18:31 +000010946 no_undefined_flag_CXX=' -zdefs'
vapier7f19c022007-02-17 14:46:31 +000010947 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 +000010948 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 +000010949 $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 +000010950
10951 hardcode_libdir_flag_spec_CXX='-R$libdir'
10952 hardcode_shlibpath_var_CXX=no
10953 case $host_os in
vapier7f19c022007-02-17 14:46:31 +000010954 solaris2.[0-5] | solaris2.[0-5].*) ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000010955 *)
10956 # The C++ compiler is used as linker so we must use $wl
10957 # flag to pass the commands to the underlying system
vapier7f19c022007-02-17 14:46:31 +000010958 # linker. We must also pass each convience library through
10959 # to the system linker between allextract/defaultextract.
10960 # The C++ compiler will combine linker options so we
10961 # cannot just pass the convience library names through
10962 # without $wl.
a.rottmann9bc8b932004-02-29 15:18:31 +000010963 # Supported since Solaris 2.6 (maybe 2.5.1?)
vapier7f19c022007-02-17 14:46:31 +000010964 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 +000010965 ;;
10966 esac
10967 link_all_deplibs_CXX=yes
10968
vapier7f19c022007-02-17 14:46:31 +000010969 output_verbose_link_cmd='echo'
a.rottmann9bc8b932004-02-29 15:18:31 +000010970
10971 # Archives containing C++ object files must be created using
10972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10973 # necessary to make sure instantiated templates are included
10974 # in the archive.
10975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10976 ;;
vapier7f19c022007-02-17 14:46:31 +000010977 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000010978 # Green Hills C++ Compiler
10979 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10980
10981 # The C++ compiler must be used to create the archive.
10982 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10983 ;;
10984 *)
10985 # GNU C++ compiler with Solaris linker
10986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10987 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10988 if $CC --version | grep -v '^2\.7' > /dev/null; then
10989 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10992
10993 # Commands to make compiler produce verbose output that lists
10994 # what "hidden" libraries, object files and flags are used when
10995 # linking a shared library.
10996 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10997 else
10998 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10999 # platform.
11000 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11001 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11002 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11003
11004 # Commands to make compiler produce verbose output that lists
11005 # what "hidden" libraries, object files and flags are used when
11006 # linking a shared library.
11007 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11008 fi
11009
11010 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11011 fi
11012 ;;
11013 esac
11014 ;;
vapier7f19c022007-02-17 14:46:31 +000011015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11016 no_undefined_flag_CXX='${wl}-z,text'
a.rottmann9bc8b932004-02-29 15:18:31 +000011017 archive_cmds_need_lc_CXX=no
vapier7f19c022007-02-17 14:46:31 +000011018 hardcode_shlibpath_var_CXX=no
11019 runpath_var='LD_RUN_PATH'
11020
11021 case $cc_basename in
11022 CC*)
11023 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 ;;
11026 *)
11027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 ;;
11030 esac
11031 ;;
11032 sysv5* | sco3.2v5* | sco5v6*)
11033 # Note: We can NOT use -z defs as we might desire, because we do not
11034 # link with -lc, and that would cause any symbols used from libc to
11035 # always be unresolved, which means just about no library would
11036 # ever link correctly. If we're not using GNU ld we use -z text
11037 # though, which does catch some bad symbols but isn't as heavy-handed
11038 # as -z defs.
11039 # For security reasons, it is highly recommended that you always
11040 # use absolute paths for naming shared libraries, and exclude the
11041 # DT_RUNPATH tag from executables and libraries. But doing so
11042 # requires that you compile everything twice, which is a pain.
11043 # So that behaviour is only enabled if SCOABSPATH is set to a
11044 # non-empty value in the environment. Most likely only useful for
11045 # creating official distributions of packages.
11046 # This is a hack until libtool officially supports absolute path
11047 # names for shared libraries.
11048 no_undefined_flag_CXX='${wl}-z,text'
11049 allow_undefined_flag_CXX='${wl}-z,nodefs'
11050 archive_cmds_need_lc_CXX=no
11051 hardcode_shlibpath_var_CXX=no
11052 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11053 hardcode_libdir_separator_CXX=':'
11054 link_all_deplibs_CXX=yes
11055 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11056 runpath_var='LD_RUN_PATH'
11057
11058 case $cc_basename in
11059 CC*)
11060 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 ;;
11063 *)
11064 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11066 ;;
11067 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011068 ;;
11069 tandem*)
11070 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011071 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011072 # NonStop-UX NCC 3.20
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 ;;
11080 esac
11081 ;;
11082 vxworks*)
11083 # FIXME: insert proper C++ library support
11084 ld_shlibs_CXX=no
11085 ;;
11086 *)
11087 # FIXME: insert proper C++ library support
11088 ld_shlibs_CXX=no
11089 ;;
11090esac
mlcreech94984912008-03-04 19:03:08 +000011091{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11092echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011093test "$ld_shlibs_CXX" = no && can_build_shared=no
11094
11095GCC_CXX="$GXX"
11096LD_CXX="$LD"
11097
11098
11099cat > conftest.$ac_ext <<EOF
11100class Foo
11101{
11102public:
11103 Foo (void) { a = 0; }
11104private:
11105 int a;
11106};
11107EOF
11108
11109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11110 (eval $ac_compile) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; then
11114 # Parse the compiler output and extract the necessary
11115 # objects, libraries and library flags.
11116
11117 # Sentinel used to keep track of whether or not we are before
11118 # the conftest object file.
11119 pre_test_object_deps_done=no
11120
11121 # The `*' in the case matches for architectures that use `case' in
11122 # $output_verbose_cmd can trigger glob expansion during the loop
11123 # eval without this substitution.
vapier7f19c022007-02-17 14:46:31 +000011124 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
a.rottmann9bc8b932004-02-29 15:18:31 +000011125
11126 for p in `eval $output_verbose_link_cmd`; do
11127 case $p in
11128
11129 -L* | -R* | -l*)
11130 # Some compilers place space between "-{L,R}" and the path.
11131 # Remove the space.
11132 if test $p = "-L" \
11133 || test $p = "-R"; then
11134 prev=$p
11135 continue
11136 else
11137 prev=
11138 fi
11139
11140 if test "$pre_test_object_deps_done" = no; then
11141 case $p in
11142 -L* | -R*)
11143 # Internal compiler library paths should come after those
11144 # provided the user. The postdeps already come after the
11145 # user supplied libs so there is no need to process them.
11146 if test -z "$compiler_lib_search_path_CXX"; then
11147 compiler_lib_search_path_CXX="${prev}${p}"
11148 else
11149 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11150 fi
11151 ;;
11152 # The "-l" case would never come before the object being
11153 # linked, so don't bother handling this case.
11154 esac
11155 else
11156 if test -z "$postdeps_CXX"; then
11157 postdeps_CXX="${prev}${p}"
11158 else
11159 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11160 fi
11161 fi
11162 ;;
11163
11164 *.$objext)
11165 # This assumes that the test object file only shows up
11166 # once in the compiler output.
11167 if test "$p" = "conftest.$objext"; then
11168 pre_test_object_deps_done=yes
11169 continue
11170 fi
11171
11172 if test "$pre_test_object_deps_done" = no; then
11173 if test -z "$predep_objects_CXX"; then
11174 predep_objects_CXX="$p"
11175 else
11176 predep_objects_CXX="$predep_objects_CXX $p"
11177 fi
11178 else
11179 if test -z "$postdep_objects_CXX"; then
11180 postdep_objects_CXX="$p"
11181 else
11182 postdep_objects_CXX="$postdep_objects_CXX $p"
11183 fi
11184 fi
11185 ;;
11186
11187 *) ;; # Ignore the rest.
11188
11189 esac
11190 done
11191
11192 # Clean up.
11193 rm -f a.out a.exe
11194else
11195 echo "libtool.m4: error: problem compiling CXX test program"
11196fi
11197
11198$rm -f confest.$objext
11199
vapier7f19c022007-02-17 14:46:31 +000011200# PORTME: override above test on systems where it is broken
11201case $host_os in
11202interix3*)
11203 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11204 # hack all around it, let's just trust "g++" to DTRT.
11205 predep_objects_CXX=
11206 postdep_objects_CXX=
11207 postdeps_CXX=
11208 ;;
11209
11210solaris*)
11211 case $cc_basename in
11212 CC*)
11213 # Adding this requires a known-good setup of shared libraries for
11214 # Sun compiler versions before 5.6, else PIC objects from an old
11215 # archive will be linked into the output, leading to subtle bugs.
11216 postdeps_CXX='-lCstd -lCrun'
11217 ;;
11218 esac
11219 ;;
11220esac
11221
11222
a.rottmann9bc8b932004-02-29 15:18:31 +000011223case " $postdeps_CXX " in
11224*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11225esac
11226
11227lt_prog_compiler_wl_CXX=
11228lt_prog_compiler_pic_CXX=
11229lt_prog_compiler_static_CXX=
11230
mlcreech94984912008-03-04 19:03:08 +000011231{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11232echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011233
11234 # C++ specific cases for pic, static, wl, etc.
11235 if test "$GXX" = yes; then
11236 lt_prog_compiler_wl_CXX='-Wl,'
11237 lt_prog_compiler_static_CXX='-static'
11238
11239 case $host_os in
11240 aix*)
11241 # All AIX code is PIC.
11242 if test "$host_cpu" = ia64; then
11243 # AIX 5 now supports IA64 processor
11244 lt_prog_compiler_static_CXX='-Bstatic'
11245 fi
11246 ;;
11247 amigaos*)
11248 # FIXME: we need at least 68020 code to build shared libraries, but
11249 # adding the `-m68020' flag to GCC prevents building anything better,
11250 # like `-m68040'.
11251 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11252 ;;
11253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11254 # PIC is the default for these OSes.
11255 ;;
11256 mingw* | os2* | pw32*)
11257 # This hack is so that the source file can tell whether it is being
11258 # built for inclusion in a dll (and should export symbols for example).
11259 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11260 ;;
11261 darwin* | rhapsody*)
11262 # PIC is the default on this platform
11263 # Common symbols not allowed in MH_DYLIB files
11264 lt_prog_compiler_pic_CXX='-fno-common'
11265 ;;
11266 *djgpp*)
11267 # DJGPP does not support shared libraries at all
11268 lt_prog_compiler_pic_CXX=
11269 ;;
vapier7f19c022007-02-17 14:46:31 +000011270 interix3*)
11271 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11272 # Instead, we relocate shared libraries at runtime.
11273 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011274 sysv4*MP*)
11275 if test -d /usr/nec; then
11276 lt_prog_compiler_pic_CXX=-Kconform_pic
11277 fi
11278 ;;
11279 hpux*)
11280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11281 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000011282 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011283 hppa*64*|ia64*)
11284 ;;
11285 *)
11286 lt_prog_compiler_pic_CXX='-fPIC'
11287 ;;
11288 esac
11289 ;;
11290 *)
11291 lt_prog_compiler_pic_CXX='-fPIC'
11292 ;;
11293 esac
11294 else
11295 case $host_os in
11296 aix4* | aix5*)
11297 # All AIX code is PIC.
11298 if test "$host_cpu" = ia64; then
11299 # AIX 5 now supports IA64 processor
11300 lt_prog_compiler_static_CXX='-Bstatic'
11301 else
11302 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11303 fi
11304 ;;
11305 chorus*)
11306 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011307 cxch68*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011308 # Green Hills C++ Compiler
11309 # _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"
11310 ;;
11311 esac
11312 ;;
vapier7f19c022007-02-17 14:46:31 +000011313 darwin*)
11314 # PIC is the default on this platform
11315 # Common symbols not allowed in MH_DYLIB files
11316 case $cc_basename in
11317 xlc*)
11318 lt_prog_compiler_pic_CXX='-qnocommon'
11319 lt_prog_compiler_wl_CXX='-Wl,'
11320 ;;
11321 esac
11322 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011323 dgux*)
11324 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011325 ec++*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011326 lt_prog_compiler_pic_CXX='-KPIC'
11327 ;;
vapier7f19c022007-02-17 14:46:31 +000011328 ghcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011329 # Green Hills C++ Compiler
11330 lt_prog_compiler_pic_CXX='-pic'
11331 ;;
11332 *)
11333 ;;
11334 esac
11335 ;;
vapier7f19c022007-02-17 14:46:31 +000011336 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011337 # FreeBSD uses GNU C++
11338 ;;
11339 hpux9* | hpux10* | hpux11*)
11340 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011341 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011342 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011343 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
a.rottmann9bc8b932004-02-29 15:18:31 +000011344 if test "$host_cpu" != ia64; then
11345 lt_prog_compiler_pic_CXX='+Z'
11346 fi
11347 ;;
vapier7f19c022007-02-17 14:46:31 +000011348 aCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011349 lt_prog_compiler_wl_CXX='-Wl,'
vapier7f19c022007-02-17 14:46:31 +000011350 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11351 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000011352 hppa*64*|ia64*)
11353 # +Z the default
11354 ;;
11355 *)
11356 lt_prog_compiler_pic_CXX='+Z'
11357 ;;
11358 esac
11359 ;;
11360 *)
11361 ;;
11362 esac
11363 ;;
vapier7f19c022007-02-17 14:46:31 +000011364 interix*)
11365 # This is c89, which is MS Visual C++ (no shared libs)
11366 # Anyone wants to do a port?
11367 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011368 irix5* | irix6* | nonstopux*)
11369 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011370 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011371 lt_prog_compiler_wl_CXX='-Wl,'
11372 lt_prog_compiler_static_CXX='-non_shared'
11373 # CC pic flag -KPIC is the default.
11374 ;;
11375 *)
11376 ;;
11377 esac
11378 ;;
11379 linux*)
11380 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011381 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011382 # KAI C++ Compiler
11383 lt_prog_compiler_wl_CXX='--backend -Wl,'
11384 lt_prog_compiler_pic_CXX='-fPIC'
11385 ;;
vapier7f19c022007-02-17 14:46:31 +000011386 icpc* | ecpc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011387 # Intel C++
11388 lt_prog_compiler_wl_CXX='-Wl,'
11389 lt_prog_compiler_pic_CXX='-KPIC'
11390 lt_prog_compiler_static_CXX='-static'
11391 ;;
vapier7f19c022007-02-17 14:46:31 +000011392 pgCC*)
11393 # Portland Group C++ compiler.
11394 lt_prog_compiler_wl_CXX='-Wl,'
11395 lt_prog_compiler_pic_CXX='-fpic'
11396 lt_prog_compiler_static_CXX='-Bstatic'
11397 ;;
11398 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011399 # Compaq C++
11400 # Make sure the PIC flag is empty. It appears that all Alpha
11401 # Linux and Compaq Tru64 Unix objects are PIC.
11402 lt_prog_compiler_pic_CXX=
11403 lt_prog_compiler_static_CXX='-non_shared'
11404 ;;
11405 *)
11406 ;;
11407 esac
11408 ;;
11409 lynxos*)
11410 ;;
11411 m88k*)
11412 ;;
11413 mvs*)
11414 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011415 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011416 lt_prog_compiler_pic_CXX='-W c,exportall'
11417 ;;
11418 *)
11419 ;;
11420 esac
11421 ;;
vapier7f19c022007-02-17 14:46:31 +000011422 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011423 ;;
11424 osf3* | osf4* | osf5*)
11425 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011426 KCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011427 lt_prog_compiler_wl_CXX='--backend -Wl,'
11428 ;;
vapier7f19c022007-02-17 14:46:31 +000011429 RCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011430 # Rational C++ 2.4.1
11431 lt_prog_compiler_pic_CXX='-pic'
11432 ;;
vapier7f19c022007-02-17 14:46:31 +000011433 cxx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011434 # Digital/Compaq C++
11435 lt_prog_compiler_wl_CXX='-Wl,'
11436 # Make sure the PIC flag is empty. It appears that all Alpha
11437 # Linux and Compaq Tru64 Unix objects are PIC.
11438 lt_prog_compiler_pic_CXX=
11439 lt_prog_compiler_static_CXX='-non_shared'
11440 ;;
11441 *)
11442 ;;
11443 esac
11444 ;;
11445 psos*)
11446 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000011447 solaris*)
11448 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011449 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011450 # Sun C++ 4.2, 5.x and Centerline C++
11451 lt_prog_compiler_pic_CXX='-KPIC'
11452 lt_prog_compiler_static_CXX='-Bstatic'
11453 lt_prog_compiler_wl_CXX='-Qoption ld '
11454 ;;
vapier7f19c022007-02-17 14:46:31 +000011455 gcx*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011456 # Green Hills C++ Compiler
11457 lt_prog_compiler_pic_CXX='-PIC'
11458 ;;
11459 *)
11460 ;;
11461 esac
11462 ;;
11463 sunos4*)
11464 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011465 CC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011466 # Sun C++ 4.x
11467 lt_prog_compiler_pic_CXX='-pic'
11468 lt_prog_compiler_static_CXX='-Bstatic'
11469 ;;
vapier7f19c022007-02-17 14:46:31 +000011470 lcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011471 # Lucid
11472 lt_prog_compiler_pic_CXX='-pic'
11473 ;;
11474 *)
11475 ;;
11476 esac
11477 ;;
11478 tandem*)
11479 case $cc_basename in
vapier7f19c022007-02-17 14:46:31 +000011480 NCC*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011481 # NonStop-UX NCC 3.20
11482 lt_prog_compiler_pic_CXX='-KPIC'
11483 ;;
11484 *)
11485 ;;
11486 esac
11487 ;;
vapier7f19c022007-02-17 14:46:31 +000011488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11489 case $cc_basename in
11490 CC*)
11491 lt_prog_compiler_wl_CXX='-Wl,'
11492 lt_prog_compiler_pic_CXX='-KPIC'
11493 lt_prog_compiler_static_CXX='-Bstatic'
11494 ;;
11495 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000011496 ;;
11497 vxworks*)
11498 ;;
11499 *)
11500 lt_prog_compiler_can_build_shared_CXX=no
11501 ;;
11502 esac
11503 fi
11504
mlcreech94984912008-03-04 19:03:08 +000011505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11506echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011507
11508#
11509# Check to make sure the PIC flag actually works.
11510#
11511if test -n "$lt_prog_compiler_pic_CXX"; then
11512
mlcreech94984912008-03-04 19:03:08 +000011513{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11514echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011515if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517else
11518 lt_prog_compiler_pic_works_CXX=no
11519 ac_outfile=conftest.$ac_objext
11520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11521 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11522 # Insert the option either (1) after the last *FLAGS variable, or
11523 # (2) before a word containing "conftest.", or (3) at the end.
11524 # Note that $ac_compile itself does not contain backslashes and begins
11525 # with a dollar sign (not a hyphen), so the echo should work correctly.
11526 # The option is referenced via a variable to avoid confusing sed.
11527 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11530 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000011531 (eval echo "\"\$as_me:11531: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011532 (eval "$lt_compile" 2>conftest.err)
11533 ac_status=$?
11534 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000011535 echo "$as_me:11535: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011536 if (exit $ac_status) && test -s "$ac_outfile"; then
11537 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000011538 # So say no if there are warnings other than the usual output.
11539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011542 lt_prog_compiler_pic_works_CXX=yes
11543 fi
11544 fi
11545 $rm conftest*
11546
11547fi
mlcreech94984912008-03-04 19:03:08 +000011548{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11549echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011550
11551if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11552 case $lt_prog_compiler_pic_CXX in
11553 "" | " "*) ;;
11554 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11555 esac
11556else
11557 lt_prog_compiler_pic_CXX=
11558 lt_prog_compiler_can_build_shared_CXX=no
11559fi
11560
11561fi
vapier7f19c022007-02-17 14:46:31 +000011562case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000011563 # For platforms which do not support PIC, -DPIC is meaningless:
11564 *djgpp*)
11565 lt_prog_compiler_pic_CXX=
11566 ;;
11567 *)
11568 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11569 ;;
11570esac
11571
vapier7f19c022007-02-17 14:46:31 +000011572#
11573# Check to make sure the static flag actually works.
11574#
11575wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
mlcreech94984912008-03-04 19:03:08 +000011576{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11577echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011578if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580else
11581 lt_prog_compiler_static_works_CXX=no
11582 save_LDFLAGS="$LDFLAGS"
11583 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11584 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11585 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11586 # The linker can only warn and ignore the option if not recognized
11587 # So say no if there are warnings
11588 if test -s conftest.err; then
11589 # Append any errors to the config.log.
11590 cat conftest.err 1>&5
11591 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11593 if diff conftest.exp conftest.er2 >/dev/null; then
11594 lt_prog_compiler_static_works_CXX=yes
11595 fi
11596 else
11597 lt_prog_compiler_static_works_CXX=yes
11598 fi
11599 fi
11600 $rm conftest*
11601 LDFLAGS="$save_LDFLAGS"
11602
11603fi
mlcreech94984912008-03-04 19:03:08 +000011604{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11605echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
vapier7f19c022007-02-17 14:46:31 +000011606
11607if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11608 :
11609else
11610 lt_prog_compiler_static_CXX=
11611fi
11612
11613
mlcreech94984912008-03-04 19:03:08 +000011614{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11615echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011616if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11618else
11619 lt_cv_prog_compiler_c_o_CXX=no
11620 $rm -r conftest 2>/dev/null
11621 mkdir conftest
11622 cd conftest
11623 mkdir out
11624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11625
11626 lt_compiler_flag="-o out/conftest2.$ac_objext"
11627 # Insert the option either (1) after the last *FLAGS variable, or
11628 # (2) before a word containing "conftest.", or (3) at the end.
11629 # Note that $ac_compile itself does not contain backslashes and begins
11630 # with a dollar sign (not a hyphen), so the echo should work correctly.
11631 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000011632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000011633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11634 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000011635 (eval echo "\"\$as_me:11635: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000011636 (eval "$lt_compile" 2>out/conftest.err)
11637 ac_status=$?
11638 cat out/conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000011639 echo "$as_me:11639: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11641 then
11642 # The compiler can only warn and ignore the option if not recognized
11643 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000011644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000011647 lt_cv_prog_compiler_c_o_CXX=yes
11648 fi
11649 fi
vapier7f19c022007-02-17 14:46:31 +000011650 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000011651 $rm conftest*
11652 # SGI C++ compiler will create directory out/ii_files/ for
11653 # template instantiation
11654 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11655 $rm out/* && rmdir out
11656 cd ..
11657 rmdir conftest
11658 $rm conftest*
11659
11660fi
mlcreech94984912008-03-04 19:03:08 +000011661{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11662echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011663
11664
11665hard_links="nottested"
11666if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11667 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000011668 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11669echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011670 hard_links=yes
11671 $rm conftest*
11672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11673 touch conftest.a
11674 ln conftest.a conftest.b 2>&5 || hard_links=no
11675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000011676 { echo "$as_me:$LINENO: result: $hard_links" >&5
11677echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011678 if test "$hard_links" = no; then
11679 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11680echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11681 need_locks=warn
11682 fi
11683else
11684 need_locks=no
11685fi
11686
mlcreech94984912008-03-04 19:03:08 +000011687{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11688echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011689
11690 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11691 case $host_os in
11692 aix4* | aix5*)
11693 # If we're using GNU nm, then we don't want the "-C" option.
11694 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11695 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11696 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'
11697 else
11698 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'
11699 fi
11700 ;;
11701 pw32*)
11702 export_symbols_cmds_CXX="$ltdll_cmds"
11703 ;;
11704 cygwin* | mingw*)
vapier7f19c022007-02-17 14:46:31 +000011705 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 +000011706 ;;
11707 *)
11708 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11709 ;;
11710 esac
11711
mlcreech94984912008-03-04 19:03:08 +000011712{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11713echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011714test "$ld_shlibs_CXX" = no && can_build_shared=no
11715
a.rottmann9bc8b932004-02-29 15:18:31 +000011716#
11717# Do we need to explicitly link libc?
11718#
11719case "x$archive_cmds_need_lc_CXX" in
11720x|xyes)
11721 # Assume -lc should be added
11722 archive_cmds_need_lc_CXX=yes
11723
11724 if test "$enable_shared" = yes && test "$GCC" = yes; then
11725 case $archive_cmds_CXX in
11726 *'~'*)
11727 # FIXME: we may have to deal with multi-command sequences.
11728 ;;
11729 '$CC '*)
11730 # Test whether the compiler implicitly links with -lc since on some
11731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11732 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000011733 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11734echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011735 $rm conftest*
11736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11737
11738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11739 (eval $ac_compile) 2>&5
11740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } 2>conftest.err; then
11743 soname=conftest
11744 lib=conftest
11745 libobjs=conftest.$ac_objext
11746 deplibs=
11747 wl=$lt_prog_compiler_wl_CXX
vapier7f19c022007-02-17 14:46:31 +000011748 pic_flag=$lt_prog_compiler_pic_CXX
a.rottmann9bc8b932004-02-29 15:18:31 +000011749 compiler_flags=-v
11750 linker_flags=-v
11751 verstring=
11752 output_objdir=.
11753 libname=conftest
11754 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11755 allow_undefined_flag_CXX=
11756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11757 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }
11761 then
11762 archive_cmds_need_lc_CXX=no
11763 else
11764 archive_cmds_need_lc_CXX=yes
11765 fi
11766 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11767 else
11768 cat conftest.err 1>&5
11769 fi
11770 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000011771 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11772echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011773 ;;
11774 esac
11775 fi
11776 ;;
11777esac
11778
mlcreech94984912008-03-04 19:03:08 +000011779{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11780echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000011781library_names_spec=
11782libname_spec='lib$name'
11783soname_spec=
vapier7f19c022007-02-17 14:46:31 +000011784shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000011785postinstall_cmds=
11786postuninstall_cmds=
11787finish_cmds=
11788finish_eval=
11789shlibpath_var=
11790shlibpath_overrides_runpath=unknown
11791version_type=none
11792dynamic_linker="$host_os ld.so"
11793sys_lib_dlsearch_path_spec="/lib /usr/lib"
11794if test "$GCC" = yes; then
11795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11797 # if the path contains ";" then we assume it to be the separator
11798 # otherwise default to the standard path separator (i.e. ":") - it is
11799 # assumed that no part of a normal pathname contains ";" but that should
11800 # okay in the real world where ";" in dirpaths is itself problematic.
11801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11802 else
11803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11804 fi
11805else
11806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11807fi
11808need_lib_prefix=unknown
11809hardcode_into_libs=no
11810
11811# when you set need_version to no, make sure it does not cause -set_version
11812# flags to be left without arguments
11813need_version=unknown
11814
11815case $host_os in
11816aix3*)
11817 version_type=linux
11818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11819 shlibpath_var=LIBPATH
11820
11821 # AIX 3 has no versioning support, so we append a major version to the name.
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 ;;
11824
11825aix4* | aix5*)
11826 version_type=linux
11827 need_lib_prefix=no
11828 need_version=no
11829 hardcode_into_libs=yes
11830 if test "$host_cpu" = ia64; then
11831 # AIX 5 supports IA64
11832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 else
11835 # With GCC up to 2.95.x, collect2 would create an import file
11836 # for dependence libraries. The import file would start with
11837 # the line `#! .'. This would cause the generated library to
11838 # depend on `.', always an invalid library. This was fixed in
11839 # development snapshots of GCC prior to 3.0.
11840 case $host_os in
11841 aix4 | aix4.[01] | aix4.[01].*)
11842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11843 echo ' yes '
11844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11845 :
11846 else
11847 can_build_shared=no
11848 fi
11849 ;;
11850 esac
11851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11852 # soname into executable. Probably we can add versioning support to
11853 # collect2, so additional links can be useful in future.
11854 if test "$aix_use_runtimelinking" = yes; then
11855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11856 # instead of lib<name>.a to let people know that these are not
11857 # typical AIX shared libraries.
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 else
11860 # We preserve .a as extension for shared libraries through AIX4.2
11861 # and later when we are not doing run time linking.
11862 library_names_spec='${libname}${release}.a $libname.a'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 fi
11865 shlibpath_var=LIBPATH
11866 fi
11867 ;;
11868
11869amigaos*)
11870 library_names_spec='$libname.ixlibrary $libname.a'
11871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11872 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'
11873 ;;
11874
11875beos*)
11876 library_names_spec='${libname}${shared_ext}'
11877 dynamic_linker="$host_os ld.so"
11878 shlibpath_var=LIBRARY_PATH
11879 ;;
11880
vapier7f19c022007-02-17 14:46:31 +000011881bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000011882 version_type=linux
11883 need_version=no
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11890 # the default ld.so.conf also contains /usr/contrib/lib and
11891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11892 # libtool to hard-code these into programs
11893 ;;
11894
11895cygwin* | mingw* | pw32*)
11896 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000011897 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000011898 need_version=no
11899 need_lib_prefix=no
11900
11901 case $GCC,$host_os in
11902 yes,cygwin* | yes,mingw* | yes,pw32*)
11903 library_names_spec='$libname.dll.a'
11904 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11905 postinstall_cmds='base_file=`basename \${file}`~
11906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11907 dldir=$destdir/`dirname \$dlpath`~
11908 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000011909 $install_prog $dir/$dlname \$dldir/$dlname~
11910 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000011911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912 dlpath=$dir/\$dldll~
11913 $rm \$dlpath'
11914 shlibpath_overrides_runpath=yes
11915
11916 case $host_os in
11917 cygwin*)
11918 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11921 ;;
11922 mingw*)
11923 # MinGW DLLs use traditional 'lib' prefix
11924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11927 # It is most probably a Windows format PATH printed by
11928 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11929 # path with ; separators, and with drive letters. We can handle the
11930 # drive letters (cygwin fileutils understands them), so leave them,
11931 # especially as we might pass files found there to a mingw objdump,
11932 # which wouldn't understand a cygwinified path. Ahh.
11933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11934 else
11935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11936 fi
11937 ;;
11938 pw32*)
11939 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000011940 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 +000011941 ;;
11942 esac
11943 ;;
11944
vapier7f19c022007-02-17 14:46:31 +000011945 linux*)
11946 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11948 supports_anon_versioning=no
11949 case `$LD -v 2>/dev/null` in
11950 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11953 *\ 2.11.*) ;; # other 2.11 versions
11954 *) supports_anon_versioning=yes ;;
11955 esac
11956 if test $supports_anon_versioning = yes; then
11957 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11958cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11959$echo "local: *; };" >> $output_objdir/$libname.ver~
11960 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11961 else
11962 $archive_expsym_cmds="$archive_cmds"
11963 fi
11964 else
11965 ld_shlibs=no
11966 fi
11967 ;;
11968
a.rottmann9bc8b932004-02-29 15:18:31 +000011969 *)
11970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11971 ;;
11972 esac
11973 dynamic_linker='Win32 ld.exe'
11974 # FIXME: first we should search . and the directory the executable is in
11975 shlibpath_var=PATH
11976 ;;
11977
11978darwin* | rhapsody*)
11979 dynamic_linker="$host_os dyld"
11980 version_type=darwin
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11984 soname_spec='${libname}${release}${major}$shared_ext'
11985 shlibpath_overrides_runpath=yes
11986 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000011987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000011988 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11989 if test "$GCC" = yes; then
11990 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"`
11991 else
11992 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11993 fi
11994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11995 ;;
11996
11997dgux*)
11998 version_type=linux
11999 need_lib_prefix=no
12000 need_version=no
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 ;;
12005
12006freebsd1*)
12007 dynamic_linker=no
12008 ;;
12009
12010kfreebsd*-gnu)
12011 version_type=linux
12012 need_lib_prefix=no
12013 need_version=no
12014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 shlibpath_var=LD_LIBRARY_PATH
12017 shlibpath_overrides_runpath=no
12018 hardcode_into_libs=yes
12019 dynamic_linker='GNU ld.so'
12020 ;;
12021
vapier7f19c022007-02-17 14:46:31 +000012022freebsd* | dragonfly*)
12023 # DragonFly does not have aout. When/if they implement a new
12024 # versioning mechanism, adjust this.
12025 if test -x /usr/bin/objformat; then
12026 objformat=`/usr/bin/objformat`
12027 else
12028 case $host_os in
12029 freebsd[123]*) objformat=aout ;;
12030 *) objformat=elf ;;
12031 esac
12032 fi
12033 # Handle Gentoo/FreeBSD as it was Linux
12034 case $host_vendor in
12035 gentoo)
12036 version_type=linux ;;
12037 *)
12038 version_type=freebsd-$objformat ;;
12039 esac
12040
a.rottmann9bc8b932004-02-29 15:18:31 +000012041 case $version_type in
12042 freebsd-elf*)
12043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12044 need_version=no
12045 need_lib_prefix=no
12046 ;;
12047 freebsd-*)
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12049 need_version=yes
12050 ;;
vapier7f19c022007-02-17 14:46:31 +000012051 linux)
12052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12053 soname_spec='${libname}${release}${shared_ext}$major'
12054 need_lib_prefix=no
12055 need_version=no
12056 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012057 esac
12058 shlibpath_var=LD_LIBRARY_PATH
12059 case $host_os in
12060 freebsd2*)
12061 shlibpath_overrides_runpath=yes
12062 ;;
vapier7f19c022007-02-17 14:46:31 +000012063 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12066 ;;
vapier7f19c022007-02-17 14:46:31 +000012067 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12068 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000012069 shlibpath_overrides_runpath=no
12070 hardcode_into_libs=yes
12071 ;;
vapier7f19c022007-02-17 14:46:31 +000012072 freebsd*) # from 4.6 on
12073 shlibpath_overrides_runpath=yes
12074 hardcode_into_libs=yes
12075 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000012076 esac
12077 ;;
12078
12079gnu*)
12080 version_type=linux
12081 need_lib_prefix=no
12082 need_version=no
12083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 hardcode_into_libs=yes
12087 ;;
12088
12089hpux9* | hpux10* | hpux11*)
12090 # Give a soname corresponding to the major version so that dld.sl refuses to
12091 # link against other versions.
12092 version_type=sunos
12093 need_lib_prefix=no
12094 need_version=no
vapier7f19c022007-02-17 14:46:31 +000012095 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000012096 ia64*)
vapier7f19c022007-02-17 14:46:31 +000012097 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000012098 hardcode_into_libs=yes
12099 dynamic_linker="$host_os dld.so"
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 soname_spec='${libname}${release}${shared_ext}$major'
12104 if test "X$HPUX_IA64_MODE" = X32; then
12105 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12106 else
12107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12108 fi
12109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110 ;;
12111 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000012112 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012113 hardcode_into_libs=yes
12114 dynamic_linker="$host_os dld.sl"
12115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121 ;;
12122 *)
vapier7f19c022007-02-17 14:46:31 +000012123 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000012124 dynamic_linker="$host_os dld.sl"
12125 shlibpath_var=SHLIB_PATH
12126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128 soname_spec='${libname}${release}${shared_ext}$major'
12129 ;;
12130 esac
12131 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12132 postinstall_cmds='chmod 555 $lib'
12133 ;;
12134
vapier7f19c022007-02-17 14:46:31 +000012135interix3*)
12136 version_type=linux
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140 soname_spec='${libname}${release}${shared_ext}$major'
12141 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=no
12144 hardcode_into_libs=yes
12145 ;;
12146
a.rottmann9bc8b932004-02-29 15:18:31 +000012147irix5* | irix6* | nonstopux*)
12148 case $host_os in
12149 nonstopux*) version_type=nonstopux ;;
12150 *)
12151 if test "$lt_cv_prog_gnu_ld" = yes; then
12152 version_type=linux
12153 else
12154 version_type=irix
12155 fi ;;
12156 esac
12157 need_lib_prefix=no
12158 need_version=no
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12161 case $host_os in
12162 irix5* | nonstopux*)
12163 libsuff= shlibsuff=
12164 ;;
12165 *)
12166 case $LD in # libtool.m4 will add one of these switches to LD
12167 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12168 libsuff= shlibsuff= libmagic=32-bit;;
12169 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12170 libsuff=32 shlibsuff=N32 libmagic=N32;;
12171 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12172 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12173 *) libsuff= shlibsuff= libmagic=never-match;;
12174 esac
12175 ;;
12176 esac
12177 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12178 shlibpath_overrides_runpath=no
12179 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12180 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12181 hardcode_into_libs=yes
12182 ;;
12183
12184# No shared lib support for Linux oldld, aout, or coff.
12185linux*oldld* | linux*aout* | linux*coff*)
12186 dynamic_linker=no
12187 ;;
12188
12189# This must be Linux ELF.
12190linux*)
12191 version_type=linux
12192 need_lib_prefix=no
12193 need_version=no
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12197 shlibpath_var=LD_LIBRARY_PATH
12198 shlibpath_overrides_runpath=no
12199 # This implies no fast_install, which is unacceptable.
12200 # Some rework will be needed to allow for fast_install
12201 # before this can be enabled.
12202 hardcode_into_libs=yes
12203
12204 # Append ld.so.conf contents to the search path
12205 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000012206 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' ' '`
12207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000012208 fi
12209
12210 # We used to test for /lib/ld.so.1 and disable shared libraries on
12211 # powerpc, because MkLinux only supported shared libraries with the
12212 # GNU dynamic linker. Since this was broken with cross compilers,
12213 # most powerpc-linux boxes support dynamic linking these days and
12214 # people can always --disable-shared, the test was removed, and we
12215 # assume the GNU/Linux dynamic linker is in use.
12216 dynamic_linker='GNU/Linux ld.so'
12217 ;;
12218
12219knetbsd*-gnu)
12220 version_type=linux
12221 need_lib_prefix=no
12222 need_version=no
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=no
12227 hardcode_into_libs=yes
12228 dynamic_linker='GNU ld.so'
12229 ;;
12230
12231netbsd*)
12232 version_type=sunos
12233 need_lib_prefix=no
12234 need_version=no
12235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12238 dynamic_linker='NetBSD (a.out) ld.so'
12239 else
12240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12241 soname_spec='${libname}${release}${shared_ext}$major'
12242 dynamic_linker='NetBSD ld.elf_so'
12243 fi
12244 shlibpath_var=LD_LIBRARY_PATH
12245 shlibpath_overrides_runpath=yes
12246 hardcode_into_libs=yes
12247 ;;
12248
12249newsos6)
12250 version_type=linux
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes
12254 ;;
12255
12256nto-qnx*)
12257 version_type=linux
12258 need_lib_prefix=no
12259 need_version=no
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261 soname_spec='${libname}${release}${shared_ext}$major'
12262 shlibpath_var=LD_LIBRARY_PATH
12263 shlibpath_overrides_runpath=yes
12264 ;;
12265
12266openbsd*)
12267 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000012268 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000012269 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000012270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12271 case $host_os in
12272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12273 *) need_version=no ;;
12274 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000012275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12279 case $host_os in
12280 openbsd2.[89] | openbsd2.[89].*)
12281 shlibpath_overrides_runpath=no
12282 ;;
12283 *)
12284 shlibpath_overrides_runpath=yes
12285 ;;
12286 esac
12287 else
12288 shlibpath_overrides_runpath=yes
12289 fi
12290 ;;
12291
12292os2*)
12293 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000012294 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000012295 need_lib_prefix=no
12296 library_names_spec='$libname${shared_ext} $libname.a'
12297 dynamic_linker='OS/2 ld.exe'
12298 shlibpath_var=LIBPATH
12299 ;;
12300
12301osf3* | osf4* | osf5*)
12302 version_type=osf
12303 need_lib_prefix=no
12304 need_version=no
12305 soname_spec='${libname}${release}${shared_ext}$major'
12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12310 ;;
12311
a.rottmann9bc8b932004-02-29 15:18:31 +000012312solaris*)
12313 version_type=linux
12314 need_lib_prefix=no
12315 need_version=no
12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317 soname_spec='${libname}${release}${shared_ext}$major'
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes
12320 hardcode_into_libs=yes
12321 # ldd complains unless libraries are executable
12322 postinstall_cmds='chmod +x $lib'
12323 ;;
12324
12325sunos4*)
12326 version_type=sunos
12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12328 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=yes
12331 if test "$with_gnu_ld" = yes; then
12332 need_lib_prefix=no
12333 fi
12334 need_version=yes
12335 ;;
12336
vapier7f19c022007-02-17 14:46:31 +000012337sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000012338 version_type=linux
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 case $host_vendor in
12343 sni)
12344 shlibpath_overrides_runpath=no
12345 need_lib_prefix=no
12346 export_dynamic_flag_spec='${wl}-Blargedynsym'
12347 runpath_var=LD_RUN_PATH
12348 ;;
12349 siemens)
12350 need_lib_prefix=no
12351 ;;
12352 motorola)
12353 need_lib_prefix=no
12354 need_version=no
12355 shlibpath_overrides_runpath=no
12356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12357 ;;
12358 esac
12359 ;;
12360
12361sysv4*MP*)
12362 if test -d /usr/nec ;then
12363 version_type=linux
12364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12365 soname_spec='$libname${shared_ext}.$major'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 fi
12368 ;;
12369
vapier7f19c022007-02-17 14:46:31 +000012370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12371 version_type=freebsd-elf
12372 need_lib_prefix=no
12373 need_version=no
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 hardcode_into_libs=yes
12378 if test "$with_gnu_ld" = yes; then
12379 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12380 shlibpath_overrides_runpath=no
12381 else
12382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12383 shlibpath_overrides_runpath=yes
12384 case $host_os in
12385 sco3.2v5*)
12386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12387 ;;
12388 esac
12389 fi
12390 sys_lib_dlsearch_path_spec='/usr/lib'
12391 ;;
12392
a.rottmann9bc8b932004-02-29 15:18:31 +000012393uts4*)
12394 version_type=linux
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396 soname_spec='${libname}${release}${shared_ext}$major'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 ;;
12399
12400*)
12401 dynamic_linker=no
12402 ;;
12403esac
mlcreech94984912008-03-04 19:03:08 +000012404{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12405echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012406test "$dynamic_linker" = no && can_build_shared=no
12407
vapier7f19c022007-02-17 14:46:31 +000012408variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12409if test "$GCC" = yes; then
12410 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12411fi
12412
mlcreech94984912008-03-04 19:03:08 +000012413{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12414echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012415hardcode_action_CXX=
12416if test -n "$hardcode_libdir_flag_spec_CXX" || \
vapier7f19c022007-02-17 14:46:31 +000012417 test -n "$runpath_var_CXX" || \
12418 test "X$hardcode_automatic_CXX" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000012419
12420 # We can hardcode non-existant directories.
12421 if test "$hardcode_direct_CXX" != no &&
12422 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12423 # have to relink, otherwise we might link with an installed library
12424 # when we should be linking with a yet-to-be-installed one
12425 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12426 test "$hardcode_minus_L_CXX" != no; then
12427 # Linking always hardcodes the temporary library directory.
12428 hardcode_action_CXX=relink
12429 else
12430 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12431 hardcode_action_CXX=immediate
12432 fi
12433else
12434 # We cannot hardcode anything, or else we can only hardcode existing
12435 # directories.
12436 hardcode_action_CXX=unsupported
12437fi
mlcreech94984912008-03-04 19:03:08 +000012438{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12439echo "${ECHO_T}$hardcode_action_CXX" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012440
12441if test "$hardcode_action_CXX" = relink; then
12442 # Fast installation is not supported
12443 enable_fast_install=no
12444elif test "$shlibpath_overrides_runpath" = yes ||
12445 test "$enable_shared" = no; then
12446 # Fast installation is not necessary
12447 enable_fast_install=needless
12448fi
12449
a.rottmann9bc8b932004-02-29 15:18:31 +000012450
12451# The else clause should only fire when bootstrapping the
12452# libtool distribution, otherwise you forgot to ship ltmain.sh
12453# with your package, and you will get complaints that there are
12454# no rules to generate ltmain.sh.
12455if test -f "$ltmain"; then
12456 # See if we are running on zsh, and set the options which allow our commands through
12457 # without removal of \ escapes.
12458 if test -n "${ZSH_VERSION+set}" ; then
12459 setopt NO_GLOB_SUBST
12460 fi
12461 # Now quote all the things that may contain metacharacters while being
12462 # careful not to overquote the AC_SUBSTed values. We take copies of the
12463 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000012464 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 +000012465 SED SHELL STRIP \
12466 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12467 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12468 deplibs_check_method reload_flag reload_cmds need_locks \
12469 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12470 lt_cv_sys_global_symbol_to_c_name_address \
12471 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12472 old_postinstall_cmds old_postuninstall_cmds \
12473 compiler_CXX \
12474 CC_CXX \
12475 LD_CXX \
12476 lt_prog_compiler_wl_CXX \
12477 lt_prog_compiler_pic_CXX \
12478 lt_prog_compiler_static_CXX \
12479 lt_prog_compiler_no_builtin_flag_CXX \
12480 export_dynamic_flag_spec_CXX \
12481 thread_safe_flag_spec_CXX \
12482 whole_archive_flag_spec_CXX \
12483 enable_shared_with_static_runtimes_CXX \
12484 old_archive_cmds_CXX \
12485 old_archive_from_new_cmds_CXX \
12486 predep_objects_CXX \
12487 postdep_objects_CXX \
12488 predeps_CXX \
12489 postdeps_CXX \
12490 compiler_lib_search_path_CXX \
12491 archive_cmds_CXX \
12492 archive_expsym_cmds_CXX \
12493 postinstall_cmds_CXX \
12494 postuninstall_cmds_CXX \
12495 old_archive_from_expsyms_cmds_CXX \
12496 allow_undefined_flag_CXX \
12497 no_undefined_flag_CXX \
12498 export_symbols_cmds_CXX \
12499 hardcode_libdir_flag_spec_CXX \
12500 hardcode_libdir_flag_spec_ld_CXX \
12501 hardcode_libdir_separator_CXX \
12502 hardcode_automatic_CXX \
12503 module_cmds_CXX \
12504 module_expsym_cmds_CXX \
12505 lt_cv_prog_compiler_c_o_CXX \
12506 exclude_expsyms_CXX \
12507 include_expsyms_CXX; do
12508
12509 case $var in
12510 old_archive_cmds_CXX | \
12511 old_archive_from_new_cmds_CXX | \
12512 archive_cmds_CXX | \
12513 archive_expsym_cmds_CXX | \
12514 module_cmds_CXX | \
12515 module_expsym_cmds_CXX | \
12516 old_archive_from_expsyms_cmds_CXX | \
12517 export_symbols_cmds_CXX | \
12518 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12519 postinstall_cmds | postuninstall_cmds | \
12520 old_postinstall_cmds | old_postuninstall_cmds | \
12521 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12522 # Double-quote double-evaled strings.
12523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12524 ;;
12525 *)
12526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12527 ;;
12528 esac
12529 done
12530
12531 case $lt_echo in
12532 *'\$0 --fallback-echo"')
12533 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12534 ;;
12535 esac
12536
12537cfgfile="$ofile"
12538
12539 cat <<__EOF__ >> "$cfgfile"
12540# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12541
12542# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12543
12544# Shell to use when invoking shell scripts.
12545SHELL=$lt_SHELL
12546
12547# Whether or not to build shared libraries.
12548build_libtool_libs=$enable_shared
12549
12550# Whether or not to build static libraries.
12551build_old_libs=$enable_static
12552
12553# Whether or not to add -lc for building shared libraries.
12554build_libtool_need_lc=$archive_cmds_need_lc_CXX
12555
12556# Whether or not to disallow shared libs when runtime libs are static
12557allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12558
12559# Whether or not to optimize for fast installation.
12560fast_install=$enable_fast_install
12561
12562# The host system.
12563host_alias=$host_alias
12564host=$host
vapier7f19c022007-02-17 14:46:31 +000012565host_os=$host_os
12566
12567# The build system.
12568build_alias=$build_alias
12569build=$build
12570build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000012571
12572# An echo program that does not interpret backslashes.
12573echo=$lt_echo
12574
12575# The archiver.
12576AR=$lt_AR
12577AR_FLAGS=$lt_AR_FLAGS
12578
12579# A C compiler.
12580LTCC=$lt_LTCC
12581
vapier7f19c022007-02-17 14:46:31 +000012582# LTCC compiler flags.
12583LTCFLAGS=$lt_LTCFLAGS
12584
a.rottmann9bc8b932004-02-29 15:18:31 +000012585# A language-specific compiler.
12586CC=$lt_compiler_CXX
12587
12588# Is the compiler the GNU C compiler?
12589with_gcc=$GCC_CXX
12590
12591# An ERE matcher.
12592EGREP=$lt_EGREP
12593
12594# The linker used to build libraries.
12595LD=$lt_LD_CXX
12596
12597# Whether we need hard or soft links.
12598LN_S=$lt_LN_S
12599
12600# A BSD-compatible nm program.
12601NM=$lt_NM
12602
12603# A symbol stripping program
12604STRIP=$lt_STRIP
12605
12606# Used to examine libraries when file_magic_cmd begins "file"
12607MAGIC_CMD=$MAGIC_CMD
12608
12609# Used on cygwin: DLL creation program.
12610DLLTOOL="$DLLTOOL"
12611
12612# Used on cygwin: object dumper.
12613OBJDUMP="$OBJDUMP"
12614
12615# Used on cygwin: assembler.
12616AS="$AS"
12617
12618# The name of the directory that contains temporary libtool files.
12619objdir=$objdir
12620
12621# How to create reloadable object files.
12622reload_flag=$lt_reload_flag
12623reload_cmds=$lt_reload_cmds
12624
12625# How to pass a linker flag through the compiler.
12626wl=$lt_lt_prog_compiler_wl_CXX
12627
12628# Object file suffix (normally "o").
12629objext="$ac_objext"
12630
12631# Old archive suffix (normally "a").
12632libext="$libext"
12633
12634# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000012635shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000012636
12637# Executable file suffix (normally "").
12638exeext="$exeext"
12639
12640# Additional compiler flags for building library objects.
12641pic_flag=$lt_lt_prog_compiler_pic_CXX
12642pic_mode=$pic_mode
12643
12644# What is the maximum length of a command?
12645max_cmd_len=$lt_cv_sys_max_cmd_len
12646
12647# Does compiler simultaneously support -c and -o options?
12648compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12649
vapier7f19c022007-02-17 14:46:31 +000012650# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000012651need_locks=$lt_need_locks
12652
12653# Do we need the lib prefix for modules?
12654need_lib_prefix=$need_lib_prefix
12655
12656# Do we need a version for libraries?
12657need_version=$need_version
12658
12659# Whether dlopen is supported.
12660dlopen_support=$enable_dlopen
12661
12662# Whether dlopen of programs is supported.
12663dlopen_self=$enable_dlopen_self
12664
12665# Whether dlopen of statically linked programs is supported.
12666dlopen_self_static=$enable_dlopen_self_static
12667
12668# Compiler flag to prevent dynamic linking.
12669link_static_flag=$lt_lt_prog_compiler_static_CXX
12670
12671# Compiler flag to turn off builtin functions.
12672no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12673
12674# Compiler flag to allow reflexive dlopens.
12675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12676
12677# Compiler flag to generate shared objects directly from archives.
12678whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12679
12680# Compiler flag to generate thread-safe objects.
12681thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12682
12683# Library versioning type.
12684version_type=$version_type
12685
12686# Format of library name prefix.
12687libname_spec=$lt_libname_spec
12688
12689# List of archive names. First name is the real one, the rest are links.
12690# The last name is the one that the linker finds with -lNAME.
12691library_names_spec=$lt_library_names_spec
12692
12693# The coded name of the library, if different from the real name.
12694soname_spec=$lt_soname_spec
12695
12696# Commands used to build and install an old-style archive.
12697RANLIB=$lt_RANLIB
12698old_archive_cmds=$lt_old_archive_cmds_CXX
12699old_postinstall_cmds=$lt_old_postinstall_cmds
12700old_postuninstall_cmds=$lt_old_postuninstall_cmds
12701
12702# Create an old-style archive from a shared archive.
12703old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12704
12705# Create a temporary old-style archive to link instead of a shared archive.
12706old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12707
12708# Commands used to build and install a shared archive.
12709archive_cmds=$lt_archive_cmds_CXX
12710archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12711postinstall_cmds=$lt_postinstall_cmds
12712postuninstall_cmds=$lt_postuninstall_cmds
12713
12714# Commands used to build a loadable module (assumed same as above if empty)
12715module_cmds=$lt_module_cmds_CXX
12716module_expsym_cmds=$lt_module_expsym_cmds_CXX
12717
12718# Commands to strip libraries.
12719old_striplib=$lt_old_striplib
12720striplib=$lt_striplib
12721
12722# Dependencies to place before the objects being linked to create a
12723# shared library.
12724predep_objects=$lt_predep_objects_CXX
12725
12726# Dependencies to place after the objects being linked to create a
12727# shared library.
12728postdep_objects=$lt_postdep_objects_CXX
12729
12730# Dependencies to place before the objects being linked to create a
12731# shared library.
12732predeps=$lt_predeps_CXX
12733
12734# Dependencies to place after the objects being linked to create a
12735# shared library.
12736postdeps=$lt_postdeps_CXX
12737
12738# The library search path used internally by the compiler when linking
12739# a shared library.
12740compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12741
12742# Method to check whether dependent libraries are shared objects.
12743deplibs_check_method=$lt_deplibs_check_method
12744
12745# Command to use when deplibs_check_method == file_magic.
12746file_magic_cmd=$lt_file_magic_cmd
12747
12748# Flag that allows shared libraries with undefined symbols to be built.
12749allow_undefined_flag=$lt_allow_undefined_flag_CXX
12750
12751# Flag that forces no undefined symbols.
12752no_undefined_flag=$lt_no_undefined_flag_CXX
12753
12754# Commands used to finish a libtool library installation in a directory.
12755finish_cmds=$lt_finish_cmds
12756
12757# Same as above, but a single script fragment to be evaled but not shown.
12758finish_eval=$lt_finish_eval
12759
12760# Take the output of nm and produce a listing of raw symbols and C names.
12761global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12762
12763# Transform the output of nm in a proper C declaration
12764global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12765
12766# Transform the output of nm in a C name address pair
12767global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12768
12769# This is the shared library runtime path variable.
12770runpath_var=$runpath_var
12771
12772# This is the shared library path variable.
12773shlibpath_var=$shlibpath_var
12774
12775# Is shlibpath searched before the hard-coded library search path?
12776shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12777
12778# How to hardcode a shared library path into an executable.
12779hardcode_action=$hardcode_action_CXX
12780
12781# Whether we should hardcode library paths into libraries.
12782hardcode_into_libs=$hardcode_into_libs
12783
12784# Flag to hardcode \$libdir into a binary during linking.
12785# This must work even if \$libdir does not exist.
12786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12787
12788# If ld is used when linking, flag to hardcode \$libdir into
12789# a binary during linking. This must work even if \$libdir does
12790# not exist.
12791hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12792
12793# Whether we need a single -rpath flag with a separated argument.
12794hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12795
12796# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12797# resulting binary.
12798hardcode_direct=$hardcode_direct_CXX
12799
12800# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12801# resulting binary.
12802hardcode_minus_L=$hardcode_minus_L_CXX
12803
12804# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12805# the resulting binary.
12806hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12807
12808# Set to yes if building a shared library automatically hardcodes DIR into the library
12809# and all subsequent libraries and executables linked against it.
12810hardcode_automatic=$hardcode_automatic_CXX
12811
12812# Variables whose values should be saved in libtool wrapper scripts and
12813# restored at relink time.
12814variables_saved_for_relink="$variables_saved_for_relink"
12815
12816# Whether libtool must link a program against all its dependency libraries.
12817link_all_deplibs=$link_all_deplibs_CXX
12818
12819# Compile-time system search path for libraries
12820sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12821
12822# Run-time system search path for libraries
12823sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12824
12825# Fix the shell variable \$srcfile for the compiler.
12826fix_srcfile_path="$fix_srcfile_path_CXX"
12827
12828# Set to yes if exported symbols are required.
12829always_export_symbols=$always_export_symbols_CXX
12830
12831# The commands to list exported symbols.
12832export_symbols_cmds=$lt_export_symbols_cmds_CXX
12833
12834# The commands to extract the exported symbol list from a shared archive.
12835extract_expsyms_cmds=$lt_extract_expsyms_cmds
12836
12837# Symbols that should not be listed in the preloaded symbols.
12838exclude_expsyms=$lt_exclude_expsyms_CXX
12839
12840# Symbols that must always be exported.
12841include_expsyms=$lt_include_expsyms_CXX
12842
12843# ### END LIBTOOL TAG CONFIG: $tagname
12844
12845__EOF__
12846
12847
12848else
12849 # If there is no Makefile yet, we rely on a make rule to execute
12850 # `config.status --recheck' to rerun these tests and create the
12851 # libtool script then.
12852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12853 if test -f "$ltmain_in"; then
12854 test -f Makefile && make "$ltmain"
12855 fi
12856fi
12857
12858
12859ac_ext=c
12860ac_cpp='$CPP $CPPFLAGS'
12861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12863ac_compiler_gnu=$ac_cv_c_compiler_gnu
12864
12865CC=$lt_save_CC
12866LDCXX=$LD
12867LD=$lt_save_LD
12868GCC=$lt_save_GCC
12869with_gnu_ldcxx=$with_gnu_ld
12870with_gnu_ld=$lt_save_with_gnu_ld
12871lt_cv_path_LDCXX=$lt_cv_path_LD
12872lt_cv_path_LD=$lt_save_path_LD
12873lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12874lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12875
12876 else
12877 tagname=""
12878 fi
12879 ;;
12880
12881 F77)
12882 if test -n "$F77" && test "X$F77" != "Xno"; then
12883
12884ac_ext=f
12885ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12886ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12888
12889
12890archive_cmds_need_lc_F77=no
12891allow_undefined_flag_F77=
12892always_export_symbols_F77=no
12893archive_expsym_cmds_F77=
12894export_dynamic_flag_spec_F77=
12895hardcode_direct_F77=no
12896hardcode_libdir_flag_spec_F77=
12897hardcode_libdir_flag_spec_ld_F77=
12898hardcode_libdir_separator_F77=
12899hardcode_minus_L_F77=no
12900hardcode_automatic_F77=no
12901module_cmds_F77=
12902module_expsym_cmds_F77=
12903link_all_deplibs_F77=unknown
12904old_archive_cmds_F77=$old_archive_cmds
12905no_undefined_flag_F77=
12906whole_archive_flag_spec_F77=
12907enable_shared_with_static_runtimes_F77=no
12908
12909# Source file extension for f77 test sources.
12910ac_ext=f
12911
12912# Object file extension for compiled f77 test sources.
12913objext=o
12914objext_F77=$objext
12915
12916# Code to be used in simple compile tests
12917lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12918
12919# Code to be used in simple link tests
12920lt_simple_link_test_code=" program t\n end\n"
12921
12922# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12923
12924# If no C compiler was specified, use CC.
12925LTCC=${LTCC-"$CC"}
12926
vapier7f19c022007-02-17 14:46:31 +000012927# If no C compiler flags were specified, use CFLAGS.
12928LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12929
a.rottmann9bc8b932004-02-29 15:18:31 +000012930# Allow CC to be a program name with arguments.
12931compiler=$CC
12932
12933
vapier7f19c022007-02-17 14:46:31 +000012934# save warnings/boilerplate of simple test code
12935ac_outfile=conftest.$ac_objext
12936printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12937eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12938_lt_compiler_boilerplate=`cat conftest.err`
12939$rm conftest*
12940
12941ac_outfile=conftest.$ac_objext
12942printf "$lt_simple_link_test_code" >conftest.$ac_ext
12943eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12944_lt_linker_boilerplate=`cat conftest.err`
12945$rm conftest*
12946
12947
a.rottmann9bc8b932004-02-29 15:18:31 +000012948# Allow CC to be a program name with arguments.
12949lt_save_CC="$CC"
12950CC=${F77-"f77"}
12951compiler=$CC
12952compiler_F77=$CC
vapier7f19c022007-02-17 14:46:31 +000012953for cc_temp in $compiler""; do
12954 case $cc_temp in
12955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12957 \-*) ;;
12958 *) break;;
12959 esac
12960done
12961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000012962
a.rottmann9bc8b932004-02-29 15:18:31 +000012963
mlcreech94984912008-03-04 19:03:08 +000012964{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12965echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12966{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12967echo "${ECHO_T}$can_build_shared" >&6; }
vapier7f19c022007-02-17 14:46:31 +000012968
mlcreech94984912008-03-04 19:03:08 +000012969{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12970echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012971test "$can_build_shared" = "no" && enable_shared=no
12972
12973# On AIX, shared libraries and static libraries use the same namespace, and
12974# are all built from PIC.
vapier7f19c022007-02-17 14:46:31 +000012975case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000012976aix3*)
12977 test "$enable_shared" = yes && enable_static=no
12978 if test -n "$RANLIB"; then
12979 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12980 postinstall_cmds='$RANLIB $lib'
12981 fi
12982 ;;
vapier7f19c022007-02-17 14:46:31 +000012983aix4* | aix5*)
12984 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12985 test "$enable_shared" = yes && enable_static=no
12986 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000012987 ;;
12988esac
mlcreech94984912008-03-04 19:03:08 +000012989{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12990echo "${ECHO_T}$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012991
mlcreech94984912008-03-04 19:03:08 +000012992{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12993echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012994# Make sure either enable_shared or enable_static is yes.
12995test "$enable_shared" = yes || enable_static=yes
mlcreech94984912008-03-04 19:03:08 +000012996{ echo "$as_me:$LINENO: result: $enable_static" >&5
12997echo "${ECHO_T}$enable_static" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000012998
12999GCC_F77="$G77"
13000LD_F77="$LD"
13001
13002lt_prog_compiler_wl_F77=
13003lt_prog_compiler_pic_F77=
13004lt_prog_compiler_static_F77=
13005
mlcreech94984912008-03-04 19:03:08 +000013006{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013008
13009 if test "$GCC" = yes; then
13010 lt_prog_compiler_wl_F77='-Wl,'
13011 lt_prog_compiler_static_F77='-static'
13012
13013 case $host_os in
13014 aix*)
13015 # All AIX code is PIC.
13016 if test "$host_cpu" = ia64; then
13017 # AIX 5 now supports IA64 processor
13018 lt_prog_compiler_static_F77='-Bstatic'
13019 fi
13020 ;;
13021
13022 amigaos*)
13023 # FIXME: we need at least 68020 code to build shared libraries, but
13024 # adding the `-m68020' flag to GCC prevents building anything better,
13025 # like `-m68040'.
13026 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13027 ;;
13028
13029 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13030 # PIC is the default for these OSes.
13031 ;;
13032
13033 mingw* | pw32* | os2*)
13034 # This hack is so that the source file can tell whether it is being
13035 # built for inclusion in a dll (and should export symbols for example).
13036 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13037 ;;
13038
13039 darwin* | rhapsody*)
13040 # PIC is the default on this platform
13041 # Common symbols not allowed in MH_DYLIB files
13042 lt_prog_compiler_pic_F77='-fno-common'
13043 ;;
13044
vapier7f19c022007-02-17 14:46:31 +000013045 interix3*)
13046 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13047 # Instead, we relocate shared libraries at runtime.
13048 ;;
13049
a.rottmann9bc8b932004-02-29 15:18:31 +000013050 msdosdjgpp*)
13051 # Just because we use GCC doesn't mean we suddenly get shared libraries
13052 # on systems that don't support them.
13053 lt_prog_compiler_can_build_shared_F77=no
13054 enable_shared=no
13055 ;;
13056
13057 sysv4*MP*)
13058 if test -d /usr/nec; then
13059 lt_prog_compiler_pic_F77=-Kconform_pic
13060 fi
13061 ;;
13062
13063 hpux*)
13064 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13065 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013066 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013067 hppa*64*|ia64*)
13068 # +Z the default
13069 ;;
13070 *)
13071 lt_prog_compiler_pic_F77='-fPIC'
13072 ;;
13073 esac
13074 ;;
13075
13076 *)
13077 lt_prog_compiler_pic_F77='-fPIC'
13078 ;;
13079 esac
13080 else
13081 # PORTME Check for flag to pass linker flags through the system compiler.
13082 case $host_os in
13083 aix*)
13084 lt_prog_compiler_wl_F77='-Wl,'
13085 if test "$host_cpu" = ia64; then
13086 # AIX 5 now supports IA64 processor
13087 lt_prog_compiler_static_F77='-Bstatic'
13088 else
13089 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13090 fi
13091 ;;
vapier7f19c022007-02-17 14:46:31 +000013092 darwin*)
13093 # PIC is the default on this platform
13094 # Common symbols not allowed in MH_DYLIB files
13095 case $cc_basename in
13096 xlc*)
13097 lt_prog_compiler_pic_F77='-qnocommon'
13098 lt_prog_compiler_wl_F77='-Wl,'
13099 ;;
13100 esac
13101 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013102
13103 mingw* | pw32* | os2*)
13104 # This hack is so that the source file can tell whether it is being
13105 # built for inclusion in a dll (and should export symbols for example).
13106 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13107 ;;
13108
13109 hpux9* | hpux10* | hpux11*)
13110 lt_prog_compiler_wl_F77='-Wl,'
13111 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13112 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000013113 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000013114 hppa*64*|ia64*)
13115 # +Z the default
13116 ;;
13117 *)
13118 lt_prog_compiler_pic_F77='+Z'
13119 ;;
13120 esac
13121 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13122 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13123 ;;
13124
13125 irix5* | irix6* | nonstopux*)
13126 lt_prog_compiler_wl_F77='-Wl,'
13127 # PIC (with -KPIC) is the default.
13128 lt_prog_compiler_static_F77='-non_shared'
13129 ;;
13130
13131 newsos6)
13132 lt_prog_compiler_pic_F77='-KPIC'
13133 lt_prog_compiler_static_F77='-Bstatic'
13134 ;;
13135
13136 linux*)
vapier7f19c022007-02-17 14:46:31 +000013137 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000013138 icc* | ecc*)
13139 lt_prog_compiler_wl_F77='-Wl,'
13140 lt_prog_compiler_pic_F77='-KPIC'
13141 lt_prog_compiler_static_F77='-static'
13142 ;;
vapier7f19c022007-02-17 14:46:31 +000013143 pgcc* | pgf77* | pgf90* | pgf95*)
13144 # Portland Group compilers (*not* the Pentium gcc compiler,
13145 # which looks to be a dead project)
13146 lt_prog_compiler_wl_F77='-Wl,'
13147 lt_prog_compiler_pic_F77='-fpic'
13148 lt_prog_compiler_static_F77='-Bstatic'
13149 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013150 ccc*)
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 # All Alpha code is PIC.
13153 lt_prog_compiler_static_F77='-non_shared'
13154 ;;
13155 esac
13156 ;;
13157
13158 osf3* | osf4* | osf5*)
13159 lt_prog_compiler_wl_F77='-Wl,'
13160 # All OSF/1 code is PIC.
13161 lt_prog_compiler_static_F77='-non_shared'
13162 ;;
13163
a.rottmann9bc8b932004-02-29 15:18:31 +000013164 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013165 lt_prog_compiler_pic_F77='-KPIC'
13166 lt_prog_compiler_static_F77='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000013167 case $cc_basename in
13168 f77* | f90* | f95*)
13169 lt_prog_compiler_wl_F77='-Qoption ld ';;
13170 *)
13171 lt_prog_compiler_wl_F77='-Wl,';;
13172 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013173 ;;
13174
13175 sunos4*)
13176 lt_prog_compiler_wl_F77='-Qoption ld '
13177 lt_prog_compiler_pic_F77='-PIC'
13178 lt_prog_compiler_static_F77='-Bstatic'
13179 ;;
13180
vapier7f19c022007-02-17 14:46:31 +000013181 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013182 lt_prog_compiler_wl_F77='-Wl,'
13183 lt_prog_compiler_pic_F77='-KPIC'
13184 lt_prog_compiler_static_F77='-Bstatic'
13185 ;;
13186
13187 sysv4*MP*)
13188 if test -d /usr/nec ;then
13189 lt_prog_compiler_pic_F77='-Kconform_pic'
13190 lt_prog_compiler_static_F77='-Bstatic'
13191 fi
13192 ;;
13193
vapier7f19c022007-02-17 14:46:31 +000013194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13195 lt_prog_compiler_wl_F77='-Wl,'
13196 lt_prog_compiler_pic_F77='-KPIC'
13197 lt_prog_compiler_static_F77='-Bstatic'
13198 ;;
13199
13200 unicos*)
13201 lt_prog_compiler_wl_F77='-Wl,'
13202 lt_prog_compiler_can_build_shared_F77=no
13203 ;;
13204
a.rottmann9bc8b932004-02-29 15:18:31 +000013205 uts4*)
13206 lt_prog_compiler_pic_F77='-pic'
13207 lt_prog_compiler_static_F77='-Bstatic'
13208 ;;
13209
13210 *)
13211 lt_prog_compiler_can_build_shared_F77=no
13212 ;;
13213 esac
13214 fi
13215
mlcreech94984912008-03-04 19:03:08 +000013216{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13217echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013218
13219#
13220# Check to make sure the PIC flag actually works.
13221#
13222if test -n "$lt_prog_compiler_pic_F77"; then
13223
mlcreech94984912008-03-04 19:03:08 +000013224{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13225echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013226if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228else
13229 lt_prog_compiler_pic_works_F77=no
13230 ac_outfile=conftest.$ac_objext
13231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13232 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13233 # Insert the option either (1) after the last *FLAGS variable, or
13234 # (2) before a word containing "conftest.", or (3) at the end.
13235 # Note that $ac_compile itself does not contain backslashes and begins
13236 # with a dollar sign (not a hyphen), so the echo should work correctly.
13237 # The option is referenced via a variable to avoid confusing sed.
13238 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13241 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000013242 (eval echo "\"\$as_me:13242: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013243 (eval "$lt_compile" 2>conftest.err)
13244 ac_status=$?
13245 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000013246 echo "$as_me:13246: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013247 if (exit $ac_status) && test -s "$ac_outfile"; then
13248 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000013249 # So say no if there are warnings other than the usual output.
13250 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013253 lt_prog_compiler_pic_works_F77=yes
13254 fi
13255 fi
13256 $rm conftest*
13257
13258fi
mlcreech94984912008-03-04 19:03:08 +000013259{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13260echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013261
13262if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13263 case $lt_prog_compiler_pic_F77 in
13264 "" | " "*) ;;
13265 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13266 esac
13267else
13268 lt_prog_compiler_pic_F77=
13269 lt_prog_compiler_can_build_shared_F77=no
13270fi
13271
13272fi
vapier7f19c022007-02-17 14:46:31 +000013273case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000013274 # For platforms which do not support PIC, -DPIC is meaningless:
13275 *djgpp*)
13276 lt_prog_compiler_pic_F77=
13277 ;;
13278 *)
13279 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13280 ;;
13281esac
13282
vapier7f19c022007-02-17 14:46:31 +000013283#
13284# Check to make sure the static flag actually works.
13285#
13286wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
mlcreech94984912008-03-04 19:03:08 +000013287{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13288echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013289if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291else
13292 lt_prog_compiler_static_works_F77=no
13293 save_LDFLAGS="$LDFLAGS"
13294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13295 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13297 # The linker can only warn and ignore the option if not recognized
13298 # So say no if there are warnings
13299 if test -s conftest.err; then
13300 # Append any errors to the config.log.
13301 cat conftest.err 1>&5
13302 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13304 if diff conftest.exp conftest.er2 >/dev/null; then
13305 lt_prog_compiler_static_works_F77=yes
13306 fi
13307 else
13308 lt_prog_compiler_static_works_F77=yes
13309 fi
13310 fi
13311 $rm conftest*
13312 LDFLAGS="$save_LDFLAGS"
13313
13314fi
mlcreech94984912008-03-04 19:03:08 +000013315{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13316echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
vapier7f19c022007-02-17 14:46:31 +000013317
13318if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13319 :
13320else
13321 lt_prog_compiler_static_F77=
13322fi
13323
13324
mlcreech94984912008-03-04 19:03:08 +000013325{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13326echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013327if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
13330 lt_cv_prog_compiler_c_o_F77=no
13331 $rm -r conftest 2>/dev/null
13332 mkdir conftest
13333 cd conftest
13334 mkdir out
13335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13336
13337 lt_compiler_flag="-o out/conftest2.$ac_objext"
13338 # Insert the option either (1) after the last *FLAGS variable, or
13339 # (2) before a word containing "conftest.", or (3) at the end.
13340 # Note that $ac_compile itself does not contain backslashes and begins
13341 # with a dollar sign (not a hyphen), so the echo should work correctly.
13342 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000013343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000013344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13345 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000013346 (eval echo "\"\$as_me:13346: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000013347 (eval "$lt_compile" 2>out/conftest.err)
13348 ac_status=$?
13349 cat out/conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000013350 echo "$as_me:13350: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013351 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13352 then
13353 # The compiler can only warn and ignore the option if not recognized
13354 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000013355 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013358 lt_cv_prog_compiler_c_o_F77=yes
13359 fi
13360 fi
vapier7f19c022007-02-17 14:46:31 +000013361 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000013362 $rm conftest*
13363 # SGI C++ compiler will create directory out/ii_files/ for
13364 # template instantiation
13365 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13366 $rm out/* && rmdir out
13367 cd ..
13368 rmdir conftest
13369 $rm conftest*
13370
13371fi
mlcreech94984912008-03-04 19:03:08 +000013372{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13373echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013374
13375
13376hard_links="nottested"
13377if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13378 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000013379 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13380echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013381 hard_links=yes
13382 $rm conftest*
13383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13384 touch conftest.a
13385 ln conftest.a conftest.b 2>&5 || hard_links=no
13386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000013387 { echo "$as_me:$LINENO: result: $hard_links" >&5
13388echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013389 if test "$hard_links" = no; then
13390 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13391echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13392 need_locks=warn
13393 fi
13394else
13395 need_locks=no
13396fi
13397
mlcreech94984912008-03-04 19:03:08 +000013398{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13399echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000013400
13401 runpath_var=
13402 allow_undefined_flag_F77=
13403 enable_shared_with_static_runtimes_F77=no
13404 archive_cmds_F77=
13405 archive_expsym_cmds_F77=
13406 old_archive_From_new_cmds_F77=
13407 old_archive_from_expsyms_cmds_F77=
13408 export_dynamic_flag_spec_F77=
13409 whole_archive_flag_spec_F77=
13410 thread_safe_flag_spec_F77=
13411 hardcode_libdir_flag_spec_F77=
13412 hardcode_libdir_flag_spec_ld_F77=
13413 hardcode_libdir_separator_F77=
13414 hardcode_direct_F77=no
13415 hardcode_minus_L_F77=no
13416 hardcode_shlibpath_var_F77=unsupported
13417 link_all_deplibs_F77=unknown
13418 hardcode_automatic_F77=no
13419 module_cmds_F77=
13420 module_expsym_cmds_F77=
13421 always_export_symbols_F77=no
13422 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13423 # include_expsyms should be a list of space-separated symbols to be *always*
13424 # included in the symbol list
13425 include_expsyms_F77=
13426 # exclude_expsyms can be an extended regexp of symbols to exclude
13427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13429 # as well as any symbol that contains `d'.
13430 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13432 # platforms (ab)use it in PIC code, but their linkers get confused if
13433 # the symbol is explicitly referenced. Since portable code cannot
13434 # rely on this symbol name, it's probably fine to never include it in
13435 # preloaded symbol tables.
13436 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000013437 # Just being paranoid about ensuring that cc_basename is set.
13438 for cc_temp in $compiler""; do
13439 case $cc_temp in
13440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13442 \-*) ;;
13443 *) break;;
13444 esac
13445done
13446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000013447
13448 case $host_os in
13449 cygwin* | mingw* | pw32*)
13450 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13451 # When not using gcc, we currently assume that we are using
13452 # Microsoft Visual C++.
13453 if test "$GCC" != yes; then
13454 with_gnu_ld=no
13455 fi
13456 ;;
vapier7f19c022007-02-17 14:46:31 +000013457 interix*)
13458 # we just hope/assume this is gcc and not c89 (= MSVC++)
13459 with_gnu_ld=yes
13460 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013461 openbsd*)
13462 with_gnu_ld=no
13463 ;;
13464 esac
13465
13466 ld_shlibs_F77=yes
13467 if test "$with_gnu_ld" = yes; then
13468 # If archive_cmds runs LD, not CC, wlarc should be empty
13469 wlarc='${wl}'
13470
vapier7f19c022007-02-17 14:46:31 +000013471 # Set some defaults for GNU ld with shared library support. These
13472 # are reset later if shared libraries are not supported. Putting them
13473 # here allows them to be overridden if necessary.
13474 runpath_var=LD_RUN_PATH
13475 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13476 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13477 # ancient GNU ld didn't support --whole-archive et. al.
13478 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13479 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13480 else
13481 whole_archive_flag_spec_F77=
13482 fi
13483 supports_anon_versioning=no
13484 case `$LD -v 2>/dev/null` in
13485 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13486 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13487 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13488 *\ 2.11.*) ;; # other 2.11 versions
13489 *) supports_anon_versioning=yes ;;
13490 esac
13491
a.rottmann9bc8b932004-02-29 15:18:31 +000013492 # See if GNU ld supports shared libraries.
13493 case $host_os in
13494 aix3* | aix4* | aix5*)
13495 # On AIX/PPC, the GNU linker is very broken
13496 if test "$host_cpu" != ia64; then
13497 ld_shlibs_F77=no
13498 cat <<EOF 1>&2
13499
13500*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13501*** to be unable to reliably create shared libraries on AIX.
13502*** Therefore, libtool is disabling shared libraries support. If you
13503*** really care for shared libraries, you may want to modify your PATH
13504*** so that a non-GNU linker is found, and then restart.
13505
13506EOF
13507 fi
13508 ;;
13509
13510 amigaos*)
13511 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)'
13512 hardcode_libdir_flag_spec_F77='-L$libdir'
13513 hardcode_minus_L_F77=yes
13514
13515 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13516 # that the semantics of dynamic libraries on AmigaOS, at least up
13517 # to version 4, is to share data among multiple programs linked
13518 # with the same dynamic library. Since this doesn't match the
13519 # behavior of shared libraries on other platforms, we can't use
13520 # them.
13521 ld_shlibs_F77=no
13522 ;;
13523
13524 beos*)
13525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13526 allow_undefined_flag_F77=unsupported
13527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13528 # support --undefined. This deserves some investigation. FIXME
13529 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530 else
13531 ld_shlibs_F77=no
13532 fi
13533 ;;
13534
13535 cygwin* | mingw* | pw32*)
13536 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13537 # as there is no search path for DLLs.
13538 hardcode_libdir_flag_spec_F77='-L$libdir'
13539 allow_undefined_flag_F77=unsupported
13540 always_export_symbols_F77=no
13541 enable_shared_with_static_runtimes_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013542 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 +000013543
13544 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000013545 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 +000013546 # If the export-symbols file already is a .def file (1st line
13547 # is EXPORTS), use it as is; otherwise, prepend...
13548 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549 cp $export_symbols $output_objdir/$soname.def;
13550 else
13551 echo EXPORTS > $output_objdir/$soname.def;
13552 cat $export_symbols >> $output_objdir/$soname.def;
13553 fi~
vapier7f19c022007-02-17 14:46:31 +000013554 $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 +000013555 else
vapier7f19c022007-02-17 14:46:31 +000013556 ld_shlibs_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013557 fi
13558 ;;
13559
vapier7f19c022007-02-17 14:46:31 +000013560 interix3*)
13561 hardcode_direct_F77=no
13562 hardcode_shlibpath_var_F77=no
13563 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13564 export_dynamic_flag_spec_F77='${wl}-E'
13565 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13566 # Instead, shared libraries are loaded at an image base (0x10000000 by
13567 # default) and relocated if they conflict, which is a slow very memory
13568 # consuming and fragmenting process. To avoid this, we pick a random,
13569 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13570 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13571 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'
13572 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'
13573 ;;
13574
13575 linux*)
13576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13577 tmp_addflag=
13578 case $cc_basename,$host_cpu in
13579 pgcc*) # Portland Group C compiler
13580 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'
13581 tmp_addflag=' $pic_flag'
13582 ;;
13583 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13584 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'
13585 tmp_addflag=' $pic_flag -Mnomain' ;;
13586 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13587 tmp_addflag=' -i_dynamic' ;;
13588 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13589 tmp_addflag=' -i_dynamic -nofor_main' ;;
13590 ifc* | ifort*) # Intel Fortran compiler
13591 tmp_addflag=' -nofor_main' ;;
13592 esac
13593 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594
13595 if test $supports_anon_versioning = yes; then
13596 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13598 $echo "local: *; };" >> $output_objdir/$libname.ver~
13599 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13600 fi
13601 else
13602 ld_shlibs_F77=no
13603 fi
13604 ;;
13605
13606 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13608 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13609 wlarc=
13610 else
13611 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13613 fi
13614 ;;
13615
vapier7f19c022007-02-17 14:46:31 +000013616 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013617 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13618 ld_shlibs_F77=no
13619 cat <<EOF 1>&2
13620
13621*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13622*** create shared libraries on Solaris systems. Therefore, libtool
13623*** is disabling shared libraries support. We urge you to upgrade GNU
13624*** binutils to release 2.9.1 or newer. Another option is to modify
13625*** your PATH or compiler configuration so that the native linker is
13626*** used, and then restart.
13627
13628EOF
13629 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13630 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13632 else
13633 ld_shlibs_F77=no
13634 fi
13635 ;;
13636
vapier7f19c022007-02-17 14:46:31 +000013637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13638 case `$LD -v 2>&1` in
13639 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13640 ld_shlibs_F77=no
13641 cat <<_LT_EOF 1>&2
13642
13643*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13644*** reliably create shared libraries on SCO systems. Therefore, libtool
13645*** is disabling shared libraries support. We urge you to upgrade GNU
13646*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13647*** your PATH or compiler configuration so that the native linker is
13648*** used, and then restart.
13649
13650_LT_EOF
13651 ;;
13652 *)
13653 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13654 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13655 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13656 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13657 else
13658 ld_shlibs_F77=no
13659 fi
13660 ;;
13661 esac
13662 ;;
13663
a.rottmann9bc8b932004-02-29 15:18:31 +000013664 sunos4*)
13665 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13666 wlarc=
13667 hardcode_direct_F77=yes
13668 hardcode_shlibpath_var_F77=no
13669 ;;
13670
a.rottmann9bc8b932004-02-29 15:18:31 +000013671 *)
13672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13674 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13675 else
13676 ld_shlibs_F77=no
13677 fi
13678 ;;
13679 esac
13680
vapier7f19c022007-02-17 14:46:31 +000013681 if test "$ld_shlibs_F77" = no; then
13682 runpath_var=
13683 hardcode_libdir_flag_spec_F77=
13684 export_dynamic_flag_spec_F77=
13685 whole_archive_flag_spec_F77=
a.rottmann9bc8b932004-02-29 15:18:31 +000013686 fi
13687 else
13688 # PORTME fill in a description of your system's linker (not GNU ld)
13689 case $host_os in
13690 aix3*)
13691 allow_undefined_flag_F77=unsupported
13692 always_export_symbols_F77=yes
13693 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'
13694 # Note: this linker hardcodes the directories in LIBPATH if there
13695 # are no directories specified by -L.
13696 hardcode_minus_L_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013697 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013698 # Neither direct hardcoding nor static linking is supported with a
13699 # broken collect2.
13700 hardcode_direct_F77=unsupported
13701 fi
13702 ;;
13703
13704 aix4* | aix5*)
13705 if test "$host_cpu" = ia64; then
13706 # On IA64, the linker does run time linking by default, so we don't
13707 # have to do anything special.
13708 aix_use_runtimelinking=no
13709 exp_sym_flag='-Bexport'
13710 no_entry_flag=""
13711 else
13712 # If we're using GNU nm, then we don't want the "-C" option.
13713 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13714 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13715 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'
13716 else
13717 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'
13718 fi
13719 aix_use_runtimelinking=no
13720
13721 # Test if we are trying to use run time linking or normal
13722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13723 # need to do runtime linking.
13724 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13725 for ld_flag in $LDFLAGS; do
13726 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13727 aix_use_runtimelinking=yes
13728 break
13729 fi
13730 done
vapier7f19c022007-02-17 14:46:31 +000013731 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013732 esac
13733
13734 exp_sym_flag='-bexport'
13735 no_entry_flag='-bnoentry'
13736 fi
13737
13738 # When large executables or shared objects are built, AIX ld can
13739 # have problems creating the table of contents. If linking a library
13740 # or program results in "error TOC overflow" add -mminimal-toc to
13741 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13742 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13743
13744 archive_cmds_F77=''
13745 hardcode_direct_F77=yes
13746 hardcode_libdir_separator_F77=':'
13747 link_all_deplibs_F77=yes
13748
13749 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000013750 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013751 # We only want to do this on AIX 4.2 and lower, the check
13752 # below for broken collect2 doesn't work under 4.3+
13753 collect2name=`${CC} -print-prog-name=collect2`
13754 if test -f "$collect2name" && \
13755 strings "$collect2name" | grep resolve_lib_name >/dev/null
13756 then
13757 # We have reworked collect2
13758 hardcode_direct_F77=yes
13759 else
13760 # We have old collect2
13761 hardcode_direct_F77=unsupported
13762 # It fails to find uninstalled libraries when the uninstalled
13763 # path is not listed in the libpath. Setting hardcode_minus_L
13764 # to unsupported forces relinking
13765 hardcode_minus_L_F77=yes
13766 hardcode_libdir_flag_spec_F77='-L$libdir'
13767 hardcode_libdir_separator_F77=
13768 fi
vapier7f19c022007-02-17 14:46:31 +000013769 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013770 esac
13771 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000013772 if test "$aix_use_runtimelinking" = yes; then
13773 shared_flag="$shared_flag "'${wl}-G'
13774 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013775 else
13776 # not using gcc
13777 if test "$host_cpu" = ia64; then
13778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13779 # chokes on -Wl,-G. The following line is correct:
13780 shared_flag='-G'
13781 else
vapier7f19c022007-02-17 14:46:31 +000013782 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013783 shared_flag='${wl}-G'
13784 else
13785 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000013786 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000013787 fi
13788 fi
13789
13790 # It seems that -bexpall does not export symbols beginning with
13791 # underscore (_), so it is better to generate a list of symbols to export.
13792 always_export_symbols_F77=yes
13793 if test "$aix_use_runtimelinking" = yes; then
13794 # Warning - without using the other runtime loading flags (-brtl),
13795 # -berok will link without error, but may produce a broken library.
13796 allow_undefined_flag_F77='-berok'
13797 # Determine the default libpath from the value encoded in an empty executable.
13798 cat >conftest.$ac_ext <<_ACEOF
13799 program main
13800
13801 end
13802_ACEOF
13803rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013804if { (ac_try="$ac_link"
13805case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13808esac
13809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013816 (exit $ac_status); } && {
13817 test -z "$ac_f77_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest$ac_exeext &&
13820 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013821
13822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13823}'`
13824# Check for a 64-bit object if we didn't find anything.
13825if 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; }
13826}'`; fi
13827else
13828 echo "$as_me: failed program was:" >&5
13829sed 's/^/| /' conftest.$ac_ext >&5
13830
mlcreech94984912008-03-04 19:03:08 +000013831
a.rottmann9bc8b932004-02-29 15:18:31 +000013832fi
mlcreech94984912008-03-04 19:03:08 +000013833
13834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013835 conftest$ac_exeext conftest.$ac_ext
13836if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13837
13838 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000013839 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 +000013840 else
13841 if test "$host_cpu" = ia64; then
13842 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13843 allow_undefined_flag_F77="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000013844 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 +000013845 else
13846 # Determine the default libpath from the value encoded in an empty executable.
13847 cat >conftest.$ac_ext <<_ACEOF
13848 program main
13849
13850 end
13851_ACEOF
13852rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000013853if { (ac_try="$ac_link"
13854case "(($ac_try" in
13855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13856 *) ac_try_echo=$ac_try;;
13857esac
13858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13859 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000013860 ac_status=$?
13861 grep -v '^ *+' conftest.er1 >conftest.err
13862 rm -f conftest.er1
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000013865 (exit $ac_status); } && {
13866 test -z "$ac_f77_werror_flag" ||
13867 test ! -s conftest.err
13868 } && test -s conftest$ac_exeext &&
13869 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000013870
13871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13872}'`
13873# Check for a 64-bit object if we didn't find anything.
13874if 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; }
13875}'`; fi
13876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
mlcreech94984912008-03-04 19:03:08 +000013880
a.rottmann9bc8b932004-02-29 15:18:31 +000013881fi
mlcreech94984912008-03-04 19:03:08 +000013882
13883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000013884 conftest$ac_exeext conftest.$ac_ext
13885if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13886
13887 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13888 # Warning - without using the other run time loading flags,
13889 # -berok will link without error, but may produce a broken library.
13890 no_undefined_flag_F77=' ${wl}-bernotok'
13891 allow_undefined_flag_F77=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000013892 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000013893 whole_archive_flag_spec_F77='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000013894 archive_cmds_need_lc_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013895 # This is similar to how AIX traditionally builds its shared libraries.
13896 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 +000013897 fi
13898 fi
13899 ;;
13900
13901 amigaos*)
13902 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)'
13903 hardcode_libdir_flag_spec_F77='-L$libdir'
13904 hardcode_minus_L_F77=yes
13905 # see comment about different semantics on the GNU ld section
13906 ld_shlibs_F77=no
13907 ;;
13908
vapier7f19c022007-02-17 14:46:31 +000013909 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000013910 export_dynamic_flag_spec_F77=-rdynamic
13911 ;;
13912
13913 cygwin* | mingw* | pw32*)
13914 # When not using gcc, we currently assume that we are using
13915 # Microsoft Visual C++.
13916 # hardcode_libdir_flag_spec is actually meaningless, as there is
13917 # no search path for DLLs.
13918 hardcode_libdir_flag_spec_F77=' '
13919 allow_undefined_flag_F77=unsupported
13920 # Tell ltmain to make .lib files, not .a files.
13921 libext=lib
13922 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000013923 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000013924 # FIXME: Setting linknames here is a bad hack.
13925 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13926 # The linker will automatically build a .lib file if we build a DLL.
13927 old_archive_From_new_cmds_F77='true'
13928 # FIXME: Should let the user specify the lib program.
13929 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000013930 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000013931 enable_shared_with_static_runtimes_F77=yes
13932 ;;
13933
13934 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000013935 case $host_os in
13936 rhapsody* | darwin1.[012])
13937 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13938 ;;
13939 *) # Darwin 1.3 on
13940 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13941 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13942 else
13943 case ${MACOSX_DEPLOYMENT_TARGET} in
13944 10.[012])
13945 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13946 ;;
13947 10.*)
13948 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13949 ;;
13950 esac
13951 fi
13952 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000013953 esac
vapier7f19c022007-02-17 14:46:31 +000013954 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000013955 hardcode_direct_F77=no
13956 hardcode_automatic_F77=yes
13957 hardcode_shlibpath_var_F77=unsupported
vapier7f19c022007-02-17 14:46:31 +000013958 whole_archive_flag_spec_F77=''
a.rottmann9bc8b932004-02-29 15:18:31 +000013959 link_all_deplibs_F77=yes
vapier7f19c022007-02-17 14:46:31 +000013960 if test "$GCC" = yes ; then
13961 output_verbose_link_cmd='echo'
13962 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13963 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13964 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13965 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}'
13966 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 +000013967 else
vapier7f19c022007-02-17 14:46:31 +000013968 case $cc_basename in
13969 xlc*)
13970 output_verbose_link_cmd='echo'
13971 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13972 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13973 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13974 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}'
13975 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}'
13976 ;;
13977 *)
13978 ld_shlibs_F77=no
13979 ;;
13980 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000013981 fi
13982 ;;
13983
13984 dgux*)
13985 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13986 hardcode_libdir_flag_spec_F77='-L$libdir'
13987 hardcode_shlibpath_var_F77=no
13988 ;;
13989
13990 freebsd1*)
13991 ld_shlibs_F77=no
13992 ;;
13993
13994 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13995 # support. Future versions do this automatically, but an explicit c++rt0.o
13996 # does not break anything, and helps significantly (at the cost of a little
13997 # extra space).
13998 freebsd2.2*)
13999 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14000 hardcode_libdir_flag_spec_F77='-R$libdir'
14001 hardcode_direct_F77=yes
14002 hardcode_shlibpath_var_F77=no
14003 ;;
14004
14005 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14006 freebsd2*)
14007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_direct_F77=yes
14009 hardcode_minus_L_F77=yes
14010 hardcode_shlibpath_var_F77=no
14011 ;;
14012
14013 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000014014 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014015 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14016 hardcode_libdir_flag_spec_F77='-R$libdir'
14017 hardcode_direct_F77=yes
14018 hardcode_shlibpath_var_F77=no
14019 ;;
14020
14021 hpux9*)
14022 if test "$GCC" = yes; then
14023 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'
14024 else
14025 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'
14026 fi
14027 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14028 hardcode_libdir_separator_F77=:
14029 hardcode_direct_F77=yes
14030
14031 # hardcode_minus_L: Not really in the search PATH,
14032 # but as the default location of the library.
14033 hardcode_minus_L_F77=yes
14034 export_dynamic_flag_spec_F77='${wl}-E'
14035 ;;
14036
vapier7f19c022007-02-17 14:46:31 +000014037 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014038 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014039 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14040 else
14041 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14042 fi
14043 if test "$with_gnu_ld" = no; then
14044 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14045 hardcode_libdir_separator_F77=:
14046
14047 hardcode_direct_F77=yes
14048 export_dynamic_flag_spec_F77='${wl}-E'
14049
14050 # hardcode_minus_L: Not really in the search PATH,
14051 # but as the default location of the library.
14052 hardcode_minus_L_F77=yes
14053 fi
14054 ;;
14055
14056 hpux11*)
14057 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14058 case $host_cpu in
14059 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014060 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14061 ;;
vapier7f19c022007-02-17 14:46:31 +000014062 ia64*)
14063 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14064 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014065 *)
14066 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14067 ;;
14068 esac
14069 else
vapier7f19c022007-02-17 14:46:31 +000014070 case $host_cpu in
14071 hppa*64*)
14072 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14073 ;;
14074 ia64*)
14075 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000014076 ;;
14077 *)
vapier7f19c022007-02-17 14:46:31 +000014078 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 +000014079 ;;
14080 esac
14081 fi
14082 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000014083 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14084 hardcode_libdir_separator_F77=:
a.rottmann9bc8b932004-02-29 15:18:31 +000014085
vapier7f19c022007-02-17 14:46:31 +000014086 case $host_cpu in
14087 hppa*64*|ia64*)
14088 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14089 hardcode_direct_F77=no
14090 hardcode_shlibpath_var_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014091 ;;
14092 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000014093 hardcode_direct_F77=yes
14094 export_dynamic_flag_spec_F77='${wl}-E'
14095
14096 # hardcode_minus_L: Not really in the search PATH,
14097 # but as the default location of the library.
14098 hardcode_minus_L_F77=yes
14099 ;;
14100 esac
14101 fi
14102 ;;
14103
14104 irix5* | irix6* | nonstopux*)
14105 if test "$GCC" = yes; then
14106 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'
14107 else
14108 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'
14109 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14110 fi
14111 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14112 hardcode_libdir_separator_F77=:
14113 link_all_deplibs_F77=yes
14114 ;;
14115
vapier7f19c022007-02-17 14:46:31 +000014116 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14118 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14119 else
14120 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14121 fi
14122 hardcode_libdir_flag_spec_F77='-R$libdir'
14123 hardcode_direct_F77=yes
14124 hardcode_shlibpath_var_F77=no
14125 ;;
14126
14127 newsos6)
14128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14129 hardcode_direct_F77=yes
14130 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14131 hardcode_libdir_separator_F77=:
14132 hardcode_shlibpath_var_F77=no
14133 ;;
14134
14135 openbsd*)
14136 hardcode_direct_F77=yes
14137 hardcode_shlibpath_var_F77=no
14138 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14139 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000014140 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 +000014141 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14142 export_dynamic_flag_spec_F77='${wl}-E'
14143 else
14144 case $host_os in
14145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14146 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_libdir_flag_spec_F77='-R$libdir'
14148 ;;
14149 *)
14150 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14151 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14152 ;;
14153 esac
14154 fi
14155 ;;
14156
14157 os2*)
14158 hardcode_libdir_flag_spec_F77='-L$libdir'
14159 hardcode_minus_L_F77=yes
14160 allow_undefined_flag_F77=unsupported
14161 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'
14162 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14163 ;;
14164
14165 osf3*)
14166 if test "$GCC" = yes; then
14167 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14168 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'
14169 else
14170 allow_undefined_flag_F77=' -expect_unresolved \*'
14171 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'
14172 fi
14173 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14174 hardcode_libdir_separator_F77=:
14175 ;;
14176
14177 osf4* | osf5*) # as osf3* with the addition of -msym flag
14178 if test "$GCC" = yes; then
14179 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14180 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'
14181 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14182 else
14183 allow_undefined_flag_F77=' -expect_unresolved \*'
14184 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'
14185 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 +000014186 $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 +000014187
14188 # Both c and cxx compiler support -rpath directly
14189 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14190 fi
14191 hardcode_libdir_separator_F77=:
14192 ;;
14193
a.rottmann9bc8b932004-02-29 15:18:31 +000014194 solaris*)
14195 no_undefined_flag_F77=' -z text'
14196 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014197 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000014198 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14199 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14200 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14201 else
vapier7f19c022007-02-17 14:46:31 +000014202 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000014203 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14206 fi
14207 hardcode_libdir_flag_spec_F77='-R$libdir'
14208 hardcode_shlibpath_var_F77=no
14209 case $host_os in
14210 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000014211 *)
14212 # The compiler driver will combine linker options so we
14213 # cannot just pass the convience library names through
14214 # without $wl, iff we do not link with $LD.
14215 # Luckily, gcc supports the same syntax we need for Sun Studio.
14216 # Supported since Solaris 2.6 (maybe 2.5.1?)
14217 case $wlarc in
14218 '')
14219 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14220 *)
14221 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' ;;
14222 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014223 esac
14224 link_all_deplibs_F77=yes
14225 ;;
14226
14227 sunos4*)
14228 if test "x$host_vendor" = xsequent; then
14229 # Use $CC to link under sequent, because it throws in some extra .o
14230 # files that make .init and .fini sections work.
14231 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14232 else
14233 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14234 fi
14235 hardcode_libdir_flag_spec_F77='-L$libdir'
14236 hardcode_direct_F77=yes
14237 hardcode_minus_L_F77=yes
14238 hardcode_shlibpath_var_F77=no
14239 ;;
14240
14241 sysv4)
14242 case $host_vendor in
14243 sni)
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_direct_F77=yes # is this really true???
14246 ;;
14247 siemens)
14248 ## LD is ld it makes a PLAMLIB
14249 ## CC just makes a GrossModule.
14250 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14251 reload_cmds_F77='$CC -r -o $output$reload_objs'
14252 hardcode_direct_F77=no
14253 ;;
14254 motorola)
14255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14256 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14257 ;;
14258 esac
14259 runpath_var='LD_RUN_PATH'
14260 hardcode_shlibpath_var_F77=no
14261 ;;
14262
14263 sysv4.3*)
14264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14265 hardcode_shlibpath_var_F77=no
14266 export_dynamic_flag_spec_F77='-Bexport'
14267 ;;
14268
14269 sysv4*MP*)
14270 if test -d /usr/nec; then
14271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_shlibpath_var_F77=no
14273 runpath_var=LD_RUN_PATH
14274 hardcode_runpath_var=yes
14275 ld_shlibs_F77=yes
14276 fi
14277 ;;
14278
vapier7f19c022007-02-17 14:46:31 +000014279 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14280 no_undefined_flag_F77='${wl}-z,text'
14281 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014282 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014283 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000014284
a.rottmann9bc8b932004-02-29 15:18:31 +000014285 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000014286 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14287 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 +000014288 else
vapier7f19c022007-02-17 14:46:31 +000014289 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290 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 +000014291 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014292 ;;
14293
vapier7f19c022007-02-17 14:46:31 +000014294 sysv5* | sco3.2v5* | sco5v6*)
14295 # Note: We can NOT use -z defs as we might desire, because we do not
14296 # link with -lc, and that would cause any symbols used from libc to
14297 # always be unresolved, which means just about no library would
14298 # ever link correctly. If we're not using GNU ld we use -z text
14299 # though, which does catch some bad symbols but isn't as heavy-handed
14300 # as -z defs.
14301 no_undefined_flag_F77='${wl}-z,text'
14302 allow_undefined_flag_F77='${wl}-z,nodefs'
14303 archive_cmds_need_lc_F77=no
a.rottmann9bc8b932004-02-29 15:18:31 +000014304 hardcode_shlibpath_var_F77=no
vapier7f19c022007-02-17 14:46:31 +000014305 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14306 hardcode_libdir_separator_F77=':'
14307 link_all_deplibs_F77=yes
14308 export_dynamic_flag_spec_F77='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000014309 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000014310
14311 if test "$GCC" = yes; then
14312 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14314 else
14315 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14316 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14317 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000014318 ;;
14319
14320 uts4*)
14321 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14322 hardcode_libdir_flag_spec_F77='-L$libdir'
14323 hardcode_shlibpath_var_F77=no
14324 ;;
14325
14326 *)
14327 ld_shlibs_F77=no
14328 ;;
14329 esac
14330 fi
14331
mlcreech94984912008-03-04 19:03:08 +000014332{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14333echo "${ECHO_T}$ld_shlibs_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014334test "$ld_shlibs_F77" = no && can_build_shared=no
14335
a.rottmann9bc8b932004-02-29 15:18:31 +000014336#
14337# Do we need to explicitly link libc?
14338#
14339case "x$archive_cmds_need_lc_F77" in
14340x|xyes)
14341 # Assume -lc should be added
14342 archive_cmds_need_lc_F77=yes
14343
14344 if test "$enable_shared" = yes && test "$GCC" = yes; then
14345 case $archive_cmds_F77 in
14346 *'~'*)
14347 # FIXME: we may have to deal with multi-command sequences.
14348 ;;
14349 '$CC '*)
14350 # Test whether the compiler implicitly links with -lc since on some
14351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14352 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000014353 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14354echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014355 $rm conftest*
14356 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14357
14358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14359 (eval $ac_compile) 2>&5
14360 ac_status=$?
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); } 2>conftest.err; then
14363 soname=conftest
14364 lib=conftest
14365 libobjs=conftest.$ac_objext
14366 deplibs=
14367 wl=$lt_prog_compiler_wl_F77
vapier7f19c022007-02-17 14:46:31 +000014368 pic_flag=$lt_prog_compiler_pic_F77
a.rottmann9bc8b932004-02-29 15:18:31 +000014369 compiler_flags=-v
14370 linker_flags=-v
14371 verstring=
14372 output_objdir=.
14373 libname=conftest
14374 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14375 allow_undefined_flag_F77=
14376 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14377 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }
14381 then
14382 archive_cmds_need_lc_F77=no
14383 else
14384 archive_cmds_need_lc_F77=yes
14385 fi
14386 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14387 else
14388 cat conftest.err 1>&5
14389 fi
14390 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000014391 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14392echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014393 ;;
14394 esac
14395 fi
14396 ;;
14397esac
14398
mlcreech94984912008-03-04 19:03:08 +000014399{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000014401library_names_spec=
14402libname_spec='lib$name'
14403soname_spec=
vapier7f19c022007-02-17 14:46:31 +000014404shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000014405postinstall_cmds=
14406postuninstall_cmds=
14407finish_cmds=
14408finish_eval=
14409shlibpath_var=
14410shlibpath_overrides_runpath=unknown
14411version_type=none
14412dynamic_linker="$host_os ld.so"
14413sys_lib_dlsearch_path_spec="/lib /usr/lib"
14414if test "$GCC" = yes; then
14415 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14416 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14417 # if the path contains ";" then we assume it to be the separator
14418 # otherwise default to the standard path separator (i.e. ":") - it is
14419 # assumed that no part of a normal pathname contains ";" but that should
14420 # okay in the real world where ";" in dirpaths is itself problematic.
14421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14422 else
14423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14424 fi
14425else
14426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14427fi
14428need_lib_prefix=unknown
14429hardcode_into_libs=no
14430
14431# when you set need_version to no, make sure it does not cause -set_version
14432# flags to be left without arguments
14433need_version=unknown
14434
14435case $host_os in
14436aix3*)
14437 version_type=linux
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14439 shlibpath_var=LIBPATH
14440
14441 # AIX 3 has no versioning support, so we append a major version to the name.
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 ;;
14444
14445aix4* | aix5*)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 hardcode_into_libs=yes
14450 if test "$host_cpu" = ia64; then
14451 # AIX 5 supports IA64
14452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14453 shlibpath_var=LD_LIBRARY_PATH
14454 else
14455 # With GCC up to 2.95.x, collect2 would create an import file
14456 # for dependence libraries. The import file would start with
14457 # the line `#! .'. This would cause the generated library to
14458 # depend on `.', always an invalid library. This was fixed in
14459 # development snapshots of GCC prior to 3.0.
14460 case $host_os in
14461 aix4 | aix4.[01] | aix4.[01].*)
14462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14463 echo ' yes '
14464 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14465 :
14466 else
14467 can_build_shared=no
14468 fi
14469 ;;
14470 esac
14471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14472 # soname into executable. Probably we can add versioning support to
14473 # collect2, so additional links can be useful in future.
14474 if test "$aix_use_runtimelinking" = yes; then
14475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14476 # instead of lib<name>.a to let people know that these are not
14477 # typical AIX shared libraries.
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 else
14480 # We preserve .a as extension for shared libraries through AIX4.2
14481 # and later when we are not doing run time linking.
14482 library_names_spec='${libname}${release}.a $libname.a'
14483 soname_spec='${libname}${release}${shared_ext}$major'
14484 fi
14485 shlibpath_var=LIBPATH
14486 fi
14487 ;;
14488
14489amigaos*)
14490 library_names_spec='$libname.ixlibrary $libname.a'
14491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14492 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'
14493 ;;
14494
14495beos*)
14496 library_names_spec='${libname}${shared_ext}'
14497 dynamic_linker="$host_os ld.so"
14498 shlibpath_var=LIBRARY_PATH
14499 ;;
14500
vapier7f19c022007-02-17 14:46:31 +000014501bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014502 version_type=linux
14503 need_version=no
14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14509 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14510 # the default ld.so.conf also contains /usr/contrib/lib and
14511 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14512 # libtool to hard-code these into programs
14513 ;;
14514
14515cygwin* | mingw* | pw32*)
14516 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000014517 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014518 need_version=no
14519 need_lib_prefix=no
14520
14521 case $GCC,$host_os in
14522 yes,cygwin* | yes,mingw* | yes,pw32*)
14523 library_names_spec='$libname.dll.a'
14524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14525 postinstall_cmds='base_file=`basename \${file}`~
14526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14527 dldir=$destdir/`dirname \$dlpath`~
14528 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000014529 $install_prog $dir/$dlname \$dldir/$dlname~
14530 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000014531 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14532 dlpath=$dir/\$dldll~
14533 $rm \$dlpath'
14534 shlibpath_overrides_runpath=yes
14535
14536 case $host_os in
14537 cygwin*)
14538 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14539 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14540 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14541 ;;
14542 mingw*)
14543 # MinGW DLLs use traditional 'lib' prefix
14544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14545 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14546 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14547 # It is most probably a Windows format PATH printed by
14548 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14549 # path with ; separators, and with drive letters. We can handle the
14550 # drive letters (cygwin fileutils understands them), so leave them,
14551 # especially as we might pass files found there to a mingw objdump,
14552 # which wouldn't understand a cygwinified path. Ahh.
14553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14554 else
14555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14556 fi
14557 ;;
14558 pw32*)
14559 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000014560 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 +000014561 ;;
14562 esac
14563 ;;
14564
vapier7f19c022007-02-17 14:46:31 +000014565 linux*)
14566 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568 supports_anon_versioning=no
14569 case `$LD -v 2>/dev/null` in
14570 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14571 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14572 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14573 *\ 2.11.*) ;; # other 2.11 versions
14574 *) supports_anon_versioning=yes ;;
14575 esac
14576 if test $supports_anon_versioning = yes; then
14577 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14578cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14579$echo "local: *; };" >> $output_objdir/$libname.ver~
14580 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14581 else
14582 $archive_expsym_cmds="$archive_cmds"
14583 fi
14584 else
14585 ld_shlibs=no
14586 fi
14587 ;;
14588
a.rottmann9bc8b932004-02-29 15:18:31 +000014589 *)
14590 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14591 ;;
14592 esac
14593 dynamic_linker='Win32 ld.exe'
14594 # FIXME: first we should search . and the directory the executable is in
14595 shlibpath_var=PATH
14596 ;;
14597
14598darwin* | rhapsody*)
14599 dynamic_linker="$host_os dyld"
14600 version_type=darwin
14601 need_lib_prefix=no
14602 need_version=no
14603 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14604 soname_spec='${libname}${release}${major}$shared_ext'
14605 shlibpath_overrides_runpath=yes
14606 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000014607 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000014608 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14609 if test "$GCC" = yes; then
14610 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"`
14611 else
14612 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14613 fi
14614 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14615 ;;
14616
14617dgux*)
14618 version_type=linux
14619 need_lib_prefix=no
14620 need_version=no
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 ;;
14625
14626freebsd1*)
14627 dynamic_linker=no
14628 ;;
14629
14630kfreebsd*-gnu)
14631 version_type=linux
14632 need_lib_prefix=no
14633 need_version=no
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 dynamic_linker='GNU ld.so'
14640 ;;
14641
vapier7f19c022007-02-17 14:46:31 +000014642freebsd* | dragonfly*)
14643 # DragonFly does not have aout. When/if they implement a new
14644 # versioning mechanism, adjust this.
14645 if test -x /usr/bin/objformat; then
14646 objformat=`/usr/bin/objformat`
14647 else
14648 case $host_os in
14649 freebsd[123]*) objformat=aout ;;
14650 *) objformat=elf ;;
14651 esac
14652 fi
14653 # Handle Gentoo/FreeBSD as it was Linux
14654 case $host_vendor in
14655 gentoo)
14656 version_type=linux ;;
14657 *)
14658 version_type=freebsd-$objformat ;;
14659 esac
14660
a.rottmann9bc8b932004-02-29 15:18:31 +000014661 case $version_type in
14662 freebsd-elf*)
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14664 need_version=no
14665 need_lib_prefix=no
14666 ;;
14667 freebsd-*)
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14669 need_version=yes
14670 ;;
vapier7f19c022007-02-17 14:46:31 +000014671 linux)
14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14673 soname_spec='${libname}${release}${shared_ext}$major'
14674 need_lib_prefix=no
14675 need_version=no
14676 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014677 esac
14678 shlibpath_var=LD_LIBRARY_PATH
14679 case $host_os in
14680 freebsd2*)
14681 shlibpath_overrides_runpath=yes
14682 ;;
vapier7f19c022007-02-17 14:46:31 +000014683 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014684 shlibpath_overrides_runpath=yes
14685 hardcode_into_libs=yes
14686 ;;
vapier7f19c022007-02-17 14:46:31 +000014687 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14688 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000014689 shlibpath_overrides_runpath=no
14690 hardcode_into_libs=yes
14691 ;;
vapier7f19c022007-02-17 14:46:31 +000014692 freebsd*) # from 4.6 on
14693 shlibpath_overrides_runpath=yes
14694 hardcode_into_libs=yes
14695 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000014696 esac
14697 ;;
14698
14699gnu*)
14700 version_type=linux
14701 need_lib_prefix=no
14702 need_version=no
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 shlibpath_var=LD_LIBRARY_PATH
14706 hardcode_into_libs=yes
14707 ;;
14708
14709hpux9* | hpux10* | hpux11*)
14710 # Give a soname corresponding to the major version so that dld.sl refuses to
14711 # link against other versions.
14712 version_type=sunos
14713 need_lib_prefix=no
14714 need_version=no
vapier7f19c022007-02-17 14:46:31 +000014715 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000014716 ia64*)
vapier7f19c022007-02-17 14:46:31 +000014717 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000014718 hardcode_into_libs=yes
14719 dynamic_linker="$host_os dld.so"
14720 shlibpath_var=LD_LIBRARY_PATH
14721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14724 if test "X$HPUX_IA64_MODE" = X32; then
14725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14726 else
14727 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14728 fi
14729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14730 ;;
14731 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000014732 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014733 hardcode_into_libs=yes
14734 dynamic_linker="$host_os dld.sl"
14735 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14741 ;;
14742 *)
vapier7f19c022007-02-17 14:46:31 +000014743 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000014744 dynamic_linker="$host_os dld.sl"
14745 shlibpath_var=SHLIB_PATH
14746 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 ;;
14750 esac
14751 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14752 postinstall_cmds='chmod 555 $lib'
14753 ;;
14754
vapier7f19c022007-02-17 14:46:31 +000014755interix3*)
14756 version_type=linux
14757 need_lib_prefix=no
14758 need_version=no
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 shlibpath_overrides_runpath=no
14764 hardcode_into_libs=yes
14765 ;;
14766
a.rottmann9bc8b932004-02-29 15:18:31 +000014767irix5* | irix6* | nonstopux*)
14768 case $host_os in
14769 nonstopux*) version_type=nonstopux ;;
14770 *)
14771 if test "$lt_cv_prog_gnu_ld" = yes; then
14772 version_type=linux
14773 else
14774 version_type=irix
14775 fi ;;
14776 esac
14777 need_lib_prefix=no
14778 need_version=no
14779 soname_spec='${libname}${release}${shared_ext}$major'
14780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14781 case $host_os in
14782 irix5* | nonstopux*)
14783 libsuff= shlibsuff=
14784 ;;
14785 *)
14786 case $LD in # libtool.m4 will add one of these switches to LD
14787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14788 libsuff= shlibsuff= libmagic=32-bit;;
14789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14790 libsuff=32 shlibsuff=N32 libmagic=N32;;
14791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14793 *) libsuff= shlibsuff= libmagic=never-match;;
14794 esac
14795 ;;
14796 esac
14797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14798 shlibpath_overrides_runpath=no
14799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14801 hardcode_into_libs=yes
14802 ;;
14803
14804# No shared lib support for Linux oldld, aout, or coff.
14805linux*oldld* | linux*aout* | linux*coff*)
14806 dynamic_linker=no
14807 ;;
14808
14809# This must be Linux ELF.
14810linux*)
14811 version_type=linux
14812 need_lib_prefix=no
14813 need_version=no
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14817 shlibpath_var=LD_LIBRARY_PATH
14818 shlibpath_overrides_runpath=no
14819 # This implies no fast_install, which is unacceptable.
14820 # Some rework will be needed to allow for fast_install
14821 # before this can be enabled.
14822 hardcode_into_libs=yes
14823
14824 # Append ld.so.conf contents to the search path
14825 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000014826 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' ' '`
14827 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000014828 fi
14829
14830 # We used to test for /lib/ld.so.1 and disable shared libraries on
14831 # powerpc, because MkLinux only supported shared libraries with the
14832 # GNU dynamic linker. Since this was broken with cross compilers,
14833 # most powerpc-linux boxes support dynamic linking these days and
14834 # people can always --disable-shared, the test was removed, and we
14835 # assume the GNU/Linux dynamic linker is in use.
14836 dynamic_linker='GNU/Linux ld.so'
14837 ;;
14838
14839knetbsd*-gnu)
14840 version_type=linux
14841 need_lib_prefix=no
14842 need_version=no
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=no
14847 hardcode_into_libs=yes
14848 dynamic_linker='GNU ld.so'
14849 ;;
14850
14851netbsd*)
14852 version_type=sunos
14853 need_lib_prefix=no
14854 need_version=no
14855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14858 dynamic_linker='NetBSD (a.out) ld.so'
14859 else
14860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14861 soname_spec='${libname}${release}${shared_ext}$major'
14862 dynamic_linker='NetBSD ld.elf_so'
14863 fi
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14866 hardcode_into_libs=yes
14867 ;;
14868
14869newsos6)
14870 version_type=linux
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 shlibpath_var=LD_LIBRARY_PATH
14873 shlibpath_overrides_runpath=yes
14874 ;;
14875
14876nto-qnx*)
14877 version_type=linux
14878 need_lib_prefix=no
14879 need_version=no
14880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14881 soname_spec='${libname}${release}${shared_ext}$major'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=yes
14884 ;;
14885
14886openbsd*)
14887 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000014888 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000014889 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000014890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14891 case $host_os in
14892 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14893 *) need_version=no ;;
14894 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000014895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899 case $host_os in
14900 openbsd2.[89] | openbsd2.[89].*)
14901 shlibpath_overrides_runpath=no
14902 ;;
14903 *)
14904 shlibpath_overrides_runpath=yes
14905 ;;
14906 esac
14907 else
14908 shlibpath_overrides_runpath=yes
14909 fi
14910 ;;
14911
14912os2*)
14913 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000014914 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000014915 need_lib_prefix=no
14916 library_names_spec='$libname${shared_ext} $libname.a'
14917 dynamic_linker='OS/2 ld.exe'
14918 shlibpath_var=LIBPATH
14919 ;;
14920
14921osf3* | osf4* | osf5*)
14922 version_type=osf
14923 need_lib_prefix=no
14924 need_version=no
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14930 ;;
14931
a.rottmann9bc8b932004-02-29 15:18:31 +000014932solaris*)
14933 version_type=linux
14934 need_lib_prefix=no
14935 need_version=no
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14939 shlibpath_overrides_runpath=yes
14940 hardcode_into_libs=yes
14941 # ldd complains unless libraries are executable
14942 postinstall_cmds='chmod +x $lib'
14943 ;;
14944
14945sunos4*)
14946 version_type=sunos
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14951 if test "$with_gnu_ld" = yes; then
14952 need_lib_prefix=no
14953 fi
14954 need_version=yes
14955 ;;
14956
vapier7f19c022007-02-17 14:46:31 +000014957sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000014958 version_type=linux
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 case $host_vendor in
14963 sni)
14964 shlibpath_overrides_runpath=no
14965 need_lib_prefix=no
14966 export_dynamic_flag_spec='${wl}-Blargedynsym'
14967 runpath_var=LD_RUN_PATH
14968 ;;
14969 siemens)
14970 need_lib_prefix=no
14971 ;;
14972 motorola)
14973 need_lib_prefix=no
14974 need_version=no
14975 shlibpath_overrides_runpath=no
14976 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14977 ;;
14978 esac
14979 ;;
14980
14981sysv4*MP*)
14982 if test -d /usr/nec ;then
14983 version_type=linux
14984 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14985 soname_spec='$libname${shared_ext}.$major'
14986 shlibpath_var=LD_LIBRARY_PATH
14987 fi
14988 ;;
14989
vapier7f19c022007-02-17 14:46:31 +000014990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14991 version_type=freebsd-elf
14992 need_lib_prefix=no
14993 need_version=no
14994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14995 soname_spec='${libname}${release}${shared_ext}$major'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 hardcode_into_libs=yes
14998 if test "$with_gnu_ld" = yes; then
14999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15000 shlibpath_overrides_runpath=no
15001 else
15002 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15003 shlibpath_overrides_runpath=yes
15004 case $host_os in
15005 sco3.2v5*)
15006 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15007 ;;
15008 esac
15009 fi
15010 sys_lib_dlsearch_path_spec='/usr/lib'
15011 ;;
15012
a.rottmann9bc8b932004-02-29 15:18:31 +000015013uts4*)
15014 version_type=linux
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 shlibpath_var=LD_LIBRARY_PATH
15018 ;;
15019
15020*)
15021 dynamic_linker=no
15022 ;;
15023esac
mlcreech94984912008-03-04 19:03:08 +000015024{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15025echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015026test "$dynamic_linker" = no && can_build_shared=no
15027
vapier7f19c022007-02-17 14:46:31 +000015028variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15029if test "$GCC" = yes; then
15030 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15031fi
15032
mlcreech94984912008-03-04 19:03:08 +000015033{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15034echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015035hardcode_action_F77=
15036if test -n "$hardcode_libdir_flag_spec_F77" || \
vapier7f19c022007-02-17 14:46:31 +000015037 test -n "$runpath_var_F77" || \
15038 test "X$hardcode_automatic_F77" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015039
15040 # We can hardcode non-existant directories.
15041 if test "$hardcode_direct_F77" != no &&
15042 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15043 # have to relink, otherwise we might link with an installed library
15044 # when we should be linking with a yet-to-be-installed one
15045 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15046 test "$hardcode_minus_L_F77" != no; then
15047 # Linking always hardcodes the temporary library directory.
15048 hardcode_action_F77=relink
15049 else
15050 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15051 hardcode_action_F77=immediate
15052 fi
15053else
15054 # We cannot hardcode anything, or else we can only hardcode existing
15055 # directories.
15056 hardcode_action_F77=unsupported
15057fi
mlcreech94984912008-03-04 19:03:08 +000015058{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15059echo "${ECHO_T}$hardcode_action_F77" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015060
15061if test "$hardcode_action_F77" = relink; then
15062 # Fast installation is not supported
15063 enable_fast_install=no
15064elif test "$shlibpath_overrides_runpath" = yes ||
15065 test "$enable_shared" = no; then
15066 # Fast installation is not necessary
15067 enable_fast_install=needless
15068fi
15069
a.rottmann9bc8b932004-02-29 15:18:31 +000015070
15071# The else clause should only fire when bootstrapping the
15072# libtool distribution, otherwise you forgot to ship ltmain.sh
15073# with your package, and you will get complaints that there are
15074# no rules to generate ltmain.sh.
15075if test -f "$ltmain"; then
15076 # See if we are running on zsh, and set the options which allow our commands through
15077 # without removal of \ escapes.
15078 if test -n "${ZSH_VERSION+set}" ; then
15079 setopt NO_GLOB_SUBST
15080 fi
15081 # Now quote all the things that may contain metacharacters while being
15082 # careful not to overquote the AC_SUBSTed values. We take copies of the
15083 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000015084 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 +000015085 SED SHELL STRIP \
15086 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15087 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15088 deplibs_check_method reload_flag reload_cmds need_locks \
15089 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15090 lt_cv_sys_global_symbol_to_c_name_address \
15091 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15092 old_postinstall_cmds old_postuninstall_cmds \
15093 compiler_F77 \
15094 CC_F77 \
15095 LD_F77 \
15096 lt_prog_compiler_wl_F77 \
15097 lt_prog_compiler_pic_F77 \
15098 lt_prog_compiler_static_F77 \
15099 lt_prog_compiler_no_builtin_flag_F77 \
15100 export_dynamic_flag_spec_F77 \
15101 thread_safe_flag_spec_F77 \
15102 whole_archive_flag_spec_F77 \
15103 enable_shared_with_static_runtimes_F77 \
15104 old_archive_cmds_F77 \
15105 old_archive_from_new_cmds_F77 \
15106 predep_objects_F77 \
15107 postdep_objects_F77 \
15108 predeps_F77 \
15109 postdeps_F77 \
15110 compiler_lib_search_path_F77 \
15111 archive_cmds_F77 \
15112 archive_expsym_cmds_F77 \
15113 postinstall_cmds_F77 \
15114 postuninstall_cmds_F77 \
15115 old_archive_from_expsyms_cmds_F77 \
15116 allow_undefined_flag_F77 \
15117 no_undefined_flag_F77 \
15118 export_symbols_cmds_F77 \
15119 hardcode_libdir_flag_spec_F77 \
15120 hardcode_libdir_flag_spec_ld_F77 \
15121 hardcode_libdir_separator_F77 \
15122 hardcode_automatic_F77 \
15123 module_cmds_F77 \
15124 module_expsym_cmds_F77 \
15125 lt_cv_prog_compiler_c_o_F77 \
15126 exclude_expsyms_F77 \
15127 include_expsyms_F77; do
15128
15129 case $var in
15130 old_archive_cmds_F77 | \
15131 old_archive_from_new_cmds_F77 | \
15132 archive_cmds_F77 | \
15133 archive_expsym_cmds_F77 | \
15134 module_cmds_F77 | \
15135 module_expsym_cmds_F77 | \
15136 old_archive_from_expsyms_cmds_F77 | \
15137 export_symbols_cmds_F77 | \
15138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15139 postinstall_cmds | postuninstall_cmds | \
15140 old_postinstall_cmds | old_postuninstall_cmds | \
15141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15142 # Double-quote double-evaled strings.
15143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15144 ;;
15145 *)
15146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15147 ;;
15148 esac
15149 done
15150
15151 case $lt_echo in
15152 *'\$0 --fallback-echo"')
15153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15154 ;;
15155 esac
15156
15157cfgfile="$ofile"
15158
15159 cat <<__EOF__ >> "$cfgfile"
15160# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15161
15162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15163
15164# Shell to use when invoking shell scripts.
15165SHELL=$lt_SHELL
15166
15167# Whether or not to build shared libraries.
15168build_libtool_libs=$enable_shared
15169
15170# Whether or not to build static libraries.
15171build_old_libs=$enable_static
15172
15173# Whether or not to add -lc for building shared libraries.
15174build_libtool_need_lc=$archive_cmds_need_lc_F77
15175
15176# Whether or not to disallow shared libs when runtime libs are static
15177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15178
15179# Whether or not to optimize for fast installation.
15180fast_install=$enable_fast_install
15181
15182# The host system.
15183host_alias=$host_alias
15184host=$host
vapier7f19c022007-02-17 14:46:31 +000015185host_os=$host_os
15186
15187# The build system.
15188build_alias=$build_alias
15189build=$build
15190build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000015191
15192# An echo program that does not interpret backslashes.
15193echo=$lt_echo
15194
15195# The archiver.
15196AR=$lt_AR
15197AR_FLAGS=$lt_AR_FLAGS
15198
15199# A C compiler.
15200LTCC=$lt_LTCC
15201
vapier7f19c022007-02-17 14:46:31 +000015202# LTCC compiler flags.
15203LTCFLAGS=$lt_LTCFLAGS
15204
a.rottmann9bc8b932004-02-29 15:18:31 +000015205# A language-specific compiler.
15206CC=$lt_compiler_F77
15207
15208# Is the compiler the GNU C compiler?
15209with_gcc=$GCC_F77
15210
15211# An ERE matcher.
15212EGREP=$lt_EGREP
15213
15214# The linker used to build libraries.
15215LD=$lt_LD_F77
15216
15217# Whether we need hard or soft links.
15218LN_S=$lt_LN_S
15219
15220# A BSD-compatible nm program.
15221NM=$lt_NM
15222
15223# A symbol stripping program
15224STRIP=$lt_STRIP
15225
15226# Used to examine libraries when file_magic_cmd begins "file"
15227MAGIC_CMD=$MAGIC_CMD
15228
15229# Used on cygwin: DLL creation program.
15230DLLTOOL="$DLLTOOL"
15231
15232# Used on cygwin: object dumper.
15233OBJDUMP="$OBJDUMP"
15234
15235# Used on cygwin: assembler.
15236AS="$AS"
15237
15238# The name of the directory that contains temporary libtool files.
15239objdir=$objdir
15240
15241# How to create reloadable object files.
15242reload_flag=$lt_reload_flag
15243reload_cmds=$lt_reload_cmds
15244
15245# How to pass a linker flag through the compiler.
15246wl=$lt_lt_prog_compiler_wl_F77
15247
15248# Object file suffix (normally "o").
15249objext="$ac_objext"
15250
15251# Old archive suffix (normally "a").
15252libext="$libext"
15253
15254# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000015255shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000015256
15257# Executable file suffix (normally "").
15258exeext="$exeext"
15259
15260# Additional compiler flags for building library objects.
15261pic_flag=$lt_lt_prog_compiler_pic_F77
15262pic_mode=$pic_mode
15263
15264# What is the maximum length of a command?
15265max_cmd_len=$lt_cv_sys_max_cmd_len
15266
15267# Does compiler simultaneously support -c and -o options?
15268compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15269
vapier7f19c022007-02-17 14:46:31 +000015270# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000015271need_locks=$lt_need_locks
15272
15273# Do we need the lib prefix for modules?
15274need_lib_prefix=$need_lib_prefix
15275
15276# Do we need a version for libraries?
15277need_version=$need_version
15278
15279# Whether dlopen is supported.
15280dlopen_support=$enable_dlopen
15281
15282# Whether dlopen of programs is supported.
15283dlopen_self=$enable_dlopen_self
15284
15285# Whether dlopen of statically linked programs is supported.
15286dlopen_self_static=$enable_dlopen_self_static
15287
15288# Compiler flag to prevent dynamic linking.
15289link_static_flag=$lt_lt_prog_compiler_static_F77
15290
15291# Compiler flag to turn off builtin functions.
15292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15293
15294# Compiler flag to allow reflexive dlopens.
15295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15296
15297# Compiler flag to generate shared objects directly from archives.
15298whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15299
15300# Compiler flag to generate thread-safe objects.
15301thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15302
15303# Library versioning type.
15304version_type=$version_type
15305
15306# Format of library name prefix.
15307libname_spec=$lt_libname_spec
15308
15309# List of archive names. First name is the real one, the rest are links.
15310# The last name is the one that the linker finds with -lNAME.
15311library_names_spec=$lt_library_names_spec
15312
15313# The coded name of the library, if different from the real name.
15314soname_spec=$lt_soname_spec
15315
15316# Commands used to build and install an old-style archive.
15317RANLIB=$lt_RANLIB
15318old_archive_cmds=$lt_old_archive_cmds_F77
15319old_postinstall_cmds=$lt_old_postinstall_cmds
15320old_postuninstall_cmds=$lt_old_postuninstall_cmds
15321
15322# Create an old-style archive from a shared archive.
15323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15324
15325# Create a temporary old-style archive to link instead of a shared archive.
15326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15327
15328# Commands used to build and install a shared archive.
15329archive_cmds=$lt_archive_cmds_F77
15330archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15331postinstall_cmds=$lt_postinstall_cmds
15332postuninstall_cmds=$lt_postuninstall_cmds
15333
15334# Commands used to build a loadable module (assumed same as above if empty)
15335module_cmds=$lt_module_cmds_F77
15336module_expsym_cmds=$lt_module_expsym_cmds_F77
15337
15338# Commands to strip libraries.
15339old_striplib=$lt_old_striplib
15340striplib=$lt_striplib
15341
15342# Dependencies to place before the objects being linked to create a
15343# shared library.
15344predep_objects=$lt_predep_objects_F77
15345
15346# Dependencies to place after the objects being linked to create a
15347# shared library.
15348postdep_objects=$lt_postdep_objects_F77
15349
15350# Dependencies to place before the objects being linked to create a
15351# shared library.
15352predeps=$lt_predeps_F77
15353
15354# Dependencies to place after the objects being linked to create a
15355# shared library.
15356postdeps=$lt_postdeps_F77
15357
15358# The library search path used internally by the compiler when linking
15359# a shared library.
15360compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15361
15362# Method to check whether dependent libraries are shared objects.
15363deplibs_check_method=$lt_deplibs_check_method
15364
15365# Command to use when deplibs_check_method == file_magic.
15366file_magic_cmd=$lt_file_magic_cmd
15367
15368# Flag that allows shared libraries with undefined symbols to be built.
15369allow_undefined_flag=$lt_allow_undefined_flag_F77
15370
15371# Flag that forces no undefined symbols.
15372no_undefined_flag=$lt_no_undefined_flag_F77
15373
15374# Commands used to finish a libtool library installation in a directory.
15375finish_cmds=$lt_finish_cmds
15376
15377# Same as above, but a single script fragment to be evaled but not shown.
15378finish_eval=$lt_finish_eval
15379
15380# Take the output of nm and produce a listing of raw symbols and C names.
15381global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15382
15383# Transform the output of nm in a proper C declaration
15384global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15385
15386# Transform the output of nm in a C name address pair
15387global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15388
15389# This is the shared library runtime path variable.
15390runpath_var=$runpath_var
15391
15392# This is the shared library path variable.
15393shlibpath_var=$shlibpath_var
15394
15395# Is shlibpath searched before the hard-coded library search path?
15396shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15397
15398# How to hardcode a shared library path into an executable.
15399hardcode_action=$hardcode_action_F77
15400
15401# Whether we should hardcode library paths into libraries.
15402hardcode_into_libs=$hardcode_into_libs
15403
15404# Flag to hardcode \$libdir into a binary during linking.
15405# This must work even if \$libdir does not exist.
15406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15407
15408# If ld is used when linking, flag to hardcode \$libdir into
15409# a binary during linking. This must work even if \$libdir does
15410# not exist.
15411hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15412
15413# Whether we need a single -rpath flag with a separated argument.
15414hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15415
15416# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15417# resulting binary.
15418hardcode_direct=$hardcode_direct_F77
15419
15420# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15421# resulting binary.
15422hardcode_minus_L=$hardcode_minus_L_F77
15423
15424# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15425# the resulting binary.
15426hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15427
15428# Set to yes if building a shared library automatically hardcodes DIR into the library
15429# and all subsequent libraries and executables linked against it.
15430hardcode_automatic=$hardcode_automatic_F77
15431
15432# Variables whose values should be saved in libtool wrapper scripts and
15433# restored at relink time.
15434variables_saved_for_relink="$variables_saved_for_relink"
15435
15436# Whether libtool must link a program against all its dependency libraries.
15437link_all_deplibs=$link_all_deplibs_F77
15438
15439# Compile-time system search path for libraries
15440sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15441
15442# Run-time system search path for libraries
15443sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15444
15445# Fix the shell variable \$srcfile for the compiler.
15446fix_srcfile_path="$fix_srcfile_path_F77"
15447
15448# Set to yes if exported symbols are required.
15449always_export_symbols=$always_export_symbols_F77
15450
15451# The commands to list exported symbols.
15452export_symbols_cmds=$lt_export_symbols_cmds_F77
15453
15454# The commands to extract the exported symbol list from a shared archive.
15455extract_expsyms_cmds=$lt_extract_expsyms_cmds
15456
15457# Symbols that should not be listed in the preloaded symbols.
15458exclude_expsyms=$lt_exclude_expsyms_F77
15459
15460# Symbols that must always be exported.
15461include_expsyms=$lt_include_expsyms_F77
15462
15463# ### END LIBTOOL TAG CONFIG: $tagname
15464
15465__EOF__
15466
15467
15468else
15469 # If there is no Makefile yet, we rely on a make rule to execute
15470 # `config.status --recheck' to rerun these tests and create the
15471 # libtool script then.
15472 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15473 if test -f "$ltmain_in"; then
15474 test -f Makefile && make "$ltmain"
15475 fi
15476fi
15477
15478
15479ac_ext=c
15480ac_cpp='$CPP $CPPFLAGS'
15481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15483ac_compiler_gnu=$ac_cv_c_compiler_gnu
15484
15485CC="$lt_save_CC"
15486
15487 else
15488 tagname=""
15489 fi
15490 ;;
15491
15492 GCJ)
15493 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15494
15495
a.rottmann9bc8b932004-02-29 15:18:31 +000015496# Source file extension for Java test sources.
15497ac_ext=java
15498
15499# Object file extension for compiled Java test sources.
15500objext=o
15501objext_GCJ=$objext
15502
15503# Code to be used in simple compile tests
15504lt_simple_compile_test_code="class foo {}\n"
15505
15506# Code to be used in simple link tests
vapier7f19c022007-02-17 14:46:31 +000015507lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
a.rottmann9bc8b932004-02-29 15:18:31 +000015508
15509# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15510
15511# If no C compiler was specified, use CC.
15512LTCC=${LTCC-"$CC"}
15513
vapier7f19c022007-02-17 14:46:31 +000015514# If no C compiler flags were specified, use CFLAGS.
15515LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15516
a.rottmann9bc8b932004-02-29 15:18:31 +000015517# Allow CC to be a program name with arguments.
15518compiler=$CC
15519
15520
vapier7f19c022007-02-17 14:46:31 +000015521# save warnings/boilerplate of simple test code
15522ac_outfile=conftest.$ac_objext
15523printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15524eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15525_lt_compiler_boilerplate=`cat conftest.err`
15526$rm conftest*
15527
15528ac_outfile=conftest.$ac_objext
15529printf "$lt_simple_link_test_code" >conftest.$ac_ext
15530eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15531_lt_linker_boilerplate=`cat conftest.err`
15532$rm conftest*
15533
15534
a.rottmann9bc8b932004-02-29 15:18:31 +000015535# Allow CC to be a program name with arguments.
15536lt_save_CC="$CC"
15537CC=${GCJ-"gcj"}
15538compiler=$CC
15539compiler_GCJ=$CC
vapier7f19c022007-02-17 14:46:31 +000015540for cc_temp in $compiler""; do
15541 case $cc_temp in
15542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15544 \-*) ;;
15545 *) break;;
15546 esac
15547done
15548cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15549
a.rottmann9bc8b932004-02-29 15:18:31 +000015550
15551# GCJ did not exist at the time GCC didn't implicitly link libc in.
15552archive_cmds_need_lc_GCJ=no
15553
vapier7f19c022007-02-17 14:46:31 +000015554old_archive_cmds_GCJ=$old_archive_cmds
15555
a.rottmann9bc8b932004-02-29 15:18:31 +000015556
15557lt_prog_compiler_no_builtin_flag_GCJ=
15558
15559if test "$GCC" = yes; then
15560 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15561
15562
mlcreech94984912008-03-04 19:03:08 +000015563{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15564echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015565if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567else
15568 lt_cv_prog_compiler_rtti_exceptions=no
15569 ac_outfile=conftest.$ac_objext
15570 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15571 lt_compiler_flag="-fno-rtti -fno-exceptions"
15572 # Insert the option either (1) after the last *FLAGS variable, or
15573 # (2) before a word containing "conftest.", or (3) at the end.
15574 # Note that $ac_compile itself does not contain backslashes and begins
15575 # with a dollar sign (not a hyphen), so the echo should work correctly.
15576 # The option is referenced via a variable to avoid confusing sed.
15577 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000015581 (eval echo "\"\$as_me:15581: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015582 (eval "$lt_compile" 2>conftest.err)
15583 ac_status=$?
15584 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000015585 echo "$as_me:15585: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015586 if (exit $ac_status) && test -s "$ac_outfile"; then
15587 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015588 # So say no if there are warnings other than the usual output.
15589 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15590 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15591 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015592 lt_cv_prog_compiler_rtti_exceptions=yes
15593 fi
15594 fi
15595 $rm conftest*
15596
15597fi
mlcreech94984912008-03-04 19:03:08 +000015598{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15599echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015600
15601if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15602 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15603else
15604 :
15605fi
15606
15607fi
15608
15609lt_prog_compiler_wl_GCJ=
15610lt_prog_compiler_pic_GCJ=
15611lt_prog_compiler_static_GCJ=
15612
mlcreech94984912008-03-04 19:03:08 +000015613{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15614echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015615
15616 if test "$GCC" = yes; then
15617 lt_prog_compiler_wl_GCJ='-Wl,'
15618 lt_prog_compiler_static_GCJ='-static'
15619
15620 case $host_os in
15621 aix*)
15622 # All AIX code is PIC.
15623 if test "$host_cpu" = ia64; then
15624 # AIX 5 now supports IA64 processor
15625 lt_prog_compiler_static_GCJ='-Bstatic'
15626 fi
15627 ;;
15628
15629 amigaos*)
15630 # FIXME: we need at least 68020 code to build shared libraries, but
15631 # adding the `-m68020' flag to GCC prevents building anything better,
15632 # like `-m68040'.
15633 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15634 ;;
15635
15636 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15637 # PIC is the default for these OSes.
15638 ;;
15639
15640 mingw* | pw32* | os2*)
15641 # This hack is so that the source file can tell whether it is being
15642 # built for inclusion in a dll (and should export symbols for example).
15643 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15644 ;;
15645
15646 darwin* | rhapsody*)
15647 # PIC is the default on this platform
15648 # Common symbols not allowed in MH_DYLIB files
15649 lt_prog_compiler_pic_GCJ='-fno-common'
15650 ;;
15651
vapier7f19c022007-02-17 14:46:31 +000015652 interix3*)
15653 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15654 # Instead, we relocate shared libraries at runtime.
15655 ;;
15656
a.rottmann9bc8b932004-02-29 15:18:31 +000015657 msdosdjgpp*)
15658 # Just because we use GCC doesn't mean we suddenly get shared libraries
15659 # on systems that don't support them.
15660 lt_prog_compiler_can_build_shared_GCJ=no
15661 enable_shared=no
15662 ;;
15663
15664 sysv4*MP*)
15665 if test -d /usr/nec; then
15666 lt_prog_compiler_pic_GCJ=-Kconform_pic
15667 fi
15668 ;;
15669
15670 hpux*)
15671 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15672 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015673 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015674 hppa*64*|ia64*)
15675 # +Z the default
15676 ;;
15677 *)
15678 lt_prog_compiler_pic_GCJ='-fPIC'
15679 ;;
15680 esac
15681 ;;
15682
15683 *)
15684 lt_prog_compiler_pic_GCJ='-fPIC'
15685 ;;
15686 esac
15687 else
15688 # PORTME Check for flag to pass linker flags through the system compiler.
15689 case $host_os in
15690 aix*)
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 if test "$host_cpu" = ia64; then
15693 # AIX 5 now supports IA64 processor
15694 lt_prog_compiler_static_GCJ='-Bstatic'
15695 else
15696 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15697 fi
15698 ;;
vapier7f19c022007-02-17 14:46:31 +000015699 darwin*)
15700 # PIC is the default on this platform
15701 # Common symbols not allowed in MH_DYLIB files
15702 case $cc_basename in
15703 xlc*)
15704 lt_prog_compiler_pic_GCJ='-qnocommon'
15705 lt_prog_compiler_wl_GCJ='-Wl,'
15706 ;;
15707 esac
15708 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015709
15710 mingw* | pw32* | os2*)
15711 # This hack is so that the source file can tell whether it is being
15712 # built for inclusion in a dll (and should export symbols for example).
15713 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15714 ;;
15715
15716 hpux9* | hpux10* | hpux11*)
15717 lt_prog_compiler_wl_GCJ='-Wl,'
15718 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15719 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +000015720 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000015721 hppa*64*|ia64*)
15722 # +Z the default
15723 ;;
15724 *)
15725 lt_prog_compiler_pic_GCJ='+Z'
15726 ;;
15727 esac
15728 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15729 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15730 ;;
15731
15732 irix5* | irix6* | nonstopux*)
15733 lt_prog_compiler_wl_GCJ='-Wl,'
15734 # PIC (with -KPIC) is the default.
15735 lt_prog_compiler_static_GCJ='-non_shared'
15736 ;;
15737
15738 newsos6)
15739 lt_prog_compiler_pic_GCJ='-KPIC'
15740 lt_prog_compiler_static_GCJ='-Bstatic'
15741 ;;
15742
15743 linux*)
vapier7f19c022007-02-17 14:46:31 +000015744 case $cc_basename in
a.rottmann9bc8b932004-02-29 15:18:31 +000015745 icc* | ecc*)
15746 lt_prog_compiler_wl_GCJ='-Wl,'
15747 lt_prog_compiler_pic_GCJ='-KPIC'
15748 lt_prog_compiler_static_GCJ='-static'
15749 ;;
vapier7f19c022007-02-17 14:46:31 +000015750 pgcc* | pgf77* | pgf90* | pgf95*)
15751 # Portland Group compilers (*not* the Pentium gcc compiler,
15752 # which looks to be a dead project)
15753 lt_prog_compiler_wl_GCJ='-Wl,'
15754 lt_prog_compiler_pic_GCJ='-fpic'
15755 lt_prog_compiler_static_GCJ='-Bstatic'
15756 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000015757 ccc*)
15758 lt_prog_compiler_wl_GCJ='-Wl,'
15759 # All Alpha code is PIC.
15760 lt_prog_compiler_static_GCJ='-non_shared'
15761 ;;
15762 esac
15763 ;;
15764
15765 osf3* | osf4* | osf5*)
15766 lt_prog_compiler_wl_GCJ='-Wl,'
15767 # All OSF/1 code is PIC.
15768 lt_prog_compiler_static_GCJ='-non_shared'
15769 ;;
15770
a.rottmann9bc8b932004-02-29 15:18:31 +000015771 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015772 lt_prog_compiler_pic_GCJ='-KPIC'
15773 lt_prog_compiler_static_GCJ='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +000015774 case $cc_basename in
15775 f77* | f90* | f95*)
15776 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15777 *)
15778 lt_prog_compiler_wl_GCJ='-Wl,';;
15779 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000015780 ;;
15781
15782 sunos4*)
15783 lt_prog_compiler_wl_GCJ='-Qoption ld '
15784 lt_prog_compiler_pic_GCJ='-PIC'
15785 lt_prog_compiler_static_GCJ='-Bstatic'
15786 ;;
15787
vapier7f19c022007-02-17 14:46:31 +000015788 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000015789 lt_prog_compiler_wl_GCJ='-Wl,'
15790 lt_prog_compiler_pic_GCJ='-KPIC'
15791 lt_prog_compiler_static_GCJ='-Bstatic'
15792 ;;
15793
15794 sysv4*MP*)
15795 if test -d /usr/nec ;then
15796 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15797 lt_prog_compiler_static_GCJ='-Bstatic'
15798 fi
15799 ;;
15800
vapier7f19c022007-02-17 14:46:31 +000015801 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15802 lt_prog_compiler_wl_GCJ='-Wl,'
15803 lt_prog_compiler_pic_GCJ='-KPIC'
15804 lt_prog_compiler_static_GCJ='-Bstatic'
15805 ;;
15806
15807 unicos*)
15808 lt_prog_compiler_wl_GCJ='-Wl,'
15809 lt_prog_compiler_can_build_shared_GCJ=no
15810 ;;
15811
a.rottmann9bc8b932004-02-29 15:18:31 +000015812 uts4*)
15813 lt_prog_compiler_pic_GCJ='-pic'
15814 lt_prog_compiler_static_GCJ='-Bstatic'
15815 ;;
15816
15817 *)
15818 lt_prog_compiler_can_build_shared_GCJ=no
15819 ;;
15820 esac
15821 fi
15822
mlcreech94984912008-03-04 19:03:08 +000015823{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15824echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015825
15826#
15827# Check to make sure the PIC flag actually works.
15828#
15829if test -n "$lt_prog_compiler_pic_GCJ"; then
15830
mlcreech94984912008-03-04 19:03:08 +000015831{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15832echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015833if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835else
15836 lt_prog_compiler_pic_works_GCJ=no
15837 ac_outfile=conftest.$ac_objext
15838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15839 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15840 # Insert the option either (1) after the last *FLAGS variable, or
15841 # (2) before a word containing "conftest.", or (3) at the end.
15842 # Note that $ac_compile itself does not contain backslashes and begins
15843 # with a dollar sign (not a hyphen), so the echo should work correctly.
15844 # The option is referenced via a variable to avoid confusing sed.
15845 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15848 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000015849 (eval echo "\"\$as_me:15849: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015850 (eval "$lt_compile" 2>conftest.err)
15851 ac_status=$?
15852 cat conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000015853 echo "$as_me:15853: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015854 if (exit $ac_status) && test -s "$ac_outfile"; then
15855 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +000015856 # So say no if there are warnings other than the usual output.
15857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015860 lt_prog_compiler_pic_works_GCJ=yes
15861 fi
15862 fi
15863 $rm conftest*
15864
15865fi
mlcreech94984912008-03-04 19:03:08 +000015866{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15867echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015868
15869if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15870 case $lt_prog_compiler_pic_GCJ in
15871 "" | " "*) ;;
15872 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15873 esac
15874else
15875 lt_prog_compiler_pic_GCJ=
15876 lt_prog_compiler_can_build_shared_GCJ=no
15877fi
15878
15879fi
vapier7f19c022007-02-17 14:46:31 +000015880case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +000015881 # For platforms which do not support PIC, -DPIC is meaningless:
15882 *djgpp*)
15883 lt_prog_compiler_pic_GCJ=
15884 ;;
15885 *)
15886 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15887 ;;
15888esac
15889
vapier7f19c022007-02-17 14:46:31 +000015890#
15891# Check to make sure the static flag actually works.
15892#
15893wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
mlcreech94984912008-03-04 19:03:08 +000015894{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15895echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015896if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else
15899 lt_prog_compiler_static_works_GCJ=no
15900 save_LDFLAGS="$LDFLAGS"
15901 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15902 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15904 # The linker can only warn and ignore the option if not recognized
15905 # So say no if there are warnings
15906 if test -s conftest.err; then
15907 # Append any errors to the config.log.
15908 cat conftest.err 1>&5
15909 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15911 if diff conftest.exp conftest.er2 >/dev/null; then
15912 lt_prog_compiler_static_works_GCJ=yes
15913 fi
15914 else
15915 lt_prog_compiler_static_works_GCJ=yes
15916 fi
15917 fi
15918 $rm conftest*
15919 LDFLAGS="$save_LDFLAGS"
15920
15921fi
mlcreech94984912008-03-04 19:03:08 +000015922{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15923echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
vapier7f19c022007-02-17 14:46:31 +000015924
15925if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15926 :
15927else
15928 lt_prog_compiler_static_GCJ=
15929fi
15930
15931
mlcreech94984912008-03-04 19:03:08 +000015932{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15933echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015934if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937 lt_cv_prog_compiler_c_o_GCJ=no
15938 $rm -r conftest 2>/dev/null
15939 mkdir conftest
15940 cd conftest
15941 mkdir out
15942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15943
15944 lt_compiler_flag="-o out/conftest2.$ac_objext"
15945 # Insert the option either (1) after the last *FLAGS variable, or
15946 # (2) before a word containing "conftest.", or (3) at the end.
15947 # Note that $ac_compile itself does not contain backslashes and begins
15948 # with a dollar sign (not a hyphen), so the echo should work correctly.
15949 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +000015950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +000015951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15952 -e 's:$: $lt_compiler_flag:'`
mlcreech969b2cd2008-03-14 04:11:03 +000015953 (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +000015954 (eval "$lt_compile" 2>out/conftest.err)
15955 ac_status=$?
15956 cat out/conftest.err >&5
mlcreech969b2cd2008-03-14 04:11:03 +000015957 echo "$as_me:15957: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15959 then
15960 # The compiler can only warn and ignore the option if not recognized
15961 # So say no if there are warnings
vapier7f19c022007-02-17 14:46:31 +000015962 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +000015965 lt_cv_prog_compiler_c_o_GCJ=yes
15966 fi
15967 fi
vapier7f19c022007-02-17 14:46:31 +000015968 chmod u+w . 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +000015969 $rm conftest*
15970 # SGI C++ compiler will create directory out/ii_files/ for
15971 # template instantiation
15972 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15973 $rm out/* && rmdir out
15974 cd ..
15975 rmdir conftest
15976 $rm conftest*
15977
15978fi
mlcreech94984912008-03-04 19:03:08 +000015979{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15980echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015981
15982
15983hard_links="nottested"
15984if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15985 # do not overwrite the value of need_locks provided by the user
mlcreech94984912008-03-04 19:03:08 +000015986 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15987echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015988 hard_links=yes
15989 $rm conftest*
15990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15991 touch conftest.a
15992 ln conftest.a conftest.b 2>&5 || hard_links=no
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
mlcreech94984912008-03-04 19:03:08 +000015994 { echo "$as_me:$LINENO: result: $hard_links" >&5
15995echo "${ECHO_T}$hard_links" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000015996 if test "$hard_links" = no; then
15997 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15998echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15999 need_locks=warn
16000 fi
16001else
16002 need_locks=no
16003fi
16004
mlcreech94984912008-03-04 19:03:08 +000016005{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16006echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016007
16008 runpath_var=
16009 allow_undefined_flag_GCJ=
16010 enable_shared_with_static_runtimes_GCJ=no
16011 archive_cmds_GCJ=
16012 archive_expsym_cmds_GCJ=
16013 old_archive_From_new_cmds_GCJ=
16014 old_archive_from_expsyms_cmds_GCJ=
16015 export_dynamic_flag_spec_GCJ=
16016 whole_archive_flag_spec_GCJ=
16017 thread_safe_flag_spec_GCJ=
16018 hardcode_libdir_flag_spec_GCJ=
16019 hardcode_libdir_flag_spec_ld_GCJ=
16020 hardcode_libdir_separator_GCJ=
16021 hardcode_direct_GCJ=no
16022 hardcode_minus_L_GCJ=no
16023 hardcode_shlibpath_var_GCJ=unsupported
16024 link_all_deplibs_GCJ=unknown
16025 hardcode_automatic_GCJ=no
16026 module_cmds_GCJ=
16027 module_expsym_cmds_GCJ=
16028 always_export_symbols_GCJ=no
16029 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16030 # include_expsyms should be a list of space-separated symbols to be *always*
16031 # included in the symbol list
16032 include_expsyms_GCJ=
16033 # exclude_expsyms can be an extended regexp of symbols to exclude
16034 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16035 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16036 # as well as any symbol that contains `d'.
16037 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16038 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16039 # platforms (ab)use it in PIC code, but their linkers get confused if
16040 # the symbol is explicitly referenced. Since portable code cannot
16041 # rely on this symbol name, it's probably fine to never include it in
16042 # preloaded symbol tables.
16043 extract_expsyms_cmds=
vapier7f19c022007-02-17 14:46:31 +000016044 # Just being paranoid about ensuring that cc_basename is set.
16045 for cc_temp in $compiler""; do
16046 case $cc_temp in
16047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16049 \-*) ;;
16050 *) break;;
16051 esac
16052done
16053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
a.rottmann9bc8b932004-02-29 15:18:31 +000016054
16055 case $host_os in
16056 cygwin* | mingw* | pw32*)
16057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16058 # When not using gcc, we currently assume that we are using
16059 # Microsoft Visual C++.
16060 if test "$GCC" != yes; then
16061 with_gnu_ld=no
16062 fi
16063 ;;
vapier7f19c022007-02-17 14:46:31 +000016064 interix*)
16065 # we just hope/assume this is gcc and not c89 (= MSVC++)
16066 with_gnu_ld=yes
16067 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016068 openbsd*)
16069 with_gnu_ld=no
16070 ;;
16071 esac
16072
16073 ld_shlibs_GCJ=yes
16074 if test "$with_gnu_ld" = yes; then
16075 # If archive_cmds runs LD, not CC, wlarc should be empty
16076 wlarc='${wl}'
16077
vapier7f19c022007-02-17 14:46:31 +000016078 # Set some defaults for GNU ld with shared library support. These
16079 # are reset later if shared libraries are not supported. Putting them
16080 # here allows them to be overridden if necessary.
16081 runpath_var=LD_RUN_PATH
16082 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16083 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16084 # ancient GNU ld didn't support --whole-archive et. al.
16085 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16086 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16087 else
16088 whole_archive_flag_spec_GCJ=
16089 fi
16090 supports_anon_versioning=no
16091 case `$LD -v 2>/dev/null` in
16092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16095 *\ 2.11.*) ;; # other 2.11 versions
16096 *) supports_anon_versioning=yes ;;
16097 esac
16098
a.rottmann9bc8b932004-02-29 15:18:31 +000016099 # See if GNU ld supports shared libraries.
16100 case $host_os in
16101 aix3* | aix4* | aix5*)
16102 # On AIX/PPC, the GNU linker is very broken
16103 if test "$host_cpu" != ia64; then
16104 ld_shlibs_GCJ=no
16105 cat <<EOF 1>&2
16106
16107*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16108*** to be unable to reliably create shared libraries on AIX.
16109*** Therefore, libtool is disabling shared libraries support. If you
16110*** really care for shared libraries, you may want to modify your PATH
16111*** so that a non-GNU linker is found, and then restart.
16112
16113EOF
16114 fi
16115 ;;
16116
16117 amigaos*)
16118 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)'
16119 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16120 hardcode_minus_L_GCJ=yes
16121
16122 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16123 # that the semantics of dynamic libraries on AmigaOS, at least up
16124 # to version 4, is to share data among multiple programs linked
16125 # with the same dynamic library. Since this doesn't match the
16126 # behavior of shared libraries on other platforms, we can't use
16127 # them.
16128 ld_shlibs_GCJ=no
16129 ;;
16130
16131 beos*)
16132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16133 allow_undefined_flag_GCJ=unsupported
16134 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16135 # support --undefined. This deserves some investigation. FIXME
16136 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 else
16138 ld_shlibs_GCJ=no
16139 fi
16140 ;;
16141
16142 cygwin* | mingw* | pw32*)
16143 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16144 # as there is no search path for DLLs.
16145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16146 allow_undefined_flag_GCJ=unsupported
16147 always_export_symbols_GCJ=no
16148 enable_shared_with_static_runtimes_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016149 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 +000016150
16151 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +000016152 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 +000016153 # If the export-symbols file already is a .def file (1st line
16154 # is EXPORTS), use it as is; otherwise, prepend...
16155 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16156 cp $export_symbols $output_objdir/$soname.def;
16157 else
16158 echo EXPORTS > $output_objdir/$soname.def;
16159 cat $export_symbols >> $output_objdir/$soname.def;
16160 fi~
vapier7f19c022007-02-17 14:46:31 +000016161 $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 +000016162 else
vapier7f19c022007-02-17 14:46:31 +000016163 ld_shlibs_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016164 fi
16165 ;;
16166
vapier7f19c022007-02-17 14:46:31 +000016167 interix3*)
16168 hardcode_direct_GCJ=no
16169 hardcode_shlibpath_var_GCJ=no
16170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16171 export_dynamic_flag_spec_GCJ='${wl}-E'
16172 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16173 # Instead, shared libraries are loaded at an image base (0x10000000 by
16174 # default) and relocated if they conflict, which is a slow very memory
16175 # consuming and fragmenting process. To avoid this, we pick a random,
16176 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16177 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16178 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'
16179 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'
16180 ;;
16181
16182 linux*)
16183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16184 tmp_addflag=
16185 case $cc_basename,$host_cpu in
16186 pgcc*) # Portland Group C compiler
16187 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'
16188 tmp_addflag=' $pic_flag'
16189 ;;
16190 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16191 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'
16192 tmp_addflag=' $pic_flag -Mnomain' ;;
16193 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16194 tmp_addflag=' -i_dynamic' ;;
16195 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16196 tmp_addflag=' -i_dynamic -nofor_main' ;;
16197 ifc* | ifort*) # Intel Fortran compiler
16198 tmp_addflag=' -nofor_main' ;;
16199 esac
16200 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201
16202 if test $supports_anon_versioning = yes; then
16203 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16204 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16205 $echo "local: *; };" >> $output_objdir/$libname.ver~
16206 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16207 fi
16208 else
16209 ld_shlibs_GCJ=no
16210 fi
16211 ;;
16212
16213 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16215 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16216 wlarc=
16217 else
16218 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16219 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16220 fi
16221 ;;
16222
vapier7f19c022007-02-17 14:46:31 +000016223 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016224 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16225 ld_shlibs_GCJ=no
16226 cat <<EOF 1>&2
16227
16228*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16229*** create shared libraries on Solaris systems. Therefore, libtool
16230*** is disabling shared libraries support. We urge you to upgrade GNU
16231*** binutils to release 2.9.1 or newer. Another option is to modify
16232*** your PATH or compiler configuration so that the native linker is
16233*** used, and then restart.
16234
16235EOF
16236 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16239 else
16240 ld_shlibs_GCJ=no
16241 fi
16242 ;;
16243
vapier7f19c022007-02-17 14:46:31 +000016244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16245 case `$LD -v 2>&1` in
16246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16247 ld_shlibs_GCJ=no
16248 cat <<_LT_EOF 1>&2
16249
16250*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16251*** reliably create shared libraries on SCO systems. Therefore, libtool
16252*** is disabling shared libraries support. We urge you to upgrade GNU
16253*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16254*** your PATH or compiler configuration so that the native linker is
16255*** used, and then restart.
16256
16257_LT_EOF
16258 ;;
16259 *)
16260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16261 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16264 else
16265 ld_shlibs_GCJ=no
16266 fi
16267 ;;
16268 esac
16269 ;;
16270
a.rottmann9bc8b932004-02-29 15:18:31 +000016271 sunos4*)
16272 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16273 wlarc=
16274 hardcode_direct_GCJ=yes
16275 hardcode_shlibpath_var_GCJ=no
16276 ;;
16277
a.rottmann9bc8b932004-02-29 15:18:31 +000016278 *)
16279 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16281 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16282 else
16283 ld_shlibs_GCJ=no
16284 fi
16285 ;;
16286 esac
16287
vapier7f19c022007-02-17 14:46:31 +000016288 if test "$ld_shlibs_GCJ" = no; then
16289 runpath_var=
16290 hardcode_libdir_flag_spec_GCJ=
16291 export_dynamic_flag_spec_GCJ=
16292 whole_archive_flag_spec_GCJ=
a.rottmann9bc8b932004-02-29 15:18:31 +000016293 fi
16294 else
16295 # PORTME fill in a description of your system's linker (not GNU ld)
16296 case $host_os in
16297 aix3*)
16298 allow_undefined_flag_GCJ=unsupported
16299 always_export_symbols_GCJ=yes
16300 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'
16301 # Note: this linker hardcodes the directories in LIBPATH if there
16302 # are no directories specified by -L.
16303 hardcode_minus_L_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016304 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016305 # Neither direct hardcoding nor static linking is supported with a
16306 # broken collect2.
16307 hardcode_direct_GCJ=unsupported
16308 fi
16309 ;;
16310
16311 aix4* | aix5*)
16312 if test "$host_cpu" = ia64; then
16313 # On IA64, the linker does run time linking by default, so we don't
16314 # have to do anything special.
16315 aix_use_runtimelinking=no
16316 exp_sym_flag='-Bexport'
16317 no_entry_flag=""
16318 else
16319 # If we're using GNU nm, then we don't want the "-C" option.
16320 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16321 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16322 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'
16323 else
16324 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'
16325 fi
16326 aix_use_runtimelinking=no
16327
16328 # Test if we are trying to use run time linking or normal
16329 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16330 # need to do runtime linking.
16331 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16332 for ld_flag in $LDFLAGS; do
16333 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16334 aix_use_runtimelinking=yes
16335 break
16336 fi
16337 done
vapier7f19c022007-02-17 14:46:31 +000016338 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016339 esac
16340
16341 exp_sym_flag='-bexport'
16342 no_entry_flag='-bnoentry'
16343 fi
16344
16345 # When large executables or shared objects are built, AIX ld can
16346 # have problems creating the table of contents. If linking a library
16347 # or program results in "error TOC overflow" add -mminimal-toc to
16348 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16349 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16350
16351 archive_cmds_GCJ=''
16352 hardcode_direct_GCJ=yes
16353 hardcode_libdir_separator_GCJ=':'
16354 link_all_deplibs_GCJ=yes
16355
16356 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016357 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016358 # We only want to do this on AIX 4.2 and lower, the check
16359 # below for broken collect2 doesn't work under 4.3+
16360 collect2name=`${CC} -print-prog-name=collect2`
16361 if test -f "$collect2name" && \
16362 strings "$collect2name" | grep resolve_lib_name >/dev/null
16363 then
16364 # We have reworked collect2
16365 hardcode_direct_GCJ=yes
16366 else
16367 # We have old collect2
16368 hardcode_direct_GCJ=unsupported
16369 # It fails to find uninstalled libraries when the uninstalled
16370 # path is not listed in the libpath. Setting hardcode_minus_L
16371 # to unsupported forces relinking
16372 hardcode_minus_L_GCJ=yes
16373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16374 hardcode_libdir_separator_GCJ=
16375 fi
vapier7f19c022007-02-17 14:46:31 +000016376 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016377 esac
16378 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +000016379 if test "$aix_use_runtimelinking" = yes; then
16380 shared_flag="$shared_flag "'${wl}-G'
16381 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016382 else
16383 # not using gcc
16384 if test "$host_cpu" = ia64; then
16385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16386 # chokes on -Wl,-G. The following line is correct:
16387 shared_flag='-G'
16388 else
vapier7f19c022007-02-17 14:46:31 +000016389 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016390 shared_flag='${wl}-G'
16391 else
16392 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +000016393 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016394 fi
16395 fi
16396
16397 # It seems that -bexpall does not export symbols beginning with
16398 # underscore (_), so it is better to generate a list of symbols to export.
16399 always_export_symbols_GCJ=yes
16400 if test "$aix_use_runtimelinking" = yes; then
16401 # Warning - without using the other runtime loading flags (-brtl),
16402 # -berok will link without error, but may produce a broken library.
16403 allow_undefined_flag_GCJ='-berok'
16404 # Determine the default libpath from the value encoded in an empty executable.
16405 cat >conftest.$ac_ext <<_ACEOF
16406/* confdefs.h. */
16407_ACEOF
16408cat confdefs.h >>conftest.$ac_ext
16409cat >>conftest.$ac_ext <<_ACEOF
16410/* end confdefs.h. */
16411
16412int
16413main ()
16414{
16415
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016421if { (ac_try="$ac_link"
16422case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16425esac
16426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016428 ac_status=$?
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016433 (exit $ac_status); } && {
16434 test -z "$ac_c_werror_flag" ||
16435 test ! -s conftest.err
16436 } && test -s conftest$ac_exeext &&
16437 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016438
16439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16440}'`
16441# Check for a 64-bit object if we didn't find anything.
16442if 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; }
16443}'`; fi
16444else
16445 echo "$as_me: failed program was:" >&5
16446sed 's/^/| /' conftest.$ac_ext >&5
16447
mlcreech94984912008-03-04 19:03:08 +000016448
a.rottmann9bc8b932004-02-29 15:18:31 +000016449fi
mlcreech94984912008-03-04 19:03:08 +000016450
16451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016452 conftest$ac_exeext conftest.$ac_ext
16453if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16454
16455 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
vapier7f19c022007-02-17 14:46:31 +000016456 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 +000016457 else
16458 if test "$host_cpu" = ia64; then
16459 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16460 allow_undefined_flag_GCJ="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +000016461 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 +000016462 else
16463 # Determine the default libpath from the value encoded in an empty executable.
16464 cat >conftest.$ac_ext <<_ACEOF
16465/* confdefs.h. */
16466_ACEOF
16467cat confdefs.h >>conftest.$ac_ext
16468cat >>conftest.$ac_ext <<_ACEOF
16469/* end confdefs.h. */
16470
16471int
16472main ()
16473{
16474
16475 ;
16476 return 0;
16477}
16478_ACEOF
16479rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000016480if { (ac_try="$ac_link"
16481case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16484esac
16485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +000016487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000016492 (exit $ac_status); } && {
16493 test -z "$ac_c_werror_flag" ||
16494 test ! -s conftest.err
16495 } && test -s conftest$ac_exeext &&
16496 $as_test_x conftest$ac_exeext; then
a.rottmann9bc8b932004-02-29 15:18:31 +000016497
16498aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16499}'`
16500# Check for a 64-bit object if we didn't find anything.
16501if 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; }
16502}'`; fi
16503else
16504 echo "$as_me: failed program was:" >&5
16505sed 's/^/| /' conftest.$ac_ext >&5
16506
mlcreech94984912008-03-04 19:03:08 +000016507
a.rottmann9bc8b932004-02-29 15:18:31 +000016508fi
mlcreech94984912008-03-04 19:03:08 +000016509
16510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +000016511 conftest$ac_exeext conftest.$ac_ext
16512if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16513
16514 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16515 # Warning - without using the other run time loading flags,
16516 # -berok will link without error, but may produce a broken library.
16517 no_undefined_flag_GCJ=' ${wl}-bernotok'
16518 allow_undefined_flag_GCJ=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +000016519 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +000016520 whole_archive_flag_spec_GCJ='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +000016521 archive_cmds_need_lc_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016522 # This is similar to how AIX traditionally builds its shared libraries.
16523 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 +000016524 fi
16525 fi
16526 ;;
16527
16528 amigaos*)
16529 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)'
16530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16531 hardcode_minus_L_GCJ=yes
16532 # see comment about different semantics on the GNU ld section
16533 ld_shlibs_GCJ=no
16534 ;;
16535
vapier7f19c022007-02-17 14:46:31 +000016536 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016537 export_dynamic_flag_spec_GCJ=-rdynamic
16538 ;;
16539
16540 cygwin* | mingw* | pw32*)
16541 # When not using gcc, we currently assume that we are using
16542 # Microsoft Visual C++.
16543 # hardcode_libdir_flag_spec is actually meaningless, as there is
16544 # no search path for DLLs.
16545 hardcode_libdir_flag_spec_GCJ=' '
16546 allow_undefined_flag_GCJ=unsupported
16547 # Tell ltmain to make .lib files, not .a files.
16548 libext=lib
16549 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +000016550 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000016551 # FIXME: Setting linknames here is a bad hack.
16552 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16553 # The linker will automatically build a .lib file if we build a DLL.
16554 old_archive_From_new_cmds_GCJ='true'
16555 # FIXME: Should let the user specify the lib program.
16556 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
vapier7f19c022007-02-17 14:46:31 +000016557 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
a.rottmann9bc8b932004-02-29 15:18:31 +000016558 enable_shared_with_static_runtimes_GCJ=yes
16559 ;;
16560
16561 darwin* | rhapsody*)
vapier7f19c022007-02-17 14:46:31 +000016562 case $host_os in
16563 rhapsody* | darwin1.[012])
16564 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16565 ;;
16566 *) # Darwin 1.3 on
16567 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16568 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16569 else
16570 case ${MACOSX_DEPLOYMENT_TARGET} in
16571 10.[012])
16572 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16573 ;;
16574 10.*)
16575 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16576 ;;
16577 esac
16578 fi
16579 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016580 esac
vapier7f19c022007-02-17 14:46:31 +000016581 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016582 hardcode_direct_GCJ=no
16583 hardcode_automatic_GCJ=yes
16584 hardcode_shlibpath_var_GCJ=unsupported
vapier7f19c022007-02-17 14:46:31 +000016585 whole_archive_flag_spec_GCJ=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016586 link_all_deplibs_GCJ=yes
vapier7f19c022007-02-17 14:46:31 +000016587 if test "$GCC" = yes ; then
16588 output_verbose_link_cmd='echo'
16589 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16590 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16591 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16592 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}'
16593 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 +000016594 else
vapier7f19c022007-02-17 14:46:31 +000016595 case $cc_basename in
16596 xlc*)
16597 output_verbose_link_cmd='echo'
16598 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16599 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16600 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16601 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}'
16602 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}'
16603 ;;
16604 *)
16605 ld_shlibs_GCJ=no
16606 ;;
16607 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000016608 fi
16609 ;;
16610
16611 dgux*)
16612 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16614 hardcode_shlibpath_var_GCJ=no
16615 ;;
16616
16617 freebsd1*)
16618 ld_shlibs_GCJ=no
16619 ;;
16620
16621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16622 # support. Future versions do this automatically, but an explicit c++rt0.o
16623 # does not break anything, and helps significantly (at the cost of a little
16624 # extra space).
16625 freebsd2.2*)
16626 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16627 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16628 hardcode_direct_GCJ=yes
16629 hardcode_shlibpath_var_GCJ=no
16630 ;;
16631
16632 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16633 freebsd2*)
16634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16635 hardcode_direct_GCJ=yes
16636 hardcode_minus_L_GCJ=yes
16637 hardcode_shlibpath_var_GCJ=no
16638 ;;
16639
16640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
vapier7f19c022007-02-17 14:46:31 +000016641 freebsd* | kfreebsd*-gnu | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016642 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16643 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16644 hardcode_direct_GCJ=yes
16645 hardcode_shlibpath_var_GCJ=no
16646 ;;
16647
16648 hpux9*)
16649 if test "$GCC" = yes; then
16650 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'
16651 else
16652 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'
16653 fi
16654 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16655 hardcode_libdir_separator_GCJ=:
16656 hardcode_direct_GCJ=yes
16657
16658 # hardcode_minus_L: Not really in the search PATH,
16659 # but as the default location of the library.
16660 hardcode_minus_L_GCJ=yes
16661 export_dynamic_flag_spec_GCJ='${wl}-E'
16662 ;;
16663
vapier7f19c022007-02-17 14:46:31 +000016664 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016665 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016666 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16667 else
16668 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16669 fi
16670 if test "$with_gnu_ld" = no; then
16671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16672 hardcode_libdir_separator_GCJ=:
16673
16674 hardcode_direct_GCJ=yes
16675 export_dynamic_flag_spec_GCJ='${wl}-E'
16676
16677 # hardcode_minus_L: Not really in the search PATH,
16678 # but as the default location of the library.
16679 hardcode_minus_L_GCJ=yes
16680 fi
16681 ;;
16682
16683 hpux11*)
16684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16685 case $host_cpu in
16686 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016687 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16688 ;;
vapier7f19c022007-02-17 14:46:31 +000016689 ia64*)
16690 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16691 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016692 *)
16693 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16694 ;;
16695 esac
16696 else
vapier7f19c022007-02-17 14:46:31 +000016697 case $host_cpu in
16698 hppa*64*)
16699 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16700 ;;
16701 ia64*)
16702 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +000016703 ;;
16704 *)
vapier7f19c022007-02-17 14:46:31 +000016705 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 +000016706 ;;
16707 esac
16708 fi
16709 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +000016710 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16711 hardcode_libdir_separator_GCJ=:
a.rottmann9bc8b932004-02-29 15:18:31 +000016712
vapier7f19c022007-02-17 14:46:31 +000016713 case $host_cpu in
16714 hppa*64*|ia64*)
16715 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16716 hardcode_direct_GCJ=no
16717 hardcode_shlibpath_var_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016718 ;;
16719 *)
a.rottmann9bc8b932004-02-29 15:18:31 +000016720 hardcode_direct_GCJ=yes
16721 export_dynamic_flag_spec_GCJ='${wl}-E'
16722
16723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L_GCJ=yes
16726 ;;
16727 esac
16728 fi
16729 ;;
16730
16731 irix5* | irix6* | nonstopux*)
16732 if test "$GCC" = yes; then
16733 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'
16734 else
16735 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'
16736 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16737 fi
16738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16739 hardcode_libdir_separator_GCJ=:
16740 link_all_deplibs_GCJ=yes
16741 ;;
16742
vapier7f19c022007-02-17 14:46:31 +000016743 netbsd*)
a.rottmann9bc8b932004-02-29 15:18:31 +000016744 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16745 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16746 else
16747 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16748 fi
16749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16750 hardcode_direct_GCJ=yes
16751 hardcode_shlibpath_var_GCJ=no
16752 ;;
16753
16754 newsos6)
16755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_direct_GCJ=yes
16757 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16758 hardcode_libdir_separator_GCJ=:
16759 hardcode_shlibpath_var_GCJ=no
16760 ;;
16761
16762 openbsd*)
16763 hardcode_direct_GCJ=yes
16764 hardcode_shlibpath_var_GCJ=no
16765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16766 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +000016767 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 +000016768 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16769 export_dynamic_flag_spec_GCJ='${wl}-E'
16770 else
16771 case $host_os in
16772 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16775 ;;
16776 *)
16777 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16778 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16779 ;;
16780 esac
16781 fi
16782 ;;
16783
16784 os2*)
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786 hardcode_minus_L_GCJ=yes
16787 allow_undefined_flag_GCJ=unsupported
16788 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'
16789 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16790 ;;
16791
16792 osf3*)
16793 if test "$GCC" = yes; then
16794 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16795 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'
16796 else
16797 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16798 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'
16799 fi
16800 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16801 hardcode_libdir_separator_GCJ=:
16802 ;;
16803
16804 osf4* | osf5*) # as osf3* with the addition of -msym flag
16805 if test "$GCC" = yes; then
16806 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16807 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'
16808 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16809 else
16810 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16811 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'
16812 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 +000016813 $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 +000016814
16815 # Both c and cxx compiler support -rpath directly
16816 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16817 fi
16818 hardcode_libdir_separator_GCJ=:
16819 ;;
16820
a.rottmann9bc8b932004-02-29 15:18:31 +000016821 solaris*)
16822 no_undefined_flag_GCJ=' -z text'
16823 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016824 wlarc='${wl}'
a.rottmann9bc8b932004-02-29 15:18:31 +000016825 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16826 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16827 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16828 else
vapier7f19c022007-02-17 14:46:31 +000016829 wlarc=''
a.rottmann9bc8b932004-02-29 15:18:31 +000016830 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16831 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16832 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16833 fi
16834 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16835 hardcode_shlibpath_var_GCJ=no
16836 case $host_os in
16837 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +000016838 *)
16839 # The compiler driver will combine linker options so we
16840 # cannot just pass the convience library names through
16841 # without $wl, iff we do not link with $LD.
16842 # Luckily, gcc supports the same syntax we need for Sun Studio.
16843 # Supported since Solaris 2.6 (maybe 2.5.1?)
16844 case $wlarc in
16845 '')
16846 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16847 *)
16848 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' ;;
16849 esac ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000016850 esac
16851 link_all_deplibs_GCJ=yes
16852 ;;
16853
16854 sunos4*)
16855 if test "x$host_vendor" = xsequent; then
16856 # Use $CC to link under sequent, because it throws in some extra .o
16857 # files that make .init and .fini sections work.
16858 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16859 else
16860 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16861 fi
16862 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16863 hardcode_direct_GCJ=yes
16864 hardcode_minus_L_GCJ=yes
16865 hardcode_shlibpath_var_GCJ=no
16866 ;;
16867
16868 sysv4)
16869 case $host_vendor in
16870 sni)
16871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16872 hardcode_direct_GCJ=yes # is this really true???
16873 ;;
16874 siemens)
16875 ## LD is ld it makes a PLAMLIB
16876 ## CC just makes a GrossModule.
16877 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16878 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16879 hardcode_direct_GCJ=no
16880 ;;
16881 motorola)
16882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16883 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16884 ;;
16885 esac
16886 runpath_var='LD_RUN_PATH'
16887 hardcode_shlibpath_var_GCJ=no
16888 ;;
16889
16890 sysv4.3*)
16891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892 hardcode_shlibpath_var_GCJ=no
16893 export_dynamic_flag_spec_GCJ='-Bexport'
16894 ;;
16895
16896 sysv4*MP*)
16897 if test -d /usr/nec; then
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_shlibpath_var_GCJ=no
16900 runpath_var=LD_RUN_PATH
16901 hardcode_runpath_var=yes
16902 ld_shlibs_GCJ=yes
16903 fi
16904 ;;
16905
vapier7f19c022007-02-17 14:46:31 +000016906 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16907 no_undefined_flag_GCJ='${wl}-z,text'
16908 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016909 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016910 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +000016911
a.rottmann9bc8b932004-02-29 15:18:31 +000016912 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +000016913 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 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 +000016915 else
vapier7f19c022007-02-17 14:46:31 +000016916 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16917 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 +000016918 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016919 ;;
16920
vapier7f19c022007-02-17 14:46:31 +000016921 sysv5* | sco3.2v5* | sco5v6*)
16922 # Note: We can NOT use -z defs as we might desire, because we do not
16923 # link with -lc, and that would cause any symbols used from libc to
16924 # always be unresolved, which means just about no library would
16925 # ever link correctly. If we're not using GNU ld we use -z text
16926 # though, which does catch some bad symbols but isn't as heavy-handed
16927 # as -z defs.
16928 no_undefined_flag_GCJ='${wl}-z,text'
16929 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16930 archive_cmds_need_lc_GCJ=no
a.rottmann9bc8b932004-02-29 15:18:31 +000016931 hardcode_shlibpath_var_GCJ=no
vapier7f19c022007-02-17 14:46:31 +000016932 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16933 hardcode_libdir_separator_GCJ=':'
16934 link_all_deplibs_GCJ=yes
16935 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +000016936 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +000016937
16938 if test "$GCC" = yes; then
16939 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16940 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 else
16942 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16944 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000016945 ;;
16946
16947 uts4*)
16948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16949 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16950 hardcode_shlibpath_var_GCJ=no
16951 ;;
16952
16953 *)
16954 ld_shlibs_GCJ=no
16955 ;;
16956 esac
16957 fi
16958
mlcreech94984912008-03-04 19:03:08 +000016959{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16960echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016961test "$ld_shlibs_GCJ" = no && can_build_shared=no
16962
a.rottmann9bc8b932004-02-29 15:18:31 +000016963#
16964# Do we need to explicitly link libc?
16965#
16966case "x$archive_cmds_need_lc_GCJ" in
16967x|xyes)
16968 # Assume -lc should be added
16969 archive_cmds_need_lc_GCJ=yes
16970
16971 if test "$enable_shared" = yes && test "$GCC" = yes; then
16972 case $archive_cmds_GCJ in
16973 *'~'*)
16974 # FIXME: we may have to deal with multi-command sequences.
16975 ;;
16976 '$CC '*)
16977 # Test whether the compiler implicitly links with -lc since on some
16978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16979 # to ld, don't add -lc before -lgcc.
mlcreech94984912008-03-04 19:03:08 +000016980 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16981echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000016982 $rm conftest*
16983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16984
16985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16986 (eval $ac_compile) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); } 2>conftest.err; then
16990 soname=conftest
16991 lib=conftest
16992 libobjs=conftest.$ac_objext
16993 deplibs=
16994 wl=$lt_prog_compiler_wl_GCJ
vapier7f19c022007-02-17 14:46:31 +000016995 pic_flag=$lt_prog_compiler_pic_GCJ
a.rottmann9bc8b932004-02-29 15:18:31 +000016996 compiler_flags=-v
16997 linker_flags=-v
16998 verstring=
16999 output_objdir=.
17000 libname=conftest
17001 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17002 allow_undefined_flag_GCJ=
17003 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17004 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }
17008 then
17009 archive_cmds_need_lc_GCJ=no
17010 else
17011 archive_cmds_need_lc_GCJ=yes
17012 fi
17013 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17014 else
17015 cat conftest.err 1>&5
17016 fi
17017 $rm conftest*
mlcreech94984912008-03-04 19:03:08 +000017018 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17019echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017020 ;;
17021 esac
17022 fi
17023 ;;
17024esac
17025
mlcreech94984912008-03-04 19:03:08 +000017026{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17027echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017028library_names_spec=
17029libname_spec='lib$name'
17030soname_spec=
vapier7f19c022007-02-17 14:46:31 +000017031shrext_cmds=".so"
a.rottmann9bc8b932004-02-29 15:18:31 +000017032postinstall_cmds=
17033postuninstall_cmds=
17034finish_cmds=
17035finish_eval=
17036shlibpath_var=
17037shlibpath_overrides_runpath=unknown
17038version_type=none
17039dynamic_linker="$host_os ld.so"
17040sys_lib_dlsearch_path_spec="/lib /usr/lib"
17041if test "$GCC" = yes; then
17042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17043 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17044 # if the path contains ";" then we assume it to be the separator
17045 # otherwise default to the standard path separator (i.e. ":") - it is
17046 # assumed that no part of a normal pathname contains ";" but that should
17047 # okay in the real world where ";" in dirpaths is itself problematic.
17048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17049 else
17050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17051 fi
17052else
17053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17054fi
17055need_lib_prefix=unknown
17056hardcode_into_libs=no
17057
17058# when you set need_version to no, make sure it does not cause -set_version
17059# flags to be left without arguments
17060need_version=unknown
17061
17062case $host_os in
17063aix3*)
17064 version_type=linux
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17066 shlibpath_var=LIBPATH
17067
17068 # AIX 3 has no versioning support, so we append a major version to the name.
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 ;;
17071
17072aix4* | aix5*)
17073 version_type=linux
17074 need_lib_prefix=no
17075 need_version=no
17076 hardcode_into_libs=yes
17077 if test "$host_cpu" = ia64; then
17078 # AIX 5 supports IA64
17079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 else
17082 # With GCC up to 2.95.x, collect2 would create an import file
17083 # for dependence libraries. The import file would start with
17084 # the line `#! .'. This would cause the generated library to
17085 # depend on `.', always an invalid library. This was fixed in
17086 # development snapshots of GCC prior to 3.0.
17087 case $host_os in
17088 aix4 | aix4.[01] | aix4.[01].*)
17089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17090 echo ' yes '
17091 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17092 :
17093 else
17094 can_build_shared=no
17095 fi
17096 ;;
17097 esac
17098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17099 # soname into executable. Probably we can add versioning support to
17100 # collect2, so additional links can be useful in future.
17101 if test "$aix_use_runtimelinking" = yes; then
17102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17103 # instead of lib<name>.a to let people know that these are not
17104 # typical AIX shared libraries.
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17106 else
17107 # We preserve .a as extension for shared libraries through AIX4.2
17108 # and later when we are not doing run time linking.
17109 library_names_spec='${libname}${release}.a $libname.a'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 fi
17112 shlibpath_var=LIBPATH
17113 fi
17114 ;;
17115
17116amigaos*)
17117 library_names_spec='$libname.ixlibrary $libname.a'
17118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17119 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'
17120 ;;
17121
17122beos*)
17123 library_names_spec='${libname}${shared_ext}'
17124 dynamic_linker="$host_os ld.so"
17125 shlibpath_var=LIBRARY_PATH
17126 ;;
17127
vapier7f19c022007-02-17 14:46:31 +000017128bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017129 version_type=linux
17130 need_version=no
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17132 soname_spec='${libname}${release}${shared_ext}$major'
17133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17137 # the default ld.so.conf also contains /usr/contrib/lib and
17138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17139 # libtool to hard-code these into programs
17140 ;;
17141
17142cygwin* | mingw* | pw32*)
17143 version_type=windows
vapier7f19c022007-02-17 14:46:31 +000017144 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017145 need_version=no
17146 need_lib_prefix=no
17147
17148 case $GCC,$host_os in
17149 yes,cygwin* | yes,mingw* | yes,pw32*)
17150 library_names_spec='$libname.dll.a'
17151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17152 postinstall_cmds='base_file=`basename \${file}`~
17153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17154 dldir=$destdir/`dirname \$dlpath`~
17155 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +000017156 $install_prog $dir/$dlname \$dldir/$dlname~
17157 chmod a+x \$dldir/$dlname'
a.rottmann9bc8b932004-02-29 15:18:31 +000017158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17159 dlpath=$dir/\$dldll~
17160 $rm \$dlpath'
17161 shlibpath_overrides_runpath=yes
17162
17163 case $host_os in
17164 cygwin*)
17165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17167 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17168 ;;
17169 mingw*)
17170 # MinGW DLLs use traditional 'lib' prefix
17171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17173 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17174 # It is most probably a Windows format PATH printed by
17175 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17176 # path with ; separators, and with drive letters. We can handle the
17177 # drive letters (cygwin fileutils understands them), so leave them,
17178 # especially as we might pass files found there to a mingw objdump,
17179 # which wouldn't understand a cygwinified path. Ahh.
17180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17181 else
17182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17183 fi
17184 ;;
17185 pw32*)
17186 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +000017187 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 +000017188 ;;
17189 esac
17190 ;;
17191
vapier7f19c022007-02-17 14:46:31 +000017192 linux*)
17193 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17195 supports_anon_versioning=no
17196 case `$LD -v 2>/dev/null` in
17197 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17200 *\ 2.11.*) ;; # other 2.11 versions
17201 *) supports_anon_versioning=yes ;;
17202 esac
17203 if test $supports_anon_versioning = yes; then
17204 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17205cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17206$echo "local: *; };" >> $output_objdir/$libname.ver~
17207 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17208 else
17209 $archive_expsym_cmds="$archive_cmds"
17210 fi
17211 else
17212 ld_shlibs=no
17213 fi
17214 ;;
17215
a.rottmann9bc8b932004-02-29 15:18:31 +000017216 *)
17217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17218 ;;
17219 esac
17220 dynamic_linker='Win32 ld.exe'
17221 # FIXME: first we should search . and the directory the executable is in
17222 shlibpath_var=PATH
17223 ;;
17224
17225darwin* | rhapsody*)
17226 dynamic_linker="$host_os dyld"
17227 version_type=darwin
17228 need_lib_prefix=no
17229 need_version=no
17230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17231 soname_spec='${libname}${release}${major}$shared_ext'
17232 shlibpath_overrides_runpath=yes
17233 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +000017234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
a.rottmann9bc8b932004-02-29 15:18:31 +000017235 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17236 if test "$GCC" = yes; then
17237 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"`
17238 else
17239 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17240 fi
17241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17242 ;;
17243
17244dgux*)
17245 version_type=linux
17246 need_lib_prefix=no
17247 need_version=no
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 shlibpath_var=LD_LIBRARY_PATH
17251 ;;
17252
17253freebsd1*)
17254 dynamic_linker=no
17255 ;;
17256
17257kfreebsd*-gnu)
17258 version_type=linux
17259 need_lib_prefix=no
17260 need_version=no
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 shlibpath_var=LD_LIBRARY_PATH
17264 shlibpath_overrides_runpath=no
17265 hardcode_into_libs=yes
17266 dynamic_linker='GNU ld.so'
17267 ;;
17268
vapier7f19c022007-02-17 14:46:31 +000017269freebsd* | dragonfly*)
17270 # DragonFly does not have aout. When/if they implement a new
17271 # versioning mechanism, adjust this.
17272 if test -x /usr/bin/objformat; then
17273 objformat=`/usr/bin/objformat`
17274 else
17275 case $host_os in
17276 freebsd[123]*) objformat=aout ;;
17277 *) objformat=elf ;;
17278 esac
17279 fi
17280 # Handle Gentoo/FreeBSD as it was Linux
17281 case $host_vendor in
17282 gentoo)
17283 version_type=linux ;;
17284 *)
17285 version_type=freebsd-$objformat ;;
17286 esac
17287
a.rottmann9bc8b932004-02-29 15:18:31 +000017288 case $version_type in
17289 freebsd-elf*)
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17291 need_version=no
17292 need_lib_prefix=no
17293 ;;
17294 freebsd-*)
17295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17296 need_version=yes
17297 ;;
vapier7f19c022007-02-17 14:46:31 +000017298 linux)
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17300 soname_spec='${libname}${release}${shared_ext}$major'
17301 need_lib_prefix=no
17302 need_version=no
17303 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017304 esac
17305 shlibpath_var=LD_LIBRARY_PATH
17306 case $host_os in
17307 freebsd2*)
17308 shlibpath_overrides_runpath=yes
17309 ;;
vapier7f19c022007-02-17 14:46:31 +000017310 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017311 shlibpath_overrides_runpath=yes
17312 hardcode_into_libs=yes
17313 ;;
vapier7f19c022007-02-17 14:46:31 +000017314 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17315 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
a.rottmann9bc8b932004-02-29 15:18:31 +000017316 shlibpath_overrides_runpath=no
17317 hardcode_into_libs=yes
17318 ;;
vapier7f19c022007-02-17 14:46:31 +000017319 freebsd*) # from 4.6 on
17320 shlibpath_overrides_runpath=yes
17321 hardcode_into_libs=yes
17322 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +000017323 esac
17324 ;;
17325
17326gnu*)
17327 version_type=linux
17328 need_lib_prefix=no
17329 need_version=no
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17332 shlibpath_var=LD_LIBRARY_PATH
17333 hardcode_into_libs=yes
17334 ;;
17335
17336hpux9* | hpux10* | hpux11*)
17337 # Give a soname corresponding to the major version so that dld.sl refuses to
17338 # link against other versions.
17339 version_type=sunos
17340 need_lib_prefix=no
17341 need_version=no
vapier7f19c022007-02-17 14:46:31 +000017342 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +000017343 ia64*)
vapier7f19c022007-02-17 14:46:31 +000017344 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +000017345 hardcode_into_libs=yes
17346 dynamic_linker="$host_os dld.so"
17347 shlibpath_var=LD_LIBRARY_PATH
17348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 if test "X$HPUX_IA64_MODE" = X32; then
17352 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17353 else
17354 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17355 fi
17356 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17357 ;;
17358 hppa*64*)
vapier7f19c022007-02-17 14:46:31 +000017359 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017360 hardcode_into_libs=yes
17361 dynamic_linker="$host_os dld.sl"
17362 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17363 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17368 ;;
17369 *)
vapier7f19c022007-02-17 14:46:31 +000017370 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +000017371 dynamic_linker="$host_os dld.sl"
17372 shlibpath_var=SHLIB_PATH
17373 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 ;;
17377 esac
17378 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17379 postinstall_cmds='chmod 555 $lib'
17380 ;;
17381
vapier7f19c022007-02-17 14:46:31 +000017382interix3*)
17383 version_type=linux
17384 need_lib_prefix=no
17385 need_version=no
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17387 soname_spec='${libname}${release}${shared_ext}$major'
17388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 shlibpath_overrides_runpath=no
17391 hardcode_into_libs=yes
17392 ;;
17393
a.rottmann9bc8b932004-02-29 15:18:31 +000017394irix5* | irix6* | nonstopux*)
17395 case $host_os in
17396 nonstopux*) version_type=nonstopux ;;
17397 *)
17398 if test "$lt_cv_prog_gnu_ld" = yes; then
17399 version_type=linux
17400 else
17401 version_type=irix
17402 fi ;;
17403 esac
17404 need_lib_prefix=no
17405 need_version=no
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17408 case $host_os in
17409 irix5* | nonstopux*)
17410 libsuff= shlibsuff=
17411 ;;
17412 *)
17413 case $LD in # libtool.m4 will add one of these switches to LD
17414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17415 libsuff= shlibsuff= libmagic=32-bit;;
17416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17417 libsuff=32 shlibsuff=N32 libmagic=N32;;
17418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17420 *) libsuff= shlibsuff= libmagic=never-match;;
17421 esac
17422 ;;
17423 esac
17424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17425 shlibpath_overrides_runpath=no
17426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17428 hardcode_into_libs=yes
17429 ;;
17430
17431# No shared lib support for Linux oldld, aout, or coff.
17432linux*oldld* | linux*aout* | linux*coff*)
17433 dynamic_linker=no
17434 ;;
17435
17436# This must be Linux ELF.
17437linux*)
17438 version_type=linux
17439 need_lib_prefix=no
17440 need_version=no
17441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442 soname_spec='${libname}${release}${shared_ext}$major'
17443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17444 shlibpath_var=LD_LIBRARY_PATH
17445 shlibpath_overrides_runpath=no
17446 # This implies no fast_install, which is unacceptable.
17447 # Some rework will be needed to allow for fast_install
17448 # before this can be enabled.
17449 hardcode_into_libs=yes
17450
17451 # Append ld.so.conf contents to the search path
17452 if test -f /etc/ld.so.conf; then
vapier7f19c022007-02-17 14:46:31 +000017453 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' ' '`
17454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +000017455 fi
17456
17457 # We used to test for /lib/ld.so.1 and disable shared libraries on
17458 # powerpc, because MkLinux only supported shared libraries with the
17459 # GNU dynamic linker. Since this was broken with cross compilers,
17460 # most powerpc-linux boxes support dynamic linking these days and
17461 # people can always --disable-shared, the test was removed, and we
17462 # assume the GNU/Linux dynamic linker is in use.
17463 dynamic_linker='GNU/Linux ld.so'
17464 ;;
17465
17466knetbsd*-gnu)
17467 version_type=linux
17468 need_lib_prefix=no
17469 need_version=no
17470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17471 soname_spec='${libname}${release}${shared_ext}$major'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=no
17474 hardcode_into_libs=yes
17475 dynamic_linker='GNU ld.so'
17476 ;;
17477
17478netbsd*)
17479 version_type=sunos
17480 need_lib_prefix=no
17481 need_version=no
17482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17485 dynamic_linker='NetBSD (a.out) ld.so'
17486 else
17487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17488 soname_spec='${libname}${release}${shared_ext}$major'
17489 dynamic_linker='NetBSD ld.elf_so'
17490 fi
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=yes
17493 hardcode_into_libs=yes
17494 ;;
17495
17496newsos6)
17497 version_type=linux
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17501 ;;
17502
17503nto-qnx*)
17504 version_type=linux
17505 need_lib_prefix=no
17506 need_version=no
17507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508 soname_spec='${libname}${release}${shared_ext}$major'
17509 shlibpath_var=LD_LIBRARY_PATH
17510 shlibpath_overrides_runpath=yes
17511 ;;
17512
17513openbsd*)
17514 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +000017515 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +000017516 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +000017517 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17518 case $host_os in
17519 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17520 *) need_version=no ;;
17521 esac
a.rottmann9bc8b932004-02-29 15:18:31 +000017522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17524 shlibpath_var=LD_LIBRARY_PATH
17525 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17526 case $host_os in
17527 openbsd2.[89] | openbsd2.[89].*)
17528 shlibpath_overrides_runpath=no
17529 ;;
17530 *)
17531 shlibpath_overrides_runpath=yes
17532 ;;
17533 esac
17534 else
17535 shlibpath_overrides_runpath=yes
17536 fi
17537 ;;
17538
17539os2*)
17540 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +000017541 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +000017542 need_lib_prefix=no
17543 library_names_spec='$libname${shared_ext} $libname.a'
17544 dynamic_linker='OS/2 ld.exe'
17545 shlibpath_var=LIBPATH
17546 ;;
17547
17548osf3* | osf4* | osf5*)
17549 version_type=osf
17550 need_lib_prefix=no
17551 need_version=no
17552 soname_spec='${libname}${release}${shared_ext}$major'
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 shlibpath_var=LD_LIBRARY_PATH
17555 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17556 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17557 ;;
17558
a.rottmann9bc8b932004-02-29 15:18:31 +000017559solaris*)
17560 version_type=linux
17561 need_lib_prefix=no
17562 need_version=no
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 shlibpath_var=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath=yes
17567 hardcode_into_libs=yes
17568 # ldd complains unless libraries are executable
17569 postinstall_cmds='chmod +x $lib'
17570 ;;
17571
17572sunos4*)
17573 version_type=sunos
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath=yes
17578 if test "$with_gnu_ld" = yes; then
17579 need_lib_prefix=no
17580 fi
17581 need_version=yes
17582 ;;
17583
vapier7f19c022007-02-17 14:46:31 +000017584sysv4 | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +000017585 version_type=linux
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587 soname_spec='${libname}${release}${shared_ext}$major'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 case $host_vendor in
17590 sni)
17591 shlibpath_overrides_runpath=no
17592 need_lib_prefix=no
17593 export_dynamic_flag_spec='${wl}-Blargedynsym'
17594 runpath_var=LD_RUN_PATH
17595 ;;
17596 siemens)
17597 need_lib_prefix=no
17598 ;;
17599 motorola)
17600 need_lib_prefix=no
17601 need_version=no
17602 shlibpath_overrides_runpath=no
17603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17604 ;;
17605 esac
17606 ;;
17607
17608sysv4*MP*)
17609 if test -d /usr/nec ;then
17610 version_type=linux
17611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17612 soname_spec='$libname${shared_ext}.$major'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 fi
17615 ;;
17616
vapier7f19c022007-02-17 14:46:31 +000017617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17618 version_type=freebsd-elf
17619 need_lib_prefix=no
17620 need_version=no
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 hardcode_into_libs=yes
17625 if test "$with_gnu_ld" = yes; then
17626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17627 shlibpath_overrides_runpath=no
17628 else
17629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17630 shlibpath_overrides_runpath=yes
17631 case $host_os in
17632 sco3.2v5*)
17633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17634 ;;
17635 esac
17636 fi
17637 sys_lib_dlsearch_path_spec='/usr/lib'
17638 ;;
17639
a.rottmann9bc8b932004-02-29 15:18:31 +000017640uts4*)
17641 version_type=linux
17642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17643 soname_spec='${libname}${release}${shared_ext}$major'
17644 shlibpath_var=LD_LIBRARY_PATH
17645 ;;
17646
17647*)
17648 dynamic_linker=no
17649 ;;
17650esac
mlcreech94984912008-03-04 19:03:08 +000017651{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17652echo "${ECHO_T}$dynamic_linker" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017653test "$dynamic_linker" = no && can_build_shared=no
17654
vapier7f19c022007-02-17 14:46:31 +000017655variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17656if test "$GCC" = yes; then
17657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17658fi
17659
mlcreech94984912008-03-04 19:03:08 +000017660{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17661echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017662hardcode_action_GCJ=
17663if test -n "$hardcode_libdir_flag_spec_GCJ" || \
vapier7f19c022007-02-17 14:46:31 +000017664 test -n "$runpath_var_GCJ" || \
17665 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
a.rottmann9bc8b932004-02-29 15:18:31 +000017666
17667 # We can hardcode non-existant directories.
17668 if test "$hardcode_direct_GCJ" != no &&
17669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17670 # have to relink, otherwise we might link with an installed library
17671 # when we should be linking with a yet-to-be-installed one
17672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17673 test "$hardcode_minus_L_GCJ" != no; then
17674 # Linking always hardcodes the temporary library directory.
17675 hardcode_action_GCJ=relink
17676 else
17677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17678 hardcode_action_GCJ=immediate
17679 fi
17680else
17681 # We cannot hardcode anything, or else we can only hardcode existing
17682 # directories.
17683 hardcode_action_GCJ=unsupported
17684fi
mlcreech94984912008-03-04 19:03:08 +000017685{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17686echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000017687
17688if test "$hardcode_action_GCJ" = relink; then
17689 # Fast installation is not supported
17690 enable_fast_install=no
17691elif test "$shlibpath_overrides_runpath" = yes ||
17692 test "$enable_shared" = no; then
17693 # Fast installation is not necessary
17694 enable_fast_install=needless
17695fi
17696
a.rottmann9bc8b932004-02-29 15:18:31 +000017697
17698# The else clause should only fire when bootstrapping the
17699# libtool distribution, otherwise you forgot to ship ltmain.sh
17700# with your package, and you will get complaints that there are
17701# no rules to generate ltmain.sh.
17702if test -f "$ltmain"; then
17703 # See if we are running on zsh, and set the options which allow our commands through
17704 # without removal of \ escapes.
17705 if test -n "${ZSH_VERSION+set}" ; then
17706 setopt NO_GLOB_SUBST
17707 fi
17708 # Now quote all the things that may contain metacharacters while being
17709 # careful not to overquote the AC_SUBSTed values. We take copies of the
17710 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000017711 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 +000017712 SED SHELL STRIP \
17713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17715 deplibs_check_method reload_flag reload_cmds need_locks \
17716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17717 lt_cv_sys_global_symbol_to_c_name_address \
17718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17719 old_postinstall_cmds old_postuninstall_cmds \
17720 compiler_GCJ \
17721 CC_GCJ \
17722 LD_GCJ \
17723 lt_prog_compiler_wl_GCJ \
17724 lt_prog_compiler_pic_GCJ \
17725 lt_prog_compiler_static_GCJ \
17726 lt_prog_compiler_no_builtin_flag_GCJ \
17727 export_dynamic_flag_spec_GCJ \
17728 thread_safe_flag_spec_GCJ \
17729 whole_archive_flag_spec_GCJ \
17730 enable_shared_with_static_runtimes_GCJ \
17731 old_archive_cmds_GCJ \
17732 old_archive_from_new_cmds_GCJ \
17733 predep_objects_GCJ \
17734 postdep_objects_GCJ \
17735 predeps_GCJ \
17736 postdeps_GCJ \
17737 compiler_lib_search_path_GCJ \
17738 archive_cmds_GCJ \
17739 archive_expsym_cmds_GCJ \
17740 postinstall_cmds_GCJ \
17741 postuninstall_cmds_GCJ \
17742 old_archive_from_expsyms_cmds_GCJ \
17743 allow_undefined_flag_GCJ \
17744 no_undefined_flag_GCJ \
17745 export_symbols_cmds_GCJ \
17746 hardcode_libdir_flag_spec_GCJ \
17747 hardcode_libdir_flag_spec_ld_GCJ \
17748 hardcode_libdir_separator_GCJ \
17749 hardcode_automatic_GCJ \
17750 module_cmds_GCJ \
17751 module_expsym_cmds_GCJ \
17752 lt_cv_prog_compiler_c_o_GCJ \
17753 exclude_expsyms_GCJ \
17754 include_expsyms_GCJ; do
17755
17756 case $var in
17757 old_archive_cmds_GCJ | \
17758 old_archive_from_new_cmds_GCJ | \
17759 archive_cmds_GCJ | \
17760 archive_expsym_cmds_GCJ | \
17761 module_cmds_GCJ | \
17762 module_expsym_cmds_GCJ | \
17763 old_archive_from_expsyms_cmds_GCJ | \
17764 export_symbols_cmds_GCJ | \
17765 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17766 postinstall_cmds | postuninstall_cmds | \
17767 old_postinstall_cmds | old_postuninstall_cmds | \
17768 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17769 # Double-quote double-evaled strings.
17770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17771 ;;
17772 *)
17773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17774 ;;
17775 esac
17776 done
17777
17778 case $lt_echo in
17779 *'\$0 --fallback-echo"')
17780 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17781 ;;
17782 esac
17783
17784cfgfile="$ofile"
17785
17786 cat <<__EOF__ >> "$cfgfile"
17787# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17788
17789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17790
17791# Shell to use when invoking shell scripts.
17792SHELL=$lt_SHELL
17793
17794# Whether or not to build shared libraries.
17795build_libtool_libs=$enable_shared
17796
17797# Whether or not to build static libraries.
17798build_old_libs=$enable_static
17799
17800# Whether or not to add -lc for building shared libraries.
17801build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17802
17803# Whether or not to disallow shared libs when runtime libs are static
17804allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17805
17806# Whether or not to optimize for fast installation.
17807fast_install=$enable_fast_install
17808
17809# The host system.
17810host_alias=$host_alias
17811host=$host
vapier7f19c022007-02-17 14:46:31 +000017812host_os=$host_os
17813
17814# The build system.
17815build_alias=$build_alias
17816build=$build
17817build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000017818
17819# An echo program that does not interpret backslashes.
17820echo=$lt_echo
17821
17822# The archiver.
17823AR=$lt_AR
17824AR_FLAGS=$lt_AR_FLAGS
17825
17826# A C compiler.
17827LTCC=$lt_LTCC
17828
vapier7f19c022007-02-17 14:46:31 +000017829# LTCC compiler flags.
17830LTCFLAGS=$lt_LTCFLAGS
17831
a.rottmann9bc8b932004-02-29 15:18:31 +000017832# A language-specific compiler.
17833CC=$lt_compiler_GCJ
17834
17835# Is the compiler the GNU C compiler?
17836with_gcc=$GCC_GCJ
17837
17838# An ERE matcher.
17839EGREP=$lt_EGREP
17840
17841# The linker used to build libraries.
17842LD=$lt_LD_GCJ
17843
17844# Whether we need hard or soft links.
17845LN_S=$lt_LN_S
17846
17847# A BSD-compatible nm program.
17848NM=$lt_NM
17849
17850# A symbol stripping program
17851STRIP=$lt_STRIP
17852
17853# Used to examine libraries when file_magic_cmd begins "file"
17854MAGIC_CMD=$MAGIC_CMD
17855
17856# Used on cygwin: DLL creation program.
17857DLLTOOL="$DLLTOOL"
17858
17859# Used on cygwin: object dumper.
17860OBJDUMP="$OBJDUMP"
17861
17862# Used on cygwin: assembler.
17863AS="$AS"
17864
17865# The name of the directory that contains temporary libtool files.
17866objdir=$objdir
17867
17868# How to create reloadable object files.
17869reload_flag=$lt_reload_flag
17870reload_cmds=$lt_reload_cmds
17871
17872# How to pass a linker flag through the compiler.
17873wl=$lt_lt_prog_compiler_wl_GCJ
17874
17875# Object file suffix (normally "o").
17876objext="$ac_objext"
17877
17878# Old archive suffix (normally "a").
17879libext="$libext"
17880
17881# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000017882shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000017883
17884# Executable file suffix (normally "").
17885exeext="$exeext"
17886
17887# Additional compiler flags for building library objects.
17888pic_flag=$lt_lt_prog_compiler_pic_GCJ
17889pic_mode=$pic_mode
17890
17891# What is the maximum length of a command?
17892max_cmd_len=$lt_cv_sys_max_cmd_len
17893
17894# Does compiler simultaneously support -c and -o options?
17895compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17896
vapier7f19c022007-02-17 14:46:31 +000017897# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000017898need_locks=$lt_need_locks
17899
17900# Do we need the lib prefix for modules?
17901need_lib_prefix=$need_lib_prefix
17902
17903# Do we need a version for libraries?
17904need_version=$need_version
17905
17906# Whether dlopen is supported.
17907dlopen_support=$enable_dlopen
17908
17909# Whether dlopen of programs is supported.
17910dlopen_self=$enable_dlopen_self
17911
17912# Whether dlopen of statically linked programs is supported.
17913dlopen_self_static=$enable_dlopen_self_static
17914
17915# Compiler flag to prevent dynamic linking.
17916link_static_flag=$lt_lt_prog_compiler_static_GCJ
17917
17918# Compiler flag to turn off builtin functions.
17919no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17920
17921# Compiler flag to allow reflexive dlopens.
17922export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17923
17924# Compiler flag to generate shared objects directly from archives.
17925whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17926
17927# Compiler flag to generate thread-safe objects.
17928thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17929
17930# Library versioning type.
17931version_type=$version_type
17932
17933# Format of library name prefix.
17934libname_spec=$lt_libname_spec
17935
17936# List of archive names. First name is the real one, the rest are links.
17937# The last name is the one that the linker finds with -lNAME.
17938library_names_spec=$lt_library_names_spec
17939
17940# The coded name of the library, if different from the real name.
17941soname_spec=$lt_soname_spec
17942
17943# Commands used to build and install an old-style archive.
17944RANLIB=$lt_RANLIB
17945old_archive_cmds=$lt_old_archive_cmds_GCJ
17946old_postinstall_cmds=$lt_old_postinstall_cmds
17947old_postuninstall_cmds=$lt_old_postuninstall_cmds
17948
17949# Create an old-style archive from a shared archive.
17950old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17951
17952# Create a temporary old-style archive to link instead of a shared archive.
17953old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17954
17955# Commands used to build and install a shared archive.
17956archive_cmds=$lt_archive_cmds_GCJ
17957archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17958postinstall_cmds=$lt_postinstall_cmds
17959postuninstall_cmds=$lt_postuninstall_cmds
17960
17961# Commands used to build a loadable module (assumed same as above if empty)
17962module_cmds=$lt_module_cmds_GCJ
17963module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17964
17965# Commands to strip libraries.
17966old_striplib=$lt_old_striplib
17967striplib=$lt_striplib
17968
17969# Dependencies to place before the objects being linked to create a
17970# shared library.
17971predep_objects=$lt_predep_objects_GCJ
17972
17973# Dependencies to place after the objects being linked to create a
17974# shared library.
17975postdep_objects=$lt_postdep_objects_GCJ
17976
17977# Dependencies to place before the objects being linked to create a
17978# shared library.
17979predeps=$lt_predeps_GCJ
17980
17981# Dependencies to place after the objects being linked to create a
17982# shared library.
17983postdeps=$lt_postdeps_GCJ
17984
17985# The library search path used internally by the compiler when linking
17986# a shared library.
17987compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17988
17989# Method to check whether dependent libraries are shared objects.
17990deplibs_check_method=$lt_deplibs_check_method
17991
17992# Command to use when deplibs_check_method == file_magic.
17993file_magic_cmd=$lt_file_magic_cmd
17994
17995# Flag that allows shared libraries with undefined symbols to be built.
17996allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17997
17998# Flag that forces no undefined symbols.
17999no_undefined_flag=$lt_no_undefined_flag_GCJ
18000
18001# Commands used to finish a libtool library installation in a directory.
18002finish_cmds=$lt_finish_cmds
18003
18004# Same as above, but a single script fragment to be evaled but not shown.
18005finish_eval=$lt_finish_eval
18006
18007# Take the output of nm and produce a listing of raw symbols and C names.
18008global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18009
18010# Transform the output of nm in a proper C declaration
18011global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18012
18013# Transform the output of nm in a C name address pair
18014global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18015
18016# This is the shared library runtime path variable.
18017runpath_var=$runpath_var
18018
18019# This is the shared library path variable.
18020shlibpath_var=$shlibpath_var
18021
18022# Is shlibpath searched before the hard-coded library search path?
18023shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18024
18025# How to hardcode a shared library path into an executable.
18026hardcode_action=$hardcode_action_GCJ
18027
18028# Whether we should hardcode library paths into libraries.
18029hardcode_into_libs=$hardcode_into_libs
18030
18031# Flag to hardcode \$libdir into a binary during linking.
18032# This must work even if \$libdir does not exist.
18033hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18034
18035# If ld is used when linking, flag to hardcode \$libdir into
18036# a binary during linking. This must work even if \$libdir does
18037# not exist.
18038hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18039
18040# Whether we need a single -rpath flag with a separated argument.
18041hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18042
18043# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18044# resulting binary.
18045hardcode_direct=$hardcode_direct_GCJ
18046
18047# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18048# resulting binary.
18049hardcode_minus_L=$hardcode_minus_L_GCJ
18050
18051# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18052# the resulting binary.
18053hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18054
18055# Set to yes if building a shared library automatically hardcodes DIR into the library
18056# and all subsequent libraries and executables linked against it.
18057hardcode_automatic=$hardcode_automatic_GCJ
18058
18059# Variables whose values should be saved in libtool wrapper scripts and
18060# restored at relink time.
18061variables_saved_for_relink="$variables_saved_for_relink"
18062
18063# Whether libtool must link a program against all its dependency libraries.
18064link_all_deplibs=$link_all_deplibs_GCJ
18065
18066# Compile-time system search path for libraries
18067sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18068
18069# Run-time system search path for libraries
18070sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18071
18072# Fix the shell variable \$srcfile for the compiler.
18073fix_srcfile_path="$fix_srcfile_path_GCJ"
18074
18075# Set to yes if exported symbols are required.
18076always_export_symbols=$always_export_symbols_GCJ
18077
18078# The commands to list exported symbols.
18079export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18080
18081# The commands to extract the exported symbol list from a shared archive.
18082extract_expsyms_cmds=$lt_extract_expsyms_cmds
18083
18084# Symbols that should not be listed in the preloaded symbols.
18085exclude_expsyms=$lt_exclude_expsyms_GCJ
18086
18087# Symbols that must always be exported.
18088include_expsyms=$lt_include_expsyms_GCJ
18089
18090# ### END LIBTOOL TAG CONFIG: $tagname
18091
18092__EOF__
18093
18094
18095else
18096 # If there is no Makefile yet, we rely on a make rule to execute
18097 # `config.status --recheck' to rerun these tests and create the
18098 # libtool script then.
18099 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18100 if test -f "$ltmain_in"; then
18101 test -f Makefile && make "$ltmain"
18102 fi
18103fi
18104
18105
18106ac_ext=c
18107ac_cpp='$CPP $CPPFLAGS'
18108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18110ac_compiler_gnu=$ac_cv_c_compiler_gnu
18111
18112CC="$lt_save_CC"
18113
18114 else
18115 tagname=""
18116 fi
18117 ;;
18118
18119 RC)
18120
18121
a.rottmann9bc8b932004-02-29 15:18:31 +000018122# Source file extension for RC test sources.
18123ac_ext=rc
18124
18125# Object file extension for compiled RC test sources.
18126objext=o
18127objext_RC=$objext
18128
18129# Code to be used in simple compile tests
18130lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18131
18132# Code to be used in simple link tests
18133lt_simple_link_test_code="$lt_simple_compile_test_code"
18134
18135# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18136
18137# If no C compiler was specified, use CC.
18138LTCC=${LTCC-"$CC"}
18139
vapier7f19c022007-02-17 14:46:31 +000018140# If no C compiler flags were specified, use CFLAGS.
18141LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18142
a.rottmann9bc8b932004-02-29 15:18:31 +000018143# Allow CC to be a program name with arguments.
18144compiler=$CC
18145
18146
vapier7f19c022007-02-17 14:46:31 +000018147# save warnings/boilerplate of simple test code
18148ac_outfile=conftest.$ac_objext
18149printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18150eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18151_lt_compiler_boilerplate=`cat conftest.err`
18152$rm conftest*
18153
18154ac_outfile=conftest.$ac_objext
18155printf "$lt_simple_link_test_code" >conftest.$ac_ext
18156eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18157_lt_linker_boilerplate=`cat conftest.err`
18158$rm conftest*
18159
18160
a.rottmann9bc8b932004-02-29 15:18:31 +000018161# Allow CC to be a program name with arguments.
18162lt_save_CC="$CC"
18163CC=${RC-"windres"}
18164compiler=$CC
18165compiler_RC=$CC
vapier7f19c022007-02-17 14:46:31 +000018166for cc_temp in $compiler""; do
18167 case $cc_temp in
18168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18170 \-*) ;;
18171 *) break;;
18172 esac
18173done
18174cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18175
a.rottmann9bc8b932004-02-29 15:18:31 +000018176lt_cv_prog_compiler_c_o_RC=yes
18177
18178# The else clause should only fire when bootstrapping the
18179# libtool distribution, otherwise you forgot to ship ltmain.sh
18180# with your package, and you will get complaints that there are
18181# no rules to generate ltmain.sh.
18182if test -f "$ltmain"; then
18183 # See if we are running on zsh, and set the options which allow our commands through
18184 # without removal of \ escapes.
18185 if test -n "${ZSH_VERSION+set}" ; then
18186 setopt NO_GLOB_SUBST
18187 fi
18188 # Now quote all the things that may contain metacharacters while being
18189 # careful not to overquote the AC_SUBSTed values. We take copies of the
18190 # variables and quote the copies for generation of the libtool script.
vapier7f19c022007-02-17 14:46:31 +000018191 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 +000018192 SED SHELL STRIP \
18193 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18194 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18195 deplibs_check_method reload_flag reload_cmds need_locks \
18196 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18197 lt_cv_sys_global_symbol_to_c_name_address \
18198 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18199 old_postinstall_cmds old_postuninstall_cmds \
18200 compiler_RC \
18201 CC_RC \
18202 LD_RC \
18203 lt_prog_compiler_wl_RC \
18204 lt_prog_compiler_pic_RC \
18205 lt_prog_compiler_static_RC \
18206 lt_prog_compiler_no_builtin_flag_RC \
18207 export_dynamic_flag_spec_RC \
18208 thread_safe_flag_spec_RC \
18209 whole_archive_flag_spec_RC \
18210 enable_shared_with_static_runtimes_RC \
18211 old_archive_cmds_RC \
18212 old_archive_from_new_cmds_RC \
18213 predep_objects_RC \
18214 postdep_objects_RC \
18215 predeps_RC \
18216 postdeps_RC \
18217 compiler_lib_search_path_RC \
18218 archive_cmds_RC \
18219 archive_expsym_cmds_RC \
18220 postinstall_cmds_RC \
18221 postuninstall_cmds_RC \
18222 old_archive_from_expsyms_cmds_RC \
18223 allow_undefined_flag_RC \
18224 no_undefined_flag_RC \
18225 export_symbols_cmds_RC \
18226 hardcode_libdir_flag_spec_RC \
18227 hardcode_libdir_flag_spec_ld_RC \
18228 hardcode_libdir_separator_RC \
18229 hardcode_automatic_RC \
18230 module_cmds_RC \
18231 module_expsym_cmds_RC \
18232 lt_cv_prog_compiler_c_o_RC \
18233 exclude_expsyms_RC \
18234 include_expsyms_RC; do
18235
18236 case $var in
18237 old_archive_cmds_RC | \
18238 old_archive_from_new_cmds_RC | \
18239 archive_cmds_RC | \
18240 archive_expsym_cmds_RC | \
18241 module_cmds_RC | \
18242 module_expsym_cmds_RC | \
18243 old_archive_from_expsyms_cmds_RC | \
18244 export_symbols_cmds_RC | \
18245 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18246 postinstall_cmds | postuninstall_cmds | \
18247 old_postinstall_cmds | old_postuninstall_cmds | \
18248 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18249 # Double-quote double-evaled strings.
18250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18251 ;;
18252 *)
18253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18254 ;;
18255 esac
18256 done
18257
18258 case $lt_echo in
18259 *'\$0 --fallback-echo"')
18260 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18261 ;;
18262 esac
18263
18264cfgfile="$ofile"
18265
18266 cat <<__EOF__ >> "$cfgfile"
18267# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18268
18269# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18270
18271# Shell to use when invoking shell scripts.
18272SHELL=$lt_SHELL
18273
18274# Whether or not to build shared libraries.
18275build_libtool_libs=$enable_shared
18276
18277# Whether or not to build static libraries.
18278build_old_libs=$enable_static
18279
18280# Whether or not to add -lc for building shared libraries.
18281build_libtool_need_lc=$archive_cmds_need_lc_RC
18282
18283# Whether or not to disallow shared libs when runtime libs are static
18284allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18285
18286# Whether or not to optimize for fast installation.
18287fast_install=$enable_fast_install
18288
18289# The host system.
18290host_alias=$host_alias
18291host=$host
vapier7f19c022007-02-17 14:46:31 +000018292host_os=$host_os
18293
18294# The build system.
18295build_alias=$build_alias
18296build=$build
18297build_os=$build_os
a.rottmann9bc8b932004-02-29 15:18:31 +000018298
18299# An echo program that does not interpret backslashes.
18300echo=$lt_echo
18301
18302# The archiver.
18303AR=$lt_AR
18304AR_FLAGS=$lt_AR_FLAGS
18305
18306# A C compiler.
18307LTCC=$lt_LTCC
18308
vapier7f19c022007-02-17 14:46:31 +000018309# LTCC compiler flags.
18310LTCFLAGS=$lt_LTCFLAGS
18311
a.rottmann9bc8b932004-02-29 15:18:31 +000018312# A language-specific compiler.
18313CC=$lt_compiler_RC
18314
18315# Is the compiler the GNU C compiler?
18316with_gcc=$GCC_RC
18317
18318# An ERE matcher.
18319EGREP=$lt_EGREP
18320
18321# The linker used to build libraries.
18322LD=$lt_LD_RC
18323
18324# Whether we need hard or soft links.
18325LN_S=$lt_LN_S
18326
18327# A BSD-compatible nm program.
18328NM=$lt_NM
18329
18330# A symbol stripping program
18331STRIP=$lt_STRIP
18332
18333# Used to examine libraries when file_magic_cmd begins "file"
18334MAGIC_CMD=$MAGIC_CMD
18335
18336# Used on cygwin: DLL creation program.
18337DLLTOOL="$DLLTOOL"
18338
18339# Used on cygwin: object dumper.
18340OBJDUMP="$OBJDUMP"
18341
18342# Used on cygwin: assembler.
18343AS="$AS"
18344
18345# The name of the directory that contains temporary libtool files.
18346objdir=$objdir
18347
18348# How to create reloadable object files.
18349reload_flag=$lt_reload_flag
18350reload_cmds=$lt_reload_cmds
18351
18352# How to pass a linker flag through the compiler.
18353wl=$lt_lt_prog_compiler_wl_RC
18354
18355# Object file suffix (normally "o").
18356objext="$ac_objext"
18357
18358# Old archive suffix (normally "a").
18359libext="$libext"
18360
18361# Shared library suffix (normally ".so").
vapier7f19c022007-02-17 14:46:31 +000018362shrext_cmds='$shrext_cmds'
a.rottmann9bc8b932004-02-29 15:18:31 +000018363
18364# Executable file suffix (normally "").
18365exeext="$exeext"
18366
18367# Additional compiler flags for building library objects.
18368pic_flag=$lt_lt_prog_compiler_pic_RC
18369pic_mode=$pic_mode
18370
18371# What is the maximum length of a command?
18372max_cmd_len=$lt_cv_sys_max_cmd_len
18373
18374# Does compiler simultaneously support -c and -o options?
18375compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18376
vapier7f19c022007-02-17 14:46:31 +000018377# Must we lock files when doing compilation?
a.rottmann9bc8b932004-02-29 15:18:31 +000018378need_locks=$lt_need_locks
18379
18380# Do we need the lib prefix for modules?
18381need_lib_prefix=$need_lib_prefix
18382
18383# Do we need a version for libraries?
18384need_version=$need_version
18385
18386# Whether dlopen is supported.
18387dlopen_support=$enable_dlopen
18388
18389# Whether dlopen of programs is supported.
18390dlopen_self=$enable_dlopen_self
18391
18392# Whether dlopen of statically linked programs is supported.
18393dlopen_self_static=$enable_dlopen_self_static
18394
18395# Compiler flag to prevent dynamic linking.
18396link_static_flag=$lt_lt_prog_compiler_static_RC
18397
18398# Compiler flag to turn off builtin functions.
18399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18400
18401# Compiler flag to allow reflexive dlopens.
18402export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18403
18404# Compiler flag to generate shared objects directly from archives.
18405whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18406
18407# Compiler flag to generate thread-safe objects.
18408thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18409
18410# Library versioning type.
18411version_type=$version_type
18412
18413# Format of library name prefix.
18414libname_spec=$lt_libname_spec
18415
18416# List of archive names. First name is the real one, the rest are links.
18417# The last name is the one that the linker finds with -lNAME.
18418library_names_spec=$lt_library_names_spec
18419
18420# The coded name of the library, if different from the real name.
18421soname_spec=$lt_soname_spec
18422
18423# Commands used to build and install an old-style archive.
18424RANLIB=$lt_RANLIB
18425old_archive_cmds=$lt_old_archive_cmds_RC
18426old_postinstall_cmds=$lt_old_postinstall_cmds
18427old_postuninstall_cmds=$lt_old_postuninstall_cmds
18428
18429# Create an old-style archive from a shared archive.
18430old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18431
18432# Create a temporary old-style archive to link instead of a shared archive.
18433old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18434
18435# Commands used to build and install a shared archive.
18436archive_cmds=$lt_archive_cmds_RC
18437archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18438postinstall_cmds=$lt_postinstall_cmds
18439postuninstall_cmds=$lt_postuninstall_cmds
18440
18441# Commands used to build a loadable module (assumed same as above if empty)
18442module_cmds=$lt_module_cmds_RC
18443module_expsym_cmds=$lt_module_expsym_cmds_RC
18444
18445# Commands to strip libraries.
18446old_striplib=$lt_old_striplib
18447striplib=$lt_striplib
18448
18449# Dependencies to place before the objects being linked to create a
18450# shared library.
18451predep_objects=$lt_predep_objects_RC
18452
18453# Dependencies to place after the objects being linked to create a
18454# shared library.
18455postdep_objects=$lt_postdep_objects_RC
18456
18457# Dependencies to place before the objects being linked to create a
18458# shared library.
18459predeps=$lt_predeps_RC
18460
18461# Dependencies to place after the objects being linked to create a
18462# shared library.
18463postdeps=$lt_postdeps_RC
18464
18465# The library search path used internally by the compiler when linking
18466# a shared library.
18467compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18468
18469# Method to check whether dependent libraries are shared objects.
18470deplibs_check_method=$lt_deplibs_check_method
18471
18472# Command to use when deplibs_check_method == file_magic.
18473file_magic_cmd=$lt_file_magic_cmd
18474
18475# Flag that allows shared libraries with undefined symbols to be built.
18476allow_undefined_flag=$lt_allow_undefined_flag_RC
18477
18478# Flag that forces no undefined symbols.
18479no_undefined_flag=$lt_no_undefined_flag_RC
18480
18481# Commands used to finish a libtool library installation in a directory.
18482finish_cmds=$lt_finish_cmds
18483
18484# Same as above, but a single script fragment to be evaled but not shown.
18485finish_eval=$lt_finish_eval
18486
18487# Take the output of nm and produce a listing of raw symbols and C names.
18488global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18489
18490# Transform the output of nm in a proper C declaration
18491global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18492
18493# Transform the output of nm in a C name address pair
18494global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18495
18496# This is the shared library runtime path variable.
18497runpath_var=$runpath_var
18498
18499# This is the shared library path variable.
18500shlibpath_var=$shlibpath_var
18501
18502# Is shlibpath searched before the hard-coded library search path?
18503shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18504
18505# How to hardcode a shared library path into an executable.
18506hardcode_action=$hardcode_action_RC
18507
18508# Whether we should hardcode library paths into libraries.
18509hardcode_into_libs=$hardcode_into_libs
18510
18511# Flag to hardcode \$libdir into a binary during linking.
18512# This must work even if \$libdir does not exist.
18513hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18514
18515# If ld is used when linking, flag to hardcode \$libdir into
18516# a binary during linking. This must work even if \$libdir does
18517# not exist.
18518hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18519
18520# Whether we need a single -rpath flag with a separated argument.
18521hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18522
18523# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18524# resulting binary.
18525hardcode_direct=$hardcode_direct_RC
18526
18527# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18528# resulting binary.
18529hardcode_minus_L=$hardcode_minus_L_RC
18530
18531# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18532# the resulting binary.
18533hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18534
18535# Set to yes if building a shared library automatically hardcodes DIR into the library
18536# and all subsequent libraries and executables linked against it.
18537hardcode_automatic=$hardcode_automatic_RC
18538
18539# Variables whose values should be saved in libtool wrapper scripts and
18540# restored at relink time.
18541variables_saved_for_relink="$variables_saved_for_relink"
18542
18543# Whether libtool must link a program against all its dependency libraries.
18544link_all_deplibs=$link_all_deplibs_RC
18545
18546# Compile-time system search path for libraries
18547sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18548
18549# Run-time system search path for libraries
18550sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18551
18552# Fix the shell variable \$srcfile for the compiler.
18553fix_srcfile_path="$fix_srcfile_path_RC"
18554
18555# Set to yes if exported symbols are required.
18556always_export_symbols=$always_export_symbols_RC
18557
18558# The commands to list exported symbols.
18559export_symbols_cmds=$lt_export_symbols_cmds_RC
18560
18561# The commands to extract the exported symbol list from a shared archive.
18562extract_expsyms_cmds=$lt_extract_expsyms_cmds
18563
18564# Symbols that should not be listed in the preloaded symbols.
18565exclude_expsyms=$lt_exclude_expsyms_RC
18566
18567# Symbols that must always be exported.
18568include_expsyms=$lt_include_expsyms_RC
18569
18570# ### END LIBTOOL TAG CONFIG: $tagname
18571
18572__EOF__
18573
18574
18575else
18576 # If there is no Makefile yet, we rely on a make rule to execute
18577 # `config.status --recheck' to rerun these tests and create the
18578 # libtool script then.
18579 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18580 if test -f "$ltmain_in"; then
18581 test -f Makefile && make "$ltmain"
18582 fi
18583fi
18584
18585
18586ac_ext=c
18587ac_cpp='$CPP $CPPFLAGS'
18588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590ac_compiler_gnu=$ac_cv_c_compiler_gnu
18591
18592CC="$lt_save_CC"
18593
18594 ;;
18595
18596 *)
18597 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18598echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18599 { (exit 1); exit 1; }; }
18600 ;;
18601 esac
18602
18603 # Append the new tag name to the list of available tags.
18604 if test -n "$tagname" ; then
18605 available_tags="$available_tags $tagname"
18606 fi
18607 fi
18608 done
18609 IFS="$lt_save_ifs"
18610
18611 # Now substitute the updated list of available tags.
18612 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18613 mv "${ofile}T" "$ofile"
18614 chmod +x "$ofile"
18615 else
18616 rm -f "${ofile}T"
18617 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18618echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18619 { (exit 1); exit 1; }; }
18620 fi
18621fi
drh71eb93e2001-09-28 01:34:43 +000018622
drh71eb93e2001-09-28 01:34:43 +000018623
drh71eb93e2001-09-28 01:34:43 +000018624
18625# This can be used to rebuild libtool when needed
18626LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18627
18628# Always use our own libtool.
18629LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18630
18631# Prevent multiple expansion
18632
a.rottmann84e63352003-03-24 09:42:16 +000018633
a.rottmann9bc8b932004-02-29 15:18:31 +000018634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
drh71eb93e2001-09-28 01:34:43 +000018652# Find a good install program. We prefer a C program (faster),
18653# so one script is as good as another. But avoid the broken or
18654# incompatible versions:
18655# SysV /etc/install, /usr/sbin/install
18656# SunOS /usr/etc/install
18657# IRIX /sbin/install
18658# AIX /bin/install
18659# AmigaOS /C/install, which installs bootblocks on floppy discs
18660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
18662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000018663# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000018664# ./install, which can be erroneously created by make from ./install.sh.
mlcreech94984912008-03-04 19:03:08 +000018665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018667if test -z "$INSTALL"; then
18668if test "${ac_cv_path_install+set}" = set; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
a.rottmann84e63352003-03-24 09:42:16 +000018671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18672for as_dir in $PATH
18673do
18674 IFS=$as_save_IFS
18675 test -z "$as_dir" && as_dir=.
18676 # Account for people who put trailing slashes in PATH elements.
18677case $as_dir/ in
18678 ./ | .// | /cC/* | \
18679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000018680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000018681 /usr/ucb/* ) ;;
18682 *)
18683 # OSF1 and SCO ODT 3.0 have their own names for install.
18684 # Don't use installbsd from OSF since it installs stuff as root
18685 # by default.
18686 for ac_prog in ginstall scoinst install; do
18687 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018688 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 +000018689 if test $ac_prog = install &&
18690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18691 # AIX install. It has an incompatible calling convention.
18692 :
18693 elif test $ac_prog = install &&
18694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18695 # program-specific install script used by HP pwplus--don't use.
18696 :
18697 else
18698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18699 break 3
18700 fi
18701 fi
drh71eb93e2001-09-28 01:34:43 +000018702 done
a.rottmann84e63352003-03-24 09:42:16 +000018703 done
18704 ;;
18705esac
18706done
mlcreech94984912008-03-04 19:03:08 +000018707IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000018708
drh71eb93e2001-09-28 01:34:43 +000018709
18710fi
18711 if test "${ac_cv_path_install+set}" = set; then
18712 INSTALL=$ac_cv_path_install
18713 else
mlcreech94984912008-03-04 19:03:08 +000018714 # As a last resort, use the slow shell script. Don't cache a
18715 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000018716 # break other packages using the cache if that directory is
mlcreech94984912008-03-04 19:03:08 +000018717 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000018718 INSTALL=$ac_install_sh
18719 fi
18720fi
mlcreech94984912008-03-04 19:03:08 +000018721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
18722echo "${ECHO_T}$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000018723
18724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18725# It thinks the first close brace ends the variable substitution.
18726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18727
18728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18729
18730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18731
drhf1878b42006-01-23 18:06:52 +000018732for ac_prog in gawk mawk nawk awk
18733do
18734 # Extract the first word of "$ac_prog", so it can be a program name with args.
18735set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000018736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
drhf1878b42006-01-23 18:06:52 +000018738if test "${ac_cv_prog_AWK+set}" = set; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18740else
18741 if test -n "$AWK"; then
18742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18743else
18744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745for as_dir in $PATH
18746do
18747 IFS=$as_save_IFS
18748 test -z "$as_dir" && as_dir=.
18749 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000018750 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 +000018751 ac_cv_prog_AWK="$ac_prog"
18752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18753 break 2
18754 fi
18755done
18756done
mlcreech94984912008-03-04 19:03:08 +000018757IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000018758
18759fi
18760fi
18761AWK=$ac_cv_prog_AWK
18762if test -n "$AWK"; then
mlcreech94984912008-03-04 19:03:08 +000018763 { echo "$as_me:$LINENO: result: $AWK" >&5
18764echo "${ECHO_T}$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000018765else
mlcreech94984912008-03-04 19:03:08 +000018766 { echo "$as_me:$LINENO: result: no" >&5
18767echo "${ECHO_T}no" >&6; }
drhf1878b42006-01-23 18:06:52 +000018768fi
18769
mlcreech94984912008-03-04 19:03:08 +000018770
drhf1878b42006-01-23 18:06:52 +000018771 test -n "$AWK" && break
18772done
18773
a.rottmann84e63352003-03-24 09:42:16 +000018774
drh75897232000-05-29 14:26:00 +000018775#########
mlcreechb87057f2008-03-06 07:19:20 +000018776# Check for needed/wanted data types
18777{ echo "$as_me:$LINENO: checking for int8_t" >&5
18778echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
18779if test "${ac_cv_type_int8_t+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18781else
18782 cat >conftest.$ac_ext <<_ACEOF
18783/* confdefs.h. */
18784_ACEOF
18785cat confdefs.h >>conftest.$ac_ext
18786cat >>conftest.$ac_ext <<_ACEOF
18787/* end confdefs.h. */
18788$ac_includes_default
18789typedef int8_t ac__type_new_;
18790int
18791main ()
18792{
18793if ((ac__type_new_ *) 0)
18794 return 0;
18795if (sizeof (ac__type_new_))
18796 return 0;
18797 ;
18798 return 0;
18799}
18800_ACEOF
18801rm -f conftest.$ac_objext
18802if { (ac_try="$ac_compile"
18803case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_compile") 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && {
18815 test -z "$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18817 } && test -s conftest.$ac_objext; then
18818 ac_cv_type_int8_t=yes
18819else
18820 echo "$as_me: failed program was:" >&5
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823 ac_cv_type_int8_t=no
18824fi
18825
18826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827fi
18828{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
18829echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
18830if test $ac_cv_type_int8_t = yes; then
18831
18832cat >>confdefs.h <<_ACEOF
18833#define HAVE_INT8_T 1
18834_ACEOF
18835
18836
18837fi
18838{ echo "$as_me:$LINENO: checking for int16_t" >&5
18839echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
18840if test "${ac_cv_type_int16_t+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
18849$ac_includes_default
18850typedef int16_t ac__type_new_;
18851int
18852main ()
18853{
18854if ((ac__type_new_ *) 0)
18855 return 0;
18856if (sizeof (ac__type_new_))
18857 return 0;
18858 ;
18859 return 0;
18860}
18861_ACEOF
18862rm -f conftest.$ac_objext
18863if { (ac_try="$ac_compile"
18864case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18867esac
18868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_cv_type_int16_t=yes
18880else
18881 echo "$as_me: failed program was:" >&5
18882sed 's/^/| /' conftest.$ac_ext >&5
18883
18884 ac_cv_type_int16_t=no
18885fi
18886
18887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18888fi
18889{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
18890echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
18891if test $ac_cv_type_int16_t = yes; then
18892
18893cat >>confdefs.h <<_ACEOF
18894#define HAVE_INT16_T 1
18895_ACEOF
18896
18897
18898fi
18899{ echo "$as_me:$LINENO: checking for int32_t" >&5
18900echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
18901if test "${ac_cv_type_int32_t+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18903else
18904 cat >conftest.$ac_ext <<_ACEOF
18905/* confdefs.h. */
18906_ACEOF
18907cat confdefs.h >>conftest.$ac_ext
18908cat >>conftest.$ac_ext <<_ACEOF
18909/* end confdefs.h. */
18910$ac_includes_default
18911typedef int32_t ac__type_new_;
18912int
18913main ()
18914{
18915if ((ac__type_new_ *) 0)
18916 return 0;
18917if (sizeof (ac__type_new_))
18918 return 0;
18919 ;
18920 return 0;
18921}
18922_ACEOF
18923rm -f conftest.$ac_objext
18924if { (ac_try="$ac_compile"
18925case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_compile") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest.$ac_objext; then
18940 ac_cv_type_int32_t=yes
18941else
18942 echo "$as_me: failed program was:" >&5
18943sed 's/^/| /' conftest.$ac_ext >&5
18944
18945 ac_cv_type_int32_t=no
18946fi
18947
18948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949fi
18950{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
18951echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
18952if test $ac_cv_type_int32_t = yes; then
18953
18954cat >>confdefs.h <<_ACEOF
18955#define HAVE_INT32_T 1
18956_ACEOF
18957
18958
18959fi
18960{ echo "$as_me:$LINENO: checking for int64_t" >&5
18961echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
18962if test "${ac_cv_type_int64_t+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964else
18965 cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
18971$ac_includes_default
18972typedef int64_t ac__type_new_;
18973int
18974main ()
18975{
18976if ((ac__type_new_ *) 0)
18977 return 0;
18978if (sizeof (ac__type_new_))
18979 return 0;
18980 ;
18981 return 0;
18982}
18983_ACEOF
18984rm -f conftest.$ac_objext
18985if { (ac_try="$ac_compile"
18986case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18989esac
18990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18992 ac_status=$?
18993 grep -v '^ *+' conftest.er1 >conftest.err
18994 rm -f conftest.er1
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.$ac_objext; then
19001 ac_cv_type_int64_t=yes
19002else
19003 echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 ac_cv_type_int64_t=no
19007fi
19008
19009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010fi
19011{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19012echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
19013if test $ac_cv_type_int64_t = yes; then
19014
19015cat >>confdefs.h <<_ACEOF
19016#define HAVE_INT64_T 1
19017_ACEOF
19018
19019
19020fi
19021{ echo "$as_me:$LINENO: checking for intptr_t" >&5
19022echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
19023if test "${ac_cv_type_intptr_t+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025else
19026 cat >conftest.$ac_ext <<_ACEOF
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032$ac_includes_default
19033typedef intptr_t ac__type_new_;
19034int
19035main ()
19036{
19037if ((ac__type_new_ *) 0)
19038 return 0;
19039if (sizeof (ac__type_new_))
19040 return 0;
19041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext
19046if { (ac_try="$ac_compile"
19047case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest.$ac_objext; then
19062 ac_cv_type_intptr_t=yes
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_cv_type_intptr_t=no
19068fi
19069
19070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19071fi
19072{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
19073echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
19074if test $ac_cv_type_intptr_t = yes; then
19075
19076cat >>confdefs.h <<_ACEOF
19077#define HAVE_INTPTR_T 1
19078_ACEOF
19079
19080
19081fi
19082{ echo "$as_me:$LINENO: checking for uint8_t" >&5
19083echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
19084if test "${ac_cv_type_uint8_t+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19086else
19087 cat >conftest.$ac_ext <<_ACEOF
19088/* confdefs.h. */
19089_ACEOF
19090cat confdefs.h >>conftest.$ac_ext
19091cat >>conftest.$ac_ext <<_ACEOF
19092/* end confdefs.h. */
19093$ac_includes_default
19094typedef uint8_t ac__type_new_;
19095int
19096main ()
19097{
19098if ((ac__type_new_ *) 0)
19099 return 0;
19100if (sizeof (ac__type_new_))
19101 return 0;
19102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
19107if { (ac_try="$ac_compile"
19108case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_compile") 2>conftest.er1
19114 ac_status=$?
19115 grep -v '^ *+' conftest.er1 >conftest.err
19116 rm -f conftest.er1
19117 cat conftest.err >&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && {
19120 test -z "$ac_c_werror_flag" ||
19121 test ! -s conftest.err
19122 } && test -s conftest.$ac_objext; then
19123 ac_cv_type_uint8_t=yes
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_type_uint8_t=no
19129fi
19130
19131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132fi
19133{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
19134echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
19135if test $ac_cv_type_uint8_t = yes; then
19136
19137cat >>confdefs.h <<_ACEOF
19138#define HAVE_UINT8_T 1
19139_ACEOF
19140
19141
19142fi
19143{ echo "$as_me:$LINENO: checking for uint16_t" >&5
19144echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
19145if test "${ac_cv_type_uint16_t+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147else
19148 cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
19154$ac_includes_default
19155typedef uint16_t ac__type_new_;
19156int
19157main ()
19158{
19159if ((ac__type_new_ *) 0)
19160 return 0;
19161if (sizeof (ac__type_new_))
19162 return 0;
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext
19168if { (ac_try="$ac_compile"
19169case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172esac
19173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19175 ac_status=$?
19176 grep -v '^ *+' conftest.er1 >conftest.err
19177 rm -f conftest.er1
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
19184 ac_cv_type_uint16_t=yes
19185else
19186 echo "$as_me: failed program was:" >&5
19187sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 ac_cv_type_uint16_t=no
19190fi
19191
19192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193fi
19194{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
19195echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
19196if test $ac_cv_type_uint16_t = yes; then
19197
19198cat >>confdefs.h <<_ACEOF
19199#define HAVE_UINT16_T 1
19200_ACEOF
19201
19202
19203fi
19204{ echo "$as_me:$LINENO: checking for uint32_t" >&5
19205echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
19206if test "${ac_cv_type_uint32_t+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19208else
19209 cat >conftest.$ac_ext <<_ACEOF
19210/* confdefs.h. */
19211_ACEOF
19212cat confdefs.h >>conftest.$ac_ext
19213cat >>conftest.$ac_ext <<_ACEOF
19214/* end confdefs.h. */
19215$ac_includes_default
19216typedef uint32_t ac__type_new_;
19217int
19218main ()
19219{
19220if ((ac__type_new_ *) 0)
19221 return 0;
19222if (sizeof (ac__type_new_))
19223 return 0;
19224 ;
19225 return 0;
19226}
19227_ACEOF
19228rm -f conftest.$ac_objext
19229if { (ac_try="$ac_compile"
19230case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19233esac
19234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_compile") 2>conftest.er1
19236 ac_status=$?
19237 grep -v '^ *+' conftest.er1 >conftest.err
19238 rm -f conftest.er1
19239 cat conftest.err >&5
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); } && {
19242 test -z "$ac_c_werror_flag" ||
19243 test ! -s conftest.err
19244 } && test -s conftest.$ac_objext; then
19245 ac_cv_type_uint32_t=yes
19246else
19247 echo "$as_me: failed program was:" >&5
19248sed 's/^/| /' conftest.$ac_ext >&5
19249
19250 ac_cv_type_uint32_t=no
19251fi
19252
19253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19254fi
19255{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
19256echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
19257if test $ac_cv_type_uint32_t = yes; then
19258
19259cat >>confdefs.h <<_ACEOF
19260#define HAVE_UINT32_T 1
19261_ACEOF
19262
19263
19264fi
19265{ echo "$as_me:$LINENO: checking for uint64_t" >&5
19266echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
19267if test "${ac_cv_type_uint64_t+set}" = set; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269else
19270 cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
19275/* end confdefs.h. */
19276$ac_includes_default
19277typedef uint64_t ac__type_new_;
19278int
19279main ()
19280{
19281if ((ac__type_new_ *) 0)
19282 return 0;
19283if (sizeof (ac__type_new_))
19284 return 0;
19285 ;
19286 return 0;
19287}
19288_ACEOF
19289rm -f conftest.$ac_objext
19290if { (ac_try="$ac_compile"
19291case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294esac
19295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_compile") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest.$ac_objext; then
19306 ac_cv_type_uint64_t=yes
19307else
19308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_cv_type_uint64_t=no
19312fi
19313
19314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19315fi
19316{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19317echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
19318if test $ac_cv_type_uint64_t = yes; then
19319
19320cat >>confdefs.h <<_ACEOF
19321#define HAVE_UINT64_T 1
19322_ACEOF
19323
19324
19325fi
19326{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
19327echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
19328if test "${ac_cv_type_uintptr_t+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330else
19331 cat >conftest.$ac_ext <<_ACEOF
19332/* confdefs.h. */
19333_ACEOF
19334cat confdefs.h >>conftest.$ac_ext
19335cat >>conftest.$ac_ext <<_ACEOF
19336/* end confdefs.h. */
19337$ac_includes_default
19338typedef uintptr_t ac__type_new_;
19339int
19340main ()
19341{
19342if ((ac__type_new_ *) 0)
19343 return 0;
19344if (sizeof (ac__type_new_))
19345 return 0;
19346 ;
19347 return 0;
19348}
19349_ACEOF
19350rm -f conftest.$ac_objext
19351if { (ac_try="$ac_compile"
19352case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355esac
19356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_compile") 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } && {
19364 test -z "$ac_c_werror_flag" ||
19365 test ! -s conftest.err
19366 } && test -s conftest.$ac_objext; then
19367 ac_cv_type_uintptr_t=yes
19368else
19369 echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_type_uintptr_t=no
19373fi
19374
19375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19376fi
19377{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
19378echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
19379if test $ac_cv_type_uintptr_t = yes; then
19380
19381cat >>confdefs.h <<_ACEOF
19382#define HAVE_UINTPTR_T 1
19383_ACEOF
19384
19385
19386fi
19387
19388
19389#########
19390# Check for needed/wanted headers
19391
mlcreech8390bc32008-03-06 08:54:38 +000019392
19393
19394
19395for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000019396do
19397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
mlcreech8390bc32008-03-06 08:54:38 +000019398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
mlcreechb87057f2008-03-06 07:19:20 +000019400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19401if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000019403fi
19404ac_res=`eval echo '${'$as_ac_Header'}'`
19405 { echo "$as_me:$LINENO: result: $ac_res" >&5
19406echo "${ECHO_T}$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000019407else
mlcreech8390bc32008-03-06 08:54:38 +000019408 # Is the header compilable?
19409{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19411cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000019412/* confdefs.h. */
19413_ACEOF
19414cat confdefs.h >>conftest.$ac_ext
19415cat >>conftest.$ac_ext <<_ACEOF
19416/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000019417$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000019418#include <$ac_header>
19419_ACEOF
19420rm -f conftest.$ac_objext
19421if { (ac_try="$ac_compile"
19422case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19428 ac_status=$?
19429 grep -v '^ *+' conftest.er1 >conftest.err
19430 rm -f conftest.er1
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000019437 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000019438else
19439 echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
mlcreech8390bc32008-03-06 08:54:38 +000019442 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000019443fi
19444
19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech8390bc32008-03-06 08:54:38 +000019446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19447echo "${ECHO_T}$ac_header_compiler" >&6; }
19448
19449# Is the header present?
19450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19452cat >conftest.$ac_ext <<_ACEOF
19453/* confdefs.h. */
19454_ACEOF
19455cat confdefs.h >>conftest.$ac_ext
19456cat >>conftest.$ac_ext <<_ACEOF
19457/* end confdefs.h. */
19458#include <$ac_header>
19459_ACEOF
19460if { (ac_try="$ac_cpp conftest.$ac_ext"
19461case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19464esac
19465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19467 ac_status=$?
19468 grep -v '^ *+' conftest.er1 >conftest.err
19469 rm -f conftest.er1
19470 cat conftest.err >&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); } >/dev/null && {
19473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19474 test ! -s conftest.err
19475 }; then
19476 ac_header_preproc=yes
19477else
19478 echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481 ac_header_preproc=no
19482fi
19483
19484rm -f conftest.err conftest.$ac_ext
19485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19486echo "${ECHO_T}$ac_header_preproc" >&6; }
19487
19488# So? What about this header?
19489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 yes:no: )
19491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19495 ac_header_preproc=yes
19496 ;;
19497 no:yes:* )
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19510
19511 ;;
19512esac
19513{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19517else
19518 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000019519fi
19520ac_res=`eval echo '${'$as_ac_Header'}'`
19521 { echo "$as_me:$LINENO: result: $ac_res" >&5
19522echo "${ECHO_T}$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000019523
19524fi
mlcreechb87057f2008-03-06 07:19:20 +000019525if test `eval echo '${'$as_ac_Header'}'` = yes; then
19526 cat >>confdefs.h <<_ACEOF
19527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19528_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000019529
mlcreechb87057f2008-03-06 07:19:20 +000019530fi
19531
19532done
19533
19534
19535#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000019536# Figure out whether or not we have these functions
19537#
19538
19539
19540
19541
19542for ac_func in usleep fdatasync localtime_r gmtime_r
19543do
19544as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19545{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19546echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19549else
19550 cat >conftest.$ac_ext <<_ACEOF
19551/* confdefs.h. */
19552_ACEOF
19553cat confdefs.h >>conftest.$ac_ext
19554cat >>conftest.$ac_ext <<_ACEOF
19555/* end confdefs.h. */
19556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19558#define $ac_func innocuous_$ac_func
19559
19560/* System header to define __stub macros and hopefully few prototypes,
19561 which can conflict with char $ac_func (); below.
19562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19563 <limits.h> exists even on freestanding compilers. */
19564
19565#ifdef __STDC__
19566# include <limits.h>
19567#else
19568# include <assert.h>
19569#endif
19570
19571#undef $ac_func
19572
19573/* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19576#ifdef __cplusplus
19577extern "C"
19578#endif
19579char $ac_func ();
19580/* The GNU C library defines this for functions which it implements
19581 to always fail with ENOSYS. Some functions are actually named
19582 something starting with __ and the normal name is an alias. */
19583#if defined __stub_$ac_func || defined __stub___$ac_func
19584choke me
19585#endif
19586
19587int
19588main ()
19589{
19590return $ac_func ();
19591 ;
19592 return 0;
19593}
19594_ACEOF
19595rm -f conftest.$ac_objext conftest$ac_exeext
19596if { (ac_try="$ac_link"
19597case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600esac
19601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_link") 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest$ac_exeext &&
19612 $as_test_x conftest$ac_exeext; then
19613 eval "$as_ac_var=yes"
19614else
19615 echo "$as_me: failed program was:" >&5
19616sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 eval "$as_ac_var=no"
19619fi
19620
19621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19623fi
19624ac_res=`eval echo '${'$as_ac_var'}'`
19625 { echo "$as_me:$LINENO: result: $ac_res" >&5
19626echo "${ECHO_T}$ac_res" >&6; }
19627if test `eval echo '${'$as_ac_var'}'` = yes; then
19628 cat >>confdefs.h <<_ACEOF
19629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19630_ACEOF
19631
19632fi
19633done
19634
19635
mlcreechab1c47b2008-03-09 02:51:10 +000019636#########
mlcreechf3868112008-03-11 18:03:30 +000019637# By default, we use the amalgamation (this may be changed below...)
19638#
19639USE_AMALGAMATION=1
19640
19641#########
mlcreechab1c47b2008-03-09 02:51:10 +000019642# See whether we can run specific tclsh versions known to work well;
19643# if not, then we fall back to plain tclsh.
19644# TODO: try other versions before falling back?
19645#
19646for ac_prog in tclsh8.4 tclsh
19647do
19648 # Extract the first word of "$ac_prog", so it can be a program name with args.
19649set dummy $ac_prog; ac_word=$2
19650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19652if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654else
19655 if test -n "$TCLSH_CMD"; then
19656 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
19657else
19658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659for as_dir in $PATH
19660do
19661 IFS=$as_save_IFS
19662 test -z "$as_dir" && as_dir=.
19663 for ac_exec_ext in '' $ac_executable_extensions; do
19664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19665 ac_cv_prog_TCLSH_CMD="$ac_prog"
19666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19667 break 2
19668 fi
19669done
19670done
19671IFS=$as_save_IFS
19672
19673fi
19674fi
19675TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
19676if test -n "$TCLSH_CMD"; then
19677 { echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
19678echo "${ECHO_T}$TCLSH_CMD" >&6; }
19679else
19680 { echo "$as_me:$LINENO: result: no" >&5
19681echo "${ECHO_T}no" >&6; }
19682fi
19683
19684
19685 test -n "$TCLSH_CMD" && break
19686done
mlcreechf3868112008-03-11 18:03:30 +000019687test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000019688
mlcreechf3868112008-03-11 18:03:30 +000019689if test "$TCLSH_CMD" = "none"; then
19690 # If we can't find a local tclsh, then building the amalgamation will fail.
19691 # We act as though --disable-amalgamation has been used.
19692 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
19693 USE_AMALGAMATION=0
19694 TCLSH_CMD="tclsh"
19695fi
mlcreechab1c47b2008-03-09 02:51:10 +000019696
19697
mlcreech5b0a9eb2008-03-09 01:38:09 +000019698
19699#########
drh75897232000-05-29 14:26:00 +000019700# Set up an appropriate program prefix
19701#
19702if test "$program_prefix" = "NONE"; then
19703 program_prefix=""
19704fi
19705
a.rottmann84e63352003-03-24 09:42:16 +000019706
drh4b2266a2004-11-27 15:52:16 +000019707VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
19708echo "Version set to $VERSION"
19709
19710RELEASE=`cat $srcdir/VERSION`
19711echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000019712
danielk197799ba19e2005-02-05 07:33:34 +000019713VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000019714 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000019715 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000019716echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000019717
drh26d0e2a2005-07-06 13:51:27 +000019718
drh75897232000-05-29 14:26:00 +000019719#########
19720# Check to see if the --with-hints=FILE option is used. If there is none,
19721# then check for a files named "$host.hints" and ../$hosts.hints where
19722# $host is the hostname of the build system. If still no hints are
19723# found, try looking in $system.hints and ../$system.hints where
19724# $system is the result of uname -s.
19725#
drh71eb93e2001-09-28 01:34:43 +000019726
mlcreech94984912008-03-04 19:03:08 +000019727# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000019728if test "${with_hints+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019729 withval=$with_hints; hints=$withval
19730fi
19731
drh75897232000-05-29 14:26:00 +000019732if test "$hints" = ""; then
19733 host=`hostname | sed 's/\..*//'`
19734 if test -r $host.hints; then
19735 hints=$host.hints
19736 else
19737 if test -r ../$host.hints; then
19738 hints=../$host.hints
19739 fi
19740 fi
19741fi
19742if test "$hints" = ""; then
19743 sys=`uname -s`
19744 if test -r $sys.hints; then
19745 hints=$sys.hints
19746 else
19747 if test -r ../$sys.hints; then
19748 hints=../$sys.hints
19749 fi
19750 fi
19751fi
19752if test "$hints" != ""; then
mlcreech94984912008-03-04 19:03:08 +000019753 { echo "$as_me:$LINENO: result: reading hints from $hints" >&5
19754echo "${ECHO_T}reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000019755 . $hints
19756fi
19757
19758#########
19759# Locate a compiler for the build machine. This compiler should
19760# generate command-line programs that run on the build machine.
19761#
vapier7f19c022007-02-17 14:46:31 +000019762if test x"$cross_compiling" = xno; then
19763 BUILD_CC=$CC
19764 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000019765else
vapier7f19c022007-02-17 14:46:31 +000019766 if test "${BUILD_CC+set}" != set; then
19767 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000019768do
19769 # Extract the first word of "$ac_prog", so it can be a program name with args.
19770set dummy $ac_prog; ac_word=$2
mlcreech94984912008-03-04 19:03:08 +000019771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000019773if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000019774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
vapier7f19c022007-02-17 14:46:31 +000019776 if test -n "$BUILD_CC"; then
19777 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000019778else
a.rottmann84e63352003-03-24 09:42:16 +000019779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19780for as_dir in $PATH
19781do
19782 IFS=$as_save_IFS
19783 test -z "$as_dir" && as_dir=.
19784 for ac_exec_ext in '' $ac_executable_extensions; do
mlcreech94984912008-03-04 19:03:08 +000019785 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 +000019786 ac_cv_prog_BUILD_CC="$ac_prog"
a.rottmann84e63352003-03-24 09:42:16 +000019787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19788 break 2
19789 fi
19790done
drh71eb93e2001-09-28 01:34:43 +000019791done
mlcreech94984912008-03-04 19:03:08 +000019792IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000019793
drh71eb93e2001-09-28 01:34:43 +000019794fi
19795fi
vapier7f19c022007-02-17 14:46:31 +000019796BUILD_CC=$ac_cv_prog_BUILD_CC
19797if test -n "$BUILD_CC"; then
mlcreech94984912008-03-04 19:03:08 +000019798 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
19799echo "${ECHO_T}$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019800else
mlcreech94984912008-03-04 19:03:08 +000019801 { echo "$as_me:$LINENO: result: no" >&5
19802echo "${ECHO_T}no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000019803fi
drh75897232000-05-29 14:26:00 +000019804
mlcreech94984912008-03-04 19:03:08 +000019805
vapier7f19c022007-02-17 14:46:31 +000019806 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000019807done
drh75897232000-05-29 14:26:00 +000019808
vapier7f19c022007-02-17 14:46:31 +000019809 fi
19810 if test "${BUILD_CFLAGS+set}" != set; then
19811 BUILD_CFLAGS="-g"
19812 fi
drh71eb93e2001-09-28 01:34:43 +000019813fi
19814
a.rottmann84e63352003-03-24 09:42:16 +000019815
drh297ecf12001-04-05 15:57:13 +000019816##########
dougcurrie0f290bf2004-06-21 18:57:29 +000019817# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000019818#
mlcreech94984912008-03-04 19:03:08 +000019819# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000019820if test "${enable_threadsafe+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019821 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000019822else
drh5a3032b2007-09-03 16:12:09 +000019823 enable_threadsafe=yes
mlcreech94984912008-03-04 19:03:08 +000019824fi
19825
19826{ echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
19827echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000019828if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000019829 SQLITE_THREADSAFE=0
mlcreech94984912008-03-04 19:03:08 +000019830 { echo "$as_me:$LINENO: result: no" >&5
19831echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019832else
drh5a3032b2007-09-03 16:12:09 +000019833 SQLITE_THREADSAFE=1
mlcreech94984912008-03-04 19:03:08 +000019834 { echo "$as_me:$LINENO: result: yes" >&5
19835echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000019836fi
19837
a.rottmann964dbb12004-02-26 19:47:42 +000019838
drh5a3032b2007-09-03 16:12:09 +000019839if test "$SQLITE_THREADSAFE" = "1"; then
mlcreechc658b0f2008-03-09 02:20:11 +000019840 { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
19841echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; }
19842if test "${ac_cv_search_pthread_create+set}" = set; then
dougcurrie65623c72004-09-20 14:57:23 +000019843 echo $ECHO_N "(cached) $ECHO_C" >&6
19844else
mlcreechc658b0f2008-03-09 02:20:11 +000019845 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000019846cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852
mlcreech94984912008-03-04 19:03:08 +000019853/* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000019856#ifdef __cplusplus
19857extern "C"
19858#endif
dougcurrie65623c72004-09-20 14:57:23 +000019859char pthread_create ();
19860int
19861main ()
19862{
mlcreech94984912008-03-04 19:03:08 +000019863return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000019864 ;
19865 return 0;
19866}
19867_ACEOF
mlcreechc658b0f2008-03-09 02:20:11 +000019868for ac_lib in '' pthread; do
19869 if test -z "$ac_lib"; then
19870 ac_res="none required"
19871 else
19872 ac_res=-l$ac_lib
19873 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19874 fi
19875 rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000019876if { (ac_try="$ac_link"
19877case "(($ac_try" in
19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19879 *) ac_try_echo=$ac_try;;
19880esac
19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_link") 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000019883 ac_status=$?
19884 grep -v '^ *+' conftest.er1 >conftest.err
19885 rm -f conftest.er1
19886 cat conftest.err >&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000019888 (exit $ac_status); } && {
19889 test -z "$ac_c_werror_flag" ||
19890 test ! -s conftest.err
19891 } && test -s conftest$ac_exeext &&
19892 $as_test_x conftest$ac_exeext; then
mlcreechc658b0f2008-03-09 02:20:11 +000019893 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000019894else
19895 echo "$as_me: failed program was:" >&5
19896sed 's/^/| /' conftest.$ac_ext >&5
19897
mlcreechc658b0f2008-03-09 02:20:11 +000019898
dougcurrie65623c72004-09-20 14:57:23 +000019899fi
mlcreech94984912008-03-04 19:03:08 +000019900
19901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreechc658b0f2008-03-09 02:20:11 +000019902 conftest$ac_exeext
19903 if test "${ac_cv_search_pthread_create+set}" = set; then
19904 break
dougcurrie65623c72004-09-20 14:57:23 +000019905fi
mlcreechc658b0f2008-03-09 02:20:11 +000019906done
19907if test "${ac_cv_search_pthread_create+set}" = set; then
19908 :
dougcurrie65623c72004-09-20 14:57:23 +000019909else
mlcreechc658b0f2008-03-09 02:20:11 +000019910 ac_cv_search_pthread_create=no
19911fi
19912rm conftest.$ac_ext
19913LIBS=$ac_func_search_save_LIBS
19914fi
19915{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
19916echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; }
19917ac_res=$ac_cv_search_pthread_create
19918if test "$ac_res" != no; then
19919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19920
dougcurrie65623c72004-09-20 14:57:23 +000019921fi
19922
mlcreechc658b0f2008-03-09 02:20:11 +000019923fi
dougcurrie65623c72004-09-20 14:57:23 +000019924
xdong28f79f72003-09-23 00:35:21 +000019925##########
drh91636d52005-11-24 23:14:00 +000019926# Do we want to allow a connection created in one thread to be used
19927# in another thread. This does not work on many Linux systems (ex: RedHat 9)
19928# due to bugs in the threading implementations. This is thus off by default.
19929#
mlcreech94984912008-03-04 19:03:08 +000019930# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000019931if test "${enable_cross_thread_connections+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019932 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000019933else
19934 enable_xthreadconnect=no
mlcreech94984912008-03-04 19:03:08 +000019935fi
19936
19937{ echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
19938echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6; }
drh91636d52005-11-24 23:14:00 +000019939if test "$enable_xthreadconnect" = "no"; then
19940 XTHREADCONNECT=''
mlcreech94984912008-03-04 19:03:08 +000019941 { echo "$as_me:$LINENO: result: no" >&5
19942echo "${ECHO_T}no" >&6; }
drh91636d52005-11-24 23:14:00 +000019943else
19944 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
mlcreech94984912008-03-04 19:03:08 +000019945 { echo "$as_me:$LINENO: result: yes" >&5
19946echo "${ECHO_T}yes" >&6; }
drh91636d52005-11-24 23:14:00 +000019947fi
19948
19949
19950##########
drh8e2e2a12006-02-01 01:55:17 +000019951# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
19952# default. Normally, a test at runtime is performed to determine the
19953# appropriate value of this variable. Use this option only if you're sure that
19954# threads can safely override each others locks in all runtime situations.
19955#
mlcreech94984912008-03-04 19:03:08 +000019956# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000019957if test "${enable_threads_override_locks+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019958 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000019959else
19960 enable_threads_override_locks=no
mlcreech94984912008-03-04 19:03:08 +000019961fi
19962
19963{ echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
19964echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019965if test "$enable_threads_override_locks" = "no"; then
19966 THREADSOVERRIDELOCKS='-1'
mlcreech94984912008-03-04 19:03:08 +000019967 { echo "$as_me:$LINENO: result: no" >&5
19968echo "${ECHO_T}no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019969else
19970 THREADSOVERRIDELOCKS='1'
mlcreech94984912008-03-04 19:03:08 +000019971 { echo "$as_me:$LINENO: result: yes" >&5
19972echo "${ECHO_T}yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000019973fi
19974
19975
19976##########
xdong28f79f72003-09-23 00:35:21 +000019977# Do we want to support release
19978#
mlcreech94984912008-03-04 19:03:08 +000019979# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000019980if test "${enable_releasemode+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000019981 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000019982else
19983 enable_releasemode=no
mlcreech94984912008-03-04 19:03:08 +000019984fi
19985
19986{ echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
19987echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019988if test "$enable_releasemode" = "no"; then
19989 ALLOWRELEASE=""
mlcreech94984912008-03-04 19:03:08 +000019990 { echo "$as_me:$LINENO: result: no" >&5
19991echo "${ECHO_T}no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019992else
drh0b47d342007-11-27 14:50:06 +000019993 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
mlcreech94984912008-03-04 19:03:08 +000019994 { echo "$as_me:$LINENO: result: yes" >&5
19995echo "${ECHO_T}yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000019996fi
paulb0208cc2003-04-13 18:26:49 +000019997
a.rottmann964dbb12004-02-26 19:47:42 +000019998
paulb0208cc2003-04-13 18:26:49 +000019999##########
20000# Do we want temporary databases in memory
20001#
mlcreech94984912008-03-04 19:03:08 +000020002# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000020003if test "${enable_tempstore+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020004 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000020005else
drh54414bb2005-10-10 00:05:50 +000020006 enable_tempstore=no
mlcreech94984912008-03-04 19:03:08 +000020007fi
20008
20009{ echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
20010echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000020011case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000020012 never )
paul2dc96f92003-04-20 11:46:34 +000020013 TEMP_STORE=0
mlcreech94984912008-03-04 19:03:08 +000020014 { echo "$as_me:$LINENO: result: never" >&5
20015echo "${ECHO_T}never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000020016 ;;
20017 no )
paul2dc96f92003-04-20 11:46:34 +000020018 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000020019 { echo "$as_me:$LINENO: result: no" >&5
20020echo "${ECHO_T}no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000020021 ;;
20022 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000020023 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000020024 { echo "$as_me:$LINENO: result: always" >&5
20025echo "${ECHO_T}always" >&6; }
paulb0208cc2003-04-13 18:26:49 +000020026 ;;
drh54414bb2005-10-10 00:05:50 +000020027 yes )
20028 TEMP_STORE=3
mlcreech94984912008-03-04 19:03:08 +000020029 { echo "$as_me:$LINENO: result: always" >&5
20030echo "${ECHO_T}always" >&6; }
drh54414bb2005-10-10 00:05:50 +000020031 ;;
paulb0208cc2003-04-13 18:26:49 +000020032 * )
drh54414bb2005-10-10 00:05:50 +000020033 TEMP_STORE=1
mlcreech94984912008-03-04 19:03:08 +000020034 { echo "$as_me:$LINENO: result: yes" >&5
20035echo "${ECHO_T}yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000020036 ;;
20037esac
20038
20039
20040
drh75897232000-05-29 14:26:00 +000020041###########
20042# Lots of things are different if we are compiling for Windows using
20043# the CYGWIN environment. So check for that special case and handle
20044# things accordingly.
20045#
mlcreech94984912008-03-04 19:03:08 +000020046{ echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
20047echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6; }
drh75897232000-05-29 14:26:00 +000020048if test "$config_BUILD_EXEEXT" = ".exe"; then
20049 CYGWIN=yes
mlcreech94984912008-03-04 19:03:08 +000020050 { echo "$as_me:$LINENO: result: yes" >&5
20051echo "${ECHO_T}yes" >&6; }
drh75897232000-05-29 14:26:00 +000020052else
mlcreech94984912008-03-04 19:03:08 +000020053 { echo "$as_me:$LINENO: result: unknown" >&5
20054echo "${ECHO_T}unknown" >&6; }
drh75897232000-05-29 14:26:00 +000020055fi
20056if test "$CYGWIN" != "yes"; then
mlcreech94984912008-03-04 19:03:08 +000020057 { echo "$as_me:$LINENO: checking host system type" >&5
20058echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
20059if test "${ac_cv_host+set}" = set; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20061else
20062 if test "x$host_alias" = x; then
20063 ac_cv_host=$ac_cv_build
20064else
20065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
20066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
20067echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
20068 { (exit 1); exit 1; }; }
20069fi
20070
20071fi
20072{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
20073echo "${ECHO_T}$ac_cv_host" >&6; }
20074case $ac_cv_host in
20075*-*-*) ;;
20076*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
20077echo "$as_me: error: invalid value of canonical host" >&2;}
20078 { (exit 1); exit 1; }; };;
20079esac
20080host=$ac_cv_host
20081ac_save_IFS=$IFS; IFS='-'
20082set x $ac_cv_host
20083shift
20084host_cpu=$1
20085host_vendor=$2
20086shift; shift
20087# Remember, the first character of IFS is used to create $*,
20088# except with old shells:
20089host_os=$*
20090IFS=$ac_save_IFS
20091case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
20092
a.rottmann84e63352003-03-24 09:42:16 +000020093
20094case $host_os in
drh71eb93e2001-09-28 01:34:43 +000020095 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000020096 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000020097esac
drh75897232000-05-29 14:26:00 +000020098
drh75897232000-05-29 14:26:00 +000020099fi
20100if test "$CYGWIN" = "yes"; then
20101 BUILD_EXEEXT=.exe
20102else
dougcurrie6194a5f2003-12-19 20:09:51 +000020103 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000020104fi
vapier7f19c022007-02-17 14:46:31 +000020105if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000020106 TARGET_EXEEXT=$BUILD_EXEEXT
20107else
20108 TARGET_EXEEXT=$config_TARGET_EXEEXT
20109fi
20110if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000020111 if test $OS2_SHELL ; then
20112 OS_UNIX=0
20113 OS_WIN=0
20114 OS_OS2=1
mlcreech8390bc32008-03-06 08:54:38 +000020115 CFLAGS="$CFLAGS -DOS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000020116 if test "$ac_compiler_gnu" == "yes" ; then
mlcreech8390bc32008-03-06 08:54:38 +000020117 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
drh60a1e4b2006-06-03 18:02:15 +000020118 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
20119 fi
20120 else
20121 OS_UNIX=0
20122 OS_WIN=1
20123 OS_OS2=0
20124 tclsubdir=win
mlcreech8390bc32008-03-06 08:54:38 +000020125 CFLAGS="$CFLAGS -DOS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000020126 fi
drh75897232000-05-29 14:26:00 +000020127else
20128 OS_UNIX=1
20129 OS_WIN=0
drh60a1e4b2006-06-03 18:02:15 +000020130 OS_OS2=0
drh75897232000-05-29 14:26:00 +000020131 tclsubdir=unix
mlcreech8390bc32008-03-06 08:54:38 +000020132 CFLAGS="$CFLAGS -DOS_UNIX=1"
drh75897232000-05-29 14:26:00 +000020133fi
drh75897232000-05-29 14:26:00 +000020134
a.rottmann84e63352003-03-24 09:42:16 +000020135
20136
20137
20138
20139
drh75897232000-05-29 14:26:00 +000020140
drh75897232000-05-29 14:26:00 +000020141##########
drh7b5717e2004-11-25 13:50:01 +000020142# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000020143#
drh7b5717e2004-11-25 13:50:01 +000020144# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
20145# macros in the in the tcl.m4 file of the standard TCL distribution.
20146# Those macros could not be used directly since we have to make some
20147# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000020148#
mlcreech94984912008-03-04 19:03:08 +000020149# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000020150if test "${enable_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020151 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000020152else
drh7b5717e2004-11-25 13:50:01 +000020153 use_tcl=yes
mlcreech94984912008-03-04 19:03:08 +000020154fi
20155
drh7b5717e2004-11-25 13:50:01 +000020156if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000020157
mlcreech94984912008-03-04 19:03:08 +000020158# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000020159if test "${with_tcl+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020160 withval=$with_tcl; with_tclconfig=${withval}
20161fi
20162
20163 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20164echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000020165 if test "${ac_cv_c_tclconfig+set}" = set; then
a.rottmann84e63352003-03-24 09:42:16 +000020166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else
a.rottmann84e63352003-03-24 09:42:16 +000020168
drh7b5717e2004-11-25 13:50:01 +000020169 # First check to see if --with-tcl was specified.
20170 if test x"${with_tclconfig}" != x ; then
20171 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20172 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20173 else
20174 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20175echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000020176 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000020177 fi
20178 fi
20179 # then check for a private Tcl installation
20180 if test x"${ac_cv_c_tclconfig}" = x ; then
20181 for i in \
20182 ../tcl \
20183 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20184 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20185 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20186 ../../tcl \
20187 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20188 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20189 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20190 ../../../tcl \
20191 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20192 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20193 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
20194 do
20195 if test -f "$i/unix/tclConfig.sh" ; then
20196 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
20197 break
20198 fi
20199 done
20200 fi
20201
20202 # check in a few common install locations
20203 if test x"${ac_cv_c_tclconfig}" = x ; then
20204 for i in \
20205 `ls -d ${libdir} 2>/dev/null` \
20206 `ls -d /usr/local/lib 2>/dev/null` \
20207 `ls -d /usr/contrib/lib 2>/dev/null` \
20208 `ls -d /usr/lib 2>/dev/null`
20209 do
20210 if test -f "$i/tclConfig.sh" ; then
20211 ac_cv_c_tclconfig=`(cd $i; pwd)`
20212 break
20213 fi
20214 done
20215 fi
20216
20217 # check in a few other private locations
20218 if test x"${ac_cv_c_tclconfig}" = x ; then
20219 for i in \
20220 ${srcdir}/../tcl \
20221 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20222 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20223 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
20224 do
20225 if test -f "$i/unix/tclConfig.sh" ; then
20226 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
20227 break
20228 fi
20229 done
20230 fi
20231
drh75897232000-05-29 14:26:00 +000020232fi
20233
drh7b5717e2004-11-25 13:50:01 +000020234
20235 if test x"${ac_cv_c_tclconfig}" = x ; then
20236 use_tcl=no
20237 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20238echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
20240echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
20242echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
20243 else
20244 TCL_BIN_DIR=${ac_cv_c_tclconfig}
mlcreech94984912008-03-04 19:03:08 +000020245 { echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
20246echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000020247
mlcreech94984912008-03-04 19:03:08 +000020248 { echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
20249echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6; }
drh7b5717e2004-11-25 13:50:01 +000020250 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
mlcreech94984912008-03-04 19:03:08 +000020251 { echo "$as_me:$LINENO: result: loading" >&5
20252echo "${ECHO_T}loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000020253 . $TCL_BIN_DIR/tclConfig.sh
20254 else
mlcreech94984912008-03-04 19:03:08 +000020255 { echo "$as_me:$LINENO: result: file not found" >&5
20256echo "${ECHO_T}file not found" >&6; }
drh75897232000-05-29 14:26:00 +000020257 fi
drh7b5717e2004-11-25 13:50:01 +000020258
20259 #
20260 # If the TCL_BIN_DIR is the build directory (not the install directory),
20261 # then set the common variable name to the value of the build variables.
20262 # For example, the variable TCL_LIB_SPEC will be set to the value
20263 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20264 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20265 # installed and uninstalled version of Tcl.
20266 #
20267
mlcreechab1c47b2008-03-09 02:51:10 +000020268 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000020269 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20270 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20271 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20272 fi
20273
20274 #
20275 # eval is required to do the TCL_DBGX substitution
20276 #
20277
20278 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20279 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20280 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20281
20282 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20283 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20284 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299 fi
drh75897232000-05-29 14:26:00 +000020300fi
drh7b5717e2004-11-25 13:50:01 +000020301if test "${use_tcl}" = "no" ; then
20302 HAVE_TCL=""
20303else
20304 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000020305fi
drh75897232000-05-29 14:26:00 +000020306
a.rottmann84e63352003-03-24 09:42:16 +000020307
drh75897232000-05-29 14:26:00 +000020308##########
20309# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000020310# that use "readline()" library.
20311#
vapier7f19c022007-02-17 14:46:31 +000020312TARGET_READLINE_LIBS=""
20313TARGET_READLINE_INC=""
20314TARGET_HAVE_READLINE=0
mlcreech94984912008-03-04 19:03:08 +000020315# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000020316if test "${enable_readline+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020317 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000020318else
vapier7f19c022007-02-17 14:46:31 +000020319 with_readline=auto
mlcreech94984912008-03-04 19:03:08 +000020320fi
20321
vapier7f19c022007-02-17 14:46:31 +000020322
20323if test x"$with_readline" != xno; then
20324 found="yes"
20325
20326
mlcreech94984912008-03-04 19:03:08 +000020327# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000020328if test "${with_readline_lib+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020329 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000020330else
20331 with_readline_lib="auto"
mlcreech94984912008-03-04 19:03:08 +000020332fi
20333
vapier7f19c022007-02-17 14:46:31 +000020334 if test "x$with_readline_lib" = xauto; then
20335 save_LIBS="$LIBS"
20336 LIBS=""
mlcreech94984912008-03-04 19:03:08 +000020337 { echo "$as_me:$LINENO: checking for library containing tgetent" >&5
20338echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000020339if test "${ac_cv_search_tgetent+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020340 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000020341else
drh71eb93e2001-09-28 01:34:43 +000020342 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000020343cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000020344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
20349
mlcreech94984912008-03-04 19:03:08 +000020350/* Override any GCC internal prototype to avoid an error.
20351 Use char because int might match the return type of a GCC
20352 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000020353#ifdef __cplusplus
20354extern "C"
20355#endif
paul38372372003-04-22 08:04:49 +000020356char tgetent ();
20357int
20358main ()
20359{
mlcreech94984912008-03-04 19:03:08 +000020360return tgetent ();
paul38372372003-04-22 08:04:49 +000020361 ;
20362 return 0;
20363}
20364_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020365for ac_lib in '' readline ncurses curses termcap; do
20366 if test -z "$ac_lib"; then
20367 ac_res="none required"
20368 else
20369 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000020370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000020371 fi
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373if { (ac_try="$ac_link"
20374case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377esac
20378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000020380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest$ac_exeext &&
20389 $as_test_x conftest$ac_exeext; then
20390 ac_cv_search_tgetent=$ac_res
vapier7f19c022007-02-17 14:46:31 +000020391else
drh613a0fe2007-11-23 17:31:17 +000020392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
mlcreech94984912008-03-04 19:03:08 +000020395
vapier7f19c022007-02-17 14:46:31 +000020396fi
mlcreech94984912008-03-04 19:03:08 +000020397
20398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20399 conftest$ac_exeext
20400 if test "${ac_cv_search_tgetent+set}" = set; then
20401 break
drh613a0fe2007-11-23 17:31:17 +000020402fi
mlcreech94984912008-03-04 19:03:08 +000020403done
20404if test "${ac_cv_search_tgetent+set}" = set; then
20405 :
20406else
20407 ac_cv_search_tgetent=no
20408fi
20409rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020410LIBS=$ac_func_search_save_LIBS
20411fi
mlcreech94984912008-03-04 19:03:08 +000020412{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
20413echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
20414ac_res=$ac_cv_search_tgetent
20415if test "$ac_res" != no; then
20416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000020417 term_LIBS="$LIBS"
20418else
20419 term_LIBS=""
paul38372372003-04-22 08:04:49 +000020420fi
20421
mlcreech94984912008-03-04 19:03:08 +000020422 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
20423echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
paul38372372003-04-22 08:04:49 +000020424if test "${ac_cv_lib_readline_readline+set}" = set; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20426else
20427 ac_check_lib_save_LIBS=$LIBS
20428LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000020429cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020430/* confdefs.h. */
20431_ACEOF
20432cat confdefs.h >>conftest.$ac_ext
20433cat >>conftest.$ac_ext <<_ACEOF
20434/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020435
mlcreech94984912008-03-04 19:03:08 +000020436/* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000020439#ifdef __cplusplus
20440extern "C"
20441#endif
drh71eb93e2001-09-28 01:34:43 +000020442char readline ();
20443int
20444main ()
20445{
mlcreech94984912008-03-04 19:03:08 +000020446return readline ();
drh71eb93e2001-09-28 01:34:43 +000020447 ;
20448 return 0;
20449}
20450_ACEOF
20451rm -f conftest.$ac_objext conftest$ac_exeext
mlcreech94984912008-03-04 19:03:08 +000020452if { (ac_try="$ac_link"
20453case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20456esac
20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020459 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest$ac_exeext &&
20468 $as_test_x conftest$ac_exeext; then
paul38372372003-04-22 08:04:49 +000020469 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000020470else
drh71eb93e2001-09-28 01:34:43 +000020471 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020472sed 's/^/| /' conftest.$ac_ext >&5
20473
mlcreech94984912008-03-04 19:03:08 +000020474 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000020475fi
mlcreech94984912008-03-04 19:03:08 +000020476
20477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000020478 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000020479LIBS=$ac_check_lib_save_LIBS
20480fi
mlcreech94984912008-03-04 19:03:08 +000020481{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
20482echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
paul38372372003-04-22 08:04:49 +000020483if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000020484 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000020485else
vapier7f19c022007-02-17 14:46:31 +000020486 found="no"
20487fi
drhf1878b42006-01-23 18:06:52 +000020488
vapier7f19c022007-02-17 14:46:31 +000020489 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
20490 LIBS="$save_LIBS"
20491 else
20492 TARGET_READLINE_LIBS="$with_readline_lib"
20493 fi
20494
20495
mlcreech94984912008-03-04 19:03:08 +000020496# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000020497if test "${with_readline_inc+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020498 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000020499else
vapier7f19c022007-02-17 14:46:31 +000020500 with_readline_inc="auto"
mlcreech94984912008-03-04 19:03:08 +000020501fi
20502
vapier7f19c022007-02-17 14:46:31 +000020503 if test "x$with_readline_inc" = xauto; then
20504 if test "${ac_cv_header_readline_h+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020505 { echo "$as_me:$LINENO: checking for readline.h" >&5
20506echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020507if test "${ac_cv_header_readline_h+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000020509fi
mlcreech94984912008-03-04 19:03:08 +000020510{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20511echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000020512else
a.rottmann84e63352003-03-24 09:42:16 +000020513 # Is the header compilable?
mlcreech94984912008-03-04 19:03:08 +000020514{ echo "$as_me:$LINENO: checking readline.h usability" >&5
20515echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020516cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522$ac_includes_default
drh75897232000-05-29 14:26:00 +000020523#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000020524_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020525rm -f conftest.$ac_objext
mlcreech94984912008-03-04 19:03:08 +000020526if { (ac_try="$ac_compile"
20527case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530esac
20531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000020533 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000020534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000020542 ac_header_compiler=yes
20543else
20544 echo "$as_me: failed program was:" >&5
20545sed 's/^/| /' conftest.$ac_ext >&5
20546
mlcreech94984912008-03-04 19:03:08 +000020547 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000020548fi
mlcreech94984912008-03-04 19:03:08 +000020549
20550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20552echo "${ECHO_T}$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020553
20554# Is the header present?
mlcreech94984912008-03-04 19:03:08 +000020555{ echo "$as_me:$LINENO: checking readline.h presence" >&5
20556echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020557cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020558/* confdefs.h. */
20559_ACEOF
20560cat confdefs.h >>conftest.$ac_ext
20561cat >>conftest.$ac_ext <<_ACEOF
20562/* end confdefs.h. */
20563#include <readline.h>
20564_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020565if { (ac_try="$ac_cpp conftest.$ac_ext"
20566case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000020572 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000020573 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000020574 rm -f conftest.er1
20575 cat conftest.err >&5
a.rottmann84e63352003-03-24 09:42:16 +000020576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020577 (exit $ac_status); } >/dev/null && {
20578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20579 test ! -s conftest.err
20580 }; then
a.rottmann84e63352003-03-24 09:42:16 +000020581 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000020582else
20583 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000020584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000020587fi
mlcreech94984912008-03-04 19:03:08 +000020588
drh71eb93e2001-09-28 01:34:43 +000020589rm -f conftest.err conftest.$ac_ext
mlcreech94984912008-03-04 19:03:08 +000020590{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591echo "${ECHO_T}$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020592
20593# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000020594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595 yes:no: )
a.rottmann84e63352003-03-24 09:42:16 +000020596 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
20597echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020598 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
20599echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000020601 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000020602 no:yes:* )
a.rottmann84e63352003-03-24 09:42:16 +000020603 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
20604echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020605 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
20606echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
20608echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
20610echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000020611 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
20612echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000020613 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
20614echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
mlcreech94984912008-03-04 19:03:08 +000020615
a.rottmann84e63352003-03-24 09:42:16 +000020616 ;;
20617esac
mlcreech94984912008-03-04 19:03:08 +000020618{ echo "$as_me:$LINENO: checking for readline.h" >&5
20619echo $ECHO_N "checking for readline.h... $ECHO_C" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020620if test "${ac_cv_header_readline_h+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622else
20623 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000020624fi
mlcreech94984912008-03-04 19:03:08 +000020625{ echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
20626echo "${ECHO_T}$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000020627
20628fi
drh71eb93e2001-09-28 01:34:43 +000020629if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000020630 found="yes"
20631else
drh75897232000-05-29 14:26:00 +000020632
vapier7f19c022007-02-17 14:46:31 +000020633 found="no"
20634 if test "$cross_compiling" != yes; then
20635 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
20636 for subdir in include include/readline; do
20637 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
mlcreech94984912008-03-04 19:03:08 +000020638{ echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
20639echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6; }
20640if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh71eb93e2001-09-28 01:34:43 +000020641 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020642else
20643 test "$cross_compiling" = yes &&
20644 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
20645echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
20646 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000020647if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000020648 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000020649else
drh71eb93e2001-09-28 01:34:43 +000020650 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000020651fi
20652fi
mlcreech94984912008-03-04 19:03:08 +000020653ac_res=`eval echo '${'$as_ac_File'}'`
20654 { echo "$as_me:$LINENO: result: $ac_res" >&5
20655echo "${ECHO_T}$ac_res" >&6; }
drh71eb93e2001-09-28 01:34:43 +000020656if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000020657 found=yes
drh75897232000-05-29 14:26:00 +000020658fi
20659
vapier7f19c022007-02-17 14:46:31 +000020660 if test "$found" = "yes"; then
20661 TARGET_READLINE_INC="-I$dir/$subdir"
20662 break
20663 fi
20664 done
20665 test "$found" = "yes" && break
20666 done
20667 fi
20668
20669fi
20670
20671
20672 else
20673 TARGET_READLINE_INC="$with_readline_inc"
20674 fi
20675
20676 if test x"$found" = xno; then
20677 TARGET_READLINE_LIBS=""
20678 TARGET_READLINE_INC=""
20679 TARGET_HAVE_READLINE=0
20680 else
20681 TARGET_HAVE_READLINE=1
20682 fi
20683fi
20684
20685
20686
20687
20688
20689##########
20690# Figure out what C libraries are required to compile programs
20691# that use "fdatasync()" function.
20692#
mlcreech94984912008-03-04 19:03:08 +000020693{ echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
20694echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
vapier7f19c022007-02-17 14:46:31 +000020695if test "${ac_cv_search_fdatasync+set}" = set; then
drh71eb93e2001-09-28 01:34:43 +000020696 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000020697else
vapier7f19c022007-02-17 14:46:31 +000020698 ac_func_search_save_LIBS=$LIBS
20699cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */
20701_ACEOF
20702cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000020705
mlcreech94984912008-03-04 19:03:08 +000020706/* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000020709#ifdef __cplusplus
20710extern "C"
20711#endif
20712char fdatasync ();
20713int
20714main ()
20715{
mlcreech94984912008-03-04 19:03:08 +000020716return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000020717 ;
20718 return 0;
20719}
20720_ACEOF
mlcreech94984912008-03-04 19:03:08 +000020721for ac_lib in '' rt; do
20722 if test -z "$ac_lib"; then
20723 ac_res="none required"
20724 else
20725 ac_res=-l$ac_lib
drh613a0fe2007-11-23 17:31:17 +000020726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
mlcreech94984912008-03-04 19:03:08 +000020727 fi
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729if { (ac_try="$ac_link"
20730case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733esac
20734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_link") 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000020736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech94984912008-03-04 19:03:08 +000020741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest$ac_exeext &&
20745 $as_test_x conftest$ac_exeext; then
20746 ac_cv_search_fdatasync=$ac_res
vapier7f19c022007-02-17 14:46:31 +000020747else
drh613a0fe2007-11-23 17:31:17 +000020748 echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
mlcreech94984912008-03-04 19:03:08 +000020751
vapier7f19c022007-02-17 14:46:31 +000020752fi
mlcreech94984912008-03-04 19:03:08 +000020753
20754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755 conftest$ac_exeext
20756 if test "${ac_cv_search_fdatasync+set}" = set; then
20757 break
drh613a0fe2007-11-23 17:31:17 +000020758fi
mlcreech94984912008-03-04 19:03:08 +000020759done
20760if test "${ac_cv_search_fdatasync+set}" = set; then
20761 :
20762else
20763 ac_cv_search_fdatasync=no
20764fi
20765rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000020766LIBS=$ac_func_search_save_LIBS
20767fi
mlcreech94984912008-03-04 19:03:08 +000020768{ echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
20769echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
20770ac_res=$ac_cv_search_fdatasync
20771if test "$ac_res" != no; then
20772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000020773
vapier7f19c022007-02-17 14:46:31 +000020774fi
20775
a.rottmann84e63352003-03-24 09:42:16 +000020776
drh75897232000-05-29 14:26:00 +000020777#########
tpoindex9d9f76c2005-01-03 21:28:56 +000020778# check for debug enabled
mlcreech94984912008-03-04 19:03:08 +000020779# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000020780if test "${enable_debug+set}" = set; then
mlcreech94984912008-03-04 19:03:08 +000020781 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000020782else
20783 use_debug=no
mlcreech94984912008-03-04 19:03:08 +000020784fi
20785
tpoindex9d9f76c2005-01-03 21:28:56 +000020786if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000020787 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000020788else
20789 TARGET_DEBUG="-DNDEBUG"
20790fi
20791
20792
20793#########
mlcreech94984912008-03-04 19:03:08 +000020794# See whether we should use the amalgamation to build
20795# Check whether --enable-amalgamation was given.
20796if test "${enable_amalgamation+set}" = set; then
20797 enableval=$enable_amalgamation; use_amalgamation=$enableval
20798else
20799 use_amalgamation=yes
20800fi
20801
mlcreechf3868112008-03-11 18:03:30 +000020802if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000020803 USE_AMALGAMATION=0
20804fi
20805
20806
20807#########
mlcreecha4edab02008-03-06 04:14:17 +000020808# See whether we should allow loadable extensions
20809# Check whether --enable-load-extension was given.
20810if test "${enable_load_extension+set}" = set; then
20811 enableval=$enable_load_extension; use_loadextension=$enableval
20812else
20813 use_loadextension=no
20814fi
20815
20816if test "${use_loadextension}" = "yes" ; then
20817 LOADEXTENSION_FLAGS=""
20818else
20819 LOADEXTENSION_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
20820fi
20821
20822
drhaf6edf52005-10-04 18:38:49 +000020823
drh2dfbbca2000-07-28 14:32:48 +000020824#########
mlcreechb87057f2008-03-06 07:19:20 +000020825# Output the config header
mlcreech23797062008-03-20 02:25:35 +000020826ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000020827
20828
20829#########
drh75897232000-05-29 14:26:00 +000020830# Generate the output files.
20831#
mlcreechdf59c7c2008-03-06 07:51:15 +000020832
mlcreech94984912008-03-04 19:03:08 +000020833ac_config_files="$ac_config_files Makefile sqlite3.pc"
20834
drh71eb93e2001-09-28 01:34:43 +000020835cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000020836# This file is a shell script that caches the results of configure
20837# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000020838# scripts and configure runs, see configure's option --config-cache.
20839# It is not useful on other systems. If it contains results you don't
20840# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000020841#
drh71eb93e2001-09-28 01:34:43 +000020842# config.status only pays attention to the cache file if you give it
20843# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000020844#
a.rottmann84e63352003-03-24 09:42:16 +000020845# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000020846# loading this file, other *unset* `ac_cv_foo' will be assigned the
20847# following values.
20848
20849_ACEOF
20850
drh75897232000-05-29 14:26:00 +000020851# The following way of writing the cache mishandles newlines in values,
20852# but we know of no workaround that is simple, portable, and efficient.
mlcreech94984912008-03-04 19:03:08 +000020853# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000020854# Ultrix sh set writes to stderr and can't be redirected directly,
20855# and sets the high bit in the cache file unless we assign to the vars.
mlcreech94984912008-03-04 19:03:08 +000020856(
20857 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20858 eval ac_val=\$$ac_var
20859 case $ac_val in #(
20860 *${as_nl}*)
20861 case $ac_var in #(
20862 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20863echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20864 esac
20865 case $ac_var in #(
20866 _ | IFS | as_nl) ;; #(
20867 *) $as_unset $ac_var ;;
20868 esac ;;
20869 esac
20870 done
20871
drh71eb93e2001-09-28 01:34:43 +000020872 (set) 2>&1 |
mlcreech94984912008-03-04 19:03:08 +000020873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20874 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000020875 # `set' does not quote correctly, so add quotes (double-quote
20876 # substitution turns \\\\ into \\, and sed turns \\ into \).
20877 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000020878 "s/'/'\\\\''/g;
20879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mlcreech94984912008-03-04 19:03:08 +000020880 ;; #(
drh71eb93e2001-09-28 01:34:43 +000020881 *)
20882 # `set' quotes correctly as required by POSIX, so do not add quotes.
mlcreech94984912008-03-04 19:03:08 +000020883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000020884 ;;
mlcreech94984912008-03-04 19:03:08 +000020885 esac |
20886 sort
20887) |
drh71eb93e2001-09-28 01:34:43 +000020888 sed '
mlcreech94984912008-03-04 19:03:08 +000020889 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000020890 t clear
mlcreech94984912008-03-04 19:03:08 +000020891 :clear
drh71eb93e2001-09-28 01:34:43 +000020892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20893 t end
mlcreech94984912008-03-04 19:03:08 +000020894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20895 :end' >>confcache
20896if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20897 if test -w "$cache_file"; then
20898 test "x$cache_file" != "x/dev/null" &&
20899 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20900echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000020901 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000020902 else
mlcreech94984912008-03-04 19:03:08 +000020903 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20904echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000020905 fi
20906fi
20907rm -f confcache
20908
drh75897232000-05-29 14:26:00 +000020909test "x$prefix" = xNONE && prefix=$ac_default_prefix
20910# Let make expand exec_prefix.
20911test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20912
mlcreechb87057f2008-03-06 07:19:20 +000020913DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000020914
20915ac_libobjs=
20916ac_ltlibobjs=
20917for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20918 # 1. Remove the extension, and $U if already installed.
mlcreech94984912008-03-04 19:03:08 +000020919 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20920 ac_i=`echo "$ac_i" | sed "$ac_script"`
20921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20922 # will be set to the directory where LIBOBJS objects are built.
20923 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20924 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000020925done
20926LIBOBJS=$ac_libobjs
20927
20928LTLIBOBJS=$ac_ltlibobjs
20929
20930
20931
drh75897232000-05-29 14:26:00 +000020932: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000020933ac_clean_files_save=$ac_clean_files
20934ac_clean_files="$ac_clean_files $CONFIG_STATUS"
a.rottmann84e63352003-03-24 09:42:16 +000020935{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh71eb93e2001-09-28 01:34:43 +000020936echo "$as_me: creating $CONFIG_STATUS" >&6;}
20937cat >$CONFIG_STATUS <<_ACEOF
20938#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000020939# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000020940# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000020941# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000020942# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000020943
drh71eb93e2001-09-28 01:34:43 +000020944debug=false
a.rottmann84e63352003-03-24 09:42:16 +000020945ac_cs_recheck=false
20946ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000020947SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000020948_ACEOF
drh75897232000-05-29 14:26:00 +000020949
drh71eb93e2001-09-28 01:34:43 +000020950cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000020951## --------------------- ##
20952## M4sh Initialization. ##
20953## --------------------- ##
20954
mlcreech94984912008-03-04 19:03:08 +000020955# Be more Bourne compatible
20956DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000020957if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20958 emulate sh
20959 NULLCMD=:
a.rottmann84e63352003-03-24 09:42:16 +000020960 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20961 # is contrary to our usage. Disable this feature.
20962 alias -g '${1+"$@"}'='"$@"'
mlcreech94984912008-03-04 19:03:08 +000020963 setopt NO_GLOB_SUBST
drh613a0fe2007-11-23 17:31:17 +000020964else
mlcreech94984912008-03-04 19:03:08 +000020965 case `(set -o) 2>/dev/null` in
20966 *posix*) set -o posix ;;
20967esac
20968
a.rottmann84e63352003-03-24 09:42:16 +000020969fi
20970
20971
a.rottmann84e63352003-03-24 09:42:16 +000020972
20973
mlcreech94984912008-03-04 19:03:08 +000020974# PATH needs CR
a.rottmann84e63352003-03-24 09:42:16 +000020975# Avoid depending upon Character Ranges.
20976as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20977as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20978as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20979as_cr_digits='0123456789'
20980as_cr_alnum=$as_cr_Letters$as_cr_digits
20981
20982# The user is always right.
20983if test "${PATH_SEPARATOR+set}" != set; then
20984 echo "#! /bin/sh" >conf$$.sh
20985 echo "exit 0" >>conf$$.sh
20986 chmod +x conf$$.sh
20987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20988 PATH_SEPARATOR=';'
20989 else
20990 PATH_SEPARATOR=:
20991 fi
20992 rm -f conf$$.sh
20993fi
20994
mlcreech94984912008-03-04 19:03:08 +000020995# Support unset when possible.
20996if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20997 as_unset=unset
20998else
20999 as_unset=false
21000fi
a.rottmann84e63352003-03-24 09:42:16 +000021001
mlcreech94984912008-03-04 19:03:08 +000021002
21003# IFS
21004# We need space, tab and new line, in precisely that order. Quoting is
21005# there to prevent editors from complaining about space-tab.
21006# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21007# splitting by setting IFS to empty value.)
21008as_nl='
21009'
21010IFS=" "" $as_nl"
21011
21012# Find who we are. Look in the path if we contain no directory separator.
21013case $0 in
21014 *[\\/]* ) as_myself=$0 ;;
21015 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann84e63352003-03-24 09:42:16 +000021016for as_dir in $PATH
21017do
21018 IFS=$as_save_IFS
21019 test -z "$as_dir" && as_dir=.
21020 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21021done
mlcreech94984912008-03-04 19:03:08 +000021022IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +000021023
mlcreech94984912008-03-04 19:03:08 +000021024 ;;
21025esac
21026# We did not find ourselves, most probably we were run as `sh COMMAND'
21027# in which case we are not to be found in the path.
21028if test "x$as_myself" = x; then
21029 as_myself=$0
21030fi
21031if test ! -f "$as_myself"; then
21032 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21033 { (exit 1); exit 1; }
21034fi
21035
21036# Work around bugs in pre-3.0 UWIN ksh.
21037for as_var in ENV MAIL MAILPATH
21038do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21039done
21040PS1='$ '
21041PS2='> '
21042PS4='+ '
21043
21044# NLS nuisances.
21045for as_var in \
21046 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21047 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21048 LC_TELEPHONE LC_TIME
drh613a0fe2007-11-23 17:31:17 +000021049do
mlcreech94984912008-03-04 19:03:08 +000021050 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21051 eval $as_var=C; export $as_var
21052 else
21053 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21054 fi
21055done
21056
21057# Required to use basename.
21058if expr a : '\(a\)' >/dev/null 2>&1 &&
21059 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21060 as_expr=expr
21061else
21062 as_expr=false
21063fi
21064
21065if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21066 as_basename=basename
21067else
21068 as_basename=false
21069fi
21070
21071
21072# Name of the executable.
21073as_me=`$as_basename -- "$0" ||
21074$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21075 X"$0" : 'X\(//\)$' \| \
21076 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21077echo X/"$0" |
21078 sed '/^.*\/\([^/][^/]*\)\/*$/{
21079 s//\1/
21080 q
21081 }
21082 /^X\/\(\/\/\)$/{
21083 s//\1/
21084 q
21085 }
21086 /^X\/\(\/\).*/{
21087 s//\1/
21088 q
21089 }
21090 s/.*/./; q'`
21091
21092# CDPATH.
21093$as_unset CDPATH
21094
21095
21096
a.rottmann84e63352003-03-24 09:42:16 +000021097 as_lineno_1=$LINENO
21098 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000021099 test "x$as_lineno_1" != "x$as_lineno_2" &&
mlcreech94984912008-03-04 19:03:08 +000021100 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000021101
21102 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21103 # uniformly replaced by the line number. The first 'sed' inserts a
mlcreech94984912008-03-04 19:03:08 +000021104 # line-number line after each line using $LINENO; the second 'sed'
21105 # does the real work. The second script uses 'N' to pair each
21106 # line-number line with the line containing $LINENO, and appends
21107 # trailing '-' during substitution so that $LINENO is not a special
21108 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000021109 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
mlcreech94984912008-03-04 19:03:08 +000021110 # scripts with optimization help from Paolo Bonzini. Blame Lee
21111 # E. McMahon (1931-1989) for sed's syntax. :-)
21112 sed -n '
21113 p
21114 /[$]LINENO/=
21115 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000021116 sed '
mlcreech94984912008-03-04 19:03:08 +000021117 s/[$]LINENO.*/&-/
21118 t lineno
21119 b
21120 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000021121 N
mlcreech94984912008-03-04 19:03:08 +000021122 :loop
21123 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000021124 t loop
mlcreech94984912008-03-04 19:03:08 +000021125 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000021126 ' >$as_me.lineno &&
mlcreech94984912008-03-04 19:03:08 +000021127 chmod +x "$as_me.lineno" ||
21128 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000021129 { (exit 1); exit 1; }; }
21130
21131 # Don't try to exec as it changes $[0], causing all sort of problems
21132 # (the dirname of $[0] is not the place where we might find the
mlcreech94984912008-03-04 19:03:08 +000021133 # original and so on. Autoconf is especially sensitive to this).
21134 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000021135 # Exit status is that of the last command.
21136 exit
21137}
21138
21139
mlcreech94984912008-03-04 19:03:08 +000021140if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21141 as_dirname=dirname
21142else
21143 as_dirname=false
21144fi
21145
21146ECHO_C= ECHO_N= ECHO_T=
21147case `echo -n x` in
21148-n*)
21149 case `echo 'x\c'` in
21150 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21151 *) ECHO_C='\c';;
21152 esac;;
21153*)
21154 ECHO_N='-n';;
a.rottmann84e63352003-03-24 09:42:16 +000021155esac
drh71eb93e2001-09-28 01:34:43 +000021156
mlcreech94984912008-03-04 19:03:08 +000021157if expr a : '\(a\)' >/dev/null 2>&1 &&
21158 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000021159 as_expr=expr
21160else
21161 as_expr=false
21162fi
21163
21164rm -f conf$$ conf$$.exe conf$$.file
mlcreech94984912008-03-04 19:03:08 +000021165if test -d conf$$.dir; then
21166 rm -f conf$$.dir/conf$$.file
21167else
21168 rm -f conf$$.dir
21169 mkdir conf$$.dir
21170fi
drh71eb93e2001-09-28 01:34:43 +000021171echo >conf$$.file
21172if ln -s conf$$.file conf$$ 2>/dev/null; then
mlcreech94984912008-03-04 19:03:08 +000021173 as_ln_s='ln -s'
21174 # ... but there are two gotchas:
21175 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21176 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21177 # In both cases, we have to default to `cp -p'.
21178 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drh71eb93e2001-09-28 01:34:43 +000021179 as_ln_s='cp -p'
drh71eb93e2001-09-28 01:34:43 +000021180elif ln conf$$.file conf$$ 2>/dev/null; then
21181 as_ln_s=ln
21182else
21183 as_ln_s='cp -p'
21184fi
mlcreech94984912008-03-04 19:03:08 +000021185rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21186rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000021187
a.rottmann84e63352003-03-24 09:42:16 +000021188if mkdir -p . 2>/dev/null; then
21189 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000021190else
a.rottmann964dbb12004-02-26 19:47:42 +000021191 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000021192 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000021193fi
21194
mlcreech94984912008-03-04 19:03:08 +000021195if test -x / >/dev/null 2>&1; then
21196 as_test_x='test -x'
21197else
21198 if ls -dL / >/dev/null 2>&1; then
21199 as_ls_L_option=L
21200 else
21201 as_ls_L_option=
21202 fi
21203 as_test_x='
21204 eval sh -c '\''
21205 if test -d "$1"; then
21206 test -d "$1/.";
21207 else
21208 case $1 in
21209 -*)set "./$1";;
21210 esac;
21211 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21212 ???[sx]*):;;*)false;;esac;fi
21213 '\'' sh
21214 '
21215fi
21216as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000021217
21218# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000021219as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021220
21221# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000021222as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000021223
drh71eb93e2001-09-28 01:34:43 +000021224
drh71eb93e2001-09-28 01:34:43 +000021225exec 6>&1
21226
mlcreech94984912008-03-04 19:03:08 +000021227# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000021228# report actual input values of CONFIG_FILES etc. instead of their
mlcreech94984912008-03-04 19:03:08 +000021229# values after options handling.
21230ac_log="
mlcreechf3868112008-03-11 18:03:30 +000021231This file was extended by sqlite $as_me 3.5.7, which was
mlcreech94984912008-03-04 19:03:08 +000021232generated by GNU Autoconf 2.61. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000021233
21234 CONFIG_FILES = $CONFIG_FILES
21235 CONFIG_HEADERS = $CONFIG_HEADERS
21236 CONFIG_LINKS = $CONFIG_LINKS
21237 CONFIG_COMMANDS = $CONFIG_COMMANDS
21238 $ $0 $@
21239
mlcreech94984912008-03-04 19:03:08 +000021240on `(hostname || uname -n) 2>/dev/null | sed 1q`
21241"
21242
drh71eb93e2001-09-28 01:34:43 +000021243_ACEOF
21244
mlcreech94984912008-03-04 19:03:08 +000021245cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021246# Files that config.status was made for.
mlcreech94984912008-03-04 19:03:08 +000021247config_files="$ac_config_files"
mlcreechb87057f2008-03-06 07:19:20 +000021248config_headers="$ac_config_headers"
drh71eb93e2001-09-28 01:34:43 +000021249
mlcreech94984912008-03-04 19:03:08 +000021250_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021251
a.rottmann84e63352003-03-24 09:42:16 +000021252cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021253ac_cs_usage="\
21254\`$as_me' instantiates files from templates according to the
21255current configuration.
21256
21257Usage: $0 [OPTIONS] [FILE]...
21258
21259 -h, --help print this help, then exit
mlcreech94984912008-03-04 19:03:08 +000021260 -V, --version print version number and configuration settings, then exit
a.rottmann84e63352003-03-24 09:42:16 +000021261 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000021262 -d, --debug don't remove temporary files
21263 --recheck update $as_me by reconfiguring in the same conditions
21264 --file=FILE[:TEMPLATE]
a.rottmann964dbb12004-02-26 19:47:42 +000021265 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000021266 --header=FILE[:TEMPLATE]
21267 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000021268
21269Configuration files:
21270$config_files
21271
mlcreechb87057f2008-03-06 07:19:20 +000021272Configuration headers:
21273$config_headers
21274
drh71eb93e2001-09-28 01:34:43 +000021275Report bugs to <bug-autoconf@gnu.org>."
drh613a0fe2007-11-23 17:31:17 +000021276
mlcreech94984912008-03-04 19:03:08 +000021277_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021278cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021279ac_cs_version="\\
mlcreechf3868112008-03-11 18:03:30 +000021280sqlite config.status 3.5.7
mlcreech94984912008-03-04 19:03:08 +000021281configured by $0, generated by GNU Autoconf 2.61,
21282 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh75897232000-05-29 14:26:00 +000021283
mlcreech94984912008-03-04 19:03:08 +000021284Copyright (C) 2006 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000021285This config.status script is free software; the Free Software Foundation
21286gives unlimited permission to copy, distribute and modify it."
mlcreech94984912008-03-04 19:03:08 +000021287
21288ac_pwd='$ac_pwd'
21289srcdir='$srcdir'
21290INSTALL='$INSTALL'
a.rottmann84e63352003-03-24 09:42:16 +000021291_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021292
a.rottmann84e63352003-03-24 09:42:16 +000021293cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021294# If no file are specified by the user, then we need to provide default
21295# value. By we need to know if files were specified by the user.
21296ac_need_defaults=:
21297while test $# != 0
21298do
21299 case $1 in
21300 --*=*)
mlcreech94984912008-03-04 19:03:08 +000021301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000021303 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000021304 ;;
mlcreech94984912008-03-04 19:03:08 +000021305 *)
a.rottmann84e63352003-03-24 09:42:16 +000021306 ac_option=$1
21307 ac_optarg=$2
21308 ac_shift=shift
21309 ;;
drh75897232000-05-29 14:26:00 +000021310 esac
21311
a.rottmann84e63352003-03-24 09:42:16 +000021312 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000021313 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000021314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000021315 ac_cs_recheck=: ;;
mlcreech94984912008-03-04 19:03:08 +000021316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21317 echo "$ac_cs_version"; exit ;;
21318 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000021319 debug=: ;;
21320 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000021321 $ac_shift
21322 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000021323 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000021324 --header | --heade | --head | --hea )
21325 $ac_shift
21326 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21327 ac_need_defaults=false;;
21328 --he | --h)
21329 # Conflict between --help and --header
21330 { echo "$as_me: error: ambiguous option: $1
21331Try \`$0 --help' for more information." >&2
21332 { (exit 1); exit 1; }; };;
21333 --help | --hel | -h )
mlcreech94984912008-03-04 19:03:08 +000021334 echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000021335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21337 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000021338
drh71eb93e2001-09-28 01:34:43 +000021339 # This is an error.
mlcreech94984912008-03-04 19:03:08 +000021340 -*) { echo "$as_me: error: unrecognized option: $1
21341Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000021342 { (exit 1); exit 1; }; } ;;
21343
mlcreech94984912008-03-04 19:03:08 +000021344 *) ac_config_targets="$ac_config_targets $1"
21345 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000021346
21347 esac
21348 shift
21349done
21350
a.rottmann84e63352003-03-24 09:42:16 +000021351ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000021352
a.rottmann84e63352003-03-24 09:42:16 +000021353if $ac_cs_silent; then
21354 exec 6>/dev/null
21355 ac_configure_extra_args="$ac_configure_extra_args --silent"
21356fi
drh71eb93e2001-09-28 01:34:43 +000021357
21358_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021359cat >>$CONFIG_STATUS <<_ACEOF
21360if \$ac_cs_recheck; then
mlcreech94984912008-03-04 19:03:08 +000021361 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21362 CONFIG_SHELL=$SHELL
21363 export CONFIG_SHELL
21364 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000021365fi
drh71eb93e2001-09-28 01:34:43 +000021366
a.rottmann84e63352003-03-24 09:42:16 +000021367_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021368cat >>$CONFIG_STATUS <<\_ACEOF
21369exec 5>>config.log
21370{
21371 echo
21372 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21373## Running $as_me. ##
21374_ASBOX
21375 echo "$ac_log"
21376} >&5
a.rottmann84e63352003-03-24 09:42:16 +000021377
mlcreech94984912008-03-04 19:03:08 +000021378_ACEOF
21379cat >>$CONFIG_STATUS <<_ACEOF
21380_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000021381
21382cat >>$CONFIG_STATUS <<\_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021383
21384# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000021385for ac_config_target in $ac_config_targets
21386do
mlcreech94984912008-03-04 19:03:08 +000021387 case $ac_config_target in
mlcreech23797062008-03-20 02:25:35 +000021388 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
mlcreech94984912008-03-04 19:03:08 +000021389 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21390 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
21391
a.rottmann84e63352003-03-24 09:42:16 +000021392 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
drh71eb93e2001-09-28 01:34:43 +000021393echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21394 { (exit 1); exit 1; }; };;
21395 esac
21396done
21397
mlcreech94984912008-03-04 19:03:08 +000021398
drh71eb93e2001-09-28 01:34:43 +000021399# If the user did not use the arguments to specify the items to instantiate,
21400# then the envvar interface is used. Set only those that are not.
21401# We use the long form for the default assignment because of an extremely
21402# bizarre bug on SunOS 4.1.3.
21403if $ac_need_defaults; then
21404 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000021405 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
drh71eb93e2001-09-28 01:34:43 +000021406fi
21407
a.rottmann84e63352003-03-24 09:42:16 +000021408# Have a temporary directory for convenience. Make it in the build tree
mlcreech94984912008-03-04 19:03:08 +000021409# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000021410# creating and moving files from /tmp can sometimes cause problems.
mlcreech94984912008-03-04 19:03:08 +000021411# Hook for its removal unless debugging.
21412# Note that there is a small window in which the directory will not be cleaned:
21413# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000021414$debug ||
21415{
mlcreech94984912008-03-04 19:03:08 +000021416 tmp=
21417 trap 'exit_status=$?
21418 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21419' 0
drh71eb93e2001-09-28 01:34:43 +000021420 trap '{ (exit 1); exit 1; }' 1 2 13 15
21421}
drh71eb93e2001-09-28 01:34:43 +000021422# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000021423
drh71eb93e2001-09-28 01:34:43 +000021424{
mlcreech94984912008-03-04 19:03:08 +000021425 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000021426 test -n "$tmp" && test -d "$tmp"
21427} ||
21428{
mlcreech94984912008-03-04 19:03:08 +000021429 tmp=./conf$$-$RANDOM
21430 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000021431} ||
21432{
a.rottmann84e63352003-03-24 09:42:16 +000021433 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000021434 { (exit 1); exit 1; }
21435}
21436
drh71eb93e2001-09-28 01:34:43 +000021437#
mlcreech94984912008-03-04 19:03:08 +000021438# Set up the sed scripts for CONFIG_FILES section.
drh71eb93e2001-09-28 01:34:43 +000021439#
21440
21441# No need to generate the scripts if there are no CONFIG_FILES.
21442# This happens for instance when ./config.status config.h
mlcreech94984912008-03-04 19:03:08 +000021443if test -n "$CONFIG_FILES"; then
drh71eb93e2001-09-28 01:34:43 +000021444
a.rottmann84e63352003-03-24 09:42:16 +000021445_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021446
mlcreech94984912008-03-04 19:03:08 +000021447
21448
21449ac_delim='%!_!# '
21450for ac_last_try in false false false false false :; do
21451 cat >conf$$subs.sed <<_ACEOF
21452SHELL!$SHELL$ac_delim
21453PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21454PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21455PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21456PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21457PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21458PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21459exec_prefix!$exec_prefix$ac_delim
21460prefix!$prefix$ac_delim
21461program_transform_name!$program_transform_name$ac_delim
21462bindir!$bindir$ac_delim
21463sbindir!$sbindir$ac_delim
21464libexecdir!$libexecdir$ac_delim
21465datarootdir!$datarootdir$ac_delim
21466datadir!$datadir$ac_delim
21467sysconfdir!$sysconfdir$ac_delim
21468sharedstatedir!$sharedstatedir$ac_delim
21469localstatedir!$localstatedir$ac_delim
21470includedir!$includedir$ac_delim
21471oldincludedir!$oldincludedir$ac_delim
21472docdir!$docdir$ac_delim
21473infodir!$infodir$ac_delim
21474htmldir!$htmldir$ac_delim
21475dvidir!$dvidir$ac_delim
21476pdfdir!$pdfdir$ac_delim
21477psdir!$psdir$ac_delim
21478libdir!$libdir$ac_delim
21479localedir!$localedir$ac_delim
21480mandir!$mandir$ac_delim
21481DEFS!$DEFS$ac_delim
21482ECHO_C!$ECHO_C$ac_delim
21483ECHO_N!$ECHO_N$ac_delim
21484ECHO_T!$ECHO_T$ac_delim
21485LIBS!$LIBS$ac_delim
21486build_alias!$build_alias$ac_delim
21487host_alias!$host_alias$ac_delim
21488target_alias!$target_alias$ac_delim
21489build!$build$ac_delim
21490build_cpu!$build_cpu$ac_delim
21491build_vendor!$build_vendor$ac_delim
21492build_os!$build_os$ac_delim
21493host!$host$ac_delim
21494host_cpu!$host_cpu$ac_delim
21495host_vendor!$host_vendor$ac_delim
21496host_os!$host_os$ac_delim
21497CC!$CC$ac_delim
21498CFLAGS!$CFLAGS$ac_delim
21499LDFLAGS!$LDFLAGS$ac_delim
21500CPPFLAGS!$CPPFLAGS$ac_delim
21501ac_ct_CC!$ac_ct_CC$ac_delim
21502EXEEXT!$EXEEXT$ac_delim
21503OBJEXT!$OBJEXT$ac_delim
21504GREP!$GREP$ac_delim
21505EGREP!$EGREP$ac_delim
21506LN_S!$LN_S$ac_delim
21507ECHO!$ECHO$ac_delim
21508AR!$AR$ac_delim
21509RANLIB!$RANLIB$ac_delim
21510STRIP!$STRIP$ac_delim
21511CPP!$CPP$ac_delim
21512CXX!$CXX$ac_delim
21513CXXFLAGS!$CXXFLAGS$ac_delim
21514ac_ct_CXX!$ac_ct_CXX$ac_delim
21515CXXCPP!$CXXCPP$ac_delim
21516F77!$F77$ac_delim
21517FFLAGS!$FFLAGS$ac_delim
21518ac_ct_F77!$ac_ct_F77$ac_delim
21519LIBTOOL!$LIBTOOL$ac_delim
21520INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21521INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21522INSTALL_DATA!$INSTALL_DATA$ac_delim
21523AWK!$AWK$ac_delim
mlcreechab1c47b2008-03-09 02:51:10 +000021524TCLSH_CMD!$TCLSH_CMD$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021525program_prefix!$program_prefix$ac_delim
21526VERSION!$VERSION$ac_delim
21527RELEASE!$RELEASE$ac_delim
21528VERSION_NUMBER!$VERSION_NUMBER$ac_delim
21529BUILD_CC!$BUILD_CC$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021530SQLITE_THREADSAFE!$SQLITE_THREADSAFE$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021531XTHREADCONNECT!$XTHREADCONNECT$ac_delim
21532THREADSOVERRIDELOCKS!$THREADSOVERRIDELOCKS$ac_delim
21533ALLOWRELEASE!$ALLOWRELEASE$ac_delim
21534TEMP_STORE!$TEMP_STORE$ac_delim
21535BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21536OS_UNIX!$OS_UNIX$ac_delim
21537OS_WIN!$OS_WIN$ac_delim
21538OS_OS2!$OS_OS2$ac_delim
21539TARGET_EXEEXT!$TARGET_EXEEXT$ac_delim
21540TCL_VERSION!$TCL_VERSION$ac_delim
21541TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim
21542TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim
21543TCL_LIBS!$TCL_LIBS$ac_delim
21544TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
21545TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
21546TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim
21547TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
mlcreech8390bc32008-03-06 08:54:38 +000021548TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021549_ACEOF
21550
21551 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21552 break
21553 elif $ac_last_try; then
21554 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21555echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21556 { (exit 1); exit 1; }; }
21557 else
21558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000021559 fi
mlcreech94984912008-03-04 19:03:08 +000021560done
21561
21562ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21563if test -n "$ac_eof"; then
21564 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21565 ac_eof=`expr $ac_eof + 1`
21566fi
21567
21568cat >>$CONFIG_STATUS <<_ACEOF
21569cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21570/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21571_ACEOF
21572sed '
21573s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21574s/^/s,@/; s/!/@,|#_!!_#|/
21575:n
21576t n
21577s/'"$ac_delim"'$/,g/; t
21578s/$/\\/; p
21579N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21580' >>$CONFIG_STATUS <conf$$subs.sed
21581rm -f conf$$subs.sed
21582cat >>$CONFIG_STATUS <<_ACEOF
21583CEOF$ac_eof
21584_ACEOF
21585
21586
21587ac_delim='%!_!# '
21588for ac_last_try in false false false false false :; do
21589 cat >conf$$subs.sed <<_ACEOF
mlcreechab1c47b2008-03-09 02:51:10 +000021590TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021591TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
21592HAVE_TCL!$HAVE_TCL$ac_delim
21593TARGET_READLINE_LIBS!$TARGET_READLINE_LIBS$ac_delim
21594TARGET_READLINE_INC!$TARGET_READLINE_INC$ac_delim
21595TARGET_HAVE_READLINE!$TARGET_HAVE_READLINE$ac_delim
21596TARGET_DEBUG!$TARGET_DEBUG$ac_delim
21597USE_AMALGAMATION!$USE_AMALGAMATION$ac_delim
mlcreecha4edab02008-03-06 04:14:17 +000021598LOADEXTENSION_FLAGS!$LOADEXTENSION_FLAGS$ac_delim
mlcreech8390bc32008-03-06 08:54:38 +000021599BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
mlcreech94984912008-03-04 19:03:08 +000021600LIBOBJS!$LIBOBJS$ac_delim
21601LTLIBOBJS!$LTLIBOBJS$ac_delim
21602_ACEOF
21603
mlcreechab1c47b2008-03-09 02:51:10 +000021604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
mlcreech94984912008-03-04 19:03:08 +000021605 break
21606 elif $ac_last_try; then
21607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21608echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21609 { (exit 1); exit 1; }; }
21610 else
21611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21612 fi
21613done
21614
21615ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21616if test -n "$ac_eof"; then
21617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21618 ac_eof=`expr $ac_eof + 1`
21619fi
21620
21621cat >>$CONFIG_STATUS <<_ACEOF
21622cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21624_ACEOF
21625sed '
21626s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21627s/^/s,@/; s/!/@,|#_!!_#|/
21628:n
21629t n
21630s/'"$ac_delim"'$/,g/; t
21631s/$/\\/; p
21632N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21633' >>$CONFIG_STATUS <conf$$subs.sed
21634rm -f conf$$subs.sed
21635cat >>$CONFIG_STATUS <<_ACEOF
21636:end
21637s/|#_!!_#|//g
21638CEOF$ac_eof
21639_ACEOF
21640
21641
21642# VPATH may cause trouble with some makes, so we remove $(srcdir),
21643# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21644# trailing colons and then remove the whole line if VPATH becomes empty
21645# (actually we leave an empty line to preserve line numbers).
21646if test "x$srcdir" = x.; then
21647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21648s/:*\$(srcdir):*/:/
21649s/:*\${srcdir}:*/:/
21650s/:*@srcdir@:*/:/
21651s/^\([^=]*=[ ]*\):*/\1/
21652s/:*$//
21653s/^[^=]*=[ ]*$//
21654}'
21655fi
21656
21657cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021658fi # test -n "$CONFIG_FILES"
21659
mlcreech94984912008-03-04 19:03:08 +000021660
mlcreechb87057f2008-03-06 07:19:20 +000021661for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
mlcreech94984912008-03-04 19:03:08 +000021662do
21663 case $ac_tag in
21664 :[FHLC]) ac_mode=$ac_tag; continue;;
21665 esac
21666 case $ac_mode$ac_tag in
21667 :[FHL]*:*);;
21668 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21669echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21670 { (exit 1); exit 1; }; };;
21671 :[FH]-) ac_tag=-:-;;
21672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21673 esac
21674 ac_save_IFS=$IFS
21675 IFS=:
21676 set x $ac_tag
21677 IFS=$ac_save_IFS
21678 shift
21679 ac_file=$1
21680 shift
21681
21682 case $ac_mode in
21683 :L) ac_source=$1;;
21684 :[FH])
21685 ac_file_inputs=
21686 for ac_f
21687 do
21688 case $ac_f in
21689 -) ac_f="$tmp/stdin";;
21690 *) # Look for the file first in the build tree, then in the source tree
21691 # (if the path is not absolute). The absolute path cannot be DOS-style,
21692 # because $ac_f cannot contain `:'.
21693 test -f "$ac_f" ||
21694 case $ac_f in
21695 [\\/$]*) false;;
21696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21697 esac ||
21698 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21699echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21700 { (exit 1); exit 1; }; };;
21701 esac
21702 ac_file_inputs="$ac_file_inputs $ac_f"
21703 done
21704
21705 # Let's still pretend it is `configure' which instantiates (i.e., don't
21706 # use $as_me), people would be surprised to read:
21707 # /* config.h. Generated by config.status. */
21708 configure_input="Generated from "`IFS=:
21709 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21710 if test x"$ac_file" != x-; then
21711 configure_input="$ac_file. $configure_input"
21712 { echo "$as_me:$LINENO: creating $ac_file" >&5
21713echo "$as_me: creating $ac_file" >&6;}
21714 fi
21715
21716 case $ac_tag in
21717 *:-:* | *:-) cat >"$tmp/stdin";;
21718 esac
21719 ;;
drh71eb93e2001-09-28 01:34:43 +000021720 esac
21721
mlcreech94984912008-03-04 19:03:08 +000021722 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000021723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021724 X"$ac_file" : 'X\(//\)[^/]' \| \
21725 X"$ac_file" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000021726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
drh71eb93e2001-09-28 01:34:43 +000021727echo X"$ac_file" |
mlcreech94984912008-03-04 19:03:08 +000021728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21729 s//\1/
21730 q
21731 }
21732 /^X\(\/\/\)[^/].*/{
21733 s//\1/
21734 q
21735 }
21736 /^X\(\/\/\)$/{
21737 s//\1/
21738 q
21739 }
21740 /^X\(\/\).*/{
21741 s//\1/
21742 q
21743 }
21744 s/.*/./; q'`
21745 { as_dir="$ac_dir"
21746 case $as_dir in #(
21747 -*) as_dir=./$as_dir;;
21748 esac
21749 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000021750 as_dirs=
mlcreech94984912008-03-04 19:03:08 +000021751 while :; do
21752 case $as_dir in #(
21753 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21754 *) as_qdir=$as_dir;;
21755 esac
21756 as_dirs="'$as_qdir' $as_dirs"
21757 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000021758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000021759 X"$as_dir" : 'X\(//\)[^/]' \| \
21760 X"$as_dir" : 'X\(//\)$' \| \
mlcreech94984912008-03-04 19:03:08 +000021761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000021762echo X"$as_dir" |
mlcreech94984912008-03-04 19:03:08 +000021763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21764 s//\1/
21765 q
21766 }
21767 /^X\(\/\/\)[^/].*/{
21768 s//\1/
21769 q
21770 }
21771 /^X\(\/\/\)$/{
21772 s//\1/
21773 q
21774 }
21775 /^X\(\/\).*/{
21776 s//\1/
21777 q
21778 }
21779 s/.*/./; q'`
21780 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000021781 done
mlcreech94984912008-03-04 19:03:08 +000021782 test -z "$as_dirs" || eval "mkdir $as_dirs"
21783 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21784echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000021785 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000021786 ac_builddir=.
21787
mlcreech94984912008-03-04 19:03:08 +000021788case "$ac_dir" in
21789.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21790*)
a.rottmann84e63352003-03-24 09:42:16 +000021791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
mlcreech94984912008-03-04 19:03:08 +000021792 # A ".." for each directory in $ac_dir_suffix.
21793 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21794 case $ac_top_builddir_sub in
21795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21797 esac ;;
21798esac
21799ac_abs_top_builddir=$ac_pwd
21800ac_abs_builddir=$ac_pwd$ac_dir_suffix
21801# for backward compatibility:
21802ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000021803
21804case $srcdir in
mlcreech94984912008-03-04 19:03:08 +000021805 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000021806 ac_srcdir=.
mlcreech94984912008-03-04 19:03:08 +000021807 ac_top_srcdir=$ac_top_builddir_sub
21808 ac_abs_top_srcdir=$ac_pwd ;;
21809 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000021810 ac_srcdir=$srcdir$ac_dir_suffix;
mlcreech94984912008-03-04 19:03:08 +000021811 ac_top_srcdir=$srcdir
21812 ac_abs_top_srcdir=$srcdir ;;
21813 *) # Relative name.
21814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21815 ac_top_srcdir=$ac_top_build_prefix$srcdir
21816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000021817esac
mlcreech94984912008-03-04 19:03:08 +000021818ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000021819
a.rottmann84e63352003-03-24 09:42:16 +000021820
mlcreech94984912008-03-04 19:03:08 +000021821 case $ac_mode in
21822 :F)
21823 #
21824 # CONFIG_FILE
21825 #
drh75897232000-05-29 14:26:00 +000021826
drh71eb93e2001-09-28 01:34:43 +000021827 case $INSTALL in
21828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mlcreech94984912008-03-04 19:03:08 +000021829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000021830 esac
vapier7f19c022007-02-17 14:46:31 +000021831_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021832
21833cat >>$CONFIG_STATUS <<\_ACEOF
21834# If the template does not know about datarootdir, expand it.
21835# FIXME: This hack should be removed a few years after 2.60.
21836ac_datarootdir_hack=; ac_datarootdir_seen=
21837
21838case `sed -n '/datarootdir/ {
21839 p
21840 q
21841}
21842/@datadir@/p
21843/@docdir@/p
21844/@infodir@/p
21845/@localedir@/p
21846/@mandir@/p
21847' $ac_file_inputs` in
21848*datarootdir*) ac_datarootdir_seen=yes;;
21849*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21850 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21851echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21852_ACEOF
21853cat >>$CONFIG_STATUS <<_ACEOF
21854 ac_datarootdir_hack='
21855 s&@datadir@&$datadir&g
21856 s&@docdir@&$docdir&g
21857 s&@infodir@&$infodir&g
21858 s&@localedir@&$localedir&g
21859 s&@mandir@&$mandir&g
21860 s&\\\${datarootdir}&$datarootdir&g' ;;
21861esac
21862_ACEOF
21863
21864# Neutralize VPATH when `$srcdir' = `.'.
21865# Shell code in configure.ac might set extrasub.
21866# FIXME: do we really want to maintain this feature?
vapier7f19c022007-02-17 14:46:31 +000021867cat >>$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021868 sed "$ac_vpsub
21869$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000021870_ACEOF
21871cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000021872:t
21873/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
mlcreech94984912008-03-04 19:03:08 +000021874s&@configure_input@&$configure_input&;t t
21875s&@top_builddir@&$ac_top_builddir_sub&;t t
21876s&@srcdir@&$ac_srcdir&;t t
21877s&@abs_srcdir@&$ac_abs_srcdir&;t t
21878s&@top_srcdir@&$ac_top_srcdir&;t t
21879s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21880s&@builddir@&$ac_builddir&;t t
21881s&@abs_builddir@&$ac_abs_builddir&;t t
21882s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21883s&@INSTALL@&$ac_INSTALL&;t t
21884$ac_datarootdir_hack
21885" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
drh75897232000-05-29 14:26:00 +000021886
mlcreech94984912008-03-04 19:03:08 +000021887test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21890 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21891which seems to be undefined. Please make sure it is defined." >&5
21892echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21893which seems to be undefined. Please make sure it is defined." >&2;}
drh71eb93e2001-09-28 01:34:43 +000021894
mlcreech94984912008-03-04 19:03:08 +000021895 rm -f "$tmp/stdin"
21896 case $ac_file in
21897 -) cat "$tmp/out"; rm -f "$tmp/out";;
21898 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21899 esac
21900 ;;
mlcreechb87057f2008-03-06 07:19:20 +000021901 :H)
21902 #
21903 # CONFIG_HEADER
21904 #
21905_ACEOF
mlcreech94984912008-03-04 19:03:08 +000021906
mlcreechb87057f2008-03-06 07:19:20 +000021907# Transform confdefs.h into a sed script `conftest.defines', that
21908# substitutes the proper values into config.h.in to produce config.h.
21909rm -f conftest.defines conftest.tail
21910# First, append a space to every undef/define line, to ease matching.
21911echo 's/$/ /' >conftest.defines
21912# Then, protect against being on the right side of a sed subst, or in
21913# an unquoted here document, in config.status. If some macros were
21914# called several times there might be several #defines for the same
21915# symbol, which is useless. But do not sort them, since the last
21916# AC_DEFINE must be honored.
21917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21918# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21919# NAME is the cpp macro being defined, VALUE is the value it is being given.
21920# PARAMS is the parameter list in the macro definition--in most cases, it's
21921# just an empty string.
21922ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21923ac_dB='\\)[ (].*,\\1define\\2'
21924ac_dC=' '
21925ac_dD=' ,'
21926
21927uniq confdefs.h |
21928 sed -n '
21929 t rset
21930 :rset
21931 s/^[ ]*#[ ]*define[ ][ ]*//
21932 t ok
21933 d
21934 :ok
21935 s/[\\&,]/\\&/g
21936 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21937 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21938 ' >>conftest.defines
21939
21940# Remove the space that was appended to ease matching.
21941# Then replace #undef with comments. This is necessary, for
21942# example, in the case of _POSIX_SOURCE, which is predefined and required
21943# on some systems where configure will not decide to define it.
21944# (The regexp can be short, since the line contains either #define or #undef.)
21945echo 's/ $//
21946s,^[ #]*u.*,/* & */,' >>conftest.defines
21947
21948# Break up conftest.defines:
21949ac_max_sed_lines=50
21950
21951# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21952# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21953# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21954# et cetera.
21955ac_in='$ac_file_inputs'
21956ac_out='"$tmp/out1"'
21957ac_nxt='"$tmp/out2"'
21958
21959while :
21960do
21961 # Write a here document:
21962 cat >>$CONFIG_STATUS <<_ACEOF
21963 # First, check the format of the line:
21964 cat >"\$tmp/defines.sed" <<\\CEOF
21965/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21966/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21967b
21968:def
21969_ACEOF
21970 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21971 echo 'CEOF
21972 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21973 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21974 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21975 grep . conftest.tail >/dev/null || break
21976 rm -f conftest.defines
21977 mv conftest.tail conftest.defines
21978done
21979rm -f conftest.defines conftest.tail
21980
21981echo "ac_result=$ac_in" >>$CONFIG_STATUS
21982cat >>$CONFIG_STATUS <<\_ACEOF
21983 if test x"$ac_file" != x-; then
21984 echo "/* $configure_input */" >"$tmp/config.h"
21985 cat "$ac_result" >>"$tmp/config.h"
21986 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21987 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21988echo "$as_me: $ac_file is unchanged" >&6;}
21989 else
21990 rm -f $ac_file
21991 mv "$tmp/config.h" $ac_file
21992 fi
21993 else
21994 echo "/* $configure_input */"
21995 cat "$ac_result"
21996 fi
21997 rm -f "$tmp/out12"
21998 ;;
mlcreech94984912008-03-04 19:03:08 +000021999
22000
22001 esac
22002
22003done # for ac_tag
22004
drh71eb93e2001-09-28 01:34:43 +000022005
22006{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000022007_ACEOF
drh75897232000-05-29 14:26:00 +000022008chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000022009ac_clean_files=$ac_clean_files_save
22010
a.rottmann84e63352003-03-24 09:42:16 +000022011
drh71eb93e2001-09-28 01:34:43 +000022012# configure is writing to config.log, and then calls config.status.
22013# config.status does its own redirection, appending to config.log.
22014# Unfortunately, on DOS this fails, as config.log is still kept open
22015# by configure, so config.status won't be able to write to it; its
22016# output is simply discarded. So we exec the FD to /dev/null,
22017# effectively closing config.log, so it can be properly (re)opened and
22018# appended to by config.status. When coming back to configure, we
22019# need to make the FD available again.
22020if test "$no_create" != yes; then
22021 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000022022 ac_config_status_args=
22023 test "$silent" = yes &&
22024 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000022025 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000022026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000022027 exec 5>>config.log
22028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22029 # would make configure fail if this is the last instruction.
22030 $ac_cs_success || { (exit 1); exit 1; }
22031fi
drh613a0fe2007-11-23 17:31:17 +000022032