blob: 90df20c34b8d85f772f0c887b32904fc6bdb4166 [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.
danielk197733a14782008-08-04 14:50:05 +00003# Generated by GNU Autoconf 2.59 for sqlite 3.6.1.
drh75897232000-05-29 14:26:00 +00004#
drh866108f2008-05-13 00:57:21 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
drh866108f2008-05-13 00:57:21 +000012# Be Bourne compatible
a.rottmann84e63352003-03-24 09:42:16 +000013if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
drh866108f2008-05-13 00:57:21 +000016 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000017 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
drh866108f2008-05-13 00:57:21 +000019elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
a.rottmann84e63352003-03-24 09:42:16 +000021fi
drh866108f2008-05-13 00:57:21 +000022DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000023
mlcreech94984912008-03-04 19:03:08 +000024# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
a.rottmann84e63352003-03-24 09:42:16 +000030
mlcreech94984912008-03-04 19:03:08 +000031
mlcreech94984912008-03-04 19:03:08 +000032# Work around bugs in pre-3.0 UWIN ksh.
drh866108f2008-05-13 00:57:21 +000033$as_unset ENV MAIL MAILPATH
mlcreech94984912008-03-04 19:03:08 +000034PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
drh866108f2008-05-13 00:57:21 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
mlcreech94984912008-03-04 19:03:08 +000050
51# Required to use basename.
drh866108f2008-05-13 00:57:21 +000052if expr a : '\(a\)' >/dev/null 2>&1; then
mlcreech94984912008-03-04 19:03:08 +000053 as_expr=expr
54else
55 as_expr=false
56fi
57
drh866108f2008-05-13 00:57:21 +000058if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000059 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
drh866108f2008-05-13 00:57:21 +000066as_me=`$as_basename "$0" ||
mlcreech94984912008-03-04 19:03:08 +000067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000069 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000076
77
drh866108f2008-05-13 00:57:21 +000078# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
mlcreech94984912008-03-04 19:03:08 +000097fi
98
mlcreech94984912008-03-04 19:03:08 +000099
drh866108f2008-05-13 00:57:21 +0000100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
mlcreech94984912008-03-04 19:03:08 +0000116
drh866108f2008-05-13 00:57:21 +0000117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
a.rottmann84e63352003-03-24 09:42:16 +0000130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
drh866108f2008-05-13 00:57:21 +0000135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000137 /*)
drh866108f2008-05-13 00:57:21 +0000138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
mlcreech94984912008-03-04 19:03:08 +0000152done
drh866108f2008-05-13 00:57:21 +0000153;;
154 esac
a.rottmann84e63352003-03-24 09:42:16 +0000155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
drh866108f2008-05-13 00:57:21 +0000158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh866108f2008-05-13 00:57:21 +0000163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000165 sed '
166 N
drh866108f2008-05-13 00:57:21 +0000167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +0000170 t loop
drh866108f2008-05-13 00:57:21 +0000171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +0000173 ' >$as_me.lineno &&
drh866108f2008-05-13 00:57:21 +0000174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
drh866108f2008-05-13 00:57:21 +0000180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +0000182 # Exit status is that of the last command.
183 exit
184}
185
186
drh866108f2008-05-13 00:57:21 +0000187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a.rottmann84e63352003-03-24 09:42:16 +0000192esac
drh866108f2008-05-13 00:57:21 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +0000195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
drh866108f2008-05-13 00:57:21 +0000201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
a.rottmann84e63352003-03-24 09:42:16 +0000207 as_ln_s='cp -p'
drh866108f2008-05-13 00:57:21 +0000208 else
209 as_ln_s='ln -s'
mlcreech636a9952008-05-05 22:52:56 +0000210 fi
drh866108f2008-05-13 00:57:21 +0000211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
a.rottmann84e63352003-03-24 09:42:16 +0000213else
214 as_ln_s='cp -p'
215fi
drh866108f2008-05-13 00:57:21 +0000216rm -f conf$$ conf$$.exe conf$$.file
a.rottmann84e63352003-03-24 09:42:16 +0000217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
a.rottmann964dbb12004-02-26 19:47:42 +0000221 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000222 as_mkdir_p=false
223fi
224
drh866108f2008-05-13 00:57:21 +0000225as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +0000226
227# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000229
230# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000232
233
drh866108f2008-05-13 00:57:21 +0000234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
drh75897232000-05-29 14:26:00 +0000243
a.rottmann84e63352003-03-24 09:42:16 +0000244
drh71eb93e2001-09-28 01:34:43 +0000245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
mlcreech636a9952008-05-05 22:52:56 +0000248case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000252 ;;
253esac
254
mlcreech636a9952008-05-05 22:52:56 +0000255ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
mlcreech636a9952008-05-05 22:52:56 +0000262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
mlcreech636a9952008-05-05 22:52:56 +0000273 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000274$*
mlcreech636a9952008-05-05 22:52:56 +0000275_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000282
mlcreech636a9952008-05-05 22:52:56 +0000283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
drh71eb93e2001-09-28 01:34:43 +0000295
mlcreech636a9952008-05-05 22:52:56 +0000296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000306
mlcreech636a9952008-05-05 22:52:56 +0000307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000318 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000319
mlcreech636a9952008-05-05 22:52:56 +0000320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000335 else
mlcreech636a9952008-05-05 22:52:56 +0000336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
drh71eb93e2001-09-28 01:34:43 +0000360
mlcreech636a9952008-05-05 22:52:56 +0000361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000376 fi
mlcreech636a9952008-05-05 22:52:56 +0000377 fi
drh71eb93e2001-09-28 01:34:43 +0000378 fi
379 fi
380 fi
381fi
drh71eb93e2001-09-28 01:34:43 +0000382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000388fi
389
drh71eb93e2001-09-28 01:34:43 +0000390
drh71eb93e2001-09-28 01:34:43 +0000391
a.rottmann9bc8b932004-02-29 15:18:31 +0000392
drh71eb93e2001-09-28 01:34:43 +0000393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
drh866108f2008-05-13 00:57:21 +0000398exec 6>&1
399
drh71eb93e2001-09-28 01:34:43 +0000400#
401# Initializations.
402#
drh75897232000-05-29 14:26:00 +0000403ac_default_prefix=/usr/local
a.rottmann84e63352003-03-24 09:42:16 +0000404ac_config_libobj_dir=.
drh71eb93e2001-09-28 01:34:43 +0000405cross_compiling=no
406subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000407MFLAGS=
408MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000409SHELL=${CONFIG_SHELL-/bin/sh}
410
drh866108f2008-05-13 00:57:21 +0000411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
a.rottmann84e63352003-03-24 09:42:16 +0000416# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000417PACKAGE_NAME='sqlite'
418PACKAGE_TARNAME='sqlite'
danielk197733a14782008-08-04 14:50:05 +0000419PACKAGE_VERSION='3.6.1'
420PACKAGE_STRING='sqlite 3.6.1'
mlcreechb87057f2008-03-06 07:19:20 +0000421PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000422
a.rottmann84e63352003-03-24 09:42:16 +0000423# Factoring default headers for most tests.
424ac_includes_default="\
425#include <stdio.h>
danielk197733a14782008-08-04 14:50:05 +0000426#if HAVE_SYS_TYPES_H
427# include <sys/types.h>
428#endif
drh866108f2008-05-13 00:57:21 +0000429#if HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000430# include <sys/stat.h>
431#endif
drh866108f2008-05-13 00:57:21 +0000432#if STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000433# include <stdlib.h>
434# include <stddef.h>
435#else
danielk197733a14782008-08-04 14:50:05 +0000436# if HAVE_STDLIB_H
437# include <stdlib.h>
438# endif
a.rottmann84e63352003-03-24 09:42:16 +0000439#endif
drh866108f2008-05-13 00:57:21 +0000440#if HAVE_STRING_H
441# if !STDC_HEADERS && HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000442# include <memory.h>
443# endif
444# include <string.h>
445#endif
drh866108f2008-05-13 00:57:21 +0000446#if HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000447# include <strings.h>
448#endif
drh866108f2008-05-13 00:57:21 +0000449#if HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000450# include <inttypes.h>
drh866108f2008-05-13 00:57:21 +0000451#else
452# if HAVE_STDINT_H
453# include <stdint.h>
454# endif
a.rottmann84e63352003-03-24 09:42:16 +0000455#endif
drh866108f2008-05-13 00:57:21 +0000456#if HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000457# include <unistd.h>
458#endif"
459
shanefbedede2008-07-22 05:05:01 +0000460ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK TCLSH_CMD program_prefix VERSION RELEASE VERSION_NUMBER BUILD_CC SQLITE_THREADSAFE XTHREADCONNECT THREADSOVERRIDELOCKS ALLOWRELEASE TEMP_STORE BUILD_EXEEXT SQLITE_OS_UNIX SQLITE_OS_WIN SQLITE_OS_OS2 TARGET_EXEEXT TCL_VERSION TCL_BIN_DIR TCL_SRC_DIR TCL_LIBS TCL_INCLUDE_SPEC TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC HAVE_TCL TARGET_READLINE_LIBS TARGET_READLINE_INC TARGET_HAVE_READLINE TARGET_DEBUG USE_AMALGAMATION OPT_FEATURE_FLAGS USE_GCOV BUILD_CFLAGS LIBOBJS LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000461ac_subst_files=''
drh75897232000-05-29 14:26:00 +0000462
463# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000464ac_init_help=
465ac_init_version=false
drh75897232000-05-29 14:26:00 +0000466# The variables have the same names as the options, with
467# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000468cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000469exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000470no_create=
drh75897232000-05-29 14:26:00 +0000471no_recursion=
472prefix=NONE
473program_prefix=NONE
474program_suffix=NONE
475program_transform_name=s,x,x,
476silent=
477site=
478srcdir=
drh75897232000-05-29 14:26:00 +0000479verbose=
480x_includes=NONE
481x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000482
483# Installation directory options.
484# These are left unexpanded so users can "make install exec_prefix=/foo"
485# and all the variables that are supposed to be based on exec_prefix
486# by default will actually change.
487# Use braces instead of parens because sh, perl, etc. also accept them.
drh75897232000-05-29 14:26:00 +0000488bindir='${exec_prefix}/bin'
489sbindir='${exec_prefix}/sbin'
490libexecdir='${exec_prefix}/libexec'
drh866108f2008-05-13 00:57:21 +0000491datadir='${prefix}/share'
drh75897232000-05-29 14:26:00 +0000492sysconfdir='${prefix}/etc'
493sharedstatedir='${prefix}/com'
494localstatedir='${prefix}/var'
drh866108f2008-05-13 00:57:21 +0000495libdir='${exec_prefix}/lib'
drh75897232000-05-29 14:26:00 +0000496includedir='${prefix}/include'
497oldincludedir='/usr/include'
drh866108f2008-05-13 00:57:21 +0000498infodir='${prefix}/info'
499mandir='${prefix}/man'
drh75897232000-05-29 14:26:00 +0000500
drh75897232000-05-29 14:26:00 +0000501ac_prev=
502for ac_option
503do
drh75897232000-05-29 14:26:00 +0000504 # If the previous option needs an argument, assign it.
505 if test -n "$ac_prev"; then
drh866108f2008-05-13 00:57:21 +0000506 eval "$ac_prev=\$ac_option"
drh75897232000-05-29 14:26:00 +0000507 ac_prev=
508 continue
509 fi
510
drh866108f2008-05-13 00:57:21 +0000511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
drh75897232000-05-29 14:26:00 +0000512
513 # Accept the important Cygnus configure options, so we can diagnose typos.
514
drh866108f2008-05-13 00:57:21 +0000515 case $ac_option in
drh75897232000-05-29 14:26:00 +0000516
517 -bindir | --bindir | --bindi | --bind | --bin | --bi)
518 ac_prev=bindir ;;
519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000520 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000521
522 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000523 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000524 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000525 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000526
527 -cache-file | --cache-file | --cache-fil | --cache-fi \
528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529 ac_prev=cache_file ;;
530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +0000532 cache_file=$ac_optarg ;;
533
534 --config-cache | -C)
535 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +0000536
drh866108f2008-05-13 00:57:21 +0000537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
drh75897232000-05-29 14:26:00 +0000538 ac_prev=datadir ;;
drh866108f2008-05-13 00:57:21 +0000539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540 | --da=*)
drh71eb93e2001-09-28 01:34:43 +0000541 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000542
543 -disable-* | --disable-*)
drh866108f2008-05-13 00:57:21 +0000544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000545 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
drh71eb93e2001-09-28 01:34:43 +0000548 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000549 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550 eval "enable_$ac_feature=no" ;;
drh75897232000-05-29 14:26:00 +0000551
552 -enable-* | --enable-*)
drh866108f2008-05-13 00:57:21 +0000553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000554 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
drh71eb93e2001-09-28 01:34:43 +0000557 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 case $ac_option in
560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 *) ac_optarg=yes ;;
mlcreech636a9952008-05-05 22:52:56 +0000562 esac
drh866108f2008-05-13 00:57:21 +0000563 eval "enable_$ac_feature='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000564
565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567 | --exec | --exe | --ex)
568 ac_prev=exec_prefix ;;
569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +0000572 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000573
574 -gas | --gas | --ga | --g)
575 # Obsolete; use --with-gas.
576 with_gas=yes ;;
577
drh71eb93e2001-09-28 01:34:43 +0000578 -help | --help | --hel | --he | -h)
579 ac_init_help=long ;;
580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581 ac_init_help=recursive ;;
582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +0000584
585 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +0000586 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +0000587 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +0000588 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000589
590 -includedir | --includedir | --includedi | --included | --include \
591 | --includ | --inclu | --incl | --inc)
592 ac_prev=includedir ;;
593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +0000595 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000596
597 -infodir | --infodir | --infodi | --infod | --info | --inf)
598 ac_prev=infodir ;;
599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +0000600 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000601
602 -libdir | --libdir | --libdi | --libd)
603 ac_prev=libdir ;;
604 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +0000605 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000606
607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608 | --libexe | --libex | --libe)
609 ac_prev=libexecdir ;;
610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +0000612 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000613
614 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh866108f2008-05-13 00:57:21 +0000615 | --localstate | --localstat | --localsta | --localst \
616 | --locals | --local | --loca | --loc | --lo)
drh75897232000-05-29 14:26:00 +0000617 ac_prev=localstatedir ;;
618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh866108f2008-05-13 00:57:21 +0000619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
drh71eb93e2001-09-28 01:34:43 +0000621 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000622
623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624 ac_prev=mandir ;;
625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +0000626 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000627
628 -nfp | --nfp | --nf)
629 # Obsolete; use --without-fp.
630 with_fp=no ;;
631
632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +0000633 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +0000634 no_create=yes ;;
635
636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638 no_recursion=yes ;;
639
640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642 | --oldin | --oldi | --old | --ol | --o)
643 ac_prev=oldincludedir ;;
644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +0000647 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000648
649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650 ac_prev=prefix ;;
651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +0000652 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000653
654 -program-prefix | --program-prefix | --program-prefi | --program-pref \
655 | --program-pre | --program-pr | --program-p)
656 ac_prev=program_prefix ;;
657 -program-prefix=* | --program-prefix=* | --program-prefi=* \
658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +0000659 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000660
661 -program-suffix | --program-suffix | --program-suffi | --program-suff \
662 | --program-suf | --program-su | --program-s)
663 ac_prev=program_suffix ;;
664 -program-suffix=* | --program-suffix=* | --program-suffi=* \
665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +0000666 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000667
668 -program-transform-name | --program-transform-name \
669 | --program-transform-nam | --program-transform-na \
670 | --program-transform-n | --program-transform- \
671 | --program-transform | --program-transfor \
672 | --program-transfo | --program-transf \
673 | --program-trans | --program-tran \
674 | --progr-tra | --program-tr | --program-t)
675 ac_prev=program_transform_name ;;
676 -program-transform-name=* | --program-transform-name=* \
677 | --program-transform-nam=* | --program-transform-na=* \
678 | --program-transform-n=* | --program-transform-=* \
679 | --program-transform=* | --program-transfor=* \
680 | --program-transfo=* | --program-transf=* \
681 | --program-trans=* | --program-tran=* \
682 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +0000683 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000684
685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686 | -silent | --silent | --silen | --sile | --sil)
687 silent=yes ;;
688
689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690 ac_prev=sbindir ;;
691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +0000693 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000694
695 -sharedstatedir | --sharedstatedir | --sharedstatedi \
696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697 | --sharedst | --shareds | --shared | --share | --shar \
698 | --sha | --sh)
699 ac_prev=sharedstatedir ;;
700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +0000704 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000705
706 -site | --site | --sit)
707 ac_prev=site ;;
708 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +0000709 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000710
711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712 ac_prev=srcdir ;;
713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +0000714 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000715
716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717 | --syscon | --sysco | --sysc | --sys | --sy)
718 ac_prev=sysconfdir ;;
719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +0000721 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000722
723 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +0000724 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +0000725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +0000726 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000727
728 -v | -verbose | --verbose | --verbos | --verbo | --verb)
729 verbose=yes ;;
730
drh71eb93e2001-09-28 01:34:43 +0000731 -version | --version | --versio | --versi | --vers | -V)
732 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +0000733
734 -with-* | --with-*)
drh866108f2008-05-13 00:57:21 +0000735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +0000736 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738 { echo "$as_me: error: invalid package name: $ac_package" >&2
drh71eb93e2001-09-28 01:34:43 +0000739 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000740 ac_package=`echo $ac_package| sed 's/-/_/g'`
741 case $ac_option in
742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743 *) ac_optarg=yes ;;
mlcreech636a9952008-05-05 22:52:56 +0000744 esac
drh866108f2008-05-13 00:57:21 +0000745 eval "with_$ac_package='$ac_optarg'" ;;
drh75897232000-05-29 14:26:00 +0000746
747 -without-* | --without-*)
drh866108f2008-05-13 00:57:21 +0000748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +0000749 # Reject names that are not valid shell variable names.
drh866108f2008-05-13 00:57:21 +0000750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
drh71eb93e2001-09-28 01:34:43 +0000752 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000753 ac_package=`echo $ac_package | sed 's/-/_/g'`
754 eval "with_$ac_package=no" ;;
drh75897232000-05-29 14:26:00 +0000755
756 --x)
757 # Obsolete; use --with-x.
758 with_x=yes ;;
759
760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761 | --x-incl | --x-inc | --x-in | --x-i)
762 ac_prev=x_includes ;;
763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +0000765 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000766
767 -x-libraries | --x-libraries | --x-librarie | --x-librari \
768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769 ac_prev=x_libraries ;;
770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +0000772 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000773
drh866108f2008-05-13 00:57:21 +0000774 -*) { echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +0000775Try \`$0 --help' for more information." >&2
776 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000777 ;;
778
drh71eb93e2001-09-28 01:34:43 +0000779 *=*)
780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh866108f2008-05-13 00:57:21 +0000783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +0000784 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786 eval "$ac_envvar='$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +0000787 export $ac_envvar ;;
788
drh75897232000-05-29 14:26:00 +0000789 *)
drh71eb93e2001-09-28 01:34:43 +0000790 # FIXME: should be removed in autoconf 3.0.
drh866108f2008-05-13 00:57:21 +0000791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +0000792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh866108f2008-05-13 00:57:21 +0000793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +0000794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +0000795 ;;
796
797 esac
798done
799
800if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +0000801 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh866108f2008-05-13 00:57:21 +0000802 { echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +0000803 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +0000804fi
805
drh866108f2008-05-13 00:57:21 +0000806# Be sure to have absolute paths.
807for ac_var in exec_prefix prefix
drh75897232000-05-29 14:26:00 +0000808do
drh866108f2008-05-13 00:57:21 +0000809 eval ac_val=$`echo $ac_var`
mlcreech636a9952008-05-05 22:52:56 +0000810 case $ac_val in
drh866108f2008-05-13 00:57:21 +0000811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
813 { (exit 1); exit 1; }; };;
mlcreech636a9952008-05-05 22:52:56 +0000814 esac
drh866108f2008-05-13 00:57:21 +0000815done
816
817# Be sure to have absolute paths.
818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819 localstatedir libdir includedir oldincludedir infodir mandir
820do
821 eval ac_val=$`echo $ac_var`
drh71eb93e2001-09-28 01:34:43 +0000822 case $ac_val in
drh866108f2008-05-13 00:57:21 +0000823 [\\/$]* | ?:[\\/]* ) ;;
824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
825 { (exit 1); exit 1; }; };;
drh75897232000-05-29 14:26:00 +0000826 esac
drh71eb93e2001-09-28 01:34:43 +0000827done
drh75897232000-05-29 14:26:00 +0000828
drh71eb93e2001-09-28 01:34:43 +0000829# There might be people who depend on the old broken behavior: `$host'
830# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +0000831# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000832build=$build_alias
833host=$host_alias
834target=$target_alias
drh75897232000-05-29 14:26:00 +0000835
a.rottmann84e63352003-03-24 09:42:16 +0000836# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +0000837if test "x$host_alias" != x; then
838 if test "x$build_alias" = x; then
839 cross_compiling=maybe
drh866108f2008-05-13 00:57:21 +0000840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +0000841 If a cross compiler is detected then cross compile mode will be used." >&2
842 elif test "x$build_alias" != "x$host_alias"; then
843 cross_compiling=yes
844 fi
845fi
846
847ac_tool_prefix=
848test -n "$host_alias" && ac_tool_prefix=$host_alias-
849
850test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +0000851
a.rottmann84e63352003-03-24 09:42:16 +0000852
drh75897232000-05-29 14:26:00 +0000853# Find the source files, if location was not specified.
854if test -z "$srcdir"; then
855 ac_srcdir_defaulted=yes
drh866108f2008-05-13 00:57:21 +0000856 # Try the directory containing this script, then its parent.
857 ac_confdir=`(dirname "$0") 2>/dev/null ||
858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859 X"$0" : 'X\(//\)[^/]' \| \
860 X"$0" : 'X\(//\)$' \| \
861 X"$0" : 'X\(/\)' \| \
862 . : '\(.\)' 2>/dev/null ||
863echo X"$0" |
864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866 /^X\(\/\/\)$/{ s//\1/; q; }
867 /^X\(\/\).*/{ s//\1/; q; }
868 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +0000869 srcdir=$ac_confdir
drh866108f2008-05-13 00:57:21 +0000870 if test ! -r $srcdir/$ac_unique_file; then
drh75897232000-05-29 14:26:00 +0000871 srcdir=..
872 fi
873else
874 ac_srcdir_defaulted=no
875fi
drh866108f2008-05-13 00:57:21 +0000876if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
drh71eb93e2001-09-28 01:34:43 +0000879 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000880 else
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh613a0fe2007-11-23 17:31:17 +0000882 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +0000883 fi
mlcreech94984912008-03-04 19:03:08 +0000884fi
drh866108f2008-05-13 00:57:21 +0000885(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887 { (exit 1); exit 1; }; }
888srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889ac_env_build_alias_set=${build_alias+set}
890ac_env_build_alias_value=$build_alias
891ac_cv_env_build_alias_set=${build_alias+set}
892ac_cv_env_build_alias_value=$build_alias
893ac_env_host_alias_set=${host_alias+set}
894ac_env_host_alias_value=$host_alias
895ac_cv_env_host_alias_set=${host_alias+set}
896ac_cv_env_host_alias_value=$host_alias
897ac_env_target_alias_set=${target_alias+set}
898ac_env_target_alias_value=$target_alias
899ac_cv_env_target_alias_set=${target_alias+set}
900ac_cv_env_target_alias_value=$target_alias
901ac_env_CC_set=${CC+set}
902ac_env_CC_value=$CC
903ac_cv_env_CC_set=${CC+set}
904ac_cv_env_CC_value=$CC
905ac_env_CFLAGS_set=${CFLAGS+set}
906ac_env_CFLAGS_value=$CFLAGS
907ac_cv_env_CFLAGS_set=${CFLAGS+set}
908ac_cv_env_CFLAGS_value=$CFLAGS
909ac_env_LDFLAGS_set=${LDFLAGS+set}
910ac_env_LDFLAGS_value=$LDFLAGS
911ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
912ac_cv_env_LDFLAGS_value=$LDFLAGS
913ac_env_CPPFLAGS_set=${CPPFLAGS+set}
914ac_env_CPPFLAGS_value=$CPPFLAGS
915ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_cv_env_CPPFLAGS_value=$CPPFLAGS
917ac_env_CPP_set=${CPP+set}
918ac_env_CPP_value=$CPP
919ac_cv_env_CPP_set=${CPP+set}
920ac_cv_env_CPP_value=$CPP
drh75897232000-05-29 14:26:00 +0000921
drh71eb93e2001-09-28 01:34:43 +0000922#
923# Report the --help message.
924#
925if test "$ac_init_help" = "long"; then
926 # Omit some internal or obsolete options to make the list less imposing.
927 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +0000928 cat <<_ACEOF
danielk197733a14782008-08-04 14:50:05 +0000929\`configure' configures sqlite 3.6.1 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +0000930
931Usage: $0 [OPTION]... [VAR=VALUE]...
932
933To assign environment variables (e.g., CC, CFLAGS...), specify them as
934VAR=VALUE. See below for descriptions of some of the useful variables.
935
936Defaults for the options are specified in brackets.
937
938Configuration:
939 -h, --help display this help and exit
940 --help=short display options specific to this package
941 --help=recursive display the short help of all the included packages
942 -V, --version display version information and exit
943 -q, --quiet, --silent do not print \`checking...' messages
944 --cache-file=FILE cache test results in FILE [disabled]
945 -C, --config-cache alias for \`--cache-file=config.cache'
946 -n, --no-create do not create output files
947 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948
drh866108f2008-05-13 00:57:21 +0000949_ACEOF
950
951 cat <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000952Installation directories:
953 --prefix=PREFIX install architecture-independent files in PREFIX
drh866108f2008-05-13 00:57:21 +0000954 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +0000955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh866108f2008-05-13 00:57:21 +0000956 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +0000957
958By default, \`make install' will install all the files in
959\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
960an installation prefix other than \`$ac_default_prefix' using \`--prefix',
961for instance \`--prefix=\$HOME'.
962
963For better control, use the options below.
964
965Fine tuning of the installation directories:
drh866108f2008-05-13 00:57:21 +0000966 --bindir=DIR user executables [EPREFIX/bin]
967 --sbindir=DIR system admin executables [EPREFIX/sbin]
968 --libexecdir=DIR program executables [EPREFIX/libexec]
969 --datadir=DIR read-only architecture-independent data [PREFIX/share]
970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
972 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
973 --libdir=DIR object code libraries [EPREFIX/lib]
974 --includedir=DIR C header files [PREFIX/include]
975 --oldincludedir=DIR C header files for non-gcc [/usr/include]
976 --infodir=DIR info documentation [PREFIX/info]
977 --mandir=DIR man documentation [PREFIX/man]
a.rottmann84e63352003-03-24 09:42:16 +0000978_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000979
a.rottmann84e63352003-03-24 09:42:16 +0000980 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000981
982System types:
983 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +0000984 --host=HOST cross-compile to build programs to run on HOST [BUILD]
985_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000986fi
987
988if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +0000989 case $ac_init_help in
danielk197733a14782008-08-04 14:50:05 +0000990 short | recursive ) echo "Configuration of sqlite 3.6.1:";;
mlcreechb87057f2008-03-06 07:19:20 +0000991 esac
a.rottmann84e63352003-03-24 09:42:16 +0000992 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +0000993
994Optional Features:
995 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
996 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh866108f2008-05-13 00:57:21 +0000997 --enable-shared[=PKGS]
998 build shared libraries [default=yes]
999 --enable-static[=PKGS]
1000 build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001001 --enable-fast-install[=PKGS]
1002 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001003 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001004 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001005 --enable-threadsafe Support threadsafe operation
1006 --enable-cross-thread-connections
1007 Allow connection sharing across threads
1008 --enable-threads-override-locks
1009 Threads can override each others locks
1010 --enable-releasemode Support libtool link to release mode
1011 --enable-tempstore Use an in-ram database for temporary tables
1012 (never,no,yes,always)
1013 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001014 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001015 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001016 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001017 separately
mlcreecha4edab02008-03-06 04:14:17 +00001018 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001019 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001020
1021Optional Packages:
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001024 --with-pic try to use only PIC/non-PIC objects [default=use
1025 both]
mlcreech636a9952008-05-05 22:52:56 +00001026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001027 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001028 --with-tcl=DIR directory containing tcl configuration
1029 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001030 --with-readline-lib specify readline library
1031 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001032
1033Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
drh866108f2008-05-13 00:57:21 +00001038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001040 CPP C preprocessor
drh71eb93e2001-09-28 01:34:43 +00001041
1042Use these variables to override the choices made by `configure' or to help
1043it to find libraries and programs with nonstandard names/locations.
1044
a.rottmann84e63352003-03-24 09:42:16 +00001045_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001046fi
1047
1048if test "$ac_init_help" = "recursive"; then
1049 # If there are subdirs, report their specific --help.
drh866108f2008-05-13 00:57:21 +00001050 ac_popdir=`pwd`
a.rottmann84e63352003-03-24 09:42:16 +00001051 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh866108f2008-05-13 00:57:21 +00001052 test -d $ac_dir || continue
a.rottmann84e63352003-03-24 09:42:16 +00001053 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001054
drh866108f2008-05-13 00:57:21 +00001055if test "$ac_dir" != .; then
1056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1057 # A "../" for each directory in $ac_dir_suffix.
1058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1059else
1060 ac_dir_suffix= ac_top_builddir=
1061fi
drh71eb93e2001-09-28 01:34:43 +00001062
a.rottmann84e63352003-03-24 09:42:16 +00001063case $srcdir in
drh866108f2008-05-13 00:57:21 +00001064 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001065 ac_srcdir=.
drh866108f2008-05-13 00:57:21 +00001066 if test -z "$ac_top_builddir"; then
1067 ac_top_srcdir=.
drh71eb93e2001-09-28 01:34:43 +00001068 else
drh866108f2008-05-13 00:57:21 +00001069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1070 fi ;;
1071 [\\/]* | ?:[\\/]* ) # Absolute path.
1072 ac_srcdir=$srcdir$ac_dir_suffix;
1073 ac_top_srcdir=$srcdir ;;
1074 *) # Relative path.
1075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1077esac
1078
1079# Do not use `cd foo && pwd` to compute absolute paths, because
1080# the directories may not exist.
1081case `pwd` in
1082.) ac_abs_builddir="$ac_dir";;
1083*)
1084 case "$ac_dir" in
1085 .) ac_abs_builddir=`pwd`;;
1086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1088 esac;;
1089esac
1090case $ac_abs_builddir in
1091.) ac_abs_top_builddir=${ac_top_builddir}.;;
1092*)
1093 case ${ac_top_builddir}. in
1094 .) ac_abs_top_builddir=$ac_abs_builddir;;
1095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1097 esac;;
1098esac
1099case $ac_abs_builddir in
1100.) ac_abs_srcdir=$ac_srcdir;;
1101*)
1102 case $ac_srcdir in
1103 .) ac_abs_srcdir=$ac_abs_builddir;;
1104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1106 esac;;
1107esac
1108case $ac_abs_builddir in
1109.) ac_abs_top_srcdir=$ac_top_srcdir;;
1110*)
1111 case $ac_top_srcdir in
1112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1115 esac;;
1116esac
1117
1118 cd $ac_dir
1119 # Check for guested configure; otherwise get Cygnus style configure.
1120 if test -f $ac_srcdir/configure.gnu; then
1121 echo
1122 $SHELL $ac_srcdir/configure.gnu --help=recursive
1123 elif test -f $ac_srcdir/configure; then
1124 echo
1125 $SHELL $ac_srcdir/configure --help=recursive
1126 elif test -f $ac_srcdir/configure.ac ||
1127 test -f $ac_srcdir/configure.in; then
1128 echo
1129 $ac_configure --help
1130 else
1131 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1132 fi
1133 cd $ac_popdir
drh71eb93e2001-09-28 01:34:43 +00001134 done
1135fi
1136
drh866108f2008-05-13 00:57:21 +00001137test -n "$ac_init_help" && exit 0
drh71eb93e2001-09-28 01:34:43 +00001138if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001139 cat <<\_ACEOF
danielk197733a14782008-08-04 14:50:05 +00001140sqlite configure 3.6.1
drh866108f2008-05-13 00:57:21 +00001141generated by GNU Autoconf 2.59
drh71eb93e2001-09-28 01:34:43 +00001142
drh866108f2008-05-13 00:57:21 +00001143Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001144This configure script is free software; the Free Software Foundation
1145gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001146_ACEOF
drh866108f2008-05-13 00:57:21 +00001147 exit 0
drh71eb93e2001-09-28 01:34:43 +00001148fi
drh866108f2008-05-13 00:57:21 +00001149exec 5>config.log
1150cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001151This file contains any messages produced by compilers while
1152running configure, to aid debugging if configure makes a mistake.
1153
danielk197733a14782008-08-04 14:50:05 +00001154It was created by sqlite $as_me 3.6.1, which was
drh866108f2008-05-13 00:57:21 +00001155generated by GNU Autoconf 2.59. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001156
1157 $ $0 $@
1158
a.rottmann84e63352003-03-24 09:42:16 +00001159_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001160{
1161cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001162## --------- ##
1163## Platform. ##
1164## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001165
1166hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1174
1175/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh866108f2008-05-13 00:57:21 +00001178hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001179/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1182
drh71eb93e2001-09-28 01:34:43 +00001183_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001184
1185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186for as_dir in $PATH
1187do
1188 IFS=$as_save_IFS
1189 test -z "$as_dir" && as_dir=.
drh866108f2008-05-13 00:57:21 +00001190 echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001191done
1192
drh71eb93e2001-09-28 01:34:43 +00001193} >&5
1194
a.rottmann84e63352003-03-24 09:42:16 +00001195cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001196
a.rottmann84e63352003-03-24 09:42:16 +00001197
1198## ----------- ##
1199## Core tests. ##
1200## ----------- ##
1201
1202_ACEOF
1203
drh71eb93e2001-09-28 01:34:43 +00001204
1205# Keep a trace of the command line.
1206# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001207# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001208# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001209# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001210ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001211ac_configure_args0=
1212ac_configure_args1=
drh866108f2008-05-13 00:57:21 +00001213ac_sep=
a.rottmann84e63352003-03-24 09:42:16 +00001214ac_must_keep_next=false
1215for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001216do
a.rottmann84e63352003-03-24 09:42:16 +00001217 for ac_arg
1218 do
1219 case $ac_arg in
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 continue ;;
drh866108f2008-05-13 00:57:21 +00001224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001226 esac
1227 case $ac_pass in
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229 2)
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001232 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001233 else
a.rottmann964dbb12004-02-26 19:47:42 +00001234 case $ac_arg in
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241 esac
1242 ;;
1243 -* ) ac_must_keep_next=true ;;
1244 esac
a.rottmann84e63352003-03-24 09:42:16 +00001245 fi
drh866108f2008-05-13 00:57:21 +00001246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1248 ac_sep=" "
a.rottmann84e63352003-03-24 09:42:16 +00001249 ;;
1250 esac
1251 done
drh71eb93e2001-09-28 01:34:43 +00001252done
a.rottmann84e63352003-03-24 09:42:16 +00001253$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001255
1256# When interrupted or exit'd, cleanup temporary files, and complete
1257# config.log. We remove comments because anyway the quotes in there
1258# would cause problems or look ugly.
drh866108f2008-05-13 00:57:21 +00001259# WARNING: Be sure not to use single quotes in there, as some shells,
1260# such as our DU 5.0 friend, will then `close' the trap.
drh71eb93e2001-09-28 01:34:43 +00001261trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001263 {
1264 echo
1265
1266 cat <<\_ASBOX
1267## ---------------- ##
1268## Cache variables. ##
1269## ---------------- ##
1270_ASBOX
1271 echo
1272 # The following way of writing the cache mishandles newlines in values,
drh866108f2008-05-13 00:57:21 +00001273{
drh71eb93e2001-09-28 01:34:43 +00001274 (set) 2>&1 |
drh866108f2008-05-13 00:57:21 +00001275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001277 sed -n \
drh866108f2008-05-13 00:57:21 +00001278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
drh613a0fe2007-11-23 17:31:17 +00001280 ;;
drh866108f2008-05-13 00:57:21 +00001281 *)
1282 sed -n \
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284 ;;
1285 esac;
1286}
a.rottmann84e63352003-03-24 09:42:16 +00001287 echo
1288
1289 cat <<\_ASBOX
1290## ----------------- ##
1291## Output variables. ##
1292## ----------------- ##
1293_ASBOX
1294 echo
1295 for ac_var in $ac_subst_vars
1296 do
drh866108f2008-05-13 00:57:21 +00001297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001299 done | sort
1300 echo
1301
1302 if test -n "$ac_subst_files"; then
1303 cat <<\_ASBOX
drh866108f2008-05-13 00:57:21 +00001304## ------------- ##
1305## Output files. ##
1306## ------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001307_ASBOX
1308 echo
1309 for ac_var in $ac_subst_files
1310 do
drh866108f2008-05-13 00:57:21 +00001311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
a.rottmann84e63352003-03-24 09:42:16 +00001313 done | sort
1314 echo
1315 fi
1316
1317 if test -s confdefs.h; then
1318 cat <<\_ASBOX
1319## ----------- ##
1320## confdefs.h. ##
1321## ----------- ##
1322_ASBOX
1323 echo
drh866108f2008-05-13 00:57:21 +00001324 sed "/^$/d" confdefs.h | sort
a.rottmann84e63352003-03-24 09:42:16 +00001325 echo
1326 fi
1327 test "$ac_signal" != 0 &&
drh866108f2008-05-13 00:57:21 +00001328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001330 } >&5
drh866108f2008-05-13 00:57:21 +00001331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001333 exit $exit_status
drh866108f2008-05-13 00:57:21 +00001334 ' 0
drh71eb93e2001-09-28 01:34:43 +00001335for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337done
1338ac_signal=0
1339
1340# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh866108f2008-05-13 00:57:21 +00001341rm -rf conftest* confdefs.h
1342# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343echo >confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001344
a.rottmann84e63352003-03-24 09:42:16 +00001345# Predefined preprocessor variables.
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_NAME "$PACKAGE_NAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_VERSION "$PACKAGE_VERSION"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_STRING "$PACKAGE_STRING"
1364_ACEOF
1365
1366
1367cat >>confdefs.h <<_ACEOF
1368#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369_ACEOF
1370
1371
drh71eb93e2001-09-28 01:34:43 +00001372# Let the site file select an alternate cache file if it wants to.
drh866108f2008-05-13 00:57:21 +00001373# Prefer explicitly selected file to automatically selected ones.
1374if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377 else
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379 fi
drh75897232000-05-29 14:26:00 +00001380fi
drh866108f2008-05-13 00:57:21 +00001381for ac_site_file in $CONFIG_SITE; do
drh75897232000-05-29 14:26:00 +00001382 if test -r "$ac_site_file"; then
drh866108f2008-05-13 00:57:21 +00001383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001385 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001386 . "$ac_site_file"
1387 fi
1388done
1389
1390if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
drh866108f2008-05-13 00:57:21 +00001394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001396 case $cache_file in
drh866108f2008-05-13 00:57:21 +00001397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
drh71eb93e2001-09-28 01:34:43 +00001399 esac
1400 fi
drh75897232000-05-29 14:26:00 +00001401else
drh866108f2008-05-13 00:57:21 +00001402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001404 >$cache_file
1405fi
1406
1407# Check that the precious variables saved in the cache have kept the same
1408# value.
1409ac_cache_corrupted=false
drh866108f2008-05-13 00:57:21 +00001410for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
drh71eb93e2001-09-28 01:34:43 +00001412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
drh866108f2008-05-13 00:57:21 +00001414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
drh71eb93e2001-09-28 01:34:43 +00001416 case $ac_old_set,$ac_new_set in
1417 set,)
drh866108f2008-05-13 00:57:21 +00001418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001420 ac_cache_corrupted=: ;;
1421 ,set)
drh866108f2008-05-13 00:57:21 +00001422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001424 ac_cache_corrupted=: ;;
1425 ,);;
1426 *)
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
drh866108f2008-05-13 00:57:21 +00001428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
drh71eb93e2001-09-28 01:34:43 +00001435 fi;;
1436 esac
a.rottmann84e63352003-03-24 09:42:16 +00001437 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001438 if test "$ac_new_set" = set; then
1439 case $ac_new_val in
drh866108f2008-05-13 00:57:21 +00001440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001442 *) ac_arg=$ac_var=$ac_new_val ;;
1443 esac
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00001447 esac
1448 fi
1449done
1450if $ac_cache_corrupted; then
drh866108f2008-05-13 00:57:21 +00001451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001455 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001456fi
1457
1458ac_ext=c
drh75897232000-05-29 14:26:00 +00001459ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00001460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00001463
a.rottmann84e63352003-03-24 09:42:16 +00001464
1465
drh866108f2008-05-13 00:57:21 +00001466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
drh75897232000-05-29 14:26:00 +00001491# The following RCS revision string applies to configure.in
danielk197733a14782008-08-04 14:50:05 +00001492# $Revision: 1.64 $
drh75897232000-05-29 14:26:00 +00001493
1494#########
drh71eb93e2001-09-28 01:34:43 +00001495# Programs needed
drh75897232000-05-29 14:26:00 +00001496#
mlcreech636a9952008-05-05 22:52:56 +00001497case `pwd` in
1498 *\ * | *\ *)
drh866108f2008-05-13 00:57:21 +00001499 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1500echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00001501esac
a.rottmann9bc8b932004-02-29 15:18:31 +00001502
mlcreech94984912008-03-04 19:03:08 +00001503
mlcreech636a9952008-05-05 22:52:56 +00001504
1505macro_version='2.2.4'
1506macro_revision='1.2976'
a.rottmann9bc8b932004-02-29 15:18:31 +00001507
mlcreech94984912008-03-04 19:03:08 +00001508
mlcreech94984912008-03-04 19:03:08 +00001509
a.rottmann9bc8b932004-02-29 15:18:31 +00001510
mlcreech636a9952008-05-05 22:52:56 +00001511
1512
1513
1514
1515
1516
1517
1518
1519
1520ltmain="$ac_aux_dir/ltmain.sh"
1521
drh71eb93e2001-09-28 01:34:43 +00001522ac_aux_dir=
drh866108f2008-05-13 00:57:21 +00001523for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
drh71eb93e2001-09-28 01:34:43 +00001525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1527 break
drh866108f2008-05-13 00:57:21 +00001528 elif test -f $ac_dir/install.sh; then
drh71eb93e2001-09-28 01:34:43 +00001529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1531 break
drh866108f2008-05-13 00:57:21 +00001532 elif test -f $ac_dir/shtool; then
drh71eb93e2001-09-28 01:34:43 +00001533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1535 break
1536 fi
1537done
1538if test -z "$ac_aux_dir"; then
drh866108f2008-05-13 00:57:21 +00001539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001541 { (exit 1); exit 1; }; }
1542fi
drh866108f2008-05-13 00:57:21 +00001543ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
drh71eb93e2001-09-28 01:34:43 +00001546
1547# Make sure we can run config.sub.
drh866108f2008-05-13 00:57:21 +00001548$ac_config_sub sun4 >/dev/null 2>&1 ||
1549 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550echo "$as_me: error: cannot run $ac_config_sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001551 { (exit 1); exit 1; }; }
1552
drh866108f2008-05-13 00:57:21 +00001553echo "$as_me:$LINENO: checking build system type" >&5
1554echo $ECHO_N "checking build system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001555if test "${ac_cv_build+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001556 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001557else
drh866108f2008-05-13 00:57:21 +00001558 ac_cv_build_alias=$build_alias
1559test -z "$ac_cv_build_alias" &&
1560 ac_cv_build_alias=`$ac_config_guess`
1561test -z "$ac_cv_build_alias" &&
1562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001564 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +00001565ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001568 { (exit 1); exit 1; }; }
1569
1570fi
drh866108f2008-05-13 00:57:21 +00001571echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572echo "${ECHO_T}$ac_cv_build" >&6
drh71eb93e2001-09-28 01:34:43 +00001573build=$ac_cv_build
drh866108f2008-05-13 00:57:21 +00001574build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001577
a.rottmann84e63352003-03-24 09:42:16 +00001578
drh866108f2008-05-13 00:57:21 +00001579echo "$as_me:$LINENO: checking host system type" >&5
1580echo $ECHO_N "checking host system type... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001581if test "${ac_cv_host+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001582 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001583else
drh866108f2008-05-13 00:57:21 +00001584 ac_cv_host_alias=$host_alias
1585test -z "$ac_cv_host_alias" &&
1586 ac_cv_host_alias=$ac_cv_build_alias
1587ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001590 { (exit 1); exit 1; }; }
1591
1592fi
drh866108f2008-05-13 00:57:21 +00001593echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594echo "${ECHO_T}$ac_cv_host" >&6
drh71eb93e2001-09-28 01:34:43 +00001595host=$ac_cv_host
drh866108f2008-05-13 00:57:21 +00001596host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
drh71eb93e2001-09-28 01:34:43 +00001599
a.rottmann84e63352003-03-24 09:42:16 +00001600
drh71eb93e2001-09-28 01:34:43 +00001601ac_ext=c
1602ac_cpp='$CPP $CPPFLAGS'
1603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1605ac_compiler_gnu=$ac_cv_c_compiler_gnu
1606if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1608set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001609echo "$as_me:$LINENO: checking for $ac_word" >&5
1610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001611if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001612 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001613else
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1616else
a.rottmann84e63352003-03-24 09:42:16 +00001617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618for as_dir in $PATH
1619do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh866108f2008-05-13 00:57:21 +00001625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001626 break 2
1627 fi
1628done
drh71eb93e2001-09-28 01:34:43 +00001629done
1630
1631fi
1632fi
1633CC=$ac_cv_prog_CC
1634if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001635 echo "$as_me:$LINENO: result: $CC" >&5
1636echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001637else
drh866108f2008-05-13 00:57:21 +00001638 echo "$as_me:$LINENO: result: no" >&5
1639echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001640fi
1641
1642fi
1643if test -z "$ac_cv_prog_CC"; then
1644 ac_ct_CC=$CC
1645 # Extract the first word of "gcc", so it can be a program name with args.
1646set dummy gcc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001647echo "$as_me:$LINENO: checking for $ac_word" >&5
1648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001650 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001651else
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654else
a.rottmann84e63352003-03-24 09:42:16 +00001655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656for as_dir in $PATH
1657do
1658 IFS=$as_save_IFS
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001662 ac_cv_prog_ac_ct_CC="gcc"
drh866108f2008-05-13 00:57:21 +00001663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001664 break 2
1665 fi
1666done
drh71eb93e2001-09-28 01:34:43 +00001667done
1668
1669fi
1670fi
1671ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672if test -n "$ac_ct_CC"; then
drh866108f2008-05-13 00:57:21 +00001673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001675else
drh866108f2008-05-13 00:57:21 +00001676 echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001678fi
1679
drh866108f2008-05-13 00:57:21 +00001680 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001681else
1682 CC="$ac_cv_prog_CC"
1683fi
1684
1685if test -z "$CC"; then
drh866108f2008-05-13 00:57:21 +00001686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00001688set dummy ${ac_tool_prefix}cc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001689echo "$as_me:$LINENO: checking for $ac_word" >&5
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001691if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001692 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001693else
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
a.rottmann84e63352003-03-24 09:42:16 +00001697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001704 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh866108f2008-05-13 00:57:21 +00001705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001706 break 2
1707 fi
1708done
drh71eb93e2001-09-28 01:34:43 +00001709done
1710
1711fi
1712fi
1713CC=$ac_cv_prog_CC
1714if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001715 echo "$as_me:$LINENO: result: $CC" >&5
1716echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001717else
drh866108f2008-05-13 00:57:21 +00001718 echo "$as_me:$LINENO: result: no" >&5
1719echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001720fi
1721
drh866108f2008-05-13 00:57:21 +00001722fi
1723if test -z "$ac_cv_prog_CC"; then
1724 ac_ct_CC=$CC
1725 # Extract the first word of "cc", so it can be a program name with args.
1726set dummy cc; ac_word=$2
1727echo "$as_me:$LINENO: checking for $ac_word" >&5
1728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734else
1735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736for as_dir in $PATH
1737do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="cc"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
a.rottmann84e63352003-03-24 09:42:16 +00001745 fi
drh866108f2008-05-13 00:57:21 +00001746done
1747done
1748
1749fi
1750fi
1751ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754echo "${ECHO_T}$ac_ct_CC" >&6
1755else
1756 echo "$as_me:$LINENO: result: no" >&5
1757echo "${ECHO_T}no" >&6
1758fi
1759
1760 CC=$ac_ct_CC
1761else
1762 CC="$ac_cv_prog_CC"
1763fi
1764
drh71eb93e2001-09-28 01:34:43 +00001765fi
1766if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args.
1768set dummy cc; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001769echo "$as_me:$LINENO: checking for $ac_word" >&5
1770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001771if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001772 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001773else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776else
1777 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00001778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1786 ac_prog_rejected=yes
1787 continue
1788 fi
1789 ac_cv_prog_CC="cc"
drh866108f2008-05-13 00:57:21 +00001790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001791 break 2
1792 fi
1793done
drh71eb93e2001-09-28 01:34:43 +00001794done
1795
1796if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy $ac_cv_prog_CC
1799 shift
1800 if test $# != 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1804 shift
a.rottmann84e63352003-03-24 09:42:16 +00001805 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00001806 fi
1807fi
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001812 echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001814else
drh866108f2008-05-13 00:57:21 +00001815 echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001817fi
1818
1819fi
1820if test -z "$CC"; then
1821 if test -n "$ac_tool_prefix"; then
drh866108f2008-05-13 00:57:21 +00001822 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001823 do
1824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001826echo "$as_me:$LINENO: checking for $ac_word" >&5
1827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001828if test "${ac_cv_prog_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001829 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001830else
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1833else
a.rottmann84e63352003-03-24 09:42:16 +00001834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835for as_dir in $PATH
1836do
1837 IFS=$as_save_IFS
1838 test -z "$as_dir" && as_dir=.
1839 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh866108f2008-05-13 00:57:21 +00001842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001843 break 2
1844 fi
1845done
drh71eb93e2001-09-28 01:34:43 +00001846done
1847
1848fi
1849fi
1850CC=$ac_cv_prog_CC
1851if test -n "$CC"; then
drh866108f2008-05-13 00:57:21 +00001852 echo "$as_me:$LINENO: result: $CC" >&5
1853echo "${ECHO_T}$CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001854else
drh866108f2008-05-13 00:57:21 +00001855 echo "$as_me:$LINENO: result: no" >&5
1856echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001857fi
1858
1859 test -n "$CC" && break
1860 done
1861fi
1862if test -z "$CC"; then
1863 ac_ct_CC=$CC
drh866108f2008-05-13 00:57:21 +00001864 for ac_prog in cl
drh71eb93e2001-09-28 01:34:43 +00001865do
1866 # Extract the first word of "$ac_prog", so it can be a program name with args.
1867set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00001868echo "$as_me:$LINENO: checking for $ac_word" >&5
1869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001870if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00001871 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00001872else
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1875else
a.rottmann84e63352003-03-24 09:42:16 +00001876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877for as_dir in $PATH
1878do
1879 IFS=$as_save_IFS
1880 test -z "$as_dir" && as_dir=.
1881 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00001882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00001883 ac_cv_prog_ac_ct_CC="$ac_prog"
drh866108f2008-05-13 00:57:21 +00001884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001885 break 2
1886 fi
1887done
drh71eb93e2001-09-28 01:34:43 +00001888done
1889
1890fi
1891fi
1892ac_ct_CC=$ac_cv_prog_ac_ct_CC
1893if test -n "$ac_ct_CC"; then
drh866108f2008-05-13 00:57:21 +00001894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895echo "${ECHO_T}$ac_ct_CC" >&6
drh71eb93e2001-09-28 01:34:43 +00001896else
drh866108f2008-05-13 00:57:21 +00001897 echo "$as_me:$LINENO: result: no" >&5
1898echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00001899fi
1900
1901 test -n "$ac_ct_CC" && break
1902done
1903
drh866108f2008-05-13 00:57:21 +00001904 CC=$ac_ct_CC
drh71eb93e2001-09-28 01:34:43 +00001905fi
1906
1907fi
1908
a.rottmann84e63352003-03-24 09:42:16 +00001909
drh866108f2008-05-13 00:57:21 +00001910test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00001911See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00001912echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00001913See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00001914 { (exit 1); exit 1; }; }
1915
1916# Provide some information about the compiler.
drh866108f2008-05-13 00:57:21 +00001917echo "$as_me:$LINENO:" \
1918 "checking for C compiler version" >&5
1919ac_compiler=`set X $ac_compile; echo $2`
1920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1921 (eval $ac_compiler --version </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001922 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001924 (exit $ac_status); }
drh866108f2008-05-13 00:57:21 +00001925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1926 (eval $ac_compiler -v </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001927 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001929 (exit $ac_status); }
drh866108f2008-05-13 00:57:21 +00001930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1931 (eval $ac_compiler -V </dev/null >&5) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001932 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001934 (exit $ac_status); }
1935
1936cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00001937/* confdefs.h. */
1938_ACEOF
1939cat confdefs.h >>conftest.$ac_ext
1940cat >>conftest.$ac_ext <<_ACEOF
1941/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00001942
1943int
1944main ()
1945{
1946
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951ac_clean_files_save=$ac_clean_files
drh866108f2008-05-13 00:57:21 +00001952ac_clean_files="$ac_clean_files a.out a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00001953# Try to create an executable without -o first, disregard a.out.
1954# It will help us diagnose broken compilers, and finding out an intuition
1955# of exeext.
drh866108f2008-05-13 00:57:21 +00001956echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1957echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1958ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1959if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1960 (eval $ac_link_default) 2>&5
drh71eb93e2001-09-28 01:34:43 +00001961 ac_status=$?
drh866108f2008-05-13 00:57:21 +00001962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00001963 (exit $ac_status); }; then
drh866108f2008-05-13 00:57:21 +00001964 # Find the output, starting from the most likely. This scheme is
1965# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1966# resort.
1967
1968# Be careful to initialize this variable, since it used to be cached.
1969# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1970ac_cv_exeext=
1971# b.out is created by i960 compilers.
1972for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
a.rottmann84e63352003-03-24 09:42:16 +00001973do
1974 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00001975 case $ac_file in
drh866108f2008-05-13 00:57:21 +00001976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1977 ;;
1978 conftest.$ac_ext )
1979 # This is the source file.
a.rottmann964dbb12004-02-26 19:47:42 +00001980 ;;
a.rottmann84e63352003-03-24 09:42:16 +00001981 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00001982 # We found the default executable, but exeext='' is most
1983 # certainly right.
1984 break;;
a.rottmann84e63352003-03-24 09:42:16 +00001985 *.* )
drh866108f2008-05-13 00:57:21 +00001986 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987 # FIXME: I believe we export ac_cv_exeext for Libtool,
1988 # but it would be cool to find out if it's true. Does anybody
1989 # maintain Libtool? --akim.
1990 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00001991 break;;
a.rottmann84e63352003-03-24 09:42:16 +00001992 * )
a.rottmann964dbb12004-02-26 19:47:42 +00001993 break;;
drh71eb93e2001-09-28 01:34:43 +00001994 esac
1995done
1996else
drh866108f2008-05-13 00:57:21 +00001997 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00001998sed 's/^/| /' conftest.$ac_ext >&5
1999
drh866108f2008-05-13 00:57:21 +00002000{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002001See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002002echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002003See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002004 { (exit 77); exit 77; }; }
2005fi
2006
2007ac_exeext=$ac_cv_exeext
drh866108f2008-05-13 00:57:21 +00002008echo "$as_me:$LINENO: result: $ac_file" >&5
2009echo "${ECHO_T}$ac_file" >&6
drh71eb93e2001-09-28 01:34:43 +00002010
drh866108f2008-05-13 00:57:21 +00002011# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002012# the compiler is broken, or we cross compile.
drh866108f2008-05-13 00:57:21 +00002013echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2014echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002015# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2016# If not cross compiling, check that we can run a simple program.
2017if test "$cross_compiling" != yes; then
2018 if { ac_try='./$ac_file'
drh866108f2008-05-13 00:57:21 +00002019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2020 (eval $ac_try) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002021 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002023 (exit $ac_status); }; }; then
2024 cross_compiling=no
2025 else
2026 if test "$cross_compiling" = maybe; then
2027 cross_compiling=yes
2028 else
drh866108f2008-05-13 00:57:21 +00002029 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002030If you meant to cross compile, use \`--host'.
2031See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002032echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002033If you meant to cross compile, use \`--host'.
2034See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002035 { (exit 1); exit 1; }; }
2036 fi
2037 fi
2038fi
drh866108f2008-05-13 00:57:21 +00002039echo "$as_me:$LINENO: result: yes" >&5
2040echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002041
drh866108f2008-05-13 00:57:21 +00002042rm -f a.out a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002043ac_clean_files=$ac_clean_files_save
drh866108f2008-05-13 00:57:21 +00002044# Check the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002045# the compiler is broken, or we cross compile.
drh866108f2008-05-13 00:57:21 +00002046echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2047echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2048echo "$as_me:$LINENO: result: $cross_compiling" >&5
2049echo "${ECHO_T}$cross_compiling" >&6
drh71eb93e2001-09-28 01:34:43 +00002050
drh866108f2008-05-13 00:57:21 +00002051echo "$as_me:$LINENO: checking for suffix of executables" >&5
2052echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054 (eval $ac_link) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002055 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002057 (exit $ac_status); }; then
2058 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2060# work properly (i.e., refer to `conftest.exe'), while it won't with
2061# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002062for ac_file in conftest.exe conftest conftest.*; do
2063 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002064 case $ac_file in
drh866108f2008-05-13 00:57:21 +00002065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
drh866108f2008-05-13 00:57:21 +00002067 export ac_cv_exeext
a.rottmann964dbb12004-02-26 19:47:42 +00002068 break;;
drh71eb93e2001-09-28 01:34:43 +00002069 * ) break;;
2070 esac
2071done
2072else
drh866108f2008-05-13 00:57:21 +00002073 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002074See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002075echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002076See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002077 { (exit 1); exit 1; }; }
2078fi
2079
2080rm -f conftest$ac_cv_exeext
drh866108f2008-05-13 00:57:21 +00002081echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2082echo "${ECHO_T}$ac_cv_exeext" >&6
drh71eb93e2001-09-28 01:34:43 +00002083
2084rm -f conftest.$ac_ext
2085EXEEXT=$ac_cv_exeext
2086ac_exeext=$EXEEXT
drh866108f2008-05-13 00:57:21 +00002087echo "$as_me:$LINENO: checking for suffix of object files" >&5
2088echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002089if test "${ac_cv_objext+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002090 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002091else
2092 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002093/* confdefs.h. */
2094_ACEOF
2095cat confdefs.h >>conftest.$ac_ext
2096cat >>conftest.$ac_ext <<_ACEOF
2097/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002098
2099int
2100main ()
2101{
2102
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107rm -f conftest.o conftest.obj
drh866108f2008-05-13 00:57:21 +00002108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00002110 ac_status=$?
drh866108f2008-05-13 00:57:21 +00002111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002112 (exit $ac_status); }; then
drh866108f2008-05-13 00:57:21 +00002113 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
drh71eb93e2001-09-28 01:34:43 +00002114 case $ac_file in
drh866108f2008-05-13 00:57:21 +00002115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
drh71eb93e2001-09-28 01:34:43 +00002116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2117 break;;
2118 esac
2119done
2120else
drh866108f2008-05-13 00:57:21 +00002121 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002122sed 's/^/| /' conftest.$ac_ext >&5
2123
drh866108f2008-05-13 00:57:21 +00002124{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002125See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00002126echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002127See \`config.log' for more details." >&2;}
drh71eb93e2001-09-28 01:34:43 +00002128 { (exit 1); exit 1; }; }
2129fi
2130
2131rm -f conftest.$ac_cv_objext conftest.$ac_ext
2132fi
drh866108f2008-05-13 00:57:21 +00002133echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2134echo "${ECHO_T}$ac_cv_objext" >&6
drh71eb93e2001-09-28 01:34:43 +00002135OBJEXT=$ac_cv_objext
2136ac_objext=$OBJEXT
drh866108f2008-05-13 00:57:21 +00002137echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2138echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002139if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002140 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002141else
2142 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002143/* confdefs.h. */
2144_ACEOF
2145cat confdefs.h >>conftest.$ac_ext
2146cat >>conftest.$ac_ext <<_ACEOF
2147/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002148
2149int
2150main ()
2151{
2152#ifndef __GNUC__
2153 choke me
2154#endif
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002163 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002182 ac_compiler_gnu=yes
2183else
drh866108f2008-05-13 00:57:21 +00002184 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002185sed 's/^/| /' conftest.$ac_ext >&5
2186
drh866108f2008-05-13 00:57:21 +00002187ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002188fi
drh866108f2008-05-13 00:57:21 +00002189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002190ac_cv_c_compiler_gnu=$ac_compiler_gnu
2191
2192fi
drh866108f2008-05-13 00:57:21 +00002193echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2194echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2195GCC=`test $ac_compiler_gnu = yes && echo yes`
drh71eb93e2001-09-28 01:34:43 +00002196ac_test_CFLAGS=${CFLAGS+set}
2197ac_save_CFLAGS=$CFLAGS
drh866108f2008-05-13 00:57:21 +00002198CFLAGS="-g"
2199echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2200echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002201if test "${ac_cv_prog_cc_g+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002202 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002203else
drh866108f2008-05-13 00:57:21 +00002204 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002205/* confdefs.h. */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002210
2211int
2212main ()
2213{
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002222 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00002241 ac_cv_prog_cc_g=yes
2242else
drh866108f2008-05-13 00:57:21 +00002243 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002244sed 's/^/| /' conftest.$ac_ext >&5
2245
drh866108f2008-05-13 00:57:21 +00002246ac_cv_prog_cc_g=no
drh71eb93e2001-09-28 01:34:43 +00002247fi
drh866108f2008-05-13 00:57:21 +00002248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002249fi
drh866108f2008-05-13 00:57:21 +00002250echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2251echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
drh71eb93e2001-09-28 01:34:43 +00002252if test "$ac_test_CFLAGS" = set; then
2253 CFLAGS=$ac_save_CFLAGS
2254elif test $ac_cv_prog_cc_g = yes; then
2255 if test "$GCC" = yes; then
2256 CFLAGS="-g -O2"
2257 else
2258 CFLAGS="-g"
2259 fi
2260else
2261 if test "$GCC" = yes; then
2262 CFLAGS="-O2"
2263 else
2264 CFLAGS=
2265 fi
2266fi
drh866108f2008-05-13 00:57:21 +00002267echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2268echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2269if test "${ac_cv_prog_cc_stdc+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00002271else
drh866108f2008-05-13 00:57:21 +00002272 ac_cv_prog_cc_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00002273ac_save_CC=$CC
2274cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
2280#include <stdarg.h>
2281#include <stdio.h>
2282#include <sys/types.h>
2283#include <sys/stat.h>
2284/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2285struct buf { int x; };
2286FILE * (*rcsopen) (struct buf *, struct stat *, int);
2287static char *e (p, i)
2288 char **p;
2289 int i;
2290{
2291 return p[i];
2292}
2293static char *f (char * (*g) (char **, int), char **p, ...)
2294{
2295 char *s;
2296 va_list v;
2297 va_start (v,p);
2298 s = g (p, va_arg (v,int));
2299 va_end (v);
2300 return s;
2301}
a.rottmann964dbb12004-02-26 19:47:42 +00002302
2303/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2304 function prototypes and stuff, but not '\xHH' hex character constants.
2305 These don't provoke an error unfortunately, instead are silently treated
drh866108f2008-05-13 00:57:21 +00002306 as 'x'. The following induces an error, until -std1 is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00002307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2308 array size at least. It's necessary to write '\x00'==0 to get something
drh866108f2008-05-13 00:57:21 +00002309 that's true only with -std1. */
a.rottmann964dbb12004-02-26 19:47:42 +00002310int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2311
a.rottmann84e63352003-03-24 09:42:16 +00002312int test (int i, double x);
2313struct s1 {int (*f) (int a);};
2314struct s2 {int (*f) (double a);};
2315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2316int argc;
2317char **argv;
2318int
2319main ()
2320{
2321return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2322 ;
2323 return 0;
2324}
2325_ACEOF
drh866108f2008-05-13 00:57:21 +00002326# Don't try gcc -ansi; that turns off useful extensions and
2327# breaks some systems' header files.
2328# AIX -qlanglvl=ansi
2329# Ultrix and OSF/1 -std1
2330# HP-UX 10.20 and later -Ae
2331# HP-UX older versions -Aa -D_HPUX_SOURCE
2332# SVR4 -Xc -D__EXTENSIONS__
2333for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00002334do
2335 CC="$ac_save_CC $ac_arg"
2336 rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00002337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00002339 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002340 grep -v '^ *+' conftest.er1 >conftest.err
2341 rm -f conftest.er1
2342 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -z "$ac_c_werror_flag"
2346 || test ! -s conftest.err'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348 (eval $ac_try) 2>&5
2349 ac_status=$?
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2358 ac_cv_prog_cc_stdc=$ac_arg
2359break
a.rottmann84e63352003-03-24 09:42:16 +00002360else
drh866108f2008-05-13 00:57:21 +00002361 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002362sed 's/^/| /' conftest.$ac_ext >&5
2363
2364fi
drh866108f2008-05-13 00:57:21 +00002365rm -f conftest.err conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002366done
drh866108f2008-05-13 00:57:21 +00002367rm -f conftest.$ac_ext conftest.$ac_objext
a.rottmann84e63352003-03-24 09:42:16 +00002368CC=$ac_save_CC
2369
2370fi
drh866108f2008-05-13 00:57:21 +00002371
2372case "x$ac_cv_prog_cc_stdc" in
2373 x|xno)
2374 echo "$as_me:$LINENO: result: none needed" >&5
2375echo "${ECHO_T}none needed" >&6 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002376 *)
drh866108f2008-05-13 00:57:21 +00002377 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2378echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2379 CC="$CC $ac_cv_prog_cc_stdc" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002380esac
2381
drh866108f2008-05-13 00:57:21 +00002382# Some people use a C++ compiler to compile C. Since we use `exit',
2383# in C++ we need to declare it. In case someone uses the same compiler
2384# for both compiling C and C++ we need to have the C++ compiler decide
2385# the declaration of exit, since it's the most demanding environment.
2386cat >conftest.$ac_ext <<_ACEOF
2387#ifndef __cplusplus
2388 choke me
2389#endif
2390_ACEOF
2391rm -f conftest.$ac_objext
2392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2393 (eval $ac_compile) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 for ac_declaration in \
2414 '' \
2415 'extern "C" void std::exit (int) throw (); using std::exit;' \
2416 'extern "C" void std::exit (int); using std::exit;' \
2417 'extern "C" void exit (int) throw ();' \
2418 'extern "C" void exit (int);' \
2419 'void exit (int);'
2420do
2421 cat >conftest.$ac_ext <<_ACEOF
2422/* confdefs.h. */
2423_ACEOF
2424cat confdefs.h >>conftest.$ac_ext
2425cat >>conftest.$ac_ext <<_ACEOF
2426/* end confdefs.h. */
2427$ac_declaration
2428#include <stdlib.h>
2429int
2430main ()
2431{
2432exit (42);
2433 ;
2434 return 0;
2435}
2436_ACEOF
2437rm -f conftest.$ac_objext
2438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2439 (eval $ac_compile) 2>conftest.er1
2440 ac_status=$?
2441 grep -v '^ *+' conftest.er1 >conftest.err
2442 rm -f conftest.er1
2443 cat conftest.err >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); } &&
2446 { ac_try='test -z "$ac_c_werror_flag"
2447 || test ! -s conftest.err'
2448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 (eval $ac_try) 2>&5
2450 ac_status=$?
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }; } &&
2453 { ac_try='test -s conftest.$ac_objext'
2454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455 (eval $ac_try) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; }; then
2459 :
2460else
2461 echo "$as_me: failed program was:" >&5
2462sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00002463
drh866108f2008-05-13 00:57:21 +00002464continue
2465fi
2466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2467 cat >conftest.$ac_ext <<_ACEOF
2468/* confdefs.h. */
2469_ACEOF
2470cat confdefs.h >>conftest.$ac_ext
2471cat >>conftest.$ac_ext <<_ACEOF
2472/* end confdefs.h. */
2473$ac_declaration
2474int
2475main ()
2476{
2477exit (42);
2478 ;
2479 return 0;
2480}
2481_ACEOF
2482rm -f conftest.$ac_objext
2483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2484 (eval $ac_compile) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag"
2492 || test ! -s conftest.err'
2493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 (eval $ac_try) 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 break
2505else
2506 echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509fi
2510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511done
2512rm -f conftest*
2513if test -n "$ac_declaration"; then
2514 echo '#ifdef __cplusplus' >>confdefs.h
2515 echo $ac_declaration >>confdefs.h
2516 echo '#endif' >>confdefs.h
2517fi
2518
2519else
2520 echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523fi
2524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002525ac_ext=c
2526ac_cpp='$CPP $CPPFLAGS'
2527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530
drh866108f2008-05-13 00:57:21 +00002531echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2532echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2533if test "${lt_cv_path_SED+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002535else
drh866108f2008-05-13 00:57:21 +00002536 # Loop through the user's path and test for sed and gsed.
2537# Then use that list of sed's as ones to test for truncation.
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00002539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
drh866108f2008-05-13 00:57:21 +00002543 for lt_ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002544 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002545 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2546 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2547 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00002548 done
2549 done
2550done
mlcreech636a9952008-05-05 22:52:56 +00002551IFS=$as_save_IFS
drh866108f2008-05-13 00:57:21 +00002552lt_ac_max=0
2553lt_ac_count=0
2554# Add /usr/xpg4/bin/sed as it is typically found on Solaris
2555# along with /bin/sed that truncates output.
2556for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2557 test ! -f $lt_ac_sed && continue
2558 cat /dev/null > conftest.in
2559 lt_ac_count=0
2560 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2561 # Check for GNU sed and select it if it is found.
2562 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2563 lt_cv_path_SED=$lt_ac_sed
2564 break
a.rottmann9bc8b932004-02-29 15:18:31 +00002565 fi
drh866108f2008-05-13 00:57:21 +00002566 while true; do
2567 cat conftest.in conftest.in >conftest.tmp
2568 mv conftest.tmp conftest.in
2569 cp conftest.in conftest.nl
2570 echo >>conftest.nl
2571 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2572 cmp -s conftest.out conftest.nl || break
2573 # 10000 chars as input seems more than enough
2574 test $lt_ac_count -gt 10 && break
2575 lt_ac_count=`expr $lt_ac_count + 1`
2576 if test $lt_ac_count -gt $lt_ac_max; then
2577 lt_ac_max=$lt_ac_count
2578 lt_cv_path_SED=$lt_ac_sed
2579 fi
2580 done
2581done
a.rottmann84e63352003-03-24 09:42:16 +00002582
mlcreech636a9952008-05-05 22:52:56 +00002583fi
drh866108f2008-05-13 00:57:21 +00002584
2585SED=$lt_cv_path_SED
2586
2587echo "$as_me:$LINENO: result: $SED" >&5
2588echo "${ECHO_T}$SED" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002589
mlcreech636a9952008-05-05 22:52:56 +00002590test -z "$SED" && SED=sed
2591Xsed="$SED -e 1s/^X//"
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
drh866108f2008-05-13 00:57:21 +00002603echo "$as_me:$LINENO: checking for egrep" >&5
2604echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2605if test "${ac_cv_prog_egrep+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00002607else
drh866108f2008-05-13 00:57:21 +00002608 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2609 then ac_cv_prog_egrep='grep -E'
2610 else ac_cv_prog_egrep='egrep'
a.rottmann9bc8b932004-02-29 15:18:31 +00002611 fi
mlcreech94984912008-03-04 19:03:08 +00002612fi
drh866108f2008-05-13 00:57:21 +00002613echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2614echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2615 EGREP=$ac_cv_prog_egrep
mlcreech94984912008-03-04 19:03:08 +00002616
2617
drh866108f2008-05-13 00:57:21 +00002618echo "$as_me:$LINENO: checking for fgrep" >&5
2619echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
2620if test "${ac_cv_prog_fgrep+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech94984912008-03-04 19:03:08 +00002622else
drh866108f2008-05-13 00:57:21 +00002623 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
2624 then ac_cv_prog_fgrep='grep -F'
2625 else ac_cv_prog_fgrep='fgrep'
mlcreech94984912008-03-04 19:03:08 +00002626 fi
mlcreech94984912008-03-04 19:03:08 +00002627fi
drh866108f2008-05-13 00:57:21 +00002628echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
2629echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
2630 FGREP=$ac_cv_prog_fgrep
mlcreech636a9952008-05-05 22:52:56 +00002631
2632
2633test -z "$GREP" && GREP=grep
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
a.rottmann9bc8b932004-02-29 15:18:31 +00002650
2651
a.rottmann84e63352003-03-24 09:42:16 +00002652
drh866108f2008-05-13 00:57:21 +00002653# Check whether --with-gnu-ld or --without-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00002654if test "${with_gnu_ld+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002655 withval="$with_gnu_ld"
2656 test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00002657else
2658 with_gnu_ld=no
drh866108f2008-05-13 00:57:21 +00002659fi;
drh71eb93e2001-09-28 01:34:43 +00002660ac_prog=ld
2661if test "$GCC" = yes; then
2662 # Check if gcc -print-prog-name=ld gives a path.
drh866108f2008-05-13 00:57:21 +00002663 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2664echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002665 case $host in
2666 *-*-mingw*)
2667 # gcc leaves a trailing carriage return which upsets mingw
2668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2669 *)
2670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2671 esac
2672 case $ac_prog in
2673 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00002674 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00002675 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00002676 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00002677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00002680 done
2681 test -z "$LD" && LD="$ac_prog"
2682 ;;
2683 "")
2684 # If it fails, then pretend we aren't using GCC.
2685 ac_prog=ld
2686 ;;
2687 *)
2688 # If it is relative, then search for the first ld in PATH.
2689 with_gnu_ld=unknown
2690 ;;
2691 esac
2692elif test "$with_gnu_ld" = yes; then
drh866108f2008-05-13 00:57:21 +00002693 echo "$as_me:$LINENO: checking for GNU ld" >&5
2694echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002695else
drh866108f2008-05-13 00:57:21 +00002696 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2697echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002698fi
2699if test "${lt_cv_path_LD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002700 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002701else
2702 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00002703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00002704 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00002705 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002706 test -z "$ac_dir" && ac_dir=.
2707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2708 lt_cv_path_LD="$ac_dir/$ac_prog"
2709 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00002710 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00002711 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00002712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2713 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002714 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002715 ;;
2716 *)
drh71eb93e2001-09-28 01:34:43 +00002717 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00002718 ;;
2719 esac
drh71eb93e2001-09-28 01:34:43 +00002720 fi
2721 done
a.rottmann9bc8b932004-02-29 15:18:31 +00002722 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002723else
2724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2725fi
2726fi
2727
2728LD="$lt_cv_path_LD"
2729if test -n "$LD"; then
drh866108f2008-05-13 00:57:21 +00002730 echo "$as_me:$LINENO: result: $LD" >&5
2731echo "${ECHO_T}$LD" >&6
drh71eb93e2001-09-28 01:34:43 +00002732else
drh866108f2008-05-13 00:57:21 +00002733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +00002735fi
drh866108f2008-05-13 00:57:21 +00002736test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2737echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002738 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +00002739echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2740echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002741if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002742 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002743else
vapier7f19c022007-02-17 14:46:31 +00002744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00002745case `$LD -v 2>&1 </dev/null` in
2746*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00002747 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00002748 ;;
2749*)
drh71eb93e2001-09-28 01:34:43 +00002750 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00002751 ;;
2752esac
drh71eb93e2001-09-28 01:34:43 +00002753fi
drh866108f2008-05-13 00:57:21 +00002754echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2755echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
drh71eb93e2001-09-28 01:34:43 +00002756with_gnu_ld=$lt_cv_prog_gnu_ld
2757
a.rottmann84e63352003-03-24 09:42:16 +00002758
drh71eb93e2001-09-28 01:34:43 +00002759
mlcreech636a9952008-05-05 22:52:56 +00002760
2761
2762
2763
2764
2765
drh866108f2008-05-13 00:57:21 +00002766echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
2767echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002768if test "${lt_cv_path_NM+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002769 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002770else
2771 if test -n "$NM"; then
2772 # Let the user override the test.
2773 lt_cv_path_NM="$NM"
2774else
vapier7f19c022007-02-17 14:46:31 +00002775 lt_nm_to_check="${ac_tool_prefix}nm"
2776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2777 lt_nm_to_check="$lt_nm_to_check nm"
2778 fi
2779 for lt_tmp_nm in $lt_nm_to_check; do
2780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2782 IFS="$lt_save_ifs"
2783 test -z "$ac_dir" && ac_dir=.
2784 tmp_nm="$ac_dir/$lt_tmp_nm"
2785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2786 # Check to see if the nm accepts a BSD-compat flag.
2787 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2788 # nm: unknown option "B" ignored
2789 # Tru64's nm complains that /dev/null is an invalid object file
2790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2791 */dev/null* | *'Invalid file or object type'*)
2792 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00002793 break
2794 ;;
2795 *)
vapier7f19c022007-02-17 14:46:31 +00002796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2797 */dev/null*)
2798 lt_cv_path_NM="$tmp_nm -p"
2799 break
2800 ;;
2801 *)
2802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2803 continue # so that we can try to find one that supports BSD flags
2804 ;;
2805 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002806 ;;
2807 esac
vapier7f19c022007-02-17 14:46:31 +00002808 fi
2809 done
2810 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00002811 done
mlcreech636a9952008-05-05 22:52:56 +00002812 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00002813fi
2814fi
drh866108f2008-05-13 00:57:21 +00002815echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2816echo "${ECHO_T}$lt_cv_path_NM" >&6
mlcreech636a9952008-05-05 22:52:56 +00002817if test "$lt_cv_path_NM" != "no"; then
2818 NM="$lt_cv_path_NM"
2819else
2820 # Didn't find any BSD compatible name lister, look for dumpbin.
2821 if test -n "$ac_tool_prefix"; then
2822 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2823 do
2824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00002826echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002828if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002829 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002830else
2831 if test -n "$DUMPBIN"; then
2832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00002841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh866108f2008-05-13 00:57:21 +00002842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00002843 break 2
2844 fi
2845done
2846done
a.rottmann84e63352003-03-24 09:42:16 +00002847
mlcreech636a9952008-05-05 22:52:56 +00002848fi
2849fi
2850DUMPBIN=$ac_cv_prog_DUMPBIN
2851if test -n "$DUMPBIN"; then
drh866108f2008-05-13 00:57:21 +00002852 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
2853echo "${ECHO_T}$DUMPBIN" >&6
mlcreech636a9952008-05-05 22:52:56 +00002854else
drh866108f2008-05-13 00:57:21 +00002855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00002857fi
2858
mlcreech636a9952008-05-05 22:52:56 +00002859 test -n "$DUMPBIN" && break
2860 done
2861fi
2862if test -z "$DUMPBIN"; then
2863 ac_ct_DUMPBIN=$DUMPBIN
2864 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
2865do
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00002868echo "$as_me:$LINENO: checking for $ac_word" >&5
2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002870if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002871 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002872else
2873 if test -n "$ac_ct_DUMPBIN"; then
2874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00002882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00002883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh866108f2008-05-13 00:57:21 +00002884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00002885 break 2
2886 fi
2887done
2888done
mlcreech636a9952008-05-05 22:52:56 +00002889
2890fi
2891fi
2892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
2893if test -n "$ac_ct_DUMPBIN"; then
drh866108f2008-05-13 00:57:21 +00002894 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
2895echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
mlcreech636a9952008-05-05 22:52:56 +00002896else
drh866108f2008-05-13 00:57:21 +00002897 echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00002899fi
2900
mlcreech636a9952008-05-05 22:52:56 +00002901 test -n "$ac_ct_DUMPBIN" && break
2902done
drh866108f2008-05-13 00:57:21 +00002903test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
mlcreech636a9952008-05-05 22:52:56 +00002904
drh866108f2008-05-13 00:57:21 +00002905 DUMPBIN=$ac_ct_DUMPBIN
mlcreech636a9952008-05-05 22:52:56 +00002906fi
2907
2908
2909 if test "$DUMPBIN" != ":"; then
2910 NM="$DUMPBIN"
2911 fi
2912fi
2913test -z "$NM" && NM=nm
2914
2915
2916
2917
2918
2919
drh866108f2008-05-13 00:57:21 +00002920echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
2921echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002922if test "${lt_cv_nm_interface+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002923 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002924else
2925 lt_cv_nm_interface="BSD nm"
2926 echo "int some_variable = 0;" > conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +00002927 (eval echo "\"\$as_me:2927: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002928 (eval "$ac_compile" 2>conftest.err)
2929 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002930 (eval echo "\"\$as_me:2930: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002931 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
2932 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00002933 (eval echo "\"\$as_me:2933: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00002934 cat conftest.out >&5
2935 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
2936 lt_cv_nm_interface="MS dumpbin"
2937 fi
2938 rm -f conftest*
2939fi
drh866108f2008-05-13 00:57:21 +00002940echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
2941echo "${ECHO_T}$lt_cv_nm_interface" >&6
mlcreech636a9952008-05-05 22:52:56 +00002942
drh866108f2008-05-13 00:57:21 +00002943echo "$as_me:$LINENO: checking whether ln -s works" >&5
2944echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00002945LN_S=$as_ln_s
2946if test "$LN_S" = "ln -s"; then
drh866108f2008-05-13 00:57:21 +00002947 echo "$as_me:$LINENO: result: yes" >&5
2948echo "${ECHO_T}yes" >&6
drh71eb93e2001-09-28 01:34:43 +00002949else
drh866108f2008-05-13 00:57:21 +00002950 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2951echo "${ECHO_T}no, using $LN_S" >&6
drh71eb93e2001-09-28 01:34:43 +00002952fi
2953
mlcreech636a9952008-05-05 22:52:56 +00002954# find the maximum length of command line arguments
drh866108f2008-05-13 00:57:21 +00002955echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
2956echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002957if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh866108f2008-05-13 00:57:21 +00002958 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00002959else
2960 i=0
2961 teststring="ABCD"
2962
2963 case $build_os in
2964 msdosdjgpp*)
2965 # On DJGPP, this test can blow up pretty badly due to problems in libc
2966 # (any single argument exceeding 2000 bytes causes a buffer overrun
2967 # during glob expansion). Even if it were fixed, the result of this
2968 # check would be larger than it should be.
2969 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2970 ;;
2971
2972 gnu*)
2973 # Under GNU Hurd, this test is not required because there is
2974 # no limit to the length of command line arguments.
2975 # Libtool will interpret -1 as no limit whatsoever
2976 lt_cv_sys_max_cmd_len=-1;
2977 ;;
2978
2979 cygwin* | mingw*)
2980 # On Win9x/ME, this test blows up -- it succeeds, but takes
2981 # about 5 minutes as the teststring grows exponentially.
2982 # Worse, since 9x/ME are not pre-emptively multitasking,
2983 # you end up with a "frozen" computer, even though with patience
2984 # the test eventually succeeds (with a max line length of 256k).
2985 # Instead, let's just punt: use the minimum linelength reported by
2986 # all of the supported platforms: 8192 (on NT/2K/XP).
2987 lt_cv_sys_max_cmd_len=8192;
2988 ;;
2989
2990 amigaos*)
2991 # On AmigaOS with pdksh, this test takes hours, literally.
2992 # So we just punt and use a minimum line length of 8192.
2993 lt_cv_sys_max_cmd_len=8192;
2994 ;;
2995
2996 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2997 # This has been around since 386BSD, at least. Likely further.
2998 if test -x /sbin/sysctl; then
2999 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3000 elif test -x /usr/sbin/sysctl; then
3001 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3002 else
3003 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3004 fi
3005 # And add a safety zone
3006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3008 ;;
3009
3010 interix*)
3011 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3012 lt_cv_sys_max_cmd_len=196608
3013 ;;
3014
3015 osf*)
3016 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3017 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3018 # nice to cause kernel panics so lets avoid the loop below.
3019 # First set a reasonable default.
3020 lt_cv_sys_max_cmd_len=16384
3021 #
3022 if test -x /sbin/sysconfig; then
3023 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3024 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3025 esac
3026 fi
3027 ;;
3028 sco3.2v5*)
3029 lt_cv_sys_max_cmd_len=102400
3030 ;;
3031 sysv5* | sco5v6* | sysv4.2uw2*)
3032 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3033 if test -n "$kargmax"; then
3034 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3035 else
3036 lt_cv_sys_max_cmd_len=32768
3037 fi
3038 ;;
3039 *)
3040 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3041 if test -n "$lt_cv_sys_max_cmd_len"; then
3042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3044 else
3045 # Make teststring a little bigger before we do anything with it.
3046 # a 1K string should be a reasonable start.
3047 for i in 1 2 3 4 5 6 7 8 ; do
3048 teststring=$teststring$teststring
3049 done
3050 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3051 # If test is not a shell built-in, we'll probably end up computing a
3052 # maximum length that is only half of the actual maximum length, but
3053 # we can't tell.
3054 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3055 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3056 test $i != 17 # 1/2 MB should be enough
3057 do
3058 i=`expr $i + 1`
3059 teststring=$teststring$teststring
3060 done
3061 # Only check the string length outside the loop.
3062 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3063 teststring=
3064 # Add a significant safety factor because C++ compilers can tack on
3065 # massive amounts of additional arguments before passing them to the
3066 # linker. It appears as though 1/2 is a usable value.
3067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3068 fi
3069 ;;
3070 esac
3071
3072fi
3073
3074if test -n $lt_cv_sys_max_cmd_len ; then
drh866108f2008-05-13 00:57:21 +00003075 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3076echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
mlcreech636a9952008-05-05 22:52:56 +00003077else
drh866108f2008-05-13 00:57:21 +00003078 echo "$as_me:$LINENO: result: none" >&5
3079echo "${ECHO_T}none" >&6
mlcreech636a9952008-05-05 22:52:56 +00003080fi
3081max_cmd_len=$lt_cv_sys_max_cmd_len
3082
3083
3084
3085
3086
3087
3088: ${CP="cp -f"}
3089: ${MV="mv -f"}
3090: ${RM="rm -f"}
3091
drh866108f2008-05-13 00:57:21 +00003092echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3093echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003094# Try some XSI features
3095xsi_shell=no
3096( _lt_dummy="a/b/c"
3097 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3098 = c,a/b,, \
3099 && eval 'test $(( 1 + 1 )) -eq 2 \
3100 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3101 && xsi_shell=yes
drh866108f2008-05-13 00:57:21 +00003102echo "$as_me:$LINENO: result: $xsi_shell" >&5
3103echo "${ECHO_T}$xsi_shell" >&6
mlcreech636a9952008-05-05 22:52:56 +00003104
3105
drh866108f2008-05-13 00:57:21 +00003106echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3107echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003108lt_shell_append=no
3109( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3110 >/dev/null 2>&1 \
3111 && lt_shell_append=yes
drh866108f2008-05-13 00:57:21 +00003112echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3113echo "${ECHO_T}$lt_shell_append" >&6
mlcreech636a9952008-05-05 22:52:56 +00003114
3115
3116if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3117 lt_unset=unset
3118else
3119 lt_unset=false
3120fi
3121
3122
3123
3124
3125
3126# test EBCDIC or ASCII
3127case `echo X|tr X '\101'` in
3128 A) # ASCII based system
3129 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3130 lt_SP2NL='tr \040 \012'
3131 lt_NL2SP='tr \015\012 \040\040'
3132 ;;
3133 *) # EBCDIC based system
3134 lt_SP2NL='tr \100 \n'
3135 lt_NL2SP='tr \r\n \100\100'
3136 ;;
3137esac
3138
3139
3140
3141
3142
3143
3144
3145
3146
drh866108f2008-05-13 00:57:21 +00003147echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3148echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003149if test "${lt_cv_ld_reload_flag+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003150 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003151else
3152 lt_cv_ld_reload_flag='-r'
3153fi
drh866108f2008-05-13 00:57:21 +00003154echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3155echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
mlcreech636a9952008-05-05 22:52:56 +00003156reload_flag=$lt_cv_ld_reload_flag
3157case $reload_flag in
3158"" | " "*) ;;
3159*) reload_flag=" $reload_flag" ;;
3160esac
3161reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162case $host_os in
3163 darwin*)
3164 if test "$GCC" = yes; then
3165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3166 else
3167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3168 fi
3169 ;;
3170esac
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
drh866108f2008-05-13 00:57:21 +00003181echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3182echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00003183if test "${lt_cv_deplibs_check_method+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003184 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00003185else
3186 lt_cv_file_magic_cmd='$MAGIC_CMD'
3187lt_cv_file_magic_test_file=
3188lt_cv_deplibs_check_method='unknown'
3189# Need to set the preceding variable on all platforms that support
3190# interlibrary dependencies.
3191# 'none' -- dependencies not supported.
3192# `unknown' -- same as none, but documents that we really don't know.
3193# 'pass_all' -- all dependencies passed with no checks.
3194# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00003195# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00003196# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00003197# If you have `file' or equivalent on your system and you're not sure
3198# whether `pass_all' will *always* work, you probably want this one.
3199
3200case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00003201aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00003202 lt_cv_deplibs_check_method=pass_all
3203 ;;
3204
3205beos*)
3206 lt_cv_deplibs_check_method=pass_all
3207 ;;
3208
vapier7f19c022007-02-17 14:46:31 +00003209bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00003210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3211 lt_cv_file_magic_cmd='/usr/bin/file -L'
3212 lt_cv_file_magic_test_file=/shlib/libc.so
3213 ;;
3214
a.rottmann9bc8b932004-02-29 15:18:31 +00003215cygwin*)
vapier7f19c022007-02-17 14:46:31 +00003216 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00003217 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00003218 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00003219 ;;
3220
3221mingw* | pw32*)
3222 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00003223 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3224 # unless we find 'file', for example because we are cross-compiling.
3225 if ( file / ) >/dev/null 2>&1; then
3226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3227 lt_cv_file_magic_cmd='func_win32_libid'
3228 else
3229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3230 lt_cv_file_magic_cmd='$OBJDUMP -f'
3231 fi
drh71eb93e2001-09-28 01:34:43 +00003232 ;;
3233
3234darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003235 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003236 ;;
3237
mlcreech636a9952008-05-05 22:52:56 +00003238freebsd* | dragonfly*)
3239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00003240 case $host_cpu in
3241 i*86 )
3242 # Not sure whether the presence of OpenBSD here was a mistake.
3243 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00003244 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 +00003245 lt_cv_file_magic_cmd=/usr/bin/file
3246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3247 ;;
3248 esac
3249 else
3250 lt_cv_deplibs_check_method=pass_all
3251 fi
3252 ;;
3253
3254gnu*)
3255 lt_cv_deplibs_check_method=pass_all
3256 ;;
3257
a.rottmann9bc8b932004-02-29 15:18:31 +00003258hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00003259 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00003260 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00003261 ia64*)
3262 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3263 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3264 ;;
3265 hppa*64*)
3266 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]'
3267 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3268 ;;
3269 *)
3270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3271 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3272 ;;
3273 esac
drh71eb93e2001-09-28 01:34:43 +00003274 ;;
3275
mlcreech636a9952008-05-05 22:52:56 +00003276interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00003277 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3279 ;;
3280
a.rottmann84e63352003-03-24 09:42:16 +00003281irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003282 case $LD in
3283 *-32|*"-32 ") libmagic=32-bit;;
3284 *-n32|*"-n32 ") libmagic=N32;;
3285 *-64|*"-64 ") libmagic=64-bit;;
3286 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00003287 esac
drh71eb93e2001-09-28 01:34:43 +00003288 lt_cv_deplibs_check_method=pass_all
3289 ;;
3290
3291# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00003292linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00003293 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00003294 ;;
3295
vapier7f19c022007-02-17 14:46:31 +00003296netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00003297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003299 else
a.rottmann9bc8b932004-02-29 15:18:31 +00003300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00003301 fi
3302 ;;
3303
3304newos6*)
3305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3306 lt_cv_file_magic_cmd=/usr/bin/file
3307 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3308 ;;
3309
mlcreech636a9952008-05-05 22:52:56 +00003310*nto* | *qnx*)
3311 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00003312 ;;
3313
a.rottmann84e63352003-03-24 09:42:16 +00003314openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00003315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00003316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003317 else
vapier7f19c022007-02-17 14:46:31 +00003318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00003319 fi
drh71eb93e2001-09-28 01:34:43 +00003320 ;;
3321
3322osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00003323 lt_cv_deplibs_check_method=pass_all
3324 ;;
3325
mlcreech636a9952008-05-05 22:52:56 +00003326rdos*)
3327 lt_cv_deplibs_check_method=pass_all
3328 ;;
3329
drh71eb93e2001-09-28 01:34:43 +00003330solaris*)
3331 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00003332 ;;
3333
mlcreech636a9952008-05-05 22:52:56 +00003334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3335 lt_cv_deplibs_check_method=pass_all
3336 ;;
3337
vapier7f19c022007-02-17 14:46:31 +00003338sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00003339 case $host_vendor in
3340 motorola)
3341 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]'
3342 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3343 ;;
3344 ncr)
3345 lt_cv_deplibs_check_method=pass_all
3346 ;;
3347 sequent)
3348 lt_cv_file_magic_cmd='/bin/file'
3349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3350 ;;
3351 sni)
3352 lt_cv_file_magic_cmd='/bin/file'
3353 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3354 lt_cv_file_magic_test_file=/lib/libc.so
3355 ;;
a.rottmann84e63352003-03-24 09:42:16 +00003356 siemens)
3357 lt_cv_deplibs_check_method=pass_all
3358 ;;
vapier7f19c022007-02-17 14:46:31 +00003359 pc)
3360 lt_cv_deplibs_check_method=pass_all
3361 ;;
drh71eb93e2001-09-28 01:34:43 +00003362 esac
3363 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003364
mlcreech636a9952008-05-05 22:52:56 +00003365tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00003366 lt_cv_deplibs_check_method=pass_all
3367 ;;
drh71eb93e2001-09-28 01:34:43 +00003368esac
3369
3370fi
drh866108f2008-05-13 00:57:21 +00003371echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3372echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
drh71eb93e2001-09-28 01:34:43 +00003373file_magic_cmd=$lt_cv_file_magic_cmd
3374deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00003375test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00003376
drh71eb93e2001-09-28 01:34:43 +00003377
drh71eb93e2001-09-28 01:34:43 +00003378
drh71eb93e2001-09-28 01:34:43 +00003379
mlcreech636a9952008-05-05 22:52:56 +00003380
3381
3382
3383
3384
3385
3386
3387
3388if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3390set dummy ${ac_tool_prefix}ar; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003391echo "$as_me:$LINENO: checking for $ac_word" >&5
3392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003393if test "${ac_cv_prog_AR+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003394 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003395else
3396 if test -n "$AR"; then
3397 ac_cv_prog_AR="$AR" # Let the user override the test.
3398else
3399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400for as_dir in $PATH
3401do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003406 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh866108f2008-05-13 00:57:21 +00003407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003408 break 2
3409 fi
3410done
3411done
mlcreech636a9952008-05-05 22:52:56 +00003412
3413fi
3414fi
3415AR=$ac_cv_prog_AR
3416if test -n "$AR"; then
drh866108f2008-05-13 00:57:21 +00003417 echo "$as_me:$LINENO: result: $AR" >&5
3418echo "${ECHO_T}$AR" >&6
mlcreech636a9952008-05-05 22:52:56 +00003419else
drh866108f2008-05-13 00:57:21 +00003420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003422fi
3423
mlcreech636a9952008-05-05 22:52:56 +00003424fi
3425if test -z "$ac_cv_prog_AR"; then
3426 ac_ct_AR=$AR
3427 # Extract the first word of "ar", so it can be a program name with args.
3428set dummy ar; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003429echo "$as_me:$LINENO: checking for $ac_word" >&5
3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003431if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003432 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003433else
3434 if test -n "$ac_ct_AR"; then
3435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3436else
3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438for as_dir in $PATH
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003444 ac_cv_prog_ac_ct_AR="ar"
drh866108f2008-05-13 00:57:21 +00003445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003446 break 2
3447 fi
3448done
3449done
mlcreech636a9952008-05-05 22:52:56 +00003450
drh866108f2008-05-13 00:57:21 +00003451 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
mlcreech636a9952008-05-05 22:52:56 +00003452fi
3453fi
3454ac_ct_AR=$ac_cv_prog_ac_ct_AR
3455if test -n "$ac_ct_AR"; then
drh866108f2008-05-13 00:57:21 +00003456 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3457echo "${ECHO_T}$ac_ct_AR" >&6
mlcreech636a9952008-05-05 22:52:56 +00003458else
drh866108f2008-05-13 00:57:21 +00003459 echo "$as_me:$LINENO: result: no" >&5
3460echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003461fi
3462
drh866108f2008-05-13 00:57:21 +00003463 AR=$ac_ct_AR
mlcreech636a9952008-05-05 22:52:56 +00003464else
3465 AR="$ac_cv_prog_AR"
3466fi
3467
3468test -z "$AR" && AR=ar
3469test -z "$AR_FLAGS" && AR_FLAGS=cru
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481if test -n "$ac_tool_prefix"; then
3482 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3483set dummy ${ac_tool_prefix}strip; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003484echo "$as_me:$LINENO: checking for $ac_word" >&5
3485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003486if test "${ac_cv_prog_STRIP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003487 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003488else
3489 if test -n "$STRIP"; then
3490 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495 IFS=$as_save_IFS
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003499 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh866108f2008-05-13 00:57:21 +00003500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003501 break 2
3502 fi
3503done
3504done
mlcreech636a9952008-05-05 22:52:56 +00003505
3506fi
3507fi
3508STRIP=$ac_cv_prog_STRIP
3509if test -n "$STRIP"; then
drh866108f2008-05-13 00:57:21 +00003510 echo "$as_me:$LINENO: result: $STRIP" >&5
3511echo "${ECHO_T}$STRIP" >&6
mlcreech636a9952008-05-05 22:52:56 +00003512else
drh866108f2008-05-13 00:57:21 +00003513 echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003515fi
3516
mlcreech636a9952008-05-05 22:52:56 +00003517fi
3518if test -z "$ac_cv_prog_STRIP"; then
3519 ac_ct_STRIP=$STRIP
3520 # Extract the first word of "strip", so it can be a program name with args.
3521set dummy strip; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003522echo "$as_me:$LINENO: checking for $ac_word" >&5
3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003524if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003525 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003526else
3527 if test -n "$ac_ct_STRIP"; then
3528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533 IFS=$as_save_IFS
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003537 ac_cv_prog_ac_ct_STRIP="strip"
drh866108f2008-05-13 00:57:21 +00003538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003539 break 2
3540 fi
3541done
3542done
mlcreech636a9952008-05-05 22:52:56 +00003543
drh866108f2008-05-13 00:57:21 +00003544 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
mlcreech636a9952008-05-05 22:52:56 +00003545fi
3546fi
3547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3548if test -n "$ac_ct_STRIP"; then
drh866108f2008-05-13 00:57:21 +00003549 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3550echo "${ECHO_T}$ac_ct_STRIP" >&6
mlcreech636a9952008-05-05 22:52:56 +00003551else
drh866108f2008-05-13 00:57:21 +00003552 echo "$as_me:$LINENO: result: no" >&5
3553echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003554fi
3555
drh866108f2008-05-13 00:57:21 +00003556 STRIP=$ac_ct_STRIP
mlcreech636a9952008-05-05 22:52:56 +00003557else
3558 STRIP="$ac_cv_prog_STRIP"
3559fi
3560
3561test -z "$STRIP" && STRIP=:
3562
3563
3564
3565
3566
3567
3568if test -n "$ac_tool_prefix"; then
3569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3570set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003571echo "$as_me:$LINENO: checking for $ac_word" >&5
3572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003573if test "${ac_cv_prog_RANLIB+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003574 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003575else
3576 if test -n "$RANLIB"; then
3577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3578else
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh866108f2008-05-13 00:57:21 +00003587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003588 break 2
3589 fi
3590done
3591done
mlcreech636a9952008-05-05 22:52:56 +00003592
3593fi
3594fi
3595RANLIB=$ac_cv_prog_RANLIB
3596if test -n "$RANLIB"; then
drh866108f2008-05-13 00:57:21 +00003597 echo "$as_me:$LINENO: result: $RANLIB" >&5
3598echo "${ECHO_T}$RANLIB" >&6
mlcreech636a9952008-05-05 22:52:56 +00003599else
drh866108f2008-05-13 00:57:21 +00003600 echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003602fi
3603
mlcreech636a9952008-05-05 22:52:56 +00003604fi
3605if test -z "$ac_cv_prog_RANLIB"; then
3606 ac_ct_RANLIB=$RANLIB
3607 # Extract the first word of "ranlib", so it can be a program name with args.
3608set dummy ranlib; ac_word=$2
drh866108f2008-05-13 00:57:21 +00003609echo "$as_me:$LINENO: checking for $ac_word" >&5
3610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003611if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003612 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003613else
3614 if test -n "$ac_ct_RANLIB"; then
3615 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3616else
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00003623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003624 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh866108f2008-05-13 00:57:21 +00003625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003626 break 2
3627 fi
3628done
3629done
mlcreech636a9952008-05-05 22:52:56 +00003630
drh866108f2008-05-13 00:57:21 +00003631 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
mlcreech636a9952008-05-05 22:52:56 +00003632fi
3633fi
3634ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3635if test -n "$ac_ct_RANLIB"; then
drh866108f2008-05-13 00:57:21 +00003636 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3637echo "${ECHO_T}$ac_ct_RANLIB" >&6
mlcreech636a9952008-05-05 22:52:56 +00003638else
drh866108f2008-05-13 00:57:21 +00003639 echo "$as_me:$LINENO: result: no" >&5
3640echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00003641fi
3642
drh866108f2008-05-13 00:57:21 +00003643 RANLIB=$ac_ct_RANLIB
mlcreech636a9952008-05-05 22:52:56 +00003644else
3645 RANLIB="$ac_cv_prog_RANLIB"
3646fi
3647
3648test -z "$RANLIB" && RANLIB=:
3649
3650
3651
3652
3653
3654
3655# Determine commands to create old-style static archives.
3656old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3657old_postinstall_cmds='chmod 644 $oldlib'
3658old_postuninstall_cmds=
3659
3660if test -n "$RANLIB"; then
3661 case $host_os in
3662 openbsd*)
3663 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3664 ;;
3665 *)
3666 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3667 ;;
3668 esac
3669 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3670fi
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
a.rottmann9bc8b932004-02-29 15:18:31 +00003705# If no C compiler was specified, use CC.
3706LTCC=${LTCC-"$CC"}
3707
vapier7f19c022007-02-17 14:46:31 +00003708# If no C compiler flags were specified, use CFLAGS.
3709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3710
a.rottmann9bc8b932004-02-29 15:18:31 +00003711# Allow CC to be a program name with arguments.
3712compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00003713
drh71eb93e2001-09-28 01:34:43 +00003714
mlcreech636a9952008-05-05 22:52:56 +00003715# Check for command to grab the raw symbol name followed by C symbol from nm.
drh866108f2008-05-13 00:57:21 +00003716echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3717echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003718if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003719 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00003720else
3721
3722# These are sane defaults that work on at least a few old systems.
3723# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3724
3725# Character class describing NM global symbol codes.
3726symcode='[BCDEGRST]'
3727
3728# Regexp to match symbols that can be accessed directly from C.
3729sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3730
3731# Define system-specific variables.
3732case $host_os in
3733aix*)
3734 symcode='[BCDT]'
3735 ;;
3736cygwin* | mingw* | pw32*)
3737 symcode='[ABCDGISTW]'
3738 ;;
3739hpux*)
3740 if test "$host_cpu" = ia64; then
3741 symcode='[ABCDEGRST]'
3742 fi
3743 ;;
3744irix* | nonstopux*)
3745 symcode='[BCDEGRST]'
3746 ;;
3747osf*)
3748 symcode='[BCDEGQRST]'
3749 ;;
3750solaris*)
3751 symcode='[BDRT]'
3752 ;;
3753sco3.2v5*)
3754 symcode='[DT]'
3755 ;;
3756sysv4.2uw2*)
3757 symcode='[DT]'
3758 ;;
3759sysv5* | sco5v6* | unixware* | OpenUNIX*)
3760 symcode='[ABDT]'
3761 ;;
3762sysv4)
3763 symcode='[DFNSTU]'
3764 ;;
3765esac
3766
3767# If we're using GNU nm, then use its standard symbol codes.
3768case `$NM -V 2>&1` in
3769*GNU* | *'with BFD'*)
3770 symcode='[ABCDGIRSTW]' ;;
3771esac
3772
3773# Transform an extracted symbol line into a proper C declaration.
3774# Some systems (esp. on ia64) link data and code symbols differently,
3775# so use this general approach.
3776lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3777
3778# Transform an extracted symbol line into symbol name and symbol address
3779lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
3780lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3781
3782# Handle CRLF in mingw tool chain
3783opt_cr=
3784case $build_os in
3785mingw*)
3786 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3787 ;;
3788esac
3789
3790# Try without a prefix underscore, then with it.
3791for ac_symprfx in "" "_"; do
3792
3793 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3794 symxfrm="\\1 $ac_symprfx\\2 \\2"
3795
3796 # Write the raw and C identifiers.
3797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3798 # Fake it for dumpbin and say T for any non-static function
3799 # and D for any global variable.
3800 # Also find C++ and __fastcall symbols from MSVC++,
3801 # which start with @ or ?.
3802 lt_cv_sys_global_symbol_pipe="$AWK '"\
3803" {last_section=section; section=\$ 3};"\
3804" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3805" \$ 0!~/External *\|/{next};"\
3806" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3807" {if(hide[section]) next};"\
3808" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3809" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3810" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3811" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3812" ' prfx=^$ac_symprfx"
3813 else
3814 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3815 fi
3816
3817 # Check to see that the pipe works correctly.
3818 pipe_works=no
3819
3820 rm -f conftest*
3821 cat > conftest.$ac_ext <<_LT_EOF
3822#ifdef __cplusplus
3823extern "C" {
3824#endif
3825char nm_test_var;
3826void nm_test_func(void);
3827void nm_test_func(void){}
3828#ifdef __cplusplus
3829}
3830#endif
3831int main(){nm_test_var='a';nm_test_func();return(0);}
3832_LT_EOF
3833
3834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835 (eval $ac_compile) 2>&5
3836 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003838 (exit $ac_status); }; then
3839 # Now try to grab the symbols.
3840 nlist=conftest.nm
3841 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3842 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3843 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003845 (exit $ac_status); } && test -s "$nlist"; then
3846 # Try sorting and uniquifying the output.
3847 if sort "$nlist" | uniq > "$nlist"T; then
3848 mv -f "$nlist"T "$nlist"
3849 else
3850 rm -f "$nlist"T
3851 fi
3852
3853 # Make sure that we snagged all the symbols we need.
3854 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3855 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3856 cat <<_LT_EOF > conftest.$ac_ext
3857#ifdef __cplusplus
3858extern "C" {
3859#endif
3860
3861_LT_EOF
3862 # Now generate the symbol file.
3863 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3864
3865 cat <<_LT_EOF >> conftest.$ac_ext
3866
3867/* The mapping between symbol names and symbols. */
3868const struct {
3869 const char *name;
3870 void *address;
3871}
3872lt__PROGRAM__LTX_preloaded_symbols[] =
3873{
3874 { "@PROGRAM@", (void *) 0 },
3875_LT_EOF
3876 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3877 cat <<\_LT_EOF >> conftest.$ac_ext
3878 {0, (void *) 0}
3879};
3880
3881/* This works around a problem in FreeBSD linker */
3882#ifdef FREEBSD_WORKAROUND
3883static const void *lt_preloaded_setup() {
3884 return lt__PROGRAM__LTX_preloaded_symbols;
3885}
3886#endif
3887
3888#ifdef __cplusplus
3889}
3890#endif
3891_LT_EOF
3892 # Now try linking the two files.
3893 mv conftest.$ac_objext conftstm.$ac_objext
3894 lt_save_LIBS="$LIBS"
3895 lt_save_CFLAGS="$CFLAGS"
3896 LIBS="conftstm.$ac_objext"
3897 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>&5
3900 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00003902 (exit $ac_status); } && test -s conftest${ac_exeext}; then
3903 pipe_works=yes
3904 fi
3905 LIBS="$lt_save_LIBS"
3906 CFLAGS="$lt_save_CFLAGS"
3907 else
3908 echo "cannot find nm_test_func in $nlist" >&5
3909 fi
3910 else
3911 echo "cannot find nm_test_var in $nlist" >&5
3912 fi
3913 else
3914 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3915 fi
3916 else
3917 echo "$progname: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 fi
3920 rm -rf conftest* conftst*
3921
3922 # Do not use the global_symbol_pipe unless it works.
3923 if test "$pipe_works" = yes; then
3924 break
3925 else
3926 lt_cv_sys_global_symbol_pipe=
3927 fi
3928done
3929
3930fi
3931
3932if test -z "$lt_cv_sys_global_symbol_pipe"; then
3933 lt_cv_sys_global_symbol_to_cdecl=
3934fi
3935if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh866108f2008-05-13 00:57:21 +00003936 echo "$as_me:$LINENO: result: failed" >&5
3937echo "${ECHO_T}failed" >&6
mlcreech636a9952008-05-05 22:52:56 +00003938else
drh866108f2008-05-13 00:57:21 +00003939 echo "$as_me:$LINENO: result: ok" >&5
3940echo "${ECHO_T}ok" >&6
mlcreech636a9952008-05-05 22:52:56 +00003941fi
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
drh866108f2008-05-13 00:57:21 +00003965# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00003966if test "${enable_libtool_lock+set}" = set; then
drh866108f2008-05-13 00:57:21 +00003967 enableval="$enable_libtool_lock"
drh71eb93e2001-09-28 01:34:43 +00003968
drh866108f2008-05-13 00:57:21 +00003969fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00003970test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00003971
a.rottmann9bc8b932004-02-29 15:18:31 +00003972# Some flags need to be propagated to the compiler or linker for good
3973# libtool support.
3974case $host in
3975ia64-*-hpux*)
3976 # Find out which ABI we are using.
3977 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00003979 (eval $ac_compile) 2>&5
3980 ac_status=$?
drh866108f2008-05-13 00:57:21 +00003981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00003982 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003983 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00003984 *ELF-32*)
3985 HPUX_IA64_MODE="32"
3986 ;;
3987 *ELF-64*)
3988 HPUX_IA64_MODE="64"
3989 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00003990 esac
3991 fi
3992 rm -rf conftest*
3993 ;;
3994*-*-irix6*)
3995 # Find out which ABI we are using.
drh866108f2008-05-13 00:57:21 +00003996 echo '#line 3996 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00003997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3998 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00003999 ac_status=$?
drh866108f2008-05-13 00:57:21 +00004000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004001 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004002 if test "$lt_cv_prog_gnu_ld" = yes; then
4003 case `/usr/bin/file conftest.$ac_objext` in
4004 *32-bit*)
4005 LD="${LD-ld} -melf32bsmip"
4006 ;;
4007 *N32*)
4008 LD="${LD-ld} -melf32bmipn32"
4009 ;;
4010 *64-bit*)
4011 LD="${LD-ld} -melf64bmip"
4012 ;;
4013 esac
4014 else
4015 case `/usr/bin/file conftest.$ac_objext` in
4016 *32-bit*)
4017 LD="${LD-ld} -32"
4018 ;;
4019 *N32*)
4020 LD="${LD-ld} -n32"
4021 ;;
4022 *64-bit*)
4023 LD="${LD-ld} -64"
4024 ;;
4025 esac
4026 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004027 fi
4028 rm -rf conftest*
4029 ;;
drh71eb93e2001-09-28 01:34:43 +00004030
mlcreech636a9952008-05-05 22:52:56 +00004031x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4032s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004033 # Find out which ABI we are using.
4034 echo 'int i;' > conftest.$ac_ext
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
drh866108f2008-05-13 00:57:21 +00004038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004039 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004040 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004041 *32-bit*)
4042 case $host in
4043 x86_64-*kfreebsd*-gnu)
4044 LD="${LD-ld} -m elf_i386_fbsd"
4045 ;;
4046 x86_64-*linux*)
4047 LD="${LD-ld} -m elf_i386"
4048 ;;
4049 ppc64-*linux*|powerpc64-*linux*)
4050 LD="${LD-ld} -m elf32ppclinux"
4051 ;;
4052 s390x-*linux*)
4053 LD="${LD-ld} -m elf_s390"
4054 ;;
4055 sparc64-*linux*)
4056 LD="${LD-ld} -m elf32_sparc"
4057 ;;
4058 esac
4059 ;;
4060 *64-bit*)
4061 case $host in
4062 x86_64-*kfreebsd*-gnu)
4063 LD="${LD-ld} -m elf_x86_64_fbsd"
4064 ;;
4065 x86_64-*linux*)
4066 LD="${LD-ld} -m elf_x86_64"
4067 ;;
4068 ppc*-*linux*|powerpc*-*linux*)
4069 LD="${LD-ld} -m elf64ppc"
4070 ;;
4071 s390*-*linux*|s390*-*tpf*)
4072 LD="${LD-ld} -m elf64_s390"
4073 ;;
4074 sparc*-*linux*)
4075 LD="${LD-ld} -m elf64_sparc"
4076 ;;
4077 esac
4078 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004079 esac
4080 fi
4081 rm -rf conftest*
4082 ;;
drh71eb93e2001-09-28 01:34:43 +00004083
a.rottmann9bc8b932004-02-29 15:18:31 +00004084*-*-sco3.2v5*)
4085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4086 SAVE_CFLAGS="$CFLAGS"
4087 CFLAGS="$CFLAGS -belf"
drh866108f2008-05-13 00:57:21 +00004088 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4089echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004090if test "${lt_cv_cc_needs_belf+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004091 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004092else
4093 ac_ext=c
4094ac_cpp='$CPP $CPPFLAGS'
4095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00004098
a.rottmann9bc8b932004-02-29 15:18:31 +00004099 cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00004105
a.rottmann9bc8b932004-02-29 15:18:31 +00004106int
4107main ()
drh71eb93e2001-09-28 01:34:43 +00004108{
drh71eb93e2001-09-28 01:34:43 +00004109
a.rottmann9bc8b932004-02-29 15:18:31 +00004110 ;
4111 return 0;
drh71eb93e2001-09-28 01:34:43 +00004112}
a.rottmann9bc8b932004-02-29 15:18:31 +00004113_ACEOF
4114rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00004115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00004117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try='test -s conftest$ac_exeext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004136 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00004137else
drh866108f2008-05-13 00:57:21 +00004138 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004139sed 's/^/| /' conftest.$ac_ext >&5
4140
drh866108f2008-05-13 00:57:21 +00004141lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00004142fi
drh866108f2008-05-13 00:57:21 +00004143rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00004144 conftest$ac_exeext conftest.$ac_ext
4145 ac_ext=c
4146ac_cpp='$CPP $CPPFLAGS'
4147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
drh71eb93e2001-09-28 01:34:43 +00004151fi
drh866108f2008-05-13 00:57:21 +00004152echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4153echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00004154 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4155 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4156 CFLAGS="$SAVE_CFLAGS"
4157 fi
4158 ;;
vapier7f19c022007-02-17 14:46:31 +00004159sparc*-*solaris*)
4160 # Find out which ABI we are using.
4161 echo 'int i;' > conftest.$ac_ext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4164 ac_status=$?
drh866108f2008-05-13 00:57:21 +00004165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00004166 (exit $ac_status); }; then
4167 case `/usr/bin/file conftest.o` in
4168 *64-bit*)
4169 case $lt_cv_prog_gnu_ld in
4170 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00004171 *)
4172 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4173 LD="${LD-ld} -64"
4174 fi
4175 ;;
vapier7f19c022007-02-17 14:46:31 +00004176 esac
4177 ;;
4178 esac
4179 fi
4180 rm -rf conftest*
4181 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004182esac
4183
4184need_locks="$enable_libtool_lock"
4185
drh71eb93e2001-09-28 01:34:43 +00004186
mlcreech636a9952008-05-05 22:52:56 +00004187 case $host_os in
4188 rhapsody* | darwin*)
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
4191set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004192echo "$as_me:$LINENO: checking for $ac_word" >&5
4193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004194if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004195 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004196else
4197 if test -n "$DSYMUTIL"; then
4198 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004207 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh866108f2008-05-13 00:57:21 +00004208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004209 break 2
4210 fi
4211done
4212done
mlcreech636a9952008-05-05 22:52:56 +00004213
4214fi
4215fi
4216DSYMUTIL=$ac_cv_prog_DSYMUTIL
4217if test -n "$DSYMUTIL"; then
drh866108f2008-05-13 00:57:21 +00004218 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
4219echo "${ECHO_T}$DSYMUTIL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004220else
drh866108f2008-05-13 00:57:21 +00004221 echo "$as_me:$LINENO: result: no" >&5
4222echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004223fi
4224
mlcreech636a9952008-05-05 22:52:56 +00004225fi
4226if test -z "$ac_cv_prog_DSYMUTIL"; then
4227 ac_ct_DSYMUTIL=$DSYMUTIL
4228 # Extract the first word of "dsymutil", so it can be a program name with args.
4229set dummy dsymutil; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004230echo "$as_me:$LINENO: checking for $ac_word" >&5
4231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004232if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004233 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004234else
4235 if test -n "$ac_ct_DSYMUTIL"; then
4236 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004245 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh866108f2008-05-13 00:57:21 +00004246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004247 break 2
4248 fi
4249done
4250done
mlcreech636a9952008-05-05 22:52:56 +00004251
drh866108f2008-05-13 00:57:21 +00004252 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
mlcreech636a9952008-05-05 22:52:56 +00004253fi
4254fi
4255ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
4256if test -n "$ac_ct_DSYMUTIL"; then
drh866108f2008-05-13 00:57:21 +00004257 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
4258echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004259else
drh866108f2008-05-13 00:57:21 +00004260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004262fi
4263
drh866108f2008-05-13 00:57:21 +00004264 DSYMUTIL=$ac_ct_DSYMUTIL
mlcreech636a9952008-05-05 22:52:56 +00004265else
4266 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
4267fi
4268
4269 if test -n "$ac_tool_prefix"; then
4270 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
4271set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004272echo "$as_me:$LINENO: checking for $ac_word" >&5
4273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004274if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004275 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004276else
4277 if test -n "$NMEDIT"; then
4278 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
4279else
4280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004287 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh866108f2008-05-13 00:57:21 +00004288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004289 break 2
4290 fi
4291done
4292done
mlcreech636a9952008-05-05 22:52:56 +00004293
4294fi
4295fi
4296NMEDIT=$ac_cv_prog_NMEDIT
4297if test -n "$NMEDIT"; then
drh866108f2008-05-13 00:57:21 +00004298 echo "$as_me:$LINENO: result: $NMEDIT" >&5
4299echo "${ECHO_T}$NMEDIT" >&6
mlcreech636a9952008-05-05 22:52:56 +00004300else
drh866108f2008-05-13 00:57:21 +00004301 echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004303fi
4304
mlcreech636a9952008-05-05 22:52:56 +00004305fi
4306if test -z "$ac_cv_prog_NMEDIT"; then
4307 ac_ct_NMEDIT=$NMEDIT
4308 # Extract the first word of "nmedit", so it can be a program name with args.
4309set dummy nmedit; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004310echo "$as_me:$LINENO: checking for $ac_word" >&5
4311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004312if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004313 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004314else
4315 if test -n "$ac_ct_NMEDIT"; then
4316 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004325 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh866108f2008-05-13 00:57:21 +00004326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004327 break 2
4328 fi
4329done
4330done
mlcreech636a9952008-05-05 22:52:56 +00004331
drh866108f2008-05-13 00:57:21 +00004332 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
mlcreech636a9952008-05-05 22:52:56 +00004333fi
4334fi
4335ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
4336if test -n "$ac_ct_NMEDIT"; then
drh866108f2008-05-13 00:57:21 +00004337 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
4338echo "${ECHO_T}$ac_ct_NMEDIT" >&6
mlcreech636a9952008-05-05 22:52:56 +00004339else
drh866108f2008-05-13 00:57:21 +00004340 echo "$as_me:$LINENO: result: no" >&5
4341echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004342fi
4343
drh866108f2008-05-13 00:57:21 +00004344 NMEDIT=$ac_ct_NMEDIT
mlcreech636a9952008-05-05 22:52:56 +00004345else
4346 NMEDIT="$ac_cv_prog_NMEDIT"
4347fi
4348
4349 if test -n "$ac_tool_prefix"; then
4350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
4351set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004352echo "$as_me:$LINENO: checking for $ac_word" >&5
4353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004354if test "${ac_cv_prog_LIPO+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004355 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004356else
4357 if test -n "$LIPO"; then
4358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
4359else
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh866108f2008-05-13 00:57:21 +00004368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004369 break 2
4370 fi
4371done
4372done
mlcreech636a9952008-05-05 22:52:56 +00004373
4374fi
4375fi
4376LIPO=$ac_cv_prog_LIPO
4377if test -n "$LIPO"; then
drh866108f2008-05-13 00:57:21 +00004378 echo "$as_me:$LINENO: result: $LIPO" >&5
4379echo "${ECHO_T}$LIPO" >&6
mlcreech636a9952008-05-05 22:52:56 +00004380else
drh866108f2008-05-13 00:57:21 +00004381 echo "$as_me:$LINENO: result: no" >&5
4382echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004383fi
4384
mlcreech636a9952008-05-05 22:52:56 +00004385fi
4386if test -z "$ac_cv_prog_LIPO"; then
4387 ac_ct_LIPO=$LIPO
4388 # Extract the first word of "lipo", so it can be a program name with args.
4389set dummy lipo; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004390echo "$as_me:$LINENO: checking for $ac_word" >&5
4391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004392if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004393 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004394else
4395 if test -n "$ac_ct_LIPO"; then
4396 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
4397else
4398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004405 ac_cv_prog_ac_ct_LIPO="lipo"
drh866108f2008-05-13 00:57:21 +00004406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004407 break 2
4408 fi
4409done
4410done
mlcreech636a9952008-05-05 22:52:56 +00004411
drh866108f2008-05-13 00:57:21 +00004412 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
mlcreech636a9952008-05-05 22:52:56 +00004413fi
4414fi
4415ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
4416if test -n "$ac_ct_LIPO"; then
drh866108f2008-05-13 00:57:21 +00004417 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
4418echo "${ECHO_T}$ac_ct_LIPO" >&6
mlcreech636a9952008-05-05 22:52:56 +00004419else
drh866108f2008-05-13 00:57:21 +00004420 echo "$as_me:$LINENO: result: no" >&5
4421echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004422fi
4423
drh866108f2008-05-13 00:57:21 +00004424 LIPO=$ac_ct_LIPO
mlcreech636a9952008-05-05 22:52:56 +00004425else
4426 LIPO="$ac_cv_prog_LIPO"
4427fi
4428
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
4431set dummy ${ac_tool_prefix}otool; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004432echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004434if test "${ac_cv_prog_OTOOL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004435 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004436else
4437 if test -n "$OTOOL"; then
4438 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004447 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh866108f2008-05-13 00:57:21 +00004448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004449 break 2
4450 fi
4451done
4452done
mlcreech636a9952008-05-05 22:52:56 +00004453
4454fi
4455fi
4456OTOOL=$ac_cv_prog_OTOOL
4457if test -n "$OTOOL"; then
drh866108f2008-05-13 00:57:21 +00004458 echo "$as_me:$LINENO: result: $OTOOL" >&5
4459echo "${ECHO_T}$OTOOL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004460else
drh866108f2008-05-13 00:57:21 +00004461 echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004463fi
4464
mlcreech636a9952008-05-05 22:52:56 +00004465fi
4466if test -z "$ac_cv_prog_OTOOL"; then
4467 ac_ct_OTOOL=$OTOOL
4468 # Extract the first word of "otool", so it can be a program name with args.
4469set dummy otool; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004470echo "$as_me:$LINENO: checking for $ac_word" >&5
4471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004472if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004473 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004474else
4475 if test -n "$ac_ct_OTOOL"; then
4476 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004485 ac_cv_prog_ac_ct_OTOOL="otool"
drh866108f2008-05-13 00:57:21 +00004486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004487 break 2
4488 fi
4489done
4490done
mlcreech636a9952008-05-05 22:52:56 +00004491
drh866108f2008-05-13 00:57:21 +00004492 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
mlcreech636a9952008-05-05 22:52:56 +00004493fi
4494fi
4495ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
4496if test -n "$ac_ct_OTOOL"; then
drh866108f2008-05-13 00:57:21 +00004497 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
4498echo "${ECHO_T}$ac_ct_OTOOL" >&6
mlcreech636a9952008-05-05 22:52:56 +00004499else
drh866108f2008-05-13 00:57:21 +00004500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004502fi
4503
drh866108f2008-05-13 00:57:21 +00004504 OTOOL=$ac_ct_OTOOL
mlcreech636a9952008-05-05 22:52:56 +00004505else
4506 OTOOL="$ac_cv_prog_OTOOL"
4507fi
4508
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
4511set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004514if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004515 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004516else
4517 if test -n "$OTOOL64"; then
4518 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00004526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004527 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh866108f2008-05-13 00:57:21 +00004528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004529 break 2
4530 fi
4531done
4532done
mlcreech636a9952008-05-05 22:52:56 +00004533
4534fi
4535fi
4536OTOOL64=$ac_cv_prog_OTOOL64
4537if test -n "$OTOOL64"; then
drh866108f2008-05-13 00:57:21 +00004538 echo "$as_me:$LINENO: result: $OTOOL64" >&5
4539echo "${ECHO_T}$OTOOL64" >&6
mlcreech636a9952008-05-05 22:52:56 +00004540else
drh866108f2008-05-13 00:57:21 +00004541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004543fi
4544
mlcreech636a9952008-05-05 22:52:56 +00004545fi
4546if test -z "$ac_cv_prog_OTOOL64"; then
4547 ac_ct_OTOOL64=$OTOOL64
4548 # Extract the first word of "otool64", so it can be a program name with args.
4549set dummy otool64; ac_word=$2
drh866108f2008-05-13 00:57:21 +00004550echo "$as_me:$LINENO: checking for $ac_word" >&5
4551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004552if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004553 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004554else
4555 if test -n "$ac_ct_OTOOL64"; then
4556 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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
drh866108f2008-05-13 00:57:21 +00004564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004565 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh866108f2008-05-13 00:57:21 +00004566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004567 break 2
4568 fi
4569done
4570done
mlcreech636a9952008-05-05 22:52:56 +00004571
drh866108f2008-05-13 00:57:21 +00004572 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
mlcreech636a9952008-05-05 22:52:56 +00004573fi
4574fi
4575ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
4576if test -n "$ac_ct_OTOOL64"; then
drh866108f2008-05-13 00:57:21 +00004577 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
4578echo "${ECHO_T}$ac_ct_OTOOL64" >&6
mlcreech636a9952008-05-05 22:52:56 +00004579else
drh866108f2008-05-13 00:57:21 +00004580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00004582fi
4583
drh866108f2008-05-13 00:57:21 +00004584 OTOOL64=$ac_ct_OTOOL64
mlcreech636a9952008-05-05 22:52:56 +00004585else
4586 OTOOL64="$ac_cv_prog_OTOOL64"
4587fi
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
drh866108f2008-05-13 00:57:21 +00004615 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
4616echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004617if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004618 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004619else
4620 lt_cv_apple_cc_single_mod=no
4621 if test -z "${LT_MULTI_MODULE}"; then
4622 # By default we will add the -single_module flag. You can override
4623 # by either setting the environment variable LT_MULTI_MODULE
4624 # non-empty at configure time, or by adding -multi_module to the
4625 # link flags.
4626 rm -rf libconftest.dylib*
4627 echo "int foo(void){return 1;}" > conftest.c
4628 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4629-dynamiclib -Wl,-single_module conftest.c" >&5
4630 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
4631 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
4632 _lt_result=$?
4633 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
4634 lt_cv_apple_cc_single_mod=yes
4635 else
4636 cat conftest.err >&5
4637 fi
4638 rm -rf libconftest.dylib*
4639 rm -f conftest.*
4640 fi
4641fi
drh866108f2008-05-13 00:57:21 +00004642echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
4643echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
4644 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
4645echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004646if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004647 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00004648else
4649 lt_cv_ld_exported_symbols_list=no
4650 save_LDFLAGS=$LDFLAGS
4651 echo "_main" > conftest.sym
4652 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
4653 cat >conftest.$ac_ext <<_ACEOF
4654/* confdefs.h. */
4655_ACEOF
4656cat confdefs.h >>conftest.$ac_ext
4657cat >>conftest.$ac_ext <<_ACEOF
4658/* end confdefs.h. */
4659
4660int
4661main ()
4662{
4663
4664 ;
4665 return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00004669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00004671 ac_status=$?
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest$ac_exeext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00004690 lt_cv_ld_exported_symbols_list=yes
4691else
drh866108f2008-05-13 00:57:21 +00004692 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00004693sed 's/^/| /' conftest.$ac_ext >&5
4694
drh866108f2008-05-13 00:57:21 +00004695lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00004696fi
drh866108f2008-05-13 00:57:21 +00004697rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00004698 conftest$ac_exeext conftest.$ac_ext
4699 LDFLAGS="$save_LDFLAGS"
4700
4701fi
drh866108f2008-05-13 00:57:21 +00004702echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
4703echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
mlcreech636a9952008-05-05 22:52:56 +00004704 case $host_os in
4705 rhapsody* | darwin1.[012])
4706 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
4707 darwin1.*)
4708 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4709 darwin*) # darwin 5.x on
4710 # if running on 10.5 or later, the deployment target defaults
4711 # to the OS version, if on x86, and 10.4, the deployment
4712 # target defaults to 10.4. Don't you love it?
4713 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
4714 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
4715 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4716 10.[012]*)
4717 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
4718 10.*)
4719 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
4720 esac
4721 ;;
4722 esac
4723 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
4724 _lt_dar_single_mod='$single_module'
4725 fi
4726 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
4727 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
4728 else
4729 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
4730 fi
4731 if test "$DSYMUTIL" != ":"; then
4732 _lt_dsymutil='~$DSYMUTIL $lib || :'
4733 else
4734 _lt_dsymutil=
4735 fi
4736 ;;
4737 esac
4738
a.rottmann84e63352003-03-24 09:42:16 +00004739ac_ext=c
4740ac_cpp='$CPP $CPPFLAGS'
4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh866108f2008-05-13 00:57:21 +00004744echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4745echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004746# On Suns, sometimes $CPP names a directory.
4747if test -n "$CPP" && test -d "$CPP"; then
4748 CPP=
4749fi
4750if test -z "$CPP"; then
4751 if test "${ac_cv_prog_CPP+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004752 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00004753else
a.rottmann84e63352003-03-24 09:42:16 +00004754 # Double quotes because CPP needs to be expanded
4755 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756 do
4757 ac_preproc_ok=false
4758for ac_c_preproc_warn_flag in '' yes
4759do
4760 # Use a header file that comes with gcc, so configuring glibc
4761 # with a fresh cross-compiler works.
4762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763 # <limits.h> exists even on freestanding compilers.
4764 # On the NeXT, cc -E runs the code through the compiler's parser,
4765 # not just through cpp. "Syntax error" is here to catch this case.
4766 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004767/* confdefs.h. */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h. */
4772#ifdef __STDC__
4773# include <limits.h>
4774#else
4775# include <assert.h>
4776#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004777 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004778_ACEOF
drh866108f2008-05-13 00:57:21 +00004779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4780 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev/null; then
4787 if test -s conftest.err; then
4788 ac_cpp_err=$ac_c_preproc_warn_flag
4789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4790 else
4791 ac_cpp_err=
4792 fi
4793else
4794 ac_cpp_err=yes
4795fi
4796if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004797 :
4798else
drh866108f2008-05-13 00:57:21 +00004799 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004800sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 # Broken: fails on valid input.
4803continue
4804fi
4805rm -f conftest.err conftest.$ac_ext
4806
drh866108f2008-05-13 00:57:21 +00004807 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00004808 # can be detected and how.
4809 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004810/* confdefs.h. */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h. */
4815#include <ac_nonexistent.h>
4816_ACEOF
drh866108f2008-05-13 00:57:21 +00004817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004819 ac_status=$?
4820 grep -v '^ *+' conftest.er1 >conftest.err
4821 rm -f conftest.er1
4822 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_c_preproc_warn_flag
4827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4828 else
4829 ac_cpp_err=
4830 fi
4831else
4832 ac_cpp_err=yes
4833fi
4834if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004835 # Broken: success on invalid input.
4836continue
4837else
drh866108f2008-05-13 00:57:21 +00004838 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004839sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 # Passes both tests.
4842ac_preproc_ok=:
4843break
4844fi
4845rm -f conftest.err conftest.$ac_ext
4846
4847done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then
4851 break
4852fi
4853
4854 done
4855 ac_cv_prog_CPP=$CPP
4856
4857fi
4858 CPP=$ac_cv_prog_CPP
4859else
4860 ac_cv_prog_CPP=$CPP
4861fi
drh866108f2008-05-13 00:57:21 +00004862echo "$as_me:$LINENO: result: $CPP" >&5
4863echo "${ECHO_T}$CPP" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004864ac_preproc_ok=false
4865for ac_c_preproc_warn_flag in '' yes
4866do
4867 # Use a header file that comes with gcc, so configuring glibc
4868 # with a fresh cross-compiler works.
4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870 # <limits.h> exists even on freestanding compilers.
4871 # On the NeXT, cc -E runs the code through the compiler's parser,
4872 # not just through cpp. "Syntax error" is here to catch this case.
4873 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
4879#ifdef __STDC__
4880# include <limits.h>
4881#else
4882# include <assert.h>
4883#endif
a.rottmann964dbb12004-02-26 19:47:42 +00004884 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00004885_ACEOF
drh866108f2008-05-13 00:57:21 +00004886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev/null; then
4894 if test -s conftest.err; then
4895 ac_cpp_err=$ac_c_preproc_warn_flag
4896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4897 else
4898 ac_cpp_err=
4899 fi
4900else
4901 ac_cpp_err=yes
4902fi
4903if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004904 :
4905else
drh866108f2008-05-13 00:57:21 +00004906 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004907sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 # Broken: fails on valid input.
4910continue
4911fi
4912rm -f conftest.err conftest.$ac_ext
4913
drh866108f2008-05-13 00:57:21 +00004914 # OK, works on sane cases. Now check whether non-existent headers
a.rottmann84e63352003-03-24 09:42:16 +00004915 # can be detected and how.
4916 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004917/* confdefs.h. */
4918_ACEOF
4919cat confdefs.h >>conftest.$ac_ext
4920cat >>conftest.$ac_ext <<_ACEOF
4921/* end confdefs.h. */
4922#include <ac_nonexistent.h>
4923_ACEOF
drh866108f2008-05-13 00:57:21 +00004924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00004926 ac_status=$?
4927 grep -v '^ *+' conftest.er1 >conftest.err
4928 rm -f conftest.er1
4929 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00004930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } >/dev/null; then
4932 if test -s conftest.err; then
4933 ac_cpp_err=$ac_c_preproc_warn_flag
4934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4935 else
4936 ac_cpp_err=
4937 fi
4938else
4939 ac_cpp_err=yes
4940fi
4941if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +00004942 # Broken: success on invalid input.
4943continue
4944else
drh866108f2008-05-13 00:57:21 +00004945 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00004946sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 # Passes both tests.
4949ac_preproc_ok=:
4950break
4951fi
4952rm -f conftest.err conftest.$ac_ext
4953
4954done
4955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956rm -f conftest.err conftest.$ac_ext
4957if $ac_preproc_ok; then
4958 :
4959else
drh866108f2008-05-13 00:57:21 +00004960 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00004961See \`config.log' for more details." >&5
drh866108f2008-05-13 00:57:21 +00004962echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00004963See \`config.log' for more details." >&2;}
4964 { (exit 1); exit 1; }; }
4965fi
4966
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972
4973
drh866108f2008-05-13 00:57:21 +00004974echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4975echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004976if test "${ac_cv_header_stdc+set}" = set; then
drh866108f2008-05-13 00:57:21 +00004977 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00004978else
4979 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00004980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <stdlib.h>
4986#include <stdarg.h>
4987#include <string.h>
4988#include <float.h>
4989
4990int
4991main ()
4992{
4993
4994 ;
4995 return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00004999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005001 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5010 (eval $ac_try) 2>&5
5011 ac_status=$?
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005020 ac_cv_header_stdc=yes
5021else
drh866108f2008-05-13 00:57:21 +00005022 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005023sed 's/^/| /' conftest.$ac_ext >&5
5024
drh866108f2008-05-13 00:57:21 +00005025ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00005026fi
drh866108f2008-05-13 00:57:21 +00005027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005028
5029if test $ac_cv_header_stdc = yes; then
5030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5031 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005032/* confdefs.h. */
5033_ACEOF
5034cat confdefs.h >>conftest.$ac_ext
5035cat >>conftest.$ac_ext <<_ACEOF
5036/* end confdefs.h. */
5037#include <string.h>
5038
5039_ACEOF
5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "memchr" >/dev/null 2>&1; then
5042 :
5043else
5044 ac_cv_header_stdc=no
5045fi
5046rm -f conftest*
5047
5048fi
5049
5050if test $ac_cv_header_stdc = yes; then
5051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5052 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005053/* confdefs.h. */
5054_ACEOF
5055cat confdefs.h >>conftest.$ac_ext
5056cat >>conftest.$ac_ext <<_ACEOF
5057/* end confdefs.h. */
5058#include <stdlib.h>
5059
5060_ACEOF
5061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "free" >/dev/null 2>&1; then
5063 :
5064else
5065 ac_cv_header_stdc=no
5066fi
5067rm -f conftest*
5068
5069fi
5070
5071if test $ac_cv_header_stdc = yes; then
5072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5073 if test "$cross_compiling" = yes; then
5074 :
5075else
5076 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082#include <ctype.h>
5083#if ((' ' & 0x0FF) == 0x020)
5084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5086#else
5087# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00005088 (('a' <= (c) && (c) <= 'i') \
5089 || ('j' <= (c) && (c) <= 'r') \
5090 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00005091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5092#endif
5093
5094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5095int
5096main ()
5097{
5098 int i;
5099 for (i = 0; i < 256; i++)
5100 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00005101 || toupper (i) != TOUPPER (i))
drh866108f2008-05-13 00:57:21 +00005102 exit(2);
5103 exit (0);
a.rottmann84e63352003-03-24 09:42:16 +00005104}
5105_ACEOF
5106rm -f conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00005107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00005109 ac_status=$?
drh866108f2008-05-13 00:57:21 +00005110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh866108f2008-05-13 00:57:21 +00005112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00005114 ac_status=$?
drh866108f2008-05-13 00:57:21 +00005115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005116 (exit $ac_status); }; }; then
5117 :
5118else
drh866108f2008-05-13 00:57:21 +00005119 echo "$as_me: program exited with status $ac_status" >&5
5120echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123( exit $ac_status )
5124ac_cv_header_stdc=no
5125fi
drh866108f2008-05-13 00:57:21 +00005126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005127fi
5128fi
drh866108f2008-05-13 00:57:21 +00005129fi
5130echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5131echo "${ECHO_T}$ac_cv_header_stdc" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005132if test $ac_cv_header_stdc = yes; then
5133
5134cat >>confdefs.h <<\_ACEOF
5135#define STDC_HEADERS 1
5136_ACEOF
5137
5138fi
5139
5140# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00005151 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00005152do
drh866108f2008-05-13 00:57:21 +00005153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5154echo "$as_me:$LINENO: checking for $ac_header" >&5
5155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5156if eval "test \"\${$as_ac_Header+set}\" = set"; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005158else
5159 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165$ac_includes_default
5166
5167#include <$ac_header>
5168_ACEOF
5169rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00005170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5171 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005172 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -z "$ac_c_werror_flag"
5179 || test ! -s conftest.err'
5180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 (eval $ac_try) 2>&5
5182 ac_status=$?
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); }; } &&
5185 { ac_try='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00005191 eval "$as_ac_Header=yes"
5192else
drh866108f2008-05-13 00:57:21 +00005193 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005194sed 's/^/| /' conftest.$ac_ext >&5
5195
drh866108f2008-05-13 00:57:21 +00005196eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00005197fi
drh866108f2008-05-13 00:57:21 +00005198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005199fi
drh866108f2008-05-13 00:57:21 +00005200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202if test `eval echo '${'$as_ac_Header'}'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00005203 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +00005204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00005205_ACEOF
5206
5207fi
5208
5209done
5210
5211
5212
5213for ac_header in dlfcn.h
5214do
drh866108f2008-05-13 00:57:21 +00005215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5216echo "$as_me:$LINENO: checking for $ac_header" >&5
5217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5218if eval "test \"\${$as_ac_Header+set}\" = set"; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005220else
mlcreech636a9952008-05-05 22:52:56 +00005221 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005222/* confdefs.h. */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h. */
5227$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00005228
a.rottmann84e63352003-03-24 09:42:16 +00005229#include <$ac_header>
5230_ACEOF
5231rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00005232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005234 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00005235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -z "$ac_c_werror_flag"
5241 || test ! -s conftest.err'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; } &&
5247 { ac_try='test -s conftest.$ac_objext'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00005253 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00005254else
drh866108f2008-05-13 00:57:21 +00005255 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005256sed 's/^/| /' conftest.$ac_ext >&5
5257
drh866108f2008-05-13 00:57:21 +00005258eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00005259fi
drh866108f2008-05-13 00:57:21 +00005260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005261fi
drh866108f2008-05-13 00:57:21 +00005262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5264if test `eval echo '${'$as_ac_Header'}'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00005265 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +00005266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00005267_ACEOF
5268
5269fi
5270
drh71eb93e2001-09-28 01:34:43 +00005271done
5272
drh71eb93e2001-09-28 01:34:43 +00005273
drh71eb93e2001-09-28 01:34:43 +00005274
mlcreech636a9952008-05-05 22:52:56 +00005275# Set options
mlcreech94984912008-03-04 19:03:08 +00005276
drh71eb93e2001-09-28 01:34:43 +00005277
drh71eb93e2001-09-28 01:34:43 +00005278
mlcreech636a9952008-05-05 22:52:56 +00005279 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00005280
a.rottmann9bc8b932004-02-29 15:18:31 +00005281
mlcreech636a9952008-05-05 22:52:56 +00005282 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00005283
a.rottmann9bc8b932004-02-29 15:18:31 +00005284
drh866108f2008-05-13 00:57:21 +00005285 # Check whether --enable-shared or --disable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00005286if test "${enable_shared+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005287 enableval="$enable_shared"
5288 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005289 case $enableval in
5290 yes) enable_shared=yes ;;
5291 no) enable_shared=no ;;
5292 *)
5293 enable_shared=no
5294 # Look at the argument we got. We use all the common list separators.
5295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5296 for pkg in $enableval; do
5297 IFS="$lt_save_ifs"
5298 if test "X$pkg" = "X$p"; then
5299 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00005300 fi
mlcreech636a9952008-05-05 22:52:56 +00005301 done
5302 IFS="$lt_save_ifs"
5303 ;;
5304 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00005305else
mlcreech636a9952008-05-05 22:52:56 +00005306 enable_shared=yes
drh866108f2008-05-13 00:57:21 +00005307fi;
a.rottmann9bc8b932004-02-29 15:18:31 +00005308
mlcreech636a9952008-05-05 22:52:56 +00005309
5310
5311
5312
5313
5314
5315
drh866108f2008-05-13 00:57:21 +00005316 # Check whether --enable-static or --disable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00005317if test "${enable_static+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005318 enableval="$enable_static"
5319 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005320 case $enableval in
5321 yes) enable_static=yes ;;
5322 no) enable_static=no ;;
5323 *)
5324 enable_static=no
5325 # Look at the argument we got. We use all the common list separators.
5326 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5327 for pkg in $enableval; do
5328 IFS="$lt_save_ifs"
5329 if test "X$pkg" = "X$p"; then
5330 enable_static=yes
5331 fi
5332 done
5333 IFS="$lt_save_ifs"
5334 ;;
5335 esac
5336else
5337 enable_static=yes
drh866108f2008-05-13 00:57:21 +00005338fi;
mlcreech636a9952008-05-05 22:52:56 +00005339
5340
5341
5342
5343
5344
5345
5346
5347
drh866108f2008-05-13 00:57:21 +00005348# Check whether --with-pic or --without-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00005349if test "${with_pic+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005350 withval="$with_pic"
5351 pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00005352else
5353 pic_mode=default
drh866108f2008-05-13 00:57:21 +00005354fi;
mlcreech636a9952008-05-05 22:52:56 +00005355
5356test -z "$pic_mode" && pic_mode=default
5357
5358
5359
5360
5361
5362
5363
drh866108f2008-05-13 00:57:21 +00005364 # Check whether --enable-fast-install or --disable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00005365if test "${enable_fast_install+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005366 enableval="$enable_fast_install"
5367 p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00005368 case $enableval in
5369 yes) enable_fast_install=yes ;;
5370 no) enable_fast_install=no ;;
5371 *)
5372 enable_fast_install=no
5373 # Look at the argument we got. We use all the common list separators.
5374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5375 for pkg in $enableval; do
5376 IFS="$lt_save_ifs"
5377 if test "X$pkg" = "X$p"; then
5378 enable_fast_install=yes
5379 fi
5380 done
5381 IFS="$lt_save_ifs"
5382 ;;
5383 esac
5384else
5385 enable_fast_install=yes
drh866108f2008-05-13 00:57:21 +00005386fi;
mlcreech636a9952008-05-05 22:52:56 +00005387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397# This can be used to rebuild libtool when needed
5398LIBTOOL_DEPS="$ltmain"
5399
5400# Always use our own libtool.
5401LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427test -z "$LN_S" && LN_S="ln -s"
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442if test -n "${ZSH_VERSION+set}" ; then
5443 setopt NO_GLOB_SUBST
5444fi
5445
drh866108f2008-05-13 00:57:21 +00005446echo "$as_me:$LINENO: checking for objdir" >&5
5447echo $ECHO_N "checking for objdir... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005448if test "${lt_cv_objdir+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005449 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005450else
5451 rm -f .libs 2>/dev/null
5452mkdir .libs 2>/dev/null
5453if test -d .libs; then
5454 lt_cv_objdir=.libs
5455else
5456 # MS-DOS does not allow filenames that begin with a dot.
5457 lt_cv_objdir=_libs
5458fi
5459rmdir .libs 2>/dev/null
5460fi
drh866108f2008-05-13 00:57:21 +00005461echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5462echo "${ECHO_T}$lt_cv_objdir" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005463objdir=$lt_cv_objdir
5464
5465
5466
5467
5468
mlcreech636a9952008-05-05 22:52:56 +00005469cat >>confdefs.h <<_ACEOF
5470#define LT_OBJDIR "$lt_cv_objdir/"
5471_ACEOF
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
a.rottmann9bc8b932004-02-29 15:18:31 +00005489case $host_os in
5490aix3*)
5491 # AIX sometimes has problems with the GCC collect2 program. For some
5492 # reason, if we set the COLLECT_NAMES environment variable, the problems
5493 # vanish in a puff of smoke.
5494 if test "X${COLLECT_NAMES+set}" != Xset; then
5495 COLLECT_NAMES=
5496 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00005497 fi
5498 ;;
5499esac
5500
a.rottmann9bc8b932004-02-29 15:18:31 +00005501# Sed substitution that helps us do robust quoting. It backslashifies
5502# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00005503sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00005504
5505# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00005506double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00005507
5508# Sed substitution to delay expansion of an escaped shell variable in a
5509# double_quote_subst'ed string.
5510delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5511
mlcreech636a9952008-05-05 22:52:56 +00005512# Sed substitution to delay expansion of an escaped single quote.
5513delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5514
a.rottmann9bc8b932004-02-29 15:18:31 +00005515# Sed substitution to avoid accidental globbing in evaled expressions
5516no_glob_subst='s/\*/\\\*/g'
5517
a.rottmann9bc8b932004-02-29 15:18:31 +00005518# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00005519ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00005520can_build_shared=yes
5521
vapier7f19c022007-02-17 14:46:31 +00005522# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00005523# which needs '.lib').
5524libext=a
mlcreech636a9952008-05-05 22:52:56 +00005525
a.rottmann9bc8b932004-02-29 15:18:31 +00005526with_gnu_ld="$lt_cv_prog_gnu_ld"
5527
a.rottmann84e63352003-03-24 09:42:16 +00005528old_CC="$CC"
5529old_CFLAGS="$CFLAGS"
5530
5531# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00005532test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00005533test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00005534test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00005535test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00005536test -z "$ac_objext" && ac_objext=o
5537
vapier7f19c022007-02-17 14:46:31 +00005538for cc_temp in $compiler""; do
5539 case $cc_temp in
5540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5542 \-*) ;;
5543 *) break;;
5544 esac
5545done
mlcreech636a9952008-05-05 22:52:56 +00005546cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00005547
5548
a.rottmann9bc8b932004-02-29 15:18:31 +00005549# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00005550test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00005551case $deplibs_check_method in
5552file_magic*)
5553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh866108f2008-05-13 00:57:21 +00005554 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5555echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005557 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005558else
a.rottmann9bc8b932004-02-29 15:18:31 +00005559 case $MAGIC_CMD in
5560[\\/*] | ?:[\\/]*)
5561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5562 ;;
5563*)
5564 lt_save_MAGIC_CMD="$MAGIC_CMD"
5565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5567 for ac_dir in $ac_dummy; do
5568 IFS="$lt_save_ifs"
5569 test -z "$ac_dir" && ac_dir=.
5570 if test -f $ac_dir/${ac_tool_prefix}file; then
5571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5572 if test -n "$file_magic_test_file"; then
5573 case $deplibs_check_method in
5574 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5578 $EGREP "$file_magic_regex" > /dev/null; then
5579 :
5580 else
mlcreech636a9952008-05-05 22:52:56 +00005581 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00005582
a.rottmann9bc8b932004-02-29 15:18:31 +00005583*** Warning: the command libtool uses to detect shared libraries,
5584*** $file_magic_cmd, produces output that libtool cannot recognize.
5585*** The result is that libtool may fail to recognize shared libraries
5586*** as such. This will affect the creation of libtool libraries that
5587*** depend on shared libraries, but programs linked with such libtool
5588*** libraries will work regardless of this problem. Nevertheless, you
5589*** may want to report the problem to your system manager and/or to
5590*** bug-libtool@gnu.org
5591
mlcreech636a9952008-05-05 22:52:56 +00005592_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005593 fi ;;
5594 esac
5595 fi
5596 break
5597 fi
5598 done
5599 IFS="$lt_save_ifs"
5600 MAGIC_CMD="$lt_save_MAGIC_CMD"
5601 ;;
5602esac
5603fi
5604
5605MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5606if test -n "$MAGIC_CMD"; then
drh866108f2008-05-13 00:57:21 +00005607 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5608echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005609else
drh866108f2008-05-13 00:57:21 +00005610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005612fi
5613
mlcreech636a9952008-05-05 22:52:56 +00005614
5615
5616
5617
a.rottmann9bc8b932004-02-29 15:18:31 +00005618if test -z "$lt_cv_path_MAGIC_CMD"; then
5619 if test -n "$ac_tool_prefix"; then
drh866108f2008-05-13 00:57:21 +00005620 echo "$as_me:$LINENO: checking for file" >&5
5621echo $ECHO_N "checking for file... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005622if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005623 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005624else
5625 case $MAGIC_CMD in
5626[\\/*] | ?:[\\/]*)
5627 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5628 ;;
5629*)
5630 lt_save_MAGIC_CMD="$MAGIC_CMD"
5631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5632 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5633 for ac_dir in $ac_dummy; do
5634 IFS="$lt_save_ifs"
5635 test -z "$ac_dir" && ac_dir=.
5636 if test -f $ac_dir/file; then
5637 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5638 if test -n "$file_magic_test_file"; then
5639 case $deplibs_check_method in
5640 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00005641 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00005642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5643 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5644 $EGREP "$file_magic_regex" > /dev/null; then
5645 :
5646 else
mlcreech636a9952008-05-05 22:52:56 +00005647 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00005648
5649*** Warning: the command libtool uses to detect shared libraries,
5650*** $file_magic_cmd, produces output that libtool cannot recognize.
5651*** The result is that libtool may fail to recognize shared libraries
5652*** as such. This will affect the creation of libtool libraries that
5653*** depend on shared libraries, but programs linked with such libtool
5654*** libraries will work regardless of this problem. Nevertheless, you
5655*** may want to report the problem to your system manager and/or to
5656*** bug-libtool@gnu.org
5657
mlcreech636a9952008-05-05 22:52:56 +00005658_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005659 fi ;;
5660 esac
5661 fi
5662 break
5663 fi
5664 done
5665 IFS="$lt_save_ifs"
5666 MAGIC_CMD="$lt_save_MAGIC_CMD"
5667 ;;
5668esac
5669fi
5670
5671MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5672if test -n "$MAGIC_CMD"; then
drh866108f2008-05-13 00:57:21 +00005673 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5674echo "${ECHO_T}$MAGIC_CMD" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005675else
drh866108f2008-05-13 00:57:21 +00005676 echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005678fi
5679
mlcreech636a9952008-05-05 22:52:56 +00005680
a.rottmann9bc8b932004-02-29 15:18:31 +00005681 else
5682 MAGIC_CMD=:
5683 fi
5684fi
5685
5686 fi
5687 ;;
5688esac
5689
a.rottmann9bc8b932004-02-29 15:18:31 +00005690# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00005691
a.rottmann9bc8b932004-02-29 15:18:31 +00005692lt_save_CC="$CC"
5693ac_ext=c
5694ac_cpp='$CPP $CPPFLAGS'
5695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697ac_compiler_gnu=$ac_cv_c_compiler_gnu
5698
5699
5700# Source file extension for C test sources.
5701ac_ext=c
5702
5703# Object file extension for compiled C test sources.
5704objext=o
5705objext=$objext
5706
5707# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00005708lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00005709
5710# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00005711lt_simple_link_test_code='int main(){return(0);}'
5712
5713
5714
5715
5716
a.rottmann9bc8b932004-02-29 15:18:31 +00005717
5718
5719# If no C compiler was specified, use CC.
5720LTCC=${LTCC-"$CC"}
5721
vapier7f19c022007-02-17 14:46:31 +00005722# If no C compiler flags were specified, use CFLAGS.
5723LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5724
a.rottmann9bc8b932004-02-29 15:18:31 +00005725# Allow CC to be a program name with arguments.
5726compiler=$CC
5727
mlcreech636a9952008-05-05 22:52:56 +00005728# Save the default compiler, since it gets overwritten when the other
5729# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5730compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00005731
vapier7f19c022007-02-17 14:46:31 +00005732# save warnings/boilerplate of simple test code
5733ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00005734echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00005735eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5736_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00005737$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005738
vapier7f19c022007-02-17 14:46:31 +00005739ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00005740echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00005741eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5742_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00005743$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005744
5745
mlcreech636a9952008-05-05 22:52:56 +00005746if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005747
5748lt_prog_compiler_no_builtin_flag=
5749
5750if test "$GCC" = yes; then
5751 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5752
drh866108f2008-05-13 00:57:21 +00005753 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5754echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005755if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh866108f2008-05-13 00:57:21 +00005756 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005757else
5758 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00005759 ac_outfile=conftest.$ac_objext
5760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005761 lt_compiler_flag="-fno-rtti -fno-exceptions"
5762 # Insert the option either (1) after the last *FLAGS variable, or
5763 # (2) before a word containing "conftest.", or (3) at the end.
5764 # Note that $ac_compile itself does not contain backslashes and begins
5765 # with a dollar sign (not a hyphen), so the echo should work correctly.
5766 # The option is referenced via a variable to avoid confusing sed.
5767 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00005768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00005769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5770 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00005771 (eval echo "\"\$as_me:5771: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00005772 (eval "$lt_compile" 2>conftest.err)
5773 ac_status=$?
5774 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00005775 echo "$as_me:5775: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005776 if (exit $ac_status) && test -s "$ac_outfile"; then
5777 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00005778 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00005779 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00005780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005782 lt_cv_prog_compiler_rtti_exceptions=yes
5783 fi
5784 fi
mlcreech636a9952008-05-05 22:52:56 +00005785 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00005786
5787fi
drh866108f2008-05-13 00:57:21 +00005788echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5789echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005790
5791if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5793else
5794 :
5795fi
5796
5797fi
5798
mlcreech636a9952008-05-05 22:52:56 +00005799
5800
5801
5802
5803
5804 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00005805lt_prog_compiler_pic=
5806lt_prog_compiler_static=
5807
drh866108f2008-05-13 00:57:21 +00005808echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00005810
drh71eb93e2001-09-28 01:34:43 +00005811 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005812 lt_prog_compiler_wl='-Wl,'
5813 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00005814
5815 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005816 aix*)
5817 # All AIX code is PIC.
5818 if test "$host_cpu" = ia64; then
5819 # AIX 5 now supports IA64 processor
5820 lt_prog_compiler_static='-Bstatic'
5821 fi
drh71eb93e2001-09-28 01:34:43 +00005822 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005823
drh71eb93e2001-09-28 01:34:43 +00005824 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00005825 case $host_cpu in
5826 powerpc)
5827 # see comment about AmigaOS4 .so support
5828 lt_prog_compiler_pic='-fPIC'
5829 ;;
5830 m68k)
5831 # FIXME: we need at least 68020 code to build shared libraries, but
5832 # adding the `-m68020' flag to GCC prevents building anything better,
5833 # like `-m68040'.
5834 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5835 ;;
5836 esac
drh71eb93e2001-09-28 01:34:43 +00005837 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005838
mlcreech636a9952008-05-05 22:52:56 +00005839 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00005840 # PIC is the default for these OSes.
5841 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005842
mlcreech636a9952008-05-05 22:52:56 +00005843 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005844 # This hack is so that the source file can tell whether it is being
5845 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00005846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5847 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00005848 lt_prog_compiler_pic='-DDLL_EXPORT'
5849 ;;
5850
drh71eb93e2001-09-28 01:34:43 +00005851 darwin* | rhapsody*)
5852 # PIC is the default on this platform
5853 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00005854 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00005855 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005856
a.rottmann9bc8b932004-02-29 15:18:31 +00005857 hpux*)
5858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5859 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005860 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005861 hppa*64*|ia64*)
5862 # +Z the default
5863 ;;
5864 *)
5865 lt_prog_compiler_pic='-fPIC'
5866 ;;
5867 esac
5868 ;;
5869
mlcreech636a9952008-05-05 22:52:56 +00005870 interix[3-9]*)
5871 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5872 # Instead, we relocate shared libraries at runtime.
5873 ;;
5874
5875 msdosdjgpp*)
5876 # Just because we use GCC doesn't mean we suddenly get shared libraries
5877 # on systems that don't support them.
5878 lt_prog_compiler_can_build_shared=no
5879 enable_shared=no
5880 ;;
5881
5882 *nto* | *qnx*)
5883 # QNX uses GNU C++, but need to define -shared option too, otherwise
5884 # it will coredump.
5885 lt_prog_compiler_pic='-fPIC -shared'
5886 ;;
5887
5888 sysv4*MP*)
5889 if test -d /usr/nec; then
5890 lt_prog_compiler_pic=-Kconform_pic
5891 fi
5892 ;;
5893
drh71eb93e2001-09-28 01:34:43 +00005894 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00005895 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00005896 ;;
5897 esac
5898 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005899 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00005900 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00005901 aix*)
5902 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005903 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00005904 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00005905 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00005906 else
a.rottmann9bc8b932004-02-29 15:18:31 +00005907 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00005908 fi
5909 ;;
5910
mlcreech636a9952008-05-05 22:52:56 +00005911 mingw* | cygwin* | pw32* | os2*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005912 # This hack is so that the source file can tell whether it is being
5913 # built for inclusion in a dll (and should export symbols for example).
5914 lt_prog_compiler_pic='-DDLL_EXPORT'
5915 ;;
5916
a.rottmann84e63352003-03-24 09:42:16 +00005917 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005918 lt_prog_compiler_wl='-Wl,'
5919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5920 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00005921 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00005922 hppa*64*|ia64*)
5923 # +Z the default
5924 ;;
5925 *)
5926 lt_prog_compiler_pic='+Z'
5927 ;;
5928 esac
5929 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5930 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00005931 ;;
5932
5933 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005934 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00005935 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00005936 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005937 ;;
5938
mlcreech636a9952008-05-05 22:52:56 +00005939 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00005940 case $cc_basename in
mlcreech636a9952008-05-05 22:52:56 +00005941 icc* | ecc* | ifort*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005942 lt_prog_compiler_wl='-Wl,'
5943 lt_prog_compiler_pic='-KPIC'
5944 lt_prog_compiler_static='-static'
5945 ;;
vapier7f19c022007-02-17 14:46:31 +00005946 pgcc* | pgf77* | pgf90* | pgf95*)
5947 # Portland Group compilers (*not* the Pentium gcc compiler,
5948 # which looks to be a dead project)
5949 lt_prog_compiler_wl='-Wl,'
5950 lt_prog_compiler_pic='-fpic'
5951 lt_prog_compiler_static='-Bstatic'
5952 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005953 ccc*)
5954 lt_prog_compiler_wl='-Wl,'
5955 # All Alpha code is PIC.
5956 lt_prog_compiler_static='-non_shared'
5957 ;;
mlcreech636a9952008-05-05 22:52:56 +00005958 xl*)
5959 # IBM XL C 8.0/Fortran 10.1 on PPC
5960 lt_prog_compiler_wl='-Wl,'
5961 lt_prog_compiler_pic='-qpic'
5962 lt_prog_compiler_static='-qstaticlink'
5963 ;;
5964 *)
5965 case `$CC -V 2>&1 | sed 5q` in
5966 *Sun\ C*)
5967 # Sun C 5.9
5968 lt_prog_compiler_pic='-KPIC'
5969 lt_prog_compiler_static='-Bstatic'
5970 lt_prog_compiler_wl='-Wl,'
5971 ;;
5972 *Sun\ F*)
5973 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5974 lt_prog_compiler_pic='-KPIC'
5975 lt_prog_compiler_static='-Bstatic'
5976 lt_prog_compiler_wl=''
5977 ;;
5978 esac
5979 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005980 esac
drh71eb93e2001-09-28 01:34:43 +00005981 ;;
5982
mlcreech636a9952008-05-05 22:52:56 +00005983 newsos6)
5984 lt_prog_compiler_pic='-KPIC'
5985 lt_prog_compiler_static='-Bstatic'
5986 ;;
5987
5988 *nto* | *qnx*)
5989 # QNX uses GNU C++, but need to define -shared option too, otherwise
5990 # it will coredump.
5991 lt_prog_compiler_pic='-fPIC -shared'
5992 ;;
5993
drh71eb93e2001-09-28 01:34:43 +00005994 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005995 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00005996 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00005997 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00005998 ;;
5999
mlcreech636a9952008-05-05 22:52:56 +00006000 rdos*)
6001 lt_prog_compiler_static='-non_shared'
6002 ;;
6003
drh71eb93e2001-09-28 01:34:43 +00006004 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006005 lt_prog_compiler_pic='-KPIC'
6006 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006007 case $cc_basename in
6008 f77* | f90* | f95*)
6009 lt_prog_compiler_wl='-Qoption ld ';;
6010 *)
6011 lt_prog_compiler_wl='-Wl,';;
6012 esac
drh71eb93e2001-09-28 01:34:43 +00006013 ;;
6014
6015 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006016 lt_prog_compiler_wl='-Qoption ld '
6017 lt_prog_compiler_pic='-PIC'
6018 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006019 ;;
6020
vapier7f19c022007-02-17 14:46:31 +00006021 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006022 lt_prog_compiler_wl='-Wl,'
6023 lt_prog_compiler_pic='-KPIC'
6024 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006025 ;;
6026
6027 sysv4*MP*)
6028 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006029 lt_prog_compiler_pic='-Kconform_pic'
6030 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006031 fi
6032 ;;
6033
vapier7f19c022007-02-17 14:46:31 +00006034 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6035 lt_prog_compiler_wl='-Wl,'
6036 lt_prog_compiler_pic='-KPIC'
6037 lt_prog_compiler_static='-Bstatic'
6038 ;;
6039
6040 unicos*)
6041 lt_prog_compiler_wl='-Wl,'
6042 lt_prog_compiler_can_build_shared=no
6043 ;;
6044
a.rottmann9bc8b932004-02-29 15:18:31 +00006045 uts4*)
6046 lt_prog_compiler_pic='-pic'
6047 lt_prog_compiler_static='-Bstatic'
6048 ;;
6049
drh71eb93e2001-09-28 01:34:43 +00006050 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006051 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006052 ;;
6053 esac
6054 fi
6055
mlcreech636a9952008-05-05 22:52:56 +00006056case $host_os in
6057 # For platforms which do not support PIC, -DPIC is meaningless:
6058 *djgpp*)
6059 lt_prog_compiler_pic=
6060 ;;
6061 *)
6062 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6063 ;;
6064esac
drh866108f2008-05-13 00:57:21 +00006065echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6066echo "${ECHO_T}$lt_prog_compiler_pic" >&6
mlcreech636a9952008-05-05 22:52:56 +00006067
6068
6069
6070
6071
drh71eb93e2001-09-28 01:34:43 +00006072
a.rottmann9bc8b932004-02-29 15:18:31 +00006073#
6074# Check to make sure the PIC flag actually works.
6075#
6076if test -n "$lt_prog_compiler_pic"; then
drh866108f2008-05-13 00:57:21 +00006077 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006079if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006080 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006081else
mlcreech636a9952008-05-05 22:52:56 +00006082 lt_cv_prog_compiler_pic_works=no
6083 ac_outfile=conftest.$ac_objext
6084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006085 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6086 # Insert the option either (1) after the last *FLAGS variable, or
6087 # (2) before a word containing "conftest.", or (3) at the end.
6088 # Note that $ac_compile itself does not contain backslashes and begins
6089 # with a dollar sign (not a hyphen), so the echo should work correctly.
6090 # The option is referenced via a variable to avoid confusing sed.
6091 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6094 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006095 (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006096 (eval "$lt_compile" 2>conftest.err)
6097 ac_status=$?
6098 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006099 echo "$as_me:6099: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006100 if (exit $ac_status) && test -s "$ac_outfile"; then
6101 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006102 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006103 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006106 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006107 fi
6108 fi
mlcreech636a9952008-05-05 22:52:56 +00006109 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006110
a.rottmann9bc8b932004-02-29 15:18:31 +00006111fi
drh866108f2008-05-13 00:57:21 +00006112echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
6113echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
drh71eb93e2001-09-28 01:34:43 +00006114
mlcreech636a9952008-05-05 22:52:56 +00006115if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006116 case $lt_prog_compiler_pic in
6117 "" | " "*) ;;
6118 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6119 esac
drh71eb93e2001-09-28 01:34:43 +00006120else
a.rottmann9bc8b932004-02-29 15:18:31 +00006121 lt_prog_compiler_pic=
6122 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00006123fi
6124
a.rottmann84e63352003-03-24 09:42:16 +00006125fi
mlcreech636a9952008-05-05 22:52:56 +00006126
6127
6128
6129
6130
a.rottmann84e63352003-03-24 09:42:16 +00006131
vapier7f19c022007-02-17 14:46:31 +00006132#
6133# Check to make sure the static flag actually works.
6134#
6135wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh866108f2008-05-13 00:57:21 +00006136echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6137echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006138if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006139 echo $ECHO_N "(cached) $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +00006140else
mlcreech636a9952008-05-05 22:52:56 +00006141 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00006142 save_LDFLAGS="$LDFLAGS"
6143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00006144 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6146 # The linker can only warn and ignore the option if not recognized
6147 # So say no if there are warnings
6148 if test -s conftest.err; then
6149 # Append any errors to the config.log.
6150 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00006151 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6153 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00006154 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00006155 fi
6156 else
mlcreech636a9952008-05-05 22:52:56 +00006157 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00006158 fi
6159 fi
mlcreech636a9952008-05-05 22:52:56 +00006160 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00006161 LDFLAGS="$save_LDFLAGS"
6162
6163fi
drh866108f2008-05-13 00:57:21 +00006164echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
6165echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
vapier7f19c022007-02-17 14:46:31 +00006166
mlcreech636a9952008-05-05 22:52:56 +00006167if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00006168 :
6169else
6170 lt_prog_compiler_static=
6171fi
6172
6173
mlcreech636a9952008-05-05 22:52:56 +00006174
6175
6176
6177
6178
drh866108f2008-05-13 00:57:21 +00006179 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6180echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006181if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006182 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006183else
a.rottmann9bc8b932004-02-29 15:18:31 +00006184 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00006185 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00006186 mkdir conftest
6187 cd conftest
6188 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00006189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00006190
a.rottmann9bc8b932004-02-29 15:18:31 +00006191 lt_compiler_flag="-o out/conftest2.$ac_objext"
6192 # Insert the option either (1) after the last *FLAGS variable, or
6193 # (2) before a word containing "conftest.", or (3) at the end.
6194 # Note that $ac_compile itself does not contain backslashes and begins
6195 # with a dollar sign (not a hyphen), so the echo should work correctly.
6196 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6199 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006200 (eval echo "\"\$as_me:6200: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006201 (eval "$lt_compile" 2>out/conftest.err)
6202 ac_status=$?
6203 cat out/conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006204 echo "$as_me:6204: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006205 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6206 then
6207 # The compiler can only warn and ignore the option if not recognized
6208 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00006209 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006212 lt_cv_prog_compiler_c_o=yes
6213 fi
6214 fi
vapier7f19c022007-02-17 14:46:31 +00006215 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00006216 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006217 # SGI C++ compiler will create directory out/ii_files/ for
6218 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00006219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6220 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00006221 cd ..
mlcreech636a9952008-05-05 22:52:56 +00006222 $RM -r conftest
6223 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006224
6225fi
drh866108f2008-05-13 00:57:21 +00006226echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6227echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mlcreech636a9952008-05-05 22:52:56 +00006228
6229
6230
6231
6232
6233
drh866108f2008-05-13 00:57:21 +00006234 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6235echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006236if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh866108f2008-05-13 00:57:21 +00006237 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00006238else
6239 lt_cv_prog_compiler_c_o=no
6240 $RM -r conftest 2>/dev/null
6241 mkdir conftest
6242 cd conftest
6243 mkdir out
6244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6245
6246 lt_compiler_flag="-o out/conftest2.$ac_objext"
6247 # Insert the option either (1) after the last *FLAGS variable, or
6248 # (2) before a word containing "conftest.", or (3) at the end.
6249 # Note that $ac_compile itself does not contain backslashes and begins
6250 # with a dollar sign (not a hyphen), so the echo should work correctly.
6251 lt_compile=`echo "$ac_compile" | $SED \
6252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6254 -e 's:$: $lt_compiler_flag:'`
drh866108f2008-05-13 00:57:21 +00006255 (eval echo "\"\$as_me:6255: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00006256 (eval "$lt_compile" 2>out/conftest.err)
6257 ac_status=$?
6258 cat out/conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006259 echo "$as_me:6259: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00006260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6261 then
6262 # The compiler can only warn and ignore the option if not recognized
6263 # So say no if there are warnings
6264 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6267 lt_cv_prog_compiler_c_o=yes
6268 fi
6269 fi
6270 chmod u+w . 2>&5
6271 $RM conftest*
6272 # SGI C++ compiler will create directory out/ii_files/ for
6273 # template instantiation
6274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6275 $RM out/* && rmdir out
6276 cd ..
6277 $RM -r conftest
6278 $RM conftest*
6279
6280fi
drh866108f2008-05-13 00:57:21 +00006281echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6282echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
mlcreech636a9952008-05-05 22:52:56 +00006283
6284
drh71eb93e2001-09-28 01:34:43 +00006285
a.rottmann84e63352003-03-24 09:42:16 +00006286
drh71eb93e2001-09-28 01:34:43 +00006287hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00006288if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00006289 # do not overwrite the value of need_locks provided by the user
drh866108f2008-05-13 00:57:21 +00006290 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6291echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00006292 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00006293 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00006294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6295 touch conftest.a
6296 ln conftest.a conftest.b 2>&5 || hard_links=no
6297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh866108f2008-05-13 00:57:21 +00006298 echo "$as_me:$LINENO: result: $hard_links" >&5
6299echo "${ECHO_T}$hard_links" >&6
drh71eb93e2001-09-28 01:34:43 +00006300 if test "$hard_links" = no; then
drh866108f2008-05-13 00:57:21 +00006301 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6302echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00006303 need_locks=warn
6304 fi
6305else
6306 need_locks=no
6307fi
6308
mlcreech636a9952008-05-05 22:52:56 +00006309
6310
6311
6312
6313
drh866108f2008-05-13 00:57:21 +00006314 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006316
6317 runpath_var=
6318 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00006319 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006320 archive_cmds=
6321 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00006322 compiler_needs_object=no
6323 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006324 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00006325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6326 hardcode_automatic=no
6327 hardcode_direct=no
6328 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006329 hardcode_libdir_flag_spec=
6330 hardcode_libdir_flag_spec_ld=
6331 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00006332 hardcode_minus_L=no
6333 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00006334 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006335 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00006336 module_cmds=
6337 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00006338 old_archive_from_new_cmds=
6339 old_archive_from_expsyms_cmds=
6340 thread_safe_flag_spec=
6341 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006342 # include_expsyms should be a list of space-separated symbols to be *always*
6343 # included in the symbol list
6344 include_expsyms=
6345 # exclude_expsyms can be an extended regexp of symbols to exclude
6346 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6347 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6348 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00006349 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00006350 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6351 # platforms (ab)use it in PIC code, but their linkers get confused if
6352 # the symbol is explicitly referenced. Since portable code cannot
6353 # rely on this symbol name, it's probably fine to never include it in
6354 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00006355 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00006356 extract_expsyms_cmds=
6357
6358 case $host_os in
6359 cygwin* | mingw* | pw32*)
6360 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6361 # When not using gcc, we currently assume that we are using
6362 # Microsoft Visual C++.
6363 if test "$GCC" != yes; then
6364 with_gnu_ld=no
6365 fi
6366 ;;
vapier7f19c022007-02-17 14:46:31 +00006367 interix*)
6368 # we just hope/assume this is gcc and not c89 (= MSVC++)
6369 with_gnu_ld=yes
6370 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006371 openbsd*)
6372 with_gnu_ld=no
6373 ;;
6374 esac
6375
6376 ld_shlibs=yes
6377 if test "$with_gnu_ld" = yes; then
6378 # If archive_cmds runs LD, not CC, wlarc should be empty
6379 wlarc='${wl}'
6380
vapier7f19c022007-02-17 14:46:31 +00006381 # Set some defaults for GNU ld with shared library support. These
6382 # are reset later if shared libraries are not supported. Putting them
6383 # here allows them to be overridden if necessary.
6384 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00006385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00006386 export_dynamic_flag_spec='${wl}--export-dynamic'
6387 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00006388 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6389 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6390 else
6391 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00006392 fi
6393 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00006394 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00006395 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6398 *\ 2.11.*) ;; # other 2.11 versions
6399 *) supports_anon_versioning=yes ;;
6400 esac
6401
a.rottmann9bc8b932004-02-29 15:18:31 +00006402 # See if GNU ld supports shared libraries.
6403 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00006404 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006405 # On AIX/PPC, the GNU linker is very broken
6406 if test "$host_cpu" != ia64; then
6407 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00006408 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006409
6410*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6411*** to be unable to reliably create shared libraries on AIX.
6412*** Therefore, libtool is disabling shared libraries support. If you
6413*** really care for shared libraries, you may want to modify your PATH
6414*** so that a non-GNU linker is found, and then restart.
6415
mlcreech636a9952008-05-05 22:52:56 +00006416_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006417 fi
6418 ;;
6419
6420 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006421 case $host_cpu in
6422 powerpc)
6423 # see comment about AmigaOS4 .so support
6424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6425 archive_expsym_cmds=''
6426 ;;
6427 m68k)
6428 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)'
6429 hardcode_libdir_flag_spec='-L$libdir'
6430 hardcode_minus_L=yes
6431 ;;
6432 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006433 ;;
6434
6435 beos*)
mlcreech636a9952008-05-05 22:52:56 +00006436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006437 allow_undefined_flag=unsupported
6438 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6439 # support --undefined. This deserves some investigation. FIXME
6440 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6441 else
6442 ld_shlibs=no
6443 fi
6444 ;;
6445
6446 cygwin* | mingw* | pw32*)
mlcreech636a9952008-05-05 22:52:56 +00006447 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00006448 # as there is no search path for DLLs.
6449 hardcode_libdir_flag_spec='-L$libdir'
6450 allow_undefined_flag=unsupported
6451 always_export_symbols=no
6452 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00006453 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 +00006454
mlcreech636a9952008-05-05 22:52:56 +00006455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00006456 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 +00006457 # If the export-symbols file already is a .def file (1st line
6458 # is EXPORTS), use it as is; otherwise, prepend...
6459 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6460 cp $export_symbols $output_objdir/$soname.def;
6461 else
6462 echo EXPORTS > $output_objdir/$soname.def;
6463 cat $export_symbols >> $output_objdir/$soname.def;
6464 fi~
vapier7f19c022007-02-17 14:46:31 +00006465 $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 +00006466 else
6467 ld_shlibs=no
6468 fi
6469 ;;
6470
mlcreech636a9952008-05-05 22:52:56 +00006471 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00006472 hardcode_direct=no
6473 hardcode_shlibpath_var=no
6474 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6475 export_dynamic_flag_spec='${wl}-E'
6476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6477 # Instead, shared libraries are loaded at an image base (0x10000000 by
6478 # default) and relocated if they conflict, which is a slow very memory
6479 # consuming and fragmenting process. To avoid this, we pick a random,
6480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6481 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6483 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'
6484 ;;
6485
mlcreech636a9952008-05-05 22:52:56 +00006486 gnu* | linux* | tpf* | k*bsd*-gnu)
6487 tmp_diet=no
6488 if test "$host_os" = linux-dietlibc; then
6489 case $cc_basename in
6490 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6491 esac
6492 fi
6493 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6494 && test "$tmp_diet" = no
6495 then
vapier7f19c022007-02-17 14:46:31 +00006496 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00006497 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00006498 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00006499 pgcc*) # Portland Group C compiler
6500 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'
vapier7f19c022007-02-17 14:46:31 +00006501 tmp_addflag=' $pic_flag'
6502 ;;
6503 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00006504 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'
vapier7f19c022007-02-17 14:46:31 +00006505 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00006506 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00006507 tmp_addflag=' -i_dynamic' ;;
6508 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6509 tmp_addflag=' -i_dynamic -nofor_main' ;;
6510 ifc* | ifort*) # Intel Fortran compiler
6511 tmp_addflag=' -nofor_main' ;;
mlcreech636a9952008-05-05 22:52:56 +00006512 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
6513 tmp_sharedflag='-qmkshrobj'
6514 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00006515 esac
mlcreech636a9952008-05-05 22:52:56 +00006516 case `$CC -V 2>&1 | sed 5q` in
6517 *Sun\ C*) # Sun C 5.9
6518 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6519 compiler_needs_object=yes
6520 tmp_sharedflag='-G' ;;
6521 *Sun\ F*) # Sun Fortran 8.3
6522 tmp_sharedflag='-G' ;;
6523 esac
6524 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00006525
mlcreech636a9952008-05-05 22:52:56 +00006526 if test "x$supports_anon_versioning" = xyes; then
6527 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6529 echo "local: *; };" >> $output_objdir/$libname.ver~
6530 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6531 fi
6532
6533 case $cc_basename in
6534 xlf*)
6535 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
6536 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
6537 hardcode_libdir_flag_spec=
6538 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6539 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
6540 if test "x$supports_anon_versioning" = xyes; then
6541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6543 echo "local: *; };" >> $output_objdir/$libname.ver~
6544 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
6545 fi
6546 ;;
6547 esac
vapier7f19c022007-02-17 14:46:31 +00006548 else
mlcreech636a9952008-05-05 22:52:56 +00006549 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00006550 fi
6551 ;;
6552
6553 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00006554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006555 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6556 wlarc=
6557 else
6558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6560 fi
6561 ;;
6562
vapier7f19c022007-02-17 14:46:31 +00006563 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00006564 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006565 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00006566 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006567
6568*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6569*** create shared libraries on Solaris systems. Therefore, libtool
6570*** is disabling shared libraries support. We urge you to upgrade GNU
6571*** binutils to release 2.9.1 or newer. Another option is to modify
6572*** your PATH or compiler configuration so that the native linker is
6573*** used, and then restart.
6574
mlcreech636a9952008-05-05 22:52:56 +00006575_LT_EOF
6576 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6579 else
6580 ld_shlibs=no
6581 fi
6582 ;;
6583
vapier7f19c022007-02-17 14:46:31 +00006584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6585 case `$LD -v 2>&1` in
6586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6587 ld_shlibs=no
6588 cat <<_LT_EOF 1>&2
6589
6590*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6591*** reliably create shared libraries on SCO systems. Therefore, libtool
6592*** is disabling shared libraries support. We urge you to upgrade GNU
6593*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6594*** your PATH or compiler configuration so that the native linker is
6595*** used, and then restart.
6596
6597_LT_EOF
6598 ;;
6599 *)
mlcreech636a9952008-05-05 22:52:56 +00006600 # For security reasons, it is highly recommended that you always
6601 # use absolute paths for naming shared libraries, and exclude the
6602 # DT_RUNPATH tag from executables and libraries. But doing so
6603 # requires that you compile everything twice, which is a pain.
6604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6607 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
vapier7f19c022007-02-17 14:46:31 +00006608 else
6609 ld_shlibs=no
6610 fi
6611 ;;
6612 esac
6613 ;;
6614
a.rottmann9bc8b932004-02-29 15:18:31 +00006615 sunos4*)
6616 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6617 wlarc=
6618 hardcode_direct=yes
6619 hardcode_shlibpath_var=no
6620 ;;
6621
a.rottmann9bc8b932004-02-29 15:18:31 +00006622 *)
mlcreech636a9952008-05-05 22:52:56 +00006623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6626 else
6627 ld_shlibs=no
6628 fi
6629 ;;
6630 esac
6631
vapier7f19c022007-02-17 14:46:31 +00006632 if test "$ld_shlibs" = no; then
6633 runpath_var=
6634 hardcode_libdir_flag_spec=
6635 export_dynamic_flag_spec=
6636 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00006637 fi
6638 else
6639 # PORTME fill in a description of your system's linker (not GNU ld)
6640 case $host_os in
6641 aix3*)
6642 allow_undefined_flag=unsupported
6643 always_export_symbols=yes
6644 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'
6645 # Note: this linker hardcodes the directories in LIBPATH if there
6646 # are no directories specified by -L.
6647 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00006648 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006649 # Neither direct hardcoding nor static linking is supported with a
6650 # broken collect2.
6651 hardcode_direct=unsupported
6652 fi
6653 ;;
6654
mlcreech636a9952008-05-05 22:52:56 +00006655 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006656 if test "$host_cpu" = ia64; then
6657 # On IA64, the linker does run time linking by default, so we don't
6658 # have to do anything special.
6659 aix_use_runtimelinking=no
6660 exp_sym_flag='-Bexport'
6661 no_entry_flag=""
6662 else
6663 # If we're using GNU nm, then we don't want the "-C" option.
6664 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00006665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6666 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00006667 else
mlcreech636a9952008-05-05 22:52:56 +00006668 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00006669 fi
6670 aix_use_runtimelinking=no
6671
6672 # Test if we are trying to use run time linking or normal
6673 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6674 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00006675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00006677 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6678 aix_use_runtimelinking=yes
6679 break
6680 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006681 done
vapier7f19c022007-02-17 14:46:31 +00006682 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006683 esac
6684
6685 exp_sym_flag='-bexport'
6686 no_entry_flag='-bnoentry'
6687 fi
6688
6689 # When large executables or shared objects are built, AIX ld can
6690 # have problems creating the table of contents. If linking a library
6691 # or program results in "error TOC overflow" add -mminimal-toc to
6692 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6693 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6694
6695 archive_cmds=''
6696 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00006697 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006698 hardcode_libdir_separator=':'
6699 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00006700 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00006701
6702 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00006703 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006704 # We only want to do this on AIX 4.2 and lower, the check
6705 # below for broken collect2 doesn't work under 4.3+
6706 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00006707 if test -f "$collect2name" &&
6708 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00006709 then
mlcreech636a9952008-05-05 22:52:56 +00006710 # We have reworked collect2
6711 :
a.rottmann9bc8b932004-02-29 15:18:31 +00006712 else
mlcreech636a9952008-05-05 22:52:56 +00006713 # We have old collect2
6714 hardcode_direct=unsupported
6715 # It fails to find uninstalled libraries when the uninstalled
6716 # path is not listed in the libpath. Setting hardcode_minus_L
6717 # to unsupported forces relinking
6718 hardcode_minus_L=yes
6719 hardcode_libdir_flag_spec='-L$libdir'
6720 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 fi
vapier7f19c022007-02-17 14:46:31 +00006722 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006723 esac
6724 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00006725 if test "$aix_use_runtimelinking" = yes; then
6726 shared_flag="$shared_flag "'${wl}-G'
6727 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006728 else
6729 # not using gcc
6730 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00006731 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6732 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00006733 shared_flag='-G'
6734 else
vapier7f19c022007-02-17 14:46:31 +00006735 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006736 shared_flag='${wl}-G'
6737 else
6738 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00006739 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006740 fi
6741 fi
6742
6743 # It seems that -bexpall does not export symbols beginning with
6744 # underscore (_), so it is better to generate a list of symbols to export.
6745 always_export_symbols=yes
6746 if test "$aix_use_runtimelinking" = yes; then
6747 # Warning - without using the other runtime loading flags (-brtl),
6748 # -berok will link without error, but may produce a broken library.
6749 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00006750 # Determine the default libpath from the value encoded in an
6751 # empty executable.
6752 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006753/* confdefs.h. */
6754_ACEOF
6755cat confdefs.h >>conftest.$ac_ext
6756cat >>conftest.$ac_ext <<_ACEOF
6757/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00006758
a.rottmann84e63352003-03-24 09:42:16 +00006759int
6760main ()
6761{
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
a.rottmann84e63352003-03-24 09:42:16 +00006763 ;
6764 return 0;
6765}
6766_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006767rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00006768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006770 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006789
mlcreech636a9952008-05-05 22:52:56 +00006790lt_aix_libpath_sed='
6791 /Import File Strings/,/^$/ {
6792 /^0/ {
6793 s/^0 *\(.*\)$/\1/
6794 p
6795 }
6796 }'
6797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006798# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00006799if test -z "$aix_libpath"; then
6800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6801fi
a.rottmann84e63352003-03-24 09:42:16 +00006802else
drh866108f2008-05-13 00:57:21 +00006803 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006804sed 's/^/| /' conftest.$ac_ext >&5
6805
6806fi
drh866108f2008-05-13 00:57:21 +00006807rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 conftest$ac_exeext conftest.$ac_ext
6809if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006810
mlcreech636a9952008-05-05 22:52:56 +00006811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6812 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6813 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 if test "$host_cpu" = ia64; then
6815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6816 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00006817 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 +00006818 else
mlcreech636a9952008-05-05 22:52:56 +00006819 # Determine the default libpath from the value encoded in an
6820 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00006821 cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00006827
a.rottmann9bc8b932004-02-29 15:18:31 +00006828int
6829main ()
6830{
a.rottmann84e63352003-03-24 09:42:16 +00006831
a.rottmann9bc8b932004-02-29 15:18:31 +00006832 ;
6833 return 0;
6834}
6835_ACEOF
6836rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00006837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6838 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00006839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00006843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -z "$ac_c_werror_flag"
6846 || test ! -s conftest.err'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; } &&
6852 { ac_try='test -s conftest$ac_exeext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00006858
mlcreech636a9952008-05-05 22:52:56 +00006859lt_aix_libpath_sed='
6860 /Import File Strings/,/^$/ {
6861 /^0/ {
6862 s/^0 *\(.*\)$/\1/
6863 p
6864 }
6865 }'
6866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006867# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00006868if test -z "$aix_libpath"; then
6869 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6870fi
a.rottmann84e63352003-03-24 09:42:16 +00006871else
drh866108f2008-05-13 00:57:21 +00006872 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006873sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00006874
a.rottmann9bc8b932004-02-29 15:18:31 +00006875fi
drh866108f2008-05-13 00:57:21 +00006876rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00006877 conftest$ac_exeext conftest.$ac_ext
6878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00006879
a.rottmann9bc8b932004-02-29 15:18:31 +00006880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6881 # Warning - without using the other run time loading flags,
6882 # -berok will link without error, but may produce a broken library.
6883 no_undefined_flag=' ${wl}-bernotok'
6884 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00006885 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00006886 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00006887 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00006888 # This is similar to how AIX traditionally builds its shared libraries.
6889 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 +00006890 fi
6891 fi
a.rottmann84e63352003-03-24 09:42:16 +00006892 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006893
6894 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006895 case $host_cpu in
6896 powerpc)
6897 # see comment about AmigaOS4 .so support
6898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6899 archive_expsym_cmds=''
6900 ;;
6901 m68k)
6902 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)'
6903 hardcode_libdir_flag_spec='-L$libdir'
6904 hardcode_minus_L=yes
6905 ;;
6906 esac
a.rottmann84e63352003-03-24 09:42:16 +00006907 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006908
vapier7f19c022007-02-17 14:46:31 +00006909 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 export_dynamic_flag_spec=-rdynamic
6911 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006912
a.rottmann9bc8b932004-02-29 15:18:31 +00006913 cygwin* | mingw* | pw32*)
6914 # When not using gcc, we currently assume that we are using
6915 # Microsoft Visual C++.
6916 # hardcode_libdir_flag_spec is actually meaningless, as there is
6917 # no search path for DLLs.
6918 hardcode_libdir_flag_spec=' '
6919 allow_undefined_flag=unsupported
6920 # Tell ltmain to make .lib files, not .a files.
6921 libext=lib
6922 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00006923 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00006925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
a.rottmann9bc8b932004-02-29 15:18:31 +00006926 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00006927 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00006928 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00006929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00006930 fix_srcfile_path='`cygpath -w "$srcfile"`'
6931 enable_shared_with_static_runtimes=yes
6932 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006933
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00006935
6936
6937 archive_cmds_need_lc=no
6938 hardcode_direct=no
6939 hardcode_automatic=yes
6940 hardcode_shlibpath_var=unsupported
6941 whole_archive_flag_spec=''
6942 link_all_deplibs=yes
6943 allow_undefined_flag="$_lt_dar_allow_undefined"
6944 if test "$GCC" = "yes"; then
6945 output_verbose_link_cmd=echo
6946 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6947 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6948 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6949 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6950
6951 else
6952 ld_shlibs=no
6953 fi
6954
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006956
a.rottmann9bc8b932004-02-29 15:18:31 +00006957 dgux*)
6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_libdir_flag_spec='-L$libdir'
6960 hardcode_shlibpath_var=no
6961 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006962
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 freebsd1*)
6964 ld_shlibs=no
6965 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006966
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6968 # support. Future versions do this automatically, but an explicit c++rt0.o
6969 # does not break anything, and helps significantly (at the cost of a little
6970 # extra space).
6971 freebsd2.2*)
6972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6973 hardcode_libdir_flag_spec='-R$libdir'
6974 hardcode_direct=yes
6975 hardcode_shlibpath_var=no
6976 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006977
a.rottmann9bc8b932004-02-29 15:18:31 +00006978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6979 freebsd2*)
6980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6981 hardcode_direct=yes
6982 hardcode_minus_L=yes
6983 hardcode_shlibpath_var=no
6984 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006985
a.rottmann9bc8b932004-02-29 15:18:31 +00006986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00006987 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006988 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6989 hardcode_libdir_flag_spec='-R$libdir'
6990 hardcode_direct=yes
6991 hardcode_shlibpath_var=no
6992 ;;
a.rottmann84e63352003-03-24 09:42:16 +00006993
a.rottmann9bc8b932004-02-29 15:18:31 +00006994 hpux9*)
6995 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00006996 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 else
mlcreech636a9952008-05-05 22:52:56 +00006998 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'
a.rottmann9bc8b932004-02-29 15:18:31 +00006999 fi
7000 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7001 hardcode_libdir_separator=:
7002 hardcode_direct=yes
7003
7004 # hardcode_minus_L: Not really in the search PATH,
7005 # but as the default location of the library.
7006 hardcode_minus_L=yes
7007 export_dynamic_flag_spec='${wl}-E'
7008 ;;
7009
vapier7f19c022007-02-17 14:46:31 +00007010 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7013 else
7014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7015 fi
7016 if test "$with_gnu_ld" = no; then
7017 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007018 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007019 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007020 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007021 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007022 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007023 # hardcode_minus_L: Not really in the search PATH,
7024 # but as the default location of the library.
7025 hardcode_minus_L=yes
7026 fi
7027 ;;
7028
7029 hpux11*)
7030 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7031 case $host_cpu in
7032 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007033 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7034 ;;
vapier7f19c022007-02-17 14:46:31 +00007035 ia64*)
7036 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7037 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007038 *)
7039 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7040 ;;
7041 esac
7042 else
vapier7f19c022007-02-17 14:46:31 +00007043 case $host_cpu in
7044 hppa*64*)
7045 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7046 ;;
7047 ia64*)
7048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007049 ;;
7050 *)
vapier7f19c022007-02-17 14:46:31 +00007051 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 +00007052 ;;
7053 esac
7054 fi
7055 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7057 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007058
vapier7f19c022007-02-17 14:46:31 +00007059 case $host_cpu in
7060 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007061 hardcode_direct=no
7062 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007063 ;;
7064 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007065 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007066 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007067 export_dynamic_flag_spec='${wl}-E'
7068
7069 # hardcode_minus_L: Not really in the search PATH,
7070 # but as the default location of the library.
7071 hardcode_minus_L=yes
7072 ;;
7073 esac
7074 fi
7075 ;;
7076
7077 irix5* | irix6* | nonstopux*)
7078 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7080 # Try to use the -exported_symbol ld option, if it does not
7081 # work, assume that -exports_file does not work either and
7082 # implicitly export all symbols.
7083 save_LDFLAGS="$LDFLAGS"
7084 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7085 cat >conftest.$ac_ext <<_ACEOF
7086int foo(void) {}
7087_ACEOF
7088rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00007089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7090 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00007091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00007095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } &&
7097 { ac_try='test -z "$ac_c_werror_flag"
7098 || test ! -s conftest.err'
7099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 (eval $ac_try) 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; } &&
7104 { ac_try='test -s conftest$ac_exeext'
7105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 (eval $ac_try) 2>&5
7107 ac_status=$?
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00007110 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7111
7112else
drh866108f2008-05-13 00:57:21 +00007113 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00007114sed 's/^/| /' conftest.$ac_ext >&5
7115
mlcreech636a9952008-05-05 22:52:56 +00007116fi
drh866108f2008-05-13 00:57:21 +00007117rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00007118 conftest$ac_exeext conftest.$ac_ext
7119 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007120 else
mlcreech636a9952008-05-05 22:52:56 +00007121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 fi
mlcreech636a9952008-05-05 22:52:56 +00007124 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7126 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007127 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 link_all_deplibs=yes
7129 ;;
7130
vapier7f19c022007-02-17 14:46:31 +00007131 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7134 else
7135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7136 fi
7137 hardcode_libdir_flag_spec='-R$libdir'
7138 hardcode_direct=yes
7139 hardcode_shlibpath_var=no
7140 ;;
7141
7142 newsos6)
7143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_direct=yes
7145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7146 hardcode_libdir_separator=:
7147 hardcode_shlibpath_var=no
7148 ;;
7149
mlcreech636a9952008-05-05 22:52:56 +00007150 *nto* | *qnx*)
7151 ;;
7152
a.rottmann9bc8b932004-02-29 15:18:31 +00007153 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007154 if test -f /usr/libexec/ld.so; then
7155 hardcode_direct=yes
7156 hardcode_shlibpath_var=no
7157 hardcode_direct_absolute=yes
7158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7160 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7162 export_dynamic_flag_spec='${wl}-E'
7163 else
7164 case $host_os in
7165 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7167 hardcode_libdir_flag_spec='-R$libdir'
7168 ;;
7169 *)
7170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7172 ;;
7173 esac
7174 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007175 else
mlcreech636a9952008-05-05 22:52:56 +00007176 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007177 fi
7178 ;;
7179
7180 os2*)
7181 hardcode_libdir_flag_spec='-L$libdir'
7182 hardcode_minus_L=yes
7183 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007184 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'
7185 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00007186 ;;
7187
7188 osf3*)
7189 if test "$GCC" = yes; then
7190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00007191 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007192 else
7193 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00007194 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007195 fi
mlcreech636a9952008-05-05 22:52:56 +00007196 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7198 hardcode_libdir_separator=:
7199 ;;
7200
7201 osf4* | osf5*) # as osf3* with the addition of -msym flag
7202 if test "$GCC" = yes; then
7203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00007204 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
a.rottmann9bc8b932004-02-29 15:18:31 +00007205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7206 else
7207 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00007208 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7209 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
7210 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00007211
7212 # Both c and cxx compiler support -rpath directly
7213 hardcode_libdir_flag_spec='-rpath $libdir'
7214 fi
mlcreech636a9952008-05-05 22:52:56 +00007215 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007216 hardcode_libdir_separator=:
7217 ;;
7218
a.rottmann9bc8b932004-02-29 15:18:31 +00007219 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007220 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007221 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007222 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00007223 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7225 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a.rottmann9bc8b932004-02-29 15:18:31 +00007226 else
mlcreech636a9952008-05-05 22:52:56 +00007227 case `$CC -V 2>&1` in
7228 *"Compilers 5.0"*)
7229 wlarc=''
7230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7233 ;;
7234 *)
7235 wlarc='${wl}'
7236 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7238 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7239 ;;
7240 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 fi
7242 hardcode_libdir_flag_spec='-R$libdir'
7243 hardcode_shlibpath_var=no
7244 case $host_os in
7245 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00007246 *)
mlcreech636a9952008-05-05 22:52:56 +00007247 # The compiler driver will combine and reorder linker options,
7248 # but understands `-z linker_flag'. GCC discards it without `$wl',
7249 # but is careful enough not to reorder.
7250 # Supported since Solaris 2.6 (maybe 2.5.1?)
7251 if test "$GCC" = yes; then
7252 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7253 else
7254 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7255 fi
7256 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 esac
7258 link_all_deplibs=yes
7259 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007260
a.rottmann9bc8b932004-02-29 15:18:31 +00007261 sunos4*)
7262 if test "x$host_vendor" = xsequent; then
7263 # Use $CC to link under sequent, because it throws in some extra .o
7264 # files that make .init and .fini sections work.
7265 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7266 else
7267 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7268 fi
7269 hardcode_libdir_flag_spec='-L$libdir'
7270 hardcode_direct=yes
7271 hardcode_minus_L=yes
7272 hardcode_shlibpath_var=no
7273 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007274
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 sysv4)
7276 case $host_vendor in
7277 sni)
7278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_direct=yes # is this really true???
7280 ;;
7281 siemens)
7282 ## LD is ld it makes a PLAMLIB
7283 ## CC just makes a GrossModule.
7284 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7285 reload_cmds='$CC -r -o $output$reload_objs'
7286 hardcode_direct=no
7287 ;;
7288 motorola)
7289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7290 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7291 ;;
7292 esac
7293 runpath_var='LD_RUN_PATH'
7294 hardcode_shlibpath_var=no
7295 ;;
7296
7297 sysv4.3*)
7298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7299 hardcode_shlibpath_var=no
7300 export_dynamic_flag_spec='-Bexport'
7301 ;;
7302
7303 sysv4*MP*)
7304 if test -d /usr/nec; then
7305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7306 hardcode_shlibpath_var=no
7307 runpath_var=LD_RUN_PATH
7308 hardcode_runpath_var=yes
7309 ld_shlibs=yes
7310 fi
7311 ;;
7312
mlcreech636a9952008-05-05 22:52:56 +00007313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00007314 no_undefined_flag='${wl}-z,text'
7315 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007316 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00007317 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00007318
a.rottmann9bc8b932004-02-29 15:18:31 +00007319 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007320 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7321 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 +00007322 else
vapier7f19c022007-02-17 14:46:31 +00007323 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7324 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 +00007325 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007326 ;;
7327
vapier7f19c022007-02-17 14:46:31 +00007328 sysv5* | sco3.2v5* | sco5v6*)
7329 # Note: We can NOT use -z defs as we might desire, because we do not
7330 # link with -lc, and that would cause any symbols used from libc to
7331 # always be unresolved, which means just about no library would
7332 # ever link correctly. If we're not using GNU ld we use -z text
7333 # though, which does catch some bad symbols but isn't as heavy-handed
7334 # as -z defs.
7335 no_undefined_flag='${wl}-z,text'
7336 allow_undefined_flag='${wl}-z,nodefs'
7337 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00007339 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00007340 hardcode_libdir_separator=':'
7341 link_all_deplibs=yes
7342 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00007343 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00007344
7345 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007346 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7347 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007348 else
mlcreech636a9952008-05-05 22:52:56 +00007349 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7350 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007351 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007352 ;;
7353
7354 uts4*)
7355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356 hardcode_libdir_flag_spec='-L$libdir'
7357 hardcode_shlibpath_var=no
7358 ;;
7359
7360 *)
7361 ld_shlibs=no
7362 ;;
7363 esac
mlcreech636a9952008-05-05 22:52:56 +00007364
7365 if test x$host_vendor = xsni; then
7366 case $host in
7367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7368 export_dynamic_flag_spec='${wl}-Blargedynsym'
7369 ;;
7370 esac
7371 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007372 fi
7373
drh866108f2008-05-13 00:57:21 +00007374echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7375echo "${ECHO_T}$ld_shlibs" >&6
a.rottmann84e63352003-03-24 09:42:16 +00007376test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007377
mlcreech636a9952008-05-05 22:52:56 +00007378with_gnu_ld=$with_gnu_ld
7379
7380
danielk197733a14782008-08-04 14:50:05 +00007381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
a.rottmann9bc8b932004-02-29 15:18:31 +00007394#
7395# Do we need to explicitly link libc?
7396#
7397case "x$archive_cmds_need_lc" in
7398x|xyes)
7399 # Assume -lc should be added
7400 archive_cmds_need_lc=yes
7401
7402 if test "$enable_shared" = yes && test "$GCC" = yes; then
7403 case $archive_cmds in
7404 *'~'*)
7405 # FIXME: we may have to deal with multi-command sequences.
7406 ;;
7407 '$CC '*)
7408 # Test whether the compiler implicitly links with -lc since on some
7409 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7410 # to ld, don't add -lc before -lgcc.
drh866108f2008-05-13 00:57:21 +00007411 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7412echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007413 $RM conftest*
7414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007415
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>&5
7418 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007420 (exit $ac_status); } 2>conftest.err; then
7421 soname=conftest
7422 lib=conftest
7423 libobjs=conftest.$ac_objext
7424 deplibs=
7425 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00007426 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00007427 compiler_flags=-v
7428 linker_flags=-v
7429 verstring=
7430 output_objdir=.
7431 libname=conftest
7432 lt_save_allow_undefined_flag=$allow_undefined_flag
7433 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007434 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007436 ac_status=$?
drh866108f2008-05-13 00:57:21 +00007437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007438 (exit $ac_status); }
7439 then
7440 archive_cmds_need_lc=no
7441 else
7442 archive_cmds_need_lc=yes
7443 fi
7444 allow_undefined_flag=$lt_save_allow_undefined_flag
7445 else
7446 cat conftest.err 1>&5
7447 fi
mlcreech636a9952008-05-05 22:52:56 +00007448 $RM conftest*
drh866108f2008-05-13 00:57:21 +00007449 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7450echo "${ECHO_T}$archive_cmds_need_lc" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00007451 ;;
7452 esac
drh71eb93e2001-09-28 01:34:43 +00007453 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007454 ;;
7455esac
drh71eb93e2001-09-28 01:34:43 +00007456
mlcreech636a9952008-05-05 22:52:56 +00007457
danielk197733a14782008-08-04 14:50:05 +00007458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
drh866108f2008-05-13 00:57:21 +00007613 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7614echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00007615
7616if test "$GCC" = yes; then
7617 case $host_os in
7618 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7619 *) lt_awk_arg="/^libraries:/" ;;
7620 esac
7621 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7622 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7623 # if the path contains ";" then we assume it to be the separator
7624 # otherwise default to the standard path separator (i.e. ":") - it is
7625 # assumed that no part of a normal pathname contains ";" but that should
7626 # okay in the real world where ";" in dirpaths is itself problematic.
7627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7628 else
7629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7630 fi
7631 # Ok, now we have the path, separated by spaces, we can step through it
7632 # and add multilib dir if necessary.
7633 lt_tmp_lt_search_path_spec=
7634 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7635 for lt_sys_path in $lt_search_path_spec; do
7636 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7638 else
7639 test -d "$lt_sys_path" && \
7640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7641 fi
7642 done
7643 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7644BEGIN {RS=" "; FS="/|\n";} {
7645 lt_foo="";
7646 lt_count=0;
7647 for (lt_i = NF; lt_i > 0; lt_i--) {
7648 if ($lt_i != "" && $lt_i != ".") {
7649 if ($lt_i == "..") {
7650 lt_count++;
7651 } else {
7652 if (lt_count == 0) {
7653 lt_foo="/" $lt_i lt_foo;
7654 } else {
7655 lt_count--;
7656 }
7657 }
7658 }
7659 }
7660 if (lt_foo != "") { lt_freq[lt_foo]++; }
7661 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7662}'`
7663 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7664else
7665 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7666fi
drh71eb93e2001-09-28 01:34:43 +00007667library_names_spec=
7668libname_spec='lib$name'
7669soname_spec=
vapier7f19c022007-02-17 14:46:31 +00007670shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00007671postinstall_cmds=
7672postuninstall_cmds=
7673finish_cmds=
7674finish_eval=
7675shlibpath_var=
7676shlibpath_overrides_runpath=unknown
7677version_type=none
7678dynamic_linker="$host_os ld.so"
7679sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007680need_lib_prefix=unknown
7681hardcode_into_libs=no
7682
7683# when you set need_version to no, make sure it does not cause -set_version
7684# flags to be left without arguments
7685need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00007686
7687case $host_os in
7688aix3*)
7689 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00007690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00007691 shlibpath_var=LIBPATH
7692
a.rottmann9bc8b932004-02-29 15:18:31 +00007693 # AIX 3 has no versioning support, so we append a major version to the name.
7694 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007695 ;;
7696
mlcreech636a9952008-05-05 22:52:56 +00007697aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00007698 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00007699 need_lib_prefix=no
7700 need_version=no
7701 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00007702 if test "$host_cpu" = ia64; then
7703 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00007704 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007705 shlibpath_var=LD_LIBRARY_PATH
7706 else
7707 # With GCC up to 2.95.x, collect2 would create an import file
7708 # for dependence libraries. The import file would start with
7709 # the line `#! .'. This would cause the generated library to
7710 # depend on `.', always an invalid library. This was fixed in
7711 # development snapshots of GCC prior to 3.0.
7712 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00007713 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7715 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00007716 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007717 :
7718 else
7719 can_build_shared=no
7720 fi
7721 ;;
drh71eb93e2001-09-28 01:34:43 +00007722 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007723 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7724 # soname into executable. Probably we can add versioning support to
7725 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00007726 if test "$aix_use_runtimelinking" = yes; then
7727 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7728 # instead of lib<name>.a to let people know that these are not
7729 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00007730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007731 else
7732 # We preserve .a as extension for shared libraries through AIX4.2
7733 # and later when we are not doing run time linking.
7734 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007735 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007736 fi
7737 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00007738 fi
7739 ;;
7740
7741amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007742 case $host_cpu in
7743 powerpc)
7744 # Since July 2007 AmigaOS4 officially supports .so libraries.
7745 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
7746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747 ;;
7748 m68k)
7749 library_names_spec='$libname.ixlibrary $libname.a'
7750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7751 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'
7752 ;;
7753 esac
drh71eb93e2001-09-28 01:34:43 +00007754 ;;
7755
7756beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007757 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007758 dynamic_linker="$host_os ld.so"
7759 shlibpath_var=LIBRARY_PATH
7760 ;;
7761
vapier7f19c022007-02-17 14:46:31 +00007762bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00007763 version_type=linux
7764 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7766 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007767 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7768 shlibpath_var=LD_LIBRARY_PATH
7769 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7770 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7771 # the default ld.so.conf also contains /usr/contrib/lib and
7772 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7773 # libtool to hard-code these into programs
7774 ;;
7775
7776cygwin* | mingw* | pw32*)
7777 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00007778 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00007779 need_version=no
7780 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007781
drh71eb93e2001-09-28 01:34:43 +00007782 case $GCC,$host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 yes,cygwin* | yes,mingw* | yes,pw32*)
drh71eb93e2001-09-28 01:34:43 +00007784 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7786 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00007787 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007788 dldir=$destdir/`dirname \$dlpath`~
7789 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00007790 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00007791 chmod a+x \$dldir/$dlname~
7792 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7793 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7794 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00007796 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00007797 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00007798 shlibpath_overrides_runpath=yes
7799
7800 case $host_os in
7801 cygwin*)
7802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7805 ;;
7806 mingw*)
7807 # MinGW DLLs use traditional 'lib' prefix
7808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00007809 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7810 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007811 # It is most probably a Windows format PATH printed by
7812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7813 # path with ; separators, and with drive letters. We can handle the
7814 # drive letters (cygwin fileutils understands them), so leave them,
7815 # especially as we might pass files found there to a mingw objdump,
7816 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00007817 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00007818 else
mlcreech636a9952008-05-05 22:52:56 +00007819 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 fi
7821 ;;
7822 pw32*)
7823 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00007824 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 +00007825 ;;
7826 esac
drh71eb93e2001-09-28 01:34:43 +00007827 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007828
drh71eb93e2001-09-28 01:34:43 +00007829 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00007831 ;;
7832 esac
7833 dynamic_linker='Win32 ld.exe'
7834 # FIXME: first we should search . and the directory the executable is in
7835 shlibpath_var=PATH
7836 ;;
7837
7838darwin* | rhapsody*)
7839 dynamic_linker="$host_os dyld"
7840 version_type=darwin
7841 need_lib_prefix=no
7842 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00007843 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00007844 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00007845 shlibpath_overrides_runpath=yes
7846 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00007847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00007848
7849 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00007850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7851 ;;
7852
7853dgux*)
7854 version_type=linux
7855 need_lib_prefix=no
7856 need_version=no
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7858 soname_spec='${libname}${release}${shared_ext}$major'
7859 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00007860 ;;
7861
a.rottmann84e63352003-03-24 09:42:16 +00007862freebsd1*)
7863 dynamic_linker=no
7864 ;;
7865
vapier7f19c022007-02-17 14:46:31 +00007866freebsd* | dragonfly*)
7867 # DragonFly does not have aout. When/if they implement a new
7868 # versioning mechanism, adjust this.
7869 if test -x /usr/bin/objformat; then
7870 objformat=`/usr/bin/objformat`
7871 else
7872 case $host_os in
7873 freebsd[123]*) objformat=aout ;;
7874 *) objformat=elf ;;
7875 esac
7876 fi
7877 # Handle Gentoo/FreeBSD as it was Linux
7878 case $host_vendor in
7879 gentoo)
7880 version_type=linux ;;
7881 *)
7882 version_type=freebsd-$objformat ;;
7883 esac
7884
drh71eb93e2001-09-28 01:34:43 +00007885 case $version_type in
7886 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00007888 need_version=no
7889 need_lib_prefix=no
7890 ;;
7891 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00007893 need_version=yes
7894 ;;
vapier7f19c022007-02-17 14:46:31 +00007895 linux)
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 need_lib_prefix=no
7899 need_version=no
7900 ;;
drh71eb93e2001-09-28 01:34:43 +00007901 esac
7902 shlibpath_var=LD_LIBRARY_PATH
7903 case $host_os in
7904 freebsd2*)
7905 shlibpath_overrides_runpath=yes
7906 ;;
vapier7f19c022007-02-17 14:46:31 +00007907 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 shlibpath_overrides_runpath=yes
7909 hardcode_into_libs=yes
7910 ;;
vapier7f19c022007-02-17 14:46:31 +00007911 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7912 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00007913 shlibpath_overrides_runpath=no
7914 hardcode_into_libs=yes
7915 ;;
mlcreech636a9952008-05-05 22:52:56 +00007916 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00007917 shlibpath_overrides_runpath=yes
7918 hardcode_into_libs=yes
7919 ;;
drh71eb93e2001-09-28 01:34:43 +00007920 esac
7921 ;;
7922
7923gnu*)
7924 version_type=linux
7925 need_lib_prefix=no
7926 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7928 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00007929 shlibpath_var=LD_LIBRARY_PATH
7930 hardcode_into_libs=yes
7931 ;;
7932
7933hpux9* | hpux10* | hpux11*)
7934 # Give a soname corresponding to the major version so that dld.sl refuses to
7935 # link against other versions.
7936 version_type=sunos
7937 need_lib_prefix=no
7938 need_version=no
vapier7f19c022007-02-17 14:46:31 +00007939 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00007940 ia64*)
vapier7f19c022007-02-17 14:46:31 +00007941 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00007942 hardcode_into_libs=yes
7943 dynamic_linker="$host_os dld.so"
7944 shlibpath_var=LD_LIBRARY_PATH
7945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 soname_spec='${libname}${release}${shared_ext}$major'
7948 if test "X$HPUX_IA64_MODE" = X32; then
7949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7950 else
7951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7952 fi
7953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7954 ;;
mlcreech636a9952008-05-05 22:52:56 +00007955 hppa*64*)
7956 shrext_cmds='.sl'
7957 hardcode_into_libs=yes
7958 dynamic_linker="$host_os dld.sl"
7959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962 soname_spec='${libname}${release}${shared_ext}$major'
7963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7965 ;;
7966 *)
vapier7f19c022007-02-17 14:46:31 +00007967 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00007968 dynamic_linker="$host_os dld.sl"
7969 shlibpath_var=SHLIB_PATH
7970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7972 soname_spec='${libname}${release}${shared_ext}$major'
7973 ;;
7974 esac
drh71eb93e2001-09-28 01:34:43 +00007975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7976 postinstall_cmds='chmod 555 $lib'
7977 ;;
7978
mlcreech636a9952008-05-05 22:52:56 +00007979interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007980 version_type=linux
7981 need_lib_prefix=no
7982 need_version=no
7983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7984 soname_spec='${libname}${release}${shared_ext}$major'
7985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7986 shlibpath_var=LD_LIBRARY_PATH
7987 shlibpath_overrides_runpath=no
7988 hardcode_into_libs=yes
7989 ;;
7990
a.rottmann84e63352003-03-24 09:42:16 +00007991irix5* | irix6* | nonstopux*)
7992 case $host_os in
7993 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007994 *)
7995 if test "$lt_cv_prog_gnu_ld" = yes; then
7996 version_type=linux
7997 else
7998 version_type=irix
7999 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008000 esac
drh71eb93e2001-09-28 01:34:43 +00008001 need_lib_prefix=no
8002 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008003 soname_spec='${libname}${release}${shared_ext}$major'
8004 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 +00008005 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008006 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008007 libsuff= shlibsuff=
8008 ;;
8009 *)
8010 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8012 libsuff= shlibsuff= libmagic=32-bit;;
8013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8014 libsuff=32 shlibsuff=N32 libmagic=N32;;
8015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008017 *) libsuff= shlibsuff= libmagic=never-match;;
8018 esac
8019 ;;
8020 esac
8021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8022 shlibpath_overrides_runpath=no
8023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008025 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008026 ;;
8027
8028# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008029linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008030 dynamic_linker=no
8031 ;;
8032
8033# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008034linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008035 version_type=linux
8036 need_lib_prefix=no
8037 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8041 shlibpath_var=LD_LIBRARY_PATH
8042 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008043 # Some binutils ld are patched to set DT_RUNPATH
8044 save_LDFLAGS=$LDFLAGS
8045 save_libdir=$libdir
8046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8048 cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054
8055int
8056main ()
8057{
8058
8059 ;
8060 return 0;
8061}
8062_ACEOF
8063rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008066 ac_status=$?
8067 grep -v '^ *+' conftest.er1 >conftest.err
8068 rm -f conftest.er1
8069 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -z "$ac_c_werror_flag"
8073 || test ! -s conftest.err'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; } &&
8079 { ac_try='test -s conftest$ac_exeext'
8080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 (eval $ac_try) 2>&5
8082 ac_status=$?
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00008085 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
8086 shlibpath_overrides_runpath=yes
8087fi
8088
8089else
drh866108f2008-05-13 00:57:21 +00008090 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008091sed 's/^/| /' conftest.$ac_ext >&5
8092
mlcreech636a9952008-05-05 22:52:56 +00008093fi
drh866108f2008-05-13 00:57:21 +00008094rm -f conftest.err conftest.$ac_objext \
mlcreech636a9952008-05-05 22:52:56 +00008095 conftest$ac_exeext conftest.$ac_ext
8096 LDFLAGS=$save_LDFLAGS
8097 libdir=$save_libdir
8098
drh71eb93e2001-09-28 01:34:43 +00008099 # This implies no fast_install, which is unacceptable.
8100 # Some rework will be needed to allow for fast_install
8101 # before this can be enabled.
8102 hardcode_into_libs=yes
8103
a.rottmann9bc8b932004-02-29 15:18:31 +00008104 # Append ld.so.conf contents to the search path
8105 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008106 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
vapier7f19c022007-02-17 14:46:31 +00008107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008108 fi
8109
drh71eb93e2001-09-28 01:34:43 +00008110 # We used to test for /lib/ld.so.1 and disable shared libraries on
8111 # powerpc, because MkLinux only supported shared libraries with the
8112 # GNU dynamic linker. Since this was broken with cross compilers,
8113 # most powerpc-linux boxes support dynamic linking these days and
8114 # people can always --disable-shared, the test was removed, and we
8115 # assume the GNU/Linux dynamic linker is in use.
8116 dynamic_linker='GNU/Linux ld.so'
8117 ;;
8118
8119netbsd*)
8120 version_type=sunos
8121 need_lib_prefix=no
8122 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8126 dynamic_linker='NetBSD (a.out) ld.so'
8127 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8129 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008130 dynamic_linker='NetBSD ld.elf_so'
8131 fi
8132 shlibpath_var=LD_LIBRARY_PATH
8133 shlibpath_overrides_runpath=yes
8134 hardcode_into_libs=yes
8135 ;;
8136
8137newsos6)
8138 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140 shlibpath_var=LD_LIBRARY_PATH
8141 shlibpath_overrides_runpath=yes
8142 ;;
8143
mlcreech636a9952008-05-05 22:52:56 +00008144*nto* | *qnx*)
8145 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008146 need_lib_prefix=no
8147 need_version=no
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008150 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008151 shlibpath_overrides_runpath=no
8152 hardcode_into_libs=yes
8153 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008154 ;;
8155
drh71eb93e2001-09-28 01:34:43 +00008156openbsd*)
8157 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008158 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008159 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8161 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8163 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008164 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8167 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008168 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 +00008169 case $host_os in
8170 openbsd2.[89] | openbsd2.[89].*)
8171 shlibpath_overrides_runpath=no
8172 ;;
8173 *)
8174 shlibpath_overrides_runpath=yes
8175 ;;
8176 esac
a.rottmann84e63352003-03-24 09:42:16 +00008177 else
8178 shlibpath_overrides_runpath=yes
8179 fi
drh71eb93e2001-09-28 01:34:43 +00008180 ;;
8181
8182os2*)
8183 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008184 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008185 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008186 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008187 dynamic_linker='OS/2 ld.exe'
8188 shlibpath_var=LIBPATH
8189 ;;
8190
8191osf3* | osf4* | osf5*)
8192 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008193 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008194 need_version=no
8195 soname_spec='${libname}${release}${shared_ext}$major'
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008197 shlibpath_var=LD_LIBRARY_PATH
8198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8200 ;;
8201
mlcreech636a9952008-05-05 22:52:56 +00008202rdos*)
8203 dynamic_linker=no
8204 ;;
8205
drh71eb93e2001-09-28 01:34:43 +00008206solaris*)
8207 version_type=linux
8208 need_lib_prefix=no
8209 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008212 shlibpath_var=LD_LIBRARY_PATH
8213 shlibpath_overrides_runpath=yes
8214 hardcode_into_libs=yes
8215 # ldd complains unless libraries are executable
8216 postinstall_cmds='chmod +x $lib'
8217 ;;
8218
8219sunos4*)
8220 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00008221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 shlibpath_overrides_runpath=yes
8225 if test "$with_gnu_ld" = yes; then
8226 need_lib_prefix=no
8227 fi
8228 need_version=yes
8229 ;;
8230
vapier7f19c022007-02-17 14:46:31 +00008231sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00008232 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008235 shlibpath_var=LD_LIBRARY_PATH
8236 case $host_vendor in
8237 sni)
8238 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00008239 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00008240 runpath_var=LD_RUN_PATH
8241 ;;
8242 siemens)
8243 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00008244 ;;
8245 motorola)
8246 need_lib_prefix=no
8247 need_version=no
8248 shlibpath_overrides_runpath=no
8249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8250 ;;
8251 esac
8252 ;;
8253
8254sysv4*MP*)
8255 if test -d /usr/nec ;then
8256 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8258 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00008259 shlibpath_var=LD_LIBRARY_PATH
8260 fi
8261 ;;
8262
vapier7f19c022007-02-17 14:46:31 +00008263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8264 version_type=freebsd-elf
8265 need_lib_prefix=no
8266 need_version=no
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008270 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00008271 hardcode_into_libs=yes
8272 if test "$with_gnu_ld" = yes; then
8273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00008274 else
8275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00008276 case $host_os in
8277 sco3.2v5*)
8278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8279 ;;
8280 esac
8281 fi
8282 sys_lib_dlsearch_path_spec='/usr/lib'
8283 ;;
8284
mlcreech636a9952008-05-05 22:52:56 +00008285tpf*)
8286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8287 version_type=linux
8288 need_lib_prefix=no
8289 need_version=no
8290 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 shlibpath_overrides_runpath=no
8293 hardcode_into_libs=yes
8294 ;;
8295
a.rottmann9bc8b932004-02-29 15:18:31 +00008296uts4*)
8297 version_type=linux
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299 soname_spec='${libname}${release}${shared_ext}$major'
8300 shlibpath_var=LD_LIBRARY_PATH
8301 ;;
8302
drh71eb93e2001-09-28 01:34:43 +00008303*)
8304 dynamic_linker=no
8305 ;;
8306esac
drh866108f2008-05-13 00:57:21 +00008307echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8308echo "${ECHO_T}$dynamic_linker" >&6
drh71eb93e2001-09-28 01:34:43 +00008309test "$dynamic_linker" = no && can_build_shared=no
8310
vapier7f19c022007-02-17 14:46:31 +00008311variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8312if test "$GCC" = yes; then
8313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8314fi
8315
mlcreech636a9952008-05-05 22:52:56 +00008316if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8318fi
8319if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8321fi
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
drh866108f2008-05-13 00:57:21 +00008409 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8410echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008411hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00008412if test -n "$hardcode_libdir_flag_spec" ||
8413 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00008414 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00008415
mlcreech636a9952008-05-05 22:52:56 +00008416 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00008417 if test "$hardcode_direct" != no &&
8418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8419 # have to relink, otherwise we might link with an installed library
8420 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00008421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00008422 test "$hardcode_minus_L" != no; then
8423 # Linking always hardcodes the temporary library directory.
8424 hardcode_action=relink
8425 else
8426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8427 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00008428 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008429else
8430 # We cannot hardcode anything, or else we can only hardcode existing
8431 # directories.
8432 hardcode_action=unsupported
8433fi
drh866108f2008-05-13 00:57:21 +00008434echo "$as_me:$LINENO: result: $hardcode_action" >&5
8435echo "${ECHO_T}$hardcode_action" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008436
mlcreech636a9952008-05-05 22:52:56 +00008437if test "$hardcode_action" = relink ||
8438 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00008439 # Fast installation is not supported
8440 enable_fast_install=no
8441elif test "$shlibpath_overrides_runpath" = yes ||
8442 test "$enable_shared" = no; then
8443 # Fast installation is not necessary
8444 enable_fast_install=needless
8445fi
8446
a.rottmann84e63352003-03-24 09:42:16 +00008447
mlcreech636a9952008-05-05 22:52:56 +00008448
8449
8450
8451
8452 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00008453 enable_dlopen=unknown
8454 enable_dlopen_self=unknown
8455 enable_dlopen_self_static=unknown
8456else
8457 lt_cv_dlopen=no
8458 lt_cv_dlopen_libs=
8459
8460 case $host_os in
8461 beos*)
8462 lt_cv_dlopen="load_add_on"
8463 lt_cv_dlopen_libs=
8464 lt_cv_dlopen_self=yes
8465 ;;
8466
a.rottmann9bc8b932004-02-29 15:18:31 +00008467 mingw* | pw32*)
drh71eb93e2001-09-28 01:34:43 +00008468 lt_cv_dlopen="LoadLibrary"
8469 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008470 ;;
drh71eb93e2001-09-28 01:34:43 +00008471
a.rottmann9bc8b932004-02-29 15:18:31 +00008472 cygwin*)
8473 lt_cv_dlopen="dlopen"
8474 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00008475 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008476
8477 darwin*)
8478 # if libdl is installed we need to link against it
drh866108f2008-05-13 00:57:21 +00008479 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008481if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008482 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008483else
8484 ac_check_lib_save_LIBS=$LIBS
8485LIBS="-ldl $LIBS"
8486cat >conftest.$ac_ext <<_ACEOF
8487/* confdefs.h. */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h. */
8492
drh866108f2008-05-13 00:57:21 +00008493/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008494#ifdef __cplusplus
8495extern "C"
8496#endif
drh866108f2008-05-13 00:57:21 +00008497/* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00008499char dlopen ();
8500int
8501main ()
8502{
drh866108f2008-05-13 00:57:21 +00008503dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00008504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00008511 ac_status=$?
8512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008530 ac_cv_lib_dl_dlopen=yes
8531else
drh866108f2008-05-13 00:57:21 +00008532 echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008533sed 's/^/| /' conftest.$ac_ext >&5
8534
drh866108f2008-05-13 00:57:21 +00008535ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008536fi
drh866108f2008-05-13 00:57:21 +00008537rm -f conftest.err conftest.$ac_objext \
a.rottmann9bc8b932004-02-29 15:18:31 +00008538 conftest$ac_exeext conftest.$ac_ext
8539LIBS=$ac_check_lib_save_LIBS
8540fi
drh866108f2008-05-13 00:57:21 +00008541echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8542echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00008543if test $ac_cv_lib_dl_dlopen = yes; then
8544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8545else
8546
8547 lt_cv_dlopen="dyld"
8548 lt_cv_dlopen_libs=
8549 lt_cv_dlopen_self=yes
8550
8551fi
8552
mlcreech636a9952008-05-05 22:52:56 +00008553 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008554
drh71eb93e2001-09-28 01:34:43 +00008555 *)
drh866108f2008-05-13 00:57:21 +00008556 echo "$as_me:$LINENO: checking for shl_load" >&5
8557echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008558if test "${ac_cv_func_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008559 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008560else
8561 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008562/* confdefs.h. */
8563_ACEOF
8564cat confdefs.h >>conftest.$ac_ext
8565cat >>conftest.$ac_ext <<_ACEOF
8566/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008567/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8569#define shl_load innocuous_shl_load
8570
drh71eb93e2001-09-28 01:34:43 +00008571/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00008572 which can conflict with char shl_load (); below.
8573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8574 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008575
a.rottmann84e63352003-03-24 09:42:16 +00008576#ifdef __STDC__
8577# include <limits.h>
8578#else
8579# include <assert.h>
8580#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008581
8582#undef shl_load
8583
drh866108f2008-05-13 00:57:21 +00008584/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008585#ifdef __cplusplus
8586extern "C"
drh866108f2008-05-13 00:57:21 +00008587{
drh71eb93e2001-09-28 01:34:43 +00008588#endif
drh866108f2008-05-13 00:57:21 +00008589/* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008591char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008592/* The GNU C library defines this for functions which it implements
8593 to always fail with ENOSYS. Some functions are actually named
8594 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008595#if defined (__stub_shl_load) || defined (__stub___shl_load)
drh71eb93e2001-09-28 01:34:43 +00008596choke me
drh866108f2008-05-13 00:57:21 +00008597#else
8598char (*f) () = shl_load;
8599#endif
8600#ifdef __cplusplus
8601}
drh71eb93e2001-09-28 01:34:43 +00008602#endif
8603
a.rottmann84e63352003-03-24 09:42:16 +00008604int
8605main ()
8606{
drh866108f2008-05-13 00:57:21 +00008607return f != shl_load;
drh71eb93e2001-09-28 01:34:43 +00008608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008615 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest$ac_exeext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008634 ac_cv_func_shl_load=yes
8635else
drh866108f2008-05-13 00:57:21 +00008636 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008637sed 's/^/| /' conftest.$ac_ext >&5
8638
drh866108f2008-05-13 00:57:21 +00008639ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008640fi
drh866108f2008-05-13 00:57:21 +00008641rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008642 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008643fi
drh866108f2008-05-13 00:57:21 +00008644echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8645echo "${ECHO_T}$ac_cv_func_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008646if test $ac_cv_func_shl_load = yes; then
8647 lt_cv_dlopen="shl_load"
8648else
drh866108f2008-05-13 00:57:21 +00008649 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8650echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008651if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008652 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008653else
8654 ac_check_lib_save_LIBS=$LIBS
8655LIBS="-ldld $LIBS"
8656cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008662
drh866108f2008-05-13 00:57:21 +00008663/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008664#ifdef __cplusplus
8665extern "C"
8666#endif
drh866108f2008-05-13 00:57:21 +00008667/* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008669char shl_load ();
8670int
8671main ()
8672{
drh866108f2008-05-13 00:57:21 +00008673shl_load ();
drh71eb93e2001-09-28 01:34:43 +00008674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008681 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
8687 { ac_try='test -z "$ac_c_werror_flag"
8688 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest$ac_exeext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008700 ac_cv_lib_dld_shl_load=yes
8701else
drh866108f2008-05-13 00:57:21 +00008702 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008703sed 's/^/| /' conftest.$ac_ext >&5
8704
drh866108f2008-05-13 00:57:21 +00008705ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00008706fi
drh866108f2008-05-13 00:57:21 +00008707rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008708 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008709LIBS=$ac_check_lib_save_LIBS
8710fi
drh866108f2008-05-13 00:57:21 +00008711echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8712echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
drh71eb93e2001-09-28 01:34:43 +00008713if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008714 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00008715else
drh866108f2008-05-13 00:57:21 +00008716 echo "$as_me:$LINENO: checking for dlopen" >&5
8717echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008718if test "${ac_cv_func_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008719 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008720else
8721 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008722/* confdefs.h. */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00008727/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8729#define dlopen innocuous_dlopen
8730
a.rottmann84e63352003-03-24 09:42:16 +00008731/* System header to define __stub macros and hopefully few prototypes,
8732 which can conflict with char dlopen (); below.
8733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8734 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00008735
a.rottmann84e63352003-03-24 09:42:16 +00008736#ifdef __STDC__
8737# include <limits.h>
8738#else
8739# include <assert.h>
8740#endif
a.rottmann964dbb12004-02-26 19:47:42 +00008741
8742#undef dlopen
8743
drh866108f2008-05-13 00:57:21 +00008744/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008745#ifdef __cplusplus
8746extern "C"
drh866108f2008-05-13 00:57:21 +00008747{
a.rottmann84e63352003-03-24 09:42:16 +00008748#endif
drh866108f2008-05-13 00:57:21 +00008749/* We use char because int might match the return type of a gcc2
8750 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008751char dlopen ();
8752/* The GNU C library defines this for functions which it implements
8753 to always fail with ENOSYS. Some functions are actually named
8754 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +00008755#if defined (__stub_dlopen) || defined (__stub___dlopen)
a.rottmann84e63352003-03-24 09:42:16 +00008756choke me
drh866108f2008-05-13 00:57:21 +00008757#else
8758char (*f) () = dlopen;
8759#endif
8760#ifdef __cplusplus
8761}
a.rottmann84e63352003-03-24 09:42:16 +00008762#endif
8763
8764int
8765main ()
8766{
drh866108f2008-05-13 00:57:21 +00008767return f != dlopen;
a.rottmann84e63352003-03-24 09:42:16 +00008768 ;
8769 return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008775 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } &&
8781 { ac_try='test -z "$ac_c_werror_flag"
8782 || test ! -s conftest.err'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784 (eval $ac_try) 2>&5
8785 ac_status=$?
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008794 ac_cv_func_dlopen=yes
8795else
drh866108f2008-05-13 00:57:21 +00008796 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008797sed 's/^/| /' conftest.$ac_ext >&5
8798
drh866108f2008-05-13 00:57:21 +00008799ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00008800fi
drh866108f2008-05-13 00:57:21 +00008801rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008802 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00008803fi
drh866108f2008-05-13 00:57:21 +00008804echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8805echo "${ECHO_T}$ac_cv_func_dlopen" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008806if test $ac_cv_func_dlopen = yes; then
8807 lt_cv_dlopen="dlopen"
8808else
drh866108f2008-05-13 00:57:21 +00008809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8810echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008811if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008812 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008813else
8814 ac_check_lib_save_LIBS=$LIBS
8815LIBS="-ldl $LIBS"
8816cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008817/* confdefs.h. */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008822
drh866108f2008-05-13 00:57:21 +00008823/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008824#ifdef __cplusplus
8825extern "C"
8826#endif
drh866108f2008-05-13 00:57:21 +00008827/* We use char because int might match the return type of a gcc2
8828 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008829char dlopen ();
8830int
8831main ()
8832{
drh866108f2008-05-13 00:57:21 +00008833dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008841 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008860 ac_cv_lib_dl_dlopen=yes
8861else
drh866108f2008-05-13 00:57:21 +00008862 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008863sed 's/^/| /' conftest.$ac_ext >&5
8864
drh866108f2008-05-13 00:57:21 +00008865ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008866fi
drh866108f2008-05-13 00:57:21 +00008867rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008868 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008869LIBS=$ac_check_lib_save_LIBS
8870fi
drh866108f2008-05-13 00:57:21 +00008871echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8872echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008873if test $ac_cv_lib_dl_dlopen = yes; then
8874 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8875else
drh866108f2008-05-13 00:57:21 +00008876 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8877echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008878if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008879 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00008880else
8881 ac_check_lib_save_LIBS=$LIBS
8882LIBS="-lsvld $LIBS"
8883cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008884/* confdefs.h. */
8885_ACEOF
8886cat confdefs.h >>conftest.$ac_ext
8887cat >>conftest.$ac_ext <<_ACEOF
8888/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00008889
drh866108f2008-05-13 00:57:21 +00008890/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +00008891#ifdef __cplusplus
8892extern "C"
8893#endif
drh866108f2008-05-13 00:57:21 +00008894/* We use char because int might match the return type of a gcc2
8895 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00008896char dlopen ();
8897int
8898main ()
8899{
drh866108f2008-05-13 00:57:21 +00008900dlopen ();
drh71eb93e2001-09-28 01:34:43 +00008901 ;
8902 return 0;
8903}
8904_ACEOF
8905rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00008908 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag"
8915 || test ! -s conftest.err'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 (eval $ac_try) 2>&5
8918 ac_status=$?
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; } &&
8921 { ac_try='test -s conftest$ac_exeext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
drh71eb93e2001-09-28 01:34:43 +00008927 ac_cv_lib_svld_dlopen=yes
8928else
drh866108f2008-05-13 00:57:21 +00008929 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008930sed 's/^/| /' conftest.$ac_ext >&5
8931
drh866108f2008-05-13 00:57:21 +00008932ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00008933fi
drh866108f2008-05-13 00:57:21 +00008934rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00008935 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00008936LIBS=$ac_check_lib_save_LIBS
8937fi
drh866108f2008-05-13 00:57:21 +00008938echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8939echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
drh71eb93e2001-09-28 01:34:43 +00008940if test $ac_cv_lib_svld_dlopen = yes; then
8941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00008942else
drh866108f2008-05-13 00:57:21 +00008943 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8944echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008945if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh866108f2008-05-13 00:57:21 +00008946 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +00008947else
8948 ac_check_lib_save_LIBS=$LIBS
8949LIBS="-ldld $LIBS"
8950cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00008951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956
drh866108f2008-05-13 00:57:21 +00008957/* Override any gcc2 internal prototype to avoid an error. */
a.rottmann84e63352003-03-24 09:42:16 +00008958#ifdef __cplusplus
8959extern "C"
8960#endif
drh866108f2008-05-13 00:57:21 +00008961/* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00008963char dld_link ();
8964int
8965main ()
8966{
drh866108f2008-05-13 00:57:21 +00008967dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00008968 ;
8969 return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +00008973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974 (eval $ac_link) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00008975 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00008976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00008979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +00008994 ac_cv_lib_dld_dld_link=yes
8995else
drh866108f2008-05-13 00:57:21 +00008996 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00008997sed 's/^/| /' conftest.$ac_ext >&5
8998
drh866108f2008-05-13 00:57:21 +00008999ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009000fi
drh866108f2008-05-13 00:57:21 +00009001rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +00009002 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009003LIBS=$ac_check_lib_save_LIBS
9004fi
drh866108f2008-05-13 00:57:21 +00009005echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9006echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
a.rottmann84e63352003-03-24 09:42:16 +00009007if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009008 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009009fi
9010
drh71eb93e2001-09-28 01:34:43 +00009011
9012fi
9013
drh71eb93e2001-09-28 01:34:43 +00009014
9015fi
9016
a.rottmann84e63352003-03-24 09:42:16 +00009017
9018fi
9019
9020
9021fi
9022
9023
drh71eb93e2001-09-28 01:34:43 +00009024fi
9025
9026 ;;
9027 esac
9028
9029 if test "x$lt_cv_dlopen" != xno; then
9030 enable_dlopen=yes
9031 else
9032 enable_dlopen=no
9033 fi
9034
9035 case $lt_cv_dlopen in
9036 dlopen)
9037 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009038 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009039
9040 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009041 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009042
9043 save_LIBS="$LIBS"
9044 LIBS="$lt_cv_dlopen_libs $LIBS"
9045
drh866108f2008-05-13 00:57:21 +00009046 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9047echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009048if test "${lt_cv_dlopen_self+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009049 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009050else
9051 if test "$cross_compiling" = yes; then :
9052 lt_cv_dlopen_self=cross
9053else
a.rottmann9bc8b932004-02-29 15:18:31 +00009054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009055 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009056 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00009057#line 9057 "configure"
drh71eb93e2001-09-28 01:34:43 +00009058#include "confdefs.h"
9059
9060#if HAVE_DLFCN_H
9061#include <dlfcn.h>
9062#endif
9063
9064#include <stdio.h>
9065
9066#ifdef RTLD_GLOBAL
9067# define LT_DLGLOBAL RTLD_GLOBAL
9068#else
9069# ifdef DL_GLOBAL
9070# define LT_DLGLOBAL DL_GLOBAL
9071# else
9072# define LT_DLGLOBAL 0
9073# endif
9074#endif
9075
9076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9077 find out it does not work in some platform. */
9078#ifndef LT_DLLAZY_OR_NOW
9079# ifdef RTLD_LAZY
9080# define LT_DLLAZY_OR_NOW RTLD_LAZY
9081# else
9082# ifdef DL_LAZY
9083# define LT_DLLAZY_OR_NOW DL_LAZY
9084# else
9085# ifdef RTLD_NOW
9086# define LT_DLLAZY_OR_NOW RTLD_NOW
9087# else
9088# ifdef DL_NOW
9089# define LT_DLLAZY_OR_NOW DL_NOW
9090# else
9091# define LT_DLLAZY_OR_NOW 0
9092# endif
9093# endif
9094# endif
9095# endif
9096#endif
9097
9098#ifdef __cplusplus
9099extern "C" void exit (int);
9100#endif
9101
9102void fnord() { int i=42;}
9103int main ()
9104{
9105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9106 int status = $lt_dlunknown;
9107
9108 if (self)
9109 {
9110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9111 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9112 /* dlclose (self); */
9113 }
vapier7f19c022007-02-17 14:46:31 +00009114 else
9115 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009116
9117 exit (status);
9118}
mlcreech636a9952008-05-05 22:52:56 +00009119_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00009120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009121 (eval $ac_link) 2>&5
9122 ac_status=$?
drh866108f2008-05-13 00:57:21 +00009123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009124 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009125 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009126 lt_status=$?
9127 case x$lt_status in
9128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009131 esac
9132 else :
9133 # compilation failed
9134 lt_cv_dlopen_self=no
9135 fi
9136fi
9137rm -fr conftest*
9138
a.rottmann84e63352003-03-24 09:42:16 +00009139
drh71eb93e2001-09-28 01:34:43 +00009140fi
drh866108f2008-05-13 00:57:21 +00009141echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9142echo "${ECHO_T}$lt_cv_dlopen_self" >&6
drh71eb93e2001-09-28 01:34:43 +00009143
9144 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh866108f2008-05-13 00:57:21 +00009146 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9147echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009148if test "${lt_cv_dlopen_self_static+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009149 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009150else
9151 if test "$cross_compiling" = yes; then :
9152 lt_cv_dlopen_self_static=cross
9153else
a.rottmann9bc8b932004-02-29 15:18:31 +00009154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009155 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009156 cat > conftest.$ac_ext <<_LT_EOF
drh866108f2008-05-13 00:57:21 +00009157#line 9157 "configure"
drh71eb93e2001-09-28 01:34:43 +00009158#include "confdefs.h"
9159
9160#if HAVE_DLFCN_H
9161#include <dlfcn.h>
9162#endif
9163
9164#include <stdio.h>
9165
9166#ifdef RTLD_GLOBAL
9167# define LT_DLGLOBAL RTLD_GLOBAL
9168#else
9169# ifdef DL_GLOBAL
9170# define LT_DLGLOBAL DL_GLOBAL
9171# else
9172# define LT_DLGLOBAL 0
9173# endif
9174#endif
9175
9176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9177 find out it does not work in some platform. */
9178#ifndef LT_DLLAZY_OR_NOW
9179# ifdef RTLD_LAZY
9180# define LT_DLLAZY_OR_NOW RTLD_LAZY
9181# else
9182# ifdef DL_LAZY
9183# define LT_DLLAZY_OR_NOW DL_LAZY
9184# else
9185# ifdef RTLD_NOW
9186# define LT_DLLAZY_OR_NOW RTLD_NOW
9187# else
9188# ifdef DL_NOW
9189# define LT_DLLAZY_OR_NOW DL_NOW
9190# else
9191# define LT_DLLAZY_OR_NOW 0
9192# endif
9193# endif
9194# endif
9195# endif
9196#endif
9197
9198#ifdef __cplusplus
9199extern "C" void exit (int);
9200#endif
9201
9202void fnord() { int i=42;}
9203int main ()
9204{
9205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9206 int status = $lt_dlunknown;
9207
9208 if (self)
9209 {
9210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9212 /* dlclose (self); */
9213 }
vapier7f19c022007-02-17 14:46:31 +00009214 else
9215 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009216
9217 exit (status);
9218}
mlcreech636a9952008-05-05 22:52:56 +00009219_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +00009220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +00009221 (eval $ac_link) 2>&5
9222 ac_status=$?
drh866108f2008-05-13 00:57:21 +00009223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00009224 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009225 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009226 lt_status=$?
9227 case x$lt_status in
9228 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9229 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009230 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009231 esac
9232 else :
9233 # compilation failed
9234 lt_cv_dlopen_self_static=no
9235 fi
9236fi
9237rm -fr conftest*
9238
a.rottmann84e63352003-03-24 09:42:16 +00009239
drh71eb93e2001-09-28 01:34:43 +00009240fi
drh866108f2008-05-13 00:57:21 +00009241echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9242echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
drh71eb93e2001-09-28 01:34:43 +00009243 fi
9244
9245 CPPFLAGS="$save_CPPFLAGS"
9246 LDFLAGS="$save_LDFLAGS"
9247 LIBS="$save_LIBS"
9248 ;;
9249 esac
9250
9251 case $lt_cv_dlopen_self in
9252 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9253 *) enable_dlopen_self=unknown ;;
9254 esac
9255
9256 case $lt_cv_dlopen_self_static in
9257 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9258 *) enable_dlopen_self_static=unknown ;;
9259 esac
9260fi
9261
drh71eb93e2001-09-28 01:34:43 +00009262
drh71eb93e2001-09-28 01:34:43 +00009263
a.rottmann9bc8b932004-02-29 15:18:31 +00009264
a.rottmann9bc8b932004-02-29 15:18:31 +00009265
mlcreech636a9952008-05-05 22:52:56 +00009266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278striplib=
9279old_striplib=
drh866108f2008-05-13 00:57:21 +00009280echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9281echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009282if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9283 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9284 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh866108f2008-05-13 00:57:21 +00009285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009287else
9288# FIXME - insert some real tests, host_os isn't really good enough
9289 case $host_os in
9290 darwin*)
9291 if test -n "$STRIP" ; then
9292 striplib="$STRIP -x"
9293 old_striplib="$STRIP -S"
drh866108f2008-05-13 00:57:21 +00009294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
mlcreech636a9952008-05-05 22:52:56 +00009296 else
drh866108f2008-05-13 00:57:21 +00009297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
mlcreech636a9952008-05-05 22:52:56 +00009299 fi
a.rottmann84e63352003-03-24 09:42:16 +00009300 ;;
mlcreech636a9952008-05-05 22:52:56 +00009301 *)
drh866108f2008-05-13 00:57:21 +00009302 echo "$as_me:$LINENO: result: no" >&5
9303echo "${ECHO_T}no" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009304 ;;
9305 esac
mlcreech636a9952008-05-05 22:52:56 +00009306fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009307
a.rottmann9bc8b932004-02-29 15:18:31 +00009308
drh71eb93e2001-09-28 01:34:43 +00009309
drh71eb93e2001-09-28 01:34:43 +00009310
a.rottmann84e63352003-03-24 09:42:16 +00009311
drh71eb93e2001-09-28 01:34:43 +00009312
drh71eb93e2001-09-28 01:34:43 +00009313
a.rottmann9bc8b932004-02-29 15:18:31 +00009314
drh71eb93e2001-09-28 01:34:43 +00009315
drh71eb93e2001-09-28 01:34:43 +00009316
drh71eb93e2001-09-28 01:34:43 +00009317
drh71eb93e2001-09-28 01:34:43 +00009318
mlcreech636a9952008-05-05 22:52:56 +00009319 # Report which library types will actually be built
drh866108f2008-05-13 00:57:21 +00009320 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9321echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9322 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9323echo "${ECHO_T}$can_build_shared" >&6
drh71eb93e2001-09-28 01:34:43 +00009324
drh866108f2008-05-13 00:57:21 +00009325 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9326echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009327 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009328
mlcreech636a9952008-05-05 22:52:56 +00009329 # On AIX, shared libraries and static libraries use the same namespace, and
9330 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009331 case $host_os in
9332 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009333 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009334 if test -n "$RANLIB"; then
9335 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9336 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009337 fi
9338 ;;
9339
mlcreech636a9952008-05-05 22:52:56 +00009340 aix[4-9]*)
9341 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9342 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009343 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009344 ;;
9345 esac
drh866108f2008-05-13 00:57:21 +00009346 echo "$as_me:$LINENO: result: $enable_shared" >&5
9347echo "${ECHO_T}$enable_shared" >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009348
drh866108f2008-05-13 00:57:21 +00009349 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9350echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009351 # Make sure either enable_shared or enable_static is yes.
9352 test "$enable_shared" = yes || enable_static=yes
drh866108f2008-05-13 00:57:21 +00009353 echo "$as_me:$LINENO: result: $enable_static" >&5
9354echo "${ECHO_T}$enable_static" >&6
vapier7f19c022007-02-17 14:46:31 +00009355
a.rottmann9bc8b932004-02-29 15:18:31 +00009356
a.rottmann9bc8b932004-02-29 15:18:31 +00009357
a.rottmann9bc8b932004-02-29 15:18:31 +00009358
vapier7f19c022007-02-17 14:46:31 +00009359fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009360ac_ext=c
9361ac_cpp='$CPP $CPPFLAGS'
9362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9364ac_compiler_gnu=$ac_cv_c_compiler_gnu
9365
9366CC="$lt_save_CC"
9367
a.rottmann9bc8b932004-02-29 15:18:31 +00009368
a.rottmann9bc8b932004-02-29 15:18:31 +00009369
9370
a.rottmann9bc8b932004-02-29 15:18:31 +00009371
a.rottmann9bc8b932004-02-29 15:18:31 +00009372
a.rottmann9bc8b932004-02-29 15:18:31 +00009373
a.rottmann9bc8b932004-02-29 15:18:31 +00009374
a.rottmann9bc8b932004-02-29 15:18:31 +00009375
a.rottmann9bc8b932004-02-29 15:18:31 +00009376
vapier7f19c022007-02-17 14:46:31 +00009377
a.rottmann9bc8b932004-02-29 15:18:31 +00009378
9379
drh866108f2008-05-13 00:57:21 +00009380 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009381
vapier7f19c022007-02-17 14:46:31 +00009382
9383
vapier7f19c022007-02-17 14:46:31 +00009384
mlcreech636a9952008-05-05 22:52:56 +00009385# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009386
9387
drh71eb93e2001-09-28 01:34:43 +00009388# Find a good install program. We prefer a C program (faster),
9389# so one script is as good as another. But avoid the broken or
9390# incompatible versions:
9391# SysV /etc/install, /usr/sbin/install
9392# SunOS /usr/etc/install
9393# IRIX /sbin/install
9394# AIX /bin/install
9395# AmigaOS /C/install, which installs bootblocks on floppy discs
9396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9397# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009399# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009400# ./install, which can be erroneously created by make from ./install.sh.
drh866108f2008-05-13 00:57:21 +00009401echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9402echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009403if test -z "$INSTALL"; then
9404if test "${ac_cv_path_install+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009405 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +00009406else
a.rottmann84e63352003-03-24 09:42:16 +00009407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408for as_dir in $PATH
9409do
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 # Account for people who put trailing slashes in PATH elements.
9413case $as_dir/ in
9414 ./ | .// | /cC/* | \
9415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +00009416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009417 /usr/ucb/* ) ;;
9418 *)
9419 # OSF1 and SCO ODT 3.0 have their own names for install.
9420 # Don't use installbsd from OSF since it installs stuff as root
9421 # by default.
9422 for ac_prog in ginstall scoinst install; do
9423 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009424 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009425 if test $ac_prog = install &&
9426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9427 # AIX install. It has an incompatible calling convention.
9428 :
9429 elif test $ac_prog = install &&
9430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9431 # program-specific install script used by HP pwplus--don't use.
9432 :
9433 else
drh866108f2008-05-13 00:57:21 +00009434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9435 break 3
a.rottmann964dbb12004-02-26 19:47:42 +00009436 fi
9437 fi
drh71eb93e2001-09-28 01:34:43 +00009438 done
a.rottmann84e63352003-03-24 09:42:16 +00009439 done
9440 ;;
9441esac
9442done
9443
drh71eb93e2001-09-28 01:34:43 +00009444
9445fi
9446 if test "${ac_cv_path_install+set}" = set; then
9447 INSTALL=$ac_cv_path_install
9448 else
drh866108f2008-05-13 00:57:21 +00009449 # As a last resort, use the slow shell script. We don't cache a
9450 # path for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009451 # break other packages using the cache if that directory is
drh866108f2008-05-13 00:57:21 +00009452 # removed, or if the path is relative.
drh71eb93e2001-09-28 01:34:43 +00009453 INSTALL=$ac_install_sh
9454 fi
9455fi
drh866108f2008-05-13 00:57:21 +00009456echo "$as_me:$LINENO: result: $INSTALL" >&5
9457echo "${ECHO_T}$INSTALL" >&6
drh71eb93e2001-09-28 01:34:43 +00009458
9459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9460# It thinks the first close brace ends the variable substitution.
9461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9462
9463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9464
9465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9466
drhf1878b42006-01-23 18:06:52 +00009467for ac_prog in gawk mawk nawk awk
9468do
9469 # Extract the first word of "$ac_prog", so it can be a program name with args.
9470set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +00009471echo "$as_me:$LINENO: checking for $ac_word" >&5
9472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009473if test "${ac_cv_prog_AWK+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009474 echo $ECHO_N "(cached) $ECHO_C" >&6
drhf1878b42006-01-23 18:06:52 +00009475else
9476 if test -n "$AWK"; then
9477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9478else
9479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480for as_dir in $PATH
9481do
9482 IFS=$as_save_IFS
9483 test -z "$as_dir" && as_dir=.
9484 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +00009485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +00009486 ac_cv_prog_AWK="$ac_prog"
drh866108f2008-05-13 00:57:21 +00009487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009488 break 2
9489 fi
9490done
9491done
9492
9493fi
9494fi
9495AWK=$ac_cv_prog_AWK
9496if test -n "$AWK"; then
drh866108f2008-05-13 00:57:21 +00009497 echo "$as_me:$LINENO: result: $AWK" >&5
9498echo "${ECHO_T}$AWK" >&6
drhf1878b42006-01-23 18:06:52 +00009499else
drh866108f2008-05-13 00:57:21 +00009500 echo "$as_me:$LINENO: result: no" >&5
9501echo "${ECHO_T}no" >&6
drhf1878b42006-01-23 18:06:52 +00009502fi
9503
9504 test -n "$AWK" && break
9505done
9506
a.rottmann84e63352003-03-24 09:42:16 +00009507
drh75897232000-05-29 14:26:00 +00009508#########
mlcreech636a9952008-05-05 22:52:56 +00009509# Enable large file support (if special flags are necessary)
9510#
drh866108f2008-05-13 00:57:21 +00009511# Check whether --enable-largefile or --disable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +00009512if test "${enable_largefile+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009513 enableval="$enable_largefile"
mlcreech636a9952008-05-05 22:52:56 +00009514
drh866108f2008-05-13 00:57:21 +00009515fi;
mlcreech636a9952008-05-05 22:52:56 +00009516if test "$enable_largefile" != no; then
9517
drh866108f2008-05-13 00:57:21 +00009518 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9519echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009520if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009521 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009522else
mlcreech636a9952008-05-05 22:52:56 +00009523 ac_cv_sys_largefile_CC=no
9524 if test "$GCC" != yes; then
9525 ac_save_CC=$CC
9526 while :; do
drh866108f2008-05-13 00:57:21 +00009527 # IRIX 6.2 and later do not support large files by default,
9528 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +00009529 cat >conftest.$ac_ext <<_ACEOF
9530/* confdefs.h. */
9531_ACEOF
9532cat confdefs.h >>conftest.$ac_ext
9533cat >>conftest.$ac_ext <<_ACEOF
9534/* end confdefs.h. */
9535#include <sys/types.h>
9536 /* Check that off_t can represent 2**63 - 1 correctly.
9537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9538 since some C++ compilers masquerading as C compilers
9539 incorrectly reject 9223372036854775807. */
9540#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9542 && LARGE_OFF_T % 2147483647 == 1)
9543 ? 1 : -1];
9544int
9545main ()
9546{
9547
9548 ;
9549 return 0;
9550}
9551_ACEOF
drh866108f2008-05-13 00:57:21 +00009552 rm -f conftest.$ac_objext
9553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9554 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -z "$ac_c_werror_flag"
9562 || test ! -s conftest.err'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 (eval $ac_try) 2>&5
9565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try='test -s conftest.$ac_objext'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009574 break
9575else
drh866108f2008-05-13 00:57:21 +00009576 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009577sed 's/^/| /' conftest.$ac_ext >&5
9578
mlcreech636a9952008-05-05 22:52:56 +00009579fi
drh866108f2008-05-13 00:57:21 +00009580rm -f conftest.err conftest.$ac_objext
9581 CC="$CC -n32"
9582 rm -f conftest.$ac_objext
9583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009604 ac_cv_sys_largefile_CC=' -n32'; break
9605else
drh866108f2008-05-13 00:57:21 +00009606 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009607sed 's/^/| /' conftest.$ac_ext >&5
9608
mlcreech636a9952008-05-05 22:52:56 +00009609fi
drh866108f2008-05-13 00:57:21 +00009610rm -f conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00009611 break
9612 done
9613 CC=$ac_save_CC
9614 rm -f conftest.$ac_ext
9615 fi
9616fi
drh866108f2008-05-13 00:57:21 +00009617echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9618echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
mlcreech636a9952008-05-05 22:52:56 +00009619 if test "$ac_cv_sys_largefile_CC" != no; then
9620 CC=$CC$ac_cv_sys_largefile_CC
9621 fi
9622
drh866108f2008-05-13 00:57:21 +00009623 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9624echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009625if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009626 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009627else
9628 while :; do
drh866108f2008-05-13 00:57:21 +00009629 ac_cv_sys_file_offset_bits=no
mlcreechb87057f2008-03-06 07:19:20 +00009630 cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00009636#include <sys/types.h>
9637 /* Check that off_t can represent 2**63 - 1 correctly.
9638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9639 since some C++ compilers masquerading as C compilers
9640 incorrectly reject 9223372036854775807. */
9641#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9643 && LARGE_OFF_T % 2147483647 == 1)
9644 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +00009645int
9646main ()
9647{
mlcreech636a9952008-05-05 22:52:56 +00009648
mlcreechb87057f2008-03-06 07:19:20 +00009649 ;
9650 return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +00009656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest.$ac_objext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 break
mlcreechb87057f2008-03-06 07:19:20 +00009676else
drh866108f2008-05-13 00:57:21 +00009677 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009678sed 's/^/| /' conftest.$ac_ext >&5
9679
mlcreech636a9952008-05-05 22:52:56 +00009680fi
drh866108f2008-05-13 00:57:21 +00009681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009682 cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
9688#define _FILE_OFFSET_BITS 64
9689#include <sys/types.h>
9690 /* Check that off_t can represent 2**63 - 1 correctly.
9691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9692 since some C++ compilers masquerading as C compilers
9693 incorrectly reject 9223372036854775807. */
9694#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9696 && LARGE_OFF_T % 2147483647 == 1)
9697 ? 1 : -1];
9698int
9699main ()
9700{
9701
9702 ;
9703 return 0;
9704}
9705_ACEOF
9706rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest.$ac_objext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009728 ac_cv_sys_file_offset_bits=64; break
9729else
drh866108f2008-05-13 00:57:21 +00009730 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009731sed 's/^/| /' conftest.$ac_ext >&5
9732
mlcreech636a9952008-05-05 22:52:56 +00009733fi
drh866108f2008-05-13 00:57:21 +00009734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009735 break
9736done
9737fi
drh866108f2008-05-13 00:57:21 +00009738echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9739echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9740if test "$ac_cv_sys_file_offset_bits" != no; then
9741
mlcreech636a9952008-05-05 22:52:56 +00009742cat >>confdefs.h <<_ACEOF
9743#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9744_ACEOF
drh866108f2008-05-13 00:57:21 +00009745
9746fi
9747rm -f conftest*
9748 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9749echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009750if test "${ac_cv_sys_large_files+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009751 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009752else
9753 while :; do
drh866108f2008-05-13 00:57:21 +00009754 ac_cv_sys_large_files=no
mlcreech636a9952008-05-05 22:52:56 +00009755 cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761#include <sys/types.h>
9762 /* Check that off_t can represent 2**63 - 1 correctly.
9763 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9764 since some C++ compilers masquerading as C compilers
9765 incorrectly reject 9223372036854775807. */
9766#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9767 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9768 && LARGE_OFF_T % 2147483647 == 1)
9769 ? 1 : -1];
9770int
9771main ()
9772{
9773
9774 ;
9775 return 0;
9776}
9777_ACEOF
9778rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9780 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } &&
9787 { ac_try='test -z "$ac_c_werror_flag"
9788 || test ! -s conftest.err'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; } &&
9794 { ac_try='test -s conftest.$ac_objext'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796 (eval $ac_try) 2>&5
9797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; }; then
9800 break
mlcreech636a9952008-05-05 22:52:56 +00009801else
drh866108f2008-05-13 00:57:21 +00009802 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009803sed 's/^/| /' conftest.$ac_ext >&5
9804
mlcreech636a9952008-05-05 22:52:56 +00009805fi
drh866108f2008-05-13 00:57:21 +00009806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009807 cat >conftest.$ac_ext <<_ACEOF
9808/* confdefs.h. */
9809_ACEOF
9810cat confdefs.h >>conftest.$ac_ext
9811cat >>conftest.$ac_ext <<_ACEOF
9812/* end confdefs.h. */
9813#define _LARGE_FILES 1
9814#include <sys/types.h>
9815 /* Check that off_t can represent 2**63 - 1 correctly.
9816 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9817 since some C++ compilers masquerading as C compilers
9818 incorrectly reject 9223372036854775807. */
9819#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9820 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9821 && LARGE_OFF_T % 2147483647 == 1)
9822 ? 1 : -1];
9823int
9824main ()
9825{
9826
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } &&
9840 { ac_try='test -z "$ac_c_werror_flag"
9841 || test ! -s conftest.err'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; } &&
9847 { ac_try='test -s conftest.$ac_objext'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
mlcreech636a9952008-05-05 22:52:56 +00009853 ac_cv_sys_large_files=1; break
9854else
drh866108f2008-05-13 00:57:21 +00009855 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009856sed 's/^/| /' conftest.$ac_ext >&5
9857
mlcreech636a9952008-05-05 22:52:56 +00009858fi
drh866108f2008-05-13 00:57:21 +00009859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009860 break
9861done
9862fi
drh866108f2008-05-13 00:57:21 +00009863echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9864echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9865if test "$ac_cv_sys_large_files" != no; then
9866
mlcreech636a9952008-05-05 22:52:56 +00009867cat >>confdefs.h <<_ACEOF
9868#define _LARGE_FILES $ac_cv_sys_large_files
9869_ACEOF
drh866108f2008-05-13 00:57:21 +00009870
9871fi
9872rm -f conftest*
mlcreech636a9952008-05-05 22:52:56 +00009873fi
9874
9875
9876#########
9877# Check for needed/wanted data types
drh866108f2008-05-13 00:57:21 +00009878echo "$as_me:$LINENO: checking for int8_t" >&5
9879echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009880if test "${ac_cv_type_int8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009881 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech636a9952008-05-05 22:52:56 +00009882else
mlcreech636a9952008-05-05 22:52:56 +00009883 cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h. */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h. */
9889$ac_includes_default
9890int
9891main ()
9892{
drh866108f2008-05-13 00:57:21 +00009893if ((int8_t *) 0)
9894 return 0;
9895if (sizeof (int8_t))
9896 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009897 ;
9898 return 0;
9899}
9900_ACEOF
9901rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9903 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag"
9911 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +00009924else
drh866108f2008-05-13 00:57:21 +00009925 echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009926sed 's/^/| /' conftest.$ac_ext >&5
9927
drh866108f2008-05-13 00:57:21 +00009928ac_cv_type_int8_t=no
mlcreech636a9952008-05-05 22:52:56 +00009929fi
drh866108f2008-05-13 00:57:21 +00009930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009931fi
drh866108f2008-05-13 00:57:21 +00009932echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
9933echo "${ECHO_T}$ac_cv_type_int8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009934if test $ac_cv_type_int8_t = yes; then
9935
9936cat >>confdefs.h <<_ACEOF
9937#define HAVE_INT8_T 1
9938_ACEOF
9939
9940
9941fi
drh866108f2008-05-13 00:57:21 +00009942echo "$as_me:$LINENO: checking for int16_t" >&5
9943echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009944if test "${ac_cv_type_int16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +00009945 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009946else
mlcreech636a9952008-05-05 22:52:56 +00009947 cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
9953$ac_includes_default
9954int
9955main ()
9956{
drh866108f2008-05-13 00:57:21 +00009957if ((int16_t *) 0)
9958 return 0;
9959if (sizeof (int16_t))
9960 return 0;
mlcreech636a9952008-05-05 22:52:56 +00009961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +00009966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9967 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +00009972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -z "$ac_c_werror_flag"
9975 || test ! -s conftest.err'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; } &&
9981 { ac_try='test -s conftest.$ac_objext'
9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983 (eval $ac_try) 2>&5
9984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_type_int16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +00009988else
drh866108f2008-05-13 00:57:21 +00009989 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +00009990sed 's/^/| /' conftest.$ac_ext >&5
9991
drh866108f2008-05-13 00:57:21 +00009992ac_cv_type_int16_t=no
mlcreech636a9952008-05-05 22:52:56 +00009993fi
drh866108f2008-05-13 00:57:21 +00009994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +00009995fi
drh866108f2008-05-13 00:57:21 +00009996echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
9997echo "${ECHO_T}$ac_cv_type_int16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +00009998if test $ac_cv_type_int16_t = yes; then
9999
10000cat >>confdefs.h <<_ACEOF
10001#define HAVE_INT16_T 1
10002_ACEOF
10003
10004
10005fi
drh866108f2008-05-13 00:57:21 +000010006echo "$as_me:$LINENO: checking for int32_t" >&5
10007echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010008if test "${ac_cv_type_int32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010009 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010010else
mlcreech636a9952008-05-05 22:52:56 +000010011 cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h. */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */
10017$ac_includes_default
10018int
10019main ()
10020{
drh866108f2008-05-13 00:57:21 +000010021if ((int32_t *) 0)
10022 return 0;
10023if (sizeof (int32_t))
10024 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10031 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010032 ac_status=$?
10033 grep -v '^ *+' conftest.er1 >conftest.err
10034 rm -f conftest.er1
10035 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } &&
10038 { ac_try='test -z "$ac_c_werror_flag"
10039 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_type_int32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010052else
drh866108f2008-05-13 00:57:21 +000010053 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010054sed 's/^/| /' conftest.$ac_ext >&5
10055
drh866108f2008-05-13 00:57:21 +000010056ac_cv_type_int32_t=no
mlcreech636a9952008-05-05 22:52:56 +000010057fi
drh866108f2008-05-13 00:57:21 +000010058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010059fi
drh866108f2008-05-13 00:57:21 +000010060echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
10061echo "${ECHO_T}$ac_cv_type_int32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010062if test $ac_cv_type_int32_t = yes; then
10063
10064cat >>confdefs.h <<_ACEOF
10065#define HAVE_INT32_T 1
10066_ACEOF
10067
10068
10069fi
drh866108f2008-05-13 00:57:21 +000010070echo "$as_me:$LINENO: checking for int64_t" >&5
10071echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010072if test "${ac_cv_type_int64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010073 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010074else
mlcreech636a9952008-05-05 22:52:56 +000010075 cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h. */
10081$ac_includes_default
10082int
10083main ()
10084{
drh866108f2008-05-13 00:57:21 +000010085if ((int64_t *) 0)
10086 return 0;
10087if (sizeof (int64_t))
10088 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010089 ;
10090 return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10095 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag"
10103 || test ! -s conftest.err'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest.$ac_objext'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_type_int64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010116else
drh866108f2008-05-13 00:57:21 +000010117 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010118sed 's/^/| /' conftest.$ac_ext >&5
10119
drh866108f2008-05-13 00:57:21 +000010120ac_cv_type_int64_t=no
mlcreech636a9952008-05-05 22:52:56 +000010121fi
drh866108f2008-05-13 00:57:21 +000010122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010123fi
drh866108f2008-05-13 00:57:21 +000010124echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
10125echo "${ECHO_T}$ac_cv_type_int64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010126if test $ac_cv_type_int64_t = yes; then
10127
10128cat >>confdefs.h <<_ACEOF
10129#define HAVE_INT64_T 1
10130_ACEOF
10131
10132
10133fi
danielk197733a14782008-08-04 14:50:05 +000010134echo "$as_me:$LINENO: checking for intptr_t" >&5
10135echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
10136if test "${ac_cv_type_intptr_t+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 cat >conftest.$ac_ext <<_ACEOF
10140/* confdefs.h. */
10141_ACEOF
10142cat confdefs.h >>conftest.$ac_ext
10143cat >>conftest.$ac_ext <<_ACEOF
10144/* end confdefs.h. */
10145$ac_includes_default
10146int
10147main ()
10148{
10149if ((intptr_t *) 0)
10150 return 0;
10151if (sizeof (intptr_t))
10152 return 0;
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext
10158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ac_cv_type_intptr_t=yes
10180else
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000010183
danielk197733a14782008-08-04 14:50:05 +000010184ac_cv_type_intptr_t=no
10185fi
10186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
10189echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
10190if test $ac_cv_type_intptr_t = yes; then
10191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INTPTR_T 1
10194_ACEOF
10195
10196
10197fi
drh866108f2008-05-13 00:57:21 +000010198echo "$as_me:$LINENO: checking for uint8_t" >&5
10199echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010200if test "${ac_cv_type_uint8_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010201 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010202else
mlcreech636a9952008-05-05 22:52:56 +000010203 cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h. */
10209$ac_includes_default
10210int
10211main ()
10212{
drh866108f2008-05-13 00:57:21 +000010213if ((uint8_t *) 0)
10214 return 0;
10215if (sizeof (uint8_t))
10216 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010217 ;
10218 return 0;
10219}
10220_ACEOF
10221rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -z "$ac_c_werror_flag"
10231 || test ! -s conftest.err'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; } &&
10237 { ac_try='test -s conftest.$ac_objext'
10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239 (eval $ac_try) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
10243 ac_cv_type_uint8_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010244else
drh866108f2008-05-13 00:57:21 +000010245 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010246sed 's/^/| /' conftest.$ac_ext >&5
10247
drh866108f2008-05-13 00:57:21 +000010248ac_cv_type_uint8_t=no
mlcreech636a9952008-05-05 22:52:56 +000010249fi
drh866108f2008-05-13 00:57:21 +000010250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010251fi
drh866108f2008-05-13 00:57:21 +000010252echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
10253echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010254if test $ac_cv_type_uint8_t = yes; then
10255
10256cat >>confdefs.h <<_ACEOF
10257#define HAVE_UINT8_T 1
10258_ACEOF
10259
10260
10261fi
drh866108f2008-05-13 00:57:21 +000010262echo "$as_me:$LINENO: checking for uint16_t" >&5
10263echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010264if test "${ac_cv_type_uint16_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010265 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010266else
mlcreech636a9952008-05-05 22:52:56 +000010267 cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h. */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h. */
10273$ac_includes_default
10274int
10275main ()
10276{
drh866108f2008-05-13 00:57:21 +000010277if ((uint16_t *) 0)
10278 return 0;
10279if (sizeof (uint16_t))
10280 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010281 ;
10282 return 0;
10283}
10284_ACEOF
10285rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010288 ac_status=$?
10289 grep -v '^ *+' conftest.er1 >conftest.err
10290 rm -f conftest.er1
10291 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -z "$ac_c_werror_flag"
10295 || test ! -s conftest.err'
10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297 (eval $ac_try) 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; } &&
10301 { ac_try='test -s conftest.$ac_objext'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }; then
10307 ac_cv_type_uint16_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010308else
drh866108f2008-05-13 00:57:21 +000010309 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010310sed 's/^/| /' conftest.$ac_ext >&5
10311
drh866108f2008-05-13 00:57:21 +000010312ac_cv_type_uint16_t=no
mlcreech636a9952008-05-05 22:52:56 +000010313fi
drh866108f2008-05-13 00:57:21 +000010314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010315fi
drh866108f2008-05-13 00:57:21 +000010316echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
10317echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010318if test $ac_cv_type_uint16_t = yes; then
10319
10320cat >>confdefs.h <<_ACEOF
10321#define HAVE_UINT16_T 1
10322_ACEOF
10323
10324
10325fi
drh866108f2008-05-13 00:57:21 +000010326echo "$as_me:$LINENO: checking for uint32_t" >&5
10327echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010328if test "${ac_cv_type_uint32_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010329 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010330else
mlcreech636a9952008-05-05 22:52:56 +000010331 cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337$ac_includes_default
10338int
10339main ()
10340{
drh866108f2008-05-13 00:57:21 +000010341if ((uint32_t *) 0)
10342 return 0;
10343if (sizeof (uint32_t))
10344 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_type_uint32_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010372else
drh866108f2008-05-13 00:57:21 +000010373 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010374sed 's/^/| /' conftest.$ac_ext >&5
10375
drh866108f2008-05-13 00:57:21 +000010376ac_cv_type_uint32_t=no
mlcreech636a9952008-05-05 22:52:56 +000010377fi
drh866108f2008-05-13 00:57:21 +000010378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010379fi
drh866108f2008-05-13 00:57:21 +000010380echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10381echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010382if test $ac_cv_type_uint32_t = yes; then
10383
10384cat >>confdefs.h <<_ACEOF
10385#define HAVE_UINT32_T 1
10386_ACEOF
10387
10388
10389fi
drh866108f2008-05-13 00:57:21 +000010390echo "$as_me:$LINENO: checking for uint64_t" >&5
10391echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010392if test "${ac_cv_type_uint64_t+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010393 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010394else
mlcreech636a9952008-05-05 22:52:56 +000010395 cat >conftest.$ac_ext <<_ACEOF
10396/* confdefs.h. */
10397_ACEOF
10398cat confdefs.h >>conftest.$ac_ext
10399cat >>conftest.$ac_ext <<_ACEOF
10400/* end confdefs.h. */
10401$ac_includes_default
10402int
10403main ()
10404{
drh866108f2008-05-13 00:57:21 +000010405if ((uint64_t *) 0)
10406 return 0;
10407if (sizeof (uint64_t))
10408 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010409 ;
10410 return 0;
10411}
10412_ACEOF
10413rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010416 ac_status=$?
10417 grep -v '^ *+' conftest.er1 >conftest.err
10418 rm -f conftest.er1
10419 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try='test -z "$ac_c_werror_flag"
10423 || test ! -s conftest.err'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; } &&
10429 { ac_try='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_type_uint64_t=yes
mlcreechb87057f2008-03-06 07:19:20 +000010436else
drh866108f2008-05-13 00:57:21 +000010437 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010438sed 's/^/| /' conftest.$ac_ext >&5
10439
drh866108f2008-05-13 00:57:21 +000010440ac_cv_type_uint64_t=no
mlcreech636a9952008-05-05 22:52:56 +000010441fi
drh866108f2008-05-13 00:57:21 +000010442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010443fi
drh866108f2008-05-13 00:57:21 +000010444echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
10445echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010446if test $ac_cv_type_uint64_t = yes; then
10447
10448cat >>confdefs.h <<_ACEOF
10449#define HAVE_UINT64_T 1
10450_ACEOF
10451
10452
10453fi
danielk197733a14782008-08-04 14:50:05 +000010454echo "$as_me:$LINENO: checking for uintptr_t" >&5
10455echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
10456if test "${ac_cv_type_uintptr_t+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465$ac_includes_default
10466int
10467main ()
10468{
10469if ((uintptr_t *) 0)
10470 return 0;
10471if (sizeof (uintptr_t))
10472 return 0;
10473 ;
10474 return 0;
10475}
10476_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010477rm -f conftest.$ac_objext
danielk197733a14782008-08-04 14:50:05 +000010478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>conftest.er1
10480 ac_status=$?
10481 grep -v '^ *+' conftest.er1 >conftest.err
10482 rm -f conftest.er1
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -z "$ac_c_werror_flag"
10487 || test ! -s conftest.err'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10490 ac_status=$?
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest.$ac_objext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_type_uintptr_t=yes
10500else
10501 echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504ac_cv_type_uintptr_t=no
10505fi
10506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi
10508echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10509echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
10510if test $ac_cv_type_uintptr_t = yes; then
10511
10512cat >>confdefs.h <<_ACEOF
10513#define HAVE_UINTPTR_T 1
10514_ACEOF
10515
10516
10517fi
mlcreechb87057f2008-03-06 07:19:20 +000010518
10519
10520#########
10521# Check for needed/wanted headers
10522
mlcreech8390bc32008-03-06 08:54:38 +000010523
10524
10525
10526for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000010527do
drh866108f2008-05-13 00:57:21 +000010528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10529if eval "test \"\${$as_ac_Header+set}\" = set"; then
10530 echo "$as_me:$LINENO: checking for $ac_header" >&5
10531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10532if eval "test \"\${$as_ac_Header+set}\" = set"; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010534fi
drh866108f2008-05-13 00:57:21 +000010535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreechb87057f2008-03-06 07:19:20 +000010537else
mlcreech8390bc32008-03-06 08:54:38 +000010538 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000010539echo "$as_me:$LINENO: checking $ac_header usability" >&5
10540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010541cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000010547$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000010548#include <$ac_header>
10549_ACEOF
10550rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000010551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest.$ac_objext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
mlcreech8390bc32008-03-06 08:54:38 +000010572 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000010573else
drh866108f2008-05-13 00:57:21 +000010574 echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010575sed 's/^/| /' conftest.$ac_ext >&5
10576
drh866108f2008-05-13 00:57:21 +000010577ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000010578fi
drh866108f2008-05-13 00:57:21 +000010579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581echo "${ECHO_T}$ac_header_compiler" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010582
10583# Is the header present?
drh866108f2008-05-13 00:57:21 +000010584echo "$as_me:$LINENO: checking $ac_header presence" >&5
10585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h. */
10592#include <$ac_header>
10593_ACEOF
drh866108f2008-05-13 00:57:21 +000010594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000010596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } >/dev/null; then
10602 if test -s conftest.err; then
10603 ac_cpp_err=$ac_c_preproc_warn_flag
10604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10605 else
10606 ac_cpp_err=
10607 fi
10608else
10609 ac_cpp_err=yes
10610fi
10611if test -z "$ac_cpp_err"; then
mlcreech8390bc32008-03-06 08:54:38 +000010612 ac_header_preproc=yes
10613else
drh866108f2008-05-13 00:57:21 +000010614 echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000010615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617 ac_header_preproc=no
10618fi
mlcreech8390bc32008-03-06 08:54:38 +000010619rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000010620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621echo "${ECHO_T}$ac_header_preproc" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010622
10623# So? What about this header?
10624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10625 yes:no: )
drh866108f2008-05-13 00:57:21 +000010626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000010630 ac_header_preproc=yes
10631 ;;
10632 no:yes:* )
drh866108f2008-05-13 00:57:21 +000010633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10645 (
10646 cat <<\_ASBOX
10647## --------------------------------- ##
10648## Report this to the sqlite lists. ##
10649## --------------------------------- ##
10650_ASBOX
10651 ) |
10652 sed "s/^/$as_me: WARNING: /" >&2
mlcreech8390bc32008-03-06 08:54:38 +000010653 ;;
10654esac
drh866108f2008-05-13 00:57:21 +000010655echo "$as_me:$LINENO: checking for $ac_header" >&5
10656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10657if eval "test \"\${$as_ac_Header+set}\" = set"; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010659else
10660 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000010661fi
drh866108f2008-05-13 00:57:21 +000010662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
mlcreech8390bc32008-03-06 08:54:38 +000010664
10665fi
drh866108f2008-05-13 00:57:21 +000010666if test `eval echo '${'$as_ac_Header'}'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000010667 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010669_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010670
mlcreechb87057f2008-03-06 07:19:20 +000010671fi
10672
10673done
10674
10675
10676#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010677# Figure out whether or not we have these functions
10678#
10679
10680
10681
10682
danielk197733a14782008-08-04 14:50:05 +000010683
shanefbedede2008-07-22 05:05:01 +000010684for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000010685do
drh866108f2008-05-13 00:57:21 +000010686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687echo "$as_me:$LINENO: checking for $ac_func" >&5
10688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10689if eval "test \"\${$as_ac_var+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000010691else
10692 cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700#define $ac_func innocuous_$ac_func
10701
10702/* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10706
10707#ifdef __STDC__
10708# include <limits.h>
10709#else
10710# include <assert.h>
10711#endif
10712
10713#undef $ac_func
10714
drh866108f2008-05-13 00:57:21 +000010715/* Override any gcc2 internal prototype to avoid an error. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010716#ifdef __cplusplus
10717extern "C"
drh866108f2008-05-13 00:57:21 +000010718{
mlcreech5b0a9eb2008-03-09 01:38:09 +000010719#endif
drh866108f2008-05-13 00:57:21 +000010720/* We use char because int might match the return type of a gcc2
10721 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000010722char $ac_func ();
10723/* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
drh866108f2008-05-13 00:57:21 +000010726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
mlcreech5b0a9eb2008-03-09 01:38:09 +000010727choke me
drh866108f2008-05-13 00:57:21 +000010728#else
10729char (*f) () = $ac_func;
10730#endif
10731#ifdef __cplusplus
10732}
mlcreech5b0a9eb2008-03-09 01:38:09 +000010733#endif
10734
10735int
10736main ()
10737{
drh866108f2008-05-13 00:57:21 +000010738return f != $ac_func;
mlcreech5b0a9eb2008-03-09 01:38:09 +000010739 ;
10740 return 0;
10741}
10742_ACEOF
10743rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000010744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010746 ac_status=$?
10747 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1
10749 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000010750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010765 eval "$as_ac_var=yes"
10766else
drh866108f2008-05-13 00:57:21 +000010767 echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000010768sed 's/^/| /' conftest.$ac_ext >&5
10769
drh866108f2008-05-13 00:57:21 +000010770eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000010771fi
drh866108f2008-05-13 00:57:21 +000010772rm -f conftest.err conftest.$ac_objext \
mlcreech5b0a9eb2008-03-09 01:38:09 +000010773 conftest$ac_exeext conftest.$ac_ext
10774fi
drh866108f2008-05-13 00:57:21 +000010775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777if test `eval echo '${'$as_ac_var'}'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000010778 cat >>confdefs.h <<_ACEOF
drh866108f2008-05-13 00:57:21 +000010779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010780_ACEOF
10781
10782fi
10783done
10784
10785
mlcreechab1c47b2008-03-09 02:51:10 +000010786#########
mlcreechf3868112008-03-11 18:03:30 +000010787# By default, we use the amalgamation (this may be changed below...)
10788#
10789USE_AMALGAMATION=1
10790
10791#########
mlcreechab1c47b2008-03-09 02:51:10 +000010792# See whether we can run specific tclsh versions known to work well;
10793# if not, then we fall back to plain tclsh.
10794# TODO: try other versions before falling back?
10795#
10796for ac_prog in tclsh8.4 tclsh
10797do
10798 # Extract the first word of "$ac_prog", so it can be a program name with args.
10799set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010800echo "$as_me:$LINENO: checking for $ac_word" >&5
10801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010802if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010803 echo $ECHO_N "(cached) $ECHO_C" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010804else
10805 if test -n "$TCLSH_CMD"; then
10806 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10807else
10808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10809for as_dir in $PATH
10810do
10811 IFS=$as_save_IFS
10812 test -z "$as_dir" && as_dir=.
10813 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010815 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010817 break 2
10818 fi
10819done
10820done
mlcreechab1c47b2008-03-09 02:51:10 +000010821
10822fi
10823fi
10824TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10825if test -n "$TCLSH_CMD"; then
drh866108f2008-05-13 00:57:21 +000010826 echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
10827echo "${ECHO_T}$TCLSH_CMD" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010828else
drh866108f2008-05-13 00:57:21 +000010829 echo "$as_me:$LINENO: result: no" >&5
10830echo "${ECHO_T}no" >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010831fi
10832
mlcreechab1c47b2008-03-09 02:51:10 +000010833 test -n "$TCLSH_CMD" && break
10834done
mlcreechf3868112008-03-11 18:03:30 +000010835test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010836
mlcreechf3868112008-03-11 18:03:30 +000010837if test "$TCLSH_CMD" = "none"; then
10838 # If we can't find a local tclsh, then building the amalgamation will fail.
10839 # We act as though --disable-amalgamation has been used.
10840 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10841 USE_AMALGAMATION=0
10842 TCLSH_CMD="tclsh"
10843fi
mlcreechab1c47b2008-03-09 02:51:10 +000010844
10845
mlcreech5b0a9eb2008-03-09 01:38:09 +000010846
10847#########
drh75897232000-05-29 14:26:00 +000010848# Set up an appropriate program prefix
10849#
10850if test "$program_prefix" = "NONE"; then
10851 program_prefix=""
10852fi
10853
a.rottmann84e63352003-03-24 09:42:16 +000010854
drh4b2266a2004-11-27 15:52:16 +000010855VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10856echo "Version set to $VERSION"
10857
10858RELEASE=`cat $srcdir/VERSION`
10859echo "Release set to $RELEASE"
a.rottmann84e63352003-03-24 09:42:16 +000010860
danielk197799ba19e2005-02-05 07:33:34 +000010861VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010862 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010863 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
danielk197799ba19e2005-02-05 07:33:34 +000010864echo "Version number set to $VERSION_NUMBER"
a.rottmann84e63352003-03-24 09:42:16 +000010865
drh26d0e2a2005-07-06 13:51:27 +000010866
drh75897232000-05-29 14:26:00 +000010867#########
10868# Check to see if the --with-hints=FILE option is used. If there is none,
10869# then check for a files named "$host.hints" and ../$hosts.hints where
10870# $host is the hostname of the build system. If still no hints are
10871# found, try looking in $system.hints and ../$system.hints where
10872# $system is the result of uname -s.
10873#
drh71eb93e2001-09-28 01:34:43 +000010874
drh866108f2008-05-13 00:57:21 +000010875# Check whether --with-hints or --without-hints was given.
drh75897232000-05-29 14:26:00 +000010876if test "${with_hints+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010877 withval="$with_hints"
10878 hints=$withval
10879fi;
drh75897232000-05-29 14:26:00 +000010880if test "$hints" = ""; then
10881 host=`hostname | sed 's/\..*//'`
10882 if test -r $host.hints; then
10883 hints=$host.hints
10884 else
10885 if test -r ../$host.hints; then
10886 hints=../$host.hints
10887 fi
10888 fi
10889fi
10890if test "$hints" = ""; then
10891 sys=`uname -s`
10892 if test -r $sys.hints; then
10893 hints=$sys.hints
10894 else
10895 if test -r ../$sys.hints; then
10896 hints=../$sys.hints
10897 fi
10898 fi
10899fi
10900if test "$hints" != ""; then
drh866108f2008-05-13 00:57:21 +000010901 echo "$as_me:$LINENO: result: reading hints from $hints" >&5
10902echo "${ECHO_T}reading hints from $hints" >&6
drh75897232000-05-29 14:26:00 +000010903 . $hints
10904fi
10905
10906#########
10907# Locate a compiler for the build machine. This compiler should
10908# generate command-line programs that run on the build machine.
10909#
vapier7f19c022007-02-17 14:46:31 +000010910if test x"$cross_compiling" = xno; then
10911 BUILD_CC=$CC
10912 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010913else
vapier7f19c022007-02-17 14:46:31 +000010914 if test "${BUILD_CC+set}" != set; then
10915 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010916do
10917 # Extract the first word of "$ac_prog", so it can be a program name with args.
10918set dummy $ac_prog; ac_word=$2
drh866108f2008-05-13 00:57:21 +000010919echo "$as_me:$LINENO: checking for $ac_word" >&5
10920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000010921if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010922 echo $ECHO_N "(cached) $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000010923else
vapier7f19c022007-02-17 14:46:31 +000010924 if test -n "$BUILD_CC"; then
10925 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010926else
a.rottmann84e63352003-03-24 09:42:16 +000010927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
10932 for ac_exec_ext in '' $ac_executable_extensions; do
drh866108f2008-05-13 00:57:21 +000010933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010934 ac_cv_prog_BUILD_CC="$ac_prog"
drh866108f2008-05-13 00:57:21 +000010935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010936 break 2
10937 fi
10938done
drh71eb93e2001-09-28 01:34:43 +000010939done
drh75897232000-05-29 14:26:00 +000010940
drh71eb93e2001-09-28 01:34:43 +000010941fi
10942fi
vapier7f19c022007-02-17 14:46:31 +000010943BUILD_CC=$ac_cv_prog_BUILD_CC
10944if test -n "$BUILD_CC"; then
drh866108f2008-05-13 00:57:21 +000010945 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10946echo "${ECHO_T}$BUILD_CC" >&6
drh71eb93e2001-09-28 01:34:43 +000010947else
drh866108f2008-05-13 00:57:21 +000010948 echo "$as_me:$LINENO: result: no" >&5
10949echo "${ECHO_T}no" >&6
drh71eb93e2001-09-28 01:34:43 +000010950fi
drh75897232000-05-29 14:26:00 +000010951
vapier7f19c022007-02-17 14:46:31 +000010952 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010953done
drh75897232000-05-29 14:26:00 +000010954
vapier7f19c022007-02-17 14:46:31 +000010955 fi
10956 if test "${BUILD_CFLAGS+set}" != set; then
10957 BUILD_CFLAGS="-g"
10958 fi
drh71eb93e2001-09-28 01:34:43 +000010959fi
10960
a.rottmann84e63352003-03-24 09:42:16 +000010961
drh297ecf12001-04-05 15:57:13 +000010962##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010963# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010964#
drh866108f2008-05-13 00:57:21 +000010965# Check whether --enable-threadsafe or --disable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000010966if test "${enable_threadsafe+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010967 enableval="$enable_threadsafe"
10968
drh297ecf12001-04-05 15:57:13 +000010969else
drh5a3032b2007-09-03 16:12:09 +000010970 enable_threadsafe=yes
drh866108f2008-05-13 00:57:21 +000010971fi;
10972echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
10973echo $ECHO_N "checking whether to support threadsafe operation... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000010974if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010975 SQLITE_THREADSAFE=0
drh866108f2008-05-13 00:57:21 +000010976 echo "$as_me:$LINENO: result: no" >&5
10977echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000010978else
drh5a3032b2007-09-03 16:12:09 +000010979 SQLITE_THREADSAFE=1
drh866108f2008-05-13 00:57:21 +000010980 echo "$as_me:$LINENO: result: yes" >&5
10981echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000010982fi
10983
a.rottmann964dbb12004-02-26 19:47:42 +000010984
drh5a3032b2007-09-03 16:12:09 +000010985if test "$SQLITE_THREADSAFE" = "1"; then
drh866108f2008-05-13 00:57:21 +000010986 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
10987echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6
mlcreechc658b0f2008-03-09 02:20:11 +000010988if test "${ac_cv_search_pthread_create+set}" = set; then
drh866108f2008-05-13 00:57:21 +000010989 echo $ECHO_N "(cached) $ECHO_C" >&6
dougcurrie65623c72004-09-20 14:57:23 +000010990else
mlcreechc658b0f2008-03-09 02:20:11 +000010991 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000010992ac_cv_search_pthread_create=no
dougcurrie65623c72004-09-20 14:57:23 +000010993cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h. */
10999
drh866108f2008-05-13 00:57:21 +000011000/* Override any gcc2 internal prototype to avoid an error. */
dougcurrie65623c72004-09-20 14:57:23 +000011001#ifdef __cplusplus
11002extern "C"
11003#endif
drh866108f2008-05-13 00:57:21 +000011004/* We use char because int might match the return type of a gcc2
11005 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000011006char pthread_create ();
11007int
11008main ()
11009{
drh866108f2008-05-13 00:57:21 +000011010pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000011011 ;
11012 return 0;
11013}
11014_ACEOF
drh866108f2008-05-13 00:57:21 +000011015rm -f conftest.$ac_objext conftest$ac_exeext
11016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11017 (eval $ac_link) 2>conftest.er1
dougcurrie65623c72004-09-20 14:57:23 +000011018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag"
11025 || test ! -s conftest.err'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 ac_cv_search_pthread_create="none required"
dougcurrie65623c72004-09-20 14:57:23 +000011038else
drh866108f2008-05-13 00:57:21 +000011039 echo "$as_me: failed program was:" >&5
dougcurrie65623c72004-09-20 14:57:23 +000011040sed 's/^/| /' conftest.$ac_ext >&5
11041
dougcurrie65623c72004-09-20 14:57:23 +000011042fi
drh866108f2008-05-13 00:57:21 +000011043rm -f conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045if test "$ac_cv_search_pthread_create" = no; then
11046 for ac_lib in pthread; do
11047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11048 cat >conftest.$ac_ext <<_ACEOF
11049/* confdefs.h. */
11050_ACEOF
11051cat confdefs.h >>conftest.$ac_ext
11052cat >>conftest.$ac_ext <<_ACEOF
11053/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011054
drh866108f2008-05-13 00:57:21 +000011055/* Override any gcc2 internal prototype to avoid an error. */
11056#ifdef __cplusplus
11057extern "C"
11058#endif
11059/* We use char because int might match the return type of a gcc2
11060 builtin and then its argument prototype would still apply. */
11061char pthread_create ();
11062int
11063main ()
11064{
11065pthread_create ();
11066 ;
11067 return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext conftest$ac_exeext
11071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11072 (eval $ac_link) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -z "$ac_c_werror_flag"
11080 || test ! -s conftest.err'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11083 ac_status=$?
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; } &&
11086 { ac_try='test -s conftest$ac_exeext'
11087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11088 (eval $ac_try) 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; }; then
11092 ac_cv_search_pthread_create="-l$ac_lib"
11093break
dougcurrie65623c72004-09-20 14:57:23 +000011094else
drh866108f2008-05-13 00:57:21 +000011095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
mlcreechc658b0f2008-03-09 02:20:11 +000011098fi
drh866108f2008-05-13 00:57:21 +000011099rm -f conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
11101 done
11102fi
mlcreechc658b0f2008-03-09 02:20:11 +000011103LIBS=$ac_func_search_save_LIBS
11104fi
drh866108f2008-05-13 00:57:21 +000011105echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
11106echo "${ECHO_T}$ac_cv_search_pthread_create" >&6
11107if test "$ac_cv_search_pthread_create" != no; then
11108 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000011109
dougcurrie65623c72004-09-20 14:57:23 +000011110fi
11111
mlcreechc658b0f2008-03-09 02:20:11 +000011112fi
dougcurrie65623c72004-09-20 14:57:23 +000011113
xdong28f79f72003-09-23 00:35:21 +000011114##########
drh91636d52005-11-24 23:14:00 +000011115# Do we want to allow a connection created in one thread to be used
11116# in another thread. This does not work on many Linux systems (ex: RedHat 9)
11117# due to bugs in the threading implementations. This is thus off by default.
11118#
drh866108f2008-05-13 00:57:21 +000011119# Check whether --enable-cross-thread-connections or --disable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000011120if test "${enable_cross_thread_connections+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011121 enableval="$enable_cross_thread_connections"
11122
drh91636d52005-11-24 23:14:00 +000011123else
11124 enable_xthreadconnect=no
drh866108f2008-05-13 00:57:21 +000011125fi;
11126echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
11127echo $ECHO_N "checking whether to allow connections to be shared across threads... $ECHO_C" >&6
drh91636d52005-11-24 23:14:00 +000011128if test "$enable_xthreadconnect" = "no"; then
11129 XTHREADCONNECT=''
drh866108f2008-05-13 00:57:21 +000011130 echo "$as_me:$LINENO: result: no" >&5
11131echo "${ECHO_T}no" >&6
drh91636d52005-11-24 23:14:00 +000011132else
11133 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh866108f2008-05-13 00:57:21 +000011134 echo "$as_me:$LINENO: result: yes" >&5
11135echo "${ECHO_T}yes" >&6
drh91636d52005-11-24 23:14:00 +000011136fi
11137
11138
11139##########
drh8e2e2a12006-02-01 01:55:17 +000011140# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
11141# default. Normally, a test at runtime is performed to determine the
11142# appropriate value of this variable. Use this option only if you're sure that
11143# threads can safely override each others locks in all runtime situations.
11144#
drh866108f2008-05-13 00:57:21 +000011145# Check whether --enable-threads-override-locks or --disable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000011146if test "${enable_threads_override_locks+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011147 enableval="$enable_threads_override_locks"
11148
drh8e2e2a12006-02-01 01:55:17 +000011149else
11150 enable_threads_override_locks=no
drh866108f2008-05-13 00:57:21 +000011151fi;
11152echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
11153echo $ECHO_N "checking whether threads can override each others locks... $ECHO_C" >&6
drh8e2e2a12006-02-01 01:55:17 +000011154if test "$enable_threads_override_locks" = "no"; then
11155 THREADSOVERRIDELOCKS='-1'
drh866108f2008-05-13 00:57:21 +000011156 echo "$as_me:$LINENO: result: no" >&5
11157echo "${ECHO_T}no" >&6
drh8e2e2a12006-02-01 01:55:17 +000011158else
11159 THREADSOVERRIDELOCKS='1'
drh866108f2008-05-13 00:57:21 +000011160 echo "$as_me:$LINENO: result: yes" >&5
11161echo "${ECHO_T}yes" >&6
drh8e2e2a12006-02-01 01:55:17 +000011162fi
11163
11164
11165##########
xdong28f79f72003-09-23 00:35:21 +000011166# Do we want to support release
11167#
drh866108f2008-05-13 00:57:21 +000011168# Check whether --enable-releasemode or --disable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000011169if test "${enable_releasemode+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011170 enableval="$enable_releasemode"
11171
xdong28f79f72003-09-23 00:35:21 +000011172else
11173 enable_releasemode=no
drh866108f2008-05-13 00:57:21 +000011174fi;
11175echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
11176echo $ECHO_N "checking whether to support shared library linked as release mode or not... $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011177if test "$enable_releasemode" = "no"; then
11178 ALLOWRELEASE=""
drh866108f2008-05-13 00:57:21 +000011179 echo "$as_me:$LINENO: result: no" >&5
11180echo "${ECHO_T}no" >&6
xdong28f79f72003-09-23 00:35:21 +000011181else
drh0b47d342007-11-27 14:50:06 +000011182 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh866108f2008-05-13 00:57:21 +000011183 echo "$as_me:$LINENO: result: yes" >&5
11184echo "${ECHO_T}yes" >&6
xdong28f79f72003-09-23 00:35:21 +000011185fi
paulb0208cc2003-04-13 18:26:49 +000011186
a.rottmann964dbb12004-02-26 19:47:42 +000011187
paulb0208cc2003-04-13 18:26:49 +000011188##########
11189# Do we want temporary databases in memory
11190#
drh866108f2008-05-13 00:57:21 +000011191# Check whether --enable-tempstore or --disable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000011192if test "${enable_tempstore+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011193 enableval="$enable_tempstore"
11194
paulb0208cc2003-04-13 18:26:49 +000011195else
drh54414bb2005-10-10 00:05:50 +000011196 enable_tempstore=no
drh866108f2008-05-13 00:57:21 +000011197fi;
11198echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
11199echo $ECHO_N "checking whether to use an in-ram database for temporary tables... $ECHO_C" >&6
dougcurrie0f290bf2004-06-21 18:57:29 +000011200case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000011201 never )
paul2dc96f92003-04-20 11:46:34 +000011202 TEMP_STORE=0
drh866108f2008-05-13 00:57:21 +000011203 echo "$as_me:$LINENO: result: never" >&5
11204echo "${ECHO_T}never" >&6
paulb0208cc2003-04-13 18:26:49 +000011205 ;;
11206 no )
paul2dc96f92003-04-20 11:46:34 +000011207 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000011208 echo "$as_me:$LINENO: result: no" >&5
11209echo "${ECHO_T}no" >&6
paulb0208cc2003-04-13 18:26:49 +000011210 ;;
11211 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000011212 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000011213 echo "$as_me:$LINENO: result: always" >&5
11214echo "${ECHO_T}always" >&6
paulb0208cc2003-04-13 18:26:49 +000011215 ;;
drh54414bb2005-10-10 00:05:50 +000011216 yes )
11217 TEMP_STORE=3
drh866108f2008-05-13 00:57:21 +000011218 echo "$as_me:$LINENO: result: always" >&5
11219echo "${ECHO_T}always" >&6
drh54414bb2005-10-10 00:05:50 +000011220 ;;
paulb0208cc2003-04-13 18:26:49 +000011221 * )
drh54414bb2005-10-10 00:05:50 +000011222 TEMP_STORE=1
drh866108f2008-05-13 00:57:21 +000011223 echo "$as_me:$LINENO: result: yes" >&5
11224echo "${ECHO_T}yes" >&6
paulb0208cc2003-04-13 18:26:49 +000011225 ;;
11226esac
11227
11228
11229
drh75897232000-05-29 14:26:00 +000011230###########
11231# Lots of things are different if we are compiling for Windows using
11232# the CYGWIN environment. So check for that special case and handle
11233# things accordingly.
11234#
drh866108f2008-05-13 00:57:21 +000011235echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
11236echo $ECHO_N "checking if executables have the .exe suffix... $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000011237if test "$config_BUILD_EXEEXT" = ".exe"; then
11238 CYGWIN=yes
drh866108f2008-05-13 00:57:21 +000011239 echo "$as_me:$LINENO: result: yes" >&5
11240echo "${ECHO_T}yes" >&6
drh75897232000-05-29 14:26:00 +000011241else
drh866108f2008-05-13 00:57:21 +000011242 echo "$as_me:$LINENO: result: unknown" >&5
11243echo "${ECHO_T}unknown" >&6
drh75897232000-05-29 14:26:00 +000011244fi
11245if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000011246
11247case $host_os in
drh71eb93e2001-09-28 01:34:43 +000011248 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000011249 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000011250esac
drh75897232000-05-29 14:26:00 +000011251
drh75897232000-05-29 14:26:00 +000011252fi
11253if test "$CYGWIN" = "yes"; then
11254 BUILD_EXEEXT=.exe
11255else
dougcurrie6194a5f2003-12-19 20:09:51 +000011256 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000011257fi
vapier7f19c022007-02-17 14:46:31 +000011258if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000011259 TARGET_EXEEXT=$BUILD_EXEEXT
11260else
11261 TARGET_EXEEXT=$config_TARGET_EXEEXT
11262fi
11263if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000011264 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000011265 SQLITE_OS_UNIX=0
11266 SQLITE_OS_WIN=0
11267 SQLITE_OS_OS2=1
11268 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
mlcreech57ee0522008-04-14 22:57:55 +000011269 if test "$ac_compiler_gnu" = "yes" ; then
mlcreech8390bc32008-03-06 08:54:38 +000011270 CFLAGS="$CFLAGS -Zomf -Zexe -Zmap"
drh60a1e4b2006-06-03 18:02:15 +000011271 BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe"
11272 fi
11273 else
danielk197729bafea2008-06-26 10:41:19 +000011274 SQLITE_OS_UNIX=0
11275 SQLITE_OS_WIN=1
11276 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000011277 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000011278 fi
drh75897232000-05-29 14:26:00 +000011279else
danielk197729bafea2008-06-26 10:41:19 +000011280 SQLITE_OS_UNIX=1
11281 SQLITE_OS_WIN=0
11282 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000011283 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000011284fi
drh75897232000-05-29 14:26:00 +000011285
a.rottmann84e63352003-03-24 09:42:16 +000011286
11287
11288
11289
11290
drh75897232000-05-29 14:26:00 +000011291
drh75897232000-05-29 14:26:00 +000011292##########
drh7b5717e2004-11-25 13:50:01 +000011293# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000011294#
drh7b5717e2004-11-25 13:50:01 +000011295# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
11296# macros in the in the tcl.m4 file of the standard TCL distribution.
11297# Those macros could not be used directly since we have to make some
11298# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000011299#
drh866108f2008-05-13 00:57:21 +000011300# Check whether --enable-tcl or --disable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011301if test "${enable_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011302 enableval="$enable_tcl"
11303 use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000011304else
drh7b5717e2004-11-25 13:50:01 +000011305 use_tcl=yes
drh866108f2008-05-13 00:57:21 +000011306fi;
drh7b5717e2004-11-25 13:50:01 +000011307if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000011308
drh866108f2008-05-13 00:57:21 +000011309# Check whether --with-tcl or --without-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000011310if test "${with_tcl+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011311 withval="$with_tcl"
11312 with_tclconfig=${withval}
11313fi;
11314 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
11315echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011316 if test "${ac_cv_c_tclconfig+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011317 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011318else
a.rottmann84e63352003-03-24 09:42:16 +000011319
drh7b5717e2004-11-25 13:50:01 +000011320 # First check to see if --with-tcl was specified.
11321 if test x"${with_tclconfig}" != x ; then
11322 if test -f "${with_tclconfig}/tclConfig.sh" ; then
11323 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
11324 else
drh866108f2008-05-13 00:57:21 +000011325 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
11326echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011327 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000011328 fi
11329 fi
11330 # then check for a private Tcl installation
11331 if test x"${ac_cv_c_tclconfig}" = x ; then
11332 for i in \
11333 ../tcl \
11334 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11335 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
11336 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
11337 ../../tcl \
11338 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11339 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
11340 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
11341 ../../../tcl \
11342 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11343 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
11344 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
11345 do
11346 if test -f "$i/unix/tclConfig.sh" ; then
11347 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11348 break
11349 fi
11350 done
11351 fi
11352
11353 # check in a few common install locations
11354 if test x"${ac_cv_c_tclconfig}" = x ; then
11355 for i in \
11356 `ls -d ${libdir} 2>/dev/null` \
11357 `ls -d /usr/local/lib 2>/dev/null` \
11358 `ls -d /usr/contrib/lib 2>/dev/null` \
11359 `ls -d /usr/lib 2>/dev/null`
11360 do
11361 if test -f "$i/tclConfig.sh" ; then
11362 ac_cv_c_tclconfig=`(cd $i; pwd)`
11363 break
11364 fi
11365 done
11366 fi
11367
11368 # check in a few other private locations
11369 if test x"${ac_cv_c_tclconfig}" = x ; then
11370 for i in \
11371 ${srcdir}/../tcl \
11372 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
11373 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
11374 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
11375 do
11376 if test -f "$i/unix/tclConfig.sh" ; then
11377 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
11378 break
11379 fi
11380 done
11381 fi
11382
drh75897232000-05-29 14:26:00 +000011383fi
11384
drh7b5717e2004-11-25 13:50:01 +000011385
11386 if test x"${ac_cv_c_tclconfig}" = x ; then
11387 use_tcl=no
drh866108f2008-05-13 00:57:21 +000011388 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
11389echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
11391echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
11393echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000011394 else
11395 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh866108f2008-05-13 00:57:21 +000011396 echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
11397echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6
drh7b5717e2004-11-25 13:50:01 +000011398
drh866108f2008-05-13 00:57:21 +000011399 echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
11400echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6
drh7b5717e2004-11-25 13:50:01 +000011401 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh866108f2008-05-13 00:57:21 +000011402 echo "$as_me:$LINENO: result: loading" >&5
11403echo "${ECHO_T}loading" >&6
drh7b5717e2004-11-25 13:50:01 +000011404 . $TCL_BIN_DIR/tclConfig.sh
11405 else
drh866108f2008-05-13 00:57:21 +000011406 echo "$as_me:$LINENO: result: file not found" >&5
11407echo "${ECHO_T}file not found" >&6
drh75897232000-05-29 14:26:00 +000011408 fi
drh7b5717e2004-11-25 13:50:01 +000011409
11410 #
11411 # If the TCL_BIN_DIR is the build directory (not the install directory),
11412 # then set the common variable name to the value of the build variables.
11413 # For example, the variable TCL_LIB_SPEC will be set to the value
11414 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
11415 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
11416 # installed and uninstalled version of Tcl.
11417 #
11418
mlcreechab1c47b2008-03-09 02:51:10 +000011419 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000011420 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
11421 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
11422 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
11423 fi
11424
11425 #
11426 # eval is required to do the TCL_DBGX substitution
11427 #
11428
11429 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
11430 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
11431 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
11432
11433 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
11434 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
11435 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450 fi
drh75897232000-05-29 14:26:00 +000011451fi
drh7b5717e2004-11-25 13:50:01 +000011452if test "${use_tcl}" = "no" ; then
11453 HAVE_TCL=""
11454else
11455 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000011456fi
drh75897232000-05-29 14:26:00 +000011457
a.rottmann84e63352003-03-24 09:42:16 +000011458
drh75897232000-05-29 14:26:00 +000011459##########
11460# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000011461# that use "readline()" library.
11462#
vapier7f19c022007-02-17 14:46:31 +000011463TARGET_READLINE_LIBS=""
11464TARGET_READLINE_INC=""
11465TARGET_HAVE_READLINE=0
drh866108f2008-05-13 00:57:21 +000011466# Check whether --enable-readline or --disable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000011467if test "${enable_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011468 enableval="$enable_readline"
11469 with_readline=$enableval
drh75897232000-05-29 14:26:00 +000011470else
vapier7f19c022007-02-17 14:46:31 +000011471 with_readline=auto
drh866108f2008-05-13 00:57:21 +000011472fi;
vapier7f19c022007-02-17 14:46:31 +000011473
11474if test x"$with_readline" != xno; then
11475 found="yes"
11476
11477
drh866108f2008-05-13 00:57:21 +000011478# Check whether --with-readline-lib or --without-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000011479if test "${with_readline_lib+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011480 withval="$with_readline_lib"
11481 with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011482else
11483 with_readline_lib="auto"
drh866108f2008-05-13 00:57:21 +000011484fi;
vapier7f19c022007-02-17 14:46:31 +000011485 if test "x$with_readline_lib" = xauto; then
11486 save_LIBS="$LIBS"
11487 LIBS=""
drh866108f2008-05-13 00:57:21 +000011488 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
11489echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011490if test "${ac_cv_search_tgetent+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011491 echo $ECHO_N "(cached) $ECHO_C" >&6
drh75897232000-05-29 14:26:00 +000011492else
drh71eb93e2001-09-28 01:34:43 +000011493 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011494ac_cv_search_tgetent=no
paul38372372003-04-22 08:04:49 +000011495cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000011496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
11501
drh866108f2008-05-13 00:57:21 +000011502/* Override any gcc2 internal prototype to avoid an error. */
paul38372372003-04-22 08:04:49 +000011503#ifdef __cplusplus
11504extern "C"
11505#endif
drh866108f2008-05-13 00:57:21 +000011506/* We use char because int might match the return type of a gcc2
11507 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011508char tgetent ();
11509int
11510main ()
11511{
drh866108f2008-05-13 00:57:21 +000011512tgetent ();
paul38372372003-04-22 08:04:49 +000011513 ;
11514 return 0;
11515}
11516_ACEOF
drh866108f2008-05-13 00:57:21 +000011517rm -f conftest.$ac_objext conftest$ac_exeext
11518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11519 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011520 ac_status=$?
11521 grep -v '^ *+' conftest.er1 >conftest.err
11522 rm -f conftest.er1
11523 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } &&
11526 { ac_try='test -z "$ac_c_werror_flag"
11527 || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest$ac_exeext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_cv_search_tgetent="none required"
vapier7f19c022007-02-17 14:46:31 +000011540else
drh866108f2008-05-13 00:57:21 +000011541 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011542sed 's/^/| /' conftest.$ac_ext >&5
11543
vapier7f19c022007-02-17 14:46:31 +000011544fi
drh866108f2008-05-13 00:57:21 +000011545rm -f conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547if test "$ac_cv_search_tgetent" = no; then
11548 for ac_lib in readline ncurses curses termcap; do
11549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011556
drh866108f2008-05-13 00:57:21 +000011557/* Override any gcc2 internal prototype to avoid an error. */
11558#ifdef __cplusplus
11559extern "C"
11560#endif
11561/* We use char because int might match the return type of a gcc2
11562 builtin and then its argument prototype would still apply. */
11563char tgetent ();
11564int
11565main ()
11566{
11567tgetent ();
11568 ;
11569 return 0;
11570}
11571_ACEOF
11572rm -f conftest.$ac_objext conftest$ac_exeext
11573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11574 (eval $ac_link) 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } &&
11581 { ac_try='test -z "$ac_c_werror_flag"
11582 || test ! -s conftest.err'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest$ac_exeext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
11594 ac_cv_search_tgetent="-l$ac_lib"
11595break
mlcreech94984912008-03-04 19:03:08 +000011596else
drh866108f2008-05-13 00:57:21 +000011597 echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
11599
mlcreech94984912008-03-04 19:03:08 +000011600fi
drh866108f2008-05-13 00:57:21 +000011601rm -f conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 done
11604fi
paul38372372003-04-22 08:04:49 +000011605LIBS=$ac_func_search_save_LIBS
11606fi
drh866108f2008-05-13 00:57:21 +000011607echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
11608echo "${ECHO_T}$ac_cv_search_tgetent" >&6
11609if test "$ac_cv_search_tgetent" != no; then
11610 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011611 term_LIBS="$LIBS"
11612else
11613 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011614fi
11615
drh866108f2008-05-13 00:57:21 +000011616 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
11617echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011618if test "${ac_cv_lib_readline_readline+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011619 echo $ECHO_N "(cached) $ECHO_C" >&6
paul38372372003-04-22 08:04:49 +000011620else
11621 ac_check_lib_save_LIBS=$LIBS
11622LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000011623cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011629
drh866108f2008-05-13 00:57:21 +000011630/* Override any gcc2 internal prototype to avoid an error. */
drh71eb93e2001-09-28 01:34:43 +000011631#ifdef __cplusplus
11632extern "C"
11633#endif
drh866108f2008-05-13 00:57:21 +000011634/* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011636char readline ();
11637int
11638main ()
11639{
drh866108f2008-05-13 00:57:21 +000011640readline ();
drh71eb93e2001-09-28 01:34:43 +000011641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
drh866108f2008-05-13 00:57:21 +000011646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011648 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_c_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
paul38372372003-04-22 08:04:49 +000011667 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011668else
drh866108f2008-05-13 00:57:21 +000011669 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011670sed 's/^/| /' conftest.$ac_ext >&5
11671
drh866108f2008-05-13 00:57:21 +000011672ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011673fi
drh866108f2008-05-13 00:57:21 +000011674rm -f conftest.err conftest.$ac_objext \
a.rottmann964dbb12004-02-26 19:47:42 +000011675 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011676LIBS=$ac_check_lib_save_LIBS
11677fi
drh866108f2008-05-13 00:57:21 +000011678echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
11679echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
paul38372372003-04-22 08:04:49 +000011680if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000011681 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011682else
vapier7f19c022007-02-17 14:46:31 +000011683 found="no"
11684fi
drhf1878b42006-01-23 18:06:52 +000011685
vapier7f19c022007-02-17 14:46:31 +000011686 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11687 LIBS="$save_LIBS"
11688 else
11689 TARGET_READLINE_LIBS="$with_readline_lib"
11690 fi
11691
11692
drh866108f2008-05-13 00:57:21 +000011693# Check whether --with-readline-inc or --without-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000011694if test "${with_readline_inc+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011695 withval="$with_readline_inc"
11696 with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011697else
vapier7f19c022007-02-17 14:46:31 +000011698 with_readline_inc="auto"
drh866108f2008-05-13 00:57:21 +000011699fi;
vapier7f19c022007-02-17 14:46:31 +000011700 if test "x$with_readline_inc" = xauto; then
11701 if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011702 echo "$as_me:$LINENO: checking for readline.h" >&5
11703echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
drh71eb93e2001-09-28 01:34:43 +000011704if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011705 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011706fi
drh866108f2008-05-13 00:57:21 +000011707echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11708echo "${ECHO_T}$ac_cv_header_readline_h" >&6
drh75897232000-05-29 14:26:00 +000011709else
a.rottmann84e63352003-03-24 09:42:16 +000011710 # Is the header compilable?
drh866108f2008-05-13 00:57:21 +000011711echo "$as_me:$LINENO: checking readline.h usability" >&5
11712echo $ECHO_N "checking readline.h usability... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011713cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719$ac_includes_default
drh75897232000-05-29 14:26:00 +000011720#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000011721_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011722rm -f conftest.$ac_objext
drh866108f2008-05-13 00:57:21 +000011723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11724 (eval $ac_compile) 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000011725 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000011726 grep -v '^ *+' conftest.er1 >conftest.err
11727 rm -f conftest.er1
11728 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); } &&
11731 { ac_try='test -z "$ac_c_werror_flag"
11732 || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
a.rottmann84e63352003-03-24 09:42:16 +000011744 ac_header_compiler=yes
11745else
drh866108f2008-05-13 00:57:21 +000011746 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011747sed 's/^/| /' conftest.$ac_ext >&5
11748
drh866108f2008-05-13 00:57:21 +000011749ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000011750fi
drh866108f2008-05-13 00:57:21 +000011751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11753echo "${ECHO_T}$ac_header_compiler" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011754
11755# Is the header present?
drh866108f2008-05-13 00:57:21 +000011756echo "$as_me:$LINENO: checking readline.h presence" >&5
11757echo $ECHO_N "checking readline.h presence... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011758cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000011759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
11764#include <readline.h>
11765_ACEOF
drh866108f2008-05-13 00:57:21 +000011766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000011768 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000011769 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000011770 rm -f conftest.er1
11771 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777 else
11778 ac_cpp_err=
11779 fi
11780else
11781 ac_cpp_err=yes
11782fi
11783if test -z "$ac_cpp_err"; then
a.rottmann84e63352003-03-24 09:42:16 +000011784 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000011785else
drh866108f2008-05-13 00:57:21 +000011786 echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000011787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000011790fi
drh71eb93e2001-09-28 01:34:43 +000011791rm -f conftest.err conftest.$ac_ext
drh866108f2008-05-13 00:57:21 +000011792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11793echo "${ECHO_T}$ac_header_preproc" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011794
11795# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000011796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11797 yes:no: )
drh866108f2008-05-13 00:57:21 +000011798 { echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
11799echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11800 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
11801echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000011802 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000011803 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000011804 no:yes:* )
drh866108f2008-05-13 00:57:21 +000011805 { echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
11806echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
11808echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
11810echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
11812echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
11814echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
11816echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
11817 (
11818 cat <<\_ASBOX
11819## --------------------------------- ##
11820## Report this to the sqlite lists. ##
11821## --------------------------------- ##
11822_ASBOX
11823 ) |
11824 sed "s/^/$as_me: WARNING: /" >&2
a.rottmann84e63352003-03-24 09:42:16 +000011825 ;;
11826esac
drh866108f2008-05-13 00:57:21 +000011827echo "$as_me:$LINENO: checking for readline.h" >&5
11828echo $ECHO_N "checking for readline.h... $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011829if test "${ac_cv_header_readline_h+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011830 echo $ECHO_N "(cached) $ECHO_C" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011831else
11832 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000011833fi
drh866108f2008-05-13 00:57:21 +000011834echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
11835echo "${ECHO_T}$ac_cv_header_readline_h" >&6
a.rottmann84e63352003-03-24 09:42:16 +000011836
11837fi
drh71eb93e2001-09-28 01:34:43 +000011838if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000011839 found="yes"
11840else
drh75897232000-05-29 14:26:00 +000011841
vapier7f19c022007-02-17 14:46:31 +000011842 found="no"
11843 if test "$cross_compiling" != yes; then
11844 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11845 for subdir in include include/readline; do
drh866108f2008-05-13 00:57:21 +000011846 as_ac_File=`echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11847echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
11848echo $ECHO_N "checking for $dir/$subdir/readline.h... $ECHO_C" >&6
11849if eval "test \"\${$as_ac_File+set}\" = set"; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011851else
11852 test "$cross_compiling" = yes &&
drh866108f2008-05-13 00:57:21 +000011853 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11854echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000011855 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000011856if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011857 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011858else
drh71eb93e2001-09-28 01:34:43 +000011859 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011860fi
11861fi
drh866108f2008-05-13 00:57:21 +000011862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
11863echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
11864if test `eval echo '${'$as_ac_File'}'` = yes; then
drh75897232000-05-29 14:26:00 +000011865 found=yes
drh75897232000-05-29 14:26:00 +000011866fi
11867
vapier7f19c022007-02-17 14:46:31 +000011868 if test "$found" = "yes"; then
11869 TARGET_READLINE_INC="-I$dir/$subdir"
11870 break
11871 fi
11872 done
11873 test "$found" = "yes" && break
11874 done
11875 fi
11876
11877fi
11878
11879
11880 else
11881 TARGET_READLINE_INC="$with_readline_inc"
11882 fi
11883
11884 if test x"$found" = xno; then
11885 TARGET_READLINE_LIBS=""
11886 TARGET_READLINE_INC=""
11887 TARGET_HAVE_READLINE=0
11888 else
11889 TARGET_HAVE_READLINE=1
11890 fi
11891fi
11892
11893
11894
11895
11896
11897##########
11898# Figure out what C libraries are required to compile programs
11899# that use "fdatasync()" function.
11900#
drh866108f2008-05-13 00:57:21 +000011901echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
11902echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
vapier7f19c022007-02-17 14:46:31 +000011903if test "${ac_cv_search_fdatasync+set}" = set; then
drh866108f2008-05-13 00:57:21 +000011904 echo $ECHO_N "(cached) $ECHO_C" >&6
xdong28f79f72003-09-23 00:35:21 +000011905else
vapier7f19c022007-02-17 14:46:31 +000011906 ac_func_search_save_LIBS=$LIBS
drh866108f2008-05-13 00:57:21 +000011907ac_cv_search_fdatasync=no
vapier7f19c022007-02-17 14:46:31 +000011908cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011914
drh866108f2008-05-13 00:57:21 +000011915/* Override any gcc2 internal prototype to avoid an error. */
vapier7f19c022007-02-17 14:46:31 +000011916#ifdef __cplusplus
11917extern "C"
11918#endif
drh866108f2008-05-13 00:57:21 +000011919/* We use char because int might match the return type of a gcc2
11920 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011921char fdatasync ();
11922int
11923main ()
11924{
drh866108f2008-05-13 00:57:21 +000011925fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011926 ;
11927 return 0;
11928}
11929_ACEOF
drh866108f2008-05-13 00:57:21 +000011930rm -f conftest.$ac_objext conftest$ac_exeext
11931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
drh613a0fe2007-11-23 17:31:17 +000011933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
drh866108f2008-05-13 00:57:21 +000011937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_cv_search_fdatasync="none required"
vapier7f19c022007-02-17 14:46:31 +000011953else
drh866108f2008-05-13 00:57:21 +000011954 echo "$as_me: failed program was:" >&5
drh613a0fe2007-11-23 17:31:17 +000011955sed 's/^/| /' conftest.$ac_ext >&5
11956
vapier7f19c022007-02-17 14:46:31 +000011957fi
drh866108f2008-05-13 00:57:21 +000011958rm -f conftest.err conftest.$ac_objext \
11959 conftest$ac_exeext conftest.$ac_ext
11960if test "$ac_cv_search_fdatasync" = no; then
11961 for ac_lib in rt; do
11962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
mlcreech94984912008-03-04 19:03:08 +000011969
drh866108f2008-05-13 00:57:21 +000011970/* Override any gcc2 internal prototype to avoid an error. */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974/* We use char because int might match the return type of a gcc2
11975 builtin and then its argument prototype would still apply. */
11976char fdatasync ();
11977int
11978main ()
11979{
11980fdatasync ();
11981 ;
11982 return 0;
11983}
11984_ACEOF
11985rm -f conftest.$ac_objext conftest$ac_exeext
11986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987 (eval $ac_link) 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } &&
11994 { ac_try='test -z "$ac_c_werror_flag"
11995 || test ! -s conftest.err'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_search_fdatasync="-l$ac_lib"
12008break
mlcreech94984912008-03-04 19:03:08 +000012009else
drh866108f2008-05-13 00:57:21 +000012010 echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
mlcreech94984912008-03-04 19:03:08 +000012013fi
drh866108f2008-05-13 00:57:21 +000012014rm -f conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 done
12017fi
vapier7f19c022007-02-17 14:46:31 +000012018LIBS=$ac_func_search_save_LIBS
12019fi
drh866108f2008-05-13 00:57:21 +000012020echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
12021echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
12022if test "$ac_cv_search_fdatasync" != no; then
12023 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000012024
vapier7f19c022007-02-17 14:46:31 +000012025fi
12026
a.rottmann84e63352003-03-24 09:42:16 +000012027
drh75897232000-05-29 14:26:00 +000012028#########
tpoindex9d9f76c2005-01-03 21:28:56 +000012029# check for debug enabled
drh866108f2008-05-13 00:57:21 +000012030# Check whether --enable-debug or --disable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000012031if test "${enable_debug+set}" = set; then
drh866108f2008-05-13 00:57:21 +000012032 enableval="$enable_debug"
12033 use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000012034else
12035 use_debug=no
drh866108f2008-05-13 00:57:21 +000012036fi;
tpoindex9d9f76c2005-01-03 21:28:56 +000012037if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000012038 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000012039else
12040 TARGET_DEBUG="-DNDEBUG"
12041fi
12042
12043
12044#########
mlcreech94984912008-03-04 19:03:08 +000012045# See whether we should use the amalgamation to build
drh866108f2008-05-13 00:57:21 +000012046# Check whether --enable-amalgamation or --disable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000012047if test "${enable_amalgamation+set}" = set; then
drh866108f2008-05-13 00:57:21 +000012048 enableval="$enable_amalgamation"
12049 use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000012050else
12051 use_amalgamation=yes
drh866108f2008-05-13 00:57:21 +000012052fi;
mlcreechf3868112008-03-11 18:03:30 +000012053if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000012054 USE_AMALGAMATION=0
12055fi
12056
12057
12058#########
mlcreecha4edab02008-03-06 04:14:17 +000012059# See whether we should allow loadable extensions
drh866108f2008-05-13 00:57:21 +000012060# Check whether --enable-load-extension or --disable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000012061if test "${enable_load_extension+set}" = set; then
drh866108f2008-05-13 00:57:21 +000012062 enableval="$enable_load_extension"
12063 use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000012064else
12065 use_loadextension=no
drh866108f2008-05-13 00:57:21 +000012066fi;
mlcreecha4edab02008-03-06 04:14:17 +000012067if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000012068 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000012069else
shanefbedede2008-07-22 05:05:01 +000012070 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000012071fi
12072
mlcreechaac7b932008-04-01 02:45:22 +000012073#########
shanefbedede2008-07-22 05:05:01 +000012074# attempt to duplicate any OMITS into the $(OPT_FEATURE_FLAGS) parameter
12075for option in $CFLAGS $CPPFLAGS
12076do
12077 case $option in
danielk197733a14782008-08-04 14:50:05 +000012078 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000012079 esac
12080done
12081
12082
danielk197733a14782008-08-04 14:50:05 +000012083
shanefbedede2008-07-22 05:05:01 +000012084# attempt to remove any OMITS from the $(CFLAGS) parameter
12085ac_temp_CFLAGS=""
12086for option in $CFLAGS
12087do
12088 case $option in
12089 -DSQLITE_OMIT*) ;;
danielk197733a14782008-08-04 14:50:05 +000012090 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000012091 esac
12092done
12093CFLAGS=$ac_temp_CFLAGS
12094
12095
12096# attempt to remove any OMITS from the $(CPPFLAGS) parameter
12097ac_temp_CPPFLAGS=""
12098for option in $CPPFLAGS
12099do
12100 case $option in
12101 -DSQLITE_OMIT*) ;;
danielk197733a14782008-08-04 14:50:05 +000012102 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000012103 esac
12104done
12105CPPFLAGS=$ac_temp_CPPFLAGS
12106
danielk197733a14782008-08-04 14:50:05 +000012107
shanefbedede2008-07-22 05:05:01 +000012108# attempt to remove any OMITS from the $(BUILD_CFLAGS) parameter
12109ac_temp_BUILD_CFLAGS=""
12110for option in $BUILD_CFLAGS
12111do
12112 case $option in
12113 -DSQLITE_OMIT*) ;;
danielk197733a14782008-08-04 14:50:05 +000012114 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000012115 esac
12116done
12117BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
12118
12119
12120#########
12121# See whether we should use GCOV
drh866108f2008-05-13 00:57:21 +000012122# Check whether --enable-gcov or --disable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000012123if test "${enable_gcov+set}" = set; then
drh866108f2008-05-13 00:57:21 +000012124 enableval="$enable_gcov"
12125 use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000012126else
12127 use_gcov=no
drh866108f2008-05-13 00:57:21 +000012128fi;
mlcreechaac7b932008-04-01 02:45:22 +000012129if test "${use_gcov}" = "yes" ; then
12130 USE_GCOV=1
12131else
12132 USE_GCOV=0
12133fi
12134
12135
danielk197733a14782008-08-04 14:50:05 +000012136
drh2dfbbca2000-07-28 14:32:48 +000012137#########
mlcreechb87057f2008-03-06 07:19:20 +000012138# Output the config header
drh866108f2008-05-13 00:57:21 +000012139 ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000012140
12141
12142#########
drh75897232000-05-29 14:26:00 +000012143# Generate the output files.
12144#
mlcreechdf59c7c2008-03-06 07:51:15 +000012145
drh866108f2008-05-13 00:57:21 +000012146 ac_config_files="$ac_config_files Makefile sqlite3.pc"
drh71eb93e2001-09-28 01:34:43 +000012147cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000012148# This file is a shell script that caches the results of configure
12149# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000012150# scripts and configure runs, see configure's option --config-cache.
12151# It is not useful on other systems. If it contains results you don't
12152# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000012153#
drh71eb93e2001-09-28 01:34:43 +000012154# config.status only pays attention to the cache file if you give it
12155# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000012156#
a.rottmann84e63352003-03-24 09:42:16 +000012157# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000012158# loading this file, other *unset* `ac_cv_foo' will be assigned the
12159# following values.
12160
12161_ACEOF
12162
drh75897232000-05-29 14:26:00 +000012163# The following way of writing the cache mishandles newlines in values,
12164# but we know of no workaround that is simple, portable, and efficient.
drh866108f2008-05-13 00:57:21 +000012165# So, don't put newlines in cache variables' values.
drh75897232000-05-29 14:26:00 +000012166# Ultrix sh set writes to stderr and can't be redirected directly,
12167# and sets the high bit in the cache file unless we assign to the vars.
drh866108f2008-05-13 00:57:21 +000012168{
drh71eb93e2001-09-28 01:34:43 +000012169 (set) 2>&1 |
drh866108f2008-05-13 00:57:21 +000012170 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12171 *ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000012172 # `set' does not quote correctly, so add quotes (double-quote
12173 # substitution turns \\\\ into \\, and sed turns \\ into \).
12174 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000012175 "s/'/'\\\\''/g;
12176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh866108f2008-05-13 00:57:21 +000012177 ;;
drh71eb93e2001-09-28 01:34:43 +000012178 *)
12179 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh866108f2008-05-13 00:57:21 +000012180 sed -n \
12181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
drh71eb93e2001-09-28 01:34:43 +000012182 ;;
drh866108f2008-05-13 00:57:21 +000012183 esac;
12184} |
drh71eb93e2001-09-28 01:34:43 +000012185 sed '
12186 t clear
drh866108f2008-05-13 00:57:21 +000012187 : clear
drh71eb93e2001-09-28 01:34:43 +000012188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12189 t end
drh866108f2008-05-13 00:57:21 +000012190 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12191 : end' >>confcache
12192if diff $cache_file confcache >/dev/null 2>&1; then :; else
12193 if test -w $cache_file; then
12194 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
drh71eb93e2001-09-28 01:34:43 +000012195 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000012196 else
drh866108f2008-05-13 00:57:21 +000012197 echo "not updating unwritable cache $cache_file"
drh75897232000-05-29 14:26:00 +000012198 fi
12199fi
12200rm -f confcache
12201
drh75897232000-05-29 14:26:00 +000012202test "x$prefix" = xNONE && prefix=$ac_default_prefix
12203# Let make expand exec_prefix.
12204test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12205
drh866108f2008-05-13 00:57:21 +000012206# VPATH may cause trouble with some makes, so we remove $(srcdir),
12207# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12208# trailing colons and then remove the whole line if VPATH becomes empty
12209# (actually we leave an empty line to preserve line numbers).
12210if test "x$srcdir" = x.; then
12211 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12212s/:*\$(srcdir):*/:/;
12213s/:*\${srcdir}:*/:/;
12214s/:*@srcdir@:*/:/;
12215s/^\([^=]*=[ ]*\):*/\1/;
12216s/:*$//;
12217s/^[^=]*=[ ]*$//;
12218}'
12219fi
12220
mlcreechb87057f2008-03-06 07:19:20 +000012221DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000012222
12223ac_libobjs=
12224ac_ltlibobjs=
12225for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12226 # 1. Remove the extension, and $U if already installed.
drh866108f2008-05-13 00:57:21 +000012227 ac_i=`echo "$ac_i" |
12228 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12229 # 2. Add them.
12230 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12231 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000012232done
12233LIBOBJS=$ac_libobjs
12234
12235LTLIBOBJS=$ac_ltlibobjs
12236
12237
12238
drh75897232000-05-29 14:26:00 +000012239: ${CONFIG_STATUS=./config.status}
drh71eb93e2001-09-28 01:34:43 +000012240ac_clean_files_save=$ac_clean_files
12241ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh866108f2008-05-13 00:57:21 +000012242{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12243echo "$as_me: creating $CONFIG_STATUS" >&6;}
12244cat >$CONFIG_STATUS <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012245#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000012246# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000012247# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000012248# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000012249# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000012250
drh71eb93e2001-09-28 01:34:43 +000012251debug=false
a.rottmann84e63352003-03-24 09:42:16 +000012252ac_cs_recheck=false
12253ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000012254SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000012255_ACEOF
drh75897232000-05-29 14:26:00 +000012256
drh866108f2008-05-13 00:57:21 +000012257cat >>$CONFIG_STATUS <<\_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012258## --------------------- ##
12259## M4sh Initialization. ##
12260## --------------------- ##
12261
drh866108f2008-05-13 00:57:21 +000012262# Be Bourne compatible
drh71eb93e2001-09-28 01:34:43 +000012263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12264 emulate sh
12265 NULLCMD=:
drh866108f2008-05-13 00:57:21 +000012266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000012267 # is contrary to our usage. Disable this feature.
12268 alias -g '${1+"$@"}'='"$@"'
drh866108f2008-05-13 00:57:21 +000012269elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12270 set -o posix
a.rottmann84e63352003-03-24 09:42:16 +000012271fi
drh866108f2008-05-13 00:57:21 +000012272DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000012273
mlcreech94984912008-03-04 19:03:08 +000012274# Support unset when possible.
12275if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12276 as_unset=unset
12277else
12278 as_unset=false
12279fi
a.rottmann84e63352003-03-24 09:42:16 +000012280
mlcreech94984912008-03-04 19:03:08 +000012281
mlcreech94984912008-03-04 19:03:08 +000012282# Work around bugs in pre-3.0 UWIN ksh.
drh866108f2008-05-13 00:57:21 +000012283$as_unset ENV MAIL MAILPATH
mlcreech94984912008-03-04 19:03:08 +000012284PS1='$ '
12285PS2='> '
12286PS4='+ '
12287
12288# NLS nuisances.
drh866108f2008-05-13 00:57:21 +000012289for as_var in \
12290 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12291 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12292 LC_TELEPHONE LC_TIME
12293do
12294 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12295 eval $as_var=C; export $as_var
12296 else
12297 $as_unset $as_var
12298 fi
12299done
mlcreech94984912008-03-04 19:03:08 +000012300
12301# Required to use basename.
drh866108f2008-05-13 00:57:21 +000012302if expr a : '\(a\)' >/dev/null 2>&1; then
mlcreech94984912008-03-04 19:03:08 +000012303 as_expr=expr
12304else
12305 as_expr=false
12306fi
12307
drh866108f2008-05-13 00:57:21 +000012308if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012309 as_basename=basename
12310else
12311 as_basename=false
12312fi
12313
12314
12315# Name of the executable.
drh866108f2008-05-13 00:57:21 +000012316as_me=`$as_basename "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012317$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12318 X"$0" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000012319 X"$0" : 'X\(/\)$' \| \
12320 . : '\(.\)' 2>/dev/null ||
12321echo X/"$0" |
12322 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12323 /^X\/\(\/\/\)$/{ s//\1/; q; }
12324 /^X\/\(\/\).*/{ s//\1/; q; }
12325 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012326
mlcreech94984912008-03-04 19:03:08 +000012327
drh866108f2008-05-13 00:57:21 +000012328# PATH needs CR, and LINENO needs CR and PATH.
12329# Avoid depending upon Character Ranges.
12330as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12331as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12332as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12333as_cr_digits='0123456789'
12334as_cr_alnum=$as_cr_Letters$as_cr_digits
12335
12336# The user is always right.
12337if test "${PATH_SEPARATOR+set}" != set; then
12338 echo "#! /bin/sh" >conf$$.sh
12339 echo "exit 0" >>conf$$.sh
12340 chmod +x conf$$.sh
12341 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12342 PATH_SEPARATOR=';'
12343 else
12344 PATH_SEPARATOR=:
12345 fi
12346 rm -f conf$$.sh
12347fi
mlcreech94984912008-03-04 19:03:08 +000012348
12349
a.rottmann84e63352003-03-24 09:42:16 +000012350 as_lineno_1=$LINENO
12351 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +000012352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
a.rottmann84e63352003-03-24 09:42:16 +000012353 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh866108f2008-05-13 00:57:21 +000012354 test "x$as_lineno_3" = "x$as_lineno_2" || {
12355 # Find who we are. Look in the path if we contain no path at all
12356 # relative or not.
12357 case $0 in
12358 *[\\/]* ) as_myself=$0 ;;
12359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362 IFS=$as_save_IFS
12363 test -z "$as_dir" && as_dir=.
12364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12365done
12366
12367 ;;
12368 esac
12369 # We did not find ourselves, most probably we were run as `sh COMMAND'
12370 # in which case we are not to be found in the path.
12371 if test "x$as_myself" = x; then
12372 as_myself=$0
12373 fi
12374 if test ! -f "$as_myself"; then
12375 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12376echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12377 { (exit 1); exit 1; }; }
12378 fi
12379 case $CONFIG_SHELL in
12380 '')
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for as_base in sh bash ksh sh5; do
12387 case $as_dir in
12388 /*)
12389 if ("$as_dir/$as_base" -c '
12390 as_lineno_1=$LINENO
12391 as_lineno_2=$LINENO
12392 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12393 test "x$as_lineno_1" != "x$as_lineno_2" &&
12394 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12395 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12396 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12397 CONFIG_SHELL=$as_dir/$as_base
12398 export CONFIG_SHELL
12399 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12400 fi;;
12401 esac
12402 done
12403done
12404;;
12405 esac
a.rottmann84e63352003-03-24 09:42:16 +000012406
12407 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12408 # uniformly replaced by the line number. The first 'sed' inserts a
drh866108f2008-05-13 00:57:21 +000012409 # line-number line before each line; the second 'sed' does the real
12410 # work. The second script uses 'N' to pair each line-number line
12411 # with the numbered line, and appends trailing '-' during
12412 # substitution so that $LINENO is not a special case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000012413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh866108f2008-05-13 00:57:21 +000012414 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12415 sed '=' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000012416 sed '
12417 N
drh866108f2008-05-13 00:57:21 +000012418 s,$,-,
12419 : loop
12420 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
a.rottmann84e63352003-03-24 09:42:16 +000012421 t loop
drh866108f2008-05-13 00:57:21 +000012422 s,-$,,
12423 s,^['$as_cr_digits']*\n,,
a.rottmann84e63352003-03-24 09:42:16 +000012424 ' >$as_me.lineno &&
drh866108f2008-05-13 00:57:21 +000012425 chmod +x $as_me.lineno ||
12426 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12427echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000012428 { (exit 1); exit 1; }; }
12429
12430 # Don't try to exec as it changes $[0], causing all sort of problems
12431 # (the dirname of $[0] is not the place where we might find the
drh866108f2008-05-13 00:57:21 +000012432 # original and so on. Autoconf is especially sensible to this).
12433 . ./$as_me.lineno
a.rottmann84e63352003-03-24 09:42:16 +000012434 # Exit status is that of the last command.
12435 exit
12436}
12437
12438
drh866108f2008-05-13 00:57:21 +000012439case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12440 *c*,-n*) ECHO_N= ECHO_C='
12441' ECHO_T=' ' ;;
12442 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12443 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
a.rottmann84e63352003-03-24 09:42:16 +000012444esac
drh866108f2008-05-13 00:57:21 +000012445
12446if expr a : '\(a\)' >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000012447 as_expr=expr
12448else
12449 as_expr=false
12450fi
12451
12452rm -f conf$$ conf$$.exe conf$$.file
drh866108f2008-05-13 00:57:21 +000012453echo >conf$$.file
12454if ln -s conf$$.file conf$$ 2>/dev/null; then
12455 # We could just check for DJGPP; but this test a) works b) is more generic
12456 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12457 if test -f conf$$.exe; then
12458 # Don't use ln at all; we don't have any links
drh71eb93e2001-09-28 01:34:43 +000012459 as_ln_s='cp -p'
drh866108f2008-05-13 00:57:21 +000012460 else
12461 as_ln_s='ln -s'
mlcreech636a9952008-05-05 22:52:56 +000012462 fi
drh866108f2008-05-13 00:57:21 +000012463elif ln conf$$.file conf$$ 2>/dev/null; then
12464 as_ln_s=ln
drh71eb93e2001-09-28 01:34:43 +000012465else
12466 as_ln_s='cp -p'
12467fi
drh866108f2008-05-13 00:57:21 +000012468rm -f conf$$ conf$$.exe conf$$.file
drh71eb93e2001-09-28 01:34:43 +000012469
a.rottmann84e63352003-03-24 09:42:16 +000012470if mkdir -p . 2>/dev/null; then
12471 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000012472else
a.rottmann964dbb12004-02-26 19:47:42 +000012473 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012474 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012475fi
12476
drh866108f2008-05-13 00:57:21 +000012477as_executable_p="test -f"
a.rottmann84e63352003-03-24 09:42:16 +000012478
12479# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012480as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012481
12482# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012483as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012484
drh71eb93e2001-09-28 01:34:43 +000012485
drh866108f2008-05-13 00:57:21 +000012486# IFS
12487# We need space, tab and new line, in precisely that order.
12488as_nl='
12489'
12490IFS=" $as_nl"
12491
12492# CDPATH.
12493$as_unset CDPATH
12494
drh71eb93e2001-09-28 01:34:43 +000012495exec 6>&1
12496
drh866108f2008-05-13 00:57:21 +000012497# Open the log real soon, to keep \$[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012498# report actual input values of CONFIG_FILES etc. instead of their
drh866108f2008-05-13 00:57:21 +000012499# values after options handling. Logging --version etc. is OK.
12500exec 5>>config.log
12501{
12502 echo
12503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12504## Running $as_me. ##
12505_ASBOX
12506} >&5
12507cat >&5 <<_CSEOF
12508
danielk197733a14782008-08-04 14:50:05 +000012509This file was extended by sqlite $as_me 3.6.1, which was
drh866108f2008-05-13 00:57:21 +000012510generated by GNU Autoconf 2.59. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012511
12512 CONFIG_FILES = $CONFIG_FILES
12513 CONFIG_HEADERS = $CONFIG_HEADERS
12514 CONFIG_LINKS = $CONFIG_LINKS
12515 CONFIG_COMMANDS = $CONFIG_COMMANDS
12516 $ $0 $@
12517
drh866108f2008-05-13 00:57:21 +000012518_CSEOF
12519echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12520echo >&5
drh71eb93e2001-09-28 01:34:43 +000012521_ACEOF
12522
12523# Files that config.status was made for.
drh866108f2008-05-13 00:57:21 +000012524if test -n "$ac_config_files"; then
12525 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12526fi
drh71eb93e2001-09-28 01:34:43 +000012527
drh866108f2008-05-13 00:57:21 +000012528if test -n "$ac_config_headers"; then
12529 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12530fi
drh71eb93e2001-09-28 01:34:43 +000012531
drh866108f2008-05-13 00:57:21 +000012532if test -n "$ac_config_links"; then
12533 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12534fi
12535
12536if test -n "$ac_config_commands"; then
12537 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12538fi
12539
12540cat >>$CONFIG_STATUS <<\_ACEOF
12541
drh71eb93e2001-09-28 01:34:43 +000012542ac_cs_usage="\
12543\`$as_me' instantiates files from templates according to the
12544current configuration.
12545
12546Usage: $0 [OPTIONS] [FILE]...
12547
12548 -h, --help print this help, then exit
drh866108f2008-05-13 00:57:21 +000012549 -V, --version print version number, then exit
a.rottmann84e63352003-03-24 09:42:16 +000012550 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012551 -d, --debug don't remove temporary files
12552 --recheck update $as_me by reconfiguring in the same conditions
12553 --file=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012554 instantiate the configuration file FILE
mlcreechb87057f2008-03-06 07:19:20 +000012555 --header=FILE[:TEMPLATE]
drh866108f2008-05-13 00:57:21 +000012556 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012557
12558Configuration files:
12559$config_files
12560
mlcreechb87057f2008-03-06 07:19:20 +000012561Configuration headers:
12562$config_headers
12563
mlcreech636a9952008-05-05 22:52:56 +000012564Configuration commands:
12565$config_commands
12566
drh71eb93e2001-09-28 01:34:43 +000012567Report bugs to <bug-autoconf@gnu.org>."
mlcreech94984912008-03-04 19:03:08 +000012568_ACEOF
drh75897232000-05-29 14:26:00 +000012569
drh866108f2008-05-13 00:57:21 +000012570cat >>$CONFIG_STATUS <<_ACEOF
12571ac_cs_version="\\
danielk197733a14782008-08-04 14:50:05 +000012572sqlite config.status 3.6.1
drh866108f2008-05-13 00:57:21 +000012573configured by $0, generated by GNU Autoconf 2.59,
12574 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12575
12576Copyright (C) 2003 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012577This config.status script is free software; the Free Software Foundation
12578gives unlimited permission to copy, distribute and modify it."
drh866108f2008-05-13 00:57:21 +000012579srcdir=$srcdir
12580INSTALL="$INSTALL"
a.rottmann84e63352003-03-24 09:42:16 +000012581_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012582
drh866108f2008-05-13 00:57:21 +000012583cat >>$CONFIG_STATUS <<\_ACEOF
12584# If no file are specified by the user, then we need to provide default
12585# value. By we need to know if files were specified by the user.
drh71eb93e2001-09-28 01:34:43 +000012586ac_need_defaults=:
12587while test $# != 0
12588do
12589 case $1 in
12590 --*=*)
drh866108f2008-05-13 00:57:21 +000012591 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12592 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012593 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012594 ;;
drh866108f2008-05-13 00:57:21 +000012595 -*)
a.rottmann84e63352003-03-24 09:42:16 +000012596 ac_option=$1
12597 ac_optarg=$2
12598 ac_shift=shift
12599 ;;
drh866108f2008-05-13 00:57:21 +000012600 *) # This is not an option, so the user has probably given explicit
12601 # arguments.
12602 ac_option=$1
12603 ac_need_defaults=false;;
drh75897232000-05-29 14:26:00 +000012604 esac
12605
a.rottmann84e63352003-03-24 09:42:16 +000012606 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012607 # Handling of the options.
drh866108f2008-05-13 00:57:21 +000012608_ACEOF
12609cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012611 ac_cs_recheck=: ;;
drh866108f2008-05-13 00:57:21 +000012612 --version | --vers* | -V )
12613 echo "$ac_cs_version"; exit 0 ;;
12614 --he | --h)
12615 # Conflict between --help and --header
12616 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12617Try \`$0 --help' for more information." >&5
12618echo "$as_me: error: ambiguous option: $1
12619Try \`$0 --help' for more information." >&2;}
12620 { (exit 1); exit 1; }; };;
12621 --help | --hel | -h )
12622 echo "$ac_cs_usage"; exit 0 ;;
12623 --debug | --d* | -d )
drh71eb93e2001-09-28 01:34:43 +000012624 debug=: ;;
12625 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012626 $ac_shift
drh866108f2008-05-13 00:57:21 +000012627 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
drh71eb93e2001-09-28 01:34:43 +000012628 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012629 --header | --heade | --head | --hea )
12630 $ac_shift
drh866108f2008-05-13 00:57:21 +000012631 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
mlcreechb87057f2008-03-06 07:19:20 +000012632 ac_need_defaults=false;;
a.rottmann84e63352003-03-24 09:42:16 +000012633 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12634 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12635 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012636
drh71eb93e2001-09-28 01:34:43 +000012637 # This is an error.
drh866108f2008-05-13 00:57:21 +000012638 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12639Try \`$0 --help' for more information." >&5
12640echo "$as_me: error: unrecognized option: $1
12641Try \`$0 --help' for more information." >&2;}
drh71eb93e2001-09-28 01:34:43 +000012642 { (exit 1); exit 1; }; } ;;
12643
drh866108f2008-05-13 00:57:21 +000012644 *) ac_config_targets="$ac_config_targets $1" ;;
drh71eb93e2001-09-28 01:34:43 +000012645
12646 esac
12647 shift
12648done
12649
a.rottmann84e63352003-03-24 09:42:16 +000012650ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012651
a.rottmann84e63352003-03-24 09:42:16 +000012652if $ac_cs_silent; then
12653 exec 6>/dev/null
12654 ac_configure_extra_args="$ac_configure_extra_args --silent"
12655fi
drh71eb93e2001-09-28 01:34:43 +000012656
12657_ACEOF
drh866108f2008-05-13 00:57:21 +000012658cat >>$CONFIG_STATUS <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012659if \$ac_cs_recheck; then
drh866108f2008-05-13 00:57:21 +000012660 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12661 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
a.rottmann84e63352003-03-24 09:42:16 +000012662fi
drh71eb93e2001-09-28 01:34:43 +000012663
a.rottmann84e63352003-03-24 09:42:16 +000012664_ACEOF
12665
drh866108f2008-05-13 00:57:21 +000012666cat >>$CONFIG_STATUS <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000012667#
drh866108f2008-05-13 00:57:21 +000012668# INIT-COMMANDS section.
mlcreech636a9952008-05-05 22:52:56 +000012669#
12670
12671
drh866108f2008-05-13 00:57:21 +000012672
mlcreech636a9952008-05-05 22:52:56 +000012673# The HP-UX ksh and POSIX shell print the target directory to stdout
12674# if CDPATH is set.
12675(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12676
12677sed_quote_subst='$sed_quote_subst'
12678double_quote_subst='$double_quote_subst'
12679delay_variable_subst='$delay_variable_subst'
12680macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12681macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12682enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12683enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12684pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12685enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12686host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12687host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12688host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12689build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12690build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12691build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12692SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12693Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12694GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12695EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12696FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12697LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12698NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12699LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12700max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12701ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12702exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12703lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12704lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12705lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12706reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12707reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12708deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12709file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12710AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12711AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12712STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12713RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12714old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12715old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12716old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12717CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12718CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12719compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12720GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12721lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12722lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12723lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12724lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12725objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12726SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12727ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12728MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12729lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12730lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12731lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12732lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12733lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12734need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12735DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12736NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12737LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12738OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12739OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12740libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12741shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12742extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12743archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12744enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12745export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12746whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12747compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12748old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12749old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12750archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12751archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12752module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12753module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12754with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12755allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12756no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12757hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12758hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12759hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12760hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12761hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12762hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12763hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12764hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12765inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12766link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12767fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12768always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12769export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12770exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12771include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12772prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12773file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12774variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12775need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12776need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12777version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12778runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12779shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12780shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12781libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12782library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12783soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12784postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12785postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12786finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12787finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12788hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12789sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12790sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12791hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12792enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12793enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12794enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12795old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12796striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12797
12798LTCC='$LTCC'
12799LTCFLAGS='$LTCFLAGS'
12800compiler='$compiler_DEFAULT'
12801
12802# Quote evaled strings.
12803for var in SED \
12804GREP \
12805EGREP \
12806FGREP \
12807LD \
12808NM \
12809LN_S \
12810lt_SP2NL \
12811lt_NL2SP \
12812reload_flag \
12813deplibs_check_method \
12814file_magic_cmd \
12815AR \
12816AR_FLAGS \
12817STRIP \
12818RANLIB \
12819CC \
12820CFLAGS \
12821compiler \
12822lt_cv_sys_global_symbol_pipe \
12823lt_cv_sys_global_symbol_to_cdecl \
12824lt_cv_sys_global_symbol_to_c_name_address \
12825lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12826SHELL \
12827ECHO \
12828lt_prog_compiler_no_builtin_flag \
12829lt_prog_compiler_wl \
12830lt_prog_compiler_pic \
12831lt_prog_compiler_static \
12832lt_cv_prog_compiler_c_o \
12833need_locks \
12834DSYMUTIL \
12835NMEDIT \
12836LIPO \
12837OTOOL \
12838OTOOL64 \
12839shrext_cmds \
12840export_dynamic_flag_spec \
12841whole_archive_flag_spec \
12842compiler_needs_object \
12843with_gnu_ld \
12844allow_undefined_flag \
12845no_undefined_flag \
12846hardcode_libdir_flag_spec \
12847hardcode_libdir_flag_spec_ld \
12848hardcode_libdir_separator \
12849fix_srcfile_path \
12850exclude_expsyms \
12851include_expsyms \
12852file_list_spec \
12853variables_saved_for_relink \
12854libname_spec \
12855library_names_spec \
12856soname_spec \
12857finish_eval \
12858old_striplib \
12859striplib; do
12860 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12861 *[\\\\\\\`\\"\\\$]*)
12862 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12863 ;;
12864 *)
12865 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12866 ;;
12867 esac
12868done
12869
12870# Double-quote double-evaled strings.
12871for var in reload_cmds \
12872old_postinstall_cmds \
12873old_postuninstall_cmds \
12874old_archive_cmds \
12875extract_expsyms_cmds \
12876old_archive_from_new_cmds \
12877old_archive_from_expsyms_cmds \
12878archive_cmds \
12879archive_expsym_cmds \
12880module_cmds \
12881module_expsym_cmds \
12882export_symbols_cmds \
12883prelink_cmds \
12884postinstall_cmds \
12885postuninstall_cmds \
12886finish_cmds \
12887sys_lib_search_path_spec \
12888sys_lib_dlsearch_path_spec; do
12889 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12890 *[\\\\\\\`\\"\\\$]*)
12891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12892 ;;
12893 *)
12894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12895 ;;
12896 esac
12897done
12898
12899# Fix-up fallback echo if it was mangled by the above quoting rules.
12900case \$lt_ECHO in
12901*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12902 ;;
12903esac
12904
12905ac_aux_dir='$ac_aux_dir'
12906xsi_shell='$xsi_shell'
12907lt_shell_append='$lt_shell_append'
12908
12909# See if we are running on zsh, and set the options which allow our
12910# commands through without removal of \ escapes INIT.
12911if test -n "\${ZSH_VERSION+set}" ; then
12912 setopt NO_GLOB_SUBST
12913fi
12914
12915
12916 PACKAGE='$PACKAGE'
12917 VERSION='$VERSION'
12918 TIMESTAMP='$TIMESTAMP'
12919 RM='$RM'
12920 ofile='$ofile'
12921
12922
12923
12924
mlcreech94984912008-03-04 19:03:08 +000012925_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012926
mlcreech94984912008-03-04 19:03:08 +000012927
drh866108f2008-05-13 00:57:21 +000012928
12929cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012930for ac_config_target in $ac_config_targets
12931do
drh866108f2008-05-13 00:57:21 +000012932 case "$ac_config_target" in
12933 # Handling of arguments.
12934 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12935 "sqlite3.pc" ) CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12936 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12937 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12938 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12939echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000012940 { (exit 1); exit 1; }; };;
12941 esac
12942done
12943
12944# If the user did not use the arguments to specify the items to instantiate,
12945# then the envvar interface is used. Set only those that are not.
12946# We use the long form for the default assignment because of an extremely
12947# bizarre bug on SunOS 4.1.3.
12948if $ac_need_defaults; then
12949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012952fi
12953
a.rottmann84e63352003-03-24 09:42:16 +000012954# Have a temporary directory for convenience. Make it in the build tree
drh866108f2008-05-13 00:57:21 +000012955# simply because there is no reason to put it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012956# creating and moving files from /tmp can sometimes cause problems.
drh866108f2008-05-13 00:57:21 +000012957# Create a temporary directory, and hook for its removal unless debugging.
drh71eb93e2001-09-28 01:34:43 +000012958$debug ||
12959{
drh866108f2008-05-13 00:57:21 +000012960 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
drh71eb93e2001-09-28 01:34:43 +000012961 trap '{ (exit 1); exit 1; }' 1 2 13 15
12962}
drh866108f2008-05-13 00:57:21 +000012963
drh71eb93e2001-09-28 01:34:43 +000012964# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012965
drh71eb93e2001-09-28 01:34:43 +000012966{
drh866108f2008-05-13 00:57:21 +000012967 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000012968 test -n "$tmp" && test -d "$tmp"
12969} ||
12970{
drh866108f2008-05-13 00:57:21 +000012971 tmp=./confstat$$-$RANDOM
12972 (umask 077 && mkdir $tmp)
drh71eb93e2001-09-28 01:34:43 +000012973} ||
12974{
drh866108f2008-05-13 00:57:21 +000012975 echo "$me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000012976 { (exit 1); exit 1; }
12977}
12978
a.rottmann84e63352003-03-24 09:42:16 +000012979_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012980
drh866108f2008-05-13 00:57:21 +000012981cat >>$CONFIG_STATUS <<_ACEOF
mlcreech94984912008-03-04 19:03:08 +000012982
drh866108f2008-05-13 00:57:21 +000012983#
12984# CONFIG_FILES section.
12985#
mlcreech94984912008-03-04 19:03:08 +000012986
drh866108f2008-05-13 00:57:21 +000012987# No need to generate the scripts if there are no CONFIG_FILES.
12988# This happens for instance when ./config.status config.h
12989if test -n "\$CONFIG_FILES"; then
12990 # Protect against being on the right side of a sed subst in config.status.
12991 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12992 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12993s,@SHELL@,$SHELL,;t t
12994s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12995s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12996s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12997s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12998s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12999s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13000s,@exec_prefix@,$exec_prefix,;t t
13001s,@prefix@,$prefix,;t t
13002s,@program_transform_name@,$program_transform_name,;t t
13003s,@bindir@,$bindir,;t t
13004s,@sbindir@,$sbindir,;t t
13005s,@libexecdir@,$libexecdir,;t t
13006s,@datadir@,$datadir,;t t
13007s,@sysconfdir@,$sysconfdir,;t t
13008s,@sharedstatedir@,$sharedstatedir,;t t
13009s,@localstatedir@,$localstatedir,;t t
13010s,@libdir@,$libdir,;t t
13011s,@includedir@,$includedir,;t t
13012s,@oldincludedir@,$oldincludedir,;t t
13013s,@infodir@,$infodir,;t t
13014s,@mandir@,$mandir,;t t
13015s,@build_alias@,$build_alias,;t t
13016s,@host_alias@,$host_alias,;t t
13017s,@target_alias@,$target_alias,;t t
13018s,@DEFS@,$DEFS,;t t
13019s,@ECHO_C@,$ECHO_C,;t t
13020s,@ECHO_N@,$ECHO_N,;t t
13021s,@ECHO_T@,$ECHO_T,;t t
13022s,@LIBS@,$LIBS,;t t
13023s,@LIBTOOL@,$LIBTOOL,;t t
13024s,@build@,$build,;t t
13025s,@build_cpu@,$build_cpu,;t t
13026s,@build_vendor@,$build_vendor,;t t
13027s,@build_os@,$build_os,;t t
13028s,@host@,$host,;t t
13029s,@host_cpu@,$host_cpu,;t t
13030s,@host_vendor@,$host_vendor,;t t
13031s,@host_os@,$host_os,;t t
13032s,@CC@,$CC,;t t
13033s,@CFLAGS@,$CFLAGS,;t t
13034s,@LDFLAGS@,$LDFLAGS,;t t
13035s,@CPPFLAGS@,$CPPFLAGS,;t t
13036s,@ac_ct_CC@,$ac_ct_CC,;t t
13037s,@EXEEXT@,$EXEEXT,;t t
13038s,@OBJEXT@,$OBJEXT,;t t
13039s,@SED@,$SED,;t t
13040s,@EGREP@,$EGREP,;t t
13041s,@FGREP@,$FGREP,;t t
13042s,@GREP@,$GREP,;t t
13043s,@LD@,$LD,;t t
13044s,@DUMPBIN@,$DUMPBIN,;t t
13045s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13046s,@NM@,$NM,;t t
13047s,@LN_S@,$LN_S,;t t
13048s,@AR@,$AR,;t t
13049s,@ac_ct_AR@,$ac_ct_AR,;t t
13050s,@STRIP@,$STRIP,;t t
13051s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13052s,@RANLIB@,$RANLIB,;t t
13053s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13054s,@lt_ECHO@,$lt_ECHO,;t t
13055s,@DSYMUTIL@,$DSYMUTIL,;t t
13056s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13057s,@NMEDIT@,$NMEDIT,;t t
13058s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13059s,@LIPO@,$LIPO,;t t
13060s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13061s,@OTOOL@,$OTOOL,;t t
13062s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13063s,@OTOOL64@,$OTOOL64,;t t
13064s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13065s,@CPP@,$CPP,;t t
13066s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13067s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13068s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13069s,@AWK@,$AWK,;t t
13070s,@TCLSH_CMD@,$TCLSH_CMD,;t t
13071s,@program_prefix@,$program_prefix,;t t
13072s,@VERSION@,$VERSION,;t t
13073s,@RELEASE@,$RELEASE,;t t
13074s,@VERSION_NUMBER@,$VERSION_NUMBER,;t t
13075s,@BUILD_CC@,$BUILD_CC,;t t
13076s,@SQLITE_THREADSAFE@,$SQLITE_THREADSAFE,;t t
13077s,@XTHREADCONNECT@,$XTHREADCONNECT,;t t
13078s,@THREADSOVERRIDELOCKS@,$THREADSOVERRIDELOCKS,;t t
13079s,@ALLOWRELEASE@,$ALLOWRELEASE,;t t
13080s,@TEMP_STORE@,$TEMP_STORE,;t t
13081s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
danielk197729bafea2008-06-26 10:41:19 +000013082s,@SQLITE_OS_UNIX@,$SQLITE_OS_UNIX,;t t
13083s,@SQLITE_OS_WIN@,$SQLITE_OS_WIN,;t t
13084s,@SQLITE_OS_OS2@,$SQLITE_OS_OS2,;t t
drh866108f2008-05-13 00:57:21 +000013085s,@TARGET_EXEEXT@,$TARGET_EXEEXT,;t t
13086s,@TCL_VERSION@,$TCL_VERSION,;t t
13087s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
13088s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
13089s,@TCL_LIBS@,$TCL_LIBS,;t t
13090s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
13091s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
13092s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
13093s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
13094s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
13095s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
13096s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
13097s,@HAVE_TCL@,$HAVE_TCL,;t t
13098s,@TARGET_READLINE_LIBS@,$TARGET_READLINE_LIBS,;t t
13099s,@TARGET_READLINE_INC@,$TARGET_READLINE_INC,;t t
13100s,@TARGET_HAVE_READLINE@,$TARGET_HAVE_READLINE,;t t
13101s,@TARGET_DEBUG@,$TARGET_DEBUG,;t t
13102s,@USE_AMALGAMATION@,$USE_AMALGAMATION,;t t
shanefbedede2008-07-22 05:05:01 +000013103s,@OPT_FEATURE_FLAGS@,$OPT_FEATURE_FLAGS,;t t
drh866108f2008-05-13 00:57:21 +000013104s,@USE_GCOV@,$USE_GCOV,;t t
13105s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13106s,@LIBOBJS@,$LIBOBJS,;t t
13107s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13108CEOF
13109
13110_ACEOF
13111
13112 cat >>$CONFIG_STATUS <<\_ACEOF
13113 # Split the substitutions into bite-sized pieces for seds with
13114 # small command number limits, like on Digital OSF/1 and HP-UX.
13115 ac_max_sed_lines=48
13116 ac_sed_frag=1 # Number of current file.
13117 ac_beg=1 # First line for current file.
13118 ac_end=$ac_max_sed_lines # Line after last line for current file.
13119 ac_more_lines=:
13120 ac_sed_cmds=
13121 while $ac_more_lines; do
13122 if test $ac_beg -gt 1; then
13123 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13124 else
13125 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13126 fi
13127 if test ! -s $tmp/subs.frag; then
13128 ac_more_lines=false
13129 else
13130 # The purpose of the label and of the branching condition is to
13131 # speed up the sed processing (if there are no `@' at all, there
13132 # is no need to browse any of the substitutions).
13133 # These are the two extra sed commands mentioned above.
13134 (echo ':t
13135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13136 if test -z "$ac_sed_cmds"; then
13137 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13138 else
13139 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13140 fi
13141 ac_sed_frag=`expr $ac_sed_frag + 1`
13142 ac_beg=$ac_end
13143 ac_end=`expr $ac_end + $ac_max_sed_lines`
13144 fi
13145 done
13146 if test -z "$ac_sed_cmds"; then
13147 ac_sed_cmds=cat
drh71eb93e2001-09-28 01:34:43 +000013148 fi
13149fi # test -n "$CONFIG_FILES"
13150
mlcreech636a9952008-05-05 22:52:56 +000013151_ACEOF
drh866108f2008-05-13 00:57:21 +000013152cat >>$CONFIG_STATUS <<\_ACEOF
13153for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13154 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13155 case $ac_file in
13156 - | *:- | *:-:* ) # input from stdin
13157 cat >$tmp/stdin
13158 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13160 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13161 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13162 * ) ac_file_in=$ac_file.in ;;
drh71eb93e2001-09-28 01:34:43 +000013163 esac
13164
drh866108f2008-05-13 00:57:21 +000013165 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13166 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000013167$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013168 X"$ac_file" : 'X\(//\)[^/]' \| \
13169 X"$ac_file" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000013170 X"$ac_file" : 'X\(/\)' \| \
13171 . : '\(.\)' 2>/dev/null ||
13172echo X"$ac_file" |
13173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13175 /^X\(\/\/\)$/{ s//\1/; q; }
13176 /^X\(\/\).*/{ s//\1/; q; }
13177 s/.*/./; q'`
13178 { if $as_mkdir_p; then
13179 mkdir -p "$ac_dir"
13180 else
13181 as_dir="$ac_dir"
a.rottmann84e63352003-03-24 09:42:16 +000013182 as_dirs=
drh866108f2008-05-13 00:57:21 +000013183 while test ! -d "$as_dir"; do
13184 as_dirs="$as_dir $as_dirs"
13185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
a.rottmann84e63352003-03-24 09:42:16 +000013186$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013187 X"$as_dir" : 'X\(//\)[^/]' \| \
13188 X"$as_dir" : 'X\(//\)$' \| \
drh866108f2008-05-13 00:57:21 +000013189 X"$as_dir" : 'X\(/\)' \| \
13190 . : '\(.\)' 2>/dev/null ||
13191echo X"$as_dir" |
13192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13194 /^X\(\/\/\)$/{ s//\1/; q; }
13195 /^X\(\/\).*/{ s//\1/; q; }
13196 s/.*/./; q'`
a.rottmann84e63352003-03-24 09:42:16 +000013197 done
drh866108f2008-05-13 00:57:21 +000013198 test ! -n "$as_dirs" || mkdir $as_dirs
13199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13200echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000013201 { (exit 1); exit 1; }; }; }
drh866108f2008-05-13 00:57:21 +000013202
a.rottmann84e63352003-03-24 09:42:16 +000013203 ac_builddir=.
13204
drh866108f2008-05-13 00:57:21 +000013205if test "$ac_dir" != .; then
13206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13207 # A "../" for each directory in $ac_dir_suffix.
13208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13209else
13210 ac_dir_suffix= ac_top_builddir=
13211fi
a.rottmann84e63352003-03-24 09:42:16 +000013212
13213case $srcdir in
drh866108f2008-05-13 00:57:21 +000013214 .) # No --srcdir option. We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013215 ac_srcdir=.
drh866108f2008-05-13 00:57:21 +000013216 if test -z "$ac_top_builddir"; then
13217 ac_top_srcdir=.
13218 else
13219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13220 fi ;;
13221 [\\/]* | ?:[\\/]* ) # Absolute path.
a.rottmann84e63352003-03-24 09:42:16 +000013222 ac_srcdir=$srcdir$ac_dir_suffix;
drh866108f2008-05-13 00:57:21 +000013223 ac_top_srcdir=$srcdir ;;
13224 *) # Relative path.
13225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013227esac
a.rottmann964dbb12004-02-26 19:47:42 +000013228
drh866108f2008-05-13 00:57:21 +000013229# Do not use `cd foo && pwd` to compute absolute paths, because
13230# the directories may not exist.
13231case `pwd` in
13232.) ac_abs_builddir="$ac_dir";;
13233*)
13234 case "$ac_dir" in
13235 .) ac_abs_builddir=`pwd`;;
13236 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13237 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13238 esac;;
13239esac
13240case $ac_abs_builddir in
13241.) ac_abs_top_builddir=${ac_top_builddir}.;;
13242*)
13243 case ${ac_top_builddir}. in
13244 .) ac_abs_top_builddir=$ac_abs_builddir;;
13245 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13246 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13247 esac;;
13248esac
13249case $ac_abs_builddir in
13250.) ac_abs_srcdir=$ac_srcdir;;
13251*)
13252 case $ac_srcdir in
13253 .) ac_abs_srcdir=$ac_abs_builddir;;
13254 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13255 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13256 esac;;
13257esac
13258case $ac_abs_builddir in
13259.) ac_abs_top_srcdir=$ac_top_srcdir;;
13260*)
13261 case $ac_top_srcdir in
13262 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13263 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13264 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13265 esac;;
13266esac
a.rottmann84e63352003-03-24 09:42:16 +000013267
drh75897232000-05-29 14:26:00 +000013268
drh71eb93e2001-09-28 01:34:43 +000013269 case $INSTALL in
13270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh866108f2008-05-13 00:57:21 +000013271 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013272 esac
mlcreech94984912008-03-04 19:03:08 +000013273
drh866108f2008-05-13 00:57:21 +000013274 if test x"$ac_file" != x-; then
13275 { echo "$as_me:$LINENO: creating $ac_file" >&5
13276echo "$as_me: creating $ac_file" >&6;}
13277 rm -f "$ac_file"
13278 fi
13279 # Let's still pretend it is `configure' which instantiates (i.e., don't
13280 # use $as_me), people would be surprised to read:
13281 # /* config.h. Generated by config.status. */
13282 if test x"$ac_file" = x-; then
13283 configure_input=
13284 else
13285 configure_input="$ac_file. "
13286 fi
13287 configure_input=$configure_input"Generated from `echo $ac_file_in |
13288 sed 's,.*/,,'` by configure."
mlcreech94984912008-03-04 19:03:08 +000013289
drh866108f2008-05-13 00:57:21 +000013290 # First look for the input files in the build tree, otherwise in the
13291 # src tree.
13292 ac_file_inputs=`IFS=:
13293 for f in $ac_file_in; do
13294 case $f in
13295 -) echo $tmp/stdin ;;
13296 [\\/$]*)
13297 # Absolute (can't be DOS-style, as IFS=:)
13298 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13299echo "$as_me: error: cannot find input file: $f" >&2;}
13300 { (exit 1); exit 1; }; }
13301 echo "$f";;
13302 *) # Relative
13303 if test -f "$f"; then
13304 # Build tree
13305 echo "$f"
13306 elif test -f "$srcdir/$f"; then
13307 # Source tree
13308 echo "$srcdir/$f"
13309 else
13310 # /dev/null tree
13311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13312echo "$as_me: error: cannot find input file: $f" >&2;}
13313 { (exit 1); exit 1; }; }
13314 fi;;
13315 esac
13316 done` || { (exit 1); exit 1; }
mlcreech94984912008-03-04 19:03:08 +000013317_ACEOF
drh866108f2008-05-13 00:57:21 +000013318cat >>$CONFIG_STATUS <<_ACEOF
13319 sed "$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013320$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013321_ACEOF
drh866108f2008-05-13 00:57:21 +000013322cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013323:t
13324/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh866108f2008-05-13 00:57:21 +000013325s,@configure_input@,$configure_input,;t t
13326s,@srcdir@,$ac_srcdir,;t t
13327s,@abs_srcdir@,$ac_abs_srcdir,;t t
13328s,@top_srcdir@,$ac_top_srcdir,;t t
13329s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13330s,@builddir@,$ac_builddir,;t t
13331s,@abs_builddir@,$ac_abs_builddir,;t t
13332s,@top_builddir@,$ac_top_builddir,;t t
13333s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13334s,@INSTALL@,$ac_INSTALL,;t t
13335" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13336 rm -f $tmp/stdin
mlcreechb87057f2008-03-06 07:19:20 +000013337 if test x"$ac_file" != x-; then
drh866108f2008-05-13 00:57:21 +000013338 mv $tmp/out $ac_file
mlcreechb87057f2008-03-06 07:19:20 +000013339 else
drh866108f2008-05-13 00:57:21 +000013340 cat $tmp/out
13341 rm -f $tmp/out
mlcreechb87057f2008-03-06 07:19:20 +000013342 fi
mlcreech94984912008-03-04 19:03:08 +000013343
drh866108f2008-05-13 00:57:21 +000013344done
13345_ACEOF
13346cat >>$CONFIG_STATUS <<\_ACEOF
13347
13348#
13349# CONFIG_HEADER section.
13350#
13351
13352# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13353# NAME is the cpp macro being defined and VALUE is the value it is being given.
13354#
13355# ac_d sets the value in "#define NAME VALUE" lines.
13356ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13357ac_dB='[ ].*$,\1#\2'
13358ac_dC=' '
13359ac_dD=',;t'
13360# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13361ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13362ac_uB='$,\1#\2define\3'
13363ac_uC=' '
13364ac_uD=',;t'
13365
13366for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13368 case $ac_file in
13369 - | *:- | *:-:* ) # input from stdin
13370 cat >$tmp/stdin
13371 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13372 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13373 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13375 * ) ac_file_in=$ac_file.in ;;
mlcreech94984912008-03-04 19:03:08 +000013376 esac
13377
drh866108f2008-05-13 00:57:21 +000013378 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13379echo "$as_me: creating $ac_file" >&6;}
mlcreech636a9952008-05-05 22:52:56 +000013380
drh866108f2008-05-13 00:57:21 +000013381 # First look for the input files in the build tree, otherwise in the
13382 # src tree.
13383 ac_file_inputs=`IFS=:
13384 for f in $ac_file_in; do
13385 case $f in
13386 -) echo $tmp/stdin ;;
13387 [\\/$]*)
13388 # Absolute (can't be DOS-style, as IFS=:)
13389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13390echo "$as_me: error: cannot find input file: $f" >&2;}
13391 { (exit 1); exit 1; }; }
13392 # Do quote $f, to prevent DOS paths from being IFS'd.
13393 echo "$f";;
13394 *) # Relative
13395 if test -f "$f"; then
13396 # Build tree
13397 echo "$f"
13398 elif test -f "$srcdir/$f"; then
13399 # Source tree
13400 echo "$srcdir/$f"
13401 else
13402 # /dev/null tree
13403 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13404echo "$as_me: error: cannot find input file: $f" >&2;}
13405 { (exit 1); exit 1; }; }
13406 fi;;
13407 esac
13408 done` || { (exit 1); exit 1; }
13409 # Remove the trailing spaces.
13410 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13411
13412_ACEOF
13413
13414# Transform confdefs.h into two sed scripts, `conftest.defines' and
13415# `conftest.undefs', that substitutes the proper values into
13416# config.h.in to produce config.h. The first handles `#define'
13417# templates, and the second `#undef' templates.
13418# And first: Protect against being on the right side of a sed subst in
13419# config.status. Protect against being in an unquoted here document
13420# in config.status.
13421rm -f conftest.defines conftest.undefs
13422# Using a here document instead of a string reduces the quoting nightmare.
13423# Putting comments in sed scripts is not portable.
13424#
13425# `end' is used to avoid that the second main sed command (meant for
13426# 0-ary CPP macros) applies to n-ary macro definitions.
13427# See the Autoconf documentation for `clear'.
13428cat >confdef2sed.sed <<\_ACEOF
13429s/[\\&,]/\\&/g
13430s,[\\$`],\\&,g
13431t clear
13432: clear
13433s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13434t end
13435s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13436: end
13437_ACEOF
13438# If some macros were called several times there might be several times
13439# the same #defines, which is useless. Nevertheless, we may not want to
13440# sort them, since we want the *last* AC-DEFINE to be honored.
13441uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13442sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13443rm -f confdef2sed.sed
13444
13445# This sed command replaces #undef with comments. This is necessary, for
13446# example, in the case of _POSIX_SOURCE, which is predefined and required
13447# on some systems where configure will not decide to define it.
13448cat >>conftest.undefs <<\_ACEOF
13449s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13450_ACEOF
13451
13452# Break up conftest.defines because some shells have a limit on the size
13453# of here documents, and old seds have small limits too (100 cmds).
13454echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13455echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13456echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13457echo ' :' >>$CONFIG_STATUS
13458rm -f conftest.tail
13459while grep . conftest.defines >/dev/null
13460do
13461 # Write a limited-size here document to $tmp/defines.sed.
13462 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13463 # Speed up: don't consider the non `#define' lines.
13464 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13465 # Work around the forget-to-reset-the-flag bug.
13466 echo 't clr' >>$CONFIG_STATUS
13467 echo ': clr' >>$CONFIG_STATUS
13468 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13469 echo 'CEOF
13470 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13471 rm -f $tmp/in
13472 mv $tmp/out $tmp/in
13473' >>$CONFIG_STATUS
13474 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13475 rm -f conftest.defines
13476 mv conftest.tail conftest.defines
13477done
13478rm -f conftest.defines
13479echo ' fi # grep' >>$CONFIG_STATUS
13480echo >>$CONFIG_STATUS
13481
13482# Break up conftest.undefs because some shells have a limit on the size
13483# of here documents, and old seds have small limits too (100 cmds).
13484echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13485rm -f conftest.tail
13486while grep . conftest.undefs >/dev/null
13487do
13488 # Write a limited-size here document to $tmp/undefs.sed.
13489 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13490 # Speed up: don't consider the non `#undef'
13491 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13492 # Work around the forget-to-reset-the-flag bug.
13493 echo 't clr' >>$CONFIG_STATUS
13494 echo ': clr' >>$CONFIG_STATUS
13495 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13496 echo 'CEOF
13497 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13498 rm -f $tmp/in
13499 mv $tmp/out $tmp/in
13500' >>$CONFIG_STATUS
13501 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13502 rm -f conftest.undefs
13503 mv conftest.tail conftest.undefs
13504done
13505rm -f conftest.undefs
13506
13507cat >>$CONFIG_STATUS <<\_ACEOF
13508 # Let's still pretend it is `configure' which instantiates (i.e., don't
13509 # use $as_me), people would be surprised to read:
13510 # /* config.h. Generated by config.status. */
13511 if test x"$ac_file" = x-; then
13512 echo "/* Generated by configure. */" >$tmp/config.h
13513 else
13514 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13515 fi
13516 cat $tmp/in >>$tmp/config.h
13517 rm -f $tmp/in
13518 if test x"$ac_file" != x-; then
13519 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13520 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13521echo "$as_me: $ac_file is unchanged" >&6;}
13522 else
13523 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13524$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13525 X"$ac_file" : 'X\(//\)[^/]' \| \
13526 X"$ac_file" : 'X\(//\)$' \| \
13527 X"$ac_file" : 'X\(/\)' \| \
13528 . : '\(.\)' 2>/dev/null ||
13529echo X"$ac_file" |
13530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13532 /^X\(\/\/\)$/{ s//\1/; q; }
13533 /^X\(\/\).*/{ s//\1/; q; }
13534 s/.*/./; q'`
13535 { if $as_mkdir_p; then
13536 mkdir -p "$ac_dir"
13537 else
13538 as_dir="$ac_dir"
13539 as_dirs=
13540 while test ! -d "$as_dir"; do
13541 as_dirs="$as_dir $as_dirs"
13542 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13544 X"$as_dir" : 'X\(//\)[^/]' \| \
13545 X"$as_dir" : 'X\(//\)$' \| \
13546 X"$as_dir" : 'X\(/\)' \| \
13547 . : '\(.\)' 2>/dev/null ||
13548echo X"$as_dir" |
13549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13551 /^X\(\/\/\)$/{ s//\1/; q; }
13552 /^X\(\/\).*/{ s//\1/; q; }
13553 s/.*/./; q'`
13554 done
13555 test ! -n "$as_dirs" || mkdir $as_dirs
13556 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13557echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13558 { (exit 1); exit 1; }; }; }
13559
13560 rm -f $ac_file
13561 mv $tmp/config.h $ac_file
13562 fi
13563 else
13564 cat $tmp/config.h
13565 rm -f $tmp/config.h
13566 fi
13567done
13568_ACEOF
13569cat >>$CONFIG_STATUS <<\_ACEOF
13570
13571#
13572# CONFIG_COMMANDS section.
13573#
13574for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13575 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13576 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13577 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13578$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13579 X"$ac_dest" : 'X\(//\)[^/]' \| \
13580 X"$ac_dest" : 'X\(//\)$' \| \
13581 X"$ac_dest" : 'X\(/\)' \| \
13582 . : '\(.\)' 2>/dev/null ||
13583echo X"$ac_dest" |
13584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13586 /^X\(\/\/\)$/{ s//\1/; q; }
13587 /^X\(\/\).*/{ s//\1/; q; }
13588 s/.*/./; q'`
13589 { if $as_mkdir_p; then
13590 mkdir -p "$ac_dir"
13591 else
13592 as_dir="$ac_dir"
13593 as_dirs=
13594 while test ! -d "$as_dir"; do
13595 as_dirs="$as_dir $as_dirs"
13596 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13597$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13598 X"$as_dir" : 'X\(//\)[^/]' \| \
13599 X"$as_dir" : 'X\(//\)$' \| \
13600 X"$as_dir" : 'X\(/\)' \| \
13601 . : '\(.\)' 2>/dev/null ||
13602echo X"$as_dir" |
13603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13605 /^X\(\/\/\)$/{ s//\1/; q; }
13606 /^X\(\/\).*/{ s//\1/; q; }
13607 s/.*/./; q'`
13608 done
13609 test ! -n "$as_dirs" || mkdir $as_dirs
13610 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13611echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13612 { (exit 1); exit 1; }; }; }
13613
13614 ac_builddir=.
13615
13616if test "$ac_dir" != .; then
13617 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13618 # A "../" for each directory in $ac_dir_suffix.
13619 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13620else
13621 ac_dir_suffix= ac_top_builddir=
13622fi
13623
13624case $srcdir in
13625 .) # No --srcdir option. We are building in place.
13626 ac_srcdir=.
13627 if test -z "$ac_top_builddir"; then
13628 ac_top_srcdir=.
13629 else
13630 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13631 fi ;;
13632 [\\/]* | ?:[\\/]* ) # Absolute path.
13633 ac_srcdir=$srcdir$ac_dir_suffix;
13634 ac_top_srcdir=$srcdir ;;
13635 *) # Relative path.
13636 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13637 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13638esac
13639
13640# Do not use `cd foo && pwd` to compute absolute paths, because
13641# the directories may not exist.
13642case `pwd` in
13643.) ac_abs_builddir="$ac_dir";;
13644*)
13645 case "$ac_dir" in
13646 .) ac_abs_builddir=`pwd`;;
13647 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13648 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13649 esac;;
13650esac
13651case $ac_abs_builddir in
13652.) ac_abs_top_builddir=${ac_top_builddir}.;;
13653*)
13654 case ${ac_top_builddir}. in
13655 .) ac_abs_top_builddir=$ac_abs_builddir;;
13656 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13657 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13658 esac;;
13659esac
13660case $ac_abs_builddir in
13661.) ac_abs_srcdir=$ac_srcdir;;
13662*)
13663 case $ac_srcdir in
13664 .) ac_abs_srcdir=$ac_abs_builddir;;
13665 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13666 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13667 esac;;
13668esac
13669case $ac_abs_builddir in
13670.) ac_abs_top_srcdir=$ac_top_srcdir;;
13671*)
13672 case $ac_top_srcdir in
13673 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13674 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13675 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13676 esac;;
13677esac
13678
13679
13680 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13681echo "$as_me: executing $ac_dest commands" >&6;}
13682 case $ac_dest in
13683 libtool )
mlcreech636a9952008-05-05 22:52:56 +000013684
13685 # See if we are running on zsh, and set the options which allow our
13686 # commands through without removal of \ escapes.
13687 if test -n "${ZSH_VERSION+set}" ; then
13688 setopt NO_GLOB_SUBST
13689 fi
13690
13691 cfgfile="${ofile}T"
13692 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13693 $RM "$cfgfile"
13694
13695 cat <<_LT_EOF >> "$cfgfile"
13696#! $SHELL
13697
13698# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13699# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13701# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13702#
13703# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13704# 2006, 2007, 2008 Free Software Foundation, Inc.
13705# Written by Gordon Matzigkeit, 1996
13706#
13707# This file is part of GNU Libtool.
13708#
13709# GNU Libtool is free software; you can redistribute it and/or
13710# modify it under the terms of the GNU General Public License as
13711# published by the Free Software Foundation; either version 2 of
13712# the License, or (at your option) any later version.
13713#
13714# As a special exception to the GNU General Public License,
13715# if you distribute this file as part of a program or library that
13716# is built using GNU Libtool, you may include this file under the
13717# same distribution terms that you use for the rest of that program.
13718#
13719# GNU Libtool is distributed in the hope that it will be useful,
13720# but WITHOUT ANY WARRANTY; without even the implied warranty of
13721# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13722# GNU General Public License for more details.
13723#
13724# You should have received a copy of the GNU General Public License
13725# along with GNU Libtool; see the file COPYING. If not, a copy
13726# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13727# obtained by writing to the Free Software Foundation, Inc.,
13728# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13729
13730
13731# The names of the tagged configurations supported by this script.
13732available_tags=""
13733
13734# ### BEGIN LIBTOOL CONFIG
13735
13736# Which release of libtool.m4 was used?
13737macro_version=$macro_version
13738macro_revision=$macro_revision
13739
13740# Whether or not to build shared libraries.
13741build_libtool_libs=$enable_shared
13742
13743# Whether or not to build static libraries.
13744build_old_libs=$enable_static
13745
13746# What type of objects to build.
13747pic_mode=$pic_mode
13748
13749# Whether or not to optimize for fast installation.
13750fast_install=$enable_fast_install
13751
13752# The host system.
13753host_alias=$host_alias
13754host=$host
13755host_os=$host_os
13756
13757# The build system.
13758build_alias=$build_alias
13759build=$build
13760build_os=$build_os
13761
13762# A sed program that does not truncate output.
13763SED=$lt_SED
13764
13765# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13766Xsed="\$SED -e 1s/^X//"
13767
13768# A grep program that handles long lines.
13769GREP=$lt_GREP
13770
13771# An ERE matcher.
13772EGREP=$lt_EGREP
13773
13774# A literal string matcher.
13775FGREP=$lt_FGREP
13776
13777# A BSD- or MS-compatible name lister.
13778NM=$lt_NM
13779
13780# Whether we need soft or hard links.
13781LN_S=$lt_LN_S
13782
13783# What is the maximum length of a command?
13784max_cmd_len=$max_cmd_len
13785
13786# Object file suffix (normally "o").
13787objext=$ac_objext
13788
13789# Executable file suffix (normally "").
13790exeext=$exeext
13791
13792# whether the shell understands "unset".
13793lt_unset=$lt_unset
13794
13795# turn spaces into newlines.
13796SP2NL=$lt_lt_SP2NL
13797
13798# turn newlines into spaces.
13799NL2SP=$lt_lt_NL2SP
13800
13801# How to create reloadable object files.
13802reload_flag=$lt_reload_flag
13803reload_cmds=$lt_reload_cmds
13804
13805# Method to check whether dependent libraries are shared objects.
13806deplibs_check_method=$lt_deplibs_check_method
13807
13808# Command to use when deplibs_check_method == "file_magic".
13809file_magic_cmd=$lt_file_magic_cmd
13810
13811# The archiver.
13812AR=$lt_AR
13813AR_FLAGS=$lt_AR_FLAGS
13814
13815# A symbol stripping program.
13816STRIP=$lt_STRIP
13817
13818# Commands used to install an old-style archive.
13819RANLIB=$lt_RANLIB
13820old_postinstall_cmds=$lt_old_postinstall_cmds
13821old_postuninstall_cmds=$lt_old_postuninstall_cmds
13822
13823# A C compiler.
13824LTCC=$lt_CC
13825
13826# LTCC compiler flags.
13827LTCFLAGS=$lt_CFLAGS
13828
13829# Take the output of nm and produce a listing of raw symbols and C names.
13830global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13831
13832# Transform the output of nm in a proper C declaration.
13833global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13834
13835# Transform the output of nm in a C name address pair.
13836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13837
13838# Transform the output of nm in a C name address pair when lib prefix is needed.
13839global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13840
13841# The name of the directory that contains temporary libtool files.
13842objdir=$objdir
13843
13844# Shell to use when invoking shell scripts.
13845SHELL=$lt_SHELL
13846
13847# An echo program that does not interpret backslashes.
13848ECHO=$lt_ECHO
13849
13850# Used to examine libraries when file_magic_cmd begins with "file".
13851MAGIC_CMD=$MAGIC_CMD
13852
13853# Must we lock files when doing compilation?
13854need_locks=$lt_need_locks
13855
13856# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13857DSYMUTIL=$lt_DSYMUTIL
13858
13859# Tool to change global to local symbols on Mac OS X.
13860NMEDIT=$lt_NMEDIT
13861
13862# Tool to manipulate fat objects and archives on Mac OS X.
13863LIPO=$lt_LIPO
13864
13865# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13866OTOOL=$lt_OTOOL
13867
13868# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13869OTOOL64=$lt_OTOOL64
13870
13871# Old archive suffix (normally "a").
13872libext=$libext
13873
13874# Shared library suffix (normally ".so").
13875shrext_cmds=$lt_shrext_cmds
13876
13877# The commands to extract the exported symbol list from a shared archive.
13878extract_expsyms_cmds=$lt_extract_expsyms_cmds
13879
13880# Variables whose values should be saved in libtool wrapper scripts and
13881# restored at link time.
13882variables_saved_for_relink=$lt_variables_saved_for_relink
13883
13884# Do we need the "lib" prefix for modules?
13885need_lib_prefix=$need_lib_prefix
13886
13887# Do we need a version for libraries?
13888need_version=$need_version
13889
13890# Library versioning type.
13891version_type=$version_type
13892
13893# Shared library runtime path variable.
13894runpath_var=$runpath_var
13895
13896# Shared library path variable.
13897shlibpath_var=$shlibpath_var
13898
13899# Is shlibpath searched before the hard-coded library search path?
13900shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13901
13902# Format of library name prefix.
13903libname_spec=$lt_libname_spec
13904
13905# List of archive names. First name is the real one, the rest are links.
13906# The last name is the one that the linker finds with -lNAME
13907library_names_spec=$lt_library_names_spec
13908
13909# The coded name of the library, if different from the real name.
13910soname_spec=$lt_soname_spec
13911
13912# Command to use after installation of a shared archive.
13913postinstall_cmds=$lt_postinstall_cmds
13914
13915# Command to use after uninstallation of a shared archive.
13916postuninstall_cmds=$lt_postuninstall_cmds
13917
13918# Commands used to finish a libtool library installation in a directory.
13919finish_cmds=$lt_finish_cmds
13920
13921# As "finish_cmds", except a single script fragment to be evaled but
13922# not shown.
13923finish_eval=$lt_finish_eval
13924
13925# Whether we should hardcode library paths into libraries.
13926hardcode_into_libs=$hardcode_into_libs
13927
13928# Compile-time system search path for libraries.
13929sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13930
13931# Run-time system search path for libraries.
13932sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13933
13934# Whether dlopen is supported.
13935dlopen_support=$enable_dlopen
13936
13937# Whether dlopen of programs is supported.
13938dlopen_self=$enable_dlopen_self
13939
13940# Whether dlopen of statically linked programs is supported.
13941dlopen_self_static=$enable_dlopen_self_static
13942
13943# Commands to strip libraries.
13944old_striplib=$lt_old_striplib
13945striplib=$lt_striplib
13946
13947
13948# The linker used to build libraries.
13949LD=$lt_LD
13950
13951# Commands used to build an old-style archive.
13952old_archive_cmds=$lt_old_archive_cmds
13953
13954# A language specific compiler.
13955CC=$lt_compiler
13956
13957# Is the compiler the GNU compiler?
13958with_gcc=$GCC
13959
13960# Compiler flag to turn off builtin functions.
13961no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13962
13963# How to pass a linker flag through the compiler.
13964wl=$lt_lt_prog_compiler_wl
13965
13966# Additional compiler flags for building library objects.
13967pic_flag=$lt_lt_prog_compiler_pic
13968
13969# Compiler flag to prevent dynamic linking.
13970link_static_flag=$lt_lt_prog_compiler_static
13971
13972# Does compiler simultaneously support -c and -o options?
13973compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13974
13975# Whether or not to add -lc for building shared libraries.
13976build_libtool_need_lc=$archive_cmds_need_lc
13977
13978# Whether or not to disallow shared libs when runtime libs are static.
13979allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13980
13981# Compiler flag to allow reflexive dlopens.
13982export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13983
13984# Compiler flag to generate shared objects directly from archives.
13985whole_archive_flag_spec=$lt_whole_archive_flag_spec
13986
13987# Whether the compiler copes with passing no objects directly.
13988compiler_needs_object=$lt_compiler_needs_object
13989
13990# Create an old-style archive from a shared archive.
13991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13992
13993# Create a temporary old-style archive to link instead of a shared archive.
13994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13995
13996# Commands used to build a shared archive.
13997archive_cmds=$lt_archive_cmds
13998archive_expsym_cmds=$lt_archive_expsym_cmds
13999
14000# Commands used to build a loadable module if different from building
14001# a shared archive.
14002module_cmds=$lt_module_cmds
14003module_expsym_cmds=$lt_module_expsym_cmds
14004
14005# Whether we are building with GNU ld or not.
14006with_gnu_ld=$lt_with_gnu_ld
14007
14008# Flag that allows shared libraries with undefined symbols to be built.
14009allow_undefined_flag=$lt_allow_undefined_flag
14010
14011# Flag that enforces no undefined symbols.
14012no_undefined_flag=$lt_no_undefined_flag
14013
14014# Flag to hardcode \$libdir into a binary during linking.
14015# This must work even if \$libdir does not exist
14016hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14017
14018# If ld is used when linking, flag to hardcode \$libdir into a binary
14019# during linking. This must work even if \$libdir does not exist.
14020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14021
14022# Whether we need a single "-rpath" flag with a separated argument.
14023hardcode_libdir_separator=$lt_hardcode_libdir_separator
14024
14025# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14026# DIR into the resulting binary.
14027hardcode_direct=$hardcode_direct
14028
14029# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14030# DIR into the resulting binary and the resulting library dependency is
14031# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14032# library is relocated.
14033hardcode_direct_absolute=$hardcode_direct_absolute
14034
14035# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14036# into the resulting binary.
14037hardcode_minus_L=$hardcode_minus_L
14038
14039# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14040# into the resulting binary.
14041hardcode_shlibpath_var=$hardcode_shlibpath_var
14042
14043# Set to "yes" if building a shared library automatically hardcodes DIR
14044# into the library and all subsequent libraries and executables linked
14045# against it.
14046hardcode_automatic=$hardcode_automatic
14047
14048# Set to yes if linker adds runtime paths of dependent libraries
14049# to runtime path list.
14050inherit_rpath=$inherit_rpath
14051
14052# Whether libtool must link a program against all its dependency libraries.
14053link_all_deplibs=$link_all_deplibs
14054
14055# Fix the shell variable \$srcfile for the compiler.
14056fix_srcfile_path=$lt_fix_srcfile_path
14057
14058# Set to "yes" if exported symbols are required.
14059always_export_symbols=$always_export_symbols
14060
14061# The commands to list exported symbols.
14062export_symbols_cmds=$lt_export_symbols_cmds
14063
14064# Symbols that should not be listed in the preloaded symbols.
14065exclude_expsyms=$lt_exclude_expsyms
14066
14067# Symbols that must always be exported.
14068include_expsyms=$lt_include_expsyms
14069
14070# Commands necessary for linking programs (against libraries) with templates.
14071prelink_cmds=$lt_prelink_cmds
14072
14073# Specify filename containing input files.
14074file_list_spec=$lt_file_list_spec
14075
14076# How to hardcode a shared library path into an executable.
14077hardcode_action=$hardcode_action
14078
14079# ### END LIBTOOL CONFIG
14080
14081_LT_EOF
14082
14083 case $host_os in
14084 aix3*)
14085 cat <<\_LT_EOF >> "$cfgfile"
14086# AIX sometimes has problems with the GCC collect2 program. For some
14087# reason, if we set the COLLECT_NAMES environment variable, the problems
14088# vanish in a puff of smoke.
14089if test "X${COLLECT_NAMES+set}" != Xset; then
14090 COLLECT_NAMES=
14091 export COLLECT_NAMES
14092fi
14093_LT_EOF
14094 ;;
14095 esac
14096
14097
14098ltmain="$ac_aux_dir/ltmain.sh"
14099
14100
14101 # We use sed instead of cat because bash on DJGPP gets confused if
14102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14103 # text mode, it properly converts lines to CR/LF. This bash problem
14104 # is reportedly fixed, but why not run on old versions too?
14105 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14106 || (rm -f "$cfgfile"; exit 1)
14107
14108 case $xsi_shell in
14109 yes)
14110 cat << \_LT_EOF >> "$cfgfile"
14111
14112# func_dirname file append nondir_replacement
14113# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14114# otherwise set result to NONDIR_REPLACEMENT.
14115func_dirname ()
14116{
14117 case ${1} in
14118 */*) func_dirname_result="${1%/*}${2}" ;;
14119 * ) func_dirname_result="${3}" ;;
14120 esac
14121}
14122
14123# func_basename file
14124func_basename ()
14125{
14126 func_basename_result="${1##*/}"
14127}
14128
14129# func_dirname_and_basename file append nondir_replacement
14130# perform func_basename and func_dirname in a single function
14131# call:
14132# dirname: Compute the dirname of FILE. If nonempty,
14133# add APPEND to the result, otherwise set result
14134# to NONDIR_REPLACEMENT.
14135# value returned in "$func_dirname_result"
14136# basename: Compute filename of FILE.
14137# value retuned in "$func_basename_result"
14138# Implementation must be kept synchronized with func_dirname
14139# and func_basename. For efficiency, we do not delegate to
14140# those functions but instead duplicate the functionality here.
14141func_dirname_and_basename ()
14142{
14143 case ${1} in
14144 */*) func_dirname_result="${1%/*}${2}" ;;
14145 * ) func_dirname_result="${3}" ;;
14146 esac
14147 func_basename_result="${1##*/}"
14148}
14149
14150# func_stripname prefix suffix name
14151# strip PREFIX and SUFFIX off of NAME.
14152# PREFIX and SUFFIX must not contain globbing or regex special
14153# characters, hashes, percent signs, but SUFFIX may contain a leading
14154# dot (in which case that matches only a dot).
14155func_stripname ()
14156{
14157 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14158 # positional parameters, so assign one to ordinary parameter first.
14159 func_stripname_result=${3}
14160 func_stripname_result=${func_stripname_result#"${1}"}
14161 func_stripname_result=${func_stripname_result%"${2}"}
14162}
14163
14164# func_opt_split
14165func_opt_split ()
14166{
14167 func_opt_split_opt=${1%%=*}
14168 func_opt_split_arg=${1#*=}
14169}
14170
14171# func_lo2o object
14172func_lo2o ()
14173{
14174 case ${1} in
14175 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14176 *) func_lo2o_result=${1} ;;
14177 esac
14178}
14179
14180# func_xform libobj-or-source
14181func_xform ()
14182{
14183 func_xform_result=${1%.*}.lo
14184}
14185
14186# func_arith arithmetic-term...
14187func_arith ()
14188{
14189 func_arith_result=$(( $* ))
14190}
14191
14192# func_len string
14193# STRING may not start with a hyphen.
14194func_len ()
14195{
14196 func_len_result=${#1}
14197}
14198
14199_LT_EOF
14200 ;;
14201 *) # Bourne compatible functions.
14202 cat << \_LT_EOF >> "$cfgfile"
14203
14204# func_dirname file append nondir_replacement
14205# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14206# otherwise set result to NONDIR_REPLACEMENT.
14207func_dirname ()
14208{
14209 # Extract subdirectory from the argument.
14210 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14211 if test "X$func_dirname_result" = "X${1}"; then
14212 func_dirname_result="${3}"
14213 else
14214 func_dirname_result="$func_dirname_result${2}"
14215 fi
14216}
14217
14218# func_basename file
14219func_basename ()
14220{
14221 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14222}
14223
14224
14225# func_stripname prefix suffix name
14226# strip PREFIX and SUFFIX off of NAME.
14227# PREFIX and SUFFIX must not contain globbing or regex special
14228# characters, hashes, percent signs, but SUFFIX may contain a leading
14229# dot (in which case that matches only a dot).
14230# func_strip_suffix prefix name
14231func_stripname ()
14232{
14233 case ${2} in
14234 .*) func_stripname_result=`$ECHO "X${3}" \
14235 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14236 *) func_stripname_result=`$ECHO "X${3}" \
14237 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14238 esac
14239}
14240
14241# sed scripts:
14242my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14243my_sed_long_arg='1s/^-[^=]*=//'
14244
14245# func_opt_split
14246func_opt_split ()
14247{
14248 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14249 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14250}
14251
14252# func_lo2o object
14253func_lo2o ()
14254{
14255 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14256}
14257
14258# func_xform libobj-or-source
14259func_xform ()
14260{
14261 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14262}
14263
14264# func_arith arithmetic-term...
14265func_arith ()
14266{
14267 func_arith_result=`expr "$@"`
14268}
14269
14270# func_len string
14271# STRING may not start with a hyphen.
14272func_len ()
14273{
14274 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14275}
14276
14277_LT_EOF
14278esac
14279
14280case $lt_shell_append in
14281 yes)
14282 cat << \_LT_EOF >> "$cfgfile"
14283
14284# func_append var value
14285# Append VALUE to the end of shell variable VAR.
14286func_append ()
14287{
14288 eval "$1+=\$2"
14289}
14290_LT_EOF
14291 ;;
14292 *)
14293 cat << \_LT_EOF >> "$cfgfile"
14294
14295# func_append var value
14296# Append VALUE to the end of shell variable VAR.
14297func_append ()
14298{
14299 eval "$1=\$$1\$2"
14300}
14301
14302_LT_EOF
14303 ;;
14304 esac
14305
14306
14307 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14308 || (rm -f "$cfgfile"; exit 1)
14309
14310 mv -f "$cfgfile" "$ofile" ||
14311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14312 chmod +x "$ofile"
14313
14314 ;;
mlcreech636a9952008-05-05 22:52:56 +000014315 esac
drh866108f2008-05-13 00:57:21 +000014316done
14317_ACEOF
mlcreech94984912008-03-04 19:03:08 +000014318
drh866108f2008-05-13 00:57:21 +000014319cat >>$CONFIG_STATUS <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014320
14321{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000014322_ACEOF
drh75897232000-05-29 14:26:00 +000014323chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000014324ac_clean_files=$ac_clean_files_save
14325
a.rottmann84e63352003-03-24 09:42:16 +000014326
drh71eb93e2001-09-28 01:34:43 +000014327# configure is writing to config.log, and then calls config.status.
14328# config.status does its own redirection, appending to config.log.
14329# Unfortunately, on DOS this fails, as config.log is still kept open
14330# by configure, so config.status won't be able to write to it; its
14331# output is simply discarded. So we exec the FD to /dev/null,
14332# effectively closing config.log, so it can be properly (re)opened and
14333# appended to by config.status. When coming back to configure, we
14334# need to make the FD available again.
14335if test "$no_create" != yes; then
14336 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000014337 ac_config_status_args=
14338 test "$silent" = yes &&
14339 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000014340 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000014341 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000014342 exec 5>>config.log
14343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14344 # would make configure fail if this is the last instruction.
14345 $ac_cs_success || { (exit 1); exit 1; }
14346fi
drh613a0fe2007-11-23 17:31:17 +000014347