blob: 7d12f8c3717ef25d92369d5417774bf09aa24164 [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.
drh29362c22011-02-04 14:28:34 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.7.6.
drh75897232000-05-29 14:26:00 +00004#
drh8b727472009-01-19 18:18:40 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00009## --------------------- ##
10## M4sh Initialization. ##
drhbc7a22d2009-10-13 22:47:13 +000011## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012
drh8b727472009-01-19 18:18:40 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
a.rottmann84e63352003-03-24 09:42:16 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000021 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
a.rottmann84e63352003-03-24 09:42:16 +000080
mlcreech94984912008-03-04 19:03:08 +000081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
a.rottmann84e63352003-03-24 09:42:16 +000087
mlcreech94984912008-03-04 19:03:08 +000088
drh8b727472009-01-19 18:18:40 +000089# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
mlcreech94984912008-03-04 19:03:08 +0000120# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +0000121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
mlcreech94984912008-03-04 19:03:08 +0000124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000133
134# Required to use basename.
drh8b727472009-01-19 18:18:40 +0000135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000137 as_expr=expr
138else
139 as_expr=false
140fi
141
drh8b727472009-01-19 18:18:40 +0000142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
drh8b727472009-01-19 18:18:40 +0000150as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh8b727472009-01-19 18:18:40 +0000173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
mlcreech94984912008-03-04 19:03:08 +0000178fi
179
drh8b727472009-01-19 18:18:40 +0000180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
mlcreech94984912008-03-04 19:03:08 +0000196
drh8b727472009-01-19 18:18:40 +0000197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
mlcreech94984912008-03-04 19:03:08 +0000204
drh8b727472009-01-19 18:18:40 +0000205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
a.rottmann84e63352003-03-24 09:42:16 +0000240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +0000245 case $as_dir in
a.rottmann84e63352003-03-24 09:42:16 +0000246 /*)
drh8b727472009-01-19 18:18:40 +0000247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
drh866108f2008-05-13 00:57:21 +0000347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
drh866108f2008-05-13 00:57:21 +0000349 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +0000350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +0000447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +0000450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +0000455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +0000456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000462 sed '
drh8b727472009-01-19 18:18:40 +0000463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000467 N
drh8b727472009-01-19 18:18:40 +0000468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000470 t loop
drh8b727472009-01-19 18:18:40 +0000471 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000472 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +0000475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000481 # Exit status is that of the last command.
482 exit
483}
484
485
drh8b727472009-01-19 18:18:40 +0000486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
drh866108f2008-05-13 00:57:21 +0000491
drh8b727472009-01-19 18:18:40 +0000492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
a.rottmann84e63352003-03-24 09:42:16 +0000504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000518 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +0000529 fi
a.rottmann84e63352003-03-24 09:42:16 +0000530else
531 as_ln_s='cp -p'
532fi
drh8b727472009-01-19 18:18:40 +0000533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
a.rottmann964dbb12004-02-26 19:47:42 +0000539 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000540 as_mkdir_p=false
541fi
542
drh8b727472009-01-19 18:18:40 +0000543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +0000565
566# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000568
569# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000571
572
drh75897232000-05-29 14:26:00 +0000573
a.rottmann84e63352003-03-24 09:42:16 +0000574
drh71eb93e2001-09-28 01:34:43 +0000575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
mlcreech636a9952008-05-05 22:52:56 +0000578case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000582 ;;
583esac
584
mlcreech636a9952008-05-05 22:52:56 +0000585ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
mlcreech636a9952008-05-05 22:52:56 +0000592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
mlcreech636a9952008-05-05 22:52:56 +0000603 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000604$*
mlcreech636a9952008-05-05 22:52:56 +0000605_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000612
mlcreech636a9952008-05-05 22:52:56 +0000613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
drh71eb93e2001-09-28 01:34:43 +0000625
mlcreech636a9952008-05-05 22:52:56 +0000626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000636
mlcreech636a9952008-05-05 22:52:56 +0000637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000648 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000649
mlcreech636a9952008-05-05 22:52:56 +0000650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000665 else
mlcreech636a9952008-05-05 22:52:56 +0000666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
drh71eb93e2001-09-28 01:34:43 +0000690
mlcreech636a9952008-05-05 22:52:56 +0000691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000706 fi
mlcreech636a9952008-05-05 22:52:56 +0000707 fi
drh71eb93e2001-09-28 01:34:43 +0000708 fi
709 fi
710 fi
711fi
drh71eb93e2001-09-28 01:34:43 +0000712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000718fi
719
drh71eb93e2001-09-28 01:34:43 +0000720
drh71eb93e2001-09-28 01:34:43 +0000721
a.rottmann9bc8b932004-02-29 15:18:31 +0000722
drh8b727472009-01-19 18:18:40 +0000723exec 7<&0 </dev/null 6>&1
724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
drh71eb93e2001-09-28 01:34:43 +0000730#
731# Initializations.
732#
drh75897232000-05-29 14:26:00 +0000733ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000734ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000735ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000736LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000737cross_compiling=no
738subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000739MFLAGS=
740MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
drh29362c22011-02-04 14:28:34 +0000746PACKAGE_VERSION='3.7.6'
747PACKAGE_STRING='sqlite 3.7.6'
mlcreechb87057f2008-03-06 07:19:20 +0000748PACKAGE_BUGREPORT=''
a.rottmann84e63352003-03-24 09:42:16 +0000749
a.rottmann84e63352003-03-24 09:42:16 +0000750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000753#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000754# include <sys/types.h>
755#endif
drh8b727472009-01-19 18:18:40 +0000756#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000757# include <sys/stat.h>
758#endif
drh8b727472009-01-19 18:18:40 +0000759#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000760# include <stdlib.h>
761# include <stddef.h>
762#else
drh8b727472009-01-19 18:18:40 +0000763# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000764# include <stdlib.h>
765# endif
a.rottmann84e63352003-03-24 09:42:16 +0000766#endif
drh8b727472009-01-19 18:18:40 +0000767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000769# include <memory.h>
770# endif
771# include <string.h>
772#endif
drh8b727472009-01-19 18:18:40 +0000773#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000774# include <strings.h>
775#endif
drh8b727472009-01-19 18:18:40 +0000776#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000777# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000778#endif
drh8b727472009-01-19 18:18:40 +0000779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000783# include <unistd.h>
784#endif"
785
drh934c5442009-04-13 09:09:24 +0000786ac_subst_vars='SHELL
vapier6acb2cf2009-01-28 04:46:28 +0000787PATH_SEPARATOR
drh934c5442009-04-13 09:09:24 +0000788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848OBJDUMP
849AR
850STRIP
851RANLIB
852lt_ECHO
853DSYMUTIL
854NMEDIT
855LIPO
856OTOOL
857OTOOL64
858CPP
859INSTALL_PROGRAM
860INSTALL_SCRIPT
861INSTALL_DATA
862AWK
863TCLSH_CMD
864TCLLIBDIR
865program_prefix
866VERSION
867RELEASE
868VERSION_NUMBER
869BUILD_CC
870SQLITE_THREADSAFE
871XTHREADCONNECT
drh934c5442009-04-13 09:09:24 +0000872ALLOWRELEASE
873TEMP_STORE
874BUILD_EXEEXT
875SQLITE_OS_UNIX
876SQLITE_OS_WIN
877SQLITE_OS_OS2
878TARGET_EXEEXT
879TCL_VERSION
880TCL_BIN_DIR
881TCL_SRC_DIR
882TCL_LIBS
883TCL_INCLUDE_SPEC
884TCL_LIB_FILE
885TCL_LIB_FLAG
886TCL_LIB_SPEC
887TCL_STUB_LIB_FILE
888TCL_STUB_LIB_FLAG
889TCL_STUB_LIB_SPEC
890HAVE_TCL
891TARGET_READLINE_LIBS
892TARGET_READLINE_INC
893TARGET_HAVE_READLINE
894TARGET_DEBUG
895USE_AMALGAMATION
896OPT_FEATURE_FLAGS
897USE_GCOV
898BUILD_CFLAGS
899LIBOBJS
900LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000901ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000902ac_user_opts='
903enable_option_checking
904enable_shared
905enable_static
906with_pic
907enable_fast_install
908with_gnu_ld
909enable_libtool_lock
910enable_largefile
911with_hints
912enable_threadsafe
913enable_cross_thread_connections
drh8b727472009-01-19 18:18:40 +0000914enable_releasemode
915enable_tempstore
916enable_tcl
917with_tcl
918enable_readline
919with_readline_lib
920with_readline_inc
921enable_debug
922enable_amalgamation
923enable_load_extension
924enable_gcov
925'
926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000934CPP
935TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000936
drh75897232000-05-29 14:26:00 +0000937
938# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000939ac_init_help=
940ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000941ac_unrecognized_opts=
942ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000943# The variables have the same names as the options, with
944# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000945cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000946exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000947no_create=
drh75897232000-05-29 14:26:00 +0000948no_recursion=
949prefix=NONE
950program_prefix=NONE
951program_suffix=NONE
952program_transform_name=s,x,x,
953silent=
954site=
955srcdir=
drh75897232000-05-29 14:26:00 +0000956verbose=
957x_includes=NONE
958x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000959
960# Installation directory options.
961# These are left unexpanded so users can "make install exec_prefix=/foo"
962# and all the variables that are supposed to be based on exec_prefix
963# by default will actually change.
964# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000965# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000966bindir='${exec_prefix}/bin'
967sbindir='${exec_prefix}/sbin'
968libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000969datarootdir='${prefix}/share'
970datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000971sysconfdir='${prefix}/etc'
972sharedstatedir='${prefix}/com'
973localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000974includedir='${prefix}/include'
975oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
977infodir='${datarootdir}/info'
978htmldir='${docdir}'
979dvidir='${docdir}'
980pdfdir='${docdir}'
981psdir='${docdir}'
982libdir='${exec_prefix}/lib'
983localedir='${datarootdir}/locale'
984mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000985
drh75897232000-05-29 14:26:00 +0000986ac_prev=
drh8b727472009-01-19 18:18:40 +0000987ac_dashdash=
drh75897232000-05-29 14:26:00 +0000988for ac_option
989do
drh75897232000-05-29 14:26:00 +0000990 # If the previous option needs an argument, assign it.
991 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000992 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000993 ac_prev=
994 continue
995 fi
996
drh8b727472009-01-19 18:18:40 +0000997 case $ac_option in
998 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999 *) ac_optarg=yes ;;
1000 esac
drh75897232000-05-29 14:26:00 +00001001
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1003
drh8b727472009-01-19 18:18:40 +00001004 case $ac_dashdash$ac_option in
1005 --)
1006 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001007
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001011 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001012
1013 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001014 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001016 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001017
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001023 cache_file=$ac_optarg ;;
1024
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001027
drh8b727472009-01-19 18:18:40 +00001028 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001029 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001031 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001032
drh8b727472009-01-19 18:18:40 +00001033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1039
drh75897232000-05-29 14:26:00 +00001040 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001042 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001045 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
1056
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1061
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001066
1067 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001069 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001072 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077"enable_$ac_useropt"
1078"*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001081 esac
drh8b727472009-01-19 18:18:40 +00001082 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001083
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001091 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001092
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1096
drh71eb93e2001-09-28 01:34:43 +00001097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001103
1104 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001105 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001106 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001107 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001108
drh8b727472009-01-19 18:18:40 +00001109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1114
drh75897232000-05-29 14:26:00 +00001115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001120 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001121
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001125 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001126
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001130 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001131
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001137 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001138
drh8b727472009-01-19 18:18:40 +00001139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1143
drh75897232000-05-29 14:26:00 +00001144 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001145 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001149 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001150
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001154 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001155
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1159
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001161 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001162 no_create=yes ;;
1163
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1167
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001175 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001176
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001180 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001181
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001187 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001188
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001194 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001195
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001211 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001212
drh8b727472009-01-19 18:18:40 +00001213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1217
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1222
drh75897232000-05-29 14:26:00 +00001223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1226
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001231 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001232
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001242 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001243
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001247 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001248
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001252 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001253
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001259 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001260
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001262 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001264 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001265
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1268
drh71eb93e2001-09-28 01:34:43 +00001269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001271
1272 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001274 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001277 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"with_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001286 esac
drh8b727472009-01-19 18:18:40 +00001287 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001288
1289 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001291 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001294 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299"with_$ac_useropt"
1300"*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001315 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001322 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001323
drh8b727472009-01-19 18:18:40 +00001324 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001325Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001327 ;;
1328
drh71eb93e2001-09-28 01:34:43 +00001329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001333 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001334 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001335 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001336 export $ac_envvar ;;
1337
drh75897232000-05-29 14:26:00 +00001338 *)
drh71eb93e2001-09-28 01:34:43 +00001339 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001344 ;;
1345
1346 esac
1347done
1348
1349if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh8b727472009-01-19 18:18:40 +00001351 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001352 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001353fi
1354
drh8b727472009-01-19 18:18:40 +00001355if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
drh934c5442009-04-13 09:09:24 +00001358 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
drh8b727472009-01-19 18:18:40 +00001359 { (exit 1); exit 1; }; } ;;
drh934c5442009-04-13 09:09:24 +00001360 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001361 esac
drh8b727472009-01-19 18:18:40 +00001362fi
drh866108f2008-05-13 00:57:21 +00001363
drh8b727472009-01-19 18:18:40 +00001364# Check all directory arguments for consistency.
1365for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001369do
drh8b727472009-01-19 18:18:40 +00001370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001372 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001376 esac
drh8b727472009-01-19 18:18:40 +00001377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1383 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001384done
drh75897232000-05-29 14:26:00 +00001385
drh71eb93e2001-09-28 01:34:43 +00001386# There might be people who depend on the old broken behavior: `$host'
1387# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001388# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001389build=$build_alias
1390host=$host_alias
1391target=$target_alias
drh75897232000-05-29 14:26:00 +00001392
a.rottmann84e63352003-03-24 09:42:16 +00001393# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001394if test "x$host_alias" != x; then
1395 if test "x$build_alias" = x; then
1396 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001397 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001398 If a cross compiler is detected then cross compile mode will be used." >&2
1399 elif test "x$build_alias" != "x$host_alias"; then
1400 cross_compiling=yes
1401 fi
1402fi
1403
1404ac_tool_prefix=
1405test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406
1407test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001408
a.rottmann84e63352003-03-24 09:42:16 +00001409
drh8b727472009-01-19 18:18:40 +00001410ac_pwd=`pwd` && test -n "$ac_pwd" &&
1411ac_ls_di=`ls -di .` &&
1412ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh934c5442009-04-13 09:09:24 +00001413 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
drh8b727472009-01-19 18:18:40 +00001414 { (exit 1); exit 1; }; }
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1417 { (exit 1); exit 1; }; }
1418
1419
drh75897232000-05-29 14:26:00 +00001420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001447 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001448 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001449 srcdir=..
1450 fi
1451else
1452 ac_srcdir_defaulted=no
1453fi
drh8b727472009-01-19 18:18:40 +00001454if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001457 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001458fi
drh8b727472009-01-19 18:18:40 +00001459ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh866108f2008-05-13 00:57:21 +00001462 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001463 pwd)`
1464# When building in place, set srcdir=.
1465if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1467fi
1468# Remove unnecessary trailing slashes from srcdir.
1469# Double slashes in file names in object file debugging info
1470# mess up M-x gdb in Emacs.
1471case $srcdir in
1472*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473esac
1474for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479done
drh75897232000-05-29 14:26:00 +00001480
drh71eb93e2001-09-28 01:34:43 +00001481#
1482# Report the --help message.
1483#
1484if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001487 cat <<_ACEOF
drh29362c22011-02-04 14:28:34 +00001488\`configure' configures sqlite 3.7.6 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001489
1490Usage: $0 [OPTION]... [VAR=VALUE]...
1491
1492To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493VAR=VALUE. See below for descriptions of some of the useful variables.
1494
1495Defaults for the options are specified in brackets.
1496
1497Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507
drh71eb93e2001-09-28 01:34:43 +00001508Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001510 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001512 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001513
1514By default, \`make install' will install all the files in
1515\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517for instance \`--prefix=\$HOME'.
1518
1519For better control, use the options below.
1520
1521Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001541_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001542
a.rottmann84e63352003-03-24 09:42:16 +00001543 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001544
1545System types:
1546 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1548_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001549fi
1550
1551if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001552 case $ac_init_help in
drh29362c22011-02-04 14:28:34 +00001553 short | recursive ) echo "Configuration of sqlite 3.7.6:";;
mlcreechb87057f2008-03-06 07:19:20 +00001554 esac
a.rottmann84e63352003-03-24 09:42:16 +00001555 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001556
1557Optional Features:
drh8b727472009-01-19 18:18:40 +00001558 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001565 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001566 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001567 --enable-threadsafe Support threadsafe operation
1568 --enable-cross-thread-connections
1569 Allow connection sharing across threads
drh94e4f822006-02-15 02:00:25 +00001570 --enable-releasemode Support libtool link to release mode
1571 --enable-tempstore Use an in-ram database for temporary tables
1572 (never,no,yes,always)
1573 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001574 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001575 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001576 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001577 separately
mlcreecha4edab02008-03-06 04:14:17 +00001578 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001579 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001584 --with-pic try to use only PIC/non-PIC objects [default=use
1585 both]
mlcreech636a9952008-05-05 22:52:56 +00001586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001587 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001588 --with-tcl=DIR directory containing tcl configuration
1589 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001590 --with-readline-lib specify readline library
1591 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001592
1593Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001601 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001602 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
a.rottmann84e63352003-03-24 09:42:16 +00001607_ACEOF
drh8b727472009-01-19 18:18:40 +00001608ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
a.rottmann84e63352003-03-24 09:42:16 +00001617 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001618
drh8b727472009-01-19 18:18:40 +00001619case "$ac_dir" in
1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621*)
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629esac
1630ac_abs_top_builddir=$ac_pwd
1631ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632# for backward compatibility:
1633ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001634
a.rottmann84e63352003-03-24 09:42:16 +00001635case $srcdir in
drh8b727472009-01-19 18:18:40 +00001636 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001637 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001641 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001648esac
drh8b727472009-01-19 18:18:40 +00001649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001650
drh8b727472009-01-19 18:18:40 +00001651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001659 else
drh8b727472009-01-19 18:18:40 +00001660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001663 done
1664fi
1665
drh8b727472009-01-19 18:18:40 +00001666test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001667if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001668 cat <<\_ACEOF
drh29362c22011-02-04 14:28:34 +00001669sqlite configure 3.7.6
drh934c5442009-04-13 09:09:24 +00001670generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001671
drh8b727472009-01-19 18:18:40 +00001672Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16732002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001674This configure script is free software; the Free Software Foundation
1675gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001676_ACEOF
drh8b727472009-01-19 18:18:40 +00001677 exit
drh71eb93e2001-09-28 01:34:43 +00001678fi
drh8b727472009-01-19 18:18:40 +00001679cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
drh29362c22011-02-04 14:28:34 +00001683It was created by sqlite $as_me 3.7.6, which was
drh934c5442009-04-13 09:09:24 +00001684generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001685
1686 $ $0 $@
1687
a.rottmann84e63352003-03-24 09:42:16 +00001688_ACEOF
drh8b727472009-01-19 18:18:40 +00001689exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001690{
1691cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001692## --------- ##
1693## Platform. ##
1694## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704
1705/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001708/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001709/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712
drh71eb93e2001-09-28 01:34:43 +00001713_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00001720 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001721done
drh8b727472009-01-19 18:18:40 +00001722IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001723
drh71eb93e2001-09-28 01:34:43 +00001724} >&5
1725
a.rottmann84e63352003-03-24 09:42:16 +00001726cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001727
a.rottmann84e63352003-03-24 09:42:16 +00001728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
drh71eb93e2001-09-28 01:34:43 +00001735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001738# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001739# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001740# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001741ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001742ac_configure_args0=
1743ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001744ac_must_keep_next=false
1745for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001746do
a.rottmann84e63352003-03-24 09:42:16 +00001747 for ac_arg
1748 do
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
drh8b727472009-01-19 18:18:40 +00001754 *\'*)
1755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 2)
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001762 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001763 else
a.rottmann964dbb12004-02-26 19:47:42 +00001764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1772 ;;
1773 -* ) ac_must_keep_next=true ;;
1774 esac
a.rottmann84e63352003-03-24 09:42:16 +00001775 fi
drh8b727472009-01-19 18:18:40 +00001776 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001777 ;;
1778 esac
1779 done
drh71eb93e2001-09-28 01:34:43 +00001780done
a.rottmann84e63352003-03-24 09:42:16 +00001781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log. We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001789trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001791 {
1792 echo
1793
1794 cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001801(
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
drh934c5442009-04-13 09:09:24 +00001807 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
drh71eb93e2001-09-28 01:34:43 +00001817 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001820 sed -n \
drh8b727472009-01-19 18:18:40 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
drh866108f2008-05-13 00:57:21 +00001824 *)
drh8b727472009-01-19 18:18:40 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001826 ;;
drh8b727472009-01-19 18:18:40 +00001827 esac |
1828 sort
1829)
a.rottmann84e63352003-03-24 09:42:16 +00001830 echo
1831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
drh8b727472009-01-19 18:18:40 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
drh8b727472009-01-19 18:18:40 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001862 done | sort
1863 echo
1864 fi
1865
1866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
drh8b727472009-01-19 18:18:40 +00001873 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001879 } >&5
drh8b727472009-01-19 18:18:40 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001882 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001883' 0
drh71eb93e2001-09-28 01:34:43 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001890rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001891
a.rottmann84e63352003-03-24 09:42:16 +00001892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
drh71eb93e2001-09-28 01:34:43 +00001919# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001920# Prefer an explicitly selected file to automatically selected ones.
1921ac_site_file1=NONE
1922ac_site_file2=NONE
1923if test -n "$CONFIG_SITE"; then
1924 ac_site_file1=$CONFIG_SITE
1925elif test "x$prefix" != xNONE; then
1926 ac_site_file1=$prefix/share/config.site
1927 ac_site_file2=$prefix/etc/config.site
1928else
1929 ac_site_file1=$ac_default_prefix/share/config.site
1930 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001931fi
drh8b727472009-01-19 18:18:40 +00001932for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933do
1934 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001935 if test -r "$ac_site_file"; then
drh8b727472009-01-19 18:18:40 +00001936 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001938 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001939 . "$ac_site_file"
1940 fi
1941done
1942
1943if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
drh8b727472009-01-19 18:18:40 +00001947 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001949 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001952 esac
1953 fi
drh75897232000-05-29 14:26:00 +00001954else
drh8b727472009-01-19 18:18:40 +00001955 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001957 >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001963for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001968 case $ac_old_set,$ac_new_set in
1969 set,)
drh8b727472009-01-19 18:18:40 +00001970 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001972 ac_cache_corrupted=: ;;
1973 ,set)
drh8b727472009-01-19 18:18:40 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,);;
1978 *)
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001980 # differences in whitespace do not lead to failure.
1981 ac_old_val_w=`echo x $ac_old_val`
1982 ac_new_val_w=`echo x $ac_new_val`
1983 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1984 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1985$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1986 ac_cache_corrupted=:
1987 else
1988 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1989$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1990 eval $ac_var=\$ac_old_val
1991 fi
1992 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1993$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1994 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1995$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001996 fi;;
1997 esac
a.rottmann84e63352003-03-24 09:42:16 +00001998 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001999 if test "$ac_new_set" = set; then
2000 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002001 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002002 *) ac_arg=$ac_var=$ac_new_val ;;
2003 esac
2004 case " $ac_configure_args " in
2005 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2006 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002007 esac
2008 fi
2009done
2010if $ac_cache_corrupted; then
drh8b727472009-01-19 18:18:40 +00002011 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2012$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2013 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2014$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002015 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002016fi
2017
drh8b727472009-01-19 18:18:40 +00002018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
drh75897232000-05-29 14:26:00 +00002042ac_ext=c
drh75897232000-05-29 14:26:00 +00002043ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2046ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002047
a.rottmann84e63352003-03-24 09:42:16 +00002048
2049
drh04446102009-06-15 00:04:06 +00002050sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002051if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2052{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2053 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2054 top level VERSION file = $sqlite_version_sanity_check
2055please regen with autoconf" >&5
2056$as_echo "$as_me: error: configure script is out of date:
2057 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2058 top level VERSION file = $sqlite_version_sanity_check
2059please regen with autoconf" >&2;}
2060 { (exit 1); exit 1; }; }
2061fi
2062
drh75897232000-05-29 14:26:00 +00002063# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002064# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002065
2066#########
drh71eb93e2001-09-28 01:34:43 +00002067# Programs needed
drh75897232000-05-29 14:26:00 +00002068#
mlcreech636a9952008-05-05 22:52:56 +00002069case `pwd` in
2070 *\ * | *\ *)
drh8b727472009-01-19 18:18:40 +00002071 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2072$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002073esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002074
mlcreech94984912008-03-04 19:03:08 +00002075
mlcreech636a9952008-05-05 22:52:56 +00002076
vapier6acb2cf2009-01-28 04:46:28 +00002077macro_version='2.2.6'
2078macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002079
mlcreech94984912008-03-04 19:03:08 +00002080
mlcreech94984912008-03-04 19:03:08 +00002081
a.rottmann9bc8b932004-02-29 15:18:31 +00002082
mlcreech636a9952008-05-05 22:52:56 +00002083
2084
2085
2086
2087
2088
2089
2090
2091
2092ltmain="$ac_aux_dir/ltmain.sh"
2093
drh71eb93e2001-09-28 01:34:43 +00002094ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002095for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2096 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002097 ac_aux_dir=$ac_dir
2098 ac_install_sh="$ac_aux_dir/install-sh -c"
2099 break
drh8b727472009-01-19 18:18:40 +00002100 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install.sh -c"
2103 break
drh8b727472009-01-19 18:18:40 +00002104 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/shtool install -c"
2107 break
2108 fi
2109done
2110if test -z "$ac_aux_dir"; then
drh8b727472009-01-19 18:18:40 +00002111 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2112$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002113 { (exit 1); exit 1; }; }
2114fi
drh8b727472009-01-19 18:18:40 +00002115
2116# These three variables are undocumented and unsupported,
2117# and are intended to be withdrawn in a future Autoconf release.
2118# They can cause serious problems if a builder's source tree is in a directory
2119# whose full name contains unusual characters.
2120ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2121ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2122ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123
drh71eb93e2001-09-28 01:34:43 +00002124
2125# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002129 { (exit 1); exit 1; }; }
2130
drh8b727472009-01-19 18:18:40 +00002131{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2132$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002133if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002134 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002135else
drh8b727472009-01-19 18:18:40 +00002136 ac_build_alias=$build_alias
2137test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139test "x$ac_build_alias" = x &&
2140 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002142 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002146 { (exit 1); exit 1; }; }
2147
2148fi
drh8b727472009-01-19 18:18:40 +00002149{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150$as_echo "$ac_cv_build" >&6; }
2151case $ac_cv_build in
2152*-*-*) ;;
2153*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156esac
drh71eb93e2001-09-28 01:34:43 +00002157build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_build
2160shift
2161build_cpu=$1
2162build_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166build_os=$*
2167IFS=$ac_save_IFS
2168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002169
a.rottmann84e63352003-03-24 09:42:16 +00002170
drh8b727472009-01-19 18:18:40 +00002171{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2172$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002173if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002174 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002175else
drh8b727472009-01-19 18:18:40 +00002176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002182 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002183fi
drh71eb93e2001-09-28 01:34:43 +00002184
2185fi
drh8b727472009-01-19 18:18:40 +00002186{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187$as_echo "$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193esac
drh71eb93e2001-09-28 01:34:43 +00002194host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_host
2197shift
2198host_cpu=$1
2199host_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203host_os=$*
2204IFS=$ac_save_IFS
2205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002206
a.rottmann84e63352003-03-24 09:42:16 +00002207
drh71eb93e2001-09-28 01:34:43 +00002208ac_ext=c
2209ac_cpp='$CPP $CPPFLAGS'
2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213if test -n "$ac_tool_prefix"; then
2214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2217$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002218if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002219 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002220else
2221 if test -n "$CC"; then
2222 ac_cv_prog_CC="$CC" # Let the user override the test.
2223else
a.rottmann84e63352003-03-24 09:42:16 +00002224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh8b727472009-01-19 18:18:40 +00002232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002233 break 2
2234 fi
2235done
drh71eb93e2001-09-28 01:34:43 +00002236done
drh8b727472009-01-19 18:18:40 +00002237IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2244$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002245else
drh8b727472009-01-19 18:18:40 +00002246 { $as_echo "$as_me:$LINENO: result: no" >&5
2247$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002248fi
2249
drh8b727472009-01-19 18:18:40 +00002250
drh71eb93e2001-09-28 01:34:43 +00002251fi
2252if test -z "$ac_cv_prog_CC"; then
2253 ac_ct_CC=$CC
2254 # Extract the first word of "gcc", so it can be a program name with args.
2255set dummy gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002258if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002259 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002260else
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263else
a.rottmann84e63352003-03-24 09:42:16 +00002264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267 IFS=$as_save_IFS
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002271 ac_cv_prog_ac_ct_CC="gcc"
drh8b727472009-01-19 18:18:40 +00002272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002273 break 2
2274 fi
2275done
drh71eb93e2001-09-28 01:34:43 +00002276done
drh8b727472009-01-19 18:18:40 +00002277IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002283 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002285else
drh8b727472009-01-19 18:18:40 +00002286 { $as_echo "$as_me:$LINENO: result: no" >&5
2287$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002288fi
2289
drh8b727472009-01-19 18:18:40 +00002290 if test "x$ac_ct_CC" = x; then
2291 CC=""
2292 else
2293 case $cross_compiling:$ac_tool_warned in
2294yes:)
drh934c5442009-04-13 09:09:24 +00002295{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2296whose name does not start with the host triplet. If you think this
2297configuration is useful to you, please write to autoconf@gnu.org." >&5
2298$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2299whose name does not start with the host triplet. If you think this
2300configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002301ac_tool_warned=yes ;;
2302esac
2303 CC=$ac_ct_CC
2304 fi
drh71eb93e2001-09-28 01:34:43 +00002305else
2306 CC="$ac_cv_prog_CC"
2307fi
2308
2309if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002312set dummy ${ac_tool_prefix}cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2314$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002315if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002316 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002317else
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2320else
a.rottmann84e63352003-03-24 09:42:16 +00002321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322for as_dir in $PATH
2323do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002328 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh8b727472009-01-19 18:18:40 +00002329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002330 break 2
2331 fi
2332done
drh71eb93e2001-09-28 01:34:43 +00002333done
drh8b727472009-01-19 18:18:40 +00002334IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002335
2336fi
2337fi
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002340 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2341$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002342else
drh8b727472009-01-19 18:18:40 +00002343 { $as_echo "$as_me:$LINENO: result: no" >&5
2344$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002345fi
2346
drh8b727472009-01-19 18:18:40 +00002347
a.rottmann84e63352003-03-24 09:42:16 +00002348 fi
drh71eb93e2001-09-28 01:34:43 +00002349fi
2350if test -z "$CC"; then
2351 # Extract the first word of "cc", so it can be a program name with args.
2352set dummy cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2354$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002355if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002356 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002357else
2358 if test -n "$CC"; then
2359 ac_cv_prog_CC="$CC" # Let the user override the test.
2360else
2361 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002369 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370 ac_prog_rejected=yes
2371 continue
2372 fi
2373 ac_cv_prog_CC="cc"
drh8b727472009-01-19 18:18:40 +00002374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002375 break 2
2376 fi
2377done
drh71eb93e2001-09-28 01:34:43 +00002378done
drh8b727472009-01-19 18:18:40 +00002379IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002380
2381if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2384 shift
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2389 shift
a.rottmann84e63352003-03-24 09:42:16 +00002390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002391 fi
2392fi
2393fi
2394fi
2395CC=$ac_cv_prog_CC
2396if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002397 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002399else
drh8b727472009-01-19 18:18:40 +00002400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002402fi
2403
drh8b727472009-01-19 18:18:40 +00002404
drh71eb93e2001-09-28 01:34:43 +00002405fi
2406if test -z "$CC"; then
2407 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002408 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002409 do
2410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2411set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002414if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002415 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002416else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419else
a.rottmann84e63352003-03-24 09:42:16 +00002420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00002428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002429 break 2
2430 fi
2431done
drh71eb93e2001-09-28 01:34:43 +00002432done
drh8b727472009-01-19 18:18:40 +00002433IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002434
2435fi
2436fi
2437CC=$ac_cv_prog_CC
2438if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002439 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2440$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002441else
drh8b727472009-01-19 18:18:40 +00002442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002444fi
2445
drh8b727472009-01-19 18:18:40 +00002446
drh71eb93e2001-09-28 01:34:43 +00002447 test -n "$CC" && break
2448 done
2449fi
2450if test -z "$CC"; then
2451 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002452 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002453do
2454 # Extract the first word of "$ac_prog", so it can be a program name with args.
2455set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002459 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002460else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
a.rottmann84e63352003-03-24 09:42:16 +00002464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a.rottmann84e63352003-03-24 09:42:16 +00002471 ac_cv_prog_ac_ct_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +00002472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002473 break 2
2474 fi
2475done
drh71eb93e2001-09-28 01:34:43 +00002476done
drh8b727472009-01-19 18:18:40 +00002477IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002483 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002485else
drh8b727472009-01-19 18:18:40 +00002486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002488fi
2489
drh8b727472009-01-19 18:18:40 +00002490
drh71eb93e2001-09-28 01:34:43 +00002491 test -n "$ac_ct_CC" && break
2492done
2493
drh8b727472009-01-19 18:18:40 +00002494 if test "x$ac_ct_CC" = x; then
2495 CC=""
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498yes:)
drh934c5442009-04-13 09:09:24 +00002499{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet. If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&5
2502$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2503whose name does not start with the host triplet. If you think this
2504configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002505ac_tool_warned=yes ;;
2506esac
2507 CC=$ac_ct_CC
2508 fi
drh71eb93e2001-09-28 01:34:43 +00002509fi
2510
2511fi
2512
a.rottmann84e63352003-03-24 09:42:16 +00002513
drh934c5442009-04-13 09:09:24 +00002514test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002515See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002516$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
a.rottmann84e63352003-03-24 09:42:16 +00002517See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002518 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002519
2520# Provide some information about the compiler.
drh8b727472009-01-19 18:18:40 +00002521$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2522set X $ac_compile
2523ac_compiler=$2
2524{ (ac_try="$ac_compiler --version >&5"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2530$as_echo "$ac_try_echo") >&5
2531 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002532 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002534 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002535{ (ac_try="$ac_compiler -v >&5"
2536case "(($ac_try" in
2537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538 *) ac_try_echo=$ac_try;;
2539esac
2540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2541$as_echo "$ac_try_echo") >&5
2542 (eval "$ac_compiler -v >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002543 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002545 (exit $ac_status); }
drh8b727472009-01-19 18:18:40 +00002546{ (ac_try="$ac_compiler -V >&5"
2547case "(($ac_try" in
2548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549 *) ac_try_echo=$ac_try;;
2550esac
2551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2552$as_echo "$ac_try_echo") >&5
2553 (eval "$ac_compiler -V >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002554 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002556 (exit $ac_status); }
2557
2558cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002559/* confdefs.h. */
2560_ACEOF
2561cat confdefs.h >>conftest.$ac_ext
2562cat >>conftest.$ac_ext <<_ACEOF
2563/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002564
2565int
2566main ()
2567{
2568
2569 ;
2570 return 0;
2571}
2572_ACEOF
2573ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002574ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002575# Try to create an executable without -o first, disregard a.out.
2576# It will help us diagnose broken compilers, and finding out an intuition
2577# of exeext.
drh8b727472009-01-19 18:18:40 +00002578{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2579$as_echo_n "checking for C compiler default output file name... " >&6; }
2580ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002581
drh8b727472009-01-19 18:18:40 +00002582# The possible output files:
2583ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2584
2585ac_rmfiles=
2586for ac_file in $ac_files
2587do
2588 case $ac_file in
2589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2591 esac
2592done
2593rm -f $ac_rmfiles
2594
2595if { (ac_try="$ac_link_default"
2596case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2599esac
2600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2601$as_echo "$ac_try_echo") >&5
2602 (eval "$ac_link_default") 2>&5
2603 ac_status=$?
2604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2607# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2608# in a Makefile. We should not override ac_cv_exeext if it was cached,
2609# so that the user can short-circuit this test for compilers unknown to
2610# Autoconf.
2611for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002612do
2613 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002614 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002616 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002617 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002618 # We found the default executable, but exeext='' is most
2619 # certainly right.
2620 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002621 *.* )
drh8b727472009-01-19 18:18:40 +00002622 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2623 then :; else
2624 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625 fi
2626 # We set ac_cv_exeext here because the later test for it is not
2627 # safe: cross compilers may not add the suffix if given an `-o'
2628 # argument, so we may need to know it at that point already.
2629 # Even if this section looks crufty: it has the advantage of
2630 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002631 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002632 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002633 break;;
drh71eb93e2001-09-28 01:34:43 +00002634 esac
2635done
drh8b727472009-01-19 18:18:40 +00002636test "$ac_cv_exeext" = no && ac_cv_exeext=
2637
drh71eb93e2001-09-28 01:34:43 +00002638else
drh8b727472009-01-19 18:18:40 +00002639 ac_file=''
2640fi
2641
2642{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2643$as_echo "$ac_file" >&6; }
2644if test -z "$ac_file"; then
2645 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002646sed 's/^/| /' conftest.$ac_ext >&5
2647
drh8b727472009-01-19 18:18:40 +00002648{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002649See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002650$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002651See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002652 { (exit 77); exit 77; }; }
drh71eb93e2001-09-28 01:34:43 +00002653fi
2654
2655ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002656
drh8b727472009-01-19 18:18:40 +00002657# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002658# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002659{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2660$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002661# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2662# If not cross compiling, check that we can run a simple program.
2663if test "$cross_compiling" != yes; then
2664 if { ac_try='./$ac_file'
drh8b727472009-01-19 18:18:40 +00002665 { (case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670$as_echo "$ac_try_echo") >&5
2671 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002672 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002674 (exit $ac_status); }; }; then
2675 cross_compiling=no
2676 else
2677 if test "$cross_compiling" = maybe; then
2678 cross_compiling=yes
2679 else
drh934c5442009-04-13 09:09:24 +00002680 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002681If you meant to cross compile, use \`--host'.
2682See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002683$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002684If you meant to cross compile, use \`--host'.
2685See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002686 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002687 fi
2688 fi
2689fi
drh8b727472009-01-19 18:18:40 +00002690{ $as_echo "$as_me:$LINENO: result: yes" >&5
2691$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002692
drh8b727472009-01-19 18:18:40 +00002693rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002694ac_clean_files=$ac_clean_files_save
drh8b727472009-01-19 18:18:40 +00002695# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002696# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002697{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698$as_echo_n "checking whether we are cross compiling... " >&6; }
2699{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002701
drh8b727472009-01-19 18:18:40 +00002702{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703$as_echo_n "checking for suffix of executables... " >&6; }
2704if { (ac_try="$ac_link"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2710$as_echo "$ac_try_echo") >&5
2711 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002712 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002714 (exit $ac_status); }; then
2715 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2716# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2717# work properly (i.e., refer to `conftest.exe'), while it won't with
2718# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002719for ac_file in conftest.exe conftest conftest.*; do
2720 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002721 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002723 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002724 break;;
drh71eb93e2001-09-28 01:34:43 +00002725 * ) break;;
2726 esac
2727done
2728else
drh934c5442009-04-13 09:09:24 +00002729 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002730See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002731$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002732See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002733 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002734fi
2735
2736rm -f conftest$ac_cv_exeext
drh8b727472009-01-19 18:18:40 +00002737{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2738$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002739
2740rm -f conftest.$ac_ext
2741EXEEXT=$ac_cv_exeext
2742ac_exeext=$EXEEXT
drh8b727472009-01-19 18:18:40 +00002743{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2744$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002745if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002746 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002747else
2748 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002754
2755int
2756main ()
2757{
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.o conftest.obj
drh8b727472009-01-19 18:18:40 +00002764if { (ac_try="$ac_compile"
2765case "(($ac_try" in
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2768esac
2769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770$as_echo "$ac_try_echo") >&5
2771 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002772 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002774 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002775 for ac_file in conftest.o conftest.obj conftest.*; do
2776 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002777 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2780 break;;
2781 esac
2782done
2783else
drh8b727472009-01-19 18:18:40 +00002784 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002785sed 's/^/| /' conftest.$ac_ext >&5
2786
drh8b727472009-01-19 18:18:40 +00002787{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002788See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002789$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002790See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00002791 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002792fi
2793
2794rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795fi
drh8b727472009-01-19 18:18:40 +00002796{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2797$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002798OBJEXT=$ac_cv_objext
2799ac_objext=$OBJEXT
drh8b727472009-01-19 18:18:40 +00002800{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2801$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002802if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002803 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002804else
2805 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002806/* confdefs.h. */
2807_ACEOF
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002811
2812int
2813main ()
2814{
2815#ifndef __GNUC__
2816 choke me
2817#endif
2818
2819 ;
2820 return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002824if { (ac_try="$ac_compile"
2825case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2828esac
2829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2830$as_echo "$ac_try_echo") >&5
2831 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002832 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002833 grep -v '^ *+' conftest.er1 >conftest.err
2834 rm -f conftest.er1
2835 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } && {
2838 test -z "$ac_c_werror_flag" ||
2839 test ! -s conftest.err
2840 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002841 ac_compiler_gnu=yes
2842else
drh8b727472009-01-19 18:18:40 +00002843 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002844sed 's/^/| /' conftest.$ac_ext >&5
2845
drh8b727472009-01-19 18:18:40 +00002846 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002847fi
drh8b727472009-01-19 18:18:40 +00002848
2849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002850ac_cv_c_compiler_gnu=$ac_compiler_gnu
2851
2852fi
drh8b727472009-01-19 18:18:40 +00002853{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2854$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2855if test $ac_compiler_gnu = yes; then
2856 GCC=yes
2857else
2858 GCC=
2859fi
drh71eb93e2001-09-28 01:34:43 +00002860ac_test_CFLAGS=${CFLAGS+set}
2861ac_save_CFLAGS=$CFLAGS
drh8b727472009-01-19 18:18:40 +00002862{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2863$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002864if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002865 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002866else
drh8b727472009-01-19 18:18:40 +00002867 ac_save_c_werror_flag=$ac_c_werror_flag
2868 ac_c_werror_flag=yes
2869 ac_cv_prog_cc_g=no
2870 CFLAGS="-g"
2871 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002872/* confdefs.h. */
2873_ACEOF
2874cat confdefs.h >>conftest.$ac_ext
2875cat >>conftest.$ac_ext <<_ACEOF
2876/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002877
2878int
2879main ()
2880{
2881
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893$as_echo "$ac_try_echo") >&5
2894 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002895 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002896 grep -v '^ *+' conftest.er1 >conftest.err
2897 rm -f conftest.er1
2898 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002904 ac_cv_prog_cc_g=yes
2905else
drh8b727472009-01-19 18:18:40 +00002906 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002907sed 's/^/| /' conftest.$ac_ext >&5
2908
drh8b727472009-01-19 18:18:40 +00002909 CFLAGS=""
2910 cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h. */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h. */
2916
2917int
2918main ()
2919{
2920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (ac_try="$ac_compile"
2927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
2931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932$as_echo "$ac_try_echo") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 :
2944else
2945 $as_echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 ac_c_werror_flag=$ac_save_c_werror_flag
2949 CFLAGS="-g"
2950 cat >conftest.$ac_ext <<_ACEOF
2951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
2956
2957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972$as_echo "$ac_try_echo") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && {
2980 test -z "$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 } && test -s conftest.$ac_objext; then
2983 ac_cv_prog_cc_g=yes
2984else
2985 $as_echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988
drh71eb93e2001-09-28 01:34:43 +00002989fi
drh8b727472009-01-19 18:18:40 +00002990
2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002992fi
drh8b727472009-01-19 18:18:40 +00002993
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995fi
2996
2997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_c_werror_flag=$ac_save_c_werror_flag
2999fi
3000{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3001$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003002if test "$ac_test_CFLAGS" = set; then
3003 CFLAGS=$ac_save_CFLAGS
3004elif test $ac_cv_prog_cc_g = yes; then
3005 if test "$GCC" = yes; then
3006 CFLAGS="-g -O2"
3007 else
3008 CFLAGS="-g"
3009 fi
3010else
3011 if test "$GCC" = yes; then
3012 CFLAGS="-O2"
3013 else
3014 CFLAGS=
3015 fi
3016fi
drh8b727472009-01-19 18:18:40 +00003017{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3018$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3019if test "${ac_cv_prog_cc_c89+set}" = set; then
3020 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003021else
drh8b727472009-01-19 18:18:40 +00003022 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003023ac_save_CC=$CC
3024cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
3030#include <stdarg.h>
3031#include <stdio.h>
3032#include <sys/types.h>
3033#include <sys/stat.h>
3034/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3035struct buf { int x; };
3036FILE * (*rcsopen) (struct buf *, struct stat *, int);
3037static char *e (p, i)
3038 char **p;
3039 int i;
3040{
3041 return p[i];
3042}
3043static char *f (char * (*g) (char **, int), char **p, ...)
3044{
3045 char *s;
3046 va_list v;
3047 va_start (v,p);
3048 s = g (p, va_arg (v,int));
3049 va_end (v);
3050 return s;
3051}
a.rottmann964dbb12004-02-26 19:47:42 +00003052
3053/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3054 function prototypes and stuff, but not '\xHH' hex character constants.
3055 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003056 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3058 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003059 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003060int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3061
drh8b727472009-01-19 18:18:40 +00003062/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3063 inside strings and character constants. */
3064#define FOO(x) 'x'
3065int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3066
a.rottmann84e63352003-03-24 09:42:16 +00003067int test (int i, double x);
3068struct s1 {int (*f) (int a);};
3069struct s2 {int (*f) (double a);};
3070int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3071int argc;
3072char **argv;
3073int
3074main ()
3075{
3076return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3077 ;
3078 return 0;
3079}
3080_ACEOF
drh8b727472009-01-19 18:18:40 +00003081for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3082 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003083do
3084 CC="$ac_save_CC $ac_arg"
3085 rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00003086if { (ac_try="$ac_compile"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092$as_echo "$ac_try_echo") >&5
3093 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003094 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003104else
drh8b727472009-01-19 18:18:40 +00003105 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003106sed 's/^/| /' conftest.$ac_ext >&5
3107
drh8b727472009-01-19 18:18:40 +00003108
a.rottmann84e63352003-03-24 09:42:16 +00003109fi
drh8b727472009-01-19 18:18:40 +00003110
3111rm -f core conftest.err conftest.$ac_objext
3112 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003113done
drh8b727472009-01-19 18:18:40 +00003114rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003115CC=$ac_save_CC
3116
3117fi
drh8b727472009-01-19 18:18:40 +00003118# AC_CACHE_VAL
3119case "x$ac_cv_prog_cc_c89" in
3120 x)
3121 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3122$as_echo "none needed" >&6; } ;;
3123 xno)
3124 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3125$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003126 *)
drh8b727472009-01-19 18:18:40 +00003127 CC="$CC $ac_cv_prog_cc_c89"
3128 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3129$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003130esac
3131
a.rottmann84e63352003-03-24 09:42:16 +00003132
drh71eb93e2001-09-28 01:34:43 +00003133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
drh8b727472009-01-19 18:18:40 +00003139{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3140$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3141if test "${ac_cv_path_SED+set}" = set; then
3142 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003143else
drh8b727472009-01-19 18:18:40 +00003144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3145 for ac_i in 1 2 3 4 5 6 7; do
3146 ac_script="$ac_script$as_nl$ac_script"
3147 done
3148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3149 $as_unset ac_script || ac_script=
3150 if test -z "$SED"; then
3151 ac_path_SED_found=false
3152 # Loop through the user's path and test for each of PROGNAME-LIST
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00003158 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003159 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003160 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3161 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3162# Check for GNU ac_path_SED and select it if it is found.
3163 # Check for GNU $ac_path_SED
3164case `"$ac_path_SED" --version 2>&1` in
3165*GNU*)
3166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3167*)
3168 ac_count=0
3169 $as_echo_n 0123456789 >"conftest.in"
3170 while :
3171 do
3172 cat "conftest.in" "conftest.in" >"conftest.tmp"
3173 mv "conftest.tmp" "conftest.in"
3174 cp "conftest.in" "conftest.nl"
3175 $as_echo '' >> "conftest.nl"
3176 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3178 ac_count=`expr $ac_count + 1`
3179 if test $ac_count -gt ${ac_path_SED_max-0}; then
3180 # Best one so far, save it but keep looking for a better one
3181 ac_cv_path_SED="$ac_path_SED"
3182 ac_path_SED_max=$ac_count
3183 fi
3184 # 10*(2^10) chars as input seems more than enough
3185 test $ac_count -gt 10 && break
3186 done
3187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3188esac
3189
3190 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003191 done
3192 done
3193done
mlcreech636a9952008-05-05 22:52:56 +00003194IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003195 if test -z "$ac_cv_path_SED"; then
3196 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3197$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3198 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003199 fi
drh8b727472009-01-19 18:18:40 +00003200else
3201 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003202fi
drh866108f2008-05-13 00:57:21 +00003203
drh8b727472009-01-19 18:18:40 +00003204fi
3205{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3206$as_echo "$ac_cv_path_SED" >&6; }
3207 SED="$ac_cv_path_SED"
3208 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003209
mlcreech636a9952008-05-05 22:52:56 +00003210test -z "$SED" && SED=sed
3211Xsed="$SED -e 1s/^X//"
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
drh8b727472009-01-19 18:18:40 +00003223{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3224$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3225if test "${ac_cv_path_GREP+set}" = set; then
3226 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003227else
drh8b727472009-01-19 18:18:40 +00003228 if test -z "$GREP"; then
3229 ac_path_GREP_found=false
3230 # Loop through the user's path and test for each of PROGNAME-LIST
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_prog in grep ggrep; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3239 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3240# Check for GNU ac_path_GREP and select it if it is found.
3241 # Check for GNU $ac_path_GREP
3242case `"$ac_path_GREP" --version 2>&1` in
3243*GNU*)
3244 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3245*)
3246 ac_count=0
3247 $as_echo_n 0123456789 >"conftest.in"
3248 while :
3249 do
3250 cat "conftest.in" "conftest.in" >"conftest.tmp"
3251 mv "conftest.tmp" "conftest.in"
3252 cp "conftest.in" "conftest.nl"
3253 $as_echo 'GREP' >> "conftest.nl"
3254 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256 ac_count=`expr $ac_count + 1`
3257 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3258 # Best one so far, save it but keep looking for a better one
3259 ac_cv_path_GREP="$ac_path_GREP"
3260 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003261 fi
drh8b727472009-01-19 18:18:40 +00003262 # 10*(2^10) chars as input seems more than enough
3263 test $ac_count -gt 10 && break
3264 done
3265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3266esac
3267
3268 $ac_path_GREP_found && break 3
3269 done
3270 done
3271done
3272IFS=$as_save_IFS
3273 if test -z "$ac_cv_path_GREP"; then
3274 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3275$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3276 { (exit 1); exit 1; }; }
3277 fi
3278else
3279 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003280fi
drh8b727472009-01-19 18:18:40 +00003281
3282fi
3283{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3284$as_echo "$ac_cv_path_GREP" >&6; }
3285 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003286
3287
drh8b727472009-01-19 18:18:40 +00003288{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3289$as_echo_n "checking for egrep... " >&6; }
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003292else
drh8b727472009-01-19 18:18:40 +00003293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3294 then ac_cv_path_EGREP="$GREP -E"
3295 else
3296 if test -z "$EGREP"; then
3297 ac_path_EGREP_found=false
3298 # Loop through the user's path and test for each of PROGNAME-LIST
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_prog in egrep; do
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3307 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3308# Check for GNU ac_path_EGREP and select it if it is found.
3309 # Check for GNU $ac_path_EGREP
3310case `"$ac_path_EGREP" --version 2>&1` in
3311*GNU*)
3312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3313*)
3314 ac_count=0
3315 $as_echo_n 0123456789 >"conftest.in"
3316 while :
3317 do
3318 cat "conftest.in" "conftest.in" >"conftest.tmp"
3319 mv "conftest.tmp" "conftest.in"
3320 cp "conftest.in" "conftest.nl"
3321 $as_echo 'EGREP' >> "conftest.nl"
3322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3324 ac_count=`expr $ac_count + 1`
3325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3326 # Best one so far, save it but keep looking for a better one
3327 ac_cv_path_EGREP="$ac_path_EGREP"
3328 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003329 fi
drh8b727472009-01-19 18:18:40 +00003330 # 10*(2^10) chars as input seems more than enough
3331 test $ac_count -gt 10 && break
3332 done
3333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3334esac
3335
3336 $ac_path_EGREP_found && break 3
3337 done
3338 done
3339done
3340IFS=$as_save_IFS
3341 if test -z "$ac_cv_path_EGREP"; then
3342 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3343$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3344 { (exit 1); exit 1; }; }
3345 fi
3346else
3347 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003348fi
drh8b727472009-01-19 18:18:40 +00003349
3350 fi
3351fi
3352{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3353$as_echo "$ac_cv_path_EGREP" >&6; }
3354 EGREP="$ac_cv_path_EGREP"
3355
3356
3357{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3358$as_echo_n "checking for fgrep... " >&6; }
3359if test "${ac_cv_path_FGREP+set}" = set; then
3360 $as_echo_n "(cached) " >&6
3361else
3362 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3363 then ac_cv_path_FGREP="$GREP -F"
3364 else
3365 if test -z "$FGREP"; then
3366 ac_path_FGREP_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_prog in fgrep; do
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3376 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3377# Check for GNU ac_path_FGREP and select it if it is found.
3378 # Check for GNU $ac_path_FGREP
3379case `"$ac_path_FGREP" --version 2>&1` in
3380*GNU*)
3381 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3382*)
3383 ac_count=0
3384 $as_echo_n 0123456789 >"conftest.in"
3385 while :
3386 do
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 $as_echo 'FGREP' >> "conftest.nl"
3391 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3393 ac_count=`expr $ac_count + 1`
3394 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_FGREP="$ac_path_FGREP"
3397 ac_path_FGREP_max=$ac_count
3398 fi
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3401 done
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403esac
3404
3405 $ac_path_FGREP_found && break 3
3406 done
3407 done
3408done
3409IFS=$as_save_IFS
3410 if test -z "$ac_cv_path_FGREP"; then
3411 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3412$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3413 { (exit 1); exit 1; }; }
3414 fi
3415else
3416 ac_cv_path_FGREP=$FGREP
3417fi
3418
3419 fi
3420fi
3421{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3422$as_echo "$ac_cv_path_FGREP" >&6; }
3423 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003424
3425
3426test -z "$GREP" && GREP=grep
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
a.rottmann9bc8b932004-02-29 15:18:31 +00003443
3444
a.rottmann84e63352003-03-24 09:42:16 +00003445
drh8b727472009-01-19 18:18:40 +00003446# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003447if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003448 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003449else
3450 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003451fi
3452
drh71eb93e2001-09-28 01:34:43 +00003453ac_prog=ld
3454if test "$GCC" = yes; then
3455 # Check if gcc -print-prog-name=ld gives a path.
drh8b727472009-01-19 18:18:40 +00003456 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3457$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003458 case $host in
3459 *-*-mingw*)
3460 # gcc leaves a trailing carriage return which upsets mingw
3461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3462 *)
3463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3464 esac
3465 case $ac_prog in
3466 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003467 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003468 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003469 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003473 done
3474 test -z "$LD" && LD="$ac_prog"
3475 ;;
3476 "")
3477 # If it fails, then pretend we aren't using GCC.
3478 ac_prog=ld
3479 ;;
3480 *)
3481 # If it is relative, then search for the first ld in PATH.
3482 with_gnu_ld=unknown
3483 ;;
3484 esac
3485elif test "$with_gnu_ld" = yes; then
drh8b727472009-01-19 18:18:40 +00003486 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3487$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003488else
drh8b727472009-01-19 18:18:40 +00003489 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3490$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003491fi
3492if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003493 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003494else
3495 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003497 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003498 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003499 test -z "$ac_dir" && ac_dir=.
3500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3501 lt_cv_path_LD="$ac_dir/$ac_prog"
3502 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003503 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003504 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3506 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003507 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003508 ;;
3509 *)
drh71eb93e2001-09-28 01:34:43 +00003510 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003511 ;;
3512 esac
drh71eb93e2001-09-28 01:34:43 +00003513 fi
3514 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003515 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003516else
3517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3518fi
3519fi
3520
3521LD="$lt_cv_path_LD"
3522if test -n "$LD"; then
drh8b727472009-01-19 18:18:40 +00003523 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3524$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003525else
drh8b727472009-01-19 18:18:40 +00003526 { $as_echo "$as_me:$LINENO: result: no" >&5
3527$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003528fi
drh8b727472009-01-19 18:18:40 +00003529test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3530$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003531 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003532{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3533$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003534if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003535 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003536else
vapier7f19c022007-02-17 14:46:31 +00003537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003538case `$LD -v 2>&1 </dev/null` in
3539*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003540 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003541 ;;
3542*)
drh71eb93e2001-09-28 01:34:43 +00003543 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003544 ;;
3545esac
drh71eb93e2001-09-28 01:34:43 +00003546fi
drh8b727472009-01-19 18:18:40 +00003547{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3548$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003549with_gnu_ld=$lt_cv_prog_gnu_ld
3550
a.rottmann84e63352003-03-24 09:42:16 +00003551
drh71eb93e2001-09-28 01:34:43 +00003552
mlcreech636a9952008-05-05 22:52:56 +00003553
3554
3555
3556
3557
3558
drh8b727472009-01-19 18:18:40 +00003559{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3560$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003561if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003562 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003563else
3564 if test -n "$NM"; then
3565 # Let the user override the test.
3566 lt_cv_path_NM="$NM"
3567else
vapier7f19c022007-02-17 14:46:31 +00003568 lt_nm_to_check="${ac_tool_prefix}nm"
3569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3570 lt_nm_to_check="$lt_nm_to_check nm"
3571 fi
3572 for lt_tmp_nm in $lt_nm_to_check; do
3573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3575 IFS="$lt_save_ifs"
3576 test -z "$ac_dir" && ac_dir=.
3577 tmp_nm="$ac_dir/$lt_tmp_nm"
3578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3579 # Check to see if the nm accepts a BSD-compat flag.
3580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3581 # nm: unknown option "B" ignored
3582 # Tru64's nm complains that /dev/null is an invalid object file
3583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3584 */dev/null* | *'Invalid file or object type'*)
3585 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003586 break
3587 ;;
3588 *)
vapier7f19c022007-02-17 14:46:31 +00003589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3590 */dev/null*)
3591 lt_cv_path_NM="$tmp_nm -p"
3592 break
3593 ;;
3594 *)
3595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3596 continue # so that we can try to find one that supports BSD flags
3597 ;;
3598 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003599 ;;
3600 esac
vapier7f19c022007-02-17 14:46:31 +00003601 fi
3602 done
3603 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003604 done
mlcreech636a9952008-05-05 22:52:56 +00003605 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003606fi
3607fi
drh8b727472009-01-19 18:18:40 +00003608{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3609$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003610if test "$lt_cv_path_NM" != "no"; then
3611 NM="$lt_cv_path_NM"
3612else
3613 # Didn't find any BSD compatible name lister, look for dumpbin.
3614 if test -n "$ac_tool_prefix"; then
3615 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3616 do
3617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3620$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003621if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003622 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003623else
3624 if test -n "$DUMPBIN"; then
3625 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3626else
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003634 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00003635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003636 break 2
3637 fi
3638done
3639done
drh8b727472009-01-19 18:18:40 +00003640IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003641
mlcreech636a9952008-05-05 22:52:56 +00003642fi
3643fi
3644DUMPBIN=$ac_cv_prog_DUMPBIN
3645if test -n "$DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003646 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3647$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003648else
drh8b727472009-01-19 18:18:40 +00003649 { $as_echo "$as_me:$LINENO: result: no" >&5
3650$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003651fi
3652
drh8b727472009-01-19 18:18:40 +00003653
mlcreech636a9952008-05-05 22:52:56 +00003654 test -n "$DUMPBIN" && break
3655 done
3656fi
3657if test -z "$DUMPBIN"; then
3658 ac_ct_DUMPBIN=$DUMPBIN
3659 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3660do
3661 # Extract the first word of "$ac_prog", so it can be a program name with args.
3662set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003665if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003666 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003667else
3668 if test -n "$ac_ct_DUMPBIN"; then
3669 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00003678 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh8b727472009-01-19 18:18:40 +00003679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003680 break 2
3681 fi
3682done
3683done
drh8b727472009-01-19 18:18:40 +00003684IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003685
3686fi
3687fi
3688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3689if test -n "$ac_ct_DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003690 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3691$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003692else
drh8b727472009-01-19 18:18:40 +00003693 { $as_echo "$as_me:$LINENO: result: no" >&5
3694$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003695fi
3696
drh8b727472009-01-19 18:18:40 +00003697
mlcreech636a9952008-05-05 22:52:56 +00003698 test -n "$ac_ct_DUMPBIN" && break
3699done
3700
drh8b727472009-01-19 18:18:40 +00003701 if test "x$ac_ct_DUMPBIN" = x; then
3702 DUMPBIN=":"
3703 else
3704 case $cross_compiling:$ac_tool_warned in
3705yes:)
drh934c5442009-04-13 09:09:24 +00003706{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3707whose name does not start with the host triplet. If you think this
3708configuration is useful to you, please write to autoconf@gnu.org." >&5
3709$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3710whose name does not start with the host triplet. If you think this
3711configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003712ac_tool_warned=yes ;;
3713esac
3714 DUMPBIN=$ac_ct_DUMPBIN
3715 fi
mlcreech636a9952008-05-05 22:52:56 +00003716fi
3717
3718
3719 if test "$DUMPBIN" != ":"; then
3720 NM="$DUMPBIN"
3721 fi
3722fi
3723test -z "$NM" && NM=nm
3724
3725
3726
3727
3728
3729
drh8b727472009-01-19 18:18:40 +00003730{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3731$as_echo_n "checking the name lister ($NM) interface... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003732if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003733 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003734else
3735 lt_cv_nm_interface="BSD nm"
3736 echo "int some_variable = 0;" > conftest.$ac_ext
drh697e9652010-12-21 00:20:53 +00003737 (eval echo "\"\$as_me:3737: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003738 (eval "$ac_compile" 2>conftest.err)
3739 cat conftest.err >&5
drh697e9652010-12-21 00:20:53 +00003740 (eval echo "\"\$as_me:3740: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003741 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3742 cat conftest.err >&5
drh697e9652010-12-21 00:20:53 +00003743 (eval echo "\"\$as_me:3743: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003744 cat conftest.out >&5
3745 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3746 lt_cv_nm_interface="MS dumpbin"
3747 fi
3748 rm -f conftest*
3749fi
drh8b727472009-01-19 18:18:40 +00003750{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3751$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003752
drh8b727472009-01-19 18:18:40 +00003753{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3754$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003755LN_S=$as_ln_s
3756if test "$LN_S" = "ln -s"; then
drh8b727472009-01-19 18:18:40 +00003757 { $as_echo "$as_me:$LINENO: result: yes" >&5
3758$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003759else
drh8b727472009-01-19 18:18:40 +00003760 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3761$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003762fi
3763
mlcreech636a9952008-05-05 22:52:56 +00003764# find the maximum length of command line arguments
drh8b727472009-01-19 18:18:40 +00003765{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3766$as_echo_n "checking the maximum length of command line arguments... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003767if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003768 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003769else
3770 i=0
3771 teststring="ABCD"
3772
3773 case $build_os in
3774 msdosdjgpp*)
3775 # On DJGPP, this test can blow up pretty badly due to problems in libc
3776 # (any single argument exceeding 2000 bytes causes a buffer overrun
3777 # during glob expansion). Even if it were fixed, the result of this
3778 # check would be larger than it should be.
3779 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3780 ;;
3781
3782 gnu*)
3783 # Under GNU Hurd, this test is not required because there is
3784 # no limit to the length of command line arguments.
3785 # Libtool will interpret -1 as no limit whatsoever
3786 lt_cv_sys_max_cmd_len=-1;
3787 ;;
3788
vapier6acb2cf2009-01-28 04:46:28 +00003789 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003790 # On Win9x/ME, this test blows up -- it succeeds, but takes
3791 # about 5 minutes as the teststring grows exponentially.
3792 # Worse, since 9x/ME are not pre-emptively multitasking,
3793 # you end up with a "frozen" computer, even though with patience
3794 # the test eventually succeeds (with a max line length of 256k).
3795 # Instead, let's just punt: use the minimum linelength reported by
3796 # all of the supported platforms: 8192 (on NT/2K/XP).
3797 lt_cv_sys_max_cmd_len=8192;
3798 ;;
3799
3800 amigaos*)
3801 # On AmigaOS with pdksh, this test takes hours, literally.
3802 # So we just punt and use a minimum line length of 8192.
3803 lt_cv_sys_max_cmd_len=8192;
3804 ;;
3805
3806 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3807 # This has been around since 386BSD, at least. Likely further.
3808 if test -x /sbin/sysctl; then
3809 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3810 elif test -x /usr/sbin/sysctl; then
3811 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3812 else
3813 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3814 fi
3815 # And add a safety zone
3816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3818 ;;
3819
3820 interix*)
3821 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3822 lt_cv_sys_max_cmd_len=196608
3823 ;;
3824
3825 osf*)
3826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3828 # nice to cause kernel panics so lets avoid the loop below.
3829 # First set a reasonable default.
3830 lt_cv_sys_max_cmd_len=16384
3831 #
3832 if test -x /sbin/sysconfig; then
3833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3835 esac
3836 fi
3837 ;;
3838 sco3.2v5*)
3839 lt_cv_sys_max_cmd_len=102400
3840 ;;
3841 sysv5* | sco5v6* | sysv4.2uw2*)
3842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3843 if test -n "$kargmax"; then
3844 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3845 else
3846 lt_cv_sys_max_cmd_len=32768
3847 fi
3848 ;;
3849 *)
3850 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3851 if test -n "$lt_cv_sys_max_cmd_len"; then
3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3854 else
3855 # Make teststring a little bigger before we do anything with it.
3856 # a 1K string should be a reasonable start.
3857 for i in 1 2 3 4 5 6 7 8 ; do
3858 teststring=$teststring$teststring
3859 done
3860 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3861 # If test is not a shell built-in, we'll probably end up computing a
3862 # maximum length that is only half of the actual maximum length, but
3863 # we can't tell.
3864 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3865 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3866 test $i != 17 # 1/2 MB should be enough
3867 do
3868 i=`expr $i + 1`
3869 teststring=$teststring$teststring
3870 done
3871 # Only check the string length outside the loop.
3872 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3873 teststring=
3874 # Add a significant safety factor because C++ compilers can tack on
3875 # massive amounts of additional arguments before passing them to the
3876 # linker. It appears as though 1/2 is a usable value.
3877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3878 fi
3879 ;;
3880 esac
3881
3882fi
3883
3884if test -n $lt_cv_sys_max_cmd_len ; then
drh8b727472009-01-19 18:18:40 +00003885 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3886$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003887else
drh8b727472009-01-19 18:18:40 +00003888 { $as_echo "$as_me:$LINENO: result: none" >&5
3889$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003890fi
3891max_cmd_len=$lt_cv_sys_max_cmd_len
3892
3893
3894
3895
3896
3897
3898: ${CP="cp -f"}
3899: ${MV="mv -f"}
3900: ${RM="rm -f"}
3901
drh8b727472009-01-19 18:18:40 +00003902{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3903$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003904# Try some XSI features
3905xsi_shell=no
3906( _lt_dummy="a/b/c"
3907 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3908 = c,a/b,, \
3909 && eval 'test $(( 1 + 1 )) -eq 2 \
3910 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3911 && xsi_shell=yes
drh8b727472009-01-19 18:18:40 +00003912{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3913$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003914
3915
drh8b727472009-01-19 18:18:40 +00003916{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3917$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003918lt_shell_append=no
3919( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3920 >/dev/null 2>&1 \
3921 && lt_shell_append=yes
drh8b727472009-01-19 18:18:40 +00003922{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3923$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003924
3925
3926if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3927 lt_unset=unset
3928else
3929 lt_unset=false
3930fi
3931
3932
3933
3934
3935
3936# test EBCDIC or ASCII
3937case `echo X|tr X '\101'` in
3938 A) # ASCII based system
3939 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3940 lt_SP2NL='tr \040 \012'
3941 lt_NL2SP='tr \015\012 \040\040'
3942 ;;
3943 *) # EBCDIC based system
3944 lt_SP2NL='tr \100 \n'
3945 lt_NL2SP='tr \r\n \100\100'
3946 ;;
3947esac
3948
3949
3950
3951
3952
3953
3954
3955
3956
drh8b727472009-01-19 18:18:40 +00003957{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3958$as_echo_n "checking for $LD option to reload object files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003959if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003960 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003961else
3962 lt_cv_ld_reload_flag='-r'
3963fi
drh8b727472009-01-19 18:18:40 +00003964{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3965$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003966reload_flag=$lt_cv_ld_reload_flag
3967case $reload_flag in
3968"" | " "*) ;;
3969*) reload_flag=" $reload_flag" ;;
3970esac
3971reload_cmds='$LD$reload_flag -o $output$reload_objs'
3972case $host_os in
3973 darwin*)
3974 if test "$GCC" = yes; then
3975 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3976 else
3977 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3978 fi
3979 ;;
3980esac
3981
3982
3983
3984
3985
3986
3987
3988
3989
vapier6acb2cf2009-01-28 04:46:28 +00003990if test -n "$ac_tool_prefix"; then
3991 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3992set dummy ${ac_tool_prefix}objdump; ac_word=$2
3993{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
3995if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3996 $as_echo_n "(cached) " >&6
3997else
3998 if test -n "$OBJDUMP"; then
3999 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4000else
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
4003do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010 break 2
4011 fi
4012done
4013done
4014IFS=$as_save_IFS
4015
4016fi
4017fi
4018OBJDUMP=$ac_cv_prog_OBJDUMP
4019if test -n "$OBJDUMP"; then
4020 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4021$as_echo "$OBJDUMP" >&6; }
4022else
4023 { $as_echo "$as_me:$LINENO: result: no" >&5
4024$as_echo "no" >&6; }
4025fi
4026
4027
4028fi
4029if test -z "$ac_cv_prog_OBJDUMP"; then
4030 ac_ct_OBJDUMP=$OBJDUMP
4031 # Extract the first word of "objdump", so it can be a program name with args.
4032set dummy objdump; ac_word=$2
4033{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4034$as_echo_n "checking for $ac_word... " >&6; }
4035if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4036 $as_echo_n "(cached) " >&6
4037else
4038 if test -n "$ac_ct_OBJDUMP"; then
4039 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4040else
4041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042for as_dir in $PATH
4043do
4044 IFS=$as_save_IFS
4045 test -z "$as_dir" && as_dir=.
4046 for ac_exec_ext in '' $ac_executable_extensions; do
4047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4048 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 break 2
4051 fi
4052done
4053done
4054IFS=$as_save_IFS
4055
4056fi
4057fi
4058ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4059if test -n "$ac_ct_OBJDUMP"; then
4060 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4061$as_echo "$ac_ct_OBJDUMP" >&6; }
4062else
4063 { $as_echo "$as_me:$LINENO: result: no" >&5
4064$as_echo "no" >&6; }
4065fi
4066
4067 if test "x$ac_ct_OBJDUMP" = x; then
4068 OBJDUMP="false"
4069 else
4070 case $cross_compiling:$ac_tool_warned in
4071yes:)
drh934c5442009-04-13 09:09:24 +00004072{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4073whose name does not start with the host triplet. If you think this
4074configuration is useful to you, please write to autoconf@gnu.org." >&5
4075$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4076whose name does not start with the host triplet. If you think this
4077configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004078ac_tool_warned=yes ;;
4079esac
4080 OBJDUMP=$ac_ct_OBJDUMP
4081 fi
4082else
4083 OBJDUMP="$ac_cv_prog_OBJDUMP"
4084fi
4085
4086test -z "$OBJDUMP" && OBJDUMP=objdump
4087
4088
4089
4090
4091
4092
4093
4094
mlcreech636a9952008-05-05 22:52:56 +00004095
drh8b727472009-01-19 18:18:40 +00004096{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4097$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00004098if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004099 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004100else
4101 lt_cv_file_magic_cmd='$MAGIC_CMD'
4102lt_cv_file_magic_test_file=
4103lt_cv_deplibs_check_method='unknown'
4104# Need to set the preceding variable on all platforms that support
4105# interlibrary dependencies.
4106# 'none' -- dependencies not supported.
4107# `unknown' -- same as none, but documents that we really don't know.
4108# 'pass_all' -- all dependencies passed with no checks.
4109# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004110# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004111# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004112# If you have `file' or equivalent on your system and you're not sure
4113# whether `pass_all' will *always* work, you probably want this one.
4114
4115case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004116aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119
4120beos*)
4121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123
vapier7f19c022007-02-17 14:46:31 +00004124bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4126 lt_cv_file_magic_cmd='/usr/bin/file -L'
4127 lt_cv_file_magic_test_file=/shlib/libc.so
4128 ;;
4129
a.rottmann9bc8b932004-02-29 15:18:31 +00004130cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004131 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004133 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004134 ;;
4135
4136mingw* | pw32*)
4137 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004138 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4139 # unless we find 'file', for example because we are cross-compiling.
4140 if ( file / ) >/dev/null 2>&1; then
4141 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4142 lt_cv_file_magic_cmd='func_win32_libid'
4143 else
4144 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4145 lt_cv_file_magic_cmd='$OBJDUMP -f'
4146 fi
drh71eb93e2001-09-28 01:34:43 +00004147 ;;
4148
vapier6acb2cf2009-01-28 04:46:28 +00004149cegcc)
4150 # use the weaker test based on 'objdump'. See mingw*.
4151 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4152 lt_cv_file_magic_cmd='$OBJDUMP -f'
4153 ;;
4154
drh71eb93e2001-09-28 01:34:43 +00004155darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004156 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004157 ;;
4158
mlcreech636a9952008-05-05 22:52:56 +00004159freebsd* | dragonfly*)
4160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004161 case $host_cpu in
4162 i*86 )
4163 # Not sure whether the presence of OpenBSD here was a mistake.
4164 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004165 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 +00004166 lt_cv_file_magic_cmd=/usr/bin/file
4167 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4168 ;;
4169 esac
4170 else
4171 lt_cv_deplibs_check_method=pass_all
4172 fi
4173 ;;
4174
4175gnu*)
4176 lt_cv_deplibs_check_method=pass_all
4177 ;;
4178
a.rottmann9bc8b932004-02-29 15:18:31 +00004179hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004180 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004181 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004182 ia64*)
4183 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4184 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4185 ;;
4186 hppa*64*)
4187 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]'
4188 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4189 ;;
4190 *)
4191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4192 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4193 ;;
4194 esac
drh71eb93e2001-09-28 01:34:43 +00004195 ;;
4196
mlcreech636a9952008-05-05 22:52:56 +00004197interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4200 ;;
4201
a.rottmann84e63352003-03-24 09:42:16 +00004202irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004203 case $LD in
4204 *-32|*"-32 ") libmagic=32-bit;;
4205 *-n32|*"-n32 ") libmagic=N32;;
4206 *-64|*"-64 ") libmagic=64-bit;;
4207 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004208 esac
drh71eb93e2001-09-28 01:34:43 +00004209 lt_cv_deplibs_check_method=pass_all
4210 ;;
4211
4212# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004213linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004214 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004215 ;;
4216
vapier7f19c022007-02-17 14:46:31 +00004217netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004218 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004220 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004222 fi
4223 ;;
4224
4225newos6*)
4226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4227 lt_cv_file_magic_cmd=/usr/bin/file
4228 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4229 ;;
4230
mlcreech636a9952008-05-05 22:52:56 +00004231*nto* | *qnx*)
4232 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004233 ;;
4234
a.rottmann84e63352003-03-24 09:42:16 +00004235openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004238 else
vapier7f19c022007-02-17 14:46:31 +00004239 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004240 fi
drh71eb93e2001-09-28 01:34:43 +00004241 ;;
4242
4243osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004244 lt_cv_deplibs_check_method=pass_all
4245 ;;
4246
mlcreech636a9952008-05-05 22:52:56 +00004247rdos*)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
drh71eb93e2001-09-28 01:34:43 +00004251solaris*)
4252 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004253 ;;
4254
mlcreech636a9952008-05-05 22:52:56 +00004255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4256 lt_cv_deplibs_check_method=pass_all
4257 ;;
4258
vapier7f19c022007-02-17 14:46:31 +00004259sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004260 case $host_vendor in
4261 motorola)
4262 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]'
4263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4264 ;;
4265 ncr)
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268 sequent)
4269 lt_cv_file_magic_cmd='/bin/file'
4270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4271 ;;
4272 sni)
4273 lt_cv_file_magic_cmd='/bin/file'
4274 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4275 lt_cv_file_magic_test_file=/lib/libc.so
4276 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004277 siemens)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
vapier7f19c022007-02-17 14:46:31 +00004280 pc)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
drh71eb93e2001-09-28 01:34:43 +00004283 esac
4284 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004285
mlcreech636a9952008-05-05 22:52:56 +00004286tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004287 lt_cv_deplibs_check_method=pass_all
4288 ;;
drh71eb93e2001-09-28 01:34:43 +00004289esac
4290
4291fi
drh8b727472009-01-19 18:18:40 +00004292{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4293$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004294file_magic_cmd=$lt_cv_file_magic_cmd
4295deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004296test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004297
drh71eb93e2001-09-28 01:34:43 +00004298
drh71eb93e2001-09-28 01:34:43 +00004299
drh71eb93e2001-09-28 01:34:43 +00004300
mlcreech636a9952008-05-05 22:52:56 +00004301
4302
4303
4304
4305
4306
4307
4308
4309if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4311set dummy ${ac_tool_prefix}ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004312{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4313$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004314if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004315 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004316else
4317 if test -n "$AR"; then
4318 ac_cv_prog_AR="$AR" # Let the user override the test.
4319else
4320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321for as_dir in $PATH
4322do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004327 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh8b727472009-01-19 18:18:40 +00004328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004329 break 2
4330 fi
4331done
4332done
drh8b727472009-01-19 18:18:40 +00004333IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004334
4335fi
4336fi
4337AR=$ac_cv_prog_AR
4338if test -n "$AR"; then
drh8b727472009-01-19 18:18:40 +00004339 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4340$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004341else
drh8b727472009-01-19 18:18:40 +00004342 { $as_echo "$as_me:$LINENO: result: no" >&5
4343$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004344fi
4345
drh8b727472009-01-19 18:18:40 +00004346
mlcreech636a9952008-05-05 22:52:56 +00004347fi
4348if test -z "$ac_cv_prog_AR"; then
4349 ac_ct_AR=$AR
4350 # Extract the first word of "ar", so it can be a program name with args.
4351set dummy ar; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4353$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004354if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004355 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004356else
4357 if test -n "$ac_ct_AR"; then
4358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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
drh8b727472009-01-19 18:18:40 +00004366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004367 ac_cv_prog_ac_ct_AR="ar"
drh8b727472009-01-19 18:18:40 +00004368 $as_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
drh8b727472009-01-19 18:18:40 +00004373IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004374
4375fi
4376fi
4377ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378if test -n "$ac_ct_AR"; then
drh8b727472009-01-19 18:18:40 +00004379 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4380$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004381else
drh8b727472009-01-19 18:18:40 +00004382 { $as_echo "$as_me:$LINENO: result: no" >&5
4383$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004384fi
4385
drh8b727472009-01-19 18:18:40 +00004386 if test "x$ac_ct_AR" = x; then
4387 AR="false"
4388 else
4389 case $cross_compiling:$ac_tool_warned in
4390yes:)
drh934c5442009-04-13 09:09:24 +00004391{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4392whose name does not start with the host triplet. If you think this
4393configuration is useful to you, please write to autoconf@gnu.org." >&5
4394$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4395whose name does not start with the host triplet. If you think this
4396configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004397ac_tool_warned=yes ;;
4398esac
4399 AR=$ac_ct_AR
4400 fi
mlcreech636a9952008-05-05 22:52:56 +00004401else
4402 AR="$ac_cv_prog_AR"
4403fi
4404
4405test -z "$AR" && AR=ar
4406test -z "$AR_FLAGS" && AR_FLAGS=cru
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4420set dummy ${ac_tool_prefix}strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4422$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004423if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004424 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004425else
4426 if test -n "$STRIP"; then
4427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh8b727472009-01-19 18:18:40 +00004437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004438 break 2
4439 fi
4440done
4441done
drh8b727472009-01-19 18:18:40 +00004442IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004443
4444fi
4445fi
4446STRIP=$ac_cv_prog_STRIP
4447if test -n "$STRIP"; then
drh8b727472009-01-19 18:18:40 +00004448 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4449$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004450else
drh8b727472009-01-19 18:18:40 +00004451 { $as_echo "$as_me:$LINENO: result: no" >&5
4452$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004453fi
4454
drh8b727472009-01-19 18:18:40 +00004455
mlcreech636a9952008-05-05 22:52:56 +00004456fi
4457if test -z "$ac_cv_prog_STRIP"; then
4458 ac_ct_STRIP=$STRIP
4459 # Extract the first word of "strip", so it can be a program name with args.
4460set dummy strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004461{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4462$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004464 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004465else
4466 if test -n "$ac_ct_STRIP"; then
4467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004476 ac_cv_prog_ac_ct_STRIP="strip"
drh8b727472009-01-19 18:18:40 +00004477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004478 break 2
4479 fi
4480done
4481done
drh8b727472009-01-19 18:18:40 +00004482IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004483
4484fi
4485fi
4486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4487if test -n "$ac_ct_STRIP"; then
drh8b727472009-01-19 18:18:40 +00004488 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4489$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004490else
drh8b727472009-01-19 18:18:40 +00004491 { $as_echo "$as_me:$LINENO: result: no" >&5
4492$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004493fi
4494
drh8b727472009-01-19 18:18:40 +00004495 if test "x$ac_ct_STRIP" = x; then
4496 STRIP=":"
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499yes:)
drh934c5442009-04-13 09:09:24 +00004500{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4501whose name does not start with the host triplet. If you think this
4502configuration is useful to you, please write to autoconf@gnu.org." >&5
4503$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4504whose name does not start with the host triplet. If you think this
4505configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004506ac_tool_warned=yes ;;
4507esac
4508 STRIP=$ac_ct_STRIP
4509 fi
mlcreech636a9952008-05-05 22:52:56 +00004510else
4511 STRIP="$ac_cv_prog_STRIP"
4512fi
4513
4514test -z "$STRIP" && STRIP=:
4515
4516
4517
4518
4519
4520
4521if test -n "$ac_tool_prefix"; then
4522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4523set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004524{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4525$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004526if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004527 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004528else
4529 if test -n "$RANLIB"; then
4530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4531else
4532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533for as_dir in $PATH
4534do
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh8b727472009-01-19 18:18:40 +00004540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004541 break 2
4542 fi
4543done
4544done
drh8b727472009-01-19 18:18:40 +00004545IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004546
4547fi
4548fi
4549RANLIB=$ac_cv_prog_RANLIB
4550if test -n "$RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004551 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4552$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004553else
drh8b727472009-01-19 18:18:40 +00004554 { $as_echo "$as_me:$LINENO: result: no" >&5
4555$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004556fi
4557
drh8b727472009-01-19 18:18:40 +00004558
mlcreech636a9952008-05-05 22:52:56 +00004559fi
4560if test -z "$ac_cv_prog_RANLIB"; then
4561 ac_ct_RANLIB=$RANLIB
4562 # Extract the first word of "ranlib", so it can be a program name with args.
4563set dummy ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004566if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004567 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004568else
4569 if test -n "$ac_ct_RANLIB"; then
4570 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00004579 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh8b727472009-01-19 18:18:40 +00004580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004581 break 2
4582 fi
4583done
4584done
drh8b727472009-01-19 18:18:40 +00004585IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004586
4587fi
4588fi
4589ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4590if test -n "$ac_ct_RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004591 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4592$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004593else
drh8b727472009-01-19 18:18:40 +00004594 { $as_echo "$as_me:$LINENO: result: no" >&5
4595$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004596fi
4597
drh8b727472009-01-19 18:18:40 +00004598 if test "x$ac_ct_RANLIB" = x; then
4599 RANLIB=":"
4600 else
4601 case $cross_compiling:$ac_tool_warned in
4602yes:)
drh934c5442009-04-13 09:09:24 +00004603{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4604whose name does not start with the host triplet. If you think this
4605configuration is useful to you, please write to autoconf@gnu.org." >&5
4606$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4607whose name does not start with the host triplet. If you think this
4608configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004609ac_tool_warned=yes ;;
4610esac
4611 RANLIB=$ac_ct_RANLIB
4612 fi
mlcreech636a9952008-05-05 22:52:56 +00004613else
4614 RANLIB="$ac_cv_prog_RANLIB"
4615fi
4616
4617test -z "$RANLIB" && RANLIB=:
4618
4619
4620
4621
4622
4623
4624# Determine commands to create old-style static archives.
4625old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4626old_postinstall_cmds='chmod 644 $oldlib'
4627old_postuninstall_cmds=
4628
4629if test -n "$RANLIB"; then
4630 case $host_os in
4631 openbsd*)
4632 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4633 ;;
4634 *)
4635 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4636 ;;
4637 esac
4638 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4639fi
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
a.rottmann9bc8b932004-02-29 15:18:31 +00004674# If no C compiler was specified, use CC.
4675LTCC=${LTCC-"$CC"}
4676
vapier7f19c022007-02-17 14:46:31 +00004677# If no C compiler flags were specified, use CFLAGS.
4678LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4679
a.rottmann9bc8b932004-02-29 15:18:31 +00004680# Allow CC to be a program name with arguments.
4681compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004682
drh71eb93e2001-09-28 01:34:43 +00004683
mlcreech636a9952008-05-05 22:52:56 +00004684# Check for command to grab the raw symbol name followed by C symbol from nm.
drh8b727472009-01-19 18:18:40 +00004685{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4686$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004687if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004688 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004689else
4690
4691# These are sane defaults that work on at least a few old systems.
4692# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4693
4694# Character class describing NM global symbol codes.
4695symcode='[BCDEGRST]'
4696
4697# Regexp to match symbols that can be accessed directly from C.
4698sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4699
4700# Define system-specific variables.
4701case $host_os in
4702aix*)
4703 symcode='[BCDT]'
4704 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004705cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004706 symcode='[ABCDGISTW]'
4707 ;;
4708hpux*)
4709 if test "$host_cpu" = ia64; then
4710 symcode='[ABCDEGRST]'
4711 fi
4712 ;;
4713irix* | nonstopux*)
4714 symcode='[BCDEGRST]'
4715 ;;
4716osf*)
4717 symcode='[BCDEGQRST]'
4718 ;;
4719solaris*)
4720 symcode='[BDRT]'
4721 ;;
4722sco3.2v5*)
4723 symcode='[DT]'
4724 ;;
4725sysv4.2uw2*)
4726 symcode='[DT]'
4727 ;;
4728sysv5* | sco5v6* | unixware* | OpenUNIX*)
4729 symcode='[ABDT]'
4730 ;;
4731sysv4)
4732 symcode='[DFNSTU]'
4733 ;;
4734esac
4735
4736# If we're using GNU nm, then use its standard symbol codes.
4737case `$NM -V 2>&1` in
4738*GNU* | *'with BFD'*)
4739 symcode='[ABCDGIRSTW]' ;;
4740esac
4741
4742# Transform an extracted symbol line into a proper C declaration.
4743# Some systems (esp. on ia64) link data and code symbols differently,
4744# so use this general approach.
4745lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4746
4747# Transform an extracted symbol line into symbol name and symbol address
4748lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4749lt_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'"
4750
4751# Handle CRLF in mingw tool chain
4752opt_cr=
4753case $build_os in
4754mingw*)
4755 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4756 ;;
4757esac
4758
4759# Try without a prefix underscore, then with it.
4760for ac_symprfx in "" "_"; do
4761
4762 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4763 symxfrm="\\1 $ac_symprfx\\2 \\2"
4764
4765 # Write the raw and C identifiers.
4766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4767 # Fake it for dumpbin and say T for any non-static function
4768 # and D for any global variable.
4769 # Also find C++ and __fastcall symbols from MSVC++,
4770 # which start with @ or ?.
4771 lt_cv_sys_global_symbol_pipe="$AWK '"\
4772" {last_section=section; section=\$ 3};"\
4773" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4774" \$ 0!~/External *\|/{next};"\
4775" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4776" {if(hide[section]) next};"\
4777" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4778" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4779" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4780" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4781" ' prfx=^$ac_symprfx"
4782 else
4783 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4784 fi
4785
4786 # Check to see that the pipe works correctly.
4787 pipe_works=no
4788
4789 rm -f conftest*
4790 cat > conftest.$ac_ext <<_LT_EOF
4791#ifdef __cplusplus
4792extern "C" {
4793#endif
4794char nm_test_var;
4795void nm_test_func(void);
4796void nm_test_func(void){}
4797#ifdef __cplusplus
4798}
4799#endif
4800int main(){nm_test_var='a';nm_test_func();return(0);}
4801_LT_EOF
4802
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>&5
4805 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004807 (exit $ac_status); }; then
4808 # Now try to grab the symbols.
4809 nlist=conftest.nm
4810 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4812 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004814 (exit $ac_status); } && test -s "$nlist"; then
4815 # Try sorting and uniquifying the output.
4816 if sort "$nlist" | uniq > "$nlist"T; then
4817 mv -f "$nlist"T "$nlist"
4818 else
4819 rm -f "$nlist"T
4820 fi
4821
4822 # Make sure that we snagged all the symbols we need.
4823 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4824 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4825 cat <<_LT_EOF > conftest.$ac_ext
4826#ifdef __cplusplus
4827extern "C" {
4828#endif
4829
4830_LT_EOF
4831 # Now generate the symbol file.
4832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4833
4834 cat <<_LT_EOF >> conftest.$ac_ext
4835
4836/* The mapping between symbol names and symbols. */
4837const struct {
4838 const char *name;
4839 void *address;
4840}
4841lt__PROGRAM__LTX_preloaded_symbols[] =
4842{
4843 { "@PROGRAM@", (void *) 0 },
4844_LT_EOF
4845 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4846 cat <<\_LT_EOF >> conftest.$ac_ext
4847 {0, (void *) 0}
4848};
4849
4850/* This works around a problem in FreeBSD linker */
4851#ifdef FREEBSD_WORKAROUND
4852static const void *lt_preloaded_setup() {
4853 return lt__PROGRAM__LTX_preloaded_symbols;
4854}
4855#endif
4856
4857#ifdef __cplusplus
4858}
4859#endif
4860_LT_EOF
4861 # Now try linking the two files.
4862 mv conftest.$ac_objext conftstm.$ac_objext
4863 lt_save_LIBS="$LIBS"
4864 lt_save_CFLAGS="$CFLAGS"
4865 LIBS="conftstm.$ac_objext"
4866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4868 (eval $ac_link) 2>&5
4869 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004871 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4872 pipe_works=yes
4873 fi
4874 LIBS="$lt_save_LIBS"
4875 CFLAGS="$lt_save_CFLAGS"
4876 else
4877 echo "cannot find nm_test_func in $nlist" >&5
4878 fi
4879 else
4880 echo "cannot find nm_test_var in $nlist" >&5
4881 fi
4882 else
4883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4884 fi
4885 else
4886 echo "$progname: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 fi
4889 rm -rf conftest* conftst*
4890
4891 # Do not use the global_symbol_pipe unless it works.
4892 if test "$pipe_works" = yes; then
4893 break
4894 else
4895 lt_cv_sys_global_symbol_pipe=
4896 fi
4897done
4898
4899fi
4900
4901if test -z "$lt_cv_sys_global_symbol_pipe"; then
4902 lt_cv_sys_global_symbol_to_cdecl=
4903fi
4904if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh8b727472009-01-19 18:18:40 +00004905 { $as_echo "$as_me:$LINENO: result: failed" >&5
4906$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004907else
drh8b727472009-01-19 18:18:40 +00004908 { $as_echo "$as_me:$LINENO: result: ok" >&5
4909$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004910fi
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
drh8b727472009-01-19 18:18:40 +00004934# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004935if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004936 enableval=$enable_libtool_lock;
4937fi
drh71eb93e2001-09-28 01:34:43 +00004938
a.rottmann9bc8b932004-02-29 15:18:31 +00004939test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004940
a.rottmann9bc8b932004-02-29 15:18:31 +00004941# Some flags need to be propagated to the compiler or linker for good
4942# libtool support.
4943case $host in
4944ia64-*-hpux*)
4945 # Find out which ABI we are using.
4946 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004948 (eval $ac_compile) 2>&5
4949 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004951 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004952 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004953 *ELF-32*)
4954 HPUX_IA64_MODE="32"
4955 ;;
4956 *ELF-64*)
4957 HPUX_IA64_MODE="64"
4958 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004959 esac
4960 fi
4961 rm -rf conftest*
4962 ;;
4963*-*-irix6*)
4964 # Find out which ABI we are using.
drh697e9652010-12-21 00:20:53 +00004965 echo '#line 4965 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004968 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004970 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004971 if test "$lt_cv_prog_gnu_ld" = yes; then
4972 case `/usr/bin/file conftest.$ac_objext` in
4973 *32-bit*)
4974 LD="${LD-ld} -melf32bsmip"
4975 ;;
4976 *N32*)
4977 LD="${LD-ld} -melf32bmipn32"
4978 ;;
4979 *64-bit*)
4980 LD="${LD-ld} -melf64bmip"
4981 ;;
4982 esac
4983 else
4984 case `/usr/bin/file conftest.$ac_objext` in
4985 *32-bit*)
4986 LD="${LD-ld} -32"
4987 ;;
4988 *N32*)
4989 LD="${LD-ld} -n32"
4990 ;;
4991 *64-bit*)
4992 LD="${LD-ld} -64"
4993 ;;
4994 esac
4995 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004996 fi
4997 rm -rf conftest*
4998 ;;
drh71eb93e2001-09-28 01:34:43 +00004999
mlcreech636a9952008-05-05 22:52:56 +00005000x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5001s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005002 # Find out which ABI we are using.
5003 echo 'int i;' > conftest.$ac_ext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>&5
5006 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005008 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005009 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005010 *32-bit*)
5011 case $host in
5012 x86_64-*kfreebsd*-gnu)
5013 LD="${LD-ld} -m elf_i386_fbsd"
5014 ;;
5015 x86_64-*linux*)
5016 LD="${LD-ld} -m elf_i386"
5017 ;;
5018 ppc64-*linux*|powerpc64-*linux*)
5019 LD="${LD-ld} -m elf32ppclinux"
5020 ;;
5021 s390x-*linux*)
5022 LD="${LD-ld} -m elf_s390"
5023 ;;
5024 sparc64-*linux*)
5025 LD="${LD-ld} -m elf32_sparc"
5026 ;;
5027 esac
5028 ;;
5029 *64-bit*)
5030 case $host in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_x86_64_fbsd"
5033 ;;
5034 x86_64-*linux*)
5035 LD="${LD-ld} -m elf_x86_64"
5036 ;;
5037 ppc*-*linux*|powerpc*-*linux*)
5038 LD="${LD-ld} -m elf64ppc"
5039 ;;
5040 s390*-*linux*|s390*-*tpf*)
5041 LD="${LD-ld} -m elf64_s390"
5042 ;;
5043 sparc*-*linux*)
5044 LD="${LD-ld} -m elf64_sparc"
5045 ;;
5046 esac
5047 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005048 esac
5049 fi
5050 rm -rf conftest*
5051 ;;
drh71eb93e2001-09-28 01:34:43 +00005052
a.rottmann9bc8b932004-02-29 15:18:31 +00005053*-*-sco3.2v5*)
5054 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5055 SAVE_CFLAGS="$CFLAGS"
5056 CFLAGS="$CFLAGS -belf"
drh8b727472009-01-19 18:18:40 +00005057 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5058$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005059if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005060 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005061else
5062 ac_ext=c
5063ac_cpp='$CPP $CPPFLAGS'
5064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5066ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005067
a.rottmann9bc8b932004-02-29 15:18:31 +00005068 cat >conftest.$ac_ext <<_ACEOF
5069/* confdefs.h. */
5070_ACEOF
5071cat confdefs.h >>conftest.$ac_ext
5072cat >>conftest.$ac_ext <<_ACEOF
5073/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005074
a.rottmann9bc8b932004-02-29 15:18:31 +00005075int
5076main ()
drh71eb93e2001-09-28 01:34:43 +00005077{
drh71eb93e2001-09-28 01:34:43 +00005078
a.rottmann9bc8b932004-02-29 15:18:31 +00005079 ;
5080 return 0;
drh71eb93e2001-09-28 01:34:43 +00005081}
a.rottmann9bc8b932004-02-29 15:18:31 +00005082_ACEOF
5083rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005084if { (ac_try="$ac_link"
5085case "(($ac_try" in
5086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087 *) ac_try_echo=$ac_try;;
5088esac
5089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090$as_echo "$ac_try_echo") >&5
5091 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest$ac_exeext && {
5101 test "$cross_compiling" = yes ||
5102 $as_test_x conftest$ac_exeext
5103 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005104 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005105else
drh8b727472009-01-19 18:18:40 +00005106 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005107sed 's/^/| /' conftest.$ac_ext >&5
5108
drh8b727472009-01-19 18:18:40 +00005109 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005110fi
drh8b727472009-01-19 18:18:40 +00005111
5112rm -rf conftest.dSYM
5113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00005114 conftest$ac_exeext conftest.$ac_ext
5115 ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120
drh71eb93e2001-09-28 01:34:43 +00005121fi
drh8b727472009-01-19 18:18:40 +00005122{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5123$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5126 CFLAGS="$SAVE_CFLAGS"
5127 fi
5128 ;;
vapier7f19c022007-02-17 14:46:31 +00005129sparc*-*solaris*)
5130 # Find out which ABI we are using.
5131 echo 'int i;' > conftest.$ac_ext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133 (eval $ac_compile) 2>&5
5134 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005136 (exit $ac_status); }; then
5137 case `/usr/bin/file conftest.o` in
5138 *64-bit*)
5139 case $lt_cv_prog_gnu_ld in
5140 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005141 *)
5142 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5143 LD="${LD-ld} -64"
5144 fi
5145 ;;
vapier7f19c022007-02-17 14:46:31 +00005146 esac
5147 ;;
5148 esac
5149 fi
5150 rm -rf conftest*
5151 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005152esac
5153
5154need_locks="$enable_libtool_lock"
5155
drh71eb93e2001-09-28 01:34:43 +00005156
mlcreech636a9952008-05-05 22:52:56 +00005157 case $host_os in
5158 rhapsody* | darwin*)
5159 if test -n "$ac_tool_prefix"; then
5160 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5161set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005164if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005165 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005166else
5167 if test -n "$DSYMUTIL"; then
5168 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005177 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh8b727472009-01-19 18:18:40 +00005178 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005179 break 2
5180 fi
5181done
5182done
drh8b727472009-01-19 18:18:40 +00005183IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005184
5185fi
5186fi
5187DSYMUTIL=$ac_cv_prog_DSYMUTIL
5188if test -n "$DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005189 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5190$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005191else
drh8b727472009-01-19 18:18:40 +00005192 { $as_echo "$as_me:$LINENO: result: no" >&5
5193$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005194fi
5195
drh8b727472009-01-19 18:18:40 +00005196
mlcreech636a9952008-05-05 22:52:56 +00005197fi
5198if test -z "$ac_cv_prog_DSYMUTIL"; then
5199 ac_ct_DSYMUTIL=$DSYMUTIL
5200 # Extract the first word of "dsymutil", so it can be a program name with args.
5201set dummy dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005204if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005205 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005206else
5207 if test -n "$ac_ct_DSYMUTIL"; then
5208 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005217 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh8b727472009-01-19 18:18:40 +00005218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005219 break 2
5220 fi
5221done
5222done
drh8b727472009-01-19 18:18:40 +00005223IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005224
5225fi
5226fi
5227ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5228if test -n "$ac_ct_DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005229 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5230$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005231else
drh8b727472009-01-19 18:18:40 +00005232 { $as_echo "$as_me:$LINENO: result: no" >&5
5233$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005234fi
5235
drh8b727472009-01-19 18:18:40 +00005236 if test "x$ac_ct_DSYMUTIL" = x; then
5237 DSYMUTIL=":"
5238 else
5239 case $cross_compiling:$ac_tool_warned in
5240yes:)
drh934c5442009-04-13 09:09:24 +00005241{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5242whose name does not start with the host triplet. If you think this
5243configuration is useful to you, please write to autoconf@gnu.org." >&5
5244$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5245whose name does not start with the host triplet. If you think this
5246configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005247ac_tool_warned=yes ;;
5248esac
5249 DSYMUTIL=$ac_ct_DSYMUTIL
5250 fi
mlcreech636a9952008-05-05 22:52:56 +00005251else
5252 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5253fi
5254
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5257set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5259$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005260if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005261 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005262else
5263 if test -n "$NMEDIT"; then
5264 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5265else
5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267for as_dir in $PATH
5268do
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005273 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh8b727472009-01-19 18:18:40 +00005274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005275 break 2
5276 fi
5277done
5278done
drh8b727472009-01-19 18:18:40 +00005279IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005280
5281fi
5282fi
5283NMEDIT=$ac_cv_prog_NMEDIT
5284if test -n "$NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005285 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5286$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005287else
drh8b727472009-01-19 18:18:40 +00005288 { $as_echo "$as_me:$LINENO: result: no" >&5
5289$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005290fi
5291
drh8b727472009-01-19 18:18:40 +00005292
mlcreech636a9952008-05-05 22:52:56 +00005293fi
5294if test -z "$ac_cv_prog_NMEDIT"; then
5295 ac_ct_NMEDIT=$NMEDIT
5296 # Extract the first word of "nmedit", so it can be a program name with args.
5297set dummy nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005298{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005300if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005301 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005302else
5303 if test -n "$ac_ct_NMEDIT"; then
5304 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005313 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh8b727472009-01-19 18:18:40 +00005314 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005315 break 2
5316 fi
5317done
5318done
drh8b727472009-01-19 18:18:40 +00005319IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005320
5321fi
5322fi
5323ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5324if test -n "$ac_ct_NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005325 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5326$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005327else
drh8b727472009-01-19 18:18:40 +00005328 { $as_echo "$as_me:$LINENO: result: no" >&5
5329$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005330fi
5331
drh8b727472009-01-19 18:18:40 +00005332 if test "x$ac_ct_NMEDIT" = x; then
5333 NMEDIT=":"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336yes:)
drh934c5442009-04-13 09:09:24 +00005337{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5338whose name does not start with the host triplet. If you think this
5339configuration is useful to you, please write to autoconf@gnu.org." >&5
5340$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5341whose name does not start with the host triplet. If you think this
5342configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005343ac_tool_warned=yes ;;
5344esac
5345 NMEDIT=$ac_ct_NMEDIT
5346 fi
mlcreech636a9952008-05-05 22:52:56 +00005347else
5348 NMEDIT="$ac_cv_prog_NMEDIT"
5349fi
5350
5351 if test -n "$ac_tool_prefix"; then
5352 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5353set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005356if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005357 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005358else
5359 if test -n "$LIPO"; then
5360 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365 IFS=$as_save_IFS
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005369 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh8b727472009-01-19 18:18:40 +00005370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005371 break 2
5372 fi
5373done
5374done
drh8b727472009-01-19 18:18:40 +00005375IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005376
5377fi
5378fi
5379LIPO=$ac_cv_prog_LIPO
5380if test -n "$LIPO"; then
drh8b727472009-01-19 18:18:40 +00005381 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5382$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005383else
drh8b727472009-01-19 18:18:40 +00005384 { $as_echo "$as_me:$LINENO: result: no" >&5
5385$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005386fi
5387
drh8b727472009-01-19 18:18:40 +00005388
mlcreech636a9952008-05-05 22:52:56 +00005389fi
5390if test -z "$ac_cv_prog_LIPO"; then
5391 ac_ct_LIPO=$LIPO
5392 # Extract the first word of "lipo", so it can be a program name with args.
5393set dummy lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005396if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005397 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005398else
5399 if test -n "$ac_ct_LIPO"; then
5400 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005409 ac_cv_prog_ac_ct_LIPO="lipo"
drh8b727472009-01-19 18:18:40 +00005410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005411 break 2
5412 fi
5413done
5414done
drh8b727472009-01-19 18:18:40 +00005415IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005416
5417fi
5418fi
5419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5420if test -n "$ac_ct_LIPO"; then
drh8b727472009-01-19 18:18:40 +00005421 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5422$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005423else
drh8b727472009-01-19 18:18:40 +00005424 { $as_echo "$as_me:$LINENO: result: no" >&5
5425$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005426fi
5427
drh8b727472009-01-19 18:18:40 +00005428 if test "x$ac_ct_LIPO" = x; then
5429 LIPO=":"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
drh934c5442009-04-13 09:09:24 +00005433{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5434whose name does not start with the host triplet. If you think this
5435configuration is useful to you, please write to autoconf@gnu.org." >&5
5436$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5437whose name does not start with the host triplet. If you think this
5438configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005439ac_tool_warned=yes ;;
5440esac
5441 LIPO=$ac_ct_LIPO
5442 fi
mlcreech636a9952008-05-05 22:52:56 +00005443else
5444 LIPO="$ac_cv_prog_LIPO"
5445fi
5446
5447 if test -n "$ac_tool_prefix"; then
5448 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5449set dummy ${ac_tool_prefix}otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005452if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005453 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005454else
5455 if test -n "$OTOOL"; then
5456 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005465 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh8b727472009-01-19 18:18:40 +00005466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005467 break 2
5468 fi
5469done
5470done
drh8b727472009-01-19 18:18:40 +00005471IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005472
5473fi
5474fi
5475OTOOL=$ac_cv_prog_OTOOL
5476if test -n "$OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005477 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5478$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005479else
drh8b727472009-01-19 18:18:40 +00005480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005482fi
5483
drh8b727472009-01-19 18:18:40 +00005484
mlcreech636a9952008-05-05 22:52:56 +00005485fi
5486if test -z "$ac_cv_prog_OTOOL"; then
5487 ac_ct_OTOOL=$OTOOL
5488 # Extract the first word of "otool", so it can be a program name with args.
5489set dummy otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5491$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005492if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005493 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005494else
5495 if test -n "$ac_ct_OTOOL"; then
5496 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005505 ac_cv_prog_ac_ct_OTOOL="otool"
drh8b727472009-01-19 18:18:40 +00005506 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005507 break 2
5508 fi
5509done
5510done
drh8b727472009-01-19 18:18:40 +00005511IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005512
5513fi
5514fi
5515ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5516if test -n "$ac_ct_OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005517 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5518$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005519else
drh8b727472009-01-19 18:18:40 +00005520 { $as_echo "$as_me:$LINENO: result: no" >&5
5521$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005522fi
5523
drh8b727472009-01-19 18:18:40 +00005524 if test "x$ac_ct_OTOOL" = x; then
5525 OTOOL=":"
5526 else
5527 case $cross_compiling:$ac_tool_warned in
5528yes:)
drh934c5442009-04-13 09:09:24 +00005529{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5530whose name does not start with the host triplet. If you think this
5531configuration is useful to you, please write to autoconf@gnu.org." >&5
5532$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5533whose name does not start with the host triplet. If you think this
5534configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005535ac_tool_warned=yes ;;
5536esac
5537 OTOOL=$ac_ct_OTOOL
5538 fi
mlcreech636a9952008-05-05 22:52:56 +00005539else
5540 OTOOL="$ac_cv_prog_OTOOL"
5541fi
5542
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5545set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5547$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005548if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005549 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005550else
5551 if test -n "$OTOOL64"; then
5552 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005561 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh8b727472009-01-19 18:18:40 +00005562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005563 break 2
5564 fi
5565done
5566done
drh8b727472009-01-19 18:18:40 +00005567IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005568
5569fi
5570fi
5571OTOOL64=$ac_cv_prog_OTOOL64
5572if test -n "$OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005573 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5574$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005575else
drh8b727472009-01-19 18:18:40 +00005576 { $as_echo "$as_me:$LINENO: result: no" >&5
5577$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005578fi
5579
drh8b727472009-01-19 18:18:40 +00005580
mlcreech636a9952008-05-05 22:52:56 +00005581fi
5582if test -z "$ac_cv_prog_OTOOL64"; then
5583 ac_ct_OTOOL64=$OTOOL64
5584 # Extract the first word of "otool64", so it can be a program name with args.
5585set dummy otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005586{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005588if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005589 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005590else
5591 if test -n "$ac_ct_OTOOL64"; then
5592 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreech636a9952008-05-05 22:52:56 +00005601 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh8b727472009-01-19 18:18:40 +00005602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005603 break 2
5604 fi
5605done
5606done
drh8b727472009-01-19 18:18:40 +00005607IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005608
5609fi
5610fi
5611ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5612if test -n "$ac_ct_OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005613 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5614$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005615else
drh8b727472009-01-19 18:18:40 +00005616 { $as_echo "$as_me:$LINENO: result: no" >&5
5617$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005618fi
5619
drh8b727472009-01-19 18:18:40 +00005620 if test "x$ac_ct_OTOOL64" = x; then
5621 OTOOL64=":"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624yes:)
drh934c5442009-04-13 09:09:24 +00005625{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5626whose name does not start with the host triplet. If you think this
5627configuration is useful to you, please write to autoconf@gnu.org." >&5
5628$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5629whose name does not start with the host triplet. If you think this
5630configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005631ac_tool_warned=yes ;;
5632esac
5633 OTOOL64=$ac_ct_OTOOL64
5634 fi
mlcreech636a9952008-05-05 22:52:56 +00005635else
5636 OTOOL64="$ac_cv_prog_OTOOL64"
5637fi
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
drh8b727472009-01-19 18:18:40 +00005665 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5666$as_echo_n "checking for -single_module linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005667if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005668 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005669else
5670 lt_cv_apple_cc_single_mod=no
5671 if test -z "${LT_MULTI_MODULE}"; then
5672 # By default we will add the -single_module flag. You can override
5673 # by either setting the environment variable LT_MULTI_MODULE
5674 # non-empty at configure time, or by adding -multi_module to the
5675 # link flags.
5676 rm -rf libconftest.dylib*
5677 echo "int foo(void){return 1;}" > conftest.c
5678 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5679-dynamiclib -Wl,-single_module conftest.c" >&5
5680 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5681 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5682 _lt_result=$?
5683 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5684 lt_cv_apple_cc_single_mod=yes
5685 else
5686 cat conftest.err >&5
5687 fi
5688 rm -rf libconftest.dylib*
5689 rm -f conftest.*
5690 fi
5691fi
drh8b727472009-01-19 18:18:40 +00005692{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5693$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5694 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005696if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005697 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005698else
5699 lt_cv_ld_exported_symbols_list=no
5700 save_LDFLAGS=$LDFLAGS
5701 echo "_main" > conftest.sym
5702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5703 cat >conftest.$ac_ext <<_ACEOF
5704/* confdefs.h. */
5705_ACEOF
5706cat confdefs.h >>conftest.$ac_ext
5707cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h. */
5709
5710int
5711main ()
5712{
5713
5714 ;
5715 return 0;
5716}
5717_ACEOF
5718rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005719if { (ac_try="$ac_link"
5720case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723esac
5724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725$as_echo "$ac_try_echo") >&5
5726 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00005727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest$ac_exeext && {
5736 test "$cross_compiling" = yes ||
5737 $as_test_x conftest$ac_exeext
5738 }; then
mlcreech636a9952008-05-05 22:52:56 +00005739 lt_cv_ld_exported_symbols_list=yes
5740else
drh8b727472009-01-19 18:18:40 +00005741 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00005742sed 's/^/| /' conftest.$ac_ext >&5
5743
drh8b727472009-01-19 18:18:40 +00005744 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005745fi
drh8b727472009-01-19 18:18:40 +00005746
5747rm -rf conftest.dSYM
5748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00005749 conftest$ac_exeext conftest.$ac_ext
5750 LDFLAGS="$save_LDFLAGS"
5751
5752fi
drh8b727472009-01-19 18:18:40 +00005753{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5754$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005755 case $host_os in
5756 rhapsody* | darwin1.[012])
5757 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5758 darwin1.*)
5759 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5760 darwin*) # darwin 5.x on
5761 # if running on 10.5 or later, the deployment target defaults
5762 # to the OS version, if on x86, and 10.4, the deployment
5763 # target defaults to 10.4. Don't you love it?
5764 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5765 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5766 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5767 10.[012]*)
5768 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5769 10.*)
5770 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5771 esac
5772 ;;
5773 esac
5774 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5775 _lt_dar_single_mod='$single_module'
5776 fi
5777 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5778 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5779 else
5780 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5781 fi
5782 if test "$DSYMUTIL" != ":"; then
5783 _lt_dsymutil='~$DSYMUTIL $lib || :'
5784 else
5785 _lt_dsymutil=
5786 fi
5787 ;;
5788 esac
5789
a.rottmann84e63352003-03-24 09:42:16 +00005790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh8b727472009-01-19 18:18:40 +00005795{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5796$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005797# On Suns, sometimes $CPP names a directory.
5798if test -n "$CPP" && test -d "$CPP"; then
5799 CPP=
5800fi
5801if test -z "$CPP"; then
5802 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005803 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005804else
a.rottmann84e63352003-03-24 09:42:16 +00005805 # Double quotes because CPP needs to be expanded
5806 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5807 do
5808 ac_preproc_ok=false
5809for ac_c_preproc_warn_flag in '' yes
5810do
5811 # Use a header file that comes with gcc, so configuring glibc
5812 # with a fresh cross-compiler works.
5813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814 # <limits.h> exists even on freestanding compilers.
5815 # On the NeXT, cc -E runs the code through the compiler's parser,
5816 # not just through cpp. "Syntax error" is here to catch this case.
5817 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005828 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005829_ACEOF
drh8b727472009-01-19 18:18:40 +00005830if { (ac_try="$ac_cpp conftest.$ac_ext"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
5837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } >/dev/null && {
5844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005847 :
5848else
drh8b727472009-01-19 18:18:40 +00005849 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 # Broken: fails on valid input.
5853continue
5854fi
drh8b727472009-01-19 18:18:40 +00005855
a.rottmann84e63352003-03-24 09:42:16 +00005856rm -f conftest.err conftest.$ac_ext
5857
drh8b727472009-01-19 18:18:40 +00005858 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005859 # can be detected and how.
5860 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005861/* confdefs.h. */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h. */
5866#include <ac_nonexistent.h>
5867_ACEOF
drh8b727472009-01-19 18:18:40 +00005868if { (ac_try="$ac_cpp conftest.$ac_ext"
5869case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872esac
5873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874$as_echo "$ac_try_echo") >&5
5875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev/null && {
5882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005885 # Broken: success on invalid input.
5886continue
5887else
drh8b727472009-01-19 18:18:40 +00005888 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005889sed 's/^/| /' conftest.$ac_ext >&5
5890
5891 # Passes both tests.
5892ac_preproc_ok=:
5893break
5894fi
drh8b727472009-01-19 18:18:40 +00005895
a.rottmann84e63352003-03-24 09:42:16 +00005896rm -f conftest.err conftest.$ac_ext
5897
5898done
5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900rm -f conftest.err conftest.$ac_ext
5901if $ac_preproc_ok; then
5902 break
5903fi
5904
5905 done
5906 ac_cv_prog_CPP=$CPP
5907
5908fi
5909 CPP=$ac_cv_prog_CPP
5910else
5911 ac_cv_prog_CPP=$CPP
5912fi
drh8b727472009-01-19 18:18:40 +00005913{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5914$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005915ac_preproc_ok=false
5916for ac_c_preproc_warn_flag in '' yes
5917do
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
5924 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h. */
5930#ifdef __STDC__
5931# include <limits.h>
5932#else
5933# include <assert.h>
5934#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005935 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005936_ACEOF
drh8b727472009-01-19 18:18:40 +00005937if { (ac_try="$ac_cpp conftest.$ac_ext"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
5944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } >/dev/null && {
5951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005954 :
5955else
drh8b727472009-01-19 18:18:40 +00005956 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 # Broken: fails on valid input.
5960continue
5961fi
drh8b727472009-01-19 18:18:40 +00005962
a.rottmann84e63352003-03-24 09:42:16 +00005963rm -f conftest.err conftest.$ac_ext
5964
drh8b727472009-01-19 18:18:40 +00005965 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005966 # can be detected and how.
5967 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005968/* confdefs.h. */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h. */
5973#include <ac_nonexistent.h>
5974_ACEOF
drh8b727472009-01-19 18:18:40 +00005975if { (ac_try="$ac_cpp conftest.$ac_ext"
5976case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979esac
5980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981$as_echo "$ac_try_echo") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005992 # Broken: success on invalid input.
5993continue
5994else
drh8b727472009-01-19 18:18:40 +00005995 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 # Passes both tests.
5999ac_preproc_ok=:
6000break
6001fi
drh8b727472009-01-19 18:18:40 +00006002
a.rottmann84e63352003-03-24 09:42:16 +00006003rm -f conftest.err conftest.$ac_ext
6004
6005done
6006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007rm -f conftest.err conftest.$ac_ext
6008if $ac_preproc_ok; then
6009 :
6010else
drh934c5442009-04-13 09:09:24 +00006011 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00006012See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00006013$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00006014See \`config.log' for more details." >&2;}
drh934c5442009-04-13 09:09:24 +00006015 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006016fi
6017
6018ac_ext=c
6019ac_cpp='$CPP $CPPFLAGS'
6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
6024
drh8b727472009-01-19 18:18:40 +00006025{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6026$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006027if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006028 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006029else
6030 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006031/* confdefs.h. */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h. */
6036#include <stdlib.h>
6037#include <stdarg.h>
6038#include <string.h>
6039#include <float.h>
6040
6041int
6042main ()
6043{
6044
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006050if { (ac_try="$ac_compile"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6056$as_echo "$ac_try_echo") >&5
6057 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006058 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006059 grep -v '^ *+' conftest.er1 >conftest.err
6060 rm -f conftest.er1
6061 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && {
6064 test -z "$ac_c_werror_flag" ||
6065 test ! -s conftest.err
6066 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006067 ac_cv_header_stdc=yes
6068else
drh8b727472009-01-19 18:18:40 +00006069 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006070sed 's/^/| /' conftest.$ac_ext >&5
6071
drh8b727472009-01-19 18:18:40 +00006072 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006073fi
drh8b727472009-01-19 18:18:40 +00006074
6075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006076
6077if test $ac_cv_header_stdc = yes; then
6078 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6079 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085#include <string.h>
6086
6087_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6089 $EGREP "memchr" >/dev/null 2>&1; then
6090 :
6091else
6092 ac_cv_header_stdc=no
6093fi
6094rm -f conftest*
6095
6096fi
6097
6098if test $ac_cv_header_stdc = yes; then
6099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6100 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106#include <stdlib.h>
6107
6108_ACEOF
6109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6110 $EGREP "free" >/dev/null 2>&1; then
6111 :
6112else
6113 ac_cv_header_stdc=no
6114fi
6115rm -f conftest*
6116
6117fi
6118
6119if test $ac_cv_header_stdc = yes; then
6120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6121 if test "$cross_compiling" = yes; then
6122 :
6123else
6124 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006125/* confdefs.h. */
6126_ACEOF
6127cat confdefs.h >>conftest.$ac_ext
6128cat >>conftest.$ac_ext <<_ACEOF
6129/* end confdefs.h. */
6130#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006131#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006132#if ((' ' & 0x0FF) == 0x020)
6133# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6134# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6135#else
6136# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006137 (('a' <= (c) && (c) <= 'i') \
6138 || ('j' <= (c) && (c) <= 'r') \
6139 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006140# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6141#endif
6142
6143#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6144int
6145main ()
6146{
6147 int i;
6148 for (i = 0; i < 256; i++)
6149 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006150 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006151 return 2;
6152 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006153}
6154_ACEOF
6155rm -f conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00006156if { (ac_try="$ac_link"
6157case "(($ac_try" in
6158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6159 *) ac_try_echo=$ac_try;;
6160esac
6161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6162$as_echo "$ac_try_echo") >&5
6163 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006164 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh8b727472009-01-19 18:18:40 +00006167 { (case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
6171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172$as_echo "$ac_try_echo") >&5
6173 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006174 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006176 (exit $ac_status); }; }; then
6177 :
6178else
drh8b727472009-01-19 18:18:40 +00006179 $as_echo "$as_me: program exited with status $ac_status" >&5
6180$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183( exit $ac_status )
6184ac_cv_header_stdc=no
6185fi
drh8b727472009-01-19 18:18:40 +00006186rm -rf conftest.dSYM
6187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6188fi
6189
6190
a.rottmann84e63352003-03-24 09:42:16 +00006191fi
6192fi
drh8b727472009-01-19 18:18:40 +00006193{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6194$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006195if test $ac_cv_header_stdc = yes; then
6196
6197cat >>confdefs.h <<\_ACEOF
6198#define STDC_HEADERS 1
6199_ACEOF
6200
6201fi
6202
6203# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006214 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006215do
drh8b727472009-01-19 18:18:40 +00006216as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6217{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6218$as_echo_n "checking for $ac_header... " >&6; }
6219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6220 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006221else
6222 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006223/* confdefs.h. */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h. */
6228$ac_includes_default
6229
6230#include <$ac_header>
6231_ACEOF
6232rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006233if { (ac_try="$ac_compile"
6234case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239$as_echo "$ac_try_echo") >&5
6240 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006241 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006250 eval "$as_ac_Header=yes"
6251else
drh8b727472009-01-19 18:18:40 +00006252 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006253sed 's/^/| /' conftest.$ac_ext >&5
6254
drh8b727472009-01-19 18:18:40 +00006255 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006256fi
drh8b727472009-01-19 18:18:40 +00006257
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006259fi
drh8b727472009-01-19 18:18:40 +00006260ac_res=`eval 'as_val=${'$as_ac_Header'}
6261 $as_echo "$as_val"'`
6262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6263$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +00006264if test `eval 'as_val=${'$as_ac_Header'}
6265 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006266 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006268_ACEOF
6269
6270fi
6271
6272done
6273
6274
6275
6276for ac_header in dlfcn.h
6277do
drh8b727472009-01-19 18:18:40 +00006278as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6279{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6280$as_echo_n "checking for $ac_header... " >&6; }
6281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006283else
mlcreech636a9952008-05-05 22:52:56 +00006284 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006285/* confdefs.h. */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h. */
6290$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006291
a.rottmann84e63352003-03-24 09:42:16 +00006292#include <$ac_header>
6293_ACEOF
6294rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006295if { (ac_try="$ac_compile"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6301$as_echo "$ac_try_echo") >&5
6302 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006303 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && {
6309 test -z "$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6311 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006312 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006313else
drh8b727472009-01-19 18:18:40 +00006314 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006315sed 's/^/| /' conftest.$ac_ext >&5
6316
drh8b727472009-01-19 18:18:40 +00006317 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006318fi
drh8b727472009-01-19 18:18:40 +00006319
6320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006321fi
drh8b727472009-01-19 18:18:40 +00006322ac_res=`eval 'as_val=${'$as_ac_Header'}
6323 $as_echo "$as_val"'`
6324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6325$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +00006326if test `eval 'as_val=${'$as_ac_Header'}
6327 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006328 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006330_ACEOF
6331
6332fi
6333
drh71eb93e2001-09-28 01:34:43 +00006334done
6335
drh71eb93e2001-09-28 01:34:43 +00006336
drh71eb93e2001-09-28 01:34:43 +00006337
mlcreech636a9952008-05-05 22:52:56 +00006338# Set options
mlcreech94984912008-03-04 19:03:08 +00006339
drh71eb93e2001-09-28 01:34:43 +00006340
drh71eb93e2001-09-28 01:34:43 +00006341
mlcreech636a9952008-05-05 22:52:56 +00006342 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006343
a.rottmann9bc8b932004-02-29 15:18:31 +00006344
mlcreech636a9952008-05-05 22:52:56 +00006345 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006346
a.rottmann9bc8b932004-02-29 15:18:31 +00006347
drh8b727472009-01-19 18:18:40 +00006348 # Check whether --enable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00006349if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006350 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006351 case $enableval in
6352 yes) enable_shared=yes ;;
6353 no) enable_shared=no ;;
6354 *)
6355 enable_shared=no
6356 # Look at the argument we got. We use all the common list separators.
6357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6358 for pkg in $enableval; do
6359 IFS="$lt_save_ifs"
6360 if test "X$pkg" = "X$p"; then
6361 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006362 fi
mlcreech636a9952008-05-05 22:52:56 +00006363 done
6364 IFS="$lt_save_ifs"
6365 ;;
6366 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006367else
mlcreech636a9952008-05-05 22:52:56 +00006368 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006369fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006370
mlcreech636a9952008-05-05 22:52:56 +00006371
6372
6373
6374
6375
6376
6377
drh8b727472009-01-19 18:18:40 +00006378
6379 # Check whether --enable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00006380if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006381 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006382 case $enableval in
6383 yes) enable_static=yes ;;
6384 no) enable_static=no ;;
6385 *)
6386 enable_static=no
6387 # Look at the argument we got. We use all the common list separators.
6388 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6389 for pkg in $enableval; do
6390 IFS="$lt_save_ifs"
6391 if test "X$pkg" = "X$p"; then
6392 enable_static=yes
6393 fi
6394 done
6395 IFS="$lt_save_ifs"
6396 ;;
6397 esac
6398else
6399 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006400fi
mlcreech636a9952008-05-05 22:52:56 +00006401
6402
6403
6404
6405
6406
6407
6408
6409
drh8b727472009-01-19 18:18:40 +00006410
6411# Check whether --with-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00006412if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006413 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006414else
6415 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006416fi
6417
mlcreech636a9952008-05-05 22:52:56 +00006418
6419test -z "$pic_mode" && pic_mode=default
6420
6421
6422
6423
6424
6425
6426
drh8b727472009-01-19 18:18:40 +00006427 # Check whether --enable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00006428if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006429 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006430 case $enableval in
6431 yes) enable_fast_install=yes ;;
6432 no) enable_fast_install=no ;;
6433 *)
6434 enable_fast_install=no
6435 # Look at the argument we got. We use all the common list separators.
6436 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6437 for pkg in $enableval; do
6438 IFS="$lt_save_ifs"
6439 if test "X$pkg" = "X$p"; then
6440 enable_fast_install=yes
6441 fi
6442 done
6443 IFS="$lt_save_ifs"
6444 ;;
6445 esac
6446else
6447 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006448fi
6449
mlcreech636a9952008-05-05 22:52:56 +00006450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460# This can be used to rebuild libtool when needed
6461LIBTOOL_DEPS="$ltmain"
6462
6463# Always use our own libtool.
6464LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490test -z "$LN_S" && LN_S="ln -s"
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505if test -n "${ZSH_VERSION+set}" ; then
6506 setopt NO_GLOB_SUBST
6507fi
6508
drh8b727472009-01-19 18:18:40 +00006509{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6510$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006511if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006512 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006513else
6514 rm -f .libs 2>/dev/null
6515mkdir .libs 2>/dev/null
6516if test -d .libs; then
6517 lt_cv_objdir=.libs
6518else
6519 # MS-DOS does not allow filenames that begin with a dot.
6520 lt_cv_objdir=_libs
6521fi
6522rmdir .libs 2>/dev/null
6523fi
drh8b727472009-01-19 18:18:40 +00006524{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6525$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006526objdir=$lt_cv_objdir
6527
6528
6529
6530
6531
mlcreech636a9952008-05-05 22:52:56 +00006532cat >>confdefs.h <<_ACEOF
6533#define LT_OBJDIR "$lt_cv_objdir/"
6534_ACEOF
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
a.rottmann9bc8b932004-02-29 15:18:31 +00006552case $host_os in
6553aix3*)
6554 # AIX sometimes has problems with the GCC collect2 program. For some
6555 # reason, if we set the COLLECT_NAMES environment variable, the problems
6556 # vanish in a puff of smoke.
6557 if test "X${COLLECT_NAMES+set}" != Xset; then
6558 COLLECT_NAMES=
6559 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006560 fi
6561 ;;
6562esac
6563
a.rottmann9bc8b932004-02-29 15:18:31 +00006564# Sed substitution that helps us do robust quoting. It backslashifies
6565# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006566sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006567
6568# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006569double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006570
6571# Sed substitution to delay expansion of an escaped shell variable in a
6572# double_quote_subst'ed string.
6573delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574
mlcreech636a9952008-05-05 22:52:56 +00006575# Sed substitution to delay expansion of an escaped single quote.
6576delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6577
a.rottmann9bc8b932004-02-29 15:18:31 +00006578# Sed substitution to avoid accidental globbing in evaled expressions
6579no_glob_subst='s/\*/\\\*/g'
6580
a.rottmann9bc8b932004-02-29 15:18:31 +00006581# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006582ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006583can_build_shared=yes
6584
vapier7f19c022007-02-17 14:46:31 +00006585# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006586# which needs '.lib').
6587libext=a
mlcreech636a9952008-05-05 22:52:56 +00006588
a.rottmann9bc8b932004-02-29 15:18:31 +00006589with_gnu_ld="$lt_cv_prog_gnu_ld"
6590
a.rottmann84e63352003-03-24 09:42:16 +00006591old_CC="$CC"
6592old_CFLAGS="$CFLAGS"
6593
6594# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006595test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006596test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006597test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006598test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006599test -z "$ac_objext" && ac_objext=o
6600
vapier7f19c022007-02-17 14:46:31 +00006601for cc_temp in $compiler""; do
6602 case $cc_temp in
6603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6605 \-*) ;;
6606 *) break;;
6607 esac
6608done
mlcreech636a9952008-05-05 22:52:56 +00006609cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006610
6611
a.rottmann9bc8b932004-02-29 15:18:31 +00006612# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006613test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006614case $deplibs_check_method in
6615file_magic*)
6616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh8b727472009-01-19 18:18:40 +00006617 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6618$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006620 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006621else
a.rottmann9bc8b932004-02-29 15:18:31 +00006622 case $MAGIC_CMD in
6623[\\/*] | ?:[\\/]*)
6624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6625 ;;
6626*)
6627 lt_save_MAGIC_CMD="$MAGIC_CMD"
6628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6630 for ac_dir in $ac_dummy; do
6631 IFS="$lt_save_ifs"
6632 test -z "$ac_dir" && ac_dir=.
6633 if test -f $ac_dir/${ac_tool_prefix}file; then
6634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6635 if test -n "$file_magic_test_file"; then
6636 case $deplibs_check_method in
6637 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006638 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6641 $EGREP "$file_magic_regex" > /dev/null; then
6642 :
6643 else
mlcreech636a9952008-05-05 22:52:56 +00006644 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006645
a.rottmann9bc8b932004-02-29 15:18:31 +00006646*** Warning: the command libtool uses to detect shared libraries,
6647*** $file_magic_cmd, produces output that libtool cannot recognize.
6648*** The result is that libtool may fail to recognize shared libraries
6649*** as such. This will affect the creation of libtool libraries that
6650*** depend on shared libraries, but programs linked with such libtool
6651*** libraries will work regardless of this problem. Nevertheless, you
6652*** may want to report the problem to your system manager and/or to
6653*** bug-libtool@gnu.org
6654
mlcreech636a9952008-05-05 22:52:56 +00006655_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006656 fi ;;
6657 esac
6658 fi
6659 break
6660 fi
6661 done
6662 IFS="$lt_save_ifs"
6663 MAGIC_CMD="$lt_save_MAGIC_CMD"
6664 ;;
6665esac
6666fi
6667
6668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6669if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006670 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6671$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006672else
drh8b727472009-01-19 18:18:40 +00006673 { $as_echo "$as_me:$LINENO: result: no" >&5
6674$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006675fi
6676
mlcreech636a9952008-05-05 22:52:56 +00006677
6678
6679
6680
a.rottmann9bc8b932004-02-29 15:18:31 +00006681if test -z "$lt_cv_path_MAGIC_CMD"; then
6682 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00006683 { $as_echo "$as_me:$LINENO: checking for file" >&5
6684$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006685if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006686 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006687else
6688 case $MAGIC_CMD in
6689[\\/*] | ?:[\\/]*)
6690 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6691 ;;
6692*)
6693 lt_save_MAGIC_CMD="$MAGIC_CMD"
6694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6695 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6696 for ac_dir in $ac_dummy; do
6697 IFS="$lt_save_ifs"
6698 test -z "$ac_dir" && ac_dir=.
6699 if test -f $ac_dir/file; then
6700 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6701 if test -n "$file_magic_test_file"; then
6702 case $deplibs_check_method in
6703 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006704 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006705 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6706 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6707 $EGREP "$file_magic_regex" > /dev/null; then
6708 :
6709 else
mlcreech636a9952008-05-05 22:52:56 +00006710 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006711
6712*** Warning: the command libtool uses to detect shared libraries,
6713*** $file_magic_cmd, produces output that libtool cannot recognize.
6714*** The result is that libtool may fail to recognize shared libraries
6715*** as such. This will affect the creation of libtool libraries that
6716*** depend on shared libraries, but programs linked with such libtool
6717*** libraries will work regardless of this problem. Nevertheless, you
6718*** may want to report the problem to your system manager and/or to
6719*** bug-libtool@gnu.org
6720
mlcreech636a9952008-05-05 22:52:56 +00006721_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006722 fi ;;
6723 esac
6724 fi
6725 break
6726 fi
6727 done
6728 IFS="$lt_save_ifs"
6729 MAGIC_CMD="$lt_save_MAGIC_CMD"
6730 ;;
6731esac
6732fi
6733
6734MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6735if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006736 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6737$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006738else
drh8b727472009-01-19 18:18:40 +00006739 { $as_echo "$as_me:$LINENO: result: no" >&5
6740$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006741fi
6742
mlcreech636a9952008-05-05 22:52:56 +00006743
a.rottmann9bc8b932004-02-29 15:18:31 +00006744 else
6745 MAGIC_CMD=:
6746 fi
6747fi
6748
6749 fi
6750 ;;
6751esac
6752
a.rottmann9bc8b932004-02-29 15:18:31 +00006753# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006754
a.rottmann9bc8b932004-02-29 15:18:31 +00006755lt_save_CC="$CC"
6756ac_ext=c
6757ac_cpp='$CPP $CPPFLAGS'
6758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762
6763# Source file extension for C test sources.
6764ac_ext=c
6765
6766# Object file extension for compiled C test sources.
6767objext=o
6768objext=$objext
6769
6770# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006771lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006772
6773# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006774lt_simple_link_test_code='int main(){return(0);}'
6775
6776
6777
6778
6779
a.rottmann9bc8b932004-02-29 15:18:31 +00006780
6781
6782# If no C compiler was specified, use CC.
6783LTCC=${LTCC-"$CC"}
6784
vapier7f19c022007-02-17 14:46:31 +00006785# If no C compiler flags were specified, use CFLAGS.
6786LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6787
a.rottmann9bc8b932004-02-29 15:18:31 +00006788# Allow CC to be a program name with arguments.
6789compiler=$CC
6790
mlcreech636a9952008-05-05 22:52:56 +00006791# Save the default compiler, since it gets overwritten when the other
6792# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6793compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006794
vapier7f19c022007-02-17 14:46:31 +00006795# save warnings/boilerplate of simple test code
6796ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006797echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6799_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006800$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006801
vapier7f19c022007-02-17 14:46:31 +00006802ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006803echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6805_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006806$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006807
6808
mlcreech636a9952008-05-05 22:52:56 +00006809if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006810
6811lt_prog_compiler_no_builtin_flag=
6812
6813if test "$GCC" = yes; then
6814 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6815
drh8b727472009-01-19 18:18:40 +00006816 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6817$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006818if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006819 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006820else
6821 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006822 ac_outfile=conftest.$ac_objext
6823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006824 lt_compiler_flag="-fno-rtti -fno-exceptions"
6825 # Insert the option either (1) after the last *FLAGS variable, or
6826 # (2) before a word containing "conftest.", or (3) at the end.
6827 # Note that $ac_compile itself does not contain backslashes and begins
6828 # with a dollar sign (not a hyphen), so the echo should work correctly.
6829 # The option is referenced via a variable to avoid confusing sed.
6830 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6833 -e 's:$: $lt_compiler_flag:'`
drh697e9652010-12-21 00:20:53 +00006834 (eval echo "\"\$as_me:6834: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006835 (eval "$lt_compile" 2>conftest.err)
6836 ac_status=$?
6837 cat conftest.err >&5
drh697e9652010-12-21 00:20:53 +00006838 echo "$as_me:6838: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006839 if (exit $ac_status) && test -s "$ac_outfile"; then
6840 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006841 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006842 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006845 lt_cv_prog_compiler_rtti_exceptions=yes
6846 fi
6847 fi
mlcreech636a9952008-05-05 22:52:56 +00006848 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006849
6850fi
drh8b727472009-01-19 18:18:40 +00006851{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6852$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006853
6854if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6855 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6856else
6857 :
6858fi
6859
6860fi
6861
mlcreech636a9952008-05-05 22:52:56 +00006862
6863
6864
6865
6866
6867 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006868lt_prog_compiler_pic=
6869lt_prog_compiler_static=
6870
drh8b727472009-01-19 18:18:40 +00006871{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6872$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006873
drh71eb93e2001-09-28 01:34:43 +00006874 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006875 lt_prog_compiler_wl='-Wl,'
6876 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006877
6878 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 aix*)
6880 # All AIX code is PIC.
6881 if test "$host_cpu" = ia64; then
6882 # AIX 5 now supports IA64 processor
6883 lt_prog_compiler_static='-Bstatic'
6884 fi
drh71eb93e2001-09-28 01:34:43 +00006885 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006886
drh71eb93e2001-09-28 01:34:43 +00006887 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006888 case $host_cpu in
6889 powerpc)
6890 # see comment about AmigaOS4 .so support
6891 lt_prog_compiler_pic='-fPIC'
6892 ;;
6893 m68k)
6894 # FIXME: we need at least 68020 code to build shared libraries, but
6895 # adding the `-m68020' flag to GCC prevents building anything better,
6896 # like `-m68040'.
6897 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6898 ;;
6899 esac
drh71eb93e2001-09-28 01:34:43 +00006900 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006901
mlcreech636a9952008-05-05 22:52:56 +00006902 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006903 # PIC is the default for these OSes.
6904 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006905
vapier6acb2cf2009-01-28 04:46:28 +00006906 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006907 # This hack is so that the source file can tell whether it is being
6908 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6910 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 lt_prog_compiler_pic='-DDLL_EXPORT'
6912 ;;
6913
drh71eb93e2001-09-28 01:34:43 +00006914 darwin* | rhapsody*)
6915 # PIC is the default on this platform
6916 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006917 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006918 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006919
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006921 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6922 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6923 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006924 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006925 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006926 # +Z the default
6927 ;;
6928 *)
6929 lt_prog_compiler_pic='-fPIC'
6930 ;;
6931 esac
6932 ;;
6933
mlcreech636a9952008-05-05 22:52:56 +00006934 interix[3-9]*)
6935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6936 # Instead, we relocate shared libraries at runtime.
6937 ;;
6938
6939 msdosdjgpp*)
6940 # Just because we use GCC doesn't mean we suddenly get shared libraries
6941 # on systems that don't support them.
6942 lt_prog_compiler_can_build_shared=no
6943 enable_shared=no
6944 ;;
6945
6946 *nto* | *qnx*)
6947 # QNX uses GNU C++, but need to define -shared option too, otherwise
6948 # it will coredump.
6949 lt_prog_compiler_pic='-fPIC -shared'
6950 ;;
6951
6952 sysv4*MP*)
6953 if test -d /usr/nec; then
6954 lt_prog_compiler_pic=-Kconform_pic
6955 fi
6956 ;;
6957
drh71eb93e2001-09-28 01:34:43 +00006958 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006959 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006960 ;;
6961 esac
6962 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006964 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006965 aix*)
6966 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006967 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006968 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006969 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006970 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006971 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006972 fi
6973 ;;
6974
vapier6acb2cf2009-01-28 04:46:28 +00006975 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006976 # This hack is so that the source file can tell whether it is being
6977 # built for inclusion in a dll (and should export symbols for example).
6978 lt_prog_compiler_pic='-DDLL_EXPORT'
6979 ;;
6980
a.rottmann84e63352003-03-24 09:42:16 +00006981 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006982 lt_prog_compiler_wl='-Wl,'
6983 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6984 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006985 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006986 hppa*64*|ia64*)
6987 # +Z the default
6988 ;;
6989 *)
6990 lt_prog_compiler_pic='+Z'
6991 ;;
6992 esac
6993 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6994 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006995 ;;
6996
6997 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006999 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00007000 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007001 ;;
7002
mlcreech636a9952008-05-05 22:52:56 +00007003 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00007004 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00007005 # old Intel for x86_64 which still supported -KPIC.
7006 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007007 lt_prog_compiler_wl='-Wl,'
7008 lt_prog_compiler_pic='-KPIC'
7009 lt_prog_compiler_static='-static'
7010 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007011 # icc used to be incompatible with GCC.
7012 # ICC 10 doesn't accept -KPIC any more.
7013 icc* | ifort*)
7014 lt_prog_compiler_wl='-Wl,'
7015 lt_prog_compiler_pic='-fPIC'
7016 lt_prog_compiler_static='-static'
7017 ;;
7018 # Lahey Fortran 8.1.
7019 lf95*)
7020 lt_prog_compiler_wl='-Wl,'
7021 lt_prog_compiler_pic='--shared'
7022 lt_prog_compiler_static='--static'
7023 ;;
vapier7f19c022007-02-17 14:46:31 +00007024 pgcc* | pgf77* | pgf90* | pgf95*)
7025 # Portland Group compilers (*not* the Pentium gcc compiler,
7026 # which looks to be a dead project)
7027 lt_prog_compiler_wl='-Wl,'
7028 lt_prog_compiler_pic='-fpic'
7029 lt_prog_compiler_static='-Bstatic'
7030 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007031 ccc*)
7032 lt_prog_compiler_wl='-Wl,'
7033 # All Alpha code is PIC.
7034 lt_prog_compiler_static='-non_shared'
7035 ;;
mlcreech636a9952008-05-05 22:52:56 +00007036 xl*)
7037 # IBM XL C 8.0/Fortran 10.1 on PPC
7038 lt_prog_compiler_wl='-Wl,'
7039 lt_prog_compiler_pic='-qpic'
7040 lt_prog_compiler_static='-qstaticlink'
7041 ;;
7042 *)
7043 case `$CC -V 2>&1 | sed 5q` in
7044 *Sun\ C*)
7045 # Sun C 5.9
7046 lt_prog_compiler_pic='-KPIC'
7047 lt_prog_compiler_static='-Bstatic'
7048 lt_prog_compiler_wl='-Wl,'
7049 ;;
7050 *Sun\ F*)
7051 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7052 lt_prog_compiler_pic='-KPIC'
7053 lt_prog_compiler_static='-Bstatic'
7054 lt_prog_compiler_wl=''
7055 ;;
7056 esac
7057 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007058 esac
drh71eb93e2001-09-28 01:34:43 +00007059 ;;
7060
mlcreech636a9952008-05-05 22:52:56 +00007061 newsos6)
7062 lt_prog_compiler_pic='-KPIC'
7063 lt_prog_compiler_static='-Bstatic'
7064 ;;
7065
7066 *nto* | *qnx*)
7067 # QNX uses GNU C++, but need to define -shared option too, otherwise
7068 # it will coredump.
7069 lt_prog_compiler_pic='-fPIC -shared'
7070 ;;
7071
drh71eb93e2001-09-28 01:34:43 +00007072 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007073 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007074 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007075 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007076 ;;
7077
mlcreech636a9952008-05-05 22:52:56 +00007078 rdos*)
7079 lt_prog_compiler_static='-non_shared'
7080 ;;
7081
drh71eb93e2001-09-28 01:34:43 +00007082 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007083 lt_prog_compiler_pic='-KPIC'
7084 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007085 case $cc_basename in
7086 f77* | f90* | f95*)
7087 lt_prog_compiler_wl='-Qoption ld ';;
7088 *)
7089 lt_prog_compiler_wl='-Wl,';;
7090 esac
drh71eb93e2001-09-28 01:34:43 +00007091 ;;
7092
7093 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007094 lt_prog_compiler_wl='-Qoption ld '
7095 lt_prog_compiler_pic='-PIC'
7096 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007097 ;;
7098
vapier7f19c022007-02-17 14:46:31 +00007099 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007100 lt_prog_compiler_wl='-Wl,'
7101 lt_prog_compiler_pic='-KPIC'
7102 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007103 ;;
7104
7105 sysv4*MP*)
7106 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 lt_prog_compiler_pic='-Kconform_pic'
7108 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007109 fi
7110 ;;
7111
vapier7f19c022007-02-17 14:46:31 +00007112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7113 lt_prog_compiler_wl='-Wl,'
7114 lt_prog_compiler_pic='-KPIC'
7115 lt_prog_compiler_static='-Bstatic'
7116 ;;
7117
7118 unicos*)
7119 lt_prog_compiler_wl='-Wl,'
7120 lt_prog_compiler_can_build_shared=no
7121 ;;
7122
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 uts4*)
7124 lt_prog_compiler_pic='-pic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127
drh71eb93e2001-09-28 01:34:43 +00007128 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007129 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007130 ;;
7131 esac
7132 fi
7133
mlcreech636a9952008-05-05 22:52:56 +00007134case $host_os in
7135 # For platforms which do not support PIC, -DPIC is meaningless:
7136 *djgpp*)
7137 lt_prog_compiler_pic=
7138 ;;
7139 *)
7140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141 ;;
7142esac
drh8b727472009-01-19 18:18:40 +00007143{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7144$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007145
7146
7147
7148
7149
drh71eb93e2001-09-28 01:34:43 +00007150
a.rottmann9bc8b932004-02-29 15:18:31 +00007151#
7152# Check to make sure the PIC flag actually works.
7153#
7154if test -n "$lt_prog_compiler_pic"; then
drh8b727472009-01-19 18:18:40 +00007155 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7156$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007157if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007158 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007159else
mlcreech636a9952008-05-05 22:52:56 +00007160 lt_cv_prog_compiler_pic_works=no
7161 ac_outfile=conftest.$ac_objext
7162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7164 # Insert the option either (1) after the last *FLAGS variable, or
7165 # (2) before a word containing "conftest.", or (3) at the end.
7166 # Note that $ac_compile itself does not contain backslashes and begins
7167 # with a dollar sign (not a hyphen), so the echo should work correctly.
7168 # The option is referenced via a variable to avoid confusing sed.
7169 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172 -e 's:$: $lt_compiler_flag:'`
drh697e9652010-12-21 00:20:53 +00007173 (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007174 (eval "$lt_compile" 2>conftest.err)
7175 ac_status=$?
7176 cat conftest.err >&5
drh697e9652010-12-21 00:20:53 +00007177 echo "$as_me:7177: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007178 if (exit $ac_status) && test -s "$ac_outfile"; then
7179 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007180 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007181 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007184 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007185 fi
7186 fi
mlcreech636a9952008-05-05 22:52:56 +00007187 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007188
a.rottmann9bc8b932004-02-29 15:18:31 +00007189fi
drh8b727472009-01-19 18:18:40 +00007190{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7191$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007192
mlcreech636a9952008-05-05 22:52:56 +00007193if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007194 case $lt_prog_compiler_pic in
7195 "" | " "*) ;;
7196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7197 esac
drh71eb93e2001-09-28 01:34:43 +00007198else
a.rottmann9bc8b932004-02-29 15:18:31 +00007199 lt_prog_compiler_pic=
7200 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007201fi
7202
a.rottmann84e63352003-03-24 09:42:16 +00007203fi
mlcreech636a9952008-05-05 22:52:56 +00007204
7205
7206
7207
7208
a.rottmann84e63352003-03-24 09:42:16 +00007209
vapier7f19c022007-02-17 14:46:31 +00007210#
7211# Check to make sure the static flag actually works.
7212#
7213wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +00007214{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7215$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007216if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007217 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007218else
mlcreech636a9952008-05-05 22:52:56 +00007219 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007220 save_LDFLAGS="$LDFLAGS"
7221 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007222 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007223 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7224 # The linker can only warn and ignore the option if not recognized
7225 # So say no if there are warnings
7226 if test -s conftest.err; then
7227 # Append any errors to the config.log.
7228 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007229 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7231 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007232 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007233 fi
7234 else
mlcreech636a9952008-05-05 22:52:56 +00007235 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007236 fi
7237 fi
mlcreech636a9952008-05-05 22:52:56 +00007238 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007239 LDFLAGS="$save_LDFLAGS"
7240
7241fi
drh8b727472009-01-19 18:18:40 +00007242{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7243$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007244
mlcreech636a9952008-05-05 22:52:56 +00007245if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007246 :
7247else
7248 lt_prog_compiler_static=
7249fi
7250
7251
mlcreech636a9952008-05-05 22:52:56 +00007252
7253
7254
7255
7256
drh8b727472009-01-19 18:18:40 +00007257 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007259if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007260 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007261else
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007263 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 mkdir conftest
7265 cd conftest
7266 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007268
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 lt_compiler_flag="-o out/conftest2.$ac_objext"
7270 # Insert the option either (1) after the last *FLAGS variable, or
7271 # (2) before a word containing "conftest.", or (3) at the end.
7272 # Note that $ac_compile itself does not contain backslashes and begins
7273 # with a dollar sign (not a hyphen), so the echo should work correctly.
7274 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7277 -e 's:$: $lt_compiler_flag:'`
drh697e9652010-12-21 00:20:53 +00007278 (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007279 (eval "$lt_compile" 2>out/conftest.err)
7280 ac_status=$?
7281 cat out/conftest.err >&5
drh697e9652010-12-21 00:20:53 +00007282 echo "$as_me:7282: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7284 then
7285 # The compiler can only warn and ignore the option if not recognized
7286 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007290 lt_cv_prog_compiler_c_o=yes
7291 fi
7292 fi
vapier7f19c022007-02-17 14:46:31 +00007293 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007294 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007295 # SGI C++ compiler will create directory out/ii_files/ for
7296 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7298 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007299 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007300 $RM -r conftest
7301 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007302
7303fi
drh8b727472009-01-19 18:18:40 +00007304{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7305$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007306
7307
7308
7309
7310
7311
drh8b727472009-01-19 18:18:40 +00007312 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7313$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007314if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007315 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007316else
7317 lt_cv_prog_compiler_c_o=no
7318 $RM -r conftest 2>/dev/null
7319 mkdir conftest
7320 cd conftest
7321 mkdir out
7322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323
7324 lt_compiler_flag="-o out/conftest2.$ac_objext"
7325 # Insert the option either (1) after the last *FLAGS variable, or
7326 # (2) before a word containing "conftest.", or (3) at the end.
7327 # Note that $ac_compile itself does not contain backslashes and begins
7328 # with a dollar sign (not a hyphen), so the echo should work correctly.
7329 lt_compile=`echo "$ac_compile" | $SED \
7330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7332 -e 's:$: $lt_compiler_flag:'`
drh697e9652010-12-21 00:20:53 +00007333 (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007334 (eval "$lt_compile" 2>out/conftest.err)
7335 ac_status=$?
7336 cat out/conftest.err >&5
drh697e9652010-12-21 00:20:53 +00007337 echo "$as_me:7337: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7339 then
7340 # The compiler can only warn and ignore the option if not recognized
7341 # So say no if there are warnings
7342 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7345 lt_cv_prog_compiler_c_o=yes
7346 fi
7347 fi
7348 chmod u+w . 2>&5
7349 $RM conftest*
7350 # SGI C++ compiler will create directory out/ii_files/ for
7351 # template instantiation
7352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7353 $RM out/* && rmdir out
7354 cd ..
7355 $RM -r conftest
7356 $RM conftest*
7357
7358fi
drh8b727472009-01-19 18:18:40 +00007359{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7360$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007361
7362
drh71eb93e2001-09-28 01:34:43 +00007363
a.rottmann84e63352003-03-24 09:42:16 +00007364
drh71eb93e2001-09-28 01:34:43 +00007365hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007366if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007367 # do not overwrite the value of need_locks provided by the user
drh8b727472009-01-19 18:18:40 +00007368 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7369$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007370 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007371 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7373 touch conftest.a
7374 ln conftest.a conftest.b 2>&5 || hard_links=no
7375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh8b727472009-01-19 18:18:40 +00007376 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7377$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007378 if test "$hard_links" = no; then
drh8b727472009-01-19 18:18:40 +00007379 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7380$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007381 need_locks=warn
7382 fi
7383else
7384 need_locks=no
7385fi
7386
mlcreech636a9952008-05-05 22:52:56 +00007387
7388
7389
7390
7391
drh8b727472009-01-19 18:18:40 +00007392 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7393$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007394
7395 runpath_var=
7396 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007397 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007398 archive_cmds=
7399 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007400 compiler_needs_object=no
7401 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007402 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007403 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7404 hardcode_automatic=no
7405 hardcode_direct=no
7406 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007407 hardcode_libdir_flag_spec=
7408 hardcode_libdir_flag_spec_ld=
7409 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007410 hardcode_minus_L=no
7411 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007412 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007413 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007414 module_cmds=
7415 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007416 old_archive_from_new_cmds=
7417 old_archive_from_expsyms_cmds=
7418 thread_safe_flag_spec=
7419 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007420 # include_expsyms should be a list of space-separated symbols to be *always*
7421 # included in the symbol list
7422 include_expsyms=
7423 # exclude_expsyms can be an extended regexp of symbols to exclude
7424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007427 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429 # platforms (ab)use it in PIC code, but their linkers get confused if
7430 # the symbol is explicitly referenced. Since portable code cannot
7431 # rely on this symbol name, it's probably fine to never include it in
7432 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007433 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007434 extract_expsyms_cmds=
7435
7436 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007437 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007438 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7439 # When not using gcc, we currently assume that we are using
7440 # Microsoft Visual C++.
7441 if test "$GCC" != yes; then
7442 with_gnu_ld=no
7443 fi
7444 ;;
vapier7f19c022007-02-17 14:46:31 +00007445 interix*)
7446 # we just hope/assume this is gcc and not c89 (= MSVC++)
7447 with_gnu_ld=yes
7448 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007449 openbsd*)
7450 with_gnu_ld=no
7451 ;;
7452 esac
7453
7454 ld_shlibs=yes
7455 if test "$with_gnu_ld" = yes; then
7456 # If archive_cmds runs LD, not CC, wlarc should be empty
7457 wlarc='${wl}'
7458
vapier7f19c022007-02-17 14:46:31 +00007459 # Set some defaults for GNU ld with shared library support. These
7460 # are reset later if shared libraries are not supported. Putting them
7461 # here allows them to be overridden if necessary.
7462 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007464 export_dynamic_flag_spec='${wl}--export-dynamic'
7465 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007466 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7467 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7468 else
7469 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007470 fi
7471 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007472 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007473 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7476 *\ 2.11.*) ;; # other 2.11 versions
7477 *) supports_anon_versioning=yes ;;
7478 esac
7479
a.rottmann9bc8b932004-02-29 15:18:31 +00007480 # See if GNU ld supports shared libraries.
7481 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007482 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007483 # On AIX/PPC, the GNU linker is very broken
7484 if test "$host_cpu" != ia64; then
7485 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007486 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007487
7488*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7489*** to be unable to reliably create shared libraries on AIX.
7490*** Therefore, libtool is disabling shared libraries support. If you
7491*** really care for shared libraries, you may want to modify your PATH
7492*** so that a non-GNU linker is found, and then restart.
7493
mlcreech636a9952008-05-05 22:52:56 +00007494_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007495 fi
7496 ;;
7497
7498 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007499 case $host_cpu in
7500 powerpc)
7501 # see comment about AmigaOS4 .so support
7502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7503 archive_expsym_cmds=''
7504 ;;
7505 m68k)
7506 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)'
7507 hardcode_libdir_flag_spec='-L$libdir'
7508 hardcode_minus_L=yes
7509 ;;
7510 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007511 ;;
7512
7513 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007515 allow_undefined_flag=unsupported
7516 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7517 # support --undefined. This deserves some investigation. FIXME
7518 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519 else
7520 ld_shlibs=no
7521 fi
7522 ;;
7523
vapier6acb2cf2009-01-28 04:46:28 +00007524 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007525 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007526 # as there is no search path for DLLs.
7527 hardcode_libdir_flag_spec='-L$libdir'
7528 allow_undefined_flag=unsupported
7529 always_export_symbols=no
7530 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007531 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 +00007532
mlcreech636a9952008-05-05 22:52:56 +00007533 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007534 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 +00007535 # If the export-symbols file already is a .def file (1st line
7536 # is EXPORTS), use it as is; otherwise, prepend...
7537 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7538 cp $export_symbols $output_objdir/$soname.def;
7539 else
7540 echo EXPORTS > $output_objdir/$soname.def;
7541 cat $export_symbols >> $output_objdir/$soname.def;
7542 fi~
vapier7f19c022007-02-17 14:46:31 +00007543 $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 +00007544 else
7545 ld_shlibs=no
7546 fi
7547 ;;
7548
mlcreech636a9952008-05-05 22:52:56 +00007549 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007550 hardcode_direct=no
7551 hardcode_shlibpath_var=no
7552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7553 export_dynamic_flag_spec='${wl}-E'
7554 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7555 # Instead, shared libraries are loaded at an image base (0x10000000 by
7556 # default) and relocated if they conflict, which is a slow very memory
7557 # consuming and fragmenting process. To avoid this, we pick a random,
7558 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7559 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7561 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'
7562 ;;
7563
mlcreech636a9952008-05-05 22:52:56 +00007564 gnu* | linux* | tpf* | k*bsd*-gnu)
7565 tmp_diet=no
7566 if test "$host_os" = linux-dietlibc; then
7567 case $cc_basename in
7568 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7569 esac
7570 fi
7571 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7572 && test "$tmp_diet" = no
7573 then
vapier7f19c022007-02-17 14:46:31 +00007574 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007575 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007576 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007577 pgcc*) # Portland Group C compiler
7578 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 +00007579 tmp_addflag=' $pic_flag'
7580 ;;
7581 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007582 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 +00007583 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007584 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007585 tmp_addflag=' -i_dynamic' ;;
7586 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7587 tmp_addflag=' -i_dynamic -nofor_main' ;;
7588 ifc* | ifort*) # Intel Fortran compiler
7589 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007590 lf95*) # Lahey Fortran 8.1
7591 whole_archive_flag_spec=
7592 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007593 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7594 tmp_sharedflag='-qmkshrobj'
7595 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007596 esac
mlcreech636a9952008-05-05 22:52:56 +00007597 case `$CC -V 2>&1 | sed 5q` in
7598 *Sun\ C*) # Sun C 5.9
7599 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'
7600 compiler_needs_object=yes
7601 tmp_sharedflag='-G' ;;
7602 *Sun\ F*) # Sun Fortran 8.3
7603 tmp_sharedflag='-G' ;;
7604 esac
7605 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007606
mlcreech636a9952008-05-05 22:52:56 +00007607 if test "x$supports_anon_versioning" = xyes; then
7608 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7609 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7610 echo "local: *; };" >> $output_objdir/$libname.ver~
7611 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7612 fi
7613
7614 case $cc_basename in
7615 xlf*)
7616 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7617 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7618 hardcode_libdir_flag_spec=
7619 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7620 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7621 if test "x$supports_anon_versioning" = xyes; then
7622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7624 echo "local: *; };" >> $output_objdir/$libname.ver~
7625 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7626 fi
7627 ;;
7628 esac
vapier7f19c022007-02-17 14:46:31 +00007629 else
mlcreech636a9952008-05-05 22:52:56 +00007630 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007631 fi
7632 ;;
7633
7634 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007635 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007636 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7637 wlarc=
7638 else
7639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7640 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7641 fi
7642 ;;
7643
vapier7f19c022007-02-17 14:46:31 +00007644 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007645 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007647 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007648
7649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7650*** create shared libraries on Solaris systems. Therefore, libtool
7651*** is disabling shared libraries support. We urge you to upgrade GNU
7652*** binutils to release 2.9.1 or newer. Another option is to modify
7653*** your PATH or compiler configuration so that the native linker is
7654*** used, and then restart.
7655
mlcreech636a9952008-05-05 22:52:56 +00007656_LT_EOF
7657 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7660 else
7661 ld_shlibs=no
7662 fi
7663 ;;
7664
vapier7f19c022007-02-17 14:46:31 +00007665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7666 case `$LD -v 2>&1` in
7667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7668 ld_shlibs=no
7669 cat <<_LT_EOF 1>&2
7670
7671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7672*** reliably create shared libraries on SCO systems. Therefore, libtool
7673*** is disabling shared libraries support. We urge you to upgrade GNU
7674*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7675*** your PATH or compiler configuration so that the native linker is
7676*** used, and then restart.
7677
7678_LT_EOF
7679 ;;
7680 *)
mlcreech636a9952008-05-05 22:52:56 +00007681 # For security reasons, it is highly recommended that you always
7682 # use absolute paths for naming shared libraries, and exclude the
7683 # DT_RUNPATH tag from executables and libraries. But doing so
7684 # requires that you compile everything twice, which is a pain.
7685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7686 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7688 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 +00007689 else
7690 ld_shlibs=no
7691 fi
7692 ;;
7693 esac
7694 ;;
7695
a.rottmann9bc8b932004-02-29 15:18:31 +00007696 sunos4*)
7697 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7698 wlarc=
7699 hardcode_direct=yes
7700 hardcode_shlibpath_var=no
7701 ;;
7702
a.rottmann9bc8b932004-02-29 15:18:31 +00007703 *)
mlcreech636a9952008-05-05 22:52:56 +00007704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7707 else
7708 ld_shlibs=no
7709 fi
7710 ;;
7711 esac
7712
vapier7f19c022007-02-17 14:46:31 +00007713 if test "$ld_shlibs" = no; then
7714 runpath_var=
7715 hardcode_libdir_flag_spec=
7716 export_dynamic_flag_spec=
7717 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007718 fi
7719 else
7720 # PORTME fill in a description of your system's linker (not GNU ld)
7721 case $host_os in
7722 aix3*)
7723 allow_undefined_flag=unsupported
7724 always_export_symbols=yes
7725 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'
7726 # Note: this linker hardcodes the directories in LIBPATH if there
7727 # are no directories specified by -L.
7728 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007729 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007730 # Neither direct hardcoding nor static linking is supported with a
7731 # broken collect2.
7732 hardcode_direct=unsupported
7733 fi
7734 ;;
7735
mlcreech636a9952008-05-05 22:52:56 +00007736 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007737 if test "$host_cpu" = ia64; then
7738 # On IA64, the linker does run time linking by default, so we don't
7739 # have to do anything special.
7740 aix_use_runtimelinking=no
7741 exp_sym_flag='-Bexport'
7742 no_entry_flag=""
7743 else
7744 # If we're using GNU nm, then we don't want the "-C" option.
7745 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007746 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7747 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 +00007748 else
mlcreech636a9952008-05-05 22:52:56 +00007749 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 +00007750 fi
7751 aix_use_runtimelinking=no
7752
7753 # Test if we are trying to use run time linking or normal
7754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7755 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007756 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007757 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7759 aix_use_runtimelinking=yes
7760 break
7761 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007762 done
vapier7f19c022007-02-17 14:46:31 +00007763 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007764 esac
7765
7766 exp_sym_flag='-bexport'
7767 no_entry_flag='-bnoentry'
7768 fi
7769
7770 # When large executables or shared objects are built, AIX ld can
7771 # have problems creating the table of contents. If linking a library
7772 # or program results in "error TOC overflow" add -mminimal-toc to
7773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7775
7776 archive_cmds=''
7777 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007778 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 hardcode_libdir_separator=':'
7780 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007781 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007782
7783 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007784 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 # We only want to do this on AIX 4.2 and lower, the check
7786 # below for broken collect2 doesn't work under 4.3+
7787 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007788 if test -f "$collect2name" &&
7789 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007790 then
mlcreech636a9952008-05-05 22:52:56 +00007791 # We have reworked collect2
7792 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 else
mlcreech636a9952008-05-05 22:52:56 +00007794 # We have old collect2
7795 hardcode_direct=unsupported
7796 # It fails to find uninstalled libraries when the uninstalled
7797 # path is not listed in the libpath. Setting hardcode_minus_L
7798 # to unsupported forces relinking
7799 hardcode_minus_L=yes
7800 hardcode_libdir_flag_spec='-L$libdir'
7801 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007802 fi
vapier7f19c022007-02-17 14:46:31 +00007803 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007804 esac
7805 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007806 if test "$aix_use_runtimelinking" = yes; then
7807 shared_flag="$shared_flag "'${wl}-G'
7808 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007809 else
7810 # not using gcc
7811 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7813 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007814 shared_flag='-G'
7815 else
vapier7f19c022007-02-17 14:46:31 +00007816 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007817 shared_flag='${wl}-G'
7818 else
7819 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007820 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007821 fi
7822 fi
7823
vapier6acb2cf2009-01-28 04:46:28 +00007824 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007825 # It seems that -bexpall does not export symbols beginning with
7826 # underscore (_), so it is better to generate a list of symbols to export.
7827 always_export_symbols=yes
7828 if test "$aix_use_runtimelinking" = yes; then
7829 # Warning - without using the other runtime loading flags (-brtl),
7830 # -berok will link without error, but may produce a broken library.
7831 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007832 # Determine the default libpath from the value encoded in an
7833 # empty executable.
7834 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007840
a.rottmann84e63352003-03-24 09:42:16 +00007841int
7842main ()
7843{
a.rottmann9bc8b932004-02-29 15:18:31 +00007844
a.rottmann84e63352003-03-24 09:42:16 +00007845 ;
7846 return 0;
7847}
7848_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007849rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007850if { (ac_try="$ac_link"
7851case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7856$as_echo "$ac_try_echo") >&5
7857 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007858 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } && {
7864 test -z "$ac_c_werror_flag" ||
7865 test ! -s conftest.err
7866 } && test -s conftest$ac_exeext && {
7867 test "$cross_compiling" = yes ||
7868 $as_test_x conftest$ac_exeext
7869 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007870
mlcreech636a9952008-05-05 22:52:56 +00007871lt_aix_libpath_sed='
7872 /Import File Strings/,/^$/ {
7873 /^0/ {
7874 s/^0 *\(.*\)$/\1/
7875 p
7876 }
7877 }'
7878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007879# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007880if test -z "$aix_libpath"; then
7881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7882fi
a.rottmann84e63352003-03-24 09:42:16 +00007883else
drh8b727472009-01-19 18:18:40 +00007884 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007885sed 's/^/| /' conftest.$ac_ext >&5
7886
drh8b727472009-01-19 18:18:40 +00007887
a.rottmann84e63352003-03-24 09:42:16 +00007888fi
drh8b727472009-01-19 18:18:40 +00007889
7890rm -rf conftest.dSYM
7891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007892 conftest$ac_exeext conftest.$ac_ext
7893if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007894
mlcreech636a9952008-05-05 22:52:56 +00007895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7896 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"
7897 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007898 if test "$host_cpu" = ia64; then
7899 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7900 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007901 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 +00007902 else
mlcreech636a9952008-05-05 22:52:56 +00007903 # Determine the default libpath from the value encoded in an
7904 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007905 cat >conftest.$ac_ext <<_ACEOF
7906/* confdefs.h. */
7907_ACEOF
7908cat confdefs.h >>conftest.$ac_ext
7909cat >>conftest.$ac_ext <<_ACEOF
7910/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007911
a.rottmann9bc8b932004-02-29 15:18:31 +00007912int
7913main ()
7914{
a.rottmann84e63352003-03-24 09:42:16 +00007915
a.rottmann9bc8b932004-02-29 15:18:31 +00007916 ;
7917 return 0;
7918}
7919_ACEOF
7920rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007921if { (ac_try="$ac_link"
7922case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925esac
7926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927$as_echo "$ac_try_echo") >&5
7928 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest$ac_exeext && {
7938 test "$cross_compiling" = yes ||
7939 $as_test_x conftest$ac_exeext
7940 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007941
mlcreech636a9952008-05-05 22:52:56 +00007942lt_aix_libpath_sed='
7943 /Import File Strings/,/^$/ {
7944 /^0/ {
7945 s/^0 *\(.*\)$/\1/
7946 p
7947 }
7948 }'
7949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007950# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007951if test -z "$aix_libpath"; then
7952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953fi
a.rottmann84e63352003-03-24 09:42:16 +00007954else
drh8b727472009-01-19 18:18:40 +00007955 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007956sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007957
drh8b727472009-01-19 18:18:40 +00007958
a.rottmann9bc8b932004-02-29 15:18:31 +00007959fi
drh8b727472009-01-19 18:18:40 +00007960
7961rm -rf conftest.dSYM
7962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007963 conftest$ac_exeext conftest.$ac_ext
7964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007965
a.rottmann9bc8b932004-02-29 15:18:31 +00007966 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7967 # Warning - without using the other run time loading flags,
7968 # -berok will link without error, but may produce a broken library.
7969 no_undefined_flag=' ${wl}-bernotok'
7970 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007971 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007972 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007973 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007974 # This is similar to how AIX traditionally builds its shared libraries.
7975 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 +00007976 fi
7977 fi
a.rottmann84e63352003-03-24 09:42:16 +00007978 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007979
7980 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007981 case $host_cpu in
7982 powerpc)
7983 # see comment about AmigaOS4 .so support
7984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985 archive_expsym_cmds=''
7986 ;;
7987 m68k)
7988 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)'
7989 hardcode_libdir_flag_spec='-L$libdir'
7990 hardcode_minus_L=yes
7991 ;;
7992 esac
a.rottmann84e63352003-03-24 09:42:16 +00007993 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007994
vapier7f19c022007-02-17 14:46:31 +00007995 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007996 export_dynamic_flag_spec=-rdynamic
7997 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007998
vapier6acb2cf2009-01-28 04:46:28 +00007999 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008000 # When not using gcc, we currently assume that we are using
8001 # Microsoft Visual C++.
8002 # hardcode_libdir_flag_spec is actually meaningless, as there is
8003 # no search path for DLLs.
8004 hardcode_libdir_flag_spec=' '
8005 allow_undefined_flag=unsupported
8006 # Tell ltmain to make .lib files, not .a files.
8007 libext=lib
8008 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00008009 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008011 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 +00008012 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008013 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008015 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008016 fix_srcfile_path='`cygpath -w "$srcfile"`'
8017 enable_shared_with_static_runtimes=yes
8018 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008019
a.rottmann9bc8b932004-02-29 15:18:31 +00008020 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008021
8022
8023 archive_cmds_need_lc=no
8024 hardcode_direct=no
8025 hardcode_automatic=yes
8026 hardcode_shlibpath_var=unsupported
8027 whole_archive_flag_spec=''
8028 link_all_deplibs=yes
8029 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008030 case $cc_basename in
8031 ifort*) _lt_dar_can_shared=yes ;;
8032 *) _lt_dar_can_shared=$GCC ;;
8033 esac
8034 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008035 output_verbose_link_cmd=echo
8036 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8037 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8038 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}"
8039 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}"
8040
8041 else
8042 ld_shlibs=no
8043 fi
8044
a.rottmann9bc8b932004-02-29 15:18:31 +00008045 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008046
a.rottmann9bc8b932004-02-29 15:18:31 +00008047 dgux*)
8048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8049 hardcode_libdir_flag_spec='-L$libdir'
8050 hardcode_shlibpath_var=no
8051 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008052
a.rottmann9bc8b932004-02-29 15:18:31 +00008053 freebsd1*)
8054 ld_shlibs=no
8055 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008056
a.rottmann9bc8b932004-02-29 15:18:31 +00008057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8058 # support. Future versions do this automatically, but an explicit c++rt0.o
8059 # does not break anything, and helps significantly (at the cost of a little
8060 # extra space).
8061 freebsd2.2*)
8062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8063 hardcode_libdir_flag_spec='-R$libdir'
8064 hardcode_direct=yes
8065 hardcode_shlibpath_var=no
8066 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008067
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8069 freebsd2*)
8070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_direct=yes
8072 hardcode_minus_L=yes
8073 hardcode_shlibpath_var=no
8074 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008075
a.rottmann9bc8b932004-02-29 15:18:31 +00008076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008077 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008078 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8079 hardcode_libdir_flag_spec='-R$libdir'
8080 hardcode_direct=yes
8081 hardcode_shlibpath_var=no
8082 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008083
a.rottmann9bc8b932004-02-29 15:18:31 +00008084 hpux9*)
8085 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008086 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 +00008087 else
mlcreech636a9952008-05-05 22:52:56 +00008088 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 +00008089 fi
8090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8091 hardcode_libdir_separator=:
8092 hardcode_direct=yes
8093
8094 # hardcode_minus_L: Not really in the search PATH,
8095 # but as the default location of the library.
8096 hardcode_minus_L=yes
8097 export_dynamic_flag_spec='${wl}-E'
8098 ;;
8099
vapier7f19c022007-02-17 14:46:31 +00008100 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008101 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8103 else
8104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8105 fi
8106 if test "$with_gnu_ld" = no; then
8107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008108 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008109 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008110 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008111 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008112 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008113 # hardcode_minus_L: Not really in the search PATH,
8114 # but as the default location of the library.
8115 hardcode_minus_L=yes
8116 fi
8117 ;;
8118
8119 hpux11*)
8120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8121 case $host_cpu in
8122 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008123 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124 ;;
vapier7f19c022007-02-17 14:46:31 +00008125 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008126 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008127 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008128 *)
8129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8130 ;;
8131 esac
8132 else
vapier7f19c022007-02-17 14:46:31 +00008133 case $host_cpu in
8134 hppa*64*)
8135 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 ;;
8137 ia64*)
8138 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008139 ;;
8140 *)
vapier7f19c022007-02-17 14:46:31 +00008141 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 +00008142 ;;
8143 esac
8144 fi
8145 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8147 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008148
vapier7f19c022007-02-17 14:46:31 +00008149 case $host_cpu in
8150 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008151 hardcode_direct=no
8152 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008153 ;;
8154 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008155 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008156 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008157 export_dynamic_flag_spec='${wl}-E'
8158
8159 # hardcode_minus_L: Not really in the search PATH,
8160 # but as the default location of the library.
8161 hardcode_minus_L=yes
8162 ;;
8163 esac
8164 fi
8165 ;;
8166
8167 irix5* | irix6* | nonstopux*)
8168 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008169 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'
8170 # Try to use the -exported_symbol ld option, if it does not
8171 # work, assume that -exports_file does not work either and
8172 # implicitly export all symbols.
8173 save_LDFLAGS="$LDFLAGS"
8174 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8175 cat >conftest.$ac_ext <<_ACEOF
8176int foo(void) {}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00008179if { (ac_try="$ac_link"
8180case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185$as_echo "$ac_try_echo") >&5
8186 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00008191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest$ac_exeext && {
8196 test "$cross_compiling" = yes ||
8197 $as_test_x conftest$ac_exeext
8198 }; then
mlcreech636a9952008-05-05 22:52:56 +00008199 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'
8200
8201else
drh8b727472009-01-19 18:18:40 +00008202 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008203sed 's/^/| /' conftest.$ac_ext >&5
8204
drh8b727472009-01-19 18:18:40 +00008205
mlcreech636a9952008-05-05 22:52:56 +00008206fi
drh8b727472009-01-19 18:18:40 +00008207
8208rm -rf conftest.dSYM
8209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00008210 conftest$ac_exeext conftest.$ac_ext
8211 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008212 else
mlcreech636a9952008-05-05 22:52:56 +00008213 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'
8214 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 +00008215 fi
mlcreech636a9952008-05-05 22:52:56 +00008216 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008219 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008220 link_all_deplibs=yes
8221 ;;
8222
vapier7f19c022007-02-17 14:46:31 +00008223 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008225 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8226 else
8227 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8228 fi
8229 hardcode_libdir_flag_spec='-R$libdir'
8230 hardcode_direct=yes
8231 hardcode_shlibpath_var=no
8232 ;;
8233
8234 newsos6)
8235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8236 hardcode_direct=yes
8237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238 hardcode_libdir_separator=:
8239 hardcode_shlibpath_var=no
8240 ;;
8241
mlcreech636a9952008-05-05 22:52:56 +00008242 *nto* | *qnx*)
8243 ;;
8244
a.rottmann9bc8b932004-02-29 15:18:31 +00008245 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008246 if test -f /usr/libexec/ld.so; then
8247 hardcode_direct=yes
8248 hardcode_shlibpath_var=no
8249 hardcode_direct_absolute=yes
8250 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8252 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254 export_dynamic_flag_spec='${wl}-E'
8255 else
8256 case $host_os in
8257 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8258 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8259 hardcode_libdir_flag_spec='-R$libdir'
8260 ;;
8261 *)
8262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8263 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264 ;;
8265 esac
8266 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 else
mlcreech636a9952008-05-05 22:52:56 +00008268 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 fi
8270 ;;
8271
8272 os2*)
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_minus_L=yes
8275 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008276 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'
8277 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008278 ;;
8279
8280 osf3*)
8281 if test "$GCC" = yes; then
8282 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008283 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 +00008284 else
8285 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008286 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 +00008287 fi
mlcreech636a9952008-05-05 22:52:56 +00008288 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8290 hardcode_libdir_separator=:
8291 ;;
8292
8293 osf4* | osf5*) # as osf3* with the addition of -msym flag
8294 if test "$GCC" = yes; then
8295 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008296 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 +00008297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298 else
8299 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008300 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'
8301 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~
8302 $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 +00008303
8304 # Both c and cxx compiler support -rpath directly
8305 hardcode_libdir_flag_spec='-rpath $libdir'
8306 fi
mlcreech636a9952008-05-05 22:52:56 +00008307 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008308 hardcode_libdir_separator=:
8309 ;;
8310
a.rottmann9bc8b932004-02-29 15:18:31 +00008311 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008312 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008313 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008314 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008315 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8317 $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 +00008318 else
mlcreech636a9952008-05-05 22:52:56 +00008319 case `$CC -V 2>&1` in
8320 *"Compilers 5.0"*)
8321 wlarc=''
8322 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8325 ;;
8326 *)
8327 wlarc='${wl}'
8328 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8330 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8331 ;;
8332 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008333 fi
8334 hardcode_libdir_flag_spec='-R$libdir'
8335 hardcode_shlibpath_var=no
8336 case $host_os in
8337 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008338 *)
mlcreech636a9952008-05-05 22:52:56 +00008339 # The compiler driver will combine and reorder linker options,
8340 # but understands `-z linker_flag'. GCC discards it without `$wl',
8341 # but is careful enough not to reorder.
8342 # Supported since Solaris 2.6 (maybe 2.5.1?)
8343 if test "$GCC" = yes; then
8344 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8345 else
8346 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8347 fi
8348 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008349 esac
8350 link_all_deplibs=yes
8351 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008352
a.rottmann9bc8b932004-02-29 15:18:31 +00008353 sunos4*)
8354 if test "x$host_vendor" = xsequent; then
8355 # Use $CC to link under sequent, because it throws in some extra .o
8356 # files that make .init and .fini sections work.
8357 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8358 else
8359 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8360 fi
8361 hardcode_libdir_flag_spec='-L$libdir'
8362 hardcode_direct=yes
8363 hardcode_minus_L=yes
8364 hardcode_shlibpath_var=no
8365 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008366
a.rottmann9bc8b932004-02-29 15:18:31 +00008367 sysv4)
8368 case $host_vendor in
8369 sni)
8370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 hardcode_direct=yes # is this really true???
8372 ;;
8373 siemens)
8374 ## LD is ld it makes a PLAMLIB
8375 ## CC just makes a GrossModule.
8376 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8377 reload_cmds='$CC -r -o $output$reload_objs'
8378 hardcode_direct=no
8379 ;;
8380 motorola)
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8383 ;;
8384 esac
8385 runpath_var='LD_RUN_PATH'
8386 hardcode_shlibpath_var=no
8387 ;;
8388
8389 sysv4.3*)
8390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_shlibpath_var=no
8392 export_dynamic_flag_spec='-Bexport'
8393 ;;
8394
8395 sysv4*MP*)
8396 if test -d /usr/nec; then
8397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_shlibpath_var=no
8399 runpath_var=LD_RUN_PATH
8400 hardcode_runpath_var=yes
8401 ld_shlibs=yes
8402 fi
8403 ;;
8404
mlcreech636a9952008-05-05 22:52:56 +00008405 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008406 no_undefined_flag='${wl}-z,text'
8407 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008408 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008409 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008410
a.rottmann9bc8b932004-02-29 15:18:31 +00008411 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008412 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 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 +00008414 else
vapier7f19c022007-02-17 14:46:31 +00008415 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8416 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 +00008417 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008418 ;;
8419
vapier7f19c022007-02-17 14:46:31 +00008420 sysv5* | sco3.2v5* | sco5v6*)
8421 # Note: We can NOT use -z defs as we might desire, because we do not
8422 # link with -lc, and that would cause any symbols used from libc to
8423 # always be unresolved, which means just about no library would
8424 # ever link correctly. If we're not using GNU ld we use -z text
8425 # though, which does catch some bad symbols but isn't as heavy-handed
8426 # as -z defs.
8427 no_undefined_flag='${wl}-z,text'
8428 allow_undefined_flag='${wl}-z,nodefs'
8429 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008430 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008431 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008432 hardcode_libdir_separator=':'
8433 link_all_deplibs=yes
8434 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008435 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008436
8437 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008440 else
mlcreech636a9952008-05-05 22:52:56 +00008441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008443 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008444 ;;
8445
8446 uts4*)
8447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448 hardcode_libdir_flag_spec='-L$libdir'
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 *)
8453 ld_shlibs=no
8454 ;;
8455 esac
mlcreech636a9952008-05-05 22:52:56 +00008456
8457 if test x$host_vendor = xsni; then
8458 case $host in
8459 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8460 export_dynamic_flag_spec='${wl}-Blargedynsym'
8461 ;;
8462 esac
8463 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008464 fi
8465
drh8b727472009-01-19 18:18:40 +00008466{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8467$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008468test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008469
mlcreech636a9952008-05-05 22:52:56 +00008470with_gnu_ld=$with_gnu_ld
8471
8472
danielk197733a14782008-08-04 14:50:05 +00008473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
a.rottmann9bc8b932004-02-29 15:18:31 +00008486#
8487# Do we need to explicitly link libc?
8488#
8489case "x$archive_cmds_need_lc" in
8490x|xyes)
8491 # Assume -lc should be added
8492 archive_cmds_need_lc=yes
8493
8494 if test "$enable_shared" = yes && test "$GCC" = yes; then
8495 case $archive_cmds in
8496 *'~'*)
8497 # FIXME: we may have to deal with multi-command sequences.
8498 ;;
8499 '$CC '*)
8500 # Test whether the compiler implicitly links with -lc since on some
8501 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8502 # to ld, don't add -lc before -lgcc.
drh8b727472009-01-19 18:18:40 +00008503 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8504$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008505 $RM conftest*
8506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008507
8508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8509 (eval $ac_compile) 2>&5
8510 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008512 (exit $ac_status); } 2>conftest.err; then
8513 soname=conftest
8514 lib=conftest
8515 libobjs=conftest.$ac_objext
8516 deplibs=
8517 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008518 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008519 compiler_flags=-v
8520 linker_flags=-v
8521 verstring=
8522 output_objdir=.
8523 libname=conftest
8524 lt_save_allow_undefined_flag=$allow_undefined_flag
8525 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008526 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8527 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008528 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008530 (exit $ac_status); }
8531 then
8532 archive_cmds_need_lc=no
8533 else
8534 archive_cmds_need_lc=yes
8535 fi
8536 allow_undefined_flag=$lt_save_allow_undefined_flag
8537 else
8538 cat conftest.err 1>&5
8539 fi
mlcreech636a9952008-05-05 22:52:56 +00008540 $RM conftest*
drh8b727472009-01-19 18:18:40 +00008541 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8542$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008543 ;;
8544 esac
drh71eb93e2001-09-28 01:34:43 +00008545 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008546 ;;
8547esac
drh71eb93e2001-09-28 01:34:43 +00008548
mlcreech636a9952008-05-05 22:52:56 +00008549
danielk197733a14782008-08-04 14:50:05 +00008550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
drh8b727472009-01-19 18:18:40 +00008705 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8706$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008707
8708if test "$GCC" = yes; then
8709 case $host_os in
8710 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8711 *) lt_awk_arg="/^libraries:/" ;;
8712 esac
8713 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8714 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8715 # if the path contains ";" then we assume it to be the separator
8716 # otherwise default to the standard path separator (i.e. ":") - it is
8717 # assumed that no part of a normal pathname contains ";" but that should
8718 # okay in the real world where ";" in dirpaths is itself problematic.
8719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8720 else
8721 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8722 fi
8723 # Ok, now we have the path, separated by spaces, we can step through it
8724 # and add multilib dir if necessary.
8725 lt_tmp_lt_search_path_spec=
8726 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8727 for lt_sys_path in $lt_search_path_spec; do
8728 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8730 else
8731 test -d "$lt_sys_path" && \
8732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8733 fi
8734 done
8735 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8736BEGIN {RS=" "; FS="/|\n";} {
8737 lt_foo="";
8738 lt_count=0;
8739 for (lt_i = NF; lt_i > 0; lt_i--) {
8740 if ($lt_i != "" && $lt_i != ".") {
8741 if ($lt_i == "..") {
8742 lt_count++;
8743 } else {
8744 if (lt_count == 0) {
8745 lt_foo="/" $lt_i lt_foo;
8746 } else {
8747 lt_count--;
8748 }
8749 }
8750 }
8751 }
8752 if (lt_foo != "") { lt_freq[lt_foo]++; }
8753 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8754}'`
8755 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8756else
8757 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758fi
drh71eb93e2001-09-28 01:34:43 +00008759library_names_spec=
8760libname_spec='lib$name'
8761soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008762shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008763postinstall_cmds=
8764postuninstall_cmds=
8765finish_cmds=
8766finish_eval=
8767shlibpath_var=
8768shlibpath_overrides_runpath=unknown
8769version_type=none
8770dynamic_linker="$host_os ld.so"
8771sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008772need_lib_prefix=unknown
8773hardcode_into_libs=no
8774
8775# when you set need_version to no, make sure it does not cause -set_version
8776# flags to be left without arguments
8777need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008778
8779case $host_os in
8780aix3*)
8781 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008783 shlibpath_var=LIBPATH
8784
a.rottmann9bc8b932004-02-29 15:18:31 +00008785 # AIX 3 has no versioning support, so we append a major version to the name.
8786 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008787 ;;
8788
mlcreech636a9952008-05-05 22:52:56 +00008789aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008790 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008791 need_lib_prefix=no
8792 need_version=no
8793 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008794 if test "$host_cpu" = ia64; then
8795 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008797 shlibpath_var=LD_LIBRARY_PATH
8798 else
8799 # With GCC up to 2.95.x, collect2 would create an import file
8800 # for dependence libraries. The import file would start with
8801 # the line `#! .'. This would cause the generated library to
8802 # depend on `.', always an invalid library. This was fixed in
8803 # development snapshots of GCC prior to 3.0.
8804 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008805 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008808 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008809 :
8810 else
8811 can_build_shared=no
8812 fi
8813 ;;
drh71eb93e2001-09-28 01:34:43 +00008814 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8816 # soname into executable. Probably we can add versioning support to
8817 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008818 if test "$aix_use_runtimelinking" = yes; then
8819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8820 # instead of lib<name>.a to let people know that these are not
8821 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008823 else
8824 # We preserve .a as extension for shared libraries through AIX4.2
8825 # and later when we are not doing run time linking.
8826 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008827 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008828 fi
8829 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008830 fi
8831 ;;
8832
8833amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008834 case $host_cpu in
8835 powerpc)
8836 # Since July 2007 AmigaOS4 officially supports .so libraries.
8837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839 ;;
8840 m68k)
8841 library_names_spec='$libname.ixlibrary $libname.a'
8842 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8843 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'
8844 ;;
8845 esac
drh71eb93e2001-09-28 01:34:43 +00008846 ;;
8847
8848beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008849 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008850 dynamic_linker="$host_os ld.so"
8851 shlibpath_var=LIBRARY_PATH
8852 ;;
8853
vapier7f19c022007-02-17 14:46:31 +00008854bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008855 version_type=linux
8856 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8863 # the default ld.so.conf also contains /usr/contrib/lib and
8864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8865 # libtool to hard-code these into programs
8866 ;;
8867
vapier6acb2cf2009-01-28 04:46:28 +00008868cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008869 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008870 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008871 need_version=no
8872 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008873
drh71eb93e2001-09-28 01:34:43 +00008874 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008875 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008876 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008877 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8878 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008879 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008880 dldir=$destdir/`dirname \$dlpath`~
8881 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008882 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008883 chmod a+x \$dldir/$dlname~
8884 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8885 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8886 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008887 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008888 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008889 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008890 shlibpath_overrides_runpath=yes
8891
8892 case $host_os in
8893 cygwin*)
8894 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8895 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8896 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8897 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008898 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008899 # MinGW DLLs use traditional 'lib' prefix
8900 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008901 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8902 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008903 # It is most probably a Windows format PATH printed by
8904 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8905 # path with ; separators, and with drive letters. We can handle the
8906 # drive letters (cygwin fileutils understands them), so leave them,
8907 # especially as we might pass files found there to a mingw objdump,
8908 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008910 else
mlcreech636a9952008-05-05 22:52:56 +00008911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008912 fi
8913 ;;
8914 pw32*)
8915 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008916 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 +00008917 ;;
8918 esac
drh71eb93e2001-09-28 01:34:43 +00008919 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008920
drh71eb93e2001-09-28 01:34:43 +00008921 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008922 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008923 ;;
8924 esac
8925 dynamic_linker='Win32 ld.exe'
8926 # FIXME: first we should search . and the directory the executable is in
8927 shlibpath_var=PATH
8928 ;;
8929
8930darwin* | rhapsody*)
8931 dynamic_linker="$host_os dyld"
8932 version_type=darwin
8933 need_lib_prefix=no
8934 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008935 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008936 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008937 shlibpath_overrides_runpath=yes
8938 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008939 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008940
8941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8943 ;;
8944
8945dgux*)
8946 version_type=linux
8947 need_lib_prefix=no
8948 need_version=no
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008952 ;;
8953
a.rottmann84e63352003-03-24 09:42:16 +00008954freebsd1*)
8955 dynamic_linker=no
8956 ;;
8957
vapier7f19c022007-02-17 14:46:31 +00008958freebsd* | dragonfly*)
8959 # DragonFly does not have aout. When/if they implement a new
8960 # versioning mechanism, adjust this.
8961 if test -x /usr/bin/objformat; then
8962 objformat=`/usr/bin/objformat`
8963 else
8964 case $host_os in
8965 freebsd[123]*) objformat=aout ;;
8966 *) objformat=elf ;;
8967 esac
8968 fi
8969 # Handle Gentoo/FreeBSD as it was Linux
8970 case $host_vendor in
8971 gentoo)
8972 version_type=linux ;;
8973 *)
8974 version_type=freebsd-$objformat ;;
8975 esac
8976
drh71eb93e2001-09-28 01:34:43 +00008977 case $version_type in
8978 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008980 need_version=no
8981 need_lib_prefix=no
8982 ;;
8983 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008985 need_version=yes
8986 ;;
vapier7f19c022007-02-17 14:46:31 +00008987 linux)
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 need_lib_prefix=no
8991 need_version=no
8992 ;;
drh71eb93e2001-09-28 01:34:43 +00008993 esac
8994 shlibpath_var=LD_LIBRARY_PATH
8995 case $host_os in
8996 freebsd2*)
8997 shlibpath_overrides_runpath=yes
8998 ;;
vapier7f19c022007-02-17 14:46:31 +00008999 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00009000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 ;;
vapier7f19c022007-02-17 14:46:31 +00009003 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9004 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00009005 shlibpath_overrides_runpath=no
9006 hardcode_into_libs=yes
9007 ;;
mlcreech636a9952008-05-05 22:52:56 +00009008 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00009009 shlibpath_overrides_runpath=yes
9010 hardcode_into_libs=yes
9011 ;;
drh71eb93e2001-09-28 01:34:43 +00009012 esac
9013 ;;
9014
9015gnu*)
9016 version_type=linux
9017 need_lib_prefix=no
9018 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009021 shlibpath_var=LD_LIBRARY_PATH
9022 hardcode_into_libs=yes
9023 ;;
9024
9025hpux9* | hpux10* | hpux11*)
9026 # Give a soname corresponding to the major version so that dld.sl refuses to
9027 # link against other versions.
9028 version_type=sunos
9029 need_lib_prefix=no
9030 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009031 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009032 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009033 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009034 hardcode_into_libs=yes
9035 dynamic_linker="$host_os dld.so"
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 if test "X$HPUX_IA64_MODE" = X32; then
9041 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9042 else
9043 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9044 fi
9045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9046 ;;
mlcreech636a9952008-05-05 22:52:56 +00009047 hppa*64*)
9048 shrext_cmds='.sl'
9049 hardcode_into_libs=yes
9050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9055 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9057 ;;
9058 *)
vapier7f19c022007-02-17 14:46:31 +00009059 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009060 dynamic_linker="$host_os dld.sl"
9061 shlibpath_var=SHLIB_PATH
9062 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 ;;
9066 esac
drh71eb93e2001-09-28 01:34:43 +00009067 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9068 postinstall_cmds='chmod 555 $lib'
9069 ;;
9070
mlcreech636a9952008-05-05 22:52:56 +00009071interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009072 version_type=linux
9073 need_lib_prefix=no
9074 need_version=no
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=no
9080 hardcode_into_libs=yes
9081 ;;
9082
a.rottmann84e63352003-03-24 09:42:16 +00009083irix5* | irix6* | nonstopux*)
9084 case $host_os in
9085 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009086 *)
9087 if test "$lt_cv_prog_gnu_ld" = yes; then
9088 version_type=linux
9089 else
9090 version_type=irix
9091 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009092 esac
drh71eb93e2001-09-28 01:34:43 +00009093 need_lib_prefix=no
9094 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009095 soname_spec='${libname}${release}${shared_ext}$major'
9096 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 +00009097 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009098 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009099 libsuff= shlibsuff=
9100 ;;
9101 *)
9102 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009103 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9104 libsuff= shlibsuff= libmagic=32-bit;;
9105 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9106 libsuff=32 shlibsuff=N32 libmagic=N32;;
9107 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9108 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009109 *) libsuff= shlibsuff= libmagic=never-match;;
9110 esac
9111 ;;
9112 esac
9113 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9114 shlibpath_overrides_runpath=no
9115 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9116 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009117 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009118 ;;
9119
9120# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009121linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009122 dynamic_linker=no
9123 ;;
9124
9125# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009126linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009127 version_type=linux
9128 need_lib_prefix=no
9129 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009135 # Some binutils ld are patched to set DT_RUNPATH
9136 save_LDFLAGS=$LDFLAGS
9137 save_libdir=$libdir
9138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9140 cat >conftest.$ac_ext <<_ACEOF
9141/* confdefs.h. */
9142_ACEOF
9143cat confdefs.h >>conftest.$ac_ext
9144cat >>conftest.$ac_ext <<_ACEOF
9145/* end confdefs.h. */
9146
9147int
9148main ()
9149{
9150
9151 ;
9152 return 0;
9153}
9154_ACEOF
9155rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009156if { (ac_try="$ac_link"
9157case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160esac
9161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162$as_echo "$ac_try_echo") >&5
9163 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest$ac_exeext && {
9173 test "$cross_compiling" = yes ||
9174 $as_test_x conftest$ac_exeext
9175 }; then
mlcreech636a9952008-05-05 22:52:56 +00009176 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9177 shlibpath_overrides_runpath=yes
9178fi
9179
9180else
drh8b727472009-01-19 18:18:40 +00009181 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009182sed 's/^/| /' conftest.$ac_ext >&5
9183
drh8b727472009-01-19 18:18:40 +00009184
mlcreech636a9952008-05-05 22:52:56 +00009185fi
drh8b727472009-01-19 18:18:40 +00009186
9187rm -rf conftest.dSYM
9188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00009189 conftest$ac_exeext conftest.$ac_ext
9190 LDFLAGS=$save_LDFLAGS
9191 libdir=$save_libdir
9192
drh71eb93e2001-09-28 01:34:43 +00009193 # This implies no fast_install, which is unacceptable.
9194 # Some rework will be needed to allow for fast_install
9195 # before this can be enabled.
9196 hardcode_into_libs=yes
9197
a.rottmann9bc8b932004-02-29 15:18:31 +00009198 # Append ld.so.conf contents to the search path
9199 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009200 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 +00009201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009202 fi
9203
drh71eb93e2001-09-28 01:34:43 +00009204 # We used to test for /lib/ld.so.1 and disable shared libraries on
9205 # powerpc, because MkLinux only supported shared libraries with the
9206 # GNU dynamic linker. Since this was broken with cross compilers,
9207 # most powerpc-linux boxes support dynamic linking these days and
9208 # people can always --disable-shared, the test was removed, and we
9209 # assume the GNU/Linux dynamic linker is in use.
9210 dynamic_linker='GNU/Linux ld.so'
9211 ;;
9212
9213netbsd*)
9214 version_type=sunos
9215 need_lib_prefix=no
9216 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9220 dynamic_linker='NetBSD (a.out) ld.so'
9221 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009224 dynamic_linker='NetBSD ld.elf_so'
9225 fi
9226 shlibpath_var=LD_LIBRARY_PATH
9227 shlibpath_overrides_runpath=yes
9228 hardcode_into_libs=yes
9229 ;;
9230
9231newsos6)
9232 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 shlibpath_overrides_runpath=yes
9236 ;;
9237
mlcreech636a9952008-05-05 22:52:56 +00009238*nto* | *qnx*)
9239 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009240 need_lib_prefix=no
9241 need_version=no
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009244 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009245 shlibpath_overrides_runpath=no
9246 hardcode_into_libs=yes
9247 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009248 ;;
9249
drh71eb93e2001-09-28 01:34:43 +00009250openbsd*)
9251 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009252 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009253 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9255 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9257 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009258 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9261 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009262 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 +00009263 case $host_os in
9264 openbsd2.[89] | openbsd2.[89].*)
9265 shlibpath_overrides_runpath=no
9266 ;;
9267 *)
9268 shlibpath_overrides_runpath=yes
9269 ;;
9270 esac
a.rottmann84e63352003-03-24 09:42:16 +00009271 else
9272 shlibpath_overrides_runpath=yes
9273 fi
drh71eb93e2001-09-28 01:34:43 +00009274 ;;
9275
9276os2*)
9277 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009278 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009279 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009280 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009281 dynamic_linker='OS/2 ld.exe'
9282 shlibpath_var=LIBPATH
9283 ;;
9284
9285osf3* | osf4* | osf5*)
9286 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009287 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009288 need_version=no
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009291 shlibpath_var=LD_LIBRARY_PATH
9292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9294 ;;
9295
mlcreech636a9952008-05-05 22:52:56 +00009296rdos*)
9297 dynamic_linker=no
9298 ;;
9299
drh71eb93e2001-09-28 01:34:43 +00009300solaris*)
9301 version_type=linux
9302 need_lib_prefix=no
9303 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 hardcode_into_libs=yes
9309 # ldd complains unless libraries are executable
9310 postinstall_cmds='chmod +x $lib'
9311 ;;
9312
9313sunos4*)
9314 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=yes
9319 if test "$with_gnu_ld" = yes; then
9320 need_lib_prefix=no
9321 fi
9322 need_version=yes
9323 ;;
9324
vapier7f19c022007-02-17 14:46:31 +00009325sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009326 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009329 shlibpath_var=LD_LIBRARY_PATH
9330 case $host_vendor in
9331 sni)
9332 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009333 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009334 runpath_var=LD_RUN_PATH
9335 ;;
9336 siemens)
9337 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009338 ;;
9339 motorola)
9340 need_lib_prefix=no
9341 need_version=no
9342 shlibpath_overrides_runpath=no
9343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9344 ;;
9345 esac
9346 ;;
9347
9348sysv4*MP*)
9349 if test -d /usr/nec ;then
9350 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9352 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009353 shlibpath_var=LD_LIBRARY_PATH
9354 fi
9355 ;;
9356
vapier7f19c022007-02-17 14:46:31 +00009357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9358 version_type=freebsd-elf
9359 need_lib_prefix=no
9360 need_version=no
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009364 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009365 hardcode_into_libs=yes
9366 if test "$with_gnu_ld" = yes; then
9367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009368 else
9369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009370 case $host_os in
9371 sco3.2v5*)
9372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373 ;;
9374 esac
9375 fi
9376 sys_lib_dlsearch_path_spec='/usr/lib'
9377 ;;
9378
mlcreech636a9952008-05-05 22:52:56 +00009379tpf*)
9380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9381 version_type=linux
9382 need_lib_prefix=no
9383 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009385 shlibpath_var=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath=no
9387 hardcode_into_libs=yes
9388 ;;
9389
a.rottmann9bc8b932004-02-29 15:18:31 +00009390uts4*)
9391 version_type=linux
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 shlibpath_var=LD_LIBRARY_PATH
9395 ;;
9396
drh71eb93e2001-09-28 01:34:43 +00009397*)
9398 dynamic_linker=no
9399 ;;
9400esac
drh8b727472009-01-19 18:18:40 +00009401{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9402$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009403test "$dynamic_linker" = no && can_build_shared=no
9404
vapier7f19c022007-02-17 14:46:31 +00009405variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9406if test "$GCC" = yes; then
9407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9408fi
9409
mlcreech636a9952008-05-05 22:52:56 +00009410if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9412fi
9413if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9415fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
drh8b727472009-01-19 18:18:40 +00009503 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9504$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009505hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009506if test -n "$hardcode_libdir_flag_spec" ||
9507 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009508 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009509
mlcreech636a9952008-05-05 22:52:56 +00009510 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009511 if test "$hardcode_direct" != no &&
9512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9513 # have to relink, otherwise we might link with an installed library
9514 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009516 test "$hardcode_minus_L" != no; then
9517 # Linking always hardcodes the temporary library directory.
9518 hardcode_action=relink
9519 else
9520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9521 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009522 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009523else
9524 # We cannot hardcode anything, or else we can only hardcode existing
9525 # directories.
9526 hardcode_action=unsupported
9527fi
drh8b727472009-01-19 18:18:40 +00009528{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9529$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009530
mlcreech636a9952008-05-05 22:52:56 +00009531if test "$hardcode_action" = relink ||
9532 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009533 # Fast installation is not supported
9534 enable_fast_install=no
9535elif test "$shlibpath_overrides_runpath" = yes ||
9536 test "$enable_shared" = no; then
9537 # Fast installation is not necessary
9538 enable_fast_install=needless
9539fi
9540
a.rottmann84e63352003-03-24 09:42:16 +00009541
mlcreech636a9952008-05-05 22:52:56 +00009542
9543
9544
9545
9546 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009547 enable_dlopen=unknown
9548 enable_dlopen_self=unknown
9549 enable_dlopen_self_static=unknown
9550else
9551 lt_cv_dlopen=no
9552 lt_cv_dlopen_libs=
9553
9554 case $host_os in
9555 beos*)
9556 lt_cv_dlopen="load_add_on"
9557 lt_cv_dlopen_libs=
9558 lt_cv_dlopen_self=yes
9559 ;;
9560
vapier6acb2cf2009-01-28 04:46:28 +00009561 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009562 lt_cv_dlopen="LoadLibrary"
9563 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009564 ;;
drh71eb93e2001-09-28 01:34:43 +00009565
a.rottmann9bc8b932004-02-29 15:18:31 +00009566 cygwin*)
9567 lt_cv_dlopen="dlopen"
9568 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009569 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009570
9571 darwin*)
9572 # if libdl is installed we need to link against it
drh8b727472009-01-19 18:18:40 +00009573 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9574$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009575if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009576 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009577else
9578 ac_check_lib_save_LIBS=$LIBS
9579LIBS="-ldl $LIBS"
9580cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586
drh8b727472009-01-19 18:18:40 +00009587/* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009590#ifdef __cplusplus
9591extern "C"
9592#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009593char dlopen ();
9594int
9595main ()
9596{
drh8b727472009-01-19 18:18:40 +00009597return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009598 ;
9599 return 0;
9600}
9601_ACEOF
9602rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009603if { (ac_try="$ac_link"
9604case "(($ac_try" in
9605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9606 *) ac_try_echo=$ac_try;;
9607esac
9608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9609$as_echo "$ac_try_echo") >&5
9610 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest$ac_exeext && {
9620 test "$cross_compiling" = yes ||
9621 $as_test_x conftest$ac_exeext
9622 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009623 ac_cv_lib_dl_dlopen=yes
9624else
drh8b727472009-01-19 18:18:40 +00009625 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009626sed 's/^/| /' conftest.$ac_ext >&5
9627
drh8b727472009-01-19 18:18:40 +00009628 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009629fi
drh8b727472009-01-19 18:18:40 +00009630
9631rm -rf conftest.dSYM
9632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009633 conftest$ac_exeext conftest.$ac_ext
9634LIBS=$ac_check_lib_save_LIBS
9635fi
drh8b727472009-01-19 18:18:40 +00009636{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009638if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640else
9641
9642 lt_cv_dlopen="dyld"
9643 lt_cv_dlopen_libs=
9644 lt_cv_dlopen_self=yes
9645
9646fi
9647
mlcreech636a9952008-05-05 22:52:56 +00009648 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009649
drh71eb93e2001-09-28 01:34:43 +00009650 *)
drh8b727472009-01-19 18:18:40 +00009651 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9652$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009653if test "${ac_cv_func_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009654 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009655else
9656 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009662/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9664#define shl_load innocuous_shl_load
9665
drh71eb93e2001-09-28 01:34:43 +00009666/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009667 which can conflict with char shl_load (); below.
9668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9669 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009670
a.rottmann84e63352003-03-24 09:42:16 +00009671#ifdef __STDC__
9672# include <limits.h>
9673#else
9674# include <assert.h>
9675#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009676
9677#undef shl_load
9678
drh8b727472009-01-19 18:18:40 +00009679/* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009682#ifdef __cplusplus
9683extern "C"
9684#endif
drh71eb93e2001-09-28 01:34:43 +00009685char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009686/* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009689#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009690choke me
drh71eb93e2001-09-28 01:34:43 +00009691#endif
9692
a.rottmann84e63352003-03-24 09:42:16 +00009693int
9694main ()
9695{
drh8b727472009-01-19 18:18:40 +00009696return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009697 ;
9698 return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009702if { (ac_try="$ac_link"
9703case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706esac
9707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9708$as_echo "$ac_try_echo") >&5
9709 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009710 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest$ac_exeext && {
9719 test "$cross_compiling" = yes ||
9720 $as_test_x conftest$ac_exeext
9721 }; then
drh71eb93e2001-09-28 01:34:43 +00009722 ac_cv_func_shl_load=yes
9723else
drh8b727472009-01-19 18:18:40 +00009724 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009725sed 's/^/| /' conftest.$ac_ext >&5
9726
drh8b727472009-01-19 18:18:40 +00009727 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009728fi
drh8b727472009-01-19 18:18:40 +00009729
9730rm -rf conftest.dSYM
9731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009732 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009733fi
drh8b727472009-01-19 18:18:40 +00009734{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9735$as_echo "$ac_cv_func_shl_load" >&6; }
drh934c5442009-04-13 09:09:24 +00009736if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009737 lt_cv_dlopen="shl_load"
9738else
drh8b727472009-01-19 18:18:40 +00009739 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009741if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009742 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009743else
9744 ac_check_lib_save_LIBS=$LIBS
9745LIBS="-ldld $LIBS"
9746cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009752
drh8b727472009-01-19 18:18:40 +00009753/* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009756#ifdef __cplusplus
9757extern "C"
9758#endif
drh71eb93e2001-09-28 01:34:43 +00009759char shl_load ();
9760int
9761main ()
9762{
drh8b727472009-01-19 18:18:40 +00009763return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009764 ;
9765 return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009769if { (ac_try="$ac_link"
9770case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9775$as_echo "$ac_try_echo") >&5
9776 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009777 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest$ac_exeext && {
9786 test "$cross_compiling" = yes ||
9787 $as_test_x conftest$ac_exeext
9788 }; then
drh71eb93e2001-09-28 01:34:43 +00009789 ac_cv_lib_dld_shl_load=yes
9790else
drh8b727472009-01-19 18:18:40 +00009791 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009792sed 's/^/| /' conftest.$ac_ext >&5
9793
drh8b727472009-01-19 18:18:40 +00009794 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009795fi
drh8b727472009-01-19 18:18:40 +00009796
9797rm -rf conftest.dSYM
9798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009799 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009800LIBS=$ac_check_lib_save_LIBS
9801fi
drh8b727472009-01-19 18:18:40 +00009802{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9803$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh934c5442009-04-13 09:09:24 +00009804if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009806else
drh8b727472009-01-19 18:18:40 +00009807 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9808$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009809if test "${ac_cv_func_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009810 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009811else
9812 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009813/* confdefs.h. */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9820#define dlopen innocuous_dlopen
9821
a.rottmann84e63352003-03-24 09:42:16 +00009822/* System header to define __stub macros and hopefully few prototypes,
9823 which can conflict with char dlopen (); below.
9824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009826
a.rottmann84e63352003-03-24 09:42:16 +00009827#ifdef __STDC__
9828# include <limits.h>
9829#else
9830# include <assert.h>
9831#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009832
9833#undef dlopen
9834
drh8b727472009-01-19 18:18:40 +00009835/* Override any GCC internal prototype to avoid an error.
9836 Use char because int might match the return type of a GCC
9837 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009838#ifdef __cplusplus
9839extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009840#endif
a.rottmann84e63352003-03-24 09:42:16 +00009841char dlopen ();
9842/* The GNU C library defines this for functions which it implements
9843 to always fail with ENOSYS. Some functions are actually named
9844 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009845#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009846choke me
a.rottmann84e63352003-03-24 09:42:16 +00009847#endif
9848
9849int
9850main ()
9851{
drh8b727472009-01-19 18:18:40 +00009852return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009853 ;
9854 return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009858if { (ac_try="$ac_link"
9859case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9864$as_echo "$ac_try_echo") >&5
9865 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009866 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest$ac_exeext && {
9875 test "$cross_compiling" = yes ||
9876 $as_test_x conftest$ac_exeext
9877 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009878 ac_cv_func_dlopen=yes
9879else
drh8b727472009-01-19 18:18:40 +00009880 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009881sed 's/^/| /' conftest.$ac_ext >&5
9882
drh8b727472009-01-19 18:18:40 +00009883 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009884fi
drh8b727472009-01-19 18:18:40 +00009885
9886rm -rf conftest.dSYM
9887rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009888 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009889fi
drh8b727472009-01-19 18:18:40 +00009890{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9891$as_echo "$ac_cv_func_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009892if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009893 lt_cv_dlopen="dlopen"
9894else
drh8b727472009-01-19 18:18:40 +00009895 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9896$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009897if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009898 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009899else
9900 ac_check_lib_save_LIBS=$LIBS
9901LIBS="-ldl $LIBS"
9902cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009908
drh8b727472009-01-19 18:18:40 +00009909/* Override any GCC internal prototype to avoid an error.
9910 Use char because int might match the return type of a GCC
9911 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009912#ifdef __cplusplus
9913extern "C"
9914#endif
drh71eb93e2001-09-28 01:34:43 +00009915char dlopen ();
9916int
9917main ()
9918{
drh8b727472009-01-19 18:18:40 +00009919return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009920 ;
9921 return 0;
9922}
9923_ACEOF
9924rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009925if { (ac_try="$ac_link"
9926case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9929esac
9930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9931$as_echo "$ac_try_echo") >&5
9932 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009933 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext && {
9942 test "$cross_compiling" = yes ||
9943 $as_test_x conftest$ac_exeext
9944 }; then
drh71eb93e2001-09-28 01:34:43 +00009945 ac_cv_lib_dl_dlopen=yes
9946else
drh8b727472009-01-19 18:18:40 +00009947 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009948sed 's/^/| /' conftest.$ac_ext >&5
9949
drh8b727472009-01-19 18:18:40 +00009950 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009951fi
drh8b727472009-01-19 18:18:40 +00009952
9953rm -rf conftest.dSYM
9954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009955 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009956LIBS=$ac_check_lib_save_LIBS
9957fi
drh8b727472009-01-19 18:18:40 +00009958{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +00009960if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009961 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9962else
drh8b727472009-01-19 18:18:40 +00009963 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9964$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009965if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009966 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009967else
9968 ac_check_lib_save_LIBS=$LIBS
9969LIBS="-lsvld $LIBS"
9970cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009971/* confdefs.h. */
9972_ACEOF
9973cat confdefs.h >>conftest.$ac_ext
9974cat >>conftest.$ac_ext <<_ACEOF
9975/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009976
drh8b727472009-01-19 18:18:40 +00009977/* Override any GCC internal prototype to avoid an error.
9978 Use char because int might match the return type of a GCC
9979 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009980#ifdef __cplusplus
9981extern "C"
9982#endif
drh71eb93e2001-09-28 01:34:43 +00009983char dlopen ();
9984int
9985main ()
9986{
drh8b727472009-01-19 18:18:40 +00009987return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009988 ;
9989 return 0;
9990}
9991_ACEOF
9992rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009993if { (ac_try="$ac_link"
9994case "(($ac_try" in
9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996 *) ac_try_echo=$ac_try;;
9997esac
9998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9999$as_echo "$ac_try_echo") >&5
10000 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000010001 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext && {
10010 test "$cross_compiling" = yes ||
10011 $as_test_x conftest$ac_exeext
10012 }; then
drh71eb93e2001-09-28 01:34:43 +000010013 ac_cv_lib_svld_dlopen=yes
10014else
drh8b727472009-01-19 18:18:40 +000010015 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010016sed 's/^/| /' conftest.$ac_ext >&5
10017
drh8b727472009-01-19 18:18:40 +000010018 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010019fi
drh8b727472009-01-19 18:18:40 +000010020
10021rm -rf conftest.dSYM
10022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010023 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010024LIBS=$ac_check_lib_save_LIBS
10025fi
drh8b727472009-01-19 18:18:40 +000010026{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10027$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh934c5442009-04-13 09:09:24 +000010028if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010030else
drh8b727472009-01-19 18:18:40 +000010031 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10032$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000010033if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010034 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010035else
10036 ac_check_lib_save_LIBS=$LIBS
10037LIBS="-ldld $LIBS"
10038cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010039/* confdefs.h. */
10040_ACEOF
10041cat confdefs.h >>conftest.$ac_ext
10042cat >>conftest.$ac_ext <<_ACEOF
10043/* end confdefs.h. */
10044
drh8b727472009-01-19 18:18:40 +000010045/* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010048#ifdef __cplusplus
10049extern "C"
10050#endif
a.rottmann84e63352003-03-24 09:42:16 +000010051char dld_link ();
10052int
10053main ()
10054{
drh8b727472009-01-19 18:18:40 +000010055return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010056 ;
10057 return 0;
10058}
10059_ACEOF
10060rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000010061if { (ac_try="$ac_link"
10062case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10065esac
10066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10067$as_echo "$ac_try_echo") >&5
10068 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000010069 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } && {
10075 test -z "$ac_c_werror_flag" ||
10076 test ! -s conftest.err
10077 } && test -s conftest$ac_exeext && {
10078 test "$cross_compiling" = yes ||
10079 $as_test_x conftest$ac_exeext
10080 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010081 ac_cv_lib_dld_dld_link=yes
10082else
drh8b727472009-01-19 18:18:40 +000010083 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010084sed 's/^/| /' conftest.$ac_ext >&5
10085
drh8b727472009-01-19 18:18:40 +000010086 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010087fi
drh8b727472009-01-19 18:18:40 +000010088
10089rm -rf conftest.dSYM
10090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010091 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010092LIBS=$ac_check_lib_save_LIBS
10093fi
drh8b727472009-01-19 18:18:40 +000010094{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10095$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh934c5442009-04-13 09:09:24 +000010096if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010097 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010098fi
10099
drh71eb93e2001-09-28 01:34:43 +000010100
10101fi
10102
drh71eb93e2001-09-28 01:34:43 +000010103
10104fi
10105
a.rottmann84e63352003-03-24 09:42:16 +000010106
10107fi
10108
10109
10110fi
10111
10112
drh71eb93e2001-09-28 01:34:43 +000010113fi
10114
10115 ;;
10116 esac
10117
10118 if test "x$lt_cv_dlopen" != xno; then
10119 enable_dlopen=yes
10120 else
10121 enable_dlopen=no
10122 fi
10123
10124 case $lt_cv_dlopen in
10125 dlopen)
10126 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010127 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010128
10129 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010131
10132 save_LIBS="$LIBS"
10133 LIBS="$lt_cv_dlopen_libs $LIBS"
10134
drh8b727472009-01-19 18:18:40 +000010135 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10136$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010137if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010138 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010139else
10140 if test "$cross_compiling" = yes; then :
10141 lt_cv_dlopen_self=cross
10142else
a.rottmann9bc8b932004-02-29 15:18:31 +000010143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010144 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010145 cat > conftest.$ac_ext <<_LT_EOF
drh697e9652010-12-21 00:20:53 +000010146#line 10146 "configure"
drh71eb93e2001-09-28 01:34:43 +000010147#include "confdefs.h"
10148
10149#if HAVE_DLFCN_H
10150#include <dlfcn.h>
10151#endif
10152
10153#include <stdio.h>
10154
10155#ifdef RTLD_GLOBAL
10156# define LT_DLGLOBAL RTLD_GLOBAL
10157#else
10158# ifdef DL_GLOBAL
10159# define LT_DLGLOBAL DL_GLOBAL
10160# else
10161# define LT_DLGLOBAL 0
10162# endif
10163#endif
10164
10165/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10166 find out it does not work in some platform. */
10167#ifndef LT_DLLAZY_OR_NOW
10168# ifdef RTLD_LAZY
10169# define LT_DLLAZY_OR_NOW RTLD_LAZY
10170# else
10171# ifdef DL_LAZY
10172# define LT_DLLAZY_OR_NOW DL_LAZY
10173# else
10174# ifdef RTLD_NOW
10175# define LT_DLLAZY_OR_NOW RTLD_NOW
10176# else
10177# ifdef DL_NOW
10178# define LT_DLLAZY_OR_NOW DL_NOW
10179# else
10180# define LT_DLLAZY_OR_NOW 0
10181# endif
10182# endif
10183# endif
10184# endif
10185#endif
10186
drh71eb93e2001-09-28 01:34:43 +000010187void fnord() { int i=42;}
10188int main ()
10189{
10190 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10191 int status = $lt_dlunknown;
10192
10193 if (self)
10194 {
10195 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10196 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10197 /* dlclose (self); */
10198 }
vapier7f19c022007-02-17 14:46:31 +000010199 else
10200 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010201
vapier6acb2cf2009-01-28 04:46:28 +000010202 return status;
drh71eb93e2001-09-28 01:34:43 +000010203}
mlcreech636a9952008-05-05 22:52:56 +000010204_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010206 (eval $ac_link) 2>&5
10207 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010209 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010210 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010211 lt_status=$?
10212 case x$lt_status in
10213 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10214 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010215 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010216 esac
10217 else :
10218 # compilation failed
10219 lt_cv_dlopen_self=no
10220 fi
10221fi
10222rm -fr conftest*
10223
a.rottmann84e63352003-03-24 09:42:16 +000010224
drh71eb93e2001-09-28 01:34:43 +000010225fi
drh8b727472009-01-19 18:18:40 +000010226{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10227$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010228
10229 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +000010231 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10232$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010233if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010234 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010235else
10236 if test "$cross_compiling" = yes; then :
10237 lt_cv_dlopen_self_static=cross
10238else
a.rottmann9bc8b932004-02-29 15:18:31 +000010239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010240 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010241 cat > conftest.$ac_ext <<_LT_EOF
drh697e9652010-12-21 00:20:53 +000010242#line 10242 "configure"
drh71eb93e2001-09-28 01:34:43 +000010243#include "confdefs.h"
10244
10245#if HAVE_DLFCN_H
10246#include <dlfcn.h>
10247#endif
10248
10249#include <stdio.h>
10250
10251#ifdef RTLD_GLOBAL
10252# define LT_DLGLOBAL RTLD_GLOBAL
10253#else
10254# ifdef DL_GLOBAL
10255# define LT_DLGLOBAL DL_GLOBAL
10256# else
10257# define LT_DLGLOBAL 0
10258# endif
10259#endif
10260
10261/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10262 find out it does not work in some platform. */
10263#ifndef LT_DLLAZY_OR_NOW
10264# ifdef RTLD_LAZY
10265# define LT_DLLAZY_OR_NOW RTLD_LAZY
10266# else
10267# ifdef DL_LAZY
10268# define LT_DLLAZY_OR_NOW DL_LAZY
10269# else
10270# ifdef RTLD_NOW
10271# define LT_DLLAZY_OR_NOW RTLD_NOW
10272# else
10273# ifdef DL_NOW
10274# define LT_DLLAZY_OR_NOW DL_NOW
10275# else
10276# define LT_DLLAZY_OR_NOW 0
10277# endif
10278# endif
10279# endif
10280# endif
10281#endif
10282
drh71eb93e2001-09-28 01:34:43 +000010283void fnord() { int i=42;}
10284int main ()
10285{
10286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10287 int status = $lt_dlunknown;
10288
10289 if (self)
10290 {
10291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10293 /* dlclose (self); */
10294 }
vapier7f19c022007-02-17 14:46:31 +000010295 else
10296 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010297
vapier6acb2cf2009-01-28 04:46:28 +000010298 return status;
drh71eb93e2001-09-28 01:34:43 +000010299}
mlcreech636a9952008-05-05 22:52:56 +000010300_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010302 (eval $ac_link) 2>&5
10303 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010305 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010306 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010307 lt_status=$?
10308 case x$lt_status in
10309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010312 esac
10313 else :
10314 # compilation failed
10315 lt_cv_dlopen_self_static=no
10316 fi
10317fi
10318rm -fr conftest*
10319
a.rottmann84e63352003-03-24 09:42:16 +000010320
drh71eb93e2001-09-28 01:34:43 +000010321fi
drh8b727472009-01-19 18:18:40 +000010322{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10323$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010324 fi
10325
10326 CPPFLAGS="$save_CPPFLAGS"
10327 LDFLAGS="$save_LDFLAGS"
10328 LIBS="$save_LIBS"
10329 ;;
10330 esac
10331
10332 case $lt_cv_dlopen_self in
10333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10334 *) enable_dlopen_self=unknown ;;
10335 esac
10336
10337 case $lt_cv_dlopen_self_static in
10338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10339 *) enable_dlopen_self_static=unknown ;;
10340 esac
10341fi
10342
drh71eb93e2001-09-28 01:34:43 +000010343
drh71eb93e2001-09-28 01:34:43 +000010344
a.rottmann9bc8b932004-02-29 15:18:31 +000010345
a.rottmann9bc8b932004-02-29 15:18:31 +000010346
mlcreech636a9952008-05-05 22:52:56 +000010347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359striplib=
10360old_striplib=
drh8b727472009-01-19 18:18:40 +000010361{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10362$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010363if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh8b727472009-01-19 18:18:40 +000010366 { $as_echo "$as_me:$LINENO: result: yes" >&5
10367$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010368else
10369# FIXME - insert some real tests, host_os isn't really good enough
10370 case $host_os in
10371 darwin*)
10372 if test -n "$STRIP" ; then
10373 striplib="$STRIP -x"
10374 old_striplib="$STRIP -S"
drh8b727472009-01-19 18:18:40 +000010375 { $as_echo "$as_me:$LINENO: result: yes" >&5
10376$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010377 else
drh8b727472009-01-19 18:18:40 +000010378 { $as_echo "$as_me:$LINENO: result: no" >&5
10379$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010380 fi
a.rottmann84e63352003-03-24 09:42:16 +000010381 ;;
mlcreech636a9952008-05-05 22:52:56 +000010382 *)
drh8b727472009-01-19 18:18:40 +000010383 { $as_echo "$as_me:$LINENO: result: no" >&5
10384$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010385 ;;
10386 esac
mlcreech636a9952008-05-05 22:52:56 +000010387fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010388
a.rottmann9bc8b932004-02-29 15:18:31 +000010389
drh71eb93e2001-09-28 01:34:43 +000010390
drh71eb93e2001-09-28 01:34:43 +000010391
a.rottmann84e63352003-03-24 09:42:16 +000010392
drh71eb93e2001-09-28 01:34:43 +000010393
drh71eb93e2001-09-28 01:34:43 +000010394
a.rottmann9bc8b932004-02-29 15:18:31 +000010395
drh71eb93e2001-09-28 01:34:43 +000010396
drh71eb93e2001-09-28 01:34:43 +000010397
drh71eb93e2001-09-28 01:34:43 +000010398
drh71eb93e2001-09-28 01:34:43 +000010399
mlcreech636a9952008-05-05 22:52:56 +000010400 # Report which library types will actually be built
drh8b727472009-01-19 18:18:40 +000010401 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10402$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10403 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10404$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010405
drh8b727472009-01-19 18:18:40 +000010406 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10407$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010408 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010409
mlcreech636a9952008-05-05 22:52:56 +000010410 # On AIX, shared libraries and static libraries use the same namespace, and
10411 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010412 case $host_os in
10413 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010414 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010415 if test -n "$RANLIB"; then
10416 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10417 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010418 fi
10419 ;;
10420
mlcreech636a9952008-05-05 22:52:56 +000010421 aix[4-9]*)
10422 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10423 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010424 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010425 ;;
10426 esac
drh8b727472009-01-19 18:18:40 +000010427 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10428$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010429
drh8b727472009-01-19 18:18:40 +000010430 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10431$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010432 # Make sure either enable_shared or enable_static is yes.
10433 test "$enable_shared" = yes || enable_static=yes
drh8b727472009-01-19 18:18:40 +000010434 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10435$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010436
a.rottmann9bc8b932004-02-29 15:18:31 +000010437
a.rottmann9bc8b932004-02-29 15:18:31 +000010438
a.rottmann9bc8b932004-02-29 15:18:31 +000010439
vapier7f19c022007-02-17 14:46:31 +000010440fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010441ac_ext=c
10442ac_cpp='$CPP $CPPFLAGS'
10443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446
10447CC="$lt_save_CC"
10448
a.rottmann9bc8b932004-02-29 15:18:31 +000010449
a.rottmann9bc8b932004-02-29 15:18:31 +000010450
10451
a.rottmann9bc8b932004-02-29 15:18:31 +000010452
a.rottmann9bc8b932004-02-29 15:18:31 +000010453
a.rottmann9bc8b932004-02-29 15:18:31 +000010454
a.rottmann9bc8b932004-02-29 15:18:31 +000010455
a.rottmann9bc8b932004-02-29 15:18:31 +000010456
a.rottmann9bc8b932004-02-29 15:18:31 +000010457
vapier7f19c022007-02-17 14:46:31 +000010458
a.rottmann9bc8b932004-02-29 15:18:31 +000010459
10460
drh8b727472009-01-19 18:18:40 +000010461 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010462
vapier7f19c022007-02-17 14:46:31 +000010463
10464
vapier7f19c022007-02-17 14:46:31 +000010465
mlcreech636a9952008-05-05 22:52:56 +000010466# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010467
10468
drh71eb93e2001-09-28 01:34:43 +000010469# Find a good install program. We prefer a C program (faster),
10470# so one script is as good as another. But avoid the broken or
10471# incompatible versions:
10472# SysV /etc/install, /usr/sbin/install
10473# SunOS /usr/etc/install
10474# IRIX /sbin/install
10475# AIX /bin/install
10476# AmigaOS /C/install, which installs bootblocks on floppy discs
10477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10478# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010480# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010481# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010482# Reject install programs that cannot install multiple files.
10483{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10484$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010485if test -z "$INSTALL"; then
10486if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010487 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010488else
a.rottmann84e63352003-03-24 09:42:16 +000010489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490for as_dir in $PATH
10491do
10492 IFS=$as_save_IFS
10493 test -z "$as_dir" && as_dir=.
10494 # Account for people who put trailing slashes in PATH elements.
10495case $as_dir/ in
10496 ./ | .// | /cC/* | \
10497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010498 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010499 /usr/ucb/* ) ;;
10500 *)
10501 # OSF1 and SCO ODT 3.0 have their own names for install.
10502 # Don't use installbsd from OSF since it installs stuff as root
10503 # by default.
10504 for ac_prog in ginstall scoinst install; do
10505 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
a.rottmann964dbb12004-02-26 19:47:42 +000010507 if test $ac_prog = install &&
10508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10509 # AIX install. It has an incompatible calling convention.
10510 :
10511 elif test $ac_prog = install &&
10512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10513 # program-specific install script used by HP pwplus--don't use.
10514 :
10515 else
drh8b727472009-01-19 18:18:40 +000010516 rm -rf conftest.one conftest.two conftest.dir
10517 echo one > conftest.one
10518 echo two > conftest.two
10519 mkdir conftest.dir
10520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10521 test -s conftest.one && test -s conftest.two &&
10522 test -s conftest.dir/conftest.one &&
10523 test -s conftest.dir/conftest.two
10524 then
10525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10526 break 3
10527 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010528 fi
10529 fi
drh71eb93e2001-09-28 01:34:43 +000010530 done
a.rottmann84e63352003-03-24 09:42:16 +000010531 done
10532 ;;
10533esac
a.rottmann84e63352003-03-24 09:42:16 +000010534
drh8b727472009-01-19 18:18:40 +000010535done
10536IFS=$as_save_IFS
10537
10538rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010539
10540fi
10541 if test "${ac_cv_path_install+set}" = set; then
10542 INSTALL=$ac_cv_path_install
10543 else
drh8b727472009-01-19 18:18:40 +000010544 # As a last resort, use the slow shell script. Don't cache a
10545 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010546 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010547 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010548 INSTALL=$ac_install_sh
10549 fi
10550fi
drh8b727472009-01-19 18:18:40 +000010551{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10552$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010553
10554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10555# It thinks the first close brace ends the variable substitution.
10556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10557
10558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10559
10560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10561
drhf1878b42006-01-23 18:06:52 +000010562for ac_prog in gawk mawk nawk awk
10563do
10564 # Extract the first word of "$ac_prog", so it can be a program name with args.
10565set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000010566{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010568if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010569 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010570else
10571 if test -n "$AWK"; then
10572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
drhf1878b42006-01-23 18:06:52 +000010581 ac_cv_prog_AWK="$ac_prog"
drh8b727472009-01-19 18:18:40 +000010582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010583 break 2
10584 fi
10585done
10586done
drh8b727472009-01-19 18:18:40 +000010587IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010588
10589fi
10590fi
10591AWK=$ac_cv_prog_AWK
10592if test -n "$AWK"; then
drh8b727472009-01-19 18:18:40 +000010593 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10594$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010595else
drh8b727472009-01-19 18:18:40 +000010596 { $as_echo "$as_me:$LINENO: result: no" >&5
10597$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010598fi
10599
drh8b727472009-01-19 18:18:40 +000010600
drhf1878b42006-01-23 18:06:52 +000010601 test -n "$AWK" && break
10602done
10603
a.rottmann84e63352003-03-24 09:42:16 +000010604
drh75897232000-05-29 14:26:00 +000010605#########
mlcreech636a9952008-05-05 22:52:56 +000010606# Enable large file support (if special flags are necessary)
10607#
drh8b727472009-01-19 18:18:40 +000010608# Check whether --enable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +000010609if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010610 enableval=$enable_largefile;
10611fi
mlcreech636a9952008-05-05 22:52:56 +000010612
10613if test "$enable_largefile" != no; then
10614
drh8b727472009-01-19 18:18:40 +000010615 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10616$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010617if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010618 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010619else
mlcreech636a9952008-05-05 22:52:56 +000010620 ac_cv_sys_largefile_CC=no
10621 if test "$GCC" != yes; then
10622 ac_save_CC=$CC
10623 while :; do
drh8b727472009-01-19 18:18:40 +000010624 # IRIX 6.2 and later do not support large files by default,
10625 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +000010626 cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
10632#include <sys/types.h>
10633 /* Check that off_t can represent 2**63 - 1 correctly.
10634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10635 since some C++ compilers masquerading as C compilers
10636 incorrectly reject 9223372036854775807. */
10637#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10639 && LARGE_OFF_T % 2147483647 == 1)
10640 ? 1 : -1];
10641int
10642main ()
10643{
10644
10645 ;
10646 return 0;
10647}
10648_ACEOF
drh8b727472009-01-19 18:18:40 +000010649 rm -f conftest.$ac_objext
10650if { (ac_try="$ac_compile"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
10655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656$as_echo "$ac_try_echo") >&5
10657 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010667 break
10668else
drh8b727472009-01-19 18:18:40 +000010669 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010670sed 's/^/| /' conftest.$ac_ext >&5
10671
drh8b727472009-01-19 18:18:40 +000010672
mlcreech636a9952008-05-05 22:52:56 +000010673fi
drh8b727472009-01-19 18:18:40 +000010674
10675rm -f core conftest.err conftest.$ac_objext
10676 CC="$CC -n32"
10677 rm -f conftest.$ac_objext
10678if { (ac_try="$ac_compile"
10679case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682esac
10683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684$as_echo "$ac_try_echo") >&5
10685 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010695 ac_cv_sys_largefile_CC=' -n32'; break
10696else
drh8b727472009-01-19 18:18:40 +000010697 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010698sed 's/^/| /' conftest.$ac_ext >&5
10699
drh8b727472009-01-19 18:18:40 +000010700
mlcreech636a9952008-05-05 22:52:56 +000010701fi
drh8b727472009-01-19 18:18:40 +000010702
10703rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010704 break
10705 done
10706 CC=$ac_save_CC
10707 rm -f conftest.$ac_ext
10708 fi
10709fi
drh8b727472009-01-19 18:18:40 +000010710{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10711$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010712 if test "$ac_cv_sys_largefile_CC" != no; then
10713 CC=$CC$ac_cv_sys_largefile_CC
10714 fi
10715
drh8b727472009-01-19 18:18:40 +000010716 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10717$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010718if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010719 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010720else
10721 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010722 cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010728#include <sys/types.h>
10729 /* Check that off_t can represent 2**63 - 1 correctly.
10730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10731 since some C++ compilers masquerading as C compilers
10732 incorrectly reject 9223372036854775807. */
10733#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10735 && LARGE_OFF_T % 2147483647 == 1)
10736 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010737int
10738main ()
10739{
mlcreech636a9952008-05-05 22:52:56 +000010740
mlcreechb87057f2008-03-06 07:19:20 +000010741 ;
10742 return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010746if { (ac_try="$ac_compile"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752$as_echo "$ac_try_echo") >&5
10753 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && {
10760 test -z "$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 } && test -s conftest.$ac_objext; then
10763 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010764else
drh8b727472009-01-19 18:18:40 +000010765 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010766sed 's/^/| /' conftest.$ac_ext >&5
10767
drh8b727472009-01-19 18:18:40 +000010768
mlcreech636a9952008-05-05 22:52:56 +000010769fi
drh8b727472009-01-19 18:18:40 +000010770
10771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010772 cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778#define _FILE_OFFSET_BITS 64
10779#include <sys/types.h>
10780 /* Check that off_t can represent 2**63 - 1 correctly.
10781 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10782 since some C++ compilers masquerading as C compilers
10783 incorrectly reject 9223372036854775807. */
10784#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10785 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10786 && LARGE_OFF_T % 2147483647 == 1)
10787 ? 1 : -1];
10788int
10789main ()
10790{
10791
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010797if { (ac_try="$ac_compile"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
10802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10803$as_echo "$ac_try_echo") >&5
10804 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010814 ac_cv_sys_file_offset_bits=64; break
10815else
drh8b727472009-01-19 18:18:40 +000010816 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010817sed 's/^/| /' conftest.$ac_ext >&5
10818
drh8b727472009-01-19 18:18:40 +000010819
mlcreech636a9952008-05-05 22:52:56 +000010820fi
drh8b727472009-01-19 18:18:40 +000010821
10822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010824 break
10825done
10826fi
drh8b727472009-01-19 18:18:40 +000010827{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10828$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10829case $ac_cv_sys_file_offset_bits in #(
10830 no | unknown) ;;
10831 *)
mlcreech636a9952008-05-05 22:52:56 +000010832cat >>confdefs.h <<_ACEOF
10833#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10834_ACEOF
drh8b727472009-01-19 18:18:40 +000010835;;
10836esac
10837rm -rf conftest*
10838 if test $ac_cv_sys_file_offset_bits = unknown; then
10839 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10840$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010841if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010842 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010843else
10844 while :; do
10845 cat >conftest.$ac_ext <<_ACEOF
10846/* confdefs.h. */
10847_ACEOF
10848cat confdefs.h >>conftest.$ac_ext
10849cat >>conftest.$ac_ext <<_ACEOF
10850/* end confdefs.h. */
10851#include <sys/types.h>
10852 /* Check that off_t can represent 2**63 - 1 correctly.
10853 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10854 since some C++ compilers masquerading as C compilers
10855 incorrectly reject 9223372036854775807. */
10856#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10857 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10858 && LARGE_OFF_T % 2147483647 == 1)
10859 ? 1 : -1];
10860int
10861main ()
10862{
10863
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010869if { (ac_try="$ac_compile"
10870case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10875$as_echo "$ac_try_echo") >&5
10876 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest.$ac_objext; then
10886 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010887else
drh8b727472009-01-19 18:18:40 +000010888 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010889sed 's/^/| /' conftest.$ac_ext >&5
10890
drh8b727472009-01-19 18:18:40 +000010891
mlcreech636a9952008-05-05 22:52:56 +000010892fi
drh8b727472009-01-19 18:18:40 +000010893
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010895 cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10900/* end confdefs.h. */
10901#define _LARGE_FILES 1
10902#include <sys/types.h>
10903 /* Check that off_t can represent 2**63 - 1 correctly.
10904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10905 since some C++ compilers masquerading as C compilers
10906 incorrectly reject 9223372036854775807. */
10907#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10909 && LARGE_OFF_T % 2147483647 == 1)
10910 ? 1 : -1];
10911int
10912main ()
10913{
10914
10915 ;
10916 return 0;
10917}
10918_ACEOF
10919rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010920if { (ac_try="$ac_compile"
10921case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10926$as_echo "$ac_try_echo") >&5
10927 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010937 ac_cv_sys_large_files=1; break
10938else
drh8b727472009-01-19 18:18:40 +000010939 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010940sed 's/^/| /' conftest.$ac_ext >&5
10941
drh8b727472009-01-19 18:18:40 +000010942
mlcreech636a9952008-05-05 22:52:56 +000010943fi
drh8b727472009-01-19 18:18:40 +000010944
10945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010947 break
10948done
10949fi
drh8b727472009-01-19 18:18:40 +000010950{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10951$as_echo "$ac_cv_sys_large_files" >&6; }
10952case $ac_cv_sys_large_files in #(
10953 no | unknown) ;;
10954 *)
mlcreech636a9952008-05-05 22:52:56 +000010955cat >>confdefs.h <<_ACEOF
10956#define _LARGE_FILES $ac_cv_sys_large_files
10957_ACEOF
drh8b727472009-01-19 18:18:40 +000010958;;
10959esac
10960rm -rf conftest*
10961 fi
mlcreech636a9952008-05-05 22:52:56 +000010962fi
10963
10964
10965#########
10966# Check for needed/wanted data types
drh8b727472009-01-19 18:18:40 +000010967{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10968$as_echo_n "checking for int8_t... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010969if test "${ac_cv_type_int8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010970 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010971else
drh8b727472009-01-19 18:18:40 +000010972 ac_cv_type_int8_t=no
10973cat >conftest.$ac_ext <<_ACEOF
10974/* confdefs.h. */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h. */
10979$ac_includes_default
10980int
10981main ()
10982{
10983if (sizeof (int8_t))
10984 return 0;
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext
10990if { (ac_try="$ac_compile"
10991case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994esac
10995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996$as_echo "$ac_try_echo") >&5
10997 (eval "$ac_compile") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011007 cat >conftest.$ac_ext <<_ACEOF
11008/* confdefs.h. */
11009_ACEOF
11010cat confdefs.h >>conftest.$ac_ext
11011cat >>conftest.$ac_ext <<_ACEOF
11012/* end confdefs.h. */
11013$ac_includes_default
11014int
11015main ()
11016{
drh8b727472009-01-19 18:18:40 +000011017if (sizeof ((int8_t)))
11018 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11030$as_echo "$ac_try_echo") >&5
11031 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest.$ac_objext; then
11041 :
mlcreech636a9952008-05-05 22:52:56 +000011042else
drh8b727472009-01-19 18:18:40 +000011043 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000011044sed 's/^/| /' conftest.$ac_ext >&5
11045
drh8b727472009-01-19 18:18:40 +000011046 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011047fi
drh8b727472009-01-19 18:18:40 +000011048
11049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050else
11051 $as_echo "$as_me: failed program was:" >&5
11052sed 's/^/| /' conftest.$ac_ext >&5
11053
11054
mlcreechb87057f2008-03-06 07:19:20 +000011055fi
drh8b727472009-01-19 18:18:40 +000011056
11057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058fi
11059{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11060$as_echo "$ac_cv_type_int8_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011061if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011062
11063cat >>confdefs.h <<_ACEOF
11064#define HAVE_INT8_T 1
11065_ACEOF
11066
11067
11068fi
drh8b727472009-01-19 18:18:40 +000011069{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11070$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011071if test "${ac_cv_type_int16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011072 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011073else
drh8b727472009-01-19 18:18:40 +000011074 ac_cv_type_int16_t=no
11075cat >conftest.$ac_ext <<_ACEOF
11076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
11081$ac_includes_default
11082int
11083main ()
11084{
11085if (sizeof (int16_t))
11086 return 0;
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (ac_try="$ac_compile"
11093case "(($ac_try" in
11094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11096esac
11097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11098$as_echo "$ac_try_echo") >&5
11099 (eval "$ac_compile") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011109 cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115$ac_includes_default
11116int
11117main ()
11118{
drh8b727472009-01-19 18:18:40 +000011119if (sizeof ((int16_t)))
11120 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011121 ;
11122 return 0;
11123}
11124_ACEOF
11125rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011126if { (ac_try="$ac_compile"
11127case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130esac
11131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11132$as_echo "$ac_try_echo") >&5
11133 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } && {
11140 test -z "$ac_c_werror_flag" ||
11141 test ! -s conftest.err
11142 } && test -s conftest.$ac_objext; then
11143 :
mlcreechb87057f2008-03-06 07:19:20 +000011144else
drh8b727472009-01-19 18:18:40 +000011145 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011146sed 's/^/| /' conftest.$ac_ext >&5
11147
drh8b727472009-01-19 18:18:40 +000011148 ac_cv_type_int16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011149fi
drh8b727472009-01-19 18:18:40 +000011150
11151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152else
11153 $as_echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156
mlcreechb87057f2008-03-06 07:19:20 +000011157fi
drh8b727472009-01-19 18:18:40 +000011158
11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160fi
11161{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11162$as_echo "$ac_cv_type_int16_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011163if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011164
11165cat >>confdefs.h <<_ACEOF
11166#define HAVE_INT16_T 1
11167_ACEOF
11168
11169
11170fi
drh8b727472009-01-19 18:18:40 +000011171{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11172$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011173if test "${ac_cv_type_int32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011174 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011175else
drh8b727472009-01-19 18:18:40 +000011176 ac_cv_type_int32_t=no
11177cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
11183$ac_includes_default
11184int
11185main ()
11186{
11187if (sizeof (int32_t))
11188 return 0;
11189 ;
11190 return 0;
11191}
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (ac_try="$ac_compile"
11195case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198esac
11199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11200$as_echo "$ac_try_echo") >&5
11201 (eval "$ac_compile") 2>conftest.er1
11202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011211 cat >conftest.$ac_ext <<_ACEOF
11212/* confdefs.h. */
11213_ACEOF
11214cat confdefs.h >>conftest.$ac_ext
11215cat >>conftest.$ac_ext <<_ACEOF
11216/* end confdefs.h. */
11217$ac_includes_default
11218int
11219main ()
11220{
drh8b727472009-01-19 18:18:40 +000011221if (sizeof ((int32_t)))
11222 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011223 ;
11224 return 0;
11225}
11226_ACEOF
11227rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011228if { (ac_try="$ac_compile"
11229case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11234$as_echo "$ac_try_echo") >&5
11235 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest.$ac_objext; then
11245 :
mlcreechb87057f2008-03-06 07:19:20 +000011246else
drh8b727472009-01-19 18:18:40 +000011247 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011248sed 's/^/| /' conftest.$ac_ext >&5
11249
drh8b727472009-01-19 18:18:40 +000011250 ac_cv_type_int32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011251fi
drh8b727472009-01-19 18:18:40 +000011252
11253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254else
11255 $as_echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258
mlcreechb87057f2008-03-06 07:19:20 +000011259fi
drh8b727472009-01-19 18:18:40 +000011260
11261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262fi
11263{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11264$as_echo "$ac_cv_type_int32_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011265if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011266
11267cat >>confdefs.h <<_ACEOF
11268#define HAVE_INT32_T 1
11269_ACEOF
11270
11271
11272fi
drh8b727472009-01-19 18:18:40 +000011273{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11274$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011275if test "${ac_cv_type_int64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011276 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011277else
drh8b727472009-01-19 18:18:40 +000011278 ac_cv_type_int64_t=no
11279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285$ac_includes_default
11286int
11287main ()
11288{
11289if (sizeof (int64_t))
11290 return 0;
11291 ;
11292 return 0;
11293}
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (ac_try="$ac_compile"
11297case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300esac
11301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302$as_echo "$ac_try_echo") >&5
11303 (eval "$ac_compile") 2>conftest.er1
11304 ac_status=$?
11305 grep -v '^ *+' conftest.er1 >conftest.err
11306 rm -f conftest.er1
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011313 cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
11319$ac_includes_default
11320int
11321main ()
11322{
drh8b727472009-01-19 18:18:40 +000011323if (sizeof ((int64_t)))
11324 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011330if { (ac_try="$ac_compile"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest.$ac_objext; then
11347 :
mlcreechb87057f2008-03-06 07:19:20 +000011348else
drh8b727472009-01-19 18:18:40 +000011349 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011350sed 's/^/| /' conftest.$ac_ext >&5
11351
drh8b727472009-01-19 18:18:40 +000011352 ac_cv_type_int64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011353fi
drh8b727472009-01-19 18:18:40 +000011354
11355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11356else
11357 $as_echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360
mlcreechb87057f2008-03-06 07:19:20 +000011361fi
drh8b727472009-01-19 18:18:40 +000011362
11363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364fi
11365{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11366$as_echo "$ac_cv_type_int64_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011367if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011368
11369cat >>confdefs.h <<_ACEOF
11370#define HAVE_INT64_T 1
11371_ACEOF
11372
11373
11374fi
drh8b727472009-01-19 18:18:40 +000011375{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11376$as_echo_n "checking for intptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011377if test "${ac_cv_type_intptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011378 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011379else
drh8b727472009-01-19 18:18:40 +000011380 ac_cv_type_intptr_t=no
11381cat >conftest.$ac_ext <<_ACEOF
11382/* confdefs.h. */
11383_ACEOF
11384cat confdefs.h >>conftest.$ac_ext
11385cat >>conftest.$ac_ext <<_ACEOF
11386/* end confdefs.h. */
11387$ac_includes_default
11388int
11389main ()
11390{
11391if (sizeof (intptr_t))
11392 return 0;
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397rm -f conftest.$ac_objext
11398if { (ac_try="$ac_compile"
11399case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402esac
11403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11404$as_echo "$ac_try_echo") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11406 ac_status=$?
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -f conftest.er1
11409 cat conftest.err >&5
11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011415 cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421$ac_includes_default
11422int
11423main ()
11424{
drh8b727472009-01-19 18:18:40 +000011425if (sizeof ((intptr_t)))
11426 return 0;
danielk197733a14782008-08-04 14:50:05 +000011427 ;
11428 return 0;
11429}
11430_ACEOF
11431rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011432if { (ac_try="$ac_compile"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438$as_echo "$ac_try_echo") >&5
11439 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } && {
11446 test -z "$ac_c_werror_flag" ||
11447 test ! -s conftest.err
11448 } && test -s conftest.$ac_objext; then
11449 :
danielk197733a14782008-08-04 14:50:05 +000011450else
drh8b727472009-01-19 18:18:40 +000011451 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011452sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000011453
drh8b727472009-01-19 18:18:40 +000011454 ac_cv_type_intptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011455fi
drh8b727472009-01-19 18:18:40 +000011456
11457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458else
11459 $as_echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
11462
danielk197733a14782008-08-04 14:50:05 +000011463fi
drh8b727472009-01-19 18:18:40 +000011464
11465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466fi
11467{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11468$as_echo "$ac_cv_type_intptr_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011469if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011470
11471cat >>confdefs.h <<_ACEOF
11472#define HAVE_INTPTR_T 1
11473_ACEOF
11474
11475
11476fi
drh8b727472009-01-19 18:18:40 +000011477{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11478$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011479if test "${ac_cv_type_uint8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011480 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011481else
drh8b727472009-01-19 18:18:40 +000011482 ac_cv_type_uint8_t=no
11483cat >conftest.$ac_ext <<_ACEOF
11484/* confdefs.h. */
11485_ACEOF
11486cat confdefs.h >>conftest.$ac_ext
11487cat >>conftest.$ac_ext <<_ACEOF
11488/* end confdefs.h. */
11489$ac_includes_default
11490int
11491main ()
11492{
11493if (sizeof (uint8_t))
11494 return 0;
11495 ;
11496 return 0;
11497}
11498_ACEOF
11499rm -f conftest.$ac_objext
11500if { (ac_try="$ac_compile"
11501case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11504esac
11505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11506$as_echo "$ac_try_echo") >&5
11507 (eval "$ac_compile") 2>conftest.er1
11508 ac_status=$?
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
11512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } && {
11514 test -z "$ac_c_werror_flag" ||
11515 test ! -s conftest.err
11516 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011517 cat >conftest.$ac_ext <<_ACEOF
11518/* confdefs.h. */
11519_ACEOF
11520cat confdefs.h >>conftest.$ac_ext
11521cat >>conftest.$ac_ext <<_ACEOF
11522/* end confdefs.h. */
11523$ac_includes_default
11524int
11525main ()
11526{
drh8b727472009-01-19 18:18:40 +000011527if (sizeof ((uint8_t)))
11528 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011534if { (ac_try="$ac_compile"
11535case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11540$as_echo "$ac_try_echo") >&5
11541 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.$ac_objext; then
11551 :
mlcreechb87057f2008-03-06 07:19:20 +000011552else
drh8b727472009-01-19 18:18:40 +000011553 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011554sed 's/^/| /' conftest.$ac_ext >&5
11555
drh8b727472009-01-19 18:18:40 +000011556 ac_cv_type_uint8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011557fi
drh8b727472009-01-19 18:18:40 +000011558
11559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560else
11561 $as_echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
11564
mlcreechb87057f2008-03-06 07:19:20 +000011565fi
drh8b727472009-01-19 18:18:40 +000011566
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568fi
11569{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11570$as_echo "$ac_cv_type_uint8_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011571if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011572
11573cat >>confdefs.h <<_ACEOF
11574#define HAVE_UINT8_T 1
11575_ACEOF
11576
11577
11578fi
drh8b727472009-01-19 18:18:40 +000011579{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11580$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011581if test "${ac_cv_type_uint16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011582 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011583else
drh8b727472009-01-19 18:18:40 +000011584 ac_cv_type_uint16_t=no
11585cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591$ac_includes_default
11592int
11593main ()
11594{
11595if (sizeof (uint16_t))
11596 return 0;
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601rm -f conftest.$ac_objext
11602if { (ac_try="$ac_compile"
11603case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11608$as_echo "$ac_try_echo") >&5
11609 (eval "$ac_compile") 2>conftest.er1
11610 ac_status=$?
11611 grep -v '^ *+' conftest.er1 >conftest.err
11612 rm -f conftest.er1
11613 cat conftest.err >&5
11614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } && {
11616 test -z "$ac_c_werror_flag" ||
11617 test ! -s conftest.err
11618 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011619 cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h. */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h. */
11625$ac_includes_default
11626int
11627main ()
11628{
drh8b727472009-01-19 18:18:40 +000011629if (sizeof ((uint16_t)))
11630 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011631 ;
11632 return 0;
11633}
11634_ACEOF
11635rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011636if { (ac_try="$ac_compile"
11637case "(($ac_try" in
11638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11639 *) ac_try_echo=$ac_try;;
11640esac
11641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11642$as_echo "$ac_try_echo") >&5
11643 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest.$ac_objext; then
11653 :
mlcreechb87057f2008-03-06 07:19:20 +000011654else
drh8b727472009-01-19 18:18:40 +000011655 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011656sed 's/^/| /' conftest.$ac_ext >&5
11657
drh8b727472009-01-19 18:18:40 +000011658 ac_cv_type_uint16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011659fi
drh8b727472009-01-19 18:18:40 +000011660
11661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11662else
11663 $as_echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666
mlcreechb87057f2008-03-06 07:19:20 +000011667fi
drh8b727472009-01-19 18:18:40 +000011668
11669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670fi
11671{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11672$as_echo "$ac_cv_type_uint16_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011673if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011674
11675cat >>confdefs.h <<_ACEOF
11676#define HAVE_UINT16_T 1
11677_ACEOF
11678
11679
11680fi
drh8b727472009-01-19 18:18:40 +000011681{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11682$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011683if test "${ac_cv_type_uint32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011684 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011685else
drh8b727472009-01-19 18:18:40 +000011686 ac_cv_type_uint32_t=no
11687cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693$ac_includes_default
11694int
11695main ()
11696{
11697if (sizeof (uint32_t))
11698 return 0;
11699 ;
11700 return 0;
11701}
11702_ACEOF
11703rm -f conftest.$ac_objext
11704if { (ac_try="$ac_compile"
11705case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710$as_echo "$ac_try_echo") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011721 cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
11727$ac_includes_default
11728int
11729main ()
11730{
drh8b727472009-01-19 18:18:40 +000011731if (sizeof ((uint32_t)))
11732 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011733 ;
11734 return 0;
11735}
11736_ACEOF
11737rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011738if { (ac_try="$ac_compile"
11739case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11742esac
11743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744$as_echo "$ac_try_echo") >&5
11745 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011746 ac_status=$?
11747 grep -v '^ *+' conftest.er1 >conftest.err
11748 rm -f conftest.er1
11749 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && {
11752 test -z "$ac_c_werror_flag" ||
11753 test ! -s conftest.err
11754 } && test -s conftest.$ac_objext; then
11755 :
mlcreechb87057f2008-03-06 07:19:20 +000011756else
drh8b727472009-01-19 18:18:40 +000011757 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011758sed 's/^/| /' conftest.$ac_ext >&5
11759
drh8b727472009-01-19 18:18:40 +000011760 ac_cv_type_uint32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011761fi
drh8b727472009-01-19 18:18:40 +000011762
11763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11764else
11765 $as_echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768
mlcreechb87057f2008-03-06 07:19:20 +000011769fi
drh8b727472009-01-19 18:18:40 +000011770
11771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772fi
11773{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11774$as_echo "$ac_cv_type_uint32_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011775if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011776
11777cat >>confdefs.h <<_ACEOF
11778#define HAVE_UINT32_T 1
11779_ACEOF
11780
11781
11782fi
drh8b727472009-01-19 18:18:40 +000011783{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11784$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011785if test "${ac_cv_type_uint64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011786 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011787else
drh8b727472009-01-19 18:18:40 +000011788 ac_cv_type_uint64_t=no
11789cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795$ac_includes_default
11796int
11797main ()
11798{
11799if (sizeof (uint64_t))
11800 return 0;
11801 ;
11802 return 0;
11803}
11804_ACEOF
11805rm -f conftest.$ac_objext
11806if { (ac_try="$ac_compile"
11807case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11812$as_echo "$ac_try_echo") >&5
11813 (eval "$ac_compile") 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } && {
11820 test -z "$ac_c_werror_flag" ||
11821 test ! -s conftest.err
11822 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011823 cat >conftest.$ac_ext <<_ACEOF
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829$ac_includes_default
11830int
11831main ()
11832{
drh8b727472009-01-19 18:18:40 +000011833if (sizeof ((uint64_t)))
11834 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011835 ;
11836 return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011840if { (ac_try="$ac_compile"
11841case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11846$as_echo "$ac_try_echo") >&5
11847 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } && {
11854 test -z "$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11856 } && test -s conftest.$ac_objext; then
11857 :
mlcreechb87057f2008-03-06 07:19:20 +000011858else
drh8b727472009-01-19 18:18:40 +000011859 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011860sed 's/^/| /' conftest.$ac_ext >&5
11861
drh8b727472009-01-19 18:18:40 +000011862 ac_cv_type_uint64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011863fi
drh8b727472009-01-19 18:18:40 +000011864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866else
11867 $as_echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870
mlcreechb87057f2008-03-06 07:19:20 +000011871fi
drh8b727472009-01-19 18:18:40 +000011872
11873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874fi
11875{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11876$as_echo "$ac_cv_type_uint64_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011877if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011878
11879cat >>confdefs.h <<_ACEOF
11880#define HAVE_UINT64_T 1
11881_ACEOF
11882
11883
11884fi
drh8b727472009-01-19 18:18:40 +000011885{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11886$as_echo_n "checking for uintptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011887if test "${ac_cv_type_uintptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011888 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011889else
drh8b727472009-01-19 18:18:40 +000011890 ac_cv_type_uintptr_t=no
11891cat >conftest.$ac_ext <<_ACEOF
11892/* confdefs.h. */
11893_ACEOF
11894cat confdefs.h >>conftest.$ac_ext
11895cat >>conftest.$ac_ext <<_ACEOF
11896/* end confdefs.h. */
11897$ac_includes_default
11898int
11899main ()
11900{
11901if (sizeof (uintptr_t))
11902 return 0;
11903 ;
11904 return 0;
11905}
11906_ACEOF
11907rm -f conftest.$ac_objext
11908if { (ac_try="$ac_compile"
11909case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11914$as_echo "$ac_try_echo") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931$ac_includes_default
11932int
11933main ()
11934{
drh8b727472009-01-19 18:18:40 +000011935if (sizeof ((uintptr_t)))
11936 return 0;
danielk197733a14782008-08-04 14:50:05 +000011937 ;
11938 return 0;
11939}
11940_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011941rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011942if { (ac_try="$ac_compile"
11943case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11946esac
11947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948$as_echo "$ac_try_echo") >&5
11949 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011950 ac_status=$?
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest.$ac_objext; then
11959 :
danielk197733a14782008-08-04 14:50:05 +000011960else
drh8b727472009-01-19 18:18:40 +000011961 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011962sed 's/^/| /' conftest.$ac_ext >&5
11963
drh8b727472009-01-19 18:18:40 +000011964 ac_cv_type_uintptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011965fi
drh8b727472009-01-19 18:18:40 +000011966
11967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968else
11969 $as_echo "$as_me: failed program was:" >&5
11970sed 's/^/| /' conftest.$ac_ext >&5
11971
11972
danielk197733a14782008-08-04 14:50:05 +000011973fi
drh8b727472009-01-19 18:18:40 +000011974
11975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976fi
11977{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11978$as_echo "$ac_cv_type_uintptr_t" >&6; }
drh934c5442009-04-13 09:09:24 +000011979if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011980
11981cat >>confdefs.h <<_ACEOF
11982#define HAVE_UINTPTR_T 1
11983_ACEOF
11984
11985
11986fi
mlcreechb87057f2008-03-06 07:19:20 +000011987
11988
11989#########
11990# Check for needed/wanted headers
11991
mlcreech8390bc32008-03-06 08:54:38 +000011992
11993
11994
11995for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000011996do
drh8b727472009-01-19 18:18:40 +000011997as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12000$as_echo_n "checking for $ac_header... " >&6; }
12001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012003fi
drh8b727472009-01-19 18:18:40 +000012004ac_res=`eval 'as_val=${'$as_ac_Header'}
12005 $as_echo "$as_val"'`
12006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12007$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000012008else
mlcreech8390bc32008-03-06 08:54:38 +000012009 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000012010{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12011$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012012cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000012013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000012018$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000012019#include <$ac_header>
12020_ACEOF
12021rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000012022if { (ac_try="$ac_compile"
12023case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12028$as_echo "$ac_try_echo") >&5
12029 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000012030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000012039 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000012040else
drh8b727472009-01-19 18:18:40 +000012041 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000012042sed 's/^/| /' conftest.$ac_ext >&5
12043
drh8b727472009-01-19 18:18:40 +000012044 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000012045fi
drh8b727472009-01-19 18:18:40 +000012046
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012050
12051# Is the header present?
drh8b727472009-01-19 18:18:40 +000012052{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12053$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012054cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060#include <$ac_header>
12061_ACEOF
drh8b727472009-01-19 18:18:40 +000012062if { (ac_try="$ac_cpp conftest.$ac_ext"
12063case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066esac
12067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068$as_echo "$ac_try_echo") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000012070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null && {
12076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 }; then
mlcreech8390bc32008-03-06 08:54:38 +000012079 ac_header_preproc=yes
12080else
drh8b727472009-01-19 18:18:40 +000012081 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000012082sed 's/^/| /' conftest.$ac_ext >&5
12083
12084 ac_header_preproc=no
12085fi
drh8b727472009-01-19 18:18:40 +000012086
mlcreech8390bc32008-03-06 08:54:38 +000012087rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000012088{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012090
12091# So? What about this header?
12092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 yes:no: )
drh8b727472009-01-19 18:18:40 +000012094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12095$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12097$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000012098 ac_header_preproc=yes
12099 ;;
12100 no:yes:* )
drh8b727472009-01-19 18:18:40 +000012101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12102$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12104$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12106$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12108$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12110$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12112$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12113
mlcreech8390bc32008-03-06 08:54:38 +000012114 ;;
12115esac
drh8b727472009-01-19 18:18:40 +000012116{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117$as_echo_n "checking for $ac_header... " >&6; }
12118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012120else
12121 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000012122fi
drh8b727472009-01-19 18:18:40 +000012123ac_res=`eval 'as_val=${'$as_ac_Header'}
12124 $as_echo "$as_val"'`
12125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12126$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012127
12128fi
drh934c5442009-04-13 09:09:24 +000012129if test `eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012131 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012133_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012134
mlcreechb87057f2008-03-06 07:19:20 +000012135fi
12136
12137done
12138
12139
12140#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012141# Figure out whether or not we have these functions
12142#
12143
12144
12145
12146
danielk197733a14782008-08-04 14:50:05 +000012147
shanefbedede2008-07-22 05:05:01 +000012148for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000012149do
drh8b727472009-01-19 18:18:40 +000012150as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12151{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12152$as_echo_n "checking for $ac_func... " >&6; }
12153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12154 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012155else
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12164#define $ac_func innocuous_$ac_func
12165
12166/* System header to define __stub macros and hopefully few prototypes,
12167 which can conflict with char $ac_func (); below.
12168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12169 <limits.h> exists even on freestanding compilers. */
12170
12171#ifdef __STDC__
12172# include <limits.h>
12173#else
12174# include <assert.h>
12175#endif
12176
12177#undef $ac_func
12178
drh8b727472009-01-19 18:18:40 +000012179/* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000012182#ifdef __cplusplus
12183extern "C"
12184#endif
12185char $ac_func ();
12186/* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +000012189#if defined __stub_$ac_func || defined __stub___$ac_func
mlcreech5b0a9eb2008-03-09 01:38:09 +000012190choke me
12191#endif
12192
12193int
12194main ()
12195{
drh8b727472009-01-19 18:18:40 +000012196return $ac_func ();
mlcreech5b0a9eb2008-03-09 01:38:09 +000012197 ;
12198 return 0;
12199}
12200_ACEOF
12201rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012202if { (ac_try="$ac_link"
12203case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12206esac
12207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208$as_echo "$ac_try_echo") >&5
12209 (eval "$ac_link") 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest$ac_exeext && {
12219 test "$cross_compiling" = yes ||
12220 $as_test_x conftest$ac_exeext
12221 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012222 eval "$as_ac_var=yes"
12223else
drh8b727472009-01-19 18:18:40 +000012224 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012225sed 's/^/| /' conftest.$ac_ext >&5
12226
drh8b727472009-01-19 18:18:40 +000012227 eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000012228fi
drh8b727472009-01-19 18:18:40 +000012229
12230rm -rf conftest.dSYM
12231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech5b0a9eb2008-03-09 01:38:09 +000012232 conftest$ac_exeext conftest.$ac_ext
12233fi
drh8b727472009-01-19 18:18:40 +000012234ac_res=`eval 'as_val=${'$as_ac_var'}
12235 $as_echo "$as_val"'`
12236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12237$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +000012238if test `eval 'as_val=${'$as_ac_var'}
12239 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012240 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012241#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012242_ACEOF
12243
12244fi
12245done
12246
12247
mlcreechab1c47b2008-03-09 02:51:10 +000012248#########
mlcreechf3868112008-03-11 18:03:30 +000012249# By default, we use the amalgamation (this may be changed below...)
12250#
12251USE_AMALGAMATION=1
12252
12253#########
mlcreechab1c47b2008-03-09 02:51:10 +000012254# See whether we can run specific tclsh versions known to work well;
12255# if not, then we fall back to plain tclsh.
12256# TODO: try other versions before falling back?
12257#
drhd7ceb372010-07-27 16:42:22 +000012258for ac_prog in tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000012259do
12260 # Extract the first word of "$ac_prog", so it can be a program name with args.
12261set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012264if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012265 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012266else
12267 if test -n "$TCLSH_CMD"; then
12268 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
mlcreechab1c47b2008-03-09 02:51:10 +000012277 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012279 break 2
12280 fi
12281done
12282done
drh8b727472009-01-19 18:18:40 +000012283IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012284
12285fi
12286fi
12287TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12288if test -n "$TCLSH_CMD"; then
drh8b727472009-01-19 18:18:40 +000012289 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12290$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012291else
drh8b727472009-01-19 18:18:40 +000012292 { $as_echo "$as_me:$LINENO: result: no" >&5
12293$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012294fi
12295
drh8b727472009-01-19 18:18:40 +000012296
mlcreechab1c47b2008-03-09 02:51:10 +000012297 test -n "$TCLSH_CMD" && break
12298done
mlcreechf3868112008-03-11 18:03:30 +000012299test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012300
mlcreechf3868112008-03-11 18:03:30 +000012301if test "$TCLSH_CMD" = "none"; then
12302 # If we can't find a local tclsh, then building the amalgamation will fail.
12303 # We act as though --disable-amalgamation has been used.
12304 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12305 USE_AMALGAMATION=0
12306 TCLSH_CMD="tclsh"
12307fi
mlcreechab1c47b2008-03-09 02:51:10 +000012308
12309
mlcreech5b0a9eb2008-03-09 01:38:09 +000012310
vapier6acb2cf2009-01-28 04:46:28 +000012311if test "x${TCLLIBDIR+set}" != "xset" ; then
12312 TCLLIBDIR='$(libdir)'
12313 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12314 TCLLIBDIR=$i
12315 break
12316 done
12317 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12318fi
12319
12320
mlcreech5b0a9eb2008-03-09 01:38:09 +000012321#########
drh75897232000-05-29 14:26:00 +000012322# Set up an appropriate program prefix
12323#
12324if test "$program_prefix" = "NONE"; then
12325 program_prefix=""
12326fi
12327
a.rottmann84e63352003-03-24 09:42:16 +000012328
drh4b2266a2004-11-27 15:52:16 +000012329VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
vapier6acb2cf2009-01-28 04:46:28 +000012330{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12331$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012332
12333RELEASE=`cat $srcdir/VERSION`
vapier6acb2cf2009-01-28 04:46:28 +000012334{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12335$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012336
vapier6acb2cf2009-01-28 04:46:28 +000012337VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012338 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012339 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
vapier6acb2cf2009-01-28 04:46:28 +000012340{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12341$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012342
drh26d0e2a2005-07-06 13:51:27 +000012343
drh75897232000-05-29 14:26:00 +000012344#########
12345# Check to see if the --with-hints=FILE option is used. If there is none,
12346# then check for a files named "$host.hints" and ../$hosts.hints where
12347# $host is the hostname of the build system. If still no hints are
12348# found, try looking in $system.hints and ../$system.hints where
12349# $system is the result of uname -s.
12350#
drh71eb93e2001-09-28 01:34:43 +000012351
drh8b727472009-01-19 18:18:40 +000012352# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012353if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012354 withval=$with_hints; hints=$withval
12355fi
12356
drh75897232000-05-29 14:26:00 +000012357if test "$hints" = ""; then
12358 host=`hostname | sed 's/\..*//'`
12359 if test -r $host.hints; then
12360 hints=$host.hints
12361 else
12362 if test -r ../$host.hints; then
12363 hints=../$host.hints
12364 fi
12365 fi
12366fi
12367if test "$hints" = ""; then
12368 sys=`uname -s`
12369 if test -r $sys.hints; then
12370 hints=$sys.hints
12371 else
12372 if test -r ../$sys.hints; then
12373 hints=../$sys.hints
12374 fi
12375 fi
12376fi
12377if test "$hints" != ""; then
drh8b727472009-01-19 18:18:40 +000012378 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12379$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012380 . $hints
12381fi
12382
12383#########
12384# Locate a compiler for the build machine. This compiler should
12385# generate command-line programs that run on the build machine.
12386#
vapier7f19c022007-02-17 14:46:31 +000012387if test x"$cross_compiling" = xno; then
12388 BUILD_CC=$CC
12389 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012390else
vapier7f19c022007-02-17 14:46:31 +000012391 if test "${BUILD_CC+set}" != set; then
12392 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012393do
12394 # Extract the first word of "$ac_prog", so it can be a program name with args.
12395set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012398if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012399 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012400else
vapier7f19c022007-02-17 14:46:31 +000012401 if test -n "$BUILD_CC"; then
12402 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012403else
a.rottmann84e63352003-03-24 09:42:16 +000012404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
vapier7f19c022007-02-17 14:46:31 +000012411 ac_cv_prog_BUILD_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012413 break 2
12414 fi
12415done
drh71eb93e2001-09-28 01:34:43 +000012416done
drh8b727472009-01-19 18:18:40 +000012417IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012418
drh71eb93e2001-09-28 01:34:43 +000012419fi
12420fi
vapier7f19c022007-02-17 14:46:31 +000012421BUILD_CC=$ac_cv_prog_BUILD_CC
12422if test -n "$BUILD_CC"; then
drh8b727472009-01-19 18:18:40 +000012423 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12424$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012425else
drh8b727472009-01-19 18:18:40 +000012426 { $as_echo "$as_me:$LINENO: result: no" >&5
12427$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012428fi
drh75897232000-05-29 14:26:00 +000012429
drh8b727472009-01-19 18:18:40 +000012430
vapier7f19c022007-02-17 14:46:31 +000012431 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012432done
drh75897232000-05-29 14:26:00 +000012433
vapier7f19c022007-02-17 14:46:31 +000012434 fi
12435 if test "${BUILD_CFLAGS+set}" != set; then
12436 BUILD_CFLAGS="-g"
12437 fi
drh71eb93e2001-09-28 01:34:43 +000012438fi
12439
a.rottmann84e63352003-03-24 09:42:16 +000012440
drh297ecf12001-04-05 15:57:13 +000012441##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012442# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012443#
drh8b727472009-01-19 18:18:40 +000012444# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012445if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012446 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012447else
drh5a3032b2007-09-03 16:12:09 +000012448 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012449fi
12450
12451{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12452$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012453if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012454 SQLITE_THREADSAFE=0
drh8b727472009-01-19 18:18:40 +000012455 { $as_echo "$as_me:$LINENO: result: no" >&5
12456$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012457else
drh5a3032b2007-09-03 16:12:09 +000012458 SQLITE_THREADSAFE=1
drh8b727472009-01-19 18:18:40 +000012459 { $as_echo "$as_me:$LINENO: result: yes" >&5
12460$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012461fi
12462
a.rottmann964dbb12004-02-26 19:47:42 +000012463
drh5a3032b2007-09-03 16:12:09 +000012464if test "$SQLITE_THREADSAFE" = "1"; then
drh8b727472009-01-19 18:18:40 +000012465 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12466$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012467if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012468 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012469else
mlcreechc658b0f2008-03-09 02:20:11 +000012470 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012471cat >conftest.$ac_ext <<_ACEOF
12472/* confdefs.h. */
12473_ACEOF
12474cat confdefs.h >>conftest.$ac_ext
12475cat >>conftest.$ac_ext <<_ACEOF
12476/* end confdefs.h. */
12477
drh8b727472009-01-19 18:18:40 +000012478/* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012481#ifdef __cplusplus
12482extern "C"
12483#endif
dougcurrie65623c72004-09-20 14:57:23 +000012484char pthread_create ();
12485int
12486main ()
12487{
drh8b727472009-01-19 18:18:40 +000012488return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012489 ;
12490 return 0;
12491}
12492_ACEOF
drh8b727472009-01-19 18:18:40 +000012493for ac_lib in '' pthread; do
12494 if test -z "$ac_lib"; then
12495 ac_res="none required"
12496 else
12497 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012499 fi
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501if { (ac_try="$ac_link"
12502case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12505esac
12506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507$as_echo "$ac_try_echo") >&5
12508 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012509 ac_status=$?
12510 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1
12512 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest$ac_exeext && {
12518 test "$cross_compiling" = yes ||
12519 $as_test_x conftest$ac_exeext
12520 }; then
12521 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012522else
drh8b727472009-01-19 18:18:40 +000012523 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012524sed 's/^/| /' conftest.$ac_ext >&5
12525
drh8b727472009-01-19 18:18:40 +000012526
mlcreechc658b0f2008-03-09 02:20:11 +000012527fi
drh8b727472009-01-19 18:18:40 +000012528
12529rm -rf conftest.dSYM
12530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12531 conftest$ac_exeext
12532 if test "${ac_cv_search_pthread_create+set}" = set; then
12533 break
drh866108f2008-05-13 00:57:21 +000012534fi
drh8b727472009-01-19 18:18:40 +000012535done
12536if test "${ac_cv_search_pthread_create+set}" = set; then
12537 :
12538else
12539 ac_cv_search_pthread_create=no
12540fi
12541rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012542LIBS=$ac_func_search_save_LIBS
12543fi
drh8b727472009-01-19 18:18:40 +000012544{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12545$as_echo "$ac_cv_search_pthread_create" >&6; }
12546ac_res=$ac_cv_search_pthread_create
12547if test "$ac_res" != no; then
12548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012549
dougcurrie65623c72004-09-20 14:57:23 +000012550fi
12551
mlcreechc658b0f2008-03-09 02:20:11 +000012552fi
dougcurrie65623c72004-09-20 14:57:23 +000012553
xdong28f79f72003-09-23 00:35:21 +000012554##########
drh91636d52005-11-24 23:14:00 +000012555# Do we want to allow a connection created in one thread to be used
12556# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12557# due to bugs in the threading implementations. This is thus off by default.
12558#
drh8b727472009-01-19 18:18:40 +000012559# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012560if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012561 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012562else
12563 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012564fi
12565
12566{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12567$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012568if test "$enable_xthreadconnect" = "no"; then
12569 XTHREADCONNECT=''
drh8b727472009-01-19 18:18:40 +000012570 { $as_echo "$as_me:$LINENO: result: no" >&5
12571$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012572else
12573 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh8b727472009-01-19 18:18:40 +000012574 { $as_echo "$as_me:$LINENO: result: yes" >&5
12575$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012576fi
12577
12578
12579##########
xdong28f79f72003-09-23 00:35:21 +000012580# Do we want to support release
12581#
drh8b727472009-01-19 18:18:40 +000012582# Check whether --enable-releasemode was given.
xdong28f79f72003-09-23 00:35:21 +000012583if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012584 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012585else
12586 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012587fi
12588
12589{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12590$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012591if test "$enable_releasemode" = "no"; then
12592 ALLOWRELEASE=""
drh8b727472009-01-19 18:18:40 +000012593 { $as_echo "$as_me:$LINENO: result: no" >&5
12594$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012595else
drh0b47d342007-11-27 14:50:06 +000012596 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh8b727472009-01-19 18:18:40 +000012597 { $as_echo "$as_me:$LINENO: result: yes" >&5
12598$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012599fi
paulb0208cc2003-04-13 18:26:49 +000012600
a.rottmann964dbb12004-02-26 19:47:42 +000012601
paulb0208cc2003-04-13 18:26:49 +000012602##########
12603# Do we want temporary databases in memory
12604#
drh8b727472009-01-19 18:18:40 +000012605# Check whether --enable-tempstore was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012606if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012607 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012608else
drh54414bb2005-10-10 00:05:50 +000012609 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012610fi
12611
12612{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12613$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012614case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012615 never )
paul2dc96f92003-04-20 11:46:34 +000012616 TEMP_STORE=0
drh8b727472009-01-19 18:18:40 +000012617 { $as_echo "$as_me:$LINENO: result: never" >&5
12618$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012619 ;;
12620 no )
paul2dc96f92003-04-20 11:46:34 +000012621 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012622 { $as_echo "$as_me:$LINENO: result: no" >&5
12623$as_echo "no" >&6; }
12624 ;;
12625 yes )
12626 TEMP_STORE=2
12627 { $as_echo "$as_me:$LINENO: result: yes" >&5
12628$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012629 ;;
12630 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012631 TEMP_STORE=3
drh8b727472009-01-19 18:18:40 +000012632 { $as_echo "$as_me:$LINENO: result: always" >&5
12633$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012634 ;;
paulb0208cc2003-04-13 18:26:49 +000012635 * )
drh54414bb2005-10-10 00:05:50 +000012636 TEMP_STORE=1
drh8b727472009-01-19 18:18:40 +000012637 { $as_echo "$as_me:$LINENO: result: no" >&5
12638$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012639 ;;
12640esac
12641
12642
12643
drh75897232000-05-29 14:26:00 +000012644###########
12645# Lots of things are different if we are compiling for Windows using
12646# the CYGWIN environment. So check for that special case and handle
12647# things accordingly.
12648#
drh8b727472009-01-19 18:18:40 +000012649{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12650$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012651if test "$config_BUILD_EXEEXT" = ".exe"; then
12652 CYGWIN=yes
drh8b727472009-01-19 18:18:40 +000012653 { $as_echo "$as_me:$LINENO: result: yes" >&5
12654$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012655else
drh8b727472009-01-19 18:18:40 +000012656 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12657$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012658fi
12659if test "$CYGWIN" != "yes"; then
drh8b727472009-01-19 18:18:40 +000012660 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12661$as_echo_n "checking host system type... " >&6; }
12662if test "${ac_cv_host+set}" = set; then
12663 $as_echo_n "(cached) " >&6
12664else
12665 if test "x$host_alias" = x; then
12666 ac_cv_host=$ac_cv_build
12667else
12668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12670$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12671 { (exit 1); exit 1; }; }
12672fi
12673
12674fi
12675{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12676$as_echo "$ac_cv_host" >&6; }
12677case $ac_cv_host in
12678*-*-*) ;;
12679*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12680$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12681 { (exit 1); exit 1; }; };;
12682esac
12683host=$ac_cv_host
12684ac_save_IFS=$IFS; IFS='-'
12685set x $ac_cv_host
12686shift
12687host_cpu=$1
12688host_vendor=$2
12689shift; shift
12690# Remember, the first character of IFS is used to create $*,
12691# except with old shells:
12692host_os=$*
12693IFS=$ac_save_IFS
12694case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12695
a.rottmann84e63352003-03-24 09:42:16 +000012696
12697case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012698 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012699 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012700esac
drh75897232000-05-29 14:26:00 +000012701
drh75897232000-05-29 14:26:00 +000012702fi
12703if test "$CYGWIN" = "yes"; then
12704 BUILD_EXEEXT=.exe
12705else
dougcurrie6194a5f2003-12-19 20:09:51 +000012706 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012707fi
vapier7f19c022007-02-17 14:46:31 +000012708if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012709 TARGET_EXEEXT=$BUILD_EXEEXT
12710else
12711 TARGET_EXEEXT=$config_TARGET_EXEEXT
12712fi
12713if test "$TARGET_EXEEXT" = ".exe"; then
drh60a1e4b2006-06-03 18:02:15 +000012714 if test $OS2_SHELL ; then
danielk197729bafea2008-06-26 10:41:19 +000012715 SQLITE_OS_UNIX=0
12716 SQLITE_OS_WIN=0
12717 SQLITE_OS_OS2=1
12718 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
drh60a1e4b2006-06-03 18:02:15 +000012719 else
danielk197729bafea2008-06-26 10:41:19 +000012720 SQLITE_OS_UNIX=0
12721 SQLITE_OS_WIN=1
12722 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012723 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh60a1e4b2006-06-03 18:02:15 +000012724 fi
drh75897232000-05-29 14:26:00 +000012725else
danielk197729bafea2008-06-26 10:41:19 +000012726 SQLITE_OS_UNIX=1
12727 SQLITE_OS_WIN=0
12728 SQLITE_OS_OS2=0
danielk197729bafea2008-06-26 10:41:19 +000012729 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012730fi
drh75897232000-05-29 14:26:00 +000012731
a.rottmann84e63352003-03-24 09:42:16 +000012732
12733
12734
12735
12736
drh75897232000-05-29 14:26:00 +000012737
drh75897232000-05-29 14:26:00 +000012738##########
drh7b5717e2004-11-25 13:50:01 +000012739# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012740#
drh7b5717e2004-11-25 13:50:01 +000012741# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12742# macros in the in the tcl.m4 file of the standard TCL distribution.
12743# Those macros could not be used directly since we have to make some
12744# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012745#
drh8b727472009-01-19 18:18:40 +000012746# Check whether --enable-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012747if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012748 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012749else
drh7b5717e2004-11-25 13:50:01 +000012750 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012751fi
12752
drh7b5717e2004-11-25 13:50:01 +000012753if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012754
drh8b727472009-01-19 18:18:40 +000012755# Check whether --with-tcl was given.
drh7b5717e2004-11-25 13:50:01 +000012756if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012757 withval=$with_tcl; with_tclconfig=${withval}
12758fi
12759
12760 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12761$as_echo_n "checking for Tcl configuration... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012762 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012763 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012764else
a.rottmann84e63352003-03-24 09:42:16 +000012765
drh7b5717e2004-11-25 13:50:01 +000012766 # First check to see if --with-tcl was specified.
12767 if test x"${with_tclconfig}" != x ; then
12768 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12769 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12770 else
drh8b727472009-01-19 18:18:40 +000012771 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12772$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
xdong28f79f72003-09-23 00:35:21 +000012773 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012774 fi
12775 fi
vapier6acb2cf2009-01-28 04:46:28 +000012776
12777 # Start autosearch by asking tclsh
12778 if test x"$cross_compiling" = xno; then
12779 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12780 do
12781 if test -f "$i/tclConfig.sh" ; then
12782 ac_cv_c_tclconfig="$i"
12783 break
12784 fi
12785 done
12786 fi
12787
drh7b5717e2004-11-25 13:50:01 +000012788 # then check for a private Tcl installation
12789 if test x"${ac_cv_c_tclconfig}" = x ; then
12790 for i in \
12791 ../tcl \
12792 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12793 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12794 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12795 ../../tcl \
12796 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12797 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12798 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12799 ../../../tcl \
12800 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12801 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12802 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12803 do
12804 if test -f "$i/unix/tclConfig.sh" ; then
12805 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12806 break
12807 fi
12808 done
12809 fi
12810
12811 # check in a few common install locations
12812 if test x"${ac_cv_c_tclconfig}" = x ; then
12813 for i in \
12814 `ls -d ${libdir} 2>/dev/null` \
12815 `ls -d /usr/local/lib 2>/dev/null` \
12816 `ls -d /usr/contrib/lib 2>/dev/null` \
12817 `ls -d /usr/lib 2>/dev/null`
12818 do
12819 if test -f "$i/tclConfig.sh" ; then
12820 ac_cv_c_tclconfig=`(cd $i; pwd)`
12821 break
12822 fi
12823 done
12824 fi
12825
12826 # check in a few other private locations
12827 if test x"${ac_cv_c_tclconfig}" = x ; then
12828 for i in \
12829 ${srcdir}/../tcl \
12830 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12831 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12832 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12833 do
12834 if test -f "$i/unix/tclConfig.sh" ; then
12835 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12836 break
12837 fi
12838 done
12839 fi
12840
drh75897232000-05-29 14:26:00 +000012841fi
12842
drh7b5717e2004-11-25 13:50:01 +000012843
12844 if test x"${ac_cv_c_tclconfig}" = x ; then
12845 use_tcl=no
drh8b727472009-01-19 18:18:40 +000012846 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12847$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12849$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12850 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12851$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012852 else
12853 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh8b727472009-01-19 18:18:40 +000012854 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12855$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012856
drh8b727472009-01-19 18:18:40 +000012857 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12858$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012859 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh8b727472009-01-19 18:18:40 +000012860 { $as_echo "$as_me:$LINENO: result: loading" >&5
12861$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012862 . $TCL_BIN_DIR/tclConfig.sh
12863 else
drh8b727472009-01-19 18:18:40 +000012864 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12865$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012866 fi
drh7b5717e2004-11-25 13:50:01 +000012867
12868 #
12869 # If the TCL_BIN_DIR is the build directory (not the install directory),
12870 # then set the common variable name to the value of the build variables.
12871 # For example, the variable TCL_LIB_SPEC will be set to the value
12872 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12873 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12874 # installed and uninstalled version of Tcl.
12875 #
12876
mlcreechab1c47b2008-03-09 02:51:10 +000012877 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012878 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12879 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12880 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12881 fi
12882
12883 #
12884 # eval is required to do the TCL_DBGX substitution
12885 #
12886
12887 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12888 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12889 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12890
12891 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12892 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12893 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908 fi
drh75897232000-05-29 14:26:00 +000012909fi
drh7b5717e2004-11-25 13:50:01 +000012910if test "${use_tcl}" = "no" ; then
12911 HAVE_TCL=""
12912else
12913 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012914fi
drh75897232000-05-29 14:26:00 +000012915
a.rottmann84e63352003-03-24 09:42:16 +000012916
drh75897232000-05-29 14:26:00 +000012917##########
12918# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012919# that use "readline()" library.
12920#
vapier7f19c022007-02-17 14:46:31 +000012921TARGET_READLINE_LIBS=""
12922TARGET_READLINE_INC=""
12923TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012924# Check whether --enable-readline was given.
vapier7f19c022007-02-17 14:46:31 +000012925if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012926 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012927else
vapier7f19c022007-02-17 14:46:31 +000012928 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012929fi
12930
vapier7f19c022007-02-17 14:46:31 +000012931
12932if test x"$with_readline" != xno; then
12933 found="yes"
12934
12935
drh8b727472009-01-19 18:18:40 +000012936# Check whether --with-readline-lib was given.
vapier7f19c022007-02-17 14:46:31 +000012937if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012938 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012939else
12940 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012941fi
12942
vapier7f19c022007-02-17 14:46:31 +000012943 if test "x$with_readline_lib" = xauto; then
12944 save_LIBS="$LIBS"
12945 LIBS=""
drh8b727472009-01-19 18:18:40 +000012946 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12947$as_echo_n "checking for library containing tgetent... " >&6; }
paul38372372003-04-22 08:04:49 +000012948if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012949 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012950else
drh71eb93e2001-09-28 01:34:43 +000012951 ac_func_search_save_LIBS=$LIBS
paul38372372003-04-22 08:04:49 +000012952cat >conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012953/* confdefs.h. */
12954_ACEOF
12955cat confdefs.h >>conftest.$ac_ext
12956cat >>conftest.$ac_ext <<_ACEOF
12957/* end confdefs.h. */
12958
drh8b727472009-01-19 18:18:40 +000012959/* Override any GCC internal prototype to avoid an error.
12960 Use char because int might match the return type of a GCC
12961 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012962#ifdef __cplusplus
12963extern "C"
12964#endif
paul38372372003-04-22 08:04:49 +000012965char tgetent ();
12966int
12967main ()
12968{
drh8b727472009-01-19 18:18:40 +000012969return tgetent ();
paul38372372003-04-22 08:04:49 +000012970 ;
12971 return 0;
12972}
12973_ACEOF
drh8b727472009-01-19 18:18:40 +000012974for ac_lib in '' readline ncurses curses termcap; do
12975 if test -z "$ac_lib"; then
12976 ac_res="none required"
12977 else
12978 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012980 fi
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982if { (ac_try="$ac_link"
12983case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986esac
12987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12988$as_echo "$ac_try_echo") >&5
12989 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest$ac_exeext && {
12999 test "$cross_compiling" = yes ||
13000 $as_test_x conftest$ac_exeext
13001 }; then
13002 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013003else
drh8b727472009-01-19 18:18:40 +000013004 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013005sed 's/^/| /' conftest.$ac_ext >&5
13006
drh8b727472009-01-19 18:18:40 +000013007
mlcreech94984912008-03-04 19:03:08 +000013008fi
drh8b727472009-01-19 18:18:40 +000013009
13010rm -rf conftest.dSYM
13011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13012 conftest$ac_exeext
13013 if test "${ac_cv_search_tgetent+set}" = set; then
13014 break
drh866108f2008-05-13 00:57:21 +000013015fi
drh8b727472009-01-19 18:18:40 +000013016done
13017if test "${ac_cv_search_tgetent+set}" = set; then
13018 :
13019else
13020 ac_cv_search_tgetent=no
13021fi
13022rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013023LIBS=$ac_func_search_save_LIBS
13024fi
drh8b727472009-01-19 18:18:40 +000013025{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13026$as_echo "$ac_cv_search_tgetent" >&6; }
13027ac_res=$ac_cv_search_tgetent
13028if test "$ac_res" != no; then
13029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000013030 term_LIBS="$LIBS"
13031else
13032 term_LIBS=""
paul38372372003-04-22 08:04:49 +000013033fi
13034
drh8b727472009-01-19 18:18:40 +000013035 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13036$as_echo_n "checking for readline in -lreadline... " >&6; }
paul38372372003-04-22 08:04:49 +000013037if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013038 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000013039else
13040 ac_check_lib_save_LIBS=$LIBS
13041LIBS="-lreadline $LIBS"
drh71eb93e2001-09-28 01:34:43 +000013042cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013048
drh8b727472009-01-19 18:18:40 +000013049/* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000013052#ifdef __cplusplus
13053extern "C"
13054#endif
drh71eb93e2001-09-28 01:34:43 +000013055char readline ();
13056int
13057main ()
13058{
drh8b727472009-01-19 18:18:40 +000013059return readline ();
drh71eb93e2001-09-28 01:34:43 +000013060 ;
13061 return 0;
13062}
13063_ACEOF
13064rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000013065if { (ac_try="$ac_link"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13071$as_echo "$ac_try_echo") >&5
13072 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013073 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest$ac_exeext && {
13082 test "$cross_compiling" = yes ||
13083 $as_test_x conftest$ac_exeext
13084 }; then
paul38372372003-04-22 08:04:49 +000013085 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013086else
drh8b727472009-01-19 18:18:40 +000013087 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013088sed 's/^/| /' conftest.$ac_ext >&5
13089
drh8b727472009-01-19 18:18:40 +000013090 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013091fi
drh8b727472009-01-19 18:18:40 +000013092
13093rm -rf conftest.dSYM
13094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000013095 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013096LIBS=$ac_check_lib_save_LIBS
13097fi
drh8b727472009-01-19 18:18:40 +000013098{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13099$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh934c5442009-04-13 09:09:24 +000013100if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013101 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013102else
vapier7f19c022007-02-17 14:46:31 +000013103 found="no"
13104fi
drhf1878b42006-01-23 18:06:52 +000013105
vapier7f19c022007-02-17 14:46:31 +000013106 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13107 LIBS="$save_LIBS"
13108 else
13109 TARGET_READLINE_LIBS="$with_readline_lib"
13110 fi
13111
13112
drh8b727472009-01-19 18:18:40 +000013113# Check whether --with-readline-inc was given.
vapier7f19c022007-02-17 14:46:31 +000013114if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013115 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013116else
vapier7f19c022007-02-17 14:46:31 +000013117 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013118fi
13119
vapier7f19c022007-02-17 14:46:31 +000013120 if test "x$with_readline_inc" = xauto; then
13121 if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013122 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13123$as_echo_n "checking for readline.h... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000013124if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013125 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013126fi
drh8b727472009-01-19 18:18:40 +000013127{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13128$as_echo "$ac_cv_header_readline_h" >&6; }
drh75897232000-05-29 14:26:00 +000013129else
a.rottmann84e63352003-03-24 09:42:16 +000013130 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000013131{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13132$as_echo_n "checking readline.h usability... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013133cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139$ac_includes_default
drh75897232000-05-29 14:26:00 +000013140#include <readline.h>
drh71eb93e2001-09-28 01:34:43 +000013141_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013142rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000013143if { (ac_try="$ac_compile"
13144case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149$as_echo "$ac_try_echo") >&5
13150 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000013151 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000013152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +000013160 ac_header_compiler=yes
13161else
drh8b727472009-01-19 18:18:40 +000013162 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013163sed 's/^/| /' conftest.$ac_ext >&5
13164
drh8b727472009-01-19 18:18:40 +000013165 ac_header_compiler=no
a.rottmann84e63352003-03-24 09:42:16 +000013166fi
drh8b727472009-01-19 18:18:40 +000013167
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13170$as_echo "$ac_header_compiler" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013171
13172# Is the header present?
drh8b727472009-01-19 18:18:40 +000013173{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13174$as_echo_n "checking readline.h presence... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013175cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181#include <readline.h>
13182_ACEOF
drh8b727472009-01-19 18:18:40 +000013183if { (ac_try="$ac_cpp conftest.$ac_ext"
13184case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187esac
13188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13189$as_echo "$ac_try_echo") >&5
13190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +000013191 ac_status=$?
a.rottmann84e63352003-03-24 09:42:16 +000013192 grep -v '^ *+' conftest.er1 >conftest.err
drh71eb93e2001-09-28 01:34:43 +000013193 rm -f conftest.er1
13194 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } >/dev/null && {
13197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13199 }; then
a.rottmann84e63352003-03-24 09:42:16 +000013200 ac_header_preproc=yes
drh71eb93e2001-09-28 01:34:43 +000013201else
drh8b727472009-01-19 18:18:40 +000013202 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000013203sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 ac_header_preproc=no
drh75897232000-05-29 14:26:00 +000013206fi
drh8b727472009-01-19 18:18:40 +000013207
drh71eb93e2001-09-28 01:34:43 +000013208rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000013209{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13210$as_echo "$ac_header_preproc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013211
13212# So? What about this header?
a.rottmann964dbb12004-02-26 19:47:42 +000013213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13214 yes:no: )
drh8b727472009-01-19 18:18:40 +000013215 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13216$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13217 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13218$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
a.rottmann964dbb12004-02-26 19:47:42 +000013219 ac_header_preproc=yes
a.rottmann84e63352003-03-24 09:42:16 +000013220 ;;
a.rottmann964dbb12004-02-26 19:47:42 +000013221 no:yes:* )
drh8b727472009-01-19 18:18:40 +000013222 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13223$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13225$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13227$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13228 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13229$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13230 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13231$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13232 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13233$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13234
a.rottmann84e63352003-03-24 09:42:16 +000013235 ;;
13236esac
drh8b727472009-01-19 18:18:40 +000013237{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13238$as_echo_n "checking for readline.h... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013239if test "${ac_cv_header_readline_h+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013240 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000013241else
13242 ac_cv_header_readline_h=$ac_header_preproc
drh75897232000-05-29 14:26:00 +000013243fi
drh8b727472009-01-19 18:18:40 +000013244{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13245$as_echo "$ac_cv_header_readline_h" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000013246
13247fi
drh934c5442009-04-13 09:09:24 +000013248if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013249 found="yes"
13250else
drh75897232000-05-29 14:26:00 +000013251
vapier7f19c022007-02-17 14:46:31 +000013252 found="no"
13253 if test "$cross_compiling" != yes; then
13254 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13255 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013256 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13257{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13258$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13259if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13260 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013261else
13262 test "$cross_compiling" = yes &&
drh8b727472009-01-19 18:18:40 +000013263 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13264$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
xdong28f79f72003-09-23 00:35:21 +000013265 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013266if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013267 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013268else
drh71eb93e2001-09-28 01:34:43 +000013269 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013270fi
13271fi
drh8b727472009-01-19 18:18:40 +000013272ac_res=`eval 'as_val=${'$as_ac_File'}
13273 $as_echo "$as_val"'`
13274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275$as_echo "$ac_res" >&6; }
drh934c5442009-04-13 09:09:24 +000013276if test `eval 'as_val=${'$as_ac_File'}
13277 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013278 found=yes
drh75897232000-05-29 14:26:00 +000013279fi
13280
vapier7f19c022007-02-17 14:46:31 +000013281 if test "$found" = "yes"; then
13282 TARGET_READLINE_INC="-I$dir/$subdir"
13283 break
13284 fi
13285 done
13286 test "$found" = "yes" && break
13287 done
13288 fi
13289
13290fi
13291
13292
13293 else
13294 TARGET_READLINE_INC="$with_readline_inc"
13295 fi
13296
13297 if test x"$found" = xno; then
13298 TARGET_READLINE_LIBS=""
13299 TARGET_READLINE_INC=""
13300 TARGET_HAVE_READLINE=0
13301 else
13302 TARGET_HAVE_READLINE=1
13303 fi
13304fi
13305
13306
13307
13308
13309
13310##########
13311# Figure out what C libraries are required to compile programs
13312# that use "fdatasync()" function.
13313#
drh8b727472009-01-19 18:18:40 +000013314{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13315$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013316if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013317 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013318else
vapier7f19c022007-02-17 14:46:31 +000013319 ac_func_search_save_LIBS=$LIBS
13320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013326
drh8b727472009-01-19 18:18:40 +000013327/* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013330#ifdef __cplusplus
13331extern "C"
13332#endif
13333char fdatasync ();
13334int
13335main ()
13336{
drh8b727472009-01-19 18:18:40 +000013337return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013338 ;
13339 return 0;
13340}
13341_ACEOF
drh8b727472009-01-19 18:18:40 +000013342for ac_lib in '' rt; do
13343 if test -z "$ac_lib"; then
13344 ac_res="none required"
13345 else
13346 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013348 fi
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350if { (ac_try="$ac_link"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13356$as_echo "$ac_try_echo") >&5
13357 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013358 ac_status=$?
13359 grep -v '^ *+' conftest.er1 >conftest.err
13360 rm -f conftest.er1
13361 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } && {
13364 test -z "$ac_c_werror_flag" ||
13365 test ! -s conftest.err
13366 } && test -s conftest$ac_exeext && {
13367 test "$cross_compiling" = yes ||
13368 $as_test_x conftest$ac_exeext
13369 }; then
13370 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013371else
drh8b727472009-01-19 18:18:40 +000013372 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013373sed 's/^/| /' conftest.$ac_ext >&5
13374
drh8b727472009-01-19 18:18:40 +000013375
mlcreech94984912008-03-04 19:03:08 +000013376fi
drh8b727472009-01-19 18:18:40 +000013377
13378rm -rf conftest.dSYM
13379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13380 conftest$ac_exeext
13381 if test "${ac_cv_search_fdatasync+set}" = set; then
13382 break
drh866108f2008-05-13 00:57:21 +000013383fi
drh8b727472009-01-19 18:18:40 +000013384done
13385if test "${ac_cv_search_fdatasync+set}" = set; then
13386 :
13387else
13388 ac_cv_search_fdatasync=no
13389fi
13390rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013391LIBS=$ac_func_search_save_LIBS
13392fi
drh8b727472009-01-19 18:18:40 +000013393{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13394$as_echo "$ac_cv_search_fdatasync" >&6; }
13395ac_res=$ac_cv_search_fdatasync
13396if test "$ac_res" != no; then
13397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013398
vapier7f19c022007-02-17 14:46:31 +000013399fi
13400
a.rottmann84e63352003-03-24 09:42:16 +000013401
drh75897232000-05-29 14:26:00 +000013402#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013403# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013404# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013405if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013406 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013407else
13408 use_debug=no
drh8b727472009-01-19 18:18:40 +000013409fi
13410
tpoindex9d9f76c2005-01-03 21:28:56 +000013411if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013412 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013413else
13414 TARGET_DEBUG="-DNDEBUG"
13415fi
13416
13417
13418#########
mlcreech94984912008-03-04 19:03:08 +000013419# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013420# Check whether --enable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000013421if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013422 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013423else
13424 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013425fi
13426
mlcreechf3868112008-03-11 18:03:30 +000013427if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013428 USE_AMALGAMATION=0
13429fi
13430
13431
13432#########
mlcreecha4edab02008-03-06 04:14:17 +000013433# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013434# Check whether --enable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000013435if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013436 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013437else
13438 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013439fi
13440
mlcreecha4edab02008-03-06 04:14:17 +000013441if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013442 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000013443else
shanefbedede2008-07-22 05:05:01 +000013444 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013445fi
13446
mlcreechaac7b932008-04-01 02:45:22 +000013447#########
shaneb1cd7302008-10-22 18:27:31 +000013448# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013449for option in $CFLAGS $CPPFLAGS
13450do
13451 case $option in
danielk197733a14782008-08-04 14:50:05 +000013452 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013453 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013454 esac
13455done
13456
13457
danielk197733a14782008-08-04 14:50:05 +000013458
shaneb1cd7302008-10-22 18:27:31 +000013459# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013460ac_temp_CFLAGS=""
13461for option in $CFLAGS
13462do
13463 case $option in
13464 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013465 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013466 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013467 esac
13468done
13469CFLAGS=$ac_temp_CFLAGS
13470
13471
shaneb1cd7302008-10-22 18:27:31 +000013472# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013473ac_temp_CPPFLAGS=""
13474for option in $CPPFLAGS
13475do
13476 case $option in
13477 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013478 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013479 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013480 esac
13481done
13482CPPFLAGS=$ac_temp_CPPFLAGS
13483
danielk197733a14782008-08-04 14:50:05 +000013484
drh8b727472009-01-19 18:18:40 +000013485# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013486ac_temp_BUILD_CFLAGS=""
13487for option in $BUILD_CFLAGS
13488do
13489 case $option in
13490 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013491 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013492 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013493 esac
13494done
13495BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13496
13497
13498#########
13499# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013500# Check whether --enable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000013501if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013502 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013503else
13504 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013505fi
13506
mlcreechaac7b932008-04-01 02:45:22 +000013507if test "${use_gcov}" = "yes" ; then
13508 USE_GCOV=1
13509else
13510 USE_GCOV=0
13511fi
13512
13513
danielk197733a14782008-08-04 14:50:05 +000013514
drh2dfbbca2000-07-28 14:32:48 +000013515#########
mlcreechb87057f2008-03-06 07:19:20 +000013516# Output the config header
drh8b727472009-01-19 18:18:40 +000013517ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013518
13519
13520#########
drh75897232000-05-29 14:26:00 +000013521# Generate the output files.
13522#
mlcreechdf59c7c2008-03-06 07:51:15 +000013523
drh8b727472009-01-19 18:18:40 +000013524ac_config_files="$ac_config_files Makefile sqlite3.pc"
13525
drh71eb93e2001-09-28 01:34:43 +000013526cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013527# This file is a shell script that caches the results of configure
13528# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013529# scripts and configure runs, see configure's option --config-cache.
13530# It is not useful on other systems. If it contains results you don't
13531# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013532#
drh71eb93e2001-09-28 01:34:43 +000013533# config.status only pays attention to the cache file if you give it
13534# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013535#
a.rottmann84e63352003-03-24 09:42:16 +000013536# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013537# loading this file, other *unset* `ac_cv_foo' will be assigned the
13538# following values.
13539
13540_ACEOF
13541
drh75897232000-05-29 14:26:00 +000013542# The following way of writing the cache mishandles newlines in values,
13543# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013544# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013545# Ultrix sh set writes to stderr and can't be redirected directly,
13546# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013547(
13548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13549 eval ac_val=\$$ac_var
13550 case $ac_val in #(
13551 *${as_nl}*)
13552 case $ac_var in #(
drh934c5442009-04-13 09:09:24 +000013553 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13554$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013555 esac
13556 case $ac_var in #(
13557 _ | IFS | as_nl) ;; #(
13558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13559 *) $as_unset $ac_var ;;
13560 esac ;;
13561 esac
13562 done
13563
drh71eb93e2001-09-28 01:34:43 +000013564 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13566 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013567 # `set' does not quote correctly, so add quotes (double-quote
13568 # substitution turns \\\\ into \\, and sed turns \\ into \).
13569 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013570 "s/'/'\\\\''/g;
13571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013572 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013573 *)
13574 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013576 ;;
drh8b727472009-01-19 18:18:40 +000013577 esac |
13578 sort
13579) |
drh71eb93e2001-09-28 01:34:43 +000013580 sed '
drh8b727472009-01-19 18:18:40 +000013581 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013582 t clear
drh8b727472009-01-19 18:18:40 +000013583 :clear
drh71eb93e2001-09-28 01:34:43 +000013584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13585 t end
drh8b727472009-01-19 18:18:40 +000013586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13587 :end' >>confcache
13588if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13589 if test -w "$cache_file"; then
13590 test "x$cache_file" != "x/dev/null" &&
13591 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13592$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013593 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013594 else
drh8b727472009-01-19 18:18:40 +000013595 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13596$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013597 fi
13598fi
13599rm -f confcache
13600
drh75897232000-05-29 14:26:00 +000013601test "x$prefix" = xNONE && prefix=$ac_default_prefix
13602# Let make expand exec_prefix.
13603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13604
mlcreechb87057f2008-03-06 07:19:20 +000013605DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013606
13607ac_libobjs=
13608ac_ltlibobjs=
13609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13610 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13614 # will be set to the directory where LIBOBJS objects are built.
13615 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13616 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013617done
13618LIBOBJS=$ac_libobjs
13619
13620LTLIBOBJS=$ac_ltlibobjs
13621
13622
13623
drh75897232000-05-29 14:26:00 +000013624: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013625ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013626ac_clean_files_save=$ac_clean_files
13627ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh8b727472009-01-19 18:18:40 +000013628{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13629$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13630cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013631#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013632# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013633# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013634# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013635# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013636
drh71eb93e2001-09-28 01:34:43 +000013637debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013638ac_cs_recheck=false
13639ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013640SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013641_ACEOF
drh75897232000-05-29 14:26:00 +000013642
drh8b727472009-01-19 18:18:40 +000013643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013644## --------------------- ##
13645## M4sh Initialization. ##
13646## --------------------- ##
13647
drh8b727472009-01-19 18:18:40 +000013648# Be more Bourne compatible
13649DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013650if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13651 emulate sh
13652 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013654 # is contrary to our usage. Disable this feature.
13655 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013656 setopt NO_GLOB_SUBST
13657else
13658 case `(set -o) 2>/dev/null` in
13659 *posix*) set -o posix ;;
13660esac
13661
a.rottmann84e63352003-03-24 09:42:16 +000013662fi
drh8b727472009-01-19 18:18:40 +000013663
13664
13665
13666
13667# PATH needs CR
13668# Avoid depending upon Character Ranges.
13669as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13670as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13671as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13672as_cr_digits='0123456789'
13673as_cr_alnum=$as_cr_Letters$as_cr_digits
13674
13675as_nl='
13676'
13677export as_nl
13678# Printing a long string crashes Solaris 7 /usr/bin/printf.
13679as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13682if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13683 as_echo='printf %s\n'
13684 as_echo_n='printf %s'
13685else
13686 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13687 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13688 as_echo_n='/usr/ucb/echo -n'
13689 else
13690 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13691 as_echo_n_body='eval
13692 arg=$1;
13693 case $arg in
13694 *"$as_nl"*)
13695 expr "X$arg" : "X\\(.*\\)$as_nl";
13696 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13697 esac;
13698 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13699 '
13700 export as_echo_n_body
13701 as_echo_n='sh -c $as_echo_n_body as_echo'
13702 fi
13703 export as_echo_body
13704 as_echo='sh -c $as_echo_body as_echo'
13705fi
13706
13707# The user is always right.
13708if test "${PATH_SEPARATOR+set}" != set; then
13709 PATH_SEPARATOR=:
13710 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13711 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13712 PATH_SEPARATOR=';'
13713 }
13714fi
a.rottmann84e63352003-03-24 09:42:16 +000013715
mlcreech94984912008-03-04 19:03:08 +000013716# Support unset when possible.
13717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13718 as_unset=unset
13719else
13720 as_unset=false
13721fi
a.rottmann84e63352003-03-24 09:42:16 +000013722
mlcreech94984912008-03-04 19:03:08 +000013723
drh8b727472009-01-19 18:18:40 +000013724# IFS
13725# We need space, tab and new line, in precisely that order. Quoting is
13726# there to prevent editors from complaining about space-tab.
13727# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13728# splitting by setting IFS to empty value.)
13729IFS=" "" $as_nl"
13730
13731# Find who we are. Look in the path if we contain no directory separator.
13732case $0 in
13733 *[\\/]* ) as_myself=$0 ;;
13734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735for as_dir in $PATH
13736do
13737 IFS=$as_save_IFS
13738 test -z "$as_dir" && as_dir=.
13739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13740done
13741IFS=$as_save_IFS
13742
13743 ;;
13744esac
13745# We did not find ourselves, most probably we were run as `sh COMMAND'
13746# in which case we are not to be found in the path.
13747if test "x$as_myself" = x; then
13748 as_myself=$0
13749fi
13750if test ! -f "$as_myself"; then
13751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13752 { (exit 1); exit 1; }
13753fi
13754
mlcreech94984912008-03-04 19:03:08 +000013755# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +000013756for as_var in ENV MAIL MAILPATH
13757do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13758done
mlcreech94984912008-03-04 19:03:08 +000013759PS1='$ '
13760PS2='> '
13761PS4='+ '
13762
13763# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013764LC_ALL=C
13765export LC_ALL
13766LANGUAGE=C
13767export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013768
13769# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013770if expr a : '\(a\)' >/dev/null 2>&1 &&
13771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013772 as_expr=expr
13773else
13774 as_expr=false
13775fi
13776
drh8b727472009-01-19 18:18:40 +000013777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013778 as_basename=basename
13779else
13780 as_basename=false
13781fi
13782
13783
13784# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013785as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013786$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13787 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013788 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13789$as_echo X/"$0" |
13790 sed '/^.*\/\([^/][^/]*\)\/*$/{
13791 s//\1/
13792 q
13793 }
13794 /^X\/\(\/\/\)$/{
13795 s//\1/
13796 q
13797 }
13798 /^X\/\(\/\).*/{
13799 s//\1/
13800 q
13801 }
13802 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013803
drh8b727472009-01-19 18:18:40 +000013804# CDPATH.
13805$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +000013806
13807
13808
a.rottmann84e63352003-03-24 09:42:16 +000013809 as_lineno_1=$LINENO
13810 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013811 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +000013812 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013813
13814 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13815 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +000013816 # line-number line after each line using $LINENO; the second 'sed'
13817 # does the real work. The second script uses 'N' to pair each
13818 # line-number line with the line containing $LINENO, and appends
13819 # trailing '-' during substitution so that $LINENO is not a special
13820 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013821 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +000013822 # scripts with optimization help from Paolo Bonzini. Blame Lee
13823 # E. McMahon (1931-1989) for sed's syntax. :-)
13824 sed -n '
13825 p
13826 /[$]LINENO/=
13827 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013828 sed '
drh8b727472009-01-19 18:18:40 +000013829 s/[$]LINENO.*/&-/
13830 t lineno
13831 b
13832 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013833 N
drh8b727472009-01-19 18:18:40 +000013834 :loop
13835 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013836 t loop
drh8b727472009-01-19 18:18:40 +000013837 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013838 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +000013839 chmod +x "$as_me.lineno" ||
13840 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013841 { (exit 1); exit 1; }; }
13842
13843 # Don't try to exec as it changes $[0], causing all sort of problems
13844 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +000013845 # original and so on. Autoconf is especially sensitive to this).
13846 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013847 # Exit status is that of the last command.
13848 exit
13849}
13850
13851
drh8b727472009-01-19 18:18:40 +000013852if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13853 as_dirname=dirname
13854else
13855 as_dirname=false
13856fi
drh866108f2008-05-13 00:57:21 +000013857
drh8b727472009-01-19 18:18:40 +000013858ECHO_C= ECHO_N= ECHO_T=
13859case `echo -n x` in
13860-n*)
13861 case `echo 'x\c'` in
13862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13863 *) ECHO_C='\c';;
13864 esac;;
13865*)
13866 ECHO_N='-n';;
13867esac
13868if expr a : '\(a\)' >/dev/null 2>&1 &&
13869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013870 as_expr=expr
13871else
13872 as_expr=false
13873fi
13874
13875rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013876if test -d conf$$.dir; then
13877 rm -f conf$$.dir/conf$$.file
13878else
13879 rm -f conf$$.dir
13880 mkdir conf$$.dir 2>/dev/null
13881fi
13882if (echo >conf$$.file) 2>/dev/null; then
13883 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013884 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013885 # ... but there are two gotchas:
13886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13888 # In both cases, we have to default to `cp -p'.
13889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13890 as_ln_s='cp -p'
13891 elif ln conf$$.file conf$$ 2>/dev/null; then
13892 as_ln_s=ln
13893 else
13894 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013895 fi
drh71eb93e2001-09-28 01:34:43 +000013896else
13897 as_ln_s='cp -p'
13898fi
drh8b727472009-01-19 18:18:40 +000013899rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13900rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013901
a.rottmann84e63352003-03-24 09:42:16 +000013902if mkdir -p . 2>/dev/null; then
13903 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013904else
a.rottmann964dbb12004-02-26 19:47:42 +000013905 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013906 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013907fi
13908
drh8b727472009-01-19 18:18:40 +000013909if test -x / >/dev/null 2>&1; then
13910 as_test_x='test -x'
13911else
13912 if ls -dL / >/dev/null 2>&1; then
13913 as_ls_L_option=L
13914 else
13915 as_ls_L_option=
13916 fi
13917 as_test_x='
13918 eval sh -c '\''
13919 if test -d "$1"; then
13920 test -d "$1/.";
13921 else
13922 case $1 in
13923 -*)set "./$1";;
13924 esac;
13925 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13926 ???[sx]*):;;*)false;;esac;fi
13927 '\'' sh
13928 '
13929fi
13930as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013931
13932# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013933as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013934
13935# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013936as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013937
drh71eb93e2001-09-28 01:34:43 +000013938
drh71eb93e2001-09-28 01:34:43 +000013939exec 6>&1
13940
drh8b727472009-01-19 18:18:40 +000013941# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013942# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013943# values after options handling.
13944ac_log="
drh29362c22011-02-04 14:28:34 +000013945This file was extended by sqlite $as_me 3.7.6, which was
drh934c5442009-04-13 09:09:24 +000013946generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013947
13948 CONFIG_FILES = $CONFIG_FILES
13949 CONFIG_HEADERS = $CONFIG_HEADERS
13950 CONFIG_LINKS = $CONFIG_LINKS
13951 CONFIG_COMMANDS = $CONFIG_COMMANDS
13952 $ $0 $@
13953
drh8b727472009-01-19 18:18:40 +000013954on `(hostname || uname -n) 2>/dev/null | sed 1q`
13955"
13956
drh71eb93e2001-09-28 01:34:43 +000013957_ACEOF
13958
drh8b727472009-01-19 18:18:40 +000013959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013960# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013961config_files="$ac_config_files"
13962config_headers="$ac_config_headers"
13963config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013964
drh8b727472009-01-19 18:18:40 +000013965_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013966
drh8b727472009-01-19 18:18:40 +000013967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013968ac_cs_usage="\
13969\`$as_me' instantiates files from templates according to the
13970current configuration.
13971
drh934c5442009-04-13 09:09:24 +000013972Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000013973
13974 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013975 -V, --version print version number and configuration settings, then exit
drh934c5442009-04-13 09:09:24 +000013976 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013977 -d, --debug don't remove temporary files
13978 --recheck update $as_me by reconfiguring in the same conditions
drh934c5442009-04-13 09:09:24 +000013979 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013980 instantiate the configuration file FILE
drh934c5442009-04-13 09:09:24 +000013981 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013982 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013983
13984Configuration files:
13985$config_files
13986
mlcreechb87057f2008-03-06 07:19:20 +000013987Configuration headers:
13988$config_headers
13989
mlcreech636a9952008-05-05 22:52:56 +000013990Configuration commands:
13991$config_commands
13992
drh71eb93e2001-09-28 01:34:43 +000013993Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000013994
mlcreech94984912008-03-04 19:03:08 +000013995_ACEOF
drh8b727472009-01-19 18:18:40 +000013996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000013997ac_cs_version="\\
drh29362c22011-02-04 14:28:34 +000013998sqlite config.status 3.7.6
drh934c5442009-04-13 09:09:24 +000013999configured by $0, generated by GNU Autoconf 2.62,
drh8b727472009-01-19 18:18:40 +000014000 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014001
drh8b727472009-01-19 18:18:40 +000014002Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014003This config.status script is free software; the Free Software Foundation
14004gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014005
14006ac_pwd='$ac_pwd'
14007srcdir='$srcdir'
14008INSTALL='$INSTALL'
14009AWK='$AWK'
14010test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014011_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014012
drh8b727472009-01-19 18:18:40 +000014013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014015ac_need_defaults=:
14016while test $# != 0
14017do
14018 case $1 in
14019 --*=*)
drh8b727472009-01-19 18:18:40 +000014020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14021 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014022 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014023 ;;
drh8b727472009-01-19 18:18:40 +000014024 *)
a.rottmann84e63352003-03-24 09:42:16 +000014025 ac_option=$1
14026 ac_optarg=$2
14027 ac_shift=shift
14028 ;;
drh75897232000-05-29 14:26:00 +000014029 esac
14030
a.rottmann84e63352003-03-24 09:42:16 +000014031 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014032 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014034 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014035 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14036 $as_echo "$ac_cs_version"; exit ;;
14037 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014038 debug=: ;;
14039 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014040 $ac_shift
drh8b727472009-01-19 18:18:40 +000014041 case $ac_optarg in
14042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14043 esac
14044 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014045 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014046 --header | --heade | --head | --hea )
14047 $ac_shift
drh8b727472009-01-19 18:18:40 +000014048 case $ac_optarg in
14049 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14050 esac
14051 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014052 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014053 --he | --h)
14054 # Conflict between --help and --header
14055 { $as_echo "$as_me: error: ambiguous option: $1
14056Try \`$0 --help' for more information." >&2
14057 { (exit 1); exit 1; }; };;
14058 --help | --hel | -h )
14059 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14062 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014063
drh71eb93e2001-09-28 01:34:43 +000014064 # This is an error.
drh8b727472009-01-19 18:18:40 +000014065 -*) { $as_echo "$as_me: error: unrecognized option: $1
14066Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000014067 { (exit 1); exit 1; }; } ;;
14068
drh8b727472009-01-19 18:18:40 +000014069 *) ac_config_targets="$ac_config_targets $1"
14070 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014071
14072 esac
14073 shift
14074done
14075
a.rottmann84e63352003-03-24 09:42:16 +000014076ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014077
a.rottmann84e63352003-03-24 09:42:16 +000014078if $ac_cs_silent; then
14079 exec 6>/dev/null
14080 ac_configure_extra_args="$ac_configure_extra_args --silent"
14081fi
drh71eb93e2001-09-28 01:34:43 +000014082
14083_ACEOF
drh8b727472009-01-19 18:18:40 +000014084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014085if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014086 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14087 shift
14088 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14089 CONFIG_SHELL='$SHELL'
14090 export CONFIG_SHELL
14091 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014092fi
drh71eb93e2001-09-28 01:34:43 +000014093
a.rottmann84e63352003-03-24 09:42:16 +000014094_ACEOF
drh8b727472009-01-19 18:18:40 +000014095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096exec 5>>config.log
14097{
14098 echo
14099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14100## Running $as_me. ##
14101_ASBOX
14102 $as_echo "$ac_log"
14103} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014104
drh8b727472009-01-19 18:18:40 +000014105_ACEOF
14106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014107#
drh8b727472009-01-19 18:18:40 +000014108# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014109#
14110
14111
14112# The HP-UX ksh and POSIX shell print the target directory to stdout
14113# if CDPATH is set.
14114(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14115
14116sed_quote_subst='$sed_quote_subst'
14117double_quote_subst='$double_quote_subst'
14118delay_variable_subst='$delay_variable_subst'
14119macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14120macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14121enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14122enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14123pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14124enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14125host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14126host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14127host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14128build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14129build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14130build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14131SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14132Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14133GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14134EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14135FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14136LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14137NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14138LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14139max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14140ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14141exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14142lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14143lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14144lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14145reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14146reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014147OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014148deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14149file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14150AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14151AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14152STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14153RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14154old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14155old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14156old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14157CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14158CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14159compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14160GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14161lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14162lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14163lt_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"`'
14164lt_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"`'
14165objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14166SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14167ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14168MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14169lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14170lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14171lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14174need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14175DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14176NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14177LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14178OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14179OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14180libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14181shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14182extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14183archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14184enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14185export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14186whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14187compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14188old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14189old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14190archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14191archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14192module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14193module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14194with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14195allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14196no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14197hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14198hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14199hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14200hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14201hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14202hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14203hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14204hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14205inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14206link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14207fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14208always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14209export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14210exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14211include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14212prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14213file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14214variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14215need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14216need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14217version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14218runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14219shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14220shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14221libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14222library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14223soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14224postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14225postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14226finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14227finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14228hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14229sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14230sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14231hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14232enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14233enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14234enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14235old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14236striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14237
14238LTCC='$LTCC'
14239LTCFLAGS='$LTCFLAGS'
14240compiler='$compiler_DEFAULT'
14241
14242# Quote evaled strings.
14243for var in SED \
14244GREP \
14245EGREP \
14246FGREP \
14247LD \
14248NM \
14249LN_S \
14250lt_SP2NL \
14251lt_NL2SP \
14252reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014253OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014254deplibs_check_method \
14255file_magic_cmd \
14256AR \
14257AR_FLAGS \
14258STRIP \
14259RANLIB \
14260CC \
14261CFLAGS \
14262compiler \
14263lt_cv_sys_global_symbol_pipe \
14264lt_cv_sys_global_symbol_to_cdecl \
14265lt_cv_sys_global_symbol_to_c_name_address \
14266lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14267SHELL \
14268ECHO \
14269lt_prog_compiler_no_builtin_flag \
14270lt_prog_compiler_wl \
14271lt_prog_compiler_pic \
14272lt_prog_compiler_static \
14273lt_cv_prog_compiler_c_o \
14274need_locks \
14275DSYMUTIL \
14276NMEDIT \
14277LIPO \
14278OTOOL \
14279OTOOL64 \
14280shrext_cmds \
14281export_dynamic_flag_spec \
14282whole_archive_flag_spec \
14283compiler_needs_object \
14284with_gnu_ld \
14285allow_undefined_flag \
14286no_undefined_flag \
14287hardcode_libdir_flag_spec \
14288hardcode_libdir_flag_spec_ld \
14289hardcode_libdir_separator \
14290fix_srcfile_path \
14291exclude_expsyms \
14292include_expsyms \
14293file_list_spec \
14294variables_saved_for_relink \
14295libname_spec \
14296library_names_spec \
14297soname_spec \
14298finish_eval \
14299old_striplib \
14300striplib; do
14301 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14302 *[\\\\\\\`\\"\\\$]*)
14303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14304 ;;
14305 *)
14306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14307 ;;
14308 esac
14309done
14310
14311# Double-quote double-evaled strings.
14312for var in reload_cmds \
14313old_postinstall_cmds \
14314old_postuninstall_cmds \
14315old_archive_cmds \
14316extract_expsyms_cmds \
14317old_archive_from_new_cmds \
14318old_archive_from_expsyms_cmds \
14319archive_cmds \
14320archive_expsym_cmds \
14321module_cmds \
14322module_expsym_cmds \
14323export_symbols_cmds \
14324prelink_cmds \
14325postinstall_cmds \
14326postuninstall_cmds \
14327finish_cmds \
14328sys_lib_search_path_spec \
14329sys_lib_dlsearch_path_spec; do
14330 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14331 *[\\\\\\\`\\"\\\$]*)
14332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14333 ;;
14334 *)
14335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14336 ;;
14337 esac
14338done
14339
14340# Fix-up fallback echo if it was mangled by the above quoting rules.
14341case \$lt_ECHO in
14342*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14343 ;;
14344esac
14345
14346ac_aux_dir='$ac_aux_dir'
14347xsi_shell='$xsi_shell'
14348lt_shell_append='$lt_shell_append'
14349
14350# See if we are running on zsh, and set the options which allow our
14351# commands through without removal of \ escapes INIT.
14352if test -n "\${ZSH_VERSION+set}" ; then
14353 setopt NO_GLOB_SUBST
14354fi
14355
14356
14357 PACKAGE='$PACKAGE'
14358 VERSION='$VERSION'
14359 TIMESTAMP='$TIMESTAMP'
14360 RM='$RM'
14361 ofile='$ofile'
14362
14363
14364
14365
mlcreech94984912008-03-04 19:03:08 +000014366_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014367
drh8b727472009-01-19 18:18:40 +000014368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014369
drh8b727472009-01-19 18:18:40 +000014370# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014371for ac_config_target in $ac_config_targets
14372do
drh8b727472009-01-19 18:18:40 +000014373 case $ac_config_target in
14374 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14375 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14376 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14377 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14378
14379 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14380$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014381 { (exit 1); exit 1; }; };;
14382 esac
14383done
14384
drh8b727472009-01-19 18:18:40 +000014385
drh71eb93e2001-09-28 01:34:43 +000014386# If the user did not use the arguments to specify the items to instantiate,
14387# then the envvar interface is used. Set only those that are not.
14388# We use the long form for the default assignment because of an extremely
14389# bizarre bug on SunOS 4.1.3.
14390if $ac_need_defaults; then
14391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014394fi
14395
a.rottmann84e63352003-03-24 09:42:16 +000014396# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014397# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014398# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014399# Hook for its removal unless debugging.
14400# Note that there is a small window in which the directory will not be cleaned:
14401# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014402$debug ||
14403{
drh8b727472009-01-19 18:18:40 +000014404 tmp=
14405 trap 'exit_status=$?
14406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14407' 0
drh71eb93e2001-09-28 01:34:43 +000014408 trap '{ (exit 1); exit 1; }' 1 2 13 15
14409}
drh71eb93e2001-09-28 01:34:43 +000014410# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014411
drh71eb93e2001-09-28 01:34:43 +000014412{
drh8b727472009-01-19 18:18:40 +000014413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014414 test -n "$tmp" && test -d "$tmp"
14415} ||
14416{
drh8b727472009-01-19 18:18:40 +000014417 tmp=./conf$$-$RANDOM
14418 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014419} ||
14420{
drh8b727472009-01-19 18:18:40 +000014421 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014422 { (exit 1); exit 1; }
14423}
14424
drh8b727472009-01-19 18:18:40 +000014425# Set up the scripts for CONFIG_FILES section.
14426# No need to generate them if there are no CONFIG_FILES.
14427# This happens for instance with `./config.status config.h'.
14428if test -n "$CONFIG_FILES"; then
14429
14430
drhd2de9f42010-07-26 16:40:03 +000014431ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014432ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14433if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14434 ac_cs_awk_cr='\\r'
14435else
14436 ac_cs_awk_cr=$ac_cr
14437fi
14438
14439echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014440_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014441
mlcreech94984912008-03-04 19:03:08 +000014442
drh8b727472009-01-19 18:18:40 +000014443{
14444 echo "cat >conf$$subs.awk <<_ACEOF" &&
14445 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14446 echo "_ACEOF"
14447} >conf$$subs.sh ||
14448 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14449$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14450 { (exit 1); exit 1; }; }
14451ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14452ac_delim='%!_!# '
14453for ac_last_try in false false false false false :; do
14454 . ./conf$$subs.sh ||
14455 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14456$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14457 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014458
drh934c5442009-04-13 09:09:24 +000014459 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014460 break
14461 elif $ac_last_try; then
14462 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14463$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14464 { (exit 1); exit 1; }; }
14465 else
14466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014467 fi
drh8b727472009-01-19 18:18:40 +000014468done
14469rm -f conf$$subs.sh
14470
14471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14472cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14473_ACEOF
14474sed -n '
14475h
14476s/^/S["/; s/!.*/"]=/
14477p
14478g
14479s/^[^!]*!//
14480:repl
14481t repl
14482s/'"$ac_delim"'$//
14483t delim
14484:nl
14485h
14486s/\(.\{148\}\).*/\1/
14487t more1
14488s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14489p
14490n
14491b repl
14492:more1
14493s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14494p
14495g
14496s/.\{148\}//
14497t nl
14498:delim
14499h
14500s/\(.\{148\}\).*/\1/
14501t more2
14502s/["\\]/\\&/g; s/^/"/; s/$/"/
14503p
14504b
14505:more2
14506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14507p
14508g
14509s/.\{148\}//
14510t delim
14511' <conf$$subs.awk | sed '
14512/^[^""]/{
14513 N
14514 s/\n//
14515}
14516' >>$CONFIG_STATUS || ac_write_fail=1
14517rm -f conf$$subs.awk
14518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14519_ACAWK
14520cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14521 for (key in S) S_is_set[key] = 1
14522 FS = ""
14523
14524}
14525{
14526 line = $ 0
14527 nfields = split(line, field, "@")
14528 substed = 0
14529 len = length(field[1])
14530 for (i = 2; i < nfields; i++) {
14531 key = field[i]
14532 keylen = length(key)
14533 if (S_is_set[key]) {
14534 value = S[key]
14535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14536 len += length(value) + length(field[++i])
14537 substed = 1
14538 } else
14539 len += 1 + keylen
14540 }
14541
14542 print line
14543}
14544
14545_ACAWK
14546_ACEOF
14547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14548if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14549 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14550else
14551 cat
14552fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14553 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14554$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14555 { (exit 1); exit 1; }; }
14556_ACEOF
14557
14558# VPATH may cause trouble with some makes, so we remove $(srcdir),
14559# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14560# trailing colons and then remove the whole line if VPATH becomes empty
14561# (actually we leave an empty line to preserve line numbers).
14562if test "x$srcdir" = x.; then
14563 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14564s/:*\$(srcdir):*/:/
14565s/:*\${srcdir}:*/:/
14566s/:*@srcdir@:*/:/
14567s/^\([^=]*=[ ]*\):*/\1/
14568s/:*$//
14569s/^[^=]*=[ ]*$//
14570}'
14571fi
14572
14573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014574fi # test -n "$CONFIG_FILES"
14575
drh8b727472009-01-19 18:18:40 +000014576# Set up the scripts for CONFIG_HEADERS section.
14577# No need to generate them if there are no CONFIG_HEADERS.
14578# This happens for instance with `./config.status Makefile'.
14579if test -n "$CONFIG_HEADERS"; then
14580cat >"$tmp/defines.awk" <<\_ACAWK ||
14581BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014582_ACEOF
drh8b727472009-01-19 18:18:40 +000014583
14584# Transform confdefs.h into an awk script `defines.awk', embedded as
14585# here-document in config.status, that substitutes the proper values into
14586# config.h.in to produce config.h.
14587
14588# Create a delimiter string that does not exist in confdefs.h, to ease
14589# handling of long lines.
14590ac_delim='%!_!# '
14591for ac_last_try in false false :; do
14592 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14593 if test -z "$ac_t"; then
14594 break
14595 elif $ac_last_try; then
14596 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14597$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14598 { (exit 1); exit 1; }; }
14599 else
14600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14601 fi
14602done
14603
14604# For the awk script, D is an array of macro values keyed by name,
14605# likewise P contains macro parameters if any. Preserve backslash
14606# newline sequences.
14607
14608ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14609sed -n '
14610s/.\{148\}/&'"$ac_delim"'/g
14611t rset
14612:rset
14613s/^[ ]*#[ ]*define[ ][ ]*/ /
14614t def
14615d
14616:def
14617s/\\$//
14618t bsnl
14619s/["\\]/\\&/g
14620s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14621D["\1"]=" \3"/p
14622s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14623d
14624:bsnl
14625s/["\\]/\\&/g
14626s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14627D["\1"]=" \3\\\\\\n"\\/p
14628t cont
14629s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14630t cont
14631d
14632:cont
14633n
14634s/.\{148\}/&'"$ac_delim"'/g
14635t clear
14636:clear
14637s/\\$//
14638t bsnlc
14639s/["\\]/\\&/g; s/^/"/; s/$/"/p
14640d
14641:bsnlc
14642s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14643b cont
14644' <confdefs.h | sed '
14645s/'"$ac_delim"'/"\\\
14646"/g' >>$CONFIG_STATUS || ac_write_fail=1
14647
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649 for (key in D) D_is_set[key] = 1
14650 FS = ""
14651}
14652/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14653 line = \$ 0
14654 split(line, arg, " ")
14655 if (arg[1] == "#") {
14656 defundef = arg[2]
14657 mac1 = arg[3]
14658 } else {
14659 defundef = substr(arg[1], 2)
14660 mac1 = arg[2]
14661 }
14662 split(mac1, mac2, "(") #)
14663 macro = mac2[1]
14664 if (D_is_set[macro]) {
14665 # Preserve the white space surrounding the "#".
drh934c5442009-04-13 09:09:24 +000014666 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014667 print prefix "define", macro P[macro] D[macro]
14668 next
14669 } else {
14670 # Replace #undef with comments. This is necessary, for example,
14671 # in the case of _POSIX_SOURCE, which is predefined and required
14672 # on some systems where configure will not decide to define it.
14673 if (defundef == "undef") {
drh934c5442009-04-13 09:09:24 +000014674 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014675 next
14676 }
14677 }
14678}
14679{ print }
14680_ACAWK
14681_ACEOF
14682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14684$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14685 { (exit 1); exit 1; }; }
14686fi # test -n "$CONFIG_HEADERS"
14687
14688
14689eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14690shift
14691for ac_tag
14692do
14693 case $ac_tag in
14694 :[FHLC]) ac_mode=$ac_tag; continue;;
14695 esac
14696 case $ac_mode$ac_tag in
14697 :[FHL]*:*);;
drh934c5442009-04-13 09:09:24 +000014698 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14699$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
drh8b727472009-01-19 18:18:40 +000014700 { (exit 1); exit 1; }; };;
14701 :[FH]-) ac_tag=-:-;;
14702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14703 esac
14704 ac_save_IFS=$IFS
14705 IFS=:
14706 set x $ac_tag
14707 IFS=$ac_save_IFS
14708 shift
14709 ac_file=$1
14710 shift
14711
14712 case $ac_mode in
14713 :L) ac_source=$1;;
14714 :[FH])
14715 ac_file_inputs=
14716 for ac_f
14717 do
14718 case $ac_f in
14719 -) ac_f="$tmp/stdin";;
14720 *) # Look for the file first in the build tree, then in the source tree
14721 # (if the path is not absolute). The absolute path cannot be DOS-style,
14722 # because $ac_f cannot contain `:'.
14723 test -f "$ac_f" ||
14724 case $ac_f in
14725 [\\/$]*) false;;
14726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14727 esac ||
14728 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14729$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14730 { (exit 1); exit 1; }; };;
14731 esac
14732 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14733 ac_file_inputs="$ac_file_inputs '$ac_f'"
14734 done
14735
14736 # Let's still pretend it is `configure' which instantiates (i.e., don't
14737 # use $as_me), people would be surprised to read:
14738 # /* config.h. Generated by config.status. */
14739 configure_input='Generated from '`
14740 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14741 `' by configure.'
14742 if test x"$ac_file" != x-; then
14743 configure_input="$ac_file. $configure_input"
14744 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14745$as_echo "$as_me: creating $ac_file" >&6;}
14746 fi
14747 # Neutralize special characters interpreted by sed in replacement strings.
14748 case $configure_input in #(
14749 *\&* | *\|* | *\\* )
14750 ac_sed_conf_input=`$as_echo "$configure_input" |
14751 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14752 *) ac_sed_conf_input=$configure_input;;
14753 esac
14754
14755 case $ac_tag in
14756 *:-:* | *:-) cat >"$tmp/stdin" \
14757 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14758$as_echo "$as_me: error: could not create $ac_file" >&2;}
14759 { (exit 1); exit 1; }; } ;;
14760 esac
14761 ;;
drh71eb93e2001-09-28 01:34:43 +000014762 esac
14763
drh8b727472009-01-19 18:18:40 +000014764 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014766 X"$ac_file" : 'X\(//\)[^/]' \| \
14767 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14769$as_echo X"$ac_file" |
14770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14771 s//\1/
14772 q
14773 }
14774 /^X\(\/\/\)[^/].*/{
14775 s//\1/
14776 q
14777 }
14778 /^X\(\/\/\)$/{
14779 s//\1/
14780 q
14781 }
14782 /^X\(\/\).*/{
14783 s//\1/
14784 q
14785 }
14786 s/.*/./; q'`
14787 { as_dir="$ac_dir"
14788 case $as_dir in #(
14789 -*) as_dir=./$as_dir;;
14790 esac
14791 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014792 as_dirs=
drh8b727472009-01-19 18:18:40 +000014793 while :; do
14794 case $as_dir in #(
14795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14796 *) as_qdir=$as_dir;;
14797 esac
14798 as_dirs="'$as_qdir' $as_dirs"
14799 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014800$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014801 X"$as_dir" : 'X\(//\)[^/]' \| \
14802 X"$as_dir" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14804$as_echo X"$as_dir" |
14805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14806 s//\1/
14807 q
14808 }
14809 /^X\(\/\/\)[^/].*/{
14810 s//\1/
14811 q
14812 }
14813 /^X\(\/\/\)$/{
14814 s//\1/
14815 q
14816 }
14817 /^X\(\/\).*/{
14818 s//\1/
14819 q
14820 }
14821 s/.*/./; q'`
14822 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014823 done
drh8b727472009-01-19 18:18:40 +000014824 test -z "$as_dirs" || eval "mkdir $as_dirs"
14825 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14826$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014827 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014828 ac_builddir=.
14829
drh8b727472009-01-19 18:18:40 +000014830case "$ac_dir" in
14831.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14832*)
14833 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14834 # A ".." for each directory in $ac_dir_suffix.
14835 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14836 case $ac_top_builddir_sub in
14837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14839 esac ;;
14840esac
14841ac_abs_top_builddir=$ac_pwd
14842ac_abs_builddir=$ac_pwd$ac_dir_suffix
14843# for backward compatibility:
14844ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014845
14846case $srcdir in
drh8b727472009-01-19 18:18:40 +000014847 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014848 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014849 ac_top_srcdir=$ac_top_builddir_sub
14850 ac_abs_top_srcdir=$ac_pwd ;;
14851 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014852 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014853 ac_top_srcdir=$srcdir
14854 ac_abs_top_srcdir=$srcdir ;;
14855 *) # Relative name.
14856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14857 ac_top_srcdir=$ac_top_build_prefix$srcdir
14858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014859esac
drh8b727472009-01-19 18:18:40 +000014860ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014861
a.rottmann84e63352003-03-24 09:42:16 +000014862
drh8b727472009-01-19 18:18:40 +000014863 case $ac_mode in
14864 :F)
14865 #
14866 # CONFIG_FILE
14867 #
drh75897232000-05-29 14:26:00 +000014868
drh71eb93e2001-09-28 01:34:43 +000014869 case $INSTALL in
14870 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014871 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014872 esac
mlcreech94984912008-03-04 19:03:08 +000014873_ACEOF
drh8b727472009-01-19 18:18:40 +000014874
14875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14876# If the template does not know about datarootdir, expand it.
14877# FIXME: This hack should be removed a few years after 2.60.
14878ac_datarootdir_hack=; ac_datarootdir_seen=
14879
14880ac_sed_dataroot='
14881/datarootdir/ {
14882 p
14883 q
14884}
14885/@datadir@/p
14886/@docdir@/p
14887/@infodir@/p
14888/@localedir@/p
14889/@mandir@/p
14890'
14891case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14892*datarootdir*) ac_datarootdir_seen=yes;;
14893*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14894 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14895$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14896_ACEOF
14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 ac_datarootdir_hack='
14899 s&@datadir@&$datadir&g
14900 s&@docdir@&$docdir&g
14901 s&@infodir@&$infodir&g
14902 s&@localedir@&$localedir&g
14903 s&@mandir@&$mandir&g
14904 s&\\\${datarootdir}&$datarootdir&g' ;;
14905esac
14906_ACEOF
14907
14908# Neutralize VPATH when `$srcdir' = `.'.
14909# Shell code in configure.ac might set extrasub.
14910# FIXME: do we really want to maintain this feature?
14911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14912ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014913$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014914_ACEOF
drh8b727472009-01-19 18:18:40 +000014915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014916:t
14917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014918s|@configure_input@|$ac_sed_conf_input|;t t
14919s&@top_builddir@&$ac_top_builddir_sub&;t t
14920s&@top_build_prefix@&$ac_top_build_prefix&;t t
14921s&@srcdir@&$ac_srcdir&;t t
14922s&@abs_srcdir@&$ac_abs_srcdir&;t t
14923s&@top_srcdir@&$ac_top_srcdir&;t t
14924s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14925s&@builddir@&$ac_builddir&;t t
14926s&@abs_builddir@&$ac_abs_builddir&;t t
14927s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14928s&@INSTALL@&$ac_INSTALL&;t t
14929$ac_datarootdir_hack
14930"
14931eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14933$as_echo "$as_me: error: could not create $ac_file" >&2;}
14934 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014935
drh8b727472009-01-19 18:18:40 +000014936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14937 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14939 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14940which seems to be undefined. Please make sure it is defined." >&5
14941$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14942which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014943
drh8b727472009-01-19 18:18:40 +000014944 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014945 case $ac_file in
drh8b727472009-01-19 18:18:40 +000014946 -) cat "$tmp/out" && rm -f "$tmp/out";;
14947 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14948 esac \
14949 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14950$as_echo "$as_me: error: could not create $ac_file" >&2;}
drh866108f2008-05-13 00:57:21 +000014951 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014952 ;;
14953 :H)
14954 #
14955 # CONFIG_HEADER
14956 #
drh866108f2008-05-13 00:57:21 +000014957 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014958 {
14959 $as_echo "/* $configure_input */" \
14960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14961 } >"$tmp/config.h" \
14962 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14963$as_echo "$as_me: error: could not create $ac_file" >&2;}
14964 { (exit 1); exit 1; }; }
14965 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14966 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14967$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014968 else
drh8b727472009-01-19 18:18:40 +000014969 rm -f "$ac_file"
14970 mv "$tmp/config.h" "$ac_file" \
14971 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14972$as_echo "$as_me: error: could not create $ac_file" >&2;}
14973 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014974 fi
14975 else
drh8b727472009-01-19 18:18:40 +000014976 $as_echo "/* $configure_input */" \
14977 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14978 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14979$as_echo "$as_me: error: could not create -" >&2;}
14980 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014981 fi
drh8b727472009-01-19 18:18:40 +000014982 ;;
drh866108f2008-05-13 00:57:21 +000014983
drh8b727472009-01-19 18:18:40 +000014984 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14985$as_echo "$as_me: executing $ac_file commands" >&6;}
14986 ;;
14987 esac
drh866108f2008-05-13 00:57:21 +000014988
14989
drh8b727472009-01-19 18:18:40 +000014990 case $ac_file$ac_mode in
14991 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000014992
14993 # See if we are running on zsh, and set the options which allow our
14994 # commands through without removal of \ escapes.
14995 if test -n "${ZSH_VERSION+set}" ; then
14996 setopt NO_GLOB_SUBST
14997 fi
14998
14999 cfgfile="${ofile}T"
15000 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15001 $RM "$cfgfile"
15002
15003 cat <<_LT_EOF >> "$cfgfile"
15004#! $SHELL
15005
15006# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15007# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15009# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15010#
15011# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15012# 2006, 2007, 2008 Free Software Foundation, Inc.
15013# Written by Gordon Matzigkeit, 1996
15014#
15015# This file is part of GNU Libtool.
15016#
15017# GNU Libtool is free software; you can redistribute it and/or
15018# modify it under the terms of the GNU General Public License as
15019# published by the Free Software Foundation; either version 2 of
15020# the License, or (at your option) any later version.
15021#
15022# As a special exception to the GNU General Public License,
15023# if you distribute this file as part of a program or library that
15024# is built using GNU Libtool, you may include this file under the
15025# same distribution terms that you use for the rest of that program.
15026#
15027# GNU Libtool is distributed in the hope that it will be useful,
15028# but WITHOUT ANY WARRANTY; without even the implied warranty of
15029# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15030# GNU General Public License for more details.
15031#
15032# You should have received a copy of the GNU General Public License
15033# along with GNU Libtool; see the file COPYING. If not, a copy
15034# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15035# obtained by writing to the Free Software Foundation, Inc.,
15036# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15037
15038
15039# The names of the tagged configurations supported by this script.
15040available_tags=""
15041
15042# ### BEGIN LIBTOOL CONFIG
15043
15044# Which release of libtool.m4 was used?
15045macro_version=$macro_version
15046macro_revision=$macro_revision
15047
15048# Whether or not to build shared libraries.
15049build_libtool_libs=$enable_shared
15050
15051# Whether or not to build static libraries.
15052build_old_libs=$enable_static
15053
15054# What type of objects to build.
15055pic_mode=$pic_mode
15056
15057# Whether or not to optimize for fast installation.
15058fast_install=$enable_fast_install
15059
15060# The host system.
15061host_alias=$host_alias
15062host=$host
15063host_os=$host_os
15064
15065# The build system.
15066build_alias=$build_alias
15067build=$build
15068build_os=$build_os
15069
15070# A sed program that does not truncate output.
15071SED=$lt_SED
15072
15073# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15074Xsed="\$SED -e 1s/^X//"
15075
15076# A grep program that handles long lines.
15077GREP=$lt_GREP
15078
15079# An ERE matcher.
15080EGREP=$lt_EGREP
15081
15082# A literal string matcher.
15083FGREP=$lt_FGREP
15084
15085# A BSD- or MS-compatible name lister.
15086NM=$lt_NM
15087
15088# Whether we need soft or hard links.
15089LN_S=$lt_LN_S
15090
15091# What is the maximum length of a command?
15092max_cmd_len=$max_cmd_len
15093
15094# Object file suffix (normally "o").
15095objext=$ac_objext
15096
15097# Executable file suffix (normally "").
15098exeext=$exeext
15099
15100# whether the shell understands "unset".
15101lt_unset=$lt_unset
15102
15103# turn spaces into newlines.
15104SP2NL=$lt_lt_SP2NL
15105
15106# turn newlines into spaces.
15107NL2SP=$lt_lt_NL2SP
15108
15109# How to create reloadable object files.
15110reload_flag=$lt_reload_flag
15111reload_cmds=$lt_reload_cmds
15112
vapier6acb2cf2009-01-28 04:46:28 +000015113# An object symbol dumper.
15114OBJDUMP=$lt_OBJDUMP
15115
mlcreech636a9952008-05-05 22:52:56 +000015116# Method to check whether dependent libraries are shared objects.
15117deplibs_check_method=$lt_deplibs_check_method
15118
15119# Command to use when deplibs_check_method == "file_magic".
15120file_magic_cmd=$lt_file_magic_cmd
15121
15122# The archiver.
15123AR=$lt_AR
15124AR_FLAGS=$lt_AR_FLAGS
15125
15126# A symbol stripping program.
15127STRIP=$lt_STRIP
15128
15129# Commands used to install an old-style archive.
15130RANLIB=$lt_RANLIB
15131old_postinstall_cmds=$lt_old_postinstall_cmds
15132old_postuninstall_cmds=$lt_old_postuninstall_cmds
15133
15134# A C compiler.
15135LTCC=$lt_CC
15136
15137# LTCC compiler flags.
15138LTCFLAGS=$lt_CFLAGS
15139
15140# Take the output of nm and produce a listing of raw symbols and C names.
15141global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15142
15143# Transform the output of nm in a proper C declaration.
15144global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15145
15146# Transform the output of nm in a C name address pair.
15147global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15148
15149# Transform the output of nm in a C name address pair when lib prefix is needed.
15150global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15151
15152# The name of the directory that contains temporary libtool files.
15153objdir=$objdir
15154
15155# Shell to use when invoking shell scripts.
15156SHELL=$lt_SHELL
15157
15158# An echo program that does not interpret backslashes.
15159ECHO=$lt_ECHO
15160
15161# Used to examine libraries when file_magic_cmd begins with "file".
15162MAGIC_CMD=$MAGIC_CMD
15163
15164# Must we lock files when doing compilation?
15165need_locks=$lt_need_locks
15166
15167# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15168DSYMUTIL=$lt_DSYMUTIL
15169
15170# Tool to change global to local symbols on Mac OS X.
15171NMEDIT=$lt_NMEDIT
15172
15173# Tool to manipulate fat objects and archives on Mac OS X.
15174LIPO=$lt_LIPO
15175
15176# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15177OTOOL=$lt_OTOOL
15178
15179# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15180OTOOL64=$lt_OTOOL64
15181
15182# Old archive suffix (normally "a").
15183libext=$libext
15184
15185# Shared library suffix (normally ".so").
15186shrext_cmds=$lt_shrext_cmds
15187
15188# The commands to extract the exported symbol list from a shared archive.
15189extract_expsyms_cmds=$lt_extract_expsyms_cmds
15190
15191# Variables whose values should be saved in libtool wrapper scripts and
15192# restored at link time.
15193variables_saved_for_relink=$lt_variables_saved_for_relink
15194
15195# Do we need the "lib" prefix for modules?
15196need_lib_prefix=$need_lib_prefix
15197
15198# Do we need a version for libraries?
15199need_version=$need_version
15200
15201# Library versioning type.
15202version_type=$version_type
15203
15204# Shared library runtime path variable.
15205runpath_var=$runpath_var
15206
15207# Shared library path variable.
15208shlibpath_var=$shlibpath_var
15209
15210# Is shlibpath searched before the hard-coded library search path?
15211shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15212
15213# Format of library name prefix.
15214libname_spec=$lt_libname_spec
15215
15216# List of archive names. First name is the real one, the rest are links.
15217# The last name is the one that the linker finds with -lNAME
15218library_names_spec=$lt_library_names_spec
15219
15220# The coded name of the library, if different from the real name.
15221soname_spec=$lt_soname_spec
15222
15223# Command to use after installation of a shared archive.
15224postinstall_cmds=$lt_postinstall_cmds
15225
15226# Command to use after uninstallation of a shared archive.
15227postuninstall_cmds=$lt_postuninstall_cmds
15228
15229# Commands used to finish a libtool library installation in a directory.
15230finish_cmds=$lt_finish_cmds
15231
15232# As "finish_cmds", except a single script fragment to be evaled but
15233# not shown.
15234finish_eval=$lt_finish_eval
15235
15236# Whether we should hardcode library paths into libraries.
15237hardcode_into_libs=$hardcode_into_libs
15238
15239# Compile-time system search path for libraries.
15240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15241
15242# Run-time system search path for libraries.
15243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15244
15245# Whether dlopen is supported.
15246dlopen_support=$enable_dlopen
15247
15248# Whether dlopen of programs is supported.
15249dlopen_self=$enable_dlopen_self
15250
15251# Whether dlopen of statically linked programs is supported.
15252dlopen_self_static=$enable_dlopen_self_static
15253
15254# Commands to strip libraries.
15255old_striplib=$lt_old_striplib
15256striplib=$lt_striplib
15257
15258
15259# The linker used to build libraries.
15260LD=$lt_LD
15261
15262# Commands used to build an old-style archive.
15263old_archive_cmds=$lt_old_archive_cmds
15264
15265# A language specific compiler.
15266CC=$lt_compiler
15267
15268# Is the compiler the GNU compiler?
15269with_gcc=$GCC
15270
15271# Compiler flag to turn off builtin functions.
15272no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15273
15274# How to pass a linker flag through the compiler.
15275wl=$lt_lt_prog_compiler_wl
15276
15277# Additional compiler flags for building library objects.
15278pic_flag=$lt_lt_prog_compiler_pic
15279
15280# Compiler flag to prevent dynamic linking.
15281link_static_flag=$lt_lt_prog_compiler_static
15282
15283# Does compiler simultaneously support -c and -o options?
15284compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15285
15286# Whether or not to add -lc for building shared libraries.
15287build_libtool_need_lc=$archive_cmds_need_lc
15288
15289# Whether or not to disallow shared libs when runtime libs are static.
15290allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15291
15292# Compiler flag to allow reflexive dlopens.
15293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15294
15295# Compiler flag to generate shared objects directly from archives.
15296whole_archive_flag_spec=$lt_whole_archive_flag_spec
15297
15298# Whether the compiler copes with passing no objects directly.
15299compiler_needs_object=$lt_compiler_needs_object
15300
15301# Create an old-style archive from a shared archive.
15302old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15303
15304# Create a temporary old-style archive to link instead of a shared archive.
15305old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15306
15307# Commands used to build a shared archive.
15308archive_cmds=$lt_archive_cmds
15309archive_expsym_cmds=$lt_archive_expsym_cmds
15310
15311# Commands used to build a loadable module if different from building
15312# a shared archive.
15313module_cmds=$lt_module_cmds
15314module_expsym_cmds=$lt_module_expsym_cmds
15315
15316# Whether we are building with GNU ld or not.
15317with_gnu_ld=$lt_with_gnu_ld
15318
15319# Flag that allows shared libraries with undefined symbols to be built.
15320allow_undefined_flag=$lt_allow_undefined_flag
15321
15322# Flag that enforces no undefined symbols.
15323no_undefined_flag=$lt_no_undefined_flag
15324
15325# Flag to hardcode \$libdir into a binary during linking.
15326# This must work even if \$libdir does not exist
15327hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15328
15329# If ld is used when linking, flag to hardcode \$libdir into a binary
15330# during linking. This must work even if \$libdir does not exist.
15331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15332
15333# Whether we need a single "-rpath" flag with a separated argument.
15334hardcode_libdir_separator=$lt_hardcode_libdir_separator
15335
15336# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15337# DIR into the resulting binary.
15338hardcode_direct=$hardcode_direct
15339
15340# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15341# DIR into the resulting binary and the resulting library dependency is
15342# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15343# library is relocated.
15344hardcode_direct_absolute=$hardcode_direct_absolute
15345
15346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15347# into the resulting binary.
15348hardcode_minus_L=$hardcode_minus_L
15349
15350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15351# into the resulting binary.
15352hardcode_shlibpath_var=$hardcode_shlibpath_var
15353
15354# Set to "yes" if building a shared library automatically hardcodes DIR
15355# into the library and all subsequent libraries and executables linked
15356# against it.
15357hardcode_automatic=$hardcode_automatic
15358
15359# Set to yes if linker adds runtime paths of dependent libraries
15360# to runtime path list.
15361inherit_rpath=$inherit_rpath
15362
15363# Whether libtool must link a program against all its dependency libraries.
15364link_all_deplibs=$link_all_deplibs
15365
15366# Fix the shell variable \$srcfile for the compiler.
15367fix_srcfile_path=$lt_fix_srcfile_path
15368
15369# Set to "yes" if exported symbols are required.
15370always_export_symbols=$always_export_symbols
15371
15372# The commands to list exported symbols.
15373export_symbols_cmds=$lt_export_symbols_cmds
15374
15375# Symbols that should not be listed in the preloaded symbols.
15376exclude_expsyms=$lt_exclude_expsyms
15377
15378# Symbols that must always be exported.
15379include_expsyms=$lt_include_expsyms
15380
15381# Commands necessary for linking programs (against libraries) with templates.
15382prelink_cmds=$lt_prelink_cmds
15383
15384# Specify filename containing input files.
15385file_list_spec=$lt_file_list_spec
15386
15387# How to hardcode a shared library path into an executable.
15388hardcode_action=$hardcode_action
15389
15390# ### END LIBTOOL CONFIG
15391
15392_LT_EOF
15393
15394 case $host_os in
15395 aix3*)
15396 cat <<\_LT_EOF >> "$cfgfile"
15397# AIX sometimes has problems with the GCC collect2 program. For some
15398# reason, if we set the COLLECT_NAMES environment variable, the problems
15399# vanish in a puff of smoke.
15400if test "X${COLLECT_NAMES+set}" != Xset; then
15401 COLLECT_NAMES=
15402 export COLLECT_NAMES
15403fi
15404_LT_EOF
15405 ;;
15406 esac
15407
15408
15409ltmain="$ac_aux_dir/ltmain.sh"
15410
15411
15412 # We use sed instead of cat because bash on DJGPP gets confused if
15413 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15414 # text mode, it properly converts lines to CR/LF. This bash problem
15415 # is reportedly fixed, but why not run on old versions too?
15416 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15417 || (rm -f "$cfgfile"; exit 1)
15418
15419 case $xsi_shell in
15420 yes)
15421 cat << \_LT_EOF >> "$cfgfile"
15422
15423# func_dirname file append nondir_replacement
15424# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15425# otherwise set result to NONDIR_REPLACEMENT.
15426func_dirname ()
15427{
15428 case ${1} in
15429 */*) func_dirname_result="${1%/*}${2}" ;;
15430 * ) func_dirname_result="${3}" ;;
15431 esac
15432}
15433
15434# func_basename file
15435func_basename ()
15436{
15437 func_basename_result="${1##*/}"
15438}
15439
15440# func_dirname_and_basename file append nondir_replacement
15441# perform func_basename and func_dirname in a single function
15442# call:
15443# dirname: Compute the dirname of FILE. If nonempty,
15444# add APPEND to the result, otherwise set result
15445# to NONDIR_REPLACEMENT.
15446# value returned in "$func_dirname_result"
15447# basename: Compute filename of FILE.
15448# value retuned in "$func_basename_result"
15449# Implementation must be kept synchronized with func_dirname
15450# and func_basename. For efficiency, we do not delegate to
15451# those functions but instead duplicate the functionality here.
15452func_dirname_and_basename ()
15453{
15454 case ${1} in
15455 */*) func_dirname_result="${1%/*}${2}" ;;
15456 * ) func_dirname_result="${3}" ;;
15457 esac
15458 func_basename_result="${1##*/}"
15459}
15460
15461# func_stripname prefix suffix name
15462# strip PREFIX and SUFFIX off of NAME.
15463# PREFIX and SUFFIX must not contain globbing or regex special
15464# characters, hashes, percent signs, but SUFFIX may contain a leading
15465# dot (in which case that matches only a dot).
15466func_stripname ()
15467{
15468 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15469 # positional parameters, so assign one to ordinary parameter first.
15470 func_stripname_result=${3}
15471 func_stripname_result=${func_stripname_result#"${1}"}
15472 func_stripname_result=${func_stripname_result%"${2}"}
15473}
15474
15475# func_opt_split
15476func_opt_split ()
15477{
15478 func_opt_split_opt=${1%%=*}
15479 func_opt_split_arg=${1#*=}
15480}
15481
15482# func_lo2o object
15483func_lo2o ()
15484{
15485 case ${1} in
15486 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15487 *) func_lo2o_result=${1} ;;
15488 esac
15489}
15490
15491# func_xform libobj-or-source
15492func_xform ()
15493{
15494 func_xform_result=${1%.*}.lo
15495}
15496
15497# func_arith arithmetic-term...
15498func_arith ()
15499{
15500 func_arith_result=$(( $* ))
15501}
15502
15503# func_len string
15504# STRING may not start with a hyphen.
15505func_len ()
15506{
15507 func_len_result=${#1}
15508}
15509
15510_LT_EOF
15511 ;;
15512 *) # Bourne compatible functions.
15513 cat << \_LT_EOF >> "$cfgfile"
15514
15515# func_dirname file append nondir_replacement
15516# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15517# otherwise set result to NONDIR_REPLACEMENT.
15518func_dirname ()
15519{
15520 # Extract subdirectory from the argument.
15521 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15522 if test "X$func_dirname_result" = "X${1}"; then
15523 func_dirname_result="${3}"
15524 else
15525 func_dirname_result="$func_dirname_result${2}"
15526 fi
15527}
15528
15529# func_basename file
15530func_basename ()
15531{
15532 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15533}
15534
15535
15536# func_stripname prefix suffix name
15537# strip PREFIX and SUFFIX off of NAME.
15538# PREFIX and SUFFIX must not contain globbing or regex special
15539# characters, hashes, percent signs, but SUFFIX may contain a leading
15540# dot (in which case that matches only a dot).
15541# func_strip_suffix prefix name
15542func_stripname ()
15543{
15544 case ${2} in
15545 .*) func_stripname_result=`$ECHO "X${3}" \
15546 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15547 *) func_stripname_result=`$ECHO "X${3}" \
15548 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15549 esac
15550}
15551
15552# sed scripts:
15553my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15554my_sed_long_arg='1s/^-[^=]*=//'
15555
15556# func_opt_split
15557func_opt_split ()
15558{
15559 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15560 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15561}
15562
15563# func_lo2o object
15564func_lo2o ()
15565{
15566 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15567}
15568
15569# func_xform libobj-or-source
15570func_xform ()
15571{
15572 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15573}
15574
15575# func_arith arithmetic-term...
15576func_arith ()
15577{
15578 func_arith_result=`expr "$@"`
15579}
15580
15581# func_len string
15582# STRING may not start with a hyphen.
15583func_len ()
15584{
15585 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15586}
15587
15588_LT_EOF
15589esac
15590
15591case $lt_shell_append in
15592 yes)
15593 cat << \_LT_EOF >> "$cfgfile"
15594
15595# func_append var value
15596# Append VALUE to the end of shell variable VAR.
15597func_append ()
15598{
15599 eval "$1+=\$2"
15600}
15601_LT_EOF
15602 ;;
15603 *)
15604 cat << \_LT_EOF >> "$cfgfile"
15605
15606# func_append var value
15607# Append VALUE to the end of shell variable VAR.
15608func_append ()
15609{
15610 eval "$1=\$$1\$2"
15611}
15612
15613_LT_EOF
15614 ;;
15615 esac
15616
15617
15618 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15619 || (rm -f "$cfgfile"; exit 1)
15620
15621 mv -f "$cfgfile" "$ofile" ||
15622 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15623 chmod +x "$ofile"
15624
15625 ;;
mlcreech94984912008-03-04 19:03:08 +000015626
drh8b727472009-01-19 18:18:40 +000015627 esac
15628done # for ac_tag
15629
drh71eb93e2001-09-28 01:34:43 +000015630
15631{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015632_ACEOF
drh75897232000-05-29 14:26:00 +000015633chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015634ac_clean_files=$ac_clean_files_save
15635
drh8b727472009-01-19 18:18:40 +000015636test $ac_write_fail = 0 ||
15637 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15638$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15639 { (exit 1); exit 1; }; }
15640
a.rottmann84e63352003-03-24 09:42:16 +000015641
drh71eb93e2001-09-28 01:34:43 +000015642# configure is writing to config.log, and then calls config.status.
15643# config.status does its own redirection, appending to config.log.
15644# Unfortunately, on DOS this fails, as config.log is still kept open
15645# by configure, so config.status won't be able to write to it; its
15646# output is simply discarded. So we exec the FD to /dev/null,
15647# effectively closing config.log, so it can be properly (re)opened and
15648# appended to by config.status. When coming back to configure, we
15649# need to make the FD available again.
15650if test "$no_create" != yes; then
15651 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015652 ac_config_status_args=
15653 test "$silent" = yes &&
15654 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015655 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015657 exec 5>>config.log
15658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15659 # would make configure fail if this is the last instruction.
15660 $ac_cs_success || { (exit 1); exit 1; }
15661fi
drh8b727472009-01-19 18:18:40 +000015662if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh934c5442009-04-13 09:09:24 +000015663 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15664$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015665fi
drhbc7a22d2009-10-13 22:47:13 +000015666