blob: 36eea7f6cfd6cacb364a701fdd618cca8be7be81 [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.
vapier051cd802009-03-31 23:29:15 +00003# Generated by GNU Autoconf 2.63 for sqlite 3.6.12.
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. ##
11## --------------------- ##
12
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'
vapier051cd802009-03-31 23:29:15 +0000746PACKAGE_VERSION='3.6.12'
747PACKAGE_STRING='sqlite 3.6.12'
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
vapier6acb2cf2009-01-28 04:46:28 +0000786ac_subst_vars='LTLIBOBJS
drh8b727472009-01-19 18:18:40 +0000787LIBOBJS
vapier6acb2cf2009-01-28 04:46:28 +0000788BUILD_CFLAGS
789USE_GCOV
790OPT_FEATURE_FLAGS
791USE_AMALGAMATION
792TARGET_DEBUG
793TARGET_HAVE_READLINE
794TARGET_READLINE_INC
795TARGET_READLINE_LIBS
796HAVE_TCL
797TCL_STUB_LIB_SPEC
798TCL_STUB_LIB_FLAG
799TCL_STUB_LIB_FILE
800TCL_LIB_SPEC
801TCL_LIB_FLAG
802TCL_LIB_FILE
803TCL_INCLUDE_SPEC
804TCL_LIBS
805TCL_SRC_DIR
806TCL_BIN_DIR
807TCL_VERSION
808TARGET_EXEEXT
809SQLITE_OS_OS2
810SQLITE_OS_WIN
811SQLITE_OS_UNIX
812BUILD_EXEEXT
813TEMP_STORE
814ALLOWRELEASE
815THREADSOVERRIDELOCKS
816XTHREADCONNECT
817SQLITE_THREADSAFE
818BUILD_CC
819VERSION_NUMBER
820RELEASE
821VERSION
822program_prefix
823TCLLIBDIR
824TCLSH_CMD
825AWK
826INSTALL_DATA
827INSTALL_SCRIPT
828INSTALL_PROGRAM
829CPP
830OTOOL64
831OTOOL
832LIPO
833NMEDIT
834DSYMUTIL
835lt_ECHO
836RANLIB
837STRIP
838AR
839OBJDUMP
840LN_S
841NM
842ac_ct_DUMPBIN
843DUMPBIN
844LD
845FGREP
846EGREP
847GREP
848SED
849OBJEXT
850EXEEXT
851ac_ct_CC
852CPPFLAGS
853LDFLAGS
854CFLAGS
855CC
856host_os
857host_vendor
858host_cpu
859host
860build_os
861build_vendor
862build_cpu
863build
864LIBTOOL
865target_alias
866host_alias
867build_alias
868LIBS
869ECHO_T
870ECHO_N
871ECHO_C
872DEFS
873mandir
874localedir
875libdir
876psdir
877pdfdir
878dvidir
879htmldir
880infodir
881docdir
882oldincludedir
883includedir
884localstatedir
885sharedstatedir
886sysconfdir
887datadir
888datarootdir
889libexecdir
890sbindir
891bindir
892program_transform_name
893prefix
894exec_prefix
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000902ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000903ac_user_opts='
904enable_option_checking
905enable_shared
906enable_static
907with_pic
908enable_fast_install
909with_gnu_ld
910enable_libtool_lock
911enable_largefile
912with_hints
913enable_threadsafe
914enable_cross_thread_connections
915enable_threads_override_locks
916enable_releasemode
917enable_tempstore
918enable_tcl
919with_tcl
920enable_readline
921with_readline_lib
922with_readline_inc
923enable_debug
924enable_amalgamation
925enable_load_extension
926enable_gcov
927'
928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000936CPP
937TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000938
drh75897232000-05-29 14:26:00 +0000939
940# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000941ac_init_help=
942ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000943ac_unrecognized_opts=
944ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000945# The variables have the same names as the options, with
946# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000947cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000948exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000949no_create=
drh75897232000-05-29 14:26:00 +0000950no_recursion=
951prefix=NONE
952program_prefix=NONE
953program_suffix=NONE
954program_transform_name=s,x,x,
955silent=
956site=
957srcdir=
drh75897232000-05-29 14:26:00 +0000958verbose=
959x_includes=NONE
960x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000961
962# Installation directory options.
963# These are left unexpanded so users can "make install exec_prefix=/foo"
964# and all the variables that are supposed to be based on exec_prefix
965# by default will actually change.
966# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000967# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000968bindir='${exec_prefix}/bin'
969sbindir='${exec_prefix}/sbin'
970libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000971datarootdir='${prefix}/share'
972datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000973sysconfdir='${prefix}/etc'
974sharedstatedir='${prefix}/com'
975localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000976includedir='${prefix}/include'
977oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979infodir='${datarootdir}/info'
980htmldir='${docdir}'
981dvidir='${docdir}'
982pdfdir='${docdir}'
983psdir='${docdir}'
984libdir='${exec_prefix}/lib'
985localedir='${datarootdir}/locale'
986mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000987
drh75897232000-05-29 14:26:00 +0000988ac_prev=
drh8b727472009-01-19 18:18:40 +0000989ac_dashdash=
drh75897232000-05-29 14:26:00 +0000990for ac_option
991do
drh75897232000-05-29 14:26:00 +0000992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000994 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000995 ac_prev=
996 continue
997 fi
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
drh75897232000-05-29 14:26:00 +00001003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
drh8b727472009-01-19 18:18:40 +00001006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001013 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
1015 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001016 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001018 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001029
drh8b727472009-01-19 18:18:40 +00001030 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001031 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001033 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001034
drh8b727472009-01-19 18:18:40 +00001035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
drh75897232000-05-29 14:26:00 +00001042 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001044 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001047 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001068
1069 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001071 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001074 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079"enable_$ac_useropt"
1080"*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001083 esac
drh8b727472009-01-19 18:18:40 +00001084 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001093 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
drh71eb93e2001-09-28 01:34:43 +00001099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001105
1106 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001107 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001108 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001109 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
drh8b727472009-01-19 18:18:40 +00001111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
drh75897232000-05-29 14:26:00 +00001117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001122 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001127 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001132 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001139 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001140
drh8b727472009-01-19 18:18:40 +00001141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
drh75897232000-05-29 14:26:00 +00001146 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001147 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001151 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001156 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001163 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001177 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001182 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001189 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001196 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001213 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001214
drh8b727472009-01-19 18:18:40 +00001215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
drh75897232000-05-29 14:26:00 +00001225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001233 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001244 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001249 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001254 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001261 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001264 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001266 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
drh71eb93e2001-09-28 01:34:43 +00001271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001273
1274 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001276 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001279 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001288 esac
drh8b727472009-01-19 18:18:40 +00001289 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001290
1291 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001293 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
drh71eb93e2001-09-28 01:34:43 +00001296 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001317 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001324 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001325
drh8b727472009-01-19 18:18:40 +00001326 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
drh71eb93e2001-09-28 01:34:43 +00001327Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001329 ;;
1330
drh71eb93e2001-09-28 01:34:43 +00001331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001335 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
drh71eb93e2001-09-28 01:34:43 +00001336 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001337 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001338 export $ac_envvar ;;
1339
drh75897232000-05-29 14:26:00 +00001340 *)
drh71eb93e2001-09-28 01:34:43 +00001341 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh8b727472009-01-19 18:18:40 +00001353 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
drh71eb93e2001-09-28 01:34:43 +00001354 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001355fi
1356
drh8b727472009-01-19 18:18:40 +00001357if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
vapier6acb2cf2009-01-28 04:46:28 +00001360 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
drh8b727472009-01-19 18:18:40 +00001361 { (exit 1); exit 1; }; } ;;
vapier6acb2cf2009-01-28 04:46:28 +00001362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001363 esac
drh8b727472009-01-19 18:18:40 +00001364fi
drh866108f2008-05-13 00:57:21 +00001365
drh8b727472009-01-19 18:18:40 +00001366# Check all directory arguments for consistency.
1367for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001371do
drh8b727472009-01-19 18:18:40 +00001372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001374 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001378 esac
drh8b727472009-01-19 18:18:40 +00001379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001386done
drh75897232000-05-29 14:26:00 +00001387
drh71eb93e2001-09-28 01:34:43 +00001388# There might be people who depend on the old broken behavior: `$host'
1389# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001390# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001391build=$build_alias
1392host=$host_alias
1393target=$target_alias
drh75897232000-05-29 14:26:00 +00001394
a.rottmann84e63352003-03-24 09:42:16 +00001395# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001396if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
drh8b727472009-01-19 18:18:40 +00001399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
drh71eb93e2001-09-28 01:34:43 +00001400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001410
a.rottmann84e63352003-03-24 09:42:16 +00001411
drh8b727472009-01-19 18:18:40 +00001412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
vapier6acb2cf2009-01-28 04:46:28 +00001415 { $as_echo "$as_me: error: working directory cannot be determined" >&2
drh8b727472009-01-19 18:18:40 +00001416 { (exit 1); exit 1; }; }
1417test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419 { (exit 1); exit 1; }; }
1420
1421
drh75897232000-05-29 14:26:00 +00001422# Find the source files, if location was not specified.
1423if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431$as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001449 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001450 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001451 srcdir=..
1452 fi
1453else
1454 ac_srcdir_defaulted=no
1455fi
drh8b727472009-01-19 18:18:40 +00001456if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
drh71eb93e2001-09-28 01:34:43 +00001459 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001460fi
drh8b727472009-01-19 18:18:40 +00001461ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
drh866108f2008-05-13 00:57:21 +00001464 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001465 pwd)`
1466# When building in place, set srcdir=.
1467if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469fi
1470# Remove unnecessary trailing slashes from srcdir.
1471# Double slashes in file names in object file debugging info
1472# mess up M-x gdb in Emacs.
1473case $srcdir in
1474*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475esac
1476for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481done
drh75897232000-05-29 14:26:00 +00001482
drh71eb93e2001-09-28 01:34:43 +00001483#
1484# Report the --help message.
1485#
1486if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001489 cat <<_ACEOF
vapier051cd802009-03-31 23:29:15 +00001490\`configure' configures sqlite 3.6.12 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001491
1492Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497Defaults for the options are specified in brackets.
1498
1499Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
drh71eb93e2001-09-28 01:34:43 +00001510Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001512 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001514 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001515
1516By default, \`make install' will install all the files in
1517\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519for instance \`--prefix=\$HOME'.
1520
1521For better control, use the options below.
1522
1523Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001543_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001544
a.rottmann84e63352003-03-24 09:42:16 +00001545 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001546
1547System types:
1548 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001551fi
1552
1553if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001554 case $ac_init_help in
vapier051cd802009-03-31 23:29:15 +00001555 short | recursive ) echo "Configuration of sqlite 3.6.12:";;
mlcreechb87057f2008-03-06 07:19:20 +00001556 esac
a.rottmann84e63352003-03-24 09:42:16 +00001557 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001558
1559Optional Features:
drh8b727472009-01-19 18:18:40 +00001560 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001568 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001569 --enable-threadsafe Support threadsafe operation
1570 --enable-cross-thread-connections
1571 Allow connection sharing across threads
1572 --enable-threads-override-locks
1573 Threads can override each others locks
1574 --enable-releasemode Support libtool link to release mode
1575 --enable-tempstore Use an in-ram database for temporary tables
1576 (never,no,yes,always)
1577 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001578 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001579 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001580 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001581 separately
mlcreecha4edab02008-03-06 04:14:17 +00001582 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001583 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
mlcreech636a9952008-05-05 22:52:56 +00001590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001591 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001592 --with-tcl=DIR directory containing tcl configuration
1593 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001594 --with-readline-lib specify readline library
1595 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001596
1597Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001605 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001606 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
a.rottmann84e63352003-03-24 09:42:16 +00001611_ACEOF
drh8b727472009-01-19 18:18:40 +00001612ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
a.rottmann84e63352003-03-24 09:42:16 +00001621 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001622
drh8b727472009-01-19 18:18:40 +00001623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001638
a.rottmann84e63352003-03-24 09:42:16 +00001639case $srcdir in
drh8b727472009-01-19 18:18:40 +00001640 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001641 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001645 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001652esac
drh8b727472009-01-19 18:18:40 +00001653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001654
drh8b727472009-01-19 18:18:40 +00001655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001663 else
drh8b727472009-01-19 18:18:40 +00001664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001667 done
1668fi
1669
drh8b727472009-01-19 18:18:40 +00001670test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001671if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001672 cat <<\_ACEOF
vapier051cd802009-03-31 23:29:15 +00001673sqlite configure 3.6.12
vapier6acb2cf2009-01-28 04:46:28 +00001674generated by GNU Autoconf 2.63
drh71eb93e2001-09-28 01:34:43 +00001675
drh8b727472009-01-19 18:18:40 +00001676Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16772002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001678This configure script is free software; the Free Software Foundation
1679gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001680_ACEOF
drh8b727472009-01-19 18:18:40 +00001681 exit
drh71eb93e2001-09-28 01:34:43 +00001682fi
drh8b727472009-01-19 18:18:40 +00001683cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
vapier051cd802009-03-31 23:29:15 +00001687It was created by sqlite $as_me 3.6.12, which was
vapier6acb2cf2009-01-28 04:46:28 +00001688generated by GNU Autoconf 2.63. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001689
1690 $ $0 $@
1691
a.rottmann84e63352003-03-24 09:42:16 +00001692_ACEOF
drh8b727472009-01-19 18:18:40 +00001693exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001694{
1695cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001696## --------- ##
1697## Platform. ##
1698## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708
1709/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001712/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001713/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716
drh71eb93e2001-09-28 01:34:43 +00001717_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00001724 $as_echo "PATH: $as_dir"
a.rottmann84e63352003-03-24 09:42:16 +00001725done
drh8b727472009-01-19 18:18:40 +00001726IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001727
drh71eb93e2001-09-28 01:34:43 +00001728} >&5
1729
a.rottmann84e63352003-03-24 09:42:16 +00001730cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001731
a.rottmann84e63352003-03-24 09:42:16 +00001732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
drh71eb93e2001-09-28 01:34:43 +00001739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001742# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001743# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001744# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001745ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001746ac_configure_args0=
1747ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001748ac_must_keep_next=false
1749for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001750do
a.rottmann84e63352003-03-24 09:42:16 +00001751 for ac_arg
1752 do
1753 case $ac_arg in
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1757 continue ;;
drh8b727472009-01-19 18:18:40 +00001758 *\'*)
1759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001760 esac
1761 case $ac_pass in
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 2)
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001766 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001767 else
a.rottmann964dbb12004-02-26 19:47:42 +00001768 case $ac_arg in
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775 esac
1776 ;;
1777 -* ) ac_must_keep_next=true ;;
1778 esac
a.rottmann84e63352003-03-24 09:42:16 +00001779 fi
drh8b727472009-01-19 18:18:40 +00001780 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001781 ;;
1782 esac
1783 done
drh71eb93e2001-09-28 01:34:43 +00001784done
a.rottmann84e63352003-03-24 09:42:16 +00001785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log. We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001793trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001795 {
1796 echo
1797
1798 cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803 echo
1804 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001805(
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in #(
1809 *${as_nl}*)
1810 case $ac_var in #(
vapier6acb2cf2009-01-28 04:46:28 +00001811 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1812$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001813 esac
1814 case $ac_var in #(
1815 _ | IFS | as_nl) ;; #(
1816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1817 *) $as_unset $ac_var ;;
1818 esac ;;
1819 esac
1820 done
drh71eb93e2001-09-28 01:34:43 +00001821 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1823 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001824 sed -n \
drh8b727472009-01-19 18:18:40 +00001825 "s/'\''/'\''\\\\'\'''\''/g;
1826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1827 ;; #(
drh866108f2008-05-13 00:57:21 +00001828 *)
drh8b727472009-01-19 18:18:40 +00001829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001830 ;;
drh8b727472009-01-19 18:18:40 +00001831 esac |
1832 sort
1833)
a.rottmann84e63352003-03-24 09:42:16 +00001834 echo
1835
1836 cat <<\_ASBOX
1837## ----------------- ##
1838## Output variables. ##
1839## ----------------- ##
1840_ASBOX
1841 echo
1842 for ac_var in $ac_subst_vars
1843 do
drh8b727472009-01-19 18:18:40 +00001844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001849 done | sort
1850 echo
1851
1852 if test -n "$ac_subst_files"; then
1853 cat <<\_ASBOX
drh8b727472009-01-19 18:18:40 +00001854## ------------------- ##
1855## File substitutions. ##
1856## ------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001857_ASBOX
1858 echo
1859 for ac_var in $ac_subst_files
1860 do
drh8b727472009-01-19 18:18:40 +00001861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001866 done | sort
1867 echo
1868 fi
1869
1870 if test -s confdefs.h; then
1871 cat <<\_ASBOX
1872## ----------- ##
1873## confdefs.h. ##
1874## ----------- ##
1875_ASBOX
1876 echo
drh8b727472009-01-19 18:18:40 +00001877 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001878 echo
1879 fi
1880 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001881 $as_echo "$as_me: caught signal $ac_signal"
1882 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001883 } >&5
drh8b727472009-01-19 18:18:40 +00001884 rm -f core *.core core.conftest.* &&
1885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001886 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001887' 0
drh71eb93e2001-09-28 01:34:43 +00001888for ac_signal in 1 2 13 15; do
1889 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1890done
1891ac_signal=0
1892
1893# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001894rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001895
a.rottmann84e63352003-03-24 09:42:16 +00001896# Predefined preprocessor variables.
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_NAME "$PACKAGE_NAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_VERSION "$PACKAGE_VERSION"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_STRING "$PACKAGE_STRING"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1920_ACEOF
1921
1922
drh71eb93e2001-09-28 01:34:43 +00001923# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001924# Prefer an explicitly selected file to automatically selected ones.
1925ac_site_file1=NONE
1926ac_site_file2=NONE
1927if test -n "$CONFIG_SITE"; then
1928 ac_site_file1=$CONFIG_SITE
1929elif test "x$prefix" != xNONE; then
1930 ac_site_file1=$prefix/share/config.site
1931 ac_site_file2=$prefix/etc/config.site
1932else
1933 ac_site_file1=$ac_default_prefix/share/config.site
1934 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001935fi
drh8b727472009-01-19 18:18:40 +00001936for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937do
1938 test "x$ac_site_file" = xNONE && continue
drh75897232000-05-29 14:26:00 +00001939 if test -r "$ac_site_file"; then
drh8b727472009-01-19 18:18:40 +00001940 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001942 sed 's/^/| /' "$ac_site_file" >&5
drh75897232000-05-29 14:26:00 +00001943 . "$ac_site_file"
1944 fi
1945done
1946
1947if test -r "$cache_file"; then
drh71eb93e2001-09-28 01:34:43 +00001948 # Some versions of bash will fail to source /dev/null (special
1949 # files actually), so we avoid doing that.
1950 if test -f "$cache_file"; then
drh8b727472009-01-19 18:18:40 +00001951 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001953 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001954 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001956 esac
1957 fi
drh75897232000-05-29 14:26:00 +00001958else
drh8b727472009-01-19 18:18:40 +00001959 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001961 >$cache_file
1962fi
1963
1964# Check that the precious variables saved in the cache have kept the same
1965# value.
1966ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001967for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001972 case $ac_old_set,$ac_new_set in
1973 set,)
drh8b727472009-01-19 18:18:40 +00001974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001976 ac_cache_corrupted=: ;;
1977 ,set)
drh8b727472009-01-19 18:18:40 +00001978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001980 ac_cache_corrupted=: ;;
1981 ,);;
1982 *)
1983 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001984 # differences in whitespace do not lead to failure.
1985 ac_old_val_w=`echo x $ac_old_val`
1986 ac_new_val_w=`echo x $ac_new_val`
1987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 ac_cache_corrupted=:
1991 else
1992 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1993$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1994 eval $ac_var=\$ac_old_val
1995 fi
1996 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1997$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1998 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1999$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002000 fi;;
2001 esac
a.rottmann84e63352003-03-24 09:42:16 +00002002 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002005 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002011 esac
2012 fi
2013done
2014if $ac_cache_corrupted; then
vapier6acb2cf2009-01-28 04:46:28 +00002015 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002017 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2018$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2019 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2020$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002021 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002022fi
2023
drh8b727472009-01-19 18:18:40 +00002024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
drh75897232000-05-29 14:26:00 +00002048ac_ext=c
drh75897232000-05-29 14:26:00 +00002049ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002053
a.rottmann84e63352003-03-24 09:42:16 +00002054
2055
vapierfaa68db2009-04-01 07:38:31 +00002056sqlite_version_sanity_check=`cat VERSION | tr -d '\n'`
2057if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2058{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2059 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2060 top level VERSION file = $sqlite_version_sanity_check
2061please regen with autoconf" >&5
2062$as_echo "$as_me: error: configure script is out of date:
2063 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2064 top level VERSION file = $sqlite_version_sanity_check
2065please regen with autoconf" >&2;}
2066 { (exit 1); exit 1; }; }
2067fi
2068
drh75897232000-05-29 14:26:00 +00002069# The following RCS revision string applies to configure.in
vapierfaa68db2009-04-01 07:38:31 +00002070# $Revision: 1.70 $
drh75897232000-05-29 14:26:00 +00002071
2072#########
drh71eb93e2001-09-28 01:34:43 +00002073# Programs needed
drh75897232000-05-29 14:26:00 +00002074#
mlcreech636a9952008-05-05 22:52:56 +00002075case `pwd` in
2076 *\ * | *\ *)
drh8b727472009-01-19 18:18:40 +00002077 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2078$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002079esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002080
mlcreech94984912008-03-04 19:03:08 +00002081
mlcreech636a9952008-05-05 22:52:56 +00002082
vapier6acb2cf2009-01-28 04:46:28 +00002083macro_version='2.2.6'
2084macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002085
mlcreech94984912008-03-04 19:03:08 +00002086
mlcreech94984912008-03-04 19:03:08 +00002087
a.rottmann9bc8b932004-02-29 15:18:31 +00002088
mlcreech636a9952008-05-05 22:52:56 +00002089
2090
2091
2092
2093
2094
2095
2096
2097
2098ltmain="$ac_aux_dir/ltmain.sh"
2099
drh71eb93e2001-09-28 01:34:43 +00002100ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002101for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2102 if test -f "$ac_dir/install-sh"; then
drh71eb93e2001-09-28 01:34:43 +00002103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install-sh -c"
2105 break
drh8b727472009-01-19 18:18:40 +00002106 elif test -f "$ac_dir/install.sh"; then
drh71eb93e2001-09-28 01:34:43 +00002107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/install.sh -c"
2109 break
drh8b727472009-01-19 18:18:40 +00002110 elif test -f "$ac_dir/shtool"; then
drh71eb93e2001-09-28 01:34:43 +00002111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/shtool install -c"
2113 break
2114 fi
2115done
2116if test -z "$ac_aux_dir"; then
drh8b727472009-01-19 18:18:40 +00002117 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2118$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002119 { (exit 1); exit 1; }; }
2120fi
drh8b727472009-01-19 18:18:40 +00002121
2122# These three variables are undocumented and unsupported,
2123# and are intended to be withdrawn in a future Autoconf release.
2124# They can cause serious problems if a builder's source tree is in a directory
2125# whose full name contains unusual characters.
2126ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2127ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2128ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2129
drh71eb93e2001-09-28 01:34:43 +00002130
2131# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002132$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2133 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2134$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002135 { (exit 1); exit 1; }; }
2136
drh8b727472009-01-19 18:18:40 +00002137{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2138$as_echo_n "checking build system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002139if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002140 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002141else
drh8b727472009-01-19 18:18:40 +00002142 ac_build_alias=$build_alias
2143test "x$ac_build_alias" = x &&
2144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2145test "x$ac_build_alias" = x &&
2146 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2147$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002148 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002149ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2150 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2151$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002152 { (exit 1); exit 1; }; }
2153
2154fi
drh8b727472009-01-19 18:18:40 +00002155{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2156$as_echo "$ac_cv_build" >&6; }
2157case $ac_cv_build in
2158*-*-*) ;;
2159*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2160$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2161 { (exit 1); exit 1; }; };;
2162esac
drh71eb93e2001-09-28 01:34:43 +00002163build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002164ac_save_IFS=$IFS; IFS='-'
2165set x $ac_cv_build
2166shift
2167build_cpu=$1
2168build_vendor=$2
2169shift; shift
2170# Remember, the first character of IFS is used to create $*,
2171# except with old shells:
2172build_os=$*
2173IFS=$ac_save_IFS
2174case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002175
a.rottmann84e63352003-03-24 09:42:16 +00002176
drh8b727472009-01-19 18:18:40 +00002177{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2178$as_echo_n "checking host system type... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002179if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002180 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002181else
drh8b727472009-01-19 18:18:40 +00002182 if test "x$host_alias" = x; then
2183 ac_cv_host=$ac_cv_build
2184else
2185 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2186 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2187$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002188 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002189fi
drh71eb93e2001-09-28 01:34:43 +00002190
2191fi
drh8b727472009-01-19 18:18:40 +00002192{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2193$as_echo "$ac_cv_host" >&6; }
2194case $ac_cv_host in
2195*-*-*) ;;
2196*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2197$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2198 { (exit 1); exit 1; }; };;
2199esac
drh71eb93e2001-09-28 01:34:43 +00002200host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002201ac_save_IFS=$IFS; IFS='-'
2202set x $ac_cv_host
2203shift
2204host_cpu=$1
2205host_vendor=$2
2206shift; shift
2207# Remember, the first character of IFS is used to create $*,
2208# except with old shells:
2209host_os=$*
2210IFS=$ac_save_IFS
2211case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002212
a.rottmann84e63352003-03-24 09:42:16 +00002213
drh71eb93e2001-09-28 01:34:43 +00002214ac_ext=c
2215ac_cpp='$CPP $CPPFLAGS'
2216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218ac_compiler_gnu=$ac_cv_c_compiler_gnu
2219if test -n "$ac_tool_prefix"; then
2220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2221set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002224if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002225 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002226else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229else
a.rottmann84e63352003-03-24 09:42:16 +00002230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002236 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 +00002237 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh8b727472009-01-19 18:18:40 +00002238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002239 break 2
2240 fi
2241done
drh71eb93e2001-09-28 01:34:43 +00002242done
drh8b727472009-01-19 18:18:40 +00002243IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002244
2245fi
2246fi
2247CC=$ac_cv_prog_CC
2248if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2250$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002251else
drh8b727472009-01-19 18:18:40 +00002252 { $as_echo "$as_me:$LINENO: result: no" >&5
2253$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002254fi
2255
drh8b727472009-01-19 18:18:40 +00002256
drh71eb93e2001-09-28 01:34:43 +00002257fi
2258if test -z "$ac_cv_prog_CC"; then
2259 ac_ct_CC=$CC
2260 # Extract the first word of "gcc", so it can be a program name with args.
2261set dummy gcc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002262{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2263$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002264if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002265 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002266else
2267 if test -n "$ac_ct_CC"; then
2268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269else
a.rottmann84e63352003-03-24 09:42:16 +00002270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002276 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 +00002277 ac_cv_prog_ac_ct_CC="gcc"
drh8b727472009-01-19 18:18:40 +00002278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002279 break 2
2280 fi
2281done
drh71eb93e2001-09-28 01:34:43 +00002282done
drh8b727472009-01-19 18:18:40 +00002283IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002284
2285fi
2286fi
2287ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002289 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002291else
drh8b727472009-01-19 18:18:40 +00002292 { $as_echo "$as_me:$LINENO: result: no" >&5
2293$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002294fi
2295
drh8b727472009-01-19 18:18:40 +00002296 if test "x$ac_ct_CC" = x; then
2297 CC=""
2298 else
2299 case $cross_compiling:$ac_tool_warned in
2300yes:)
vapier6acb2cf2009-01-28 04:46:28 +00002301{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002303ac_tool_warned=yes ;;
2304esac
2305 CC=$ac_ct_CC
2306 fi
drh71eb93e2001-09-28 01:34:43 +00002307else
2308 CC="$ac_cv_prog_CC"
2309fi
2310
2311if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002314set dummy ${ac_tool_prefix}cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002317if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002318 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002319else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322else
a.rottmann84e63352003-03-24 09:42:16 +00002323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002329 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 +00002330 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh8b727472009-01-19 18:18:40 +00002331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002332 break 2
2333 fi
2334done
drh71eb93e2001-09-28 01:34:43 +00002335done
drh8b727472009-01-19 18:18:40 +00002336IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002337
2338fi
2339fi
2340CC=$ac_cv_prog_CC
2341if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002342 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2343$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002344else
drh8b727472009-01-19 18:18:40 +00002345 { $as_echo "$as_me:$LINENO: result: no" >&5
2346$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002347fi
2348
drh8b727472009-01-19 18:18:40 +00002349
a.rottmann84e63352003-03-24 09:42:16 +00002350 fi
drh71eb93e2001-09-28 01:34:43 +00002351fi
2352if test -z "$CC"; then
2353 # Extract the first word of "cc", so it can be a program name with args.
2354set dummy cc; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002357if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002358 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002359else
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2362else
2363 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365for as_dir in $PATH
2366do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002370 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 +00002371 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2372 ac_prog_rejected=yes
2373 continue
2374 fi
2375 ac_cv_prog_CC="cc"
drh8b727472009-01-19 18:18:40 +00002376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002377 break 2
2378 fi
2379done
drh71eb93e2001-09-28 01:34:43 +00002380done
drh8b727472009-01-19 18:18:40 +00002381IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002382
2383if test $ac_prog_rejected = yes; then
2384 # We found a bogon in the path, so make sure we never use it.
2385 set dummy $ac_cv_prog_CC
2386 shift
2387 if test $# != 0; then
2388 # We chose a different compiler from the bogus one.
2389 # However, it has the same basename, so the bogon will be chosen
2390 # first if we set CC to just the basename; use the full file name.
2391 shift
a.rottmann84e63352003-03-24 09:42:16 +00002392 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002393 fi
2394fi
2395fi
2396fi
2397CC=$ac_cv_prog_CC
2398if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002399 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2400$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002401else
drh8b727472009-01-19 18:18:40 +00002402 { $as_echo "$as_me:$LINENO: result: no" >&5
2403$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002404fi
2405
drh8b727472009-01-19 18:18:40 +00002406
drh71eb93e2001-09-28 01:34:43 +00002407fi
2408if test -z "$CC"; then
2409 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002410 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002411 do
2412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2413set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002416if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002417 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002418else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421else
a.rottmann84e63352003-03-24 09:42:16 +00002422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002428 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 +00002429 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00002430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002431 break 2
2432 fi
2433done
drh71eb93e2001-09-28 01:34:43 +00002434done
drh8b727472009-01-19 18:18:40 +00002435IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002436
2437fi
2438fi
2439CC=$ac_cv_prog_CC
2440if test -n "$CC"; then
drh8b727472009-01-19 18:18:40 +00002441 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2442$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002443else
drh8b727472009-01-19 18:18:40 +00002444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002446fi
2447
drh8b727472009-01-19 18:18:40 +00002448
drh71eb93e2001-09-28 01:34:43 +00002449 test -n "$CC" && break
2450 done
2451fi
2452if test -z "$CC"; then
2453 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002454 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002455do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00002458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2459$as_echo_n "checking for $ac_word... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002461 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002462else
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465else
a.rottmann84e63352003-03-24 09:42:16 +00002466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002472 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 +00002473 ac_cv_prog_ac_ct_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +00002474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002475 break 2
2476 fi
2477done
drh71eb93e2001-09-28 01:34:43 +00002478done
drh8b727472009-01-19 18:18:40 +00002479IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002480
2481fi
2482fi
2483ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484if test -n "$ac_ct_CC"; then
drh8b727472009-01-19 18:18:40 +00002485 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002487else
drh8b727472009-01-19 18:18:40 +00002488 { $as_echo "$as_me:$LINENO: result: no" >&5
2489$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002490fi
2491
drh8b727472009-01-19 18:18:40 +00002492
drh71eb93e2001-09-28 01:34:43 +00002493 test -n "$ac_ct_CC" && break
2494done
2495
drh8b727472009-01-19 18:18:40 +00002496 if test "x$ac_ct_CC" = x; then
2497 CC=""
2498 else
2499 case $cross_compiling:$ac_tool_warned in
2500yes:)
vapier6acb2cf2009-01-28 04:46:28 +00002501{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002503ac_tool_warned=yes ;;
2504esac
2505 CC=$ac_ct_CC
2506 fi
drh71eb93e2001-09-28 01:34:43 +00002507fi
2508
2509fi
2510
a.rottmann84e63352003-03-24 09:42:16 +00002511
vapier6acb2cf2009-01-28 04:46:28 +00002512test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514{ { $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;}
vapier6acb2cf2009-01-28 04:46:28 +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
vapier6acb2cf2009-01-28 04:46:28 +00002648{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002650{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002651See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002652$as_echo "$as_me: error: C compiler cannot create executables
a.rottmann84e63352003-03-24 09:42:16 +00002653See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002654 { (exit 77); exit 77; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002655fi
2656
2657ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002658
drh8b727472009-01-19 18:18:40 +00002659# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002660# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002661{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2662$as_echo_n "checking whether the C compiler works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002663# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2664# If not cross compiling, check that we can run a simple program.
2665if test "$cross_compiling" != yes; then
2666 if { ac_try='./$ac_file'
drh8b727472009-01-19 18:18:40 +00002667 { (case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
2671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2672$as_echo "$ac_try_echo") >&5
2673 (eval "$ac_try") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002674 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002676 (exit $ac_status); }; }; then
2677 cross_compiling=no
2678 else
2679 if test "$cross_compiling" = maybe; then
2680 cross_compiling=yes
2681 else
vapier6acb2cf2009-01-28 04:46:28 +00002682 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002685If you meant to cross compile, use \`--host'.
2686See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002687$as_echo "$as_me: error: cannot run C compiled programs.
a.rottmann84e63352003-03-24 09:42:16 +00002688If you meant to cross compile, use \`--host'.
2689See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002690 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002691 fi
2692 fi
2693fi
drh8b727472009-01-19 18:18:40 +00002694{ $as_echo "$as_me:$LINENO: result: yes" >&5
2695$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002696
drh8b727472009-01-19 18:18:40 +00002697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002698ac_clean_files=$ac_clean_files_save
drh8b727472009-01-19 18:18:40 +00002699# Check that the compiler produces executables we can run. If not, either
drh71eb93e2001-09-28 01:34:43 +00002700# the compiler is broken, or we cross compile.
drh8b727472009-01-19 18:18:40 +00002701{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702$as_echo_n "checking whether we are cross compiling... " >&6; }
2703{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704$as_echo "$cross_compiling" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002705
drh8b727472009-01-19 18:18:40 +00002706{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707$as_echo_n "checking for suffix of executables... " >&6; }
2708if { (ac_try="$ac_link"
2709case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712esac
2713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714$as_echo "$ac_try_echo") >&5
2715 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002716 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002718 (exit $ac_status); }; then
2719 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2721# work properly (i.e., refer to `conftest.exe'), while it won't with
2722# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002723for ac_file in conftest.exe conftest conftest.*; do
2724 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002725 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002728 break;;
drh71eb93e2001-09-28 01:34:43 +00002729 * ) break;;
2730 esac
2731done
2732else
vapier6acb2cf2009-01-28 04:46:28 +00002733 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002736See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002737$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
a.rottmann84e63352003-03-24 09:42:16 +00002738See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002739 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002740fi
2741
2742rm -f conftest$ac_cv_exeext
drh8b727472009-01-19 18:18:40 +00002743{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2744$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002745
2746rm -f conftest.$ac_ext
2747EXEEXT=$ac_cv_exeext
2748ac_exeext=$EXEEXT
drh8b727472009-01-19 18:18:40 +00002749{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2750$as_echo_n "checking for suffix of object files... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002751if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002752 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002753else
2754 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002755/* confdefs.h. */
2756_ACEOF
2757cat confdefs.h >>conftest.$ac_ext
2758cat >>conftest.$ac_ext <<_ACEOF
2759/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002760
2761int
2762main ()
2763{
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769rm -f conftest.o conftest.obj
drh8b727472009-01-19 18:18:40 +00002770if { (ac_try="$ac_compile"
2771case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774esac
2775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776$as_echo "$ac_try_echo") >&5
2777 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002778 ac_status=$?
drh8b727472009-01-19 18:18:40 +00002779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00002780 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002781 for ac_file in conftest.o conftest.obj conftest.*; do
2782 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002783 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002785 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2786 break;;
2787 esac
2788done
2789else
drh8b727472009-01-19 18:18:40 +00002790 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002791sed 's/^/| /' conftest.$ac_ext >&5
2792
vapier6acb2cf2009-01-28 04:46:28 +00002793{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
drh8b727472009-01-19 18:18:40 +00002795{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002796See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00002797$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
a.rottmann84e63352003-03-24 09:42:16 +00002798See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00002799 { (exit 1); exit 1; }; }; }
drh71eb93e2001-09-28 01:34:43 +00002800fi
2801
2802rm -f conftest.$ac_cv_objext conftest.$ac_ext
2803fi
drh8b727472009-01-19 18:18:40 +00002804{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2805$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002806OBJEXT=$ac_cv_objext
2807ac_objext=$OBJEXT
drh8b727472009-01-19 18:18:40 +00002808{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2809$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002810if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002811 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002812else
2813 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002814/* confdefs.h. */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002819
2820int
2821main ()
2822{
2823#ifndef __GNUC__
2824 choke me
2825#endif
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002832if { (ac_try="$ac_compile"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838$as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002840 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } && {
2846 test -z "$ac_c_werror_flag" ||
2847 test ! -s conftest.err
2848 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002849 ac_compiler_gnu=yes
2850else
drh8b727472009-01-19 18:18:40 +00002851 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002852sed 's/^/| /' conftest.$ac_ext >&5
2853
drh8b727472009-01-19 18:18:40 +00002854 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002855fi
drh8b727472009-01-19 18:18:40 +00002856
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002858ac_cv_c_compiler_gnu=$ac_compiler_gnu
2859
2860fi
drh8b727472009-01-19 18:18:40 +00002861{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2862$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2863if test $ac_compiler_gnu = yes; then
2864 GCC=yes
2865else
2866 GCC=
2867fi
drh71eb93e2001-09-28 01:34:43 +00002868ac_test_CFLAGS=${CFLAGS+set}
2869ac_save_CFLAGS=$CFLAGS
drh8b727472009-01-19 18:18:40 +00002870{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2871$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00002872if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002873 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002874else
drh8b727472009-01-19 18:18:40 +00002875 ac_save_c_werror_flag=$ac_c_werror_flag
2876 ac_c_werror_flag=yes
2877 ac_cv_prog_cc_g=no
2878 CFLAGS="-g"
2879 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002880/* confdefs.h. */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002885
2886int
2887main ()
2888{
2889
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00002895if { (ac_try="$ac_compile"
2896case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899esac
2900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2901$as_echo "$ac_try_echo") >&5
2902 (eval "$ac_compile") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00002903 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00002904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00002907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002912 ac_cv_prog_cc_g=yes
2913else
drh8b727472009-01-19 18:18:40 +00002914 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002915sed 's/^/| /' conftest.$ac_ext >&5
2916
drh8b727472009-01-19 18:18:40 +00002917 CFLAGS=""
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924
2925int
2926main ()
2927{
2928
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (ac_try="$ac_compile"
2935case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938esac
2939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940$as_echo "$ac_try_echo") >&5
2941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
2946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
2951 :
2952else
2953 $as_echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2957 CFLAGS="-g"
2958 cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h. */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h. */
2964
2965int
2966main ()
2967{
2968
2969 ;
2970 return 0;
2971}
2972_ACEOF
2973rm -f conftest.$ac_objext
2974if { (ac_try="$ac_compile"
2975case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978esac
2979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2980$as_echo "$ac_try_echo") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_cv_prog_cc_g=yes
2992else
2993 $as_echo "$as_me: failed program was:" >&5
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
2996
drh71eb93e2001-09-28 01:34:43 +00002997fi
drh8b727472009-01-19 18:18:40 +00002998
2999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003000fi
drh8b727472009-01-19 18:18:40 +00003001
3002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003fi
3004
3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_c_werror_flag=$ac_save_c_werror_flag
3007fi
3008{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3009$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003010if test "$ac_test_CFLAGS" = set; then
3011 CFLAGS=$ac_save_CFLAGS
3012elif test $ac_cv_prog_cc_g = yes; then
3013 if test "$GCC" = yes; then
3014 CFLAGS="-g -O2"
3015 else
3016 CFLAGS="-g"
3017 fi
3018else
3019 if test "$GCC" = yes; then
3020 CFLAGS="-O2"
3021 else
3022 CFLAGS=
3023 fi
3024fi
drh8b727472009-01-19 18:18:40 +00003025{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3026$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3027if test "${ac_cv_prog_cc_c89+set}" = set; then
3028 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003029else
drh8b727472009-01-19 18:18:40 +00003030 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003031ac_save_CC=$CC
3032cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
3038#include <stdarg.h>
3039#include <stdio.h>
3040#include <sys/types.h>
3041#include <sys/stat.h>
3042/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3043struct buf { int x; };
3044FILE * (*rcsopen) (struct buf *, struct stat *, int);
3045static char *e (p, i)
3046 char **p;
3047 int i;
3048{
3049 return p[i];
3050}
3051static char *f (char * (*g) (char **, int), char **p, ...)
3052{
3053 char *s;
3054 va_list v;
3055 va_start (v,p);
3056 s = g (p, va_arg (v,int));
3057 va_end (v);
3058 return s;
3059}
a.rottmann964dbb12004-02-26 19:47:42 +00003060
3061/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3062 function prototypes and stuff, but not '\xHH' hex character constants.
3063 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003064 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003065 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3066 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003067 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003068int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3069
drh8b727472009-01-19 18:18:40 +00003070/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3071 inside strings and character constants. */
3072#define FOO(x) 'x'
3073int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3074
a.rottmann84e63352003-03-24 09:42:16 +00003075int test (int i, double x);
3076struct s1 {int (*f) (int a);};
3077struct s2 {int (*f) (double a);};
3078int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3079int argc;
3080char **argv;
3081int
3082main ()
3083{
3084return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3085 ;
3086 return 0;
3087}
3088_ACEOF
drh8b727472009-01-19 18:18:40 +00003089for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3090 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003091do
3092 CC="$ac_save_CC $ac_arg"
3093 rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00003094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3100$as_echo "$ac_try_echo") >&5
3101 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00003102 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00003103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00003106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003112else
drh8b727472009-01-19 18:18:40 +00003113 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003114sed 's/^/| /' conftest.$ac_ext >&5
3115
drh8b727472009-01-19 18:18:40 +00003116
a.rottmann84e63352003-03-24 09:42:16 +00003117fi
drh8b727472009-01-19 18:18:40 +00003118
3119rm -f core conftest.err conftest.$ac_objext
3120 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003121done
drh8b727472009-01-19 18:18:40 +00003122rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003123CC=$ac_save_CC
3124
3125fi
drh8b727472009-01-19 18:18:40 +00003126# AC_CACHE_VAL
3127case "x$ac_cv_prog_cc_c89" in
3128 x)
3129 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3130$as_echo "none needed" >&6; } ;;
3131 xno)
3132 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3133$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003134 *)
drh8b727472009-01-19 18:18:40 +00003135 CC="$CC $ac_cv_prog_cc_c89"
3136 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003138esac
3139
a.rottmann84e63352003-03-24 09:42:16 +00003140
drh71eb93e2001-09-28 01:34:43 +00003141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
drh8b727472009-01-19 18:18:40 +00003147{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3148$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3149if test "${ac_cv_path_SED+set}" = set; then
3150 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003151else
drh8b727472009-01-19 18:18:40 +00003152 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3153 for ac_i in 1 2 3 4 5 6 7; do
3154 ac_script="$ac_script$as_nl$ac_script"
3155 done
3156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3157 $as_unset ac_script || ac_script=
3158 if test -z "$SED"; then
3159 ac_path_SED_found=false
3160 # Loop through the user's path and test for each of PROGNAME-LIST
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
drh8b727472009-01-19 18:18:40 +00003166 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003167 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003168 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3169 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3170# Check for GNU ac_path_SED and select it if it is found.
3171 # Check for GNU $ac_path_SED
3172case `"$ac_path_SED" --version 2>&1` in
3173*GNU*)
3174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3175*)
3176 ac_count=0
3177 $as_echo_n 0123456789 >"conftest.in"
3178 while :
3179 do
3180 cat "conftest.in" "conftest.in" >"conftest.tmp"
3181 mv "conftest.tmp" "conftest.in"
3182 cp "conftest.in" "conftest.nl"
3183 $as_echo '' >> "conftest.nl"
3184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3186 ac_count=`expr $ac_count + 1`
3187 if test $ac_count -gt ${ac_path_SED_max-0}; then
3188 # Best one so far, save it but keep looking for a better one
3189 ac_cv_path_SED="$ac_path_SED"
3190 ac_path_SED_max=$ac_count
3191 fi
3192 # 10*(2^10) chars as input seems more than enough
3193 test $ac_count -gt 10 && break
3194 done
3195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3196esac
3197
3198 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003199 done
3200 done
3201done
mlcreech636a9952008-05-05 22:52:56 +00003202IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003203 if test -z "$ac_cv_path_SED"; then
3204 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3205$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3206 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003207 fi
drh8b727472009-01-19 18:18:40 +00003208else
3209 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003210fi
drh866108f2008-05-13 00:57:21 +00003211
drh8b727472009-01-19 18:18:40 +00003212fi
3213{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3214$as_echo "$ac_cv_path_SED" >&6; }
3215 SED="$ac_cv_path_SED"
3216 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003217
mlcreech636a9952008-05-05 22:52:56 +00003218test -z "$SED" && SED=sed
3219Xsed="$SED -e 1s/^X//"
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
drh8b727472009-01-19 18:18:40 +00003231{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3232$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3233if test "${ac_cv_path_GREP+set}" = set; then
3234 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003235else
drh8b727472009-01-19 18:18:40 +00003236 if test -z "$GREP"; then
3237 ac_path_GREP_found=false
3238 # Loop through the user's path and test for each of PROGNAME-LIST
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3241do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_prog in grep ggrep; do
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3248# Check for GNU ac_path_GREP and select it if it is found.
3249 # Check for GNU $ac_path_GREP
3250case `"$ac_path_GREP" --version 2>&1` in
3251*GNU*)
3252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3253*)
3254 ac_count=0
3255 $as_echo_n 0123456789 >"conftest.in"
3256 while :
3257 do
3258 cat "conftest.in" "conftest.in" >"conftest.tmp"
3259 mv "conftest.tmp" "conftest.in"
3260 cp "conftest.in" "conftest.nl"
3261 $as_echo 'GREP' >> "conftest.nl"
3262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3264 ac_count=`expr $ac_count + 1`
3265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3266 # Best one so far, save it but keep looking for a better one
3267 ac_cv_path_GREP="$ac_path_GREP"
3268 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003269 fi
drh8b727472009-01-19 18:18:40 +00003270 # 10*(2^10) chars as input seems more than enough
3271 test $ac_count -gt 10 && break
3272 done
3273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3274esac
3275
3276 $ac_path_GREP_found && break 3
3277 done
3278 done
3279done
3280IFS=$as_save_IFS
3281 if test -z "$ac_cv_path_GREP"; then
3282 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3283$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286else
3287 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003288fi
drh8b727472009-01-19 18:18:40 +00003289
3290fi
3291{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3292$as_echo "$ac_cv_path_GREP" >&6; }
3293 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003294
3295
drh8b727472009-01-19 18:18:40 +00003296{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3297$as_echo_n "checking for egrep... " >&6; }
3298if test "${ac_cv_path_EGREP+set}" = set; then
3299 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003300else
drh8b727472009-01-19 18:18:40 +00003301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3302 then ac_cv_path_EGREP="$GREP -E"
3303 else
3304 if test -z "$EGREP"; then
3305 ac_path_EGREP_found=false
3306 # Loop through the user's path and test for each of PROGNAME-LIST
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3309do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_prog in egrep; do
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3315 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3316# Check for GNU ac_path_EGREP and select it if it is found.
3317 # Check for GNU $ac_path_EGREP
3318case `"$ac_path_EGREP" --version 2>&1` in
3319*GNU*)
3320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3321*)
3322 ac_count=0
3323 $as_echo_n 0123456789 >"conftest.in"
3324 while :
3325 do
3326 cat "conftest.in" "conftest.in" >"conftest.tmp"
3327 mv "conftest.tmp" "conftest.in"
3328 cp "conftest.in" "conftest.nl"
3329 $as_echo 'EGREP' >> "conftest.nl"
3330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3332 ac_count=`expr $ac_count + 1`
3333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3334 # Best one so far, save it but keep looking for a better one
3335 ac_cv_path_EGREP="$ac_path_EGREP"
3336 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003337 fi
drh8b727472009-01-19 18:18:40 +00003338 # 10*(2^10) chars as input seems more than enough
3339 test $ac_count -gt 10 && break
3340 done
3341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3342esac
3343
3344 $ac_path_EGREP_found && break 3
3345 done
3346 done
3347done
3348IFS=$as_save_IFS
3349 if test -z "$ac_cv_path_EGREP"; then
3350 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3351$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3352 { (exit 1); exit 1; }; }
3353 fi
3354else
3355 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003356fi
drh8b727472009-01-19 18:18:40 +00003357
3358 fi
3359fi
3360{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361$as_echo "$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3363
3364
3365{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3366$as_echo_n "checking for fgrep... " >&6; }
3367if test "${ac_cv_path_FGREP+set}" = set; then
3368 $as_echo_n "(cached) " >&6
3369else
3370 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3371 then ac_cv_path_FGREP="$GREP -F"
3372 else
3373 if test -z "$FGREP"; then
3374 ac_path_FGREP_found=false
3375 # Loop through the user's path and test for each of PROGNAME-LIST
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3378do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_prog in fgrep; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3384 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3385# Check for GNU ac_path_FGREP and select it if it is found.
3386 # Check for GNU $ac_path_FGREP
3387case `"$ac_path_FGREP" --version 2>&1` in
3388*GNU*)
3389 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3390*)
3391 ac_count=0
3392 $as_echo_n 0123456789 >"conftest.in"
3393 while :
3394 do
3395 cat "conftest.in" "conftest.in" >"conftest.tmp"
3396 mv "conftest.tmp" "conftest.in"
3397 cp "conftest.in" "conftest.nl"
3398 $as_echo 'FGREP' >> "conftest.nl"
3399 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3401 ac_count=`expr $ac_count + 1`
3402 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3403 # Best one so far, save it but keep looking for a better one
3404 ac_cv_path_FGREP="$ac_path_FGREP"
3405 ac_path_FGREP_max=$ac_count
3406 fi
3407 # 10*(2^10) chars as input seems more than enough
3408 test $ac_count -gt 10 && break
3409 done
3410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3411esac
3412
3413 $ac_path_FGREP_found && break 3
3414 done
3415 done
3416done
3417IFS=$as_save_IFS
3418 if test -z "$ac_cv_path_FGREP"; then
3419 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3420$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3421 { (exit 1); exit 1; }; }
3422 fi
3423else
3424 ac_cv_path_FGREP=$FGREP
3425fi
3426
3427 fi
3428fi
3429{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3430$as_echo "$ac_cv_path_FGREP" >&6; }
3431 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003432
3433
3434test -z "$GREP" && GREP=grep
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
a.rottmann9bc8b932004-02-29 15:18:31 +00003451
3452
a.rottmann84e63352003-03-24 09:42:16 +00003453
drh8b727472009-01-19 18:18:40 +00003454# Check whether --with-gnu-ld was given.
drh71eb93e2001-09-28 01:34:43 +00003455if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003456 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003457else
3458 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003459fi
3460
drh71eb93e2001-09-28 01:34:43 +00003461ac_prog=ld
3462if test "$GCC" = yes; then
3463 # Check if gcc -print-prog-name=ld gives a path.
drh8b727472009-01-19 18:18:40 +00003464 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3465$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003466 case $host in
3467 *-*-mingw*)
3468 # gcc leaves a trailing carriage return which upsets mingw
3469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3470 *)
3471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3472 esac
3473 case $ac_prog in
3474 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003475 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003476 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003477 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003478 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3479 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3480 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003481 done
3482 test -z "$LD" && LD="$ac_prog"
3483 ;;
3484 "")
3485 # If it fails, then pretend we aren't using GCC.
3486 ac_prog=ld
3487 ;;
3488 *)
3489 # If it is relative, then search for the first ld in PATH.
3490 with_gnu_ld=unknown
3491 ;;
3492 esac
3493elif test "$with_gnu_ld" = yes; then
drh8b727472009-01-19 18:18:40 +00003494 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3495$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003496else
drh8b727472009-01-19 18:18:40 +00003497 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3498$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003499fi
3500if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003501 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003502else
3503 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003505 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003506 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003507 test -z "$ac_dir" && ac_dir=.
3508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3509 lt_cv_path_LD="$ac_dir/$ac_prog"
3510 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003511 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003512 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3514 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003515 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003516 ;;
3517 *)
drh71eb93e2001-09-28 01:34:43 +00003518 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003519 ;;
3520 esac
drh71eb93e2001-09-28 01:34:43 +00003521 fi
3522 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003523 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003524else
3525 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3526fi
3527fi
3528
3529LD="$lt_cv_path_LD"
3530if test -n "$LD"; then
drh8b727472009-01-19 18:18:40 +00003531 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3532$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003533else
drh8b727472009-01-19 18:18:40 +00003534 { $as_echo "$as_me:$LINENO: result: no" >&5
3535$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003536fi
drh8b727472009-01-19 18:18:40 +00003537test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3538$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
drh71eb93e2001-09-28 01:34:43 +00003539 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003540{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3541$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003542if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003543 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003544else
vapier7f19c022007-02-17 14:46:31 +00003545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003546case `$LD -v 2>&1 </dev/null` in
3547*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003548 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003549 ;;
3550*)
drh71eb93e2001-09-28 01:34:43 +00003551 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003552 ;;
3553esac
drh71eb93e2001-09-28 01:34:43 +00003554fi
drh8b727472009-01-19 18:18:40 +00003555{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3556$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003557with_gnu_ld=$lt_cv_prog_gnu_ld
3558
a.rottmann84e63352003-03-24 09:42:16 +00003559
drh71eb93e2001-09-28 01:34:43 +00003560
mlcreech636a9952008-05-05 22:52:56 +00003561
3562
3563
3564
3565
3566
drh8b727472009-01-19 18:18:40 +00003567{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3568$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003569if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003570 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003571else
3572 if test -n "$NM"; then
3573 # Let the user override the test.
3574 lt_cv_path_NM="$NM"
3575else
vapier7f19c022007-02-17 14:46:31 +00003576 lt_nm_to_check="${ac_tool_prefix}nm"
3577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3578 lt_nm_to_check="$lt_nm_to_check nm"
3579 fi
3580 for lt_tmp_nm in $lt_nm_to_check; do
3581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3582 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3583 IFS="$lt_save_ifs"
3584 test -z "$ac_dir" && ac_dir=.
3585 tmp_nm="$ac_dir/$lt_tmp_nm"
3586 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3587 # Check to see if the nm accepts a BSD-compat flag.
3588 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3589 # nm: unknown option "B" ignored
3590 # Tru64's nm complains that /dev/null is an invalid object file
3591 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3592 */dev/null* | *'Invalid file or object type'*)
3593 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003594 break
3595 ;;
3596 *)
vapier7f19c022007-02-17 14:46:31 +00003597 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3598 */dev/null*)
3599 lt_cv_path_NM="$tmp_nm -p"
3600 break
3601 ;;
3602 *)
3603 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3604 continue # so that we can try to find one that supports BSD flags
3605 ;;
3606 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003607 ;;
3608 esac
vapier7f19c022007-02-17 14:46:31 +00003609 fi
3610 done
3611 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003612 done
mlcreech636a9952008-05-05 22:52:56 +00003613 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003614fi
3615fi
drh8b727472009-01-19 18:18:40 +00003616{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3617$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003618if test "$lt_cv_path_NM" != "no"; then
3619 NM="$lt_cv_path_NM"
3620else
3621 # Didn't find any BSD compatible name lister, look for dumpbin.
3622 if test -n "$ac_tool_prefix"; then
3623 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3624 do
3625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3628$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003629if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003630 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003631else
3632 if test -n "$DUMPBIN"; then
3633 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3634else
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003641 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 +00003642 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh8b727472009-01-19 18:18:40 +00003643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003644 break 2
3645 fi
3646done
3647done
drh8b727472009-01-19 18:18:40 +00003648IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003649
mlcreech636a9952008-05-05 22:52:56 +00003650fi
3651fi
3652DUMPBIN=$ac_cv_prog_DUMPBIN
3653if test -n "$DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003654 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3655$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003656else
drh8b727472009-01-19 18:18:40 +00003657 { $as_echo "$as_me:$LINENO: result: no" >&5
3658$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003659fi
3660
drh8b727472009-01-19 18:18:40 +00003661
mlcreech636a9952008-05-05 22:52:56 +00003662 test -n "$DUMPBIN" && break
3663 done
3664fi
3665if test -z "$DUMPBIN"; then
3666 ac_ct_DUMPBIN=$DUMPBIN
3667 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3668do
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +00003671{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3672$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003673if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003674 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003675else
3676 if test -n "$ac_ct_DUMPBIN"; then
3677 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3678else
3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680for as_dir in $PATH
3681do
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003685 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 +00003686 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh8b727472009-01-19 18:18:40 +00003687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003688 break 2
3689 fi
3690done
3691done
drh8b727472009-01-19 18:18:40 +00003692IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003693
3694fi
3695fi
3696ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3697if test -n "$ac_ct_DUMPBIN"; then
drh8b727472009-01-19 18:18:40 +00003698 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3699$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003700else
drh8b727472009-01-19 18:18:40 +00003701 { $as_echo "$as_me:$LINENO: result: no" >&5
3702$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003703fi
3704
drh8b727472009-01-19 18:18:40 +00003705
mlcreech636a9952008-05-05 22:52:56 +00003706 test -n "$ac_ct_DUMPBIN" && break
3707done
3708
drh8b727472009-01-19 18:18:40 +00003709 if test "x$ac_ct_DUMPBIN" = x; then
3710 DUMPBIN=":"
3711 else
3712 case $cross_compiling:$ac_tool_warned in
3713yes:)
vapier6acb2cf2009-01-28 04:46:28 +00003714{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003716ac_tool_warned=yes ;;
3717esac
3718 DUMPBIN=$ac_ct_DUMPBIN
3719 fi
mlcreech636a9952008-05-05 22:52:56 +00003720fi
3721
3722
3723 if test "$DUMPBIN" != ":"; then
3724 NM="$DUMPBIN"
3725 fi
3726fi
3727test -z "$NM" && NM=nm
3728
3729
3730
3731
3732
3733
drh8b727472009-01-19 18:18:40 +00003734{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3735$as_echo_n "checking the name lister ($NM) interface... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003736if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003737 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003738else
3739 lt_cv_nm_interface="BSD nm"
3740 echo "int some_variable = 0;" > conftest.$ac_ext
vapierfaa68db2009-04-01 07:38:31 +00003741 (eval echo "\"\$as_me:3741: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003742 (eval "$ac_compile" 2>conftest.err)
3743 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00003744 (eval echo "\"\$as_me:3744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003745 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3746 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00003747 (eval echo "\"\$as_me:3747: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003748 cat conftest.out >&5
3749 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3750 lt_cv_nm_interface="MS dumpbin"
3751 fi
3752 rm -f conftest*
3753fi
drh8b727472009-01-19 18:18:40 +00003754{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3755$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003756
drh8b727472009-01-19 18:18:40 +00003757{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3758$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003759LN_S=$as_ln_s
3760if test "$LN_S" = "ln -s"; then
drh8b727472009-01-19 18:18:40 +00003761 { $as_echo "$as_me:$LINENO: result: yes" >&5
3762$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003763else
drh8b727472009-01-19 18:18:40 +00003764 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3765$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003766fi
3767
mlcreech636a9952008-05-05 22:52:56 +00003768# find the maximum length of command line arguments
drh8b727472009-01-19 18:18:40 +00003769{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3770$as_echo_n "checking the maximum length of command line arguments... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003771if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003772 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003773else
3774 i=0
3775 teststring="ABCD"
3776
3777 case $build_os in
3778 msdosdjgpp*)
3779 # On DJGPP, this test can blow up pretty badly due to problems in libc
3780 # (any single argument exceeding 2000 bytes causes a buffer overrun
3781 # during glob expansion). Even if it were fixed, the result of this
3782 # check would be larger than it should be.
3783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3784 ;;
3785
3786 gnu*)
3787 # Under GNU Hurd, this test is not required because there is
3788 # no limit to the length of command line arguments.
3789 # Libtool will interpret -1 as no limit whatsoever
3790 lt_cv_sys_max_cmd_len=-1;
3791 ;;
3792
vapier6acb2cf2009-01-28 04:46:28 +00003793 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003794 # On Win9x/ME, this test blows up -- it succeeds, but takes
3795 # about 5 minutes as the teststring grows exponentially.
3796 # Worse, since 9x/ME are not pre-emptively multitasking,
3797 # you end up with a "frozen" computer, even though with patience
3798 # the test eventually succeeds (with a max line length of 256k).
3799 # Instead, let's just punt: use the minimum linelength reported by
3800 # all of the supported platforms: 8192 (on NT/2K/XP).
3801 lt_cv_sys_max_cmd_len=8192;
3802 ;;
3803
3804 amigaos*)
3805 # On AmigaOS with pdksh, this test takes hours, literally.
3806 # So we just punt and use a minimum line length of 8192.
3807 lt_cv_sys_max_cmd_len=8192;
3808 ;;
3809
3810 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3811 # This has been around since 386BSD, at least. Likely further.
3812 if test -x /sbin/sysctl; then
3813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3814 elif test -x /usr/sbin/sysctl; then
3815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3816 else
3817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3818 fi
3819 # And add a safety zone
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3822 ;;
3823
3824 interix*)
3825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3826 lt_cv_sys_max_cmd_len=196608
3827 ;;
3828
3829 osf*)
3830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3832 # nice to cause kernel panics so lets avoid the loop below.
3833 # First set a reasonable default.
3834 lt_cv_sys_max_cmd_len=16384
3835 #
3836 if test -x /sbin/sysconfig; then
3837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3839 esac
3840 fi
3841 ;;
3842 sco3.2v5*)
3843 lt_cv_sys_max_cmd_len=102400
3844 ;;
3845 sysv5* | sco5v6* | sysv4.2uw2*)
3846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3847 if test -n "$kargmax"; then
3848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3849 else
3850 lt_cv_sys_max_cmd_len=32768
3851 fi
3852 ;;
3853 *)
3854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3855 if test -n "$lt_cv_sys_max_cmd_len"; then
3856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3858 else
3859 # Make teststring a little bigger before we do anything with it.
3860 # a 1K string should be a reasonable start.
3861 for i in 1 2 3 4 5 6 7 8 ; do
3862 teststring=$teststring$teststring
3863 done
3864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3865 # If test is not a shell built-in, we'll probably end up computing a
3866 # maximum length that is only half of the actual maximum length, but
3867 # we can't tell.
3868 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3869 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3870 test $i != 17 # 1/2 MB should be enough
3871 do
3872 i=`expr $i + 1`
3873 teststring=$teststring$teststring
3874 done
3875 # Only check the string length outside the loop.
3876 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3877 teststring=
3878 # Add a significant safety factor because C++ compilers can tack on
3879 # massive amounts of additional arguments before passing them to the
3880 # linker. It appears as though 1/2 is a usable value.
3881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3882 fi
3883 ;;
3884 esac
3885
3886fi
3887
3888if test -n $lt_cv_sys_max_cmd_len ; then
drh8b727472009-01-19 18:18:40 +00003889 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003891else
drh8b727472009-01-19 18:18:40 +00003892 { $as_echo "$as_me:$LINENO: result: none" >&5
3893$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003894fi
3895max_cmd_len=$lt_cv_sys_max_cmd_len
3896
3897
3898
3899
3900
3901
3902: ${CP="cp -f"}
3903: ${MV="mv -f"}
3904: ${RM="rm -f"}
3905
drh8b727472009-01-19 18:18:40 +00003906{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3907$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003908# Try some XSI features
3909xsi_shell=no
3910( _lt_dummy="a/b/c"
3911 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3912 = c,a/b,, \
3913 && eval 'test $(( 1 + 1 )) -eq 2 \
3914 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3915 && xsi_shell=yes
drh8b727472009-01-19 18:18:40 +00003916{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3917$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003918
3919
drh8b727472009-01-19 18:18:40 +00003920{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3921$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003922lt_shell_append=no
3923( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3924 >/dev/null 2>&1 \
3925 && lt_shell_append=yes
drh8b727472009-01-19 18:18:40 +00003926{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3927$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003928
3929
3930if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3931 lt_unset=unset
3932else
3933 lt_unset=false
3934fi
3935
3936
3937
3938
3939
3940# test EBCDIC or ASCII
3941case `echo X|tr X '\101'` in
3942 A) # ASCII based system
3943 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3944 lt_SP2NL='tr \040 \012'
3945 lt_NL2SP='tr \015\012 \040\040'
3946 ;;
3947 *) # EBCDIC based system
3948 lt_SP2NL='tr \100 \n'
3949 lt_NL2SP='tr \r\n \100\100'
3950 ;;
3951esac
3952
3953
3954
3955
3956
3957
3958
3959
3960
drh8b727472009-01-19 18:18:40 +00003961{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3962$as_echo_n "checking for $LD option to reload object files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003963if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003964 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003965else
3966 lt_cv_ld_reload_flag='-r'
3967fi
drh8b727472009-01-19 18:18:40 +00003968{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3969$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003970reload_flag=$lt_cv_ld_reload_flag
3971case $reload_flag in
3972"" | " "*) ;;
3973*) reload_flag=" $reload_flag" ;;
3974esac
3975reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976case $host_os in
3977 darwin*)
3978 if test "$GCC" = yes; then
3979 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3980 else
3981 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982 fi
3983 ;;
3984esac
3985
3986
3987
3988
3989
3990
3991
3992
3993
vapier6acb2cf2009-01-28 04:46:28 +00003994if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3996set dummy ${ac_tool_prefix}objdump; ac_word=$2
3997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
3999if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$OBJDUMP"; then
4003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022OBJDUMP=$ac_cv_prog_OBJDUMP
4023if test -n "$OBJDUMP"; then
4024 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4025$as_echo "$OBJDUMP" >&6; }
4026else
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032fi
4033if test -z "$ac_cv_prog_OBJDUMP"; then
4034 ac_ct_OBJDUMP=$OBJDUMP
4035 # Extract the first word of "objdump", so it can be a program name with args.
4036set dummy objdump; ac_word=$2
4037{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4040 $as_echo_n "(cached) " >&6
4041else
4042 if test -n "$ac_ct_OBJDUMP"; then
4043 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
4059
4060fi
4061fi
4062ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4063if test -n "$ac_ct_OBJDUMP"; then
4064 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4065$as_echo "$ac_ct_OBJDUMP" >&6; }
4066else
4067 { $as_echo "$as_me:$LINENO: result: no" >&5
4068$as_echo "no" >&6; }
4069fi
4070
4071 if test "x$ac_ct_OBJDUMP" = x; then
4072 OBJDUMP="false"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075yes:)
4076{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4078ac_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:)
vapier6acb2cf2009-01-28 04:46:28 +00004391{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004393ac_tool_warned=yes ;;
4394esac
4395 AR=$ac_ct_AR
4396 fi
mlcreech636a9952008-05-05 22:52:56 +00004397else
4398 AR="$ac_cv_prog_AR"
4399fi
4400
4401test -z "$AR" && AR=ar
4402test -z "$AR_FLAGS" && AR_FLAGS=cru
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414if test -n "$ac_tool_prefix"; then
4415 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4416set dummy ${ac_tool_prefix}strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004419if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004420 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004421else
4422 if test -n "$STRIP"; then
4423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004431 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 +00004432 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh8b727472009-01-19 18:18:40 +00004433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004434 break 2
4435 fi
4436done
4437done
drh8b727472009-01-19 18:18:40 +00004438IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004439
4440fi
4441fi
4442STRIP=$ac_cv_prog_STRIP
4443if test -n "$STRIP"; then
drh8b727472009-01-19 18:18:40 +00004444 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4445$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004446else
drh8b727472009-01-19 18:18:40 +00004447 { $as_echo "$as_me:$LINENO: result: no" >&5
4448$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004449fi
4450
drh8b727472009-01-19 18:18:40 +00004451
mlcreech636a9952008-05-05 22:52:56 +00004452fi
4453if test -z "$ac_cv_prog_STRIP"; then
4454 ac_ct_STRIP=$STRIP
4455 # Extract the first word of "strip", so it can be a program name with args.
4456set dummy strip; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004459if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004460 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004461else
4462 if test -n "$ac_ct_STRIP"; then
4463 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004471 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 +00004472 ac_cv_prog_ac_ct_STRIP="strip"
drh8b727472009-01-19 18:18:40 +00004473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004474 break 2
4475 fi
4476done
4477done
drh8b727472009-01-19 18:18:40 +00004478IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004479
4480fi
4481fi
4482ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4483if test -n "$ac_ct_STRIP"; then
drh8b727472009-01-19 18:18:40 +00004484 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4485$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004486else
drh8b727472009-01-19 18:18:40 +00004487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004489fi
4490
drh8b727472009-01-19 18:18:40 +00004491 if test "x$ac_ct_STRIP" = x; then
4492 STRIP=":"
4493 else
4494 case $cross_compiling:$ac_tool_warned in
4495yes:)
vapier6acb2cf2009-01-28 04:46:28 +00004496{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004498ac_tool_warned=yes ;;
4499esac
4500 STRIP=$ac_ct_STRIP
4501 fi
mlcreech636a9952008-05-05 22:52:56 +00004502else
4503 STRIP="$ac_cv_prog_STRIP"
4504fi
4505
4506test -z "$STRIP" && STRIP=:
4507
4508
4509
4510
4511
4512
4513if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4515set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004516{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4517$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004518if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004519 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004520else
4521 if test -n "$RANLIB"; then
4522 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004530 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 +00004531 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh8b727472009-01-19 18:18:40 +00004532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004533 break 2
4534 fi
4535done
4536done
drh8b727472009-01-19 18:18:40 +00004537IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004538
4539fi
4540fi
4541RANLIB=$ac_cv_prog_RANLIB
4542if test -n "$RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004543 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4544$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004545else
drh8b727472009-01-19 18:18:40 +00004546 { $as_echo "$as_me:$LINENO: result: no" >&5
4547$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004548fi
4549
drh8b727472009-01-19 18:18:40 +00004550
mlcreech636a9952008-05-05 22:52:56 +00004551fi
4552if test -z "$ac_cv_prog_RANLIB"; then
4553 ac_ct_RANLIB=$RANLIB
4554 # Extract the first word of "ranlib", so it can be a program name with args.
4555set dummy ranlib; ac_word=$2
drh8b727472009-01-19 18:18:40 +00004556{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4557$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004558if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004559 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004560else
4561 if test -n "$ac_ct_RANLIB"; then
4562 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004570 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 +00004571 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh8b727472009-01-19 18:18:40 +00004572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004573 break 2
4574 fi
4575done
4576done
drh8b727472009-01-19 18:18:40 +00004577IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004578
4579fi
4580fi
4581ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4582if test -n "$ac_ct_RANLIB"; then
drh8b727472009-01-19 18:18:40 +00004583 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4584$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004585else
drh8b727472009-01-19 18:18:40 +00004586 { $as_echo "$as_me:$LINENO: result: no" >&5
4587$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004588fi
4589
drh8b727472009-01-19 18:18:40 +00004590 if test "x$ac_ct_RANLIB" = x; then
4591 RANLIB=":"
4592 else
4593 case $cross_compiling:$ac_tool_warned in
4594yes:)
vapier6acb2cf2009-01-28 04:46:28 +00004595{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004597ac_tool_warned=yes ;;
4598esac
4599 RANLIB=$ac_ct_RANLIB
4600 fi
mlcreech636a9952008-05-05 22:52:56 +00004601else
4602 RANLIB="$ac_cv_prog_RANLIB"
4603fi
4604
4605test -z "$RANLIB" && RANLIB=:
4606
4607
4608
4609
4610
4611
4612# Determine commands to create old-style static archives.
4613old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4614old_postinstall_cmds='chmod 644 $oldlib'
4615old_postuninstall_cmds=
4616
4617if test -n "$RANLIB"; then
4618 case $host_os in
4619 openbsd*)
4620 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4621 ;;
4622 *)
4623 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4624 ;;
4625 esac
4626 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4627fi
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
a.rottmann9bc8b932004-02-29 15:18:31 +00004662# If no C compiler was specified, use CC.
4663LTCC=${LTCC-"$CC"}
4664
vapier7f19c022007-02-17 14:46:31 +00004665# If no C compiler flags were specified, use CFLAGS.
4666LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4667
a.rottmann9bc8b932004-02-29 15:18:31 +00004668# Allow CC to be a program name with arguments.
4669compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004670
drh71eb93e2001-09-28 01:34:43 +00004671
mlcreech636a9952008-05-05 22:52:56 +00004672# Check for command to grab the raw symbol name followed by C symbol from nm.
drh8b727472009-01-19 18:18:40 +00004673{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4674$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004675if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004676 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004677else
4678
4679# These are sane defaults that work on at least a few old systems.
4680# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4681
4682# Character class describing NM global symbol codes.
4683symcode='[BCDEGRST]'
4684
4685# Regexp to match symbols that can be accessed directly from C.
4686sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4687
4688# Define system-specific variables.
4689case $host_os in
4690aix*)
4691 symcode='[BCDT]'
4692 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004693cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004694 symcode='[ABCDGISTW]'
4695 ;;
4696hpux*)
4697 if test "$host_cpu" = ia64; then
4698 symcode='[ABCDEGRST]'
4699 fi
4700 ;;
4701irix* | nonstopux*)
4702 symcode='[BCDEGRST]'
4703 ;;
4704osf*)
4705 symcode='[BCDEGQRST]'
4706 ;;
4707solaris*)
4708 symcode='[BDRT]'
4709 ;;
4710sco3.2v5*)
4711 symcode='[DT]'
4712 ;;
4713sysv4.2uw2*)
4714 symcode='[DT]'
4715 ;;
4716sysv5* | sco5v6* | unixware* | OpenUNIX*)
4717 symcode='[ABDT]'
4718 ;;
4719sysv4)
4720 symcode='[DFNSTU]'
4721 ;;
4722esac
4723
4724# If we're using GNU nm, then use its standard symbol codes.
4725case `$NM -V 2>&1` in
4726*GNU* | *'with BFD'*)
4727 symcode='[ABCDGIRSTW]' ;;
4728esac
4729
4730# Transform an extracted symbol line into a proper C declaration.
4731# Some systems (esp. on ia64) link data and code symbols differently,
4732# so use this general approach.
4733lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4734
4735# Transform an extracted symbol line into symbol name and symbol address
4736lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4737lt_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'"
4738
4739# Handle CRLF in mingw tool chain
4740opt_cr=
4741case $build_os in
4742mingw*)
4743 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4744 ;;
4745esac
4746
4747# Try without a prefix underscore, then with it.
4748for ac_symprfx in "" "_"; do
4749
4750 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4751 symxfrm="\\1 $ac_symprfx\\2 \\2"
4752
4753 # Write the raw and C identifiers.
4754 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4755 # Fake it for dumpbin and say T for any non-static function
4756 # and D for any global variable.
4757 # Also find C++ and __fastcall symbols from MSVC++,
4758 # which start with @ or ?.
4759 lt_cv_sys_global_symbol_pipe="$AWK '"\
4760" {last_section=section; section=\$ 3};"\
4761" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4762" \$ 0!~/External *\|/{next};"\
4763" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4764" {if(hide[section]) next};"\
4765" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4766" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4767" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4768" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4769" ' prfx=^$ac_symprfx"
4770 else
4771 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4772 fi
4773
4774 # Check to see that the pipe works correctly.
4775 pipe_works=no
4776
4777 rm -f conftest*
4778 cat > conftest.$ac_ext <<_LT_EOF
4779#ifdef __cplusplus
4780extern "C" {
4781#endif
4782char nm_test_var;
4783void nm_test_func(void);
4784void nm_test_func(void){}
4785#ifdef __cplusplus
4786}
4787#endif
4788int main(){nm_test_var='a';nm_test_func();return(0);}
4789_LT_EOF
4790
4791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4792 (eval $ac_compile) 2>&5
4793 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004795 (exit $ac_status); }; then
4796 # Now try to grab the symbols.
4797 nlist=conftest.nm
4798 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4799 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4800 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004802 (exit $ac_status); } && test -s "$nlist"; then
4803 # Try sorting and uniquifying the output.
4804 if sort "$nlist" | uniq > "$nlist"T; then
4805 mv -f "$nlist"T "$nlist"
4806 else
4807 rm -f "$nlist"T
4808 fi
4809
4810 # Make sure that we snagged all the symbols we need.
4811 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4812 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4813 cat <<_LT_EOF > conftest.$ac_ext
4814#ifdef __cplusplus
4815extern "C" {
4816#endif
4817
4818_LT_EOF
4819 # Now generate the symbol file.
4820 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4821
4822 cat <<_LT_EOF >> conftest.$ac_ext
4823
4824/* The mapping between symbol names and symbols. */
4825const struct {
4826 const char *name;
4827 void *address;
4828}
4829lt__PROGRAM__LTX_preloaded_symbols[] =
4830{
4831 { "@PROGRAM@", (void *) 0 },
4832_LT_EOF
4833 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4834 cat <<\_LT_EOF >> conftest.$ac_ext
4835 {0, (void *) 0}
4836};
4837
4838/* This works around a problem in FreeBSD linker */
4839#ifdef FREEBSD_WORKAROUND
4840static const void *lt_preloaded_setup() {
4841 return lt__PROGRAM__LTX_preloaded_symbols;
4842}
4843#endif
4844
4845#ifdef __cplusplus
4846}
4847#endif
4848_LT_EOF
4849 # Now try linking the two files.
4850 mv conftest.$ac_objext conftstm.$ac_objext
4851 lt_save_LIBS="$LIBS"
4852 lt_save_CFLAGS="$CFLAGS"
4853 LIBS="conftstm.$ac_objext"
4854 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4857 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00004859 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4860 pipe_works=yes
4861 fi
4862 LIBS="$lt_save_LIBS"
4863 CFLAGS="$lt_save_CFLAGS"
4864 else
4865 echo "cannot find nm_test_func in $nlist" >&5
4866 fi
4867 else
4868 echo "cannot find nm_test_var in $nlist" >&5
4869 fi
4870 else
4871 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4872 fi
4873 else
4874 echo "$progname: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 fi
4877 rm -rf conftest* conftst*
4878
4879 # Do not use the global_symbol_pipe unless it works.
4880 if test "$pipe_works" = yes; then
4881 break
4882 else
4883 lt_cv_sys_global_symbol_pipe=
4884 fi
4885done
4886
4887fi
4888
4889if test -z "$lt_cv_sys_global_symbol_pipe"; then
4890 lt_cv_sys_global_symbol_to_cdecl=
4891fi
4892if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh8b727472009-01-19 18:18:40 +00004893 { $as_echo "$as_me:$LINENO: result: failed" >&5
4894$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004895else
drh8b727472009-01-19 18:18:40 +00004896 { $as_echo "$as_me:$LINENO: result: ok" >&5
4897$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004898fi
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
drh8b727472009-01-19 18:18:40 +00004922# Check whether --enable-libtool-lock was given.
a.rottmann9bc8b932004-02-29 15:18:31 +00004923if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004924 enableval=$enable_libtool_lock;
4925fi
drh71eb93e2001-09-28 01:34:43 +00004926
a.rottmann9bc8b932004-02-29 15:18:31 +00004927test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004928
a.rottmann9bc8b932004-02-29 15:18:31 +00004929# Some flags need to be propagated to the compiler or linker for good
4930# libtool support.
4931case $host in
4932ia64-*-hpux*)
4933 # Find out which ABI we are using.
4934 echo 'int i;' > conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00004935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004936 (eval $ac_compile) 2>&5
4937 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +00004939 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004940 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004941 *ELF-32*)
4942 HPUX_IA64_MODE="32"
4943 ;;
4944 *ELF-64*)
4945 HPUX_IA64_MODE="64"
4946 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004947 esac
4948 fi
4949 rm -rf conftest*
4950 ;;
4951*-*-irix6*)
4952 # Find out which ABI we are using.
vapierfaa68db2009-04-01 07:38:31 +00004953 echo '#line 4953 "configure"' > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00004954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4955 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004956 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004958 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004959 if test "$lt_cv_prog_gnu_ld" = yes; then
4960 case `/usr/bin/file conftest.$ac_objext` in
4961 *32-bit*)
4962 LD="${LD-ld} -melf32bsmip"
4963 ;;
4964 *N32*)
4965 LD="${LD-ld} -melf32bmipn32"
4966 ;;
4967 *64-bit*)
4968 LD="${LD-ld} -melf64bmip"
4969 ;;
4970 esac
4971 else
4972 case `/usr/bin/file conftest.$ac_objext` in
4973 *32-bit*)
4974 LD="${LD-ld} -32"
4975 ;;
4976 *N32*)
4977 LD="${LD-ld} -n32"
4978 ;;
4979 *64-bit*)
4980 LD="${LD-ld} -64"
4981 ;;
4982 esac
4983 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004984 fi
4985 rm -rf conftest*
4986 ;;
drh71eb93e2001-09-28 01:34:43 +00004987
mlcreech636a9952008-05-05 22:52:56 +00004988x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4989s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004990 # Find out which ABI we are using.
4991 echo 'int i;' > conftest.$ac_ext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 (eval $ac_compile) 2>&5
4994 ac_status=$?
drh8b727472009-01-19 18:18:40 +00004995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004996 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00004997 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00004998 *32-bit*)
4999 case $host in
5000 x86_64-*kfreebsd*-gnu)
5001 LD="${LD-ld} -m elf_i386_fbsd"
5002 ;;
5003 x86_64-*linux*)
5004 LD="${LD-ld} -m elf_i386"
5005 ;;
5006 ppc64-*linux*|powerpc64-*linux*)
5007 LD="${LD-ld} -m elf32ppclinux"
5008 ;;
5009 s390x-*linux*)
5010 LD="${LD-ld} -m elf_s390"
5011 ;;
5012 sparc64-*linux*)
5013 LD="${LD-ld} -m elf32_sparc"
5014 ;;
5015 esac
5016 ;;
5017 *64-bit*)
5018 case $host in
5019 x86_64-*kfreebsd*-gnu)
5020 LD="${LD-ld} -m elf_x86_64_fbsd"
5021 ;;
5022 x86_64-*linux*)
5023 LD="${LD-ld} -m elf_x86_64"
5024 ;;
5025 ppc*-*linux*|powerpc*-*linux*)
5026 LD="${LD-ld} -m elf64ppc"
5027 ;;
5028 s390*-*linux*|s390*-*tpf*)
5029 LD="${LD-ld} -m elf64_s390"
5030 ;;
5031 sparc*-*linux*)
5032 LD="${LD-ld} -m elf64_sparc"
5033 ;;
5034 esac
5035 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005036 esac
5037 fi
5038 rm -rf conftest*
5039 ;;
drh71eb93e2001-09-28 01:34:43 +00005040
a.rottmann9bc8b932004-02-29 15:18:31 +00005041*-*-sco3.2v5*)
5042 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5043 SAVE_CFLAGS="$CFLAGS"
5044 CFLAGS="$CFLAGS -belf"
drh8b727472009-01-19 18:18:40 +00005045 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5046$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005047if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005048 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005049else
5050 ac_ext=c
5051ac_cpp='$CPP $CPPFLAGS'
5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005055
a.rottmann9bc8b932004-02-29 15:18:31 +00005056 cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h. */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005062
a.rottmann9bc8b932004-02-29 15:18:31 +00005063int
5064main ()
drh71eb93e2001-09-28 01:34:43 +00005065{
drh71eb93e2001-09-28 01:34:43 +00005066
a.rottmann9bc8b932004-02-29 15:18:31 +00005067 ;
5068 return 0;
drh71eb93e2001-09-28 01:34:43 +00005069}
a.rottmann9bc8b932004-02-29 15:18:31 +00005070_ACEOF
5071rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005072if { (ac_try="$ac_link"
5073case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076esac
5077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078$as_echo "$ac_try_echo") >&5
5079 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00005080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } && {
5086 test -z "$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 } && test -s conftest$ac_exeext && {
5089 test "$cross_compiling" = yes ||
5090 $as_test_x conftest$ac_exeext
5091 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005092 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005093else
drh8b727472009-01-19 18:18:40 +00005094 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005095sed 's/^/| /' conftest.$ac_ext >&5
5096
drh8b727472009-01-19 18:18:40 +00005097 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005098fi
drh8b727472009-01-19 18:18:40 +00005099
5100rm -rf conftest.dSYM
5101rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00005102 conftest$ac_exeext conftest.$ac_ext
5103 ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
drh71eb93e2001-09-28 01:34:43 +00005109fi
drh8b727472009-01-19 18:18:40 +00005110{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5111$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005112 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5113 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5114 CFLAGS="$SAVE_CFLAGS"
5115 fi
5116 ;;
vapier7f19c022007-02-17 14:46:31 +00005117sparc*-*solaris*)
5118 # Find out which ABI we are using.
5119 echo 'int i;' > conftest.$ac_ext
5120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121 (eval $ac_compile) 2>&5
5122 ac_status=$?
drh8b727472009-01-19 18:18:40 +00005123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
vapier7f19c022007-02-17 14:46:31 +00005124 (exit $ac_status); }; then
5125 case `/usr/bin/file conftest.o` in
5126 *64-bit*)
5127 case $lt_cv_prog_gnu_ld in
5128 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005129 *)
5130 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5131 LD="${LD-ld} -64"
5132 fi
5133 ;;
vapier7f19c022007-02-17 14:46:31 +00005134 esac
5135 ;;
5136 esac
5137 fi
5138 rm -rf conftest*
5139 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005140esac
5141
5142need_locks="$enable_libtool_lock"
5143
drh71eb93e2001-09-28 01:34:43 +00005144
mlcreech636a9952008-05-05 22:52:56 +00005145 case $host_os in
5146 rhapsody* | darwin*)
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5149set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005152if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005153 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005154else
5155 if test -n "$DSYMUTIL"; then
5156 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005164 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 +00005165 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh8b727472009-01-19 18:18:40 +00005166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005167 break 2
5168 fi
5169done
5170done
drh8b727472009-01-19 18:18:40 +00005171IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005172
5173fi
5174fi
5175DSYMUTIL=$ac_cv_prog_DSYMUTIL
5176if test -n "$DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005177 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5178$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005179else
drh8b727472009-01-19 18:18:40 +00005180 { $as_echo "$as_me:$LINENO: result: no" >&5
5181$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005182fi
5183
drh8b727472009-01-19 18:18:40 +00005184
mlcreech636a9952008-05-05 22:52:56 +00005185fi
5186if test -z "$ac_cv_prog_DSYMUTIL"; then
5187 ac_ct_DSYMUTIL=$DSYMUTIL
5188 # Extract the first word of "dsymutil", so it can be a program name with args.
5189set dummy dsymutil; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005190{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5191$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005192if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005193 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005194else
5195 if test -n "$ac_ct_DSYMUTIL"; then
5196 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5197else
5198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005204 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 +00005205 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh8b727472009-01-19 18:18:40 +00005206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005207 break 2
5208 fi
5209done
5210done
drh8b727472009-01-19 18:18:40 +00005211IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005212
5213fi
5214fi
5215ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5216if test -n "$ac_ct_DSYMUTIL"; then
drh8b727472009-01-19 18:18:40 +00005217 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5218$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005219else
drh8b727472009-01-19 18:18:40 +00005220 { $as_echo "$as_me:$LINENO: result: no" >&5
5221$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005222fi
5223
drh8b727472009-01-19 18:18:40 +00005224 if test "x$ac_ct_DSYMUTIL" = x; then
5225 DSYMUTIL=":"
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005229{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005231ac_tool_warned=yes ;;
5232esac
5233 DSYMUTIL=$ac_ct_DSYMUTIL
5234 fi
mlcreech636a9952008-05-05 22:52:56 +00005235else
5236 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5237fi
5238
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5241set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005244if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005245 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005246else
5247 if test -n "$NMEDIT"; then
5248 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005256 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 +00005257 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh8b727472009-01-19 18:18:40 +00005258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005259 break 2
5260 fi
5261done
5262done
drh8b727472009-01-19 18:18:40 +00005263IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005264
5265fi
5266fi
5267NMEDIT=$ac_cv_prog_NMEDIT
5268if test -n "$NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005269 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5270$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005271else
drh8b727472009-01-19 18:18:40 +00005272 { $as_echo "$as_me:$LINENO: result: no" >&5
5273$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005274fi
5275
drh8b727472009-01-19 18:18:40 +00005276
mlcreech636a9952008-05-05 22:52:56 +00005277fi
5278if test -z "$ac_cv_prog_NMEDIT"; then
5279 ac_ct_NMEDIT=$NMEDIT
5280 # Extract the first word of "nmedit", so it can be a program name with args.
5281set dummy nmedit; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005282{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5283$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005284if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005285 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005286else
5287 if test -n "$ac_ct_NMEDIT"; then
5288 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5289else
5290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291for as_dir in $PATH
5292do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005296 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 +00005297 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh8b727472009-01-19 18:18:40 +00005298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005299 break 2
5300 fi
5301done
5302done
drh8b727472009-01-19 18:18:40 +00005303IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005304
5305fi
5306fi
5307ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5308if test -n "$ac_ct_NMEDIT"; then
drh8b727472009-01-19 18:18:40 +00005309 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5310$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005311else
drh8b727472009-01-19 18:18:40 +00005312 { $as_echo "$as_me:$LINENO: result: no" >&5
5313$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005314fi
5315
drh8b727472009-01-19 18:18:40 +00005316 if test "x$ac_ct_NMEDIT" = x; then
5317 NMEDIT=":"
5318 else
5319 case $cross_compiling:$ac_tool_warned in
5320yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005321{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005323ac_tool_warned=yes ;;
5324esac
5325 NMEDIT=$ac_ct_NMEDIT
5326 fi
mlcreech636a9952008-05-05 22:52:56 +00005327else
5328 NMEDIT="$ac_cv_prog_NMEDIT"
5329fi
5330
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5333set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005336if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005337 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005338else
5339 if test -n "$LIPO"; then
5340 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005348 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 +00005349 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh8b727472009-01-19 18:18:40 +00005350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005351 break 2
5352 fi
5353done
5354done
drh8b727472009-01-19 18:18:40 +00005355IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005356
5357fi
5358fi
5359LIPO=$ac_cv_prog_LIPO
5360if test -n "$LIPO"; then
drh8b727472009-01-19 18:18:40 +00005361 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5362$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005363else
drh8b727472009-01-19 18:18:40 +00005364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005366fi
5367
drh8b727472009-01-19 18:18:40 +00005368
mlcreech636a9952008-05-05 22:52:56 +00005369fi
5370if test -z "$ac_cv_prog_LIPO"; then
5371 ac_ct_LIPO=$LIPO
5372 # Extract the first word of "lipo", so it can be a program name with args.
5373set dummy lipo; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005376if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005377 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005378else
5379 if test -n "$ac_ct_LIPO"; then
5380 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5381else
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005388 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 +00005389 ac_cv_prog_ac_ct_LIPO="lipo"
drh8b727472009-01-19 18:18:40 +00005390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005391 break 2
5392 fi
5393done
5394done
drh8b727472009-01-19 18:18:40 +00005395IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005396
5397fi
5398fi
5399ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5400if test -n "$ac_ct_LIPO"; then
drh8b727472009-01-19 18:18:40 +00005401 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5402$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005403else
drh8b727472009-01-19 18:18:40 +00005404 { $as_echo "$as_me:$LINENO: result: no" >&5
5405$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005406fi
5407
drh8b727472009-01-19 18:18:40 +00005408 if test "x$ac_ct_LIPO" = x; then
5409 LIPO=":"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005413{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005415ac_tool_warned=yes ;;
5416esac
5417 LIPO=$ac_ct_LIPO
5418 fi
mlcreech636a9952008-05-05 22:52:56 +00005419else
5420 LIPO="$ac_cv_prog_LIPO"
5421fi
5422
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5425set dummy ${ac_tool_prefix}otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005426{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005428if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005429 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005430else
5431 if test -n "$OTOOL"; then
5432 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005440 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 +00005441 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh8b727472009-01-19 18:18:40 +00005442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005443 break 2
5444 fi
5445done
5446done
drh8b727472009-01-19 18:18:40 +00005447IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005448
5449fi
5450fi
5451OTOOL=$ac_cv_prog_OTOOL
5452if test -n "$OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005453 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5454$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005455else
drh8b727472009-01-19 18:18:40 +00005456 { $as_echo "$as_me:$LINENO: result: no" >&5
5457$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005458fi
5459
drh8b727472009-01-19 18:18:40 +00005460
mlcreech636a9952008-05-05 22:52:56 +00005461fi
5462if test -z "$ac_cv_prog_OTOOL"; then
5463 ac_ct_OTOOL=$OTOOL
5464 # Extract the first word of "otool", so it can be a program name with args.
5465set dummy otool; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005466{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005468if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005469 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005470else
5471 if test -n "$ac_ct_OTOOL"; then
5472 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005480 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 +00005481 ac_cv_prog_ac_ct_OTOOL="otool"
drh8b727472009-01-19 18:18:40 +00005482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005483 break 2
5484 fi
5485done
5486done
drh8b727472009-01-19 18:18:40 +00005487IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005488
5489fi
5490fi
5491ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5492if test -n "$ac_ct_OTOOL"; then
drh8b727472009-01-19 18:18:40 +00005493 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5494$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005495else
drh8b727472009-01-19 18:18:40 +00005496 { $as_echo "$as_me:$LINENO: result: no" >&5
5497$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005498fi
5499
drh8b727472009-01-19 18:18:40 +00005500 if test "x$ac_ct_OTOOL" = x; then
5501 OTOOL=":"
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005505{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005507ac_tool_warned=yes ;;
5508esac
5509 OTOOL=$ac_ct_OTOOL
5510 fi
mlcreech636a9952008-05-05 22:52:56 +00005511else
5512 OTOOL="$ac_cv_prog_OTOOL"
5513fi
5514
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5517set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005520if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005521 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005522else
5523 if test -n "$OTOOL64"; then
5524 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005532 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 +00005533 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh8b727472009-01-19 18:18:40 +00005534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005535 break 2
5536 fi
5537done
5538done
drh8b727472009-01-19 18:18:40 +00005539IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005540
5541fi
5542fi
5543OTOOL64=$ac_cv_prog_OTOOL64
5544if test -n "$OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005545 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5546$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005547else
drh8b727472009-01-19 18:18:40 +00005548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005550fi
5551
drh8b727472009-01-19 18:18:40 +00005552
mlcreech636a9952008-05-05 22:52:56 +00005553fi
5554if test -z "$ac_cv_prog_OTOOL64"; then
5555 ac_ct_OTOOL64=$OTOOL64
5556 # Extract the first word of "otool64", so it can be a program name with args.
5557set dummy otool64; ac_word=$2
drh8b727472009-01-19 18:18:40 +00005558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5559$as_echo_n "checking for $ac_word... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005560if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005561 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005562else
5563 if test -n "$ac_ct_OTOOL64"; then
5564 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5565else
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005572 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 +00005573 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh8b727472009-01-19 18:18:40 +00005574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005575 break 2
5576 fi
5577done
5578done
drh8b727472009-01-19 18:18:40 +00005579IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005580
5581fi
5582fi
5583ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5584if test -n "$ac_ct_OTOOL64"; then
drh8b727472009-01-19 18:18:40 +00005585 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5586$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005587else
drh8b727472009-01-19 18:18:40 +00005588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005590fi
5591
drh8b727472009-01-19 18:18:40 +00005592 if test "x$ac_ct_OTOOL64" = x; then
5593 OTOOL64=":"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596yes:)
vapier6acb2cf2009-01-28 04:46:28 +00005597{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005599ac_tool_warned=yes ;;
5600esac
5601 OTOOL64=$ac_ct_OTOOL64
5602 fi
mlcreech636a9952008-05-05 22:52:56 +00005603else
5604 OTOOL64="$ac_cv_prog_OTOOL64"
5605fi
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
drh8b727472009-01-19 18:18:40 +00005633 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5634$as_echo_n "checking for -single_module linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005635if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005636 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005637else
5638 lt_cv_apple_cc_single_mod=no
5639 if test -z "${LT_MULTI_MODULE}"; then
5640 # By default we will add the -single_module flag. You can override
5641 # by either setting the environment variable LT_MULTI_MODULE
5642 # non-empty at configure time, or by adding -multi_module to the
5643 # link flags.
5644 rm -rf libconftest.dylib*
5645 echo "int foo(void){return 1;}" > conftest.c
5646 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5647-dynamiclib -Wl,-single_module conftest.c" >&5
5648 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5649 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5650 _lt_result=$?
5651 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5652 lt_cv_apple_cc_single_mod=yes
5653 else
5654 cat conftest.err >&5
5655 fi
5656 rm -rf libconftest.dylib*
5657 rm -f conftest.*
5658 fi
5659fi
drh8b727472009-01-19 18:18:40 +00005660{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5661$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5662 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5663$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005664if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005665 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005666else
5667 lt_cv_ld_exported_symbols_list=no
5668 save_LDFLAGS=$LDFLAGS
5669 echo "_main" > conftest.sym
5670 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5671 cat >conftest.$ac_ext <<_ACEOF
5672/* confdefs.h. */
5673_ACEOF
5674cat confdefs.h >>conftest.$ac_ext
5675cat >>conftest.$ac_ext <<_ACEOF
5676/* end confdefs.h. */
5677
5678int
5679main ()
5680{
5681
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00005687if { (ac_try="$ac_link"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5693$as_echo "$ac_try_echo") >&5
5694 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00005695 ac_status=$?
5696 grep -v '^ *+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest$ac_exeext && {
5704 test "$cross_compiling" = yes ||
5705 $as_test_x conftest$ac_exeext
5706 }; then
mlcreech636a9952008-05-05 22:52:56 +00005707 lt_cv_ld_exported_symbols_list=yes
5708else
drh8b727472009-01-19 18:18:40 +00005709 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00005710sed 's/^/| /' conftest.$ac_ext >&5
5711
drh8b727472009-01-19 18:18:40 +00005712 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005713fi
drh8b727472009-01-19 18:18:40 +00005714
5715rm -rf conftest.dSYM
5716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00005717 conftest$ac_exeext conftest.$ac_ext
5718 LDFLAGS="$save_LDFLAGS"
5719
5720fi
drh8b727472009-01-19 18:18:40 +00005721{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5722$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005723 case $host_os in
5724 rhapsody* | darwin1.[012])
5725 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5726 darwin1.*)
5727 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5728 darwin*) # darwin 5.x on
5729 # if running on 10.5 or later, the deployment target defaults
5730 # to the OS version, if on x86, and 10.4, the deployment
5731 # target defaults to 10.4. Don't you love it?
5732 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5733 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5734 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5735 10.[012]*)
5736 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5737 10.*)
5738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5739 esac
5740 ;;
5741 esac
5742 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5743 _lt_dar_single_mod='$single_module'
5744 fi
5745 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5746 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5747 else
5748 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5749 fi
5750 if test "$DSYMUTIL" != ":"; then
5751 _lt_dsymutil='~$DSYMUTIL $lib || :'
5752 else
5753 _lt_dsymutil=
5754 fi
5755 ;;
5756 esac
5757
a.rottmann84e63352003-03-24 09:42:16 +00005758ac_ext=c
5759ac_cpp='$CPP $CPPFLAGS'
5760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh8b727472009-01-19 18:18:40 +00005763{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5764$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005765# On Suns, sometimes $CPP names a directory.
5766if test -n "$CPP" && test -d "$CPP"; then
5767 CPP=
5768fi
5769if test -z "$CPP"; then
5770 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005771 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005772else
a.rottmann84e63352003-03-24 09:42:16 +00005773 # Double quotes because CPP needs to be expanded
5774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5775 do
5776 ac_preproc_ok=false
5777for ac_c_preproc_warn_flag in '' yes
5778do
5779 # Use a header file that comes with gcc, so configuring glibc
5780 # with a fresh cross-compiler works.
5781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5782 # <limits.h> exists even on freestanding compilers.
5783 # On the NeXT, cc -E runs the code through the compiler's parser,
5784 # not just through cpp. "Syntax error" is here to catch this case.
5785 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005786/* confdefs.h. */
5787_ACEOF
5788cat confdefs.h >>conftest.$ac_ext
5789cat >>conftest.$ac_ext <<_ACEOF
5790/* end confdefs.h. */
5791#ifdef __STDC__
5792# include <limits.h>
5793#else
5794# include <assert.h>
5795#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005796 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005797_ACEOF
drh8b727472009-01-19 18:18:40 +00005798if { (ac_try="$ac_cpp conftest.$ac_ext"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5804$as_echo "$ac_try_echo") >&5
5805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } >/dev/null && {
5812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005815 :
5816else
drh8b727472009-01-19 18:18:40 +00005817 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005818sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 # Broken: fails on valid input.
5821continue
5822fi
drh8b727472009-01-19 18:18:40 +00005823
a.rottmann84e63352003-03-24 09:42:16 +00005824rm -f conftest.err conftest.$ac_ext
5825
drh8b727472009-01-19 18:18:40 +00005826 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005827 # can be detected and how.
5828 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
5834#include <ac_nonexistent.h>
5835_ACEOF
drh8b727472009-01-19 18:18:40 +00005836if { (ac_try="$ac_cpp conftest.$ac_ext"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5842$as_echo "$ac_try_echo") >&5
5843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null && {
5850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005853 # Broken: success on invalid input.
5854continue
5855else
drh8b727472009-01-19 18:18:40 +00005856 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 # Passes both tests.
5860ac_preproc_ok=:
5861break
5862fi
drh8b727472009-01-19 18:18:40 +00005863
a.rottmann84e63352003-03-24 09:42:16 +00005864rm -f conftest.err conftest.$ac_ext
5865
5866done
5867# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868rm -f conftest.err conftest.$ac_ext
5869if $ac_preproc_ok; then
5870 break
5871fi
5872
5873 done
5874 ac_cv_prog_CPP=$CPP
5875
5876fi
5877 CPP=$ac_cv_prog_CPP
5878else
5879 ac_cv_prog_CPP=$CPP
5880fi
drh8b727472009-01-19 18:18:40 +00005881{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
5882$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005883ac_preproc_ok=false
5884for ac_c_preproc_warn_flag in '' yes
5885do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005903 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005904_ACEOF
drh8b727472009-01-19 18:18:40 +00005905if { (ac_try="$ac_cpp conftest.$ac_ext"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911$as_echo "$ac_try_echo") >&5
5912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } >/dev/null && {
5919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005922 :
5923else
drh8b727472009-01-19 18:18:40 +00005924 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927 # Broken: fails on valid input.
5928continue
5929fi
drh8b727472009-01-19 18:18:40 +00005930
a.rottmann84e63352003-03-24 09:42:16 +00005931rm -f conftest.err conftest.$ac_ext
5932
drh8b727472009-01-19 18:18:40 +00005933 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005934 # can be detected and how.
5935 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
5941#include <ac_nonexistent.h>
5942_ACEOF
drh8b727472009-01-19 18:18:40 +00005943if { (ac_try="$ac_cpp conftest.$ac_ext"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949$as_echo "$ac_try_echo") >&5
5950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00005951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00005955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } >/dev/null && {
5957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005960 # Broken: success on invalid input.
5961continue
5962else
drh8b727472009-01-19 18:18:40 +00005963 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00005964sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 # Passes both tests.
5967ac_preproc_ok=:
5968break
5969fi
drh8b727472009-01-19 18:18:40 +00005970
a.rottmann84e63352003-03-24 09:42:16 +00005971rm -f conftest.err conftest.$ac_ext
5972
5973done
5974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975rm -f conftest.err conftest.$ac_ext
5976if $ac_preproc_ok; then
5977 :
5978else
vapier6acb2cf2009-01-28 04:46:28 +00005979 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005982See \`config.log' for more details." >&5
drh8b727472009-01-19 18:18:40 +00005983$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
a.rottmann84e63352003-03-24 09:42:16 +00005984See \`config.log' for more details." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00005985 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +00005986fi
5987
5988ac_ext=c
5989ac_cpp='$CPP $CPPFLAGS'
5990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993
5994
drh8b727472009-01-19 18:18:40 +00005995{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5996$as_echo_n "checking for ANSI C header files... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005997if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005998 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00005999else
6000 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
6006#include <stdlib.h>
6007#include <stdarg.h>
6008#include <string.h>
6009#include <float.h>
6010
6011int
6012main ()
6013{
6014
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006020if { (ac_try="$ac_compile"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
6025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026$as_echo "$ac_try_echo") >&5
6027 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006028 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006037 ac_cv_header_stdc=yes
6038else
drh8b727472009-01-19 18:18:40 +00006039 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006040sed 's/^/| /' conftest.$ac_ext >&5
6041
drh8b727472009-01-19 18:18:40 +00006042 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006043fi
drh8b727472009-01-19 18:18:40 +00006044
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006046
6047if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006050/* confdefs.h. */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h. */
6055#include <string.h>
6056
6057_ACEOF
6058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6059 $EGREP "memchr" >/dev/null 2>&1; then
6060 :
6061else
6062 ac_cv_header_stdc=no
6063fi
6064rm -f conftest*
6065
6066fi
6067
6068if test $ac_cv_header_stdc = yes; then
6069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6070 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
6076#include <stdlib.h>
6077
6078_ACEOF
6079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "free" >/dev/null 2>&1; then
6081 :
6082else
6083 ac_cv_header_stdc=no
6084fi
6085rm -f conftest*
6086
6087fi
6088
6089if test $ac_cv_header_stdc = yes; then
6090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6091 if test "$cross_compiling" = yes; then
6092 :
6093else
6094 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
6100#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006101#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006102#if ((' ' & 0x0FF) == 0x020)
6103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105#else
6106# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111#endif
6112
6113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6114int
6115main ()
6116{
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006120 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006121 return 2;
6122 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006123}
6124_ACEOF
6125rm -f conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00006126if { (ac_try="$ac_link"
6127case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130esac
6131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6132$as_echo "$ac_try_echo") >&5
6133 (eval "$ac_link") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006134 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
drh8b727472009-01-19 18:18:40 +00006137 { (case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140esac
6141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142$as_echo "$ac_try_echo") >&5
6143 (eval "$ac_try") 2>&5
a.rottmann84e63352003-03-24 09:42:16 +00006144 ac_status=$?
drh8b727472009-01-19 18:18:40 +00006145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006146 (exit $ac_status); }; }; then
6147 :
6148else
drh8b727472009-01-19 18:18:40 +00006149 $as_echo "$as_me: program exited with status $ac_status" >&5
6150$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153( exit $ac_status )
6154ac_cv_header_stdc=no
6155fi
drh8b727472009-01-19 18:18:40 +00006156rm -rf conftest.dSYM
6157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6158fi
6159
6160
a.rottmann84e63352003-03-24 09:42:16 +00006161fi
6162fi
drh8b727472009-01-19 18:18:40 +00006163{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6164$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006165if test $ac_cv_header_stdc = yes; then
6166
6167cat >>confdefs.h <<\_ACEOF
6168#define STDC_HEADERS 1
6169_ACEOF
6170
6171fi
6172
6173# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006184 inttypes.h stdint.h unistd.h
a.rottmann84e63352003-03-24 09:42:16 +00006185do
drh8b727472009-01-19 18:18:40 +00006186as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6187{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6188$as_echo_n "checking for $ac_header... " >&6; }
6189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6190 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006191else
6192 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198$ac_includes_default
6199
6200#include <$ac_header>
6201_ACEOF
6202rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006203if { (ac_try="$ac_compile"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6209$as_echo "$ac_try_echo") >&5
6210 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006211 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006220 eval "$as_ac_Header=yes"
6221else
drh8b727472009-01-19 18:18:40 +00006222 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006223sed 's/^/| /' conftest.$ac_ext >&5
6224
drh8b727472009-01-19 18:18:40 +00006225 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006226fi
drh8b727472009-01-19 18:18:40 +00006227
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006229fi
drh8b727472009-01-19 18:18:40 +00006230ac_res=`eval 'as_val=${'$as_ac_Header'}
6231 $as_echo "$as_val"'`
6232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6233$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00006234as_val=`eval 'as_val=${'$as_ac_Header'}
6235 $as_echo "$as_val"'`
6236 if test "x$as_val" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006237 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006238#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006239_ACEOF
6240
6241fi
6242
6243done
6244
6245
6246
6247for ac_header in dlfcn.h
6248do
drh8b727472009-01-19 18:18:40 +00006249as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6251$as_echo_n "checking for $ac_header... " >&6; }
6252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6253 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006254else
mlcreech636a9952008-05-05 22:52:56 +00006255 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
6261$ac_includes_default
mlcreech636a9952008-05-05 22:52:56 +00006262
a.rottmann84e63352003-03-24 09:42:16 +00006263#include <$ac_header>
6264_ACEOF
6265rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +00006266if { (ac_try="$ac_compile"
6267case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272$as_echo "$ac_try_echo") >&5
6273 (eval "$ac_compile") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00006274 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00006275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00006278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +00006283 eval "$as_ac_Header=yes"
a.rottmann84e63352003-03-24 09:42:16 +00006284else
drh8b727472009-01-19 18:18:40 +00006285 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00006286sed 's/^/| /' conftest.$ac_ext >&5
6287
drh8b727472009-01-19 18:18:40 +00006288 eval "$as_ac_Header=no"
a.rottmann84e63352003-03-24 09:42:16 +00006289fi
drh8b727472009-01-19 18:18:40 +00006290
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006292fi
drh8b727472009-01-19 18:18:40 +00006293ac_res=`eval 'as_val=${'$as_ac_Header'}
6294 $as_echo "$as_val"'`
6295 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6296$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00006297as_val=`eval 'as_val=${'$as_ac_Header'}
6298 $as_echo "$as_val"'`
6299 if test "x$as_val" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006300 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006302_ACEOF
6303
6304fi
6305
drh71eb93e2001-09-28 01:34:43 +00006306done
6307
drh71eb93e2001-09-28 01:34:43 +00006308
drh71eb93e2001-09-28 01:34:43 +00006309
mlcreech636a9952008-05-05 22:52:56 +00006310# Set options
mlcreech94984912008-03-04 19:03:08 +00006311
drh71eb93e2001-09-28 01:34:43 +00006312
drh71eb93e2001-09-28 01:34:43 +00006313
mlcreech636a9952008-05-05 22:52:56 +00006314 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006315
a.rottmann9bc8b932004-02-29 15:18:31 +00006316
mlcreech636a9952008-05-05 22:52:56 +00006317 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006318
a.rottmann9bc8b932004-02-29 15:18:31 +00006319
drh8b727472009-01-19 18:18:40 +00006320 # Check whether --enable-shared was given.
mlcreech636a9952008-05-05 22:52:56 +00006321if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006322 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006323 case $enableval in
6324 yes) enable_shared=yes ;;
6325 no) enable_shared=no ;;
6326 *)
6327 enable_shared=no
6328 # Look at the argument we got. We use all the common list separators.
6329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6330 for pkg in $enableval; do
6331 IFS="$lt_save_ifs"
6332 if test "X$pkg" = "X$p"; then
6333 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006334 fi
mlcreech636a9952008-05-05 22:52:56 +00006335 done
6336 IFS="$lt_save_ifs"
6337 ;;
6338 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006339else
mlcreech636a9952008-05-05 22:52:56 +00006340 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006341fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006342
mlcreech636a9952008-05-05 22:52:56 +00006343
6344
6345
6346
6347
6348
6349
drh8b727472009-01-19 18:18:40 +00006350
6351 # Check whether --enable-static was given.
mlcreech636a9952008-05-05 22:52:56 +00006352if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006353 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006354 case $enableval in
6355 yes) enable_static=yes ;;
6356 no) enable_static=no ;;
6357 *)
6358 enable_static=no
6359 # Look at the argument we got. We use all the common list separators.
6360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6361 for pkg in $enableval; do
6362 IFS="$lt_save_ifs"
6363 if test "X$pkg" = "X$p"; then
6364 enable_static=yes
6365 fi
6366 done
6367 IFS="$lt_save_ifs"
6368 ;;
6369 esac
6370else
6371 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006372fi
mlcreech636a9952008-05-05 22:52:56 +00006373
6374
6375
6376
6377
6378
6379
6380
6381
drh8b727472009-01-19 18:18:40 +00006382
6383# Check whether --with-pic was given.
mlcreech636a9952008-05-05 22:52:56 +00006384if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006385 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006386else
6387 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006388fi
6389
mlcreech636a9952008-05-05 22:52:56 +00006390
6391test -z "$pic_mode" && pic_mode=default
6392
6393
6394
6395
6396
6397
6398
drh8b727472009-01-19 18:18:40 +00006399 # Check whether --enable-fast-install was given.
mlcreech636a9952008-05-05 22:52:56 +00006400if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006401 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006402 case $enableval in
6403 yes) enable_fast_install=yes ;;
6404 no) enable_fast_install=no ;;
6405 *)
6406 enable_fast_install=no
6407 # Look at the argument we got. We use all the common list separators.
6408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6409 for pkg in $enableval; do
6410 IFS="$lt_save_ifs"
6411 if test "X$pkg" = "X$p"; then
6412 enable_fast_install=yes
6413 fi
6414 done
6415 IFS="$lt_save_ifs"
6416 ;;
6417 esac
6418else
6419 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006420fi
6421
mlcreech636a9952008-05-05 22:52:56 +00006422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432# This can be used to rebuild libtool when needed
6433LIBTOOL_DEPS="$ltmain"
6434
6435# Always use our own libtool.
6436LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462test -z "$LN_S" && LN_S="ln -s"
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477if test -n "${ZSH_VERSION+set}" ; then
6478 setopt NO_GLOB_SUBST
6479fi
6480
drh8b727472009-01-19 18:18:40 +00006481{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6482$as_echo_n "checking for objdir... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006483if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006484 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006485else
6486 rm -f .libs 2>/dev/null
6487mkdir .libs 2>/dev/null
6488if test -d .libs; then
6489 lt_cv_objdir=.libs
6490else
6491 # MS-DOS does not allow filenames that begin with a dot.
6492 lt_cv_objdir=_libs
6493fi
6494rmdir .libs 2>/dev/null
6495fi
drh8b727472009-01-19 18:18:40 +00006496{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6497$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006498objdir=$lt_cv_objdir
6499
6500
6501
6502
6503
mlcreech636a9952008-05-05 22:52:56 +00006504cat >>confdefs.h <<_ACEOF
6505#define LT_OBJDIR "$lt_cv_objdir/"
6506_ACEOF
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
a.rottmann9bc8b932004-02-29 15:18:31 +00006524case $host_os in
6525aix3*)
6526 # AIX sometimes has problems with the GCC collect2 program. For some
6527 # reason, if we set the COLLECT_NAMES environment variable, the problems
6528 # vanish in a puff of smoke.
6529 if test "X${COLLECT_NAMES+set}" != Xset; then
6530 COLLECT_NAMES=
6531 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006532 fi
6533 ;;
6534esac
6535
a.rottmann9bc8b932004-02-29 15:18:31 +00006536# Sed substitution that helps us do robust quoting. It backslashifies
6537# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006538sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006539
6540# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006541double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006542
6543# Sed substitution to delay expansion of an escaped shell variable in a
6544# double_quote_subst'ed string.
6545delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6546
mlcreech636a9952008-05-05 22:52:56 +00006547# Sed substitution to delay expansion of an escaped single quote.
6548delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6549
a.rottmann9bc8b932004-02-29 15:18:31 +00006550# Sed substitution to avoid accidental globbing in evaled expressions
6551no_glob_subst='s/\*/\\\*/g'
6552
a.rottmann9bc8b932004-02-29 15:18:31 +00006553# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006554ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006555can_build_shared=yes
6556
vapier7f19c022007-02-17 14:46:31 +00006557# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006558# which needs '.lib').
6559libext=a
mlcreech636a9952008-05-05 22:52:56 +00006560
a.rottmann9bc8b932004-02-29 15:18:31 +00006561with_gnu_ld="$lt_cv_prog_gnu_ld"
6562
a.rottmann84e63352003-03-24 09:42:16 +00006563old_CC="$CC"
6564old_CFLAGS="$CFLAGS"
6565
6566# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006567test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006568test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006569test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006570test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006571test -z "$ac_objext" && ac_objext=o
6572
vapier7f19c022007-02-17 14:46:31 +00006573for cc_temp in $compiler""; do
6574 case $cc_temp in
6575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6577 \-*) ;;
6578 *) break;;
6579 esac
6580done
mlcreech636a9952008-05-05 22:52:56 +00006581cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006582
6583
a.rottmann9bc8b932004-02-29 15:18:31 +00006584# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006585test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006586case $deplibs_check_method in
6587file_magic*)
6588 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh8b727472009-01-19 18:18:40 +00006589 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6590$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006591if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006592 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006593else
a.rottmann9bc8b932004-02-29 15:18:31 +00006594 case $MAGIC_CMD in
6595[\\/*] | ?:[\\/]*)
6596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6597 ;;
6598*)
6599 lt_save_MAGIC_CMD="$MAGIC_CMD"
6600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6601 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6602 for ac_dir in $ac_dummy; do
6603 IFS="$lt_save_ifs"
6604 test -z "$ac_dir" && ac_dir=.
6605 if test -f $ac_dir/${ac_tool_prefix}file; then
6606 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6607 if test -n "$file_magic_test_file"; then
6608 case $deplibs_check_method in
6609 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006610 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6612 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6613 $EGREP "$file_magic_regex" > /dev/null; then
6614 :
6615 else
mlcreech636a9952008-05-05 22:52:56 +00006616 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006617
a.rottmann9bc8b932004-02-29 15:18:31 +00006618*** Warning: the command libtool uses to detect shared libraries,
6619*** $file_magic_cmd, produces output that libtool cannot recognize.
6620*** The result is that libtool may fail to recognize shared libraries
6621*** as such. This will affect the creation of libtool libraries that
6622*** depend on shared libraries, but programs linked with such libtool
6623*** libraries will work regardless of this problem. Nevertheless, you
6624*** may want to report the problem to your system manager and/or to
6625*** bug-libtool@gnu.org
6626
mlcreech636a9952008-05-05 22:52:56 +00006627_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006628 fi ;;
6629 esac
6630 fi
6631 break
6632 fi
6633 done
6634 IFS="$lt_save_ifs"
6635 MAGIC_CMD="$lt_save_MAGIC_CMD"
6636 ;;
6637esac
6638fi
6639
6640MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6641if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006642 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6643$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006644else
drh8b727472009-01-19 18:18:40 +00006645 { $as_echo "$as_me:$LINENO: result: no" >&5
6646$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006647fi
6648
mlcreech636a9952008-05-05 22:52:56 +00006649
6650
6651
6652
a.rottmann9bc8b932004-02-29 15:18:31 +00006653if test -z "$lt_cv_path_MAGIC_CMD"; then
6654 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00006655 { $as_echo "$as_me:$LINENO: checking for file" >&5
6656$as_echo_n "checking for file... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006657if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006658 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006659else
6660 case $MAGIC_CMD in
6661[\\/*] | ?:[\\/]*)
6662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6663 ;;
6664*)
6665 lt_save_MAGIC_CMD="$MAGIC_CMD"
6666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6667 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6668 for ac_dir in $ac_dummy; do
6669 IFS="$lt_save_ifs"
6670 test -z "$ac_dir" && ac_dir=.
6671 if test -f $ac_dir/file; then
6672 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6673 if test -n "$file_magic_test_file"; then
6674 case $deplibs_check_method in
6675 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006676 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6679 $EGREP "$file_magic_regex" > /dev/null; then
6680 :
6681 else
mlcreech636a9952008-05-05 22:52:56 +00006682 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006683
6684*** Warning: the command libtool uses to detect shared libraries,
6685*** $file_magic_cmd, produces output that libtool cannot recognize.
6686*** The result is that libtool may fail to recognize shared libraries
6687*** as such. This will affect the creation of libtool libraries that
6688*** depend on shared libraries, but programs linked with such libtool
6689*** libraries will work regardless of this problem. Nevertheless, you
6690*** may want to report the problem to your system manager and/or to
6691*** bug-libtool@gnu.org
6692
mlcreech636a9952008-05-05 22:52:56 +00006693_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006694 fi ;;
6695 esac
6696 fi
6697 break
6698 fi
6699 done
6700 IFS="$lt_save_ifs"
6701 MAGIC_CMD="$lt_save_MAGIC_CMD"
6702 ;;
6703esac
6704fi
6705
6706MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6707if test -n "$MAGIC_CMD"; then
drh8b727472009-01-19 18:18:40 +00006708 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6709$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006710else
drh8b727472009-01-19 18:18:40 +00006711 { $as_echo "$as_me:$LINENO: result: no" >&5
6712$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006713fi
6714
mlcreech636a9952008-05-05 22:52:56 +00006715
a.rottmann9bc8b932004-02-29 15:18:31 +00006716 else
6717 MAGIC_CMD=:
6718 fi
6719fi
6720
6721 fi
6722 ;;
6723esac
6724
a.rottmann9bc8b932004-02-29 15:18:31 +00006725# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006726
a.rottmann9bc8b932004-02-29 15:18:31 +00006727lt_save_CC="$CC"
6728ac_ext=c
6729ac_cpp='$CPP $CPPFLAGS'
6730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732ac_compiler_gnu=$ac_cv_c_compiler_gnu
6733
6734
6735# Source file extension for C test sources.
6736ac_ext=c
6737
6738# Object file extension for compiled C test sources.
6739objext=o
6740objext=$objext
6741
6742# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006743lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006744
6745# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006746lt_simple_link_test_code='int main(){return(0);}'
6747
6748
6749
6750
6751
a.rottmann9bc8b932004-02-29 15:18:31 +00006752
6753
6754# If no C compiler was specified, use CC.
6755LTCC=${LTCC-"$CC"}
6756
vapier7f19c022007-02-17 14:46:31 +00006757# If no C compiler flags were specified, use CFLAGS.
6758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6759
a.rottmann9bc8b932004-02-29 15:18:31 +00006760# Allow CC to be a program name with arguments.
6761compiler=$CC
6762
mlcreech636a9952008-05-05 22:52:56 +00006763# Save the default compiler, since it gets overwritten when the other
6764# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6765compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006766
vapier7f19c022007-02-17 14:46:31 +00006767# save warnings/boilerplate of simple test code
6768ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006769echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006770eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6771_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006772$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006773
vapier7f19c022007-02-17 14:46:31 +00006774ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006775echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006776eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6777_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006778$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006779
6780
mlcreech636a9952008-05-05 22:52:56 +00006781if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006782
6783lt_prog_compiler_no_builtin_flag=
6784
6785if test "$GCC" = yes; then
6786 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6787
drh8b727472009-01-19 18:18:40 +00006788 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6789$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006790if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006791 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006792else
6793 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006794 ac_outfile=conftest.$ac_objext
6795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 lt_compiler_flag="-fno-rtti -fno-exceptions"
6797 # Insert the option either (1) after the last *FLAGS variable, or
6798 # (2) before a word containing "conftest.", or (3) at the end.
6799 # Note that $ac_compile itself does not contain backslashes and begins
6800 # with a dollar sign (not a hyphen), so the echo should work correctly.
6801 # The option is referenced via a variable to avoid confusing sed.
6802 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6805 -e 's:$: $lt_compiler_flag:'`
vapierfaa68db2009-04-01 07:38:31 +00006806 (eval echo "\"\$as_me:6806: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 (eval "$lt_compile" 2>conftest.err)
6808 ac_status=$?
6809 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00006810 echo "$as_me:6810: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 if (exit $ac_status) && test -s "$ac_outfile"; then
6812 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006813 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006814 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6816 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 lt_cv_prog_compiler_rtti_exceptions=yes
6818 fi
6819 fi
mlcreech636a9952008-05-05 22:52:56 +00006820 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006821
6822fi
drh8b727472009-01-19 18:18:40 +00006823{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6824$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006825
6826if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6827 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6828else
6829 :
6830fi
6831
6832fi
6833
mlcreech636a9952008-05-05 22:52:56 +00006834
6835
6836
6837
6838
6839 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006840lt_prog_compiler_pic=
6841lt_prog_compiler_static=
6842
drh8b727472009-01-19 18:18:40 +00006843{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6844$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006845
drh71eb93e2001-09-28 01:34:43 +00006846 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006849
6850 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006851 aix*)
6852 # All AIX code is PIC.
6853 if test "$host_cpu" = ia64; then
6854 # AIX 5 now supports IA64 processor
6855 lt_prog_compiler_static='-Bstatic'
6856 fi
drh71eb93e2001-09-28 01:34:43 +00006857 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006858
drh71eb93e2001-09-28 01:34:43 +00006859 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006860 case $host_cpu in
6861 powerpc)
6862 # see comment about AmigaOS4 .so support
6863 lt_prog_compiler_pic='-fPIC'
6864 ;;
6865 m68k)
6866 # FIXME: we need at least 68020 code to build shared libraries, but
6867 # adding the `-m68020' flag to GCC prevents building anything better,
6868 # like `-m68040'.
6869 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6870 ;;
6871 esac
drh71eb93e2001-09-28 01:34:43 +00006872 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006873
mlcreech636a9952008-05-05 22:52:56 +00006874 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006875 # PIC is the default for these OSes.
6876 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006877
vapier6acb2cf2009-01-28 04:46:28 +00006878 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006879 # This hack is so that the source file can tell whether it is being
6880 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006881 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6882 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006883 lt_prog_compiler_pic='-DDLL_EXPORT'
6884 ;;
6885
drh71eb93e2001-09-28 01:34:43 +00006886 darwin* | rhapsody*)
6887 # PIC is the default on this platform
6888 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006889 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006890 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006891
a.rottmann9bc8b932004-02-29 15:18:31 +00006892 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006893 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6894 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6895 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006896 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006897 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006898 # +Z the default
6899 ;;
6900 *)
6901 lt_prog_compiler_pic='-fPIC'
6902 ;;
6903 esac
6904 ;;
6905
mlcreech636a9952008-05-05 22:52:56 +00006906 interix[3-9]*)
6907 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6908 # Instead, we relocate shared libraries at runtime.
6909 ;;
6910
6911 msdosdjgpp*)
6912 # Just because we use GCC doesn't mean we suddenly get shared libraries
6913 # on systems that don't support them.
6914 lt_prog_compiler_can_build_shared=no
6915 enable_shared=no
6916 ;;
6917
6918 *nto* | *qnx*)
6919 # QNX uses GNU C++, but need to define -shared option too, otherwise
6920 # it will coredump.
6921 lt_prog_compiler_pic='-fPIC -shared'
6922 ;;
6923
6924 sysv4*MP*)
6925 if test -d /usr/nec; then
6926 lt_prog_compiler_pic=-Kconform_pic
6927 fi
6928 ;;
6929
drh71eb93e2001-09-28 01:34:43 +00006930 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006931 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006932 ;;
6933 esac
6934 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006936 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 aix*)
6938 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006939 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006940 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006942 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006943 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006944 fi
6945 ;;
6946
vapier6acb2cf2009-01-28 04:46:28 +00006947 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006948 # This hack is so that the source file can tell whether it is being
6949 # built for inclusion in a dll (and should export symbols for example).
6950 lt_prog_compiler_pic='-DDLL_EXPORT'
6951 ;;
6952
a.rottmann84e63352003-03-24 09:42:16 +00006953 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006954 lt_prog_compiler_wl='-Wl,'
6955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6956 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006957 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006958 hppa*64*|ia64*)
6959 # +Z the default
6960 ;;
6961 *)
6962 lt_prog_compiler_pic='+Z'
6963 ;;
6964 esac
6965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6966 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006967 ;;
6968
6969 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006970 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006971 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006973 ;;
6974
mlcreech636a9952008-05-05 22:52:56 +00006975 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006976 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006977 # old Intel for x86_64 which still supported -KPIC.
6978 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006979 lt_prog_compiler_wl='-Wl,'
6980 lt_prog_compiler_pic='-KPIC'
6981 lt_prog_compiler_static='-static'
6982 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006983 # icc used to be incompatible with GCC.
6984 # ICC 10 doesn't accept -KPIC any more.
6985 icc* | ifort*)
6986 lt_prog_compiler_wl='-Wl,'
6987 lt_prog_compiler_pic='-fPIC'
6988 lt_prog_compiler_static='-static'
6989 ;;
6990 # Lahey Fortran 8.1.
6991 lf95*)
6992 lt_prog_compiler_wl='-Wl,'
6993 lt_prog_compiler_pic='--shared'
6994 lt_prog_compiler_static='--static'
6995 ;;
vapier7f19c022007-02-17 14:46:31 +00006996 pgcc* | pgf77* | pgf90* | pgf95*)
6997 # Portland Group compilers (*not* the Pentium gcc compiler,
6998 # which looks to be a dead project)
6999 lt_prog_compiler_wl='-Wl,'
7000 lt_prog_compiler_pic='-fpic'
7001 lt_prog_compiler_static='-Bstatic'
7002 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007003 ccc*)
7004 lt_prog_compiler_wl='-Wl,'
7005 # All Alpha code is PIC.
7006 lt_prog_compiler_static='-non_shared'
7007 ;;
mlcreech636a9952008-05-05 22:52:56 +00007008 xl*)
7009 # IBM XL C 8.0/Fortran 10.1 on PPC
7010 lt_prog_compiler_wl='-Wl,'
7011 lt_prog_compiler_pic='-qpic'
7012 lt_prog_compiler_static='-qstaticlink'
7013 ;;
7014 *)
7015 case `$CC -V 2>&1 | sed 5q` in
7016 *Sun\ C*)
7017 # Sun C 5.9
7018 lt_prog_compiler_pic='-KPIC'
7019 lt_prog_compiler_static='-Bstatic'
7020 lt_prog_compiler_wl='-Wl,'
7021 ;;
7022 *Sun\ F*)
7023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7024 lt_prog_compiler_pic='-KPIC'
7025 lt_prog_compiler_static='-Bstatic'
7026 lt_prog_compiler_wl=''
7027 ;;
7028 esac
7029 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007030 esac
drh71eb93e2001-09-28 01:34:43 +00007031 ;;
7032
mlcreech636a9952008-05-05 22:52:56 +00007033 newsos6)
7034 lt_prog_compiler_pic='-KPIC'
7035 lt_prog_compiler_static='-Bstatic'
7036 ;;
7037
7038 *nto* | *qnx*)
7039 # QNX uses GNU C++, but need to define -shared option too, otherwise
7040 # it will coredump.
7041 lt_prog_compiler_pic='-fPIC -shared'
7042 ;;
7043
drh71eb93e2001-09-28 01:34:43 +00007044 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007045 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007046 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007047 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007048 ;;
7049
mlcreech636a9952008-05-05 22:52:56 +00007050 rdos*)
7051 lt_prog_compiler_static='-non_shared'
7052 ;;
7053
drh71eb93e2001-09-28 01:34:43 +00007054 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007055 lt_prog_compiler_pic='-KPIC'
7056 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007057 case $cc_basename in
7058 f77* | f90* | f95*)
7059 lt_prog_compiler_wl='-Qoption ld ';;
7060 *)
7061 lt_prog_compiler_wl='-Wl,';;
7062 esac
drh71eb93e2001-09-28 01:34:43 +00007063 ;;
7064
7065 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007066 lt_prog_compiler_wl='-Qoption ld '
7067 lt_prog_compiler_pic='-PIC'
7068 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007069 ;;
7070
vapier7f19c022007-02-17 14:46:31 +00007071 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007072 lt_prog_compiler_wl='-Wl,'
7073 lt_prog_compiler_pic='-KPIC'
7074 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007075 ;;
7076
7077 sysv4*MP*)
7078 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007079 lt_prog_compiler_pic='-Kconform_pic'
7080 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007081 fi
7082 ;;
7083
vapier7f19c022007-02-17 14:46:31 +00007084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7085 lt_prog_compiler_wl='-Wl,'
7086 lt_prog_compiler_pic='-KPIC'
7087 lt_prog_compiler_static='-Bstatic'
7088 ;;
7089
7090 unicos*)
7091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_can_build_shared=no
7093 ;;
7094
a.rottmann9bc8b932004-02-29 15:18:31 +00007095 uts4*)
7096 lt_prog_compiler_pic='-pic'
7097 lt_prog_compiler_static='-Bstatic'
7098 ;;
7099
drh71eb93e2001-09-28 01:34:43 +00007100 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007101 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007102 ;;
7103 esac
7104 fi
7105
mlcreech636a9952008-05-05 22:52:56 +00007106case $host_os in
7107 # For platforms which do not support PIC, -DPIC is meaningless:
7108 *djgpp*)
7109 lt_prog_compiler_pic=
7110 ;;
7111 *)
7112 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7113 ;;
7114esac
drh8b727472009-01-19 18:18:40 +00007115{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7116$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007117
7118
7119
7120
7121
drh71eb93e2001-09-28 01:34:43 +00007122
a.rottmann9bc8b932004-02-29 15:18:31 +00007123#
7124# Check to make sure the PIC flag actually works.
7125#
7126if test -n "$lt_prog_compiler_pic"; then
drh8b727472009-01-19 18:18:40 +00007127 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7128$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007129if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007130 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007131else
mlcreech636a9952008-05-05 22:52:56 +00007132 lt_cv_prog_compiler_pic_works=no
7133 ac_outfile=conftest.$ac_objext
7134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7136 # Insert the option either (1) after the last *FLAGS variable, or
7137 # (2) before a word containing "conftest.", or (3) at the end.
7138 # Note that $ac_compile itself does not contain backslashes and begins
7139 # with a dollar sign (not a hyphen), so the echo should work correctly.
7140 # The option is referenced via a variable to avoid confusing sed.
7141 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7144 -e 's:$: $lt_compiler_flag:'`
vapierfaa68db2009-04-01 07:38:31 +00007145 (eval echo "\"\$as_me:7145: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007146 (eval "$lt_compile" 2>conftest.err)
7147 ac_status=$?
7148 cat conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00007149 echo "$as_me:7149: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007150 if (exit $ac_status) && test -s "$ac_outfile"; then
7151 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007152 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007153 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007156 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007157 fi
7158 fi
mlcreech636a9952008-05-05 22:52:56 +00007159 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007160
a.rottmann9bc8b932004-02-29 15:18:31 +00007161fi
drh8b727472009-01-19 18:18:40 +00007162{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7163$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007164
mlcreech636a9952008-05-05 22:52:56 +00007165if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007166 case $lt_prog_compiler_pic in
7167 "" | " "*) ;;
7168 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7169 esac
drh71eb93e2001-09-28 01:34:43 +00007170else
a.rottmann9bc8b932004-02-29 15:18:31 +00007171 lt_prog_compiler_pic=
7172 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007173fi
7174
a.rottmann84e63352003-03-24 09:42:16 +00007175fi
mlcreech636a9952008-05-05 22:52:56 +00007176
7177
7178
7179
7180
a.rottmann84e63352003-03-24 09:42:16 +00007181
vapier7f19c022007-02-17 14:46:31 +00007182#
7183# Check to make sure the static flag actually works.
7184#
7185wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +00007186{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7187$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007188if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007189 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007190else
mlcreech636a9952008-05-05 22:52:56 +00007191 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007192 save_LDFLAGS="$LDFLAGS"
7193 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007194 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007195 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7196 # The linker can only warn and ignore the option if not recognized
7197 # So say no if there are warnings
7198 if test -s conftest.err; then
7199 # Append any errors to the config.log.
7200 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007201 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7203 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007204 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007205 fi
7206 else
mlcreech636a9952008-05-05 22:52:56 +00007207 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007208 fi
7209 fi
mlcreech636a9952008-05-05 22:52:56 +00007210 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007211 LDFLAGS="$save_LDFLAGS"
7212
7213fi
drh8b727472009-01-19 18:18:40 +00007214{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7215$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007216
mlcreech636a9952008-05-05 22:52:56 +00007217if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007218 :
7219else
7220 lt_prog_compiler_static=
7221fi
7222
7223
mlcreech636a9952008-05-05 22:52:56 +00007224
7225
7226
7227
7228
drh8b727472009-01-19 18:18:40 +00007229 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7230$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007231if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007232 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007233else
a.rottmann9bc8b932004-02-29 15:18:31 +00007234 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007235 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007236 mkdir conftest
7237 cd conftest
7238 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007240
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 lt_compiler_flag="-o out/conftest2.$ac_objext"
7242 # Insert the option either (1) after the last *FLAGS variable, or
7243 # (2) before a word containing "conftest.", or (3) at the end.
7244 # Note that $ac_compile itself does not contain backslashes and begins
7245 # with a dollar sign (not a hyphen), so the echo should work correctly.
7246 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7249 -e 's:$: $lt_compiler_flag:'`
vapierfaa68db2009-04-01 07:38:31 +00007250 (eval echo "\"\$as_me:7250: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 (eval "$lt_compile" 2>out/conftest.err)
7252 ac_status=$?
7253 cat out/conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00007254 echo "$as_me:7254: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7256 then
7257 # The compiler can only warn and ignore the option if not recognized
7258 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007259 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 lt_cv_prog_compiler_c_o=yes
7263 fi
7264 fi
vapier7f19c022007-02-17 14:46:31 +00007265 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007266 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007267 # SGI C++ compiler will create directory out/ii_files/ for
7268 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7270 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007272 $RM -r conftest
7273 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007274
7275fi
drh8b727472009-01-19 18:18:40 +00007276{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7277$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007278
7279
7280
7281
7282
7283
drh8b727472009-01-19 18:18:40 +00007284 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7285$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007286if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007287 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007288else
7289 lt_cv_prog_compiler_c_o=no
7290 $RM -r conftest 2>/dev/null
7291 mkdir conftest
7292 cd conftest
7293 mkdir out
7294 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7295
7296 lt_compiler_flag="-o out/conftest2.$ac_objext"
7297 # Insert the option either (1) after the last *FLAGS variable, or
7298 # (2) before a word containing "conftest.", or (3) at the end.
7299 # Note that $ac_compile itself does not contain backslashes and begins
7300 # with a dollar sign (not a hyphen), so the echo should work correctly.
7301 lt_compile=`echo "$ac_compile" | $SED \
7302 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7303 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7304 -e 's:$: $lt_compiler_flag:'`
vapierfaa68db2009-04-01 07:38:31 +00007305 (eval echo "\"\$as_me:7305: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007306 (eval "$lt_compile" 2>out/conftest.err)
7307 ac_status=$?
7308 cat out/conftest.err >&5
vapierfaa68db2009-04-01 07:38:31 +00007309 echo "$as_me:7309: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007310 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7311 then
7312 # The compiler can only warn and ignore the option if not recognized
7313 # So say no if there are warnings
7314 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7315 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7316 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7317 lt_cv_prog_compiler_c_o=yes
7318 fi
7319 fi
7320 chmod u+w . 2>&5
7321 $RM conftest*
7322 # SGI C++ compiler will create directory out/ii_files/ for
7323 # template instantiation
7324 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7325 $RM out/* && rmdir out
7326 cd ..
7327 $RM -r conftest
7328 $RM conftest*
7329
7330fi
drh8b727472009-01-19 18:18:40 +00007331{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7332$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007333
7334
drh71eb93e2001-09-28 01:34:43 +00007335
a.rottmann84e63352003-03-24 09:42:16 +00007336
drh71eb93e2001-09-28 01:34:43 +00007337hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007338if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007339 # do not overwrite the value of need_locks provided by the user
drh8b727472009-01-19 18:18:40 +00007340 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7341$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007342 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007343 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007344 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7345 touch conftest.a
7346 ln conftest.a conftest.b 2>&5 || hard_links=no
7347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh8b727472009-01-19 18:18:40 +00007348 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7349$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007350 if test "$hard_links" = no; then
drh8b727472009-01-19 18:18:40 +00007351 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7352$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007353 need_locks=warn
7354 fi
7355else
7356 need_locks=no
7357fi
7358
mlcreech636a9952008-05-05 22:52:56 +00007359
7360
7361
7362
7363
drh8b727472009-01-19 18:18:40 +00007364 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7365$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007366
7367 runpath_var=
7368 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007369 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007370 archive_cmds=
7371 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007372 compiler_needs_object=no
7373 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007374 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7376 hardcode_automatic=no
7377 hardcode_direct=no
7378 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007379 hardcode_libdir_flag_spec=
7380 hardcode_libdir_flag_spec_ld=
7381 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007382 hardcode_minus_L=no
7383 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007384 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007385 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007386 module_cmds=
7387 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007388 old_archive_from_new_cmds=
7389 old_archive_from_expsyms_cmds=
7390 thread_safe_flag_spec=
7391 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007392 # include_expsyms should be a list of space-separated symbols to be *always*
7393 # included in the symbol list
7394 include_expsyms=
7395 # exclude_expsyms can be an extended regexp of symbols to exclude
7396 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7397 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7398 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007399 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007400 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7401 # platforms (ab)use it in PIC code, but their linkers get confused if
7402 # the symbol is explicitly referenced. Since portable code cannot
7403 # rely on this symbol name, it's probably fine to never include it in
7404 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007405 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007406 extract_expsyms_cmds=
7407
7408 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007409 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007410 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7411 # When not using gcc, we currently assume that we are using
7412 # Microsoft Visual C++.
7413 if test "$GCC" != yes; then
7414 with_gnu_ld=no
7415 fi
7416 ;;
vapier7f19c022007-02-17 14:46:31 +00007417 interix*)
7418 # we just hope/assume this is gcc and not c89 (= MSVC++)
7419 with_gnu_ld=yes
7420 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007421 openbsd*)
7422 with_gnu_ld=no
7423 ;;
7424 esac
7425
7426 ld_shlibs=yes
7427 if test "$with_gnu_ld" = yes; then
7428 # If archive_cmds runs LD, not CC, wlarc should be empty
7429 wlarc='${wl}'
7430
vapier7f19c022007-02-17 14:46:31 +00007431 # Set some defaults for GNU ld with shared library support. These
7432 # are reset later if shared libraries are not supported. Putting them
7433 # here allows them to be overridden if necessary.
7434 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007436 export_dynamic_flag_spec='${wl}--export-dynamic'
7437 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007438 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7439 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7440 else
7441 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007442 fi
7443 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007444 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7448 *\ 2.11.*) ;; # other 2.11 versions
7449 *) supports_anon_versioning=yes ;;
7450 esac
7451
a.rottmann9bc8b932004-02-29 15:18:31 +00007452 # See if GNU ld supports shared libraries.
7453 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007454 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007455 # On AIX/PPC, the GNU linker is very broken
7456 if test "$host_cpu" != ia64; then
7457 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007458 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007459
7460*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7461*** to be unable to reliably create shared libraries on AIX.
7462*** Therefore, libtool is disabling shared libraries support. If you
7463*** really care for shared libraries, you may want to modify your PATH
7464*** so that a non-GNU linker is found, and then restart.
7465
mlcreech636a9952008-05-05 22:52:56 +00007466_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007467 fi
7468 ;;
7469
7470 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007471 case $host_cpu in
7472 powerpc)
7473 # see comment about AmigaOS4 .so support
7474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7475 archive_expsym_cmds=''
7476 ;;
7477 m68k)
7478 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)'
7479 hardcode_libdir_flag_spec='-L$libdir'
7480 hardcode_minus_L=yes
7481 ;;
7482 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007483 ;;
7484
7485 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007487 allow_undefined_flag=unsupported
7488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7489 # support --undefined. This deserves some investigation. FIXME
7490 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7491 else
7492 ld_shlibs=no
7493 fi
7494 ;;
7495
vapier6acb2cf2009-01-28 04:46:28 +00007496 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007497 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007498 # as there is no search path for DLLs.
7499 hardcode_libdir_flag_spec='-L$libdir'
7500 allow_undefined_flag=unsupported
7501 always_export_symbols=no
7502 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007503 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 +00007504
mlcreech636a9952008-05-05 22:52:56 +00007505 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007506 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 +00007507 # If the export-symbols file already is a .def file (1st line
7508 # is EXPORTS), use it as is; otherwise, prepend...
7509 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7510 cp $export_symbols $output_objdir/$soname.def;
7511 else
7512 echo EXPORTS > $output_objdir/$soname.def;
7513 cat $export_symbols >> $output_objdir/$soname.def;
7514 fi~
vapier7f19c022007-02-17 14:46:31 +00007515 $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 +00007516 else
7517 ld_shlibs=no
7518 fi
7519 ;;
7520
mlcreech636a9952008-05-05 22:52:56 +00007521 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007522 hardcode_direct=no
7523 hardcode_shlibpath_var=no
7524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7525 export_dynamic_flag_spec='${wl}-E'
7526 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7527 # Instead, shared libraries are loaded at an image base (0x10000000 by
7528 # default) and relocated if they conflict, which is a slow very memory
7529 # consuming and fragmenting process. To avoid this, we pick a random,
7530 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7531 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7533 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'
7534 ;;
7535
mlcreech636a9952008-05-05 22:52:56 +00007536 gnu* | linux* | tpf* | k*bsd*-gnu)
7537 tmp_diet=no
7538 if test "$host_os" = linux-dietlibc; then
7539 case $cc_basename in
7540 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7541 esac
7542 fi
7543 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7544 && test "$tmp_diet" = no
7545 then
vapier7f19c022007-02-17 14:46:31 +00007546 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007547 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007548 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007549 pgcc*) # Portland Group C compiler
7550 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 +00007551 tmp_addflag=' $pic_flag'
7552 ;;
7553 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007554 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 +00007555 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007556 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007557 tmp_addflag=' -i_dynamic' ;;
7558 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7559 tmp_addflag=' -i_dynamic -nofor_main' ;;
7560 ifc* | ifort*) # Intel Fortran compiler
7561 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007562 lf95*) # Lahey Fortran 8.1
7563 whole_archive_flag_spec=
7564 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007565 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7566 tmp_sharedflag='-qmkshrobj'
7567 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007568 esac
mlcreech636a9952008-05-05 22:52:56 +00007569 case `$CC -V 2>&1 | sed 5q` in
7570 *Sun\ C*) # Sun C 5.9
7571 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'
7572 compiler_needs_object=yes
7573 tmp_sharedflag='-G' ;;
7574 *Sun\ F*) # Sun Fortran 8.3
7575 tmp_sharedflag='-G' ;;
7576 esac
7577 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007578
mlcreech636a9952008-05-05 22:52:56 +00007579 if test "x$supports_anon_versioning" = xyes; then
7580 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7581 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7582 echo "local: *; };" >> $output_objdir/$libname.ver~
7583 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7584 fi
7585
7586 case $cc_basename in
7587 xlf*)
7588 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7589 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7590 hardcode_libdir_flag_spec=
7591 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7592 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7593 if test "x$supports_anon_versioning" = xyes; then
7594 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7596 echo "local: *; };" >> $output_objdir/$libname.ver~
7597 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7598 fi
7599 ;;
7600 esac
vapier7f19c022007-02-17 14:46:31 +00007601 else
mlcreech636a9952008-05-05 22:52:56 +00007602 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007603 fi
7604 ;;
7605
7606 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7609 wlarc=
7610 else
7611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7613 fi
7614 ;;
7615
vapier7f19c022007-02-17 14:46:31 +00007616 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007617 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007618 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007619 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007620
7621*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7622*** create shared libraries on Solaris systems. Therefore, libtool
7623*** is disabling shared libraries support. We urge you to upgrade GNU
7624*** binutils to release 2.9.1 or newer. Another option is to modify
7625*** your PATH or compiler configuration so that the native linker is
7626*** used, and then restart.
7627
mlcreech636a9952008-05-05 22:52:56 +00007628_LT_EOF
7629 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7632 else
7633 ld_shlibs=no
7634 fi
7635 ;;
7636
vapier7f19c022007-02-17 14:46:31 +00007637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7638 case `$LD -v 2>&1` in
7639 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7640 ld_shlibs=no
7641 cat <<_LT_EOF 1>&2
7642
7643*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7644*** reliably create shared libraries on SCO systems. Therefore, libtool
7645*** is disabling shared libraries support. We urge you to upgrade GNU
7646*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7647*** your PATH or compiler configuration so that the native linker is
7648*** used, and then restart.
7649
7650_LT_EOF
7651 ;;
7652 *)
mlcreech636a9952008-05-05 22:52:56 +00007653 # For security reasons, it is highly recommended that you always
7654 # use absolute paths for naming shared libraries, and exclude the
7655 # DT_RUNPATH tag from executables and libraries. But doing so
7656 # requires that you compile everything twice, which is a pain.
7657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 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 +00007661 else
7662 ld_shlibs=no
7663 fi
7664 ;;
7665 esac
7666 ;;
7667
a.rottmann9bc8b932004-02-29 15:18:31 +00007668 sunos4*)
7669 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7670 wlarc=
7671 hardcode_direct=yes
7672 hardcode_shlibpath_var=no
7673 ;;
7674
a.rottmann9bc8b932004-02-29 15:18:31 +00007675 *)
mlcreech636a9952008-05-05 22:52:56 +00007676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7679 else
7680 ld_shlibs=no
7681 fi
7682 ;;
7683 esac
7684
vapier7f19c022007-02-17 14:46:31 +00007685 if test "$ld_shlibs" = no; then
7686 runpath_var=
7687 hardcode_libdir_flag_spec=
7688 export_dynamic_flag_spec=
7689 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007690 fi
7691 else
7692 # PORTME fill in a description of your system's linker (not GNU ld)
7693 case $host_os in
7694 aix3*)
7695 allow_undefined_flag=unsupported
7696 always_export_symbols=yes
7697 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'
7698 # Note: this linker hardcodes the directories in LIBPATH if there
7699 # are no directories specified by -L.
7700 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007701 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007702 # Neither direct hardcoding nor static linking is supported with a
7703 # broken collect2.
7704 hardcode_direct=unsupported
7705 fi
7706 ;;
7707
mlcreech636a9952008-05-05 22:52:56 +00007708 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007709 if test "$host_cpu" = ia64; then
7710 # On IA64, the linker does run time linking by default, so we don't
7711 # have to do anything special.
7712 aix_use_runtimelinking=no
7713 exp_sym_flag='-Bexport'
7714 no_entry_flag=""
7715 else
7716 # If we're using GNU nm, then we don't want the "-C" option.
7717 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007718 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7719 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 +00007720 else
mlcreech636a9952008-05-05 22:52:56 +00007721 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 +00007722 fi
7723 aix_use_runtimelinking=no
7724
7725 # Test if we are trying to use run time linking or normal
7726 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7727 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007728 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007729 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007730 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7731 aix_use_runtimelinking=yes
7732 break
7733 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007734 done
vapier7f19c022007-02-17 14:46:31 +00007735 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007736 esac
7737
7738 exp_sym_flag='-bexport'
7739 no_entry_flag='-bnoentry'
7740 fi
7741
7742 # When large executables or shared objects are built, AIX ld can
7743 # have problems creating the table of contents. If linking a library
7744 # or program results in "error TOC overflow" add -mminimal-toc to
7745 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7746 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7747
7748 archive_cmds=''
7749 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007750 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007751 hardcode_libdir_separator=':'
7752 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007753 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007754
7755 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007756 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007757 # We only want to do this on AIX 4.2 and lower, the check
7758 # below for broken collect2 doesn't work under 4.3+
7759 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007760 if test -f "$collect2name" &&
7761 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007762 then
mlcreech636a9952008-05-05 22:52:56 +00007763 # We have reworked collect2
7764 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007765 else
mlcreech636a9952008-05-05 22:52:56 +00007766 # We have old collect2
7767 hardcode_direct=unsupported
7768 # It fails to find uninstalled libraries when the uninstalled
7769 # path is not listed in the libpath. Setting hardcode_minus_L
7770 # to unsupported forces relinking
7771 hardcode_minus_L=yes
7772 hardcode_libdir_flag_spec='-L$libdir'
7773 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007774 fi
vapier7f19c022007-02-17 14:46:31 +00007775 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007776 esac
7777 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007778 if test "$aix_use_runtimelinking" = yes; then
7779 shared_flag="$shared_flag "'${wl}-G'
7780 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 else
7782 # not using gcc
7783 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007784 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7785 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 shared_flag='-G'
7787 else
vapier7f19c022007-02-17 14:46:31 +00007788 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 shared_flag='${wl}-G'
7790 else
7791 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007792 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 fi
7794 fi
7795
vapier6acb2cf2009-01-28 04:46:28 +00007796 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007797 # It seems that -bexpall does not export symbols beginning with
7798 # underscore (_), so it is better to generate a list of symbols to export.
7799 always_export_symbols=yes
7800 if test "$aix_use_runtimelinking" = yes; then
7801 # Warning - without using the other runtime loading flags (-brtl),
7802 # -berok will link without error, but may produce a broken library.
7803 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007804 # Determine the default libpath from the value encoded in an
7805 # empty executable.
7806 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007812
a.rottmann84e63352003-03-24 09:42:16 +00007813int
7814main ()
7815{
a.rottmann9bc8b932004-02-29 15:18:31 +00007816
a.rottmann84e63352003-03-24 09:42:16 +00007817 ;
7818 return 0;
7819}
7820_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007821rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007822if { (ac_try="$ac_link"
7823case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826esac
7827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7828$as_echo "$ac_try_echo") >&5
7829 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00007830 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00007831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest$ac_exeext && {
7839 test "$cross_compiling" = yes ||
7840 $as_test_x conftest$ac_exeext
7841 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007842
mlcreech636a9952008-05-05 22:52:56 +00007843lt_aix_libpath_sed='
7844 /Import File Strings/,/^$/ {
7845 /^0/ {
7846 s/^0 *\(.*\)$/\1/
7847 p
7848 }
7849 }'
7850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007851# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007852if test -z "$aix_libpath"; then
7853 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7854fi
a.rottmann84e63352003-03-24 09:42:16 +00007855else
drh8b727472009-01-19 18:18:40 +00007856 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00007857sed 's/^/| /' conftest.$ac_ext >&5
7858
drh8b727472009-01-19 18:18:40 +00007859
a.rottmann84e63352003-03-24 09:42:16 +00007860fi
drh8b727472009-01-19 18:18:40 +00007861
7862rm -rf conftest.dSYM
7863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007864 conftest$ac_exeext conftest.$ac_ext
7865if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007866
mlcreech636a9952008-05-05 22:52:56 +00007867 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7868 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"
7869 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007870 if test "$host_cpu" = ia64; then
7871 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7872 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007873 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 +00007874 else
mlcreech636a9952008-05-05 22:52:56 +00007875 # Determine the default libpath from the value encoded in an
7876 # empty executable.
a.rottmann9bc8b932004-02-29 15:18:31 +00007877 cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007883
a.rottmann9bc8b932004-02-29 15:18:31 +00007884int
7885main ()
7886{
a.rottmann84e63352003-03-24 09:42:16 +00007887
a.rottmann9bc8b932004-02-29 15:18:31 +00007888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00007893if { (ac_try="$ac_link"
7894case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897esac
7898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7899$as_echo "$ac_try_echo") >&5
7900 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00007901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00007905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest$ac_exeext && {
7910 test "$cross_compiling" = yes ||
7911 $as_test_x conftest$ac_exeext
7912 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007913
mlcreech636a9952008-05-05 22:52:56 +00007914lt_aix_libpath_sed='
7915 /Import File Strings/,/^$/ {
7916 /^0/ {
7917 s/^0 *\(.*\)$/\1/
7918 p
7919 }
7920 }'
7921aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007922# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007923if test -z "$aix_libpath"; then
7924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7925fi
a.rottmann84e63352003-03-24 09:42:16 +00007926else
drh8b727472009-01-19 18:18:40 +00007927 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007928sed 's/^/| /' conftest.$ac_ext >&5
a.rottmann84e63352003-03-24 09:42:16 +00007929
drh8b727472009-01-19 18:18:40 +00007930
a.rottmann9bc8b932004-02-29 15:18:31 +00007931fi
drh8b727472009-01-19 18:18:40 +00007932
7933rm -rf conftest.dSYM
7934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00007935 conftest$ac_exeext conftest.$ac_ext
7936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007937
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7939 # Warning - without using the other run time loading flags,
7940 # -berok will link without error, but may produce a broken library.
7941 no_undefined_flag=' ${wl}-bernotok'
7942 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007943 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007944 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007945 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007946 # This is similar to how AIX traditionally builds its shared libraries.
7947 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 +00007948 fi
7949 fi
a.rottmann84e63352003-03-24 09:42:16 +00007950 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007951
7952 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007953 case $host_cpu in
7954 powerpc)
7955 # see comment about AmigaOS4 .so support
7956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7957 archive_expsym_cmds=''
7958 ;;
7959 m68k)
7960 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)'
7961 hardcode_libdir_flag_spec='-L$libdir'
7962 hardcode_minus_L=yes
7963 ;;
7964 esac
a.rottmann84e63352003-03-24 09:42:16 +00007965 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007966
vapier7f19c022007-02-17 14:46:31 +00007967 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007968 export_dynamic_flag_spec=-rdynamic
7969 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007970
vapier6acb2cf2009-01-28 04:46:28 +00007971 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 # When not using gcc, we currently assume that we are using
7973 # Microsoft Visual C++.
7974 # hardcode_libdir_flag_spec is actually meaningless, as there is
7975 # no search path for DLLs.
7976 hardcode_libdir_flag_spec=' '
7977 allow_undefined_flag=unsupported
7978 # Tell ltmain to make .lib files, not .a files.
7979 libext=lib
7980 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007981 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007982 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007983 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 +00007984 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007985 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007986 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007988 fix_srcfile_path='`cygpath -w "$srcfile"`'
7989 enable_shared_with_static_runtimes=yes
7990 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007991
a.rottmann9bc8b932004-02-29 15:18:31 +00007992 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007993
7994
7995 archive_cmds_need_lc=no
7996 hardcode_direct=no
7997 hardcode_automatic=yes
7998 hardcode_shlibpath_var=unsupported
7999 whole_archive_flag_spec=''
8000 link_all_deplibs=yes
8001 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008002 case $cc_basename in
8003 ifort*) _lt_dar_can_shared=yes ;;
8004 *) _lt_dar_can_shared=$GCC ;;
8005 esac
8006 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008007 output_verbose_link_cmd=echo
8008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8010 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}"
8011 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}"
8012
8013 else
8014 ld_shlibs=no
8015 fi
8016
a.rottmann9bc8b932004-02-29 15:18:31 +00008017 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008018
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 dgux*)
8020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8021 hardcode_libdir_flag_spec='-L$libdir'
8022 hardcode_shlibpath_var=no
8023 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008024
a.rottmann9bc8b932004-02-29 15:18:31 +00008025 freebsd1*)
8026 ld_shlibs=no
8027 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008028
a.rottmann9bc8b932004-02-29 15:18:31 +00008029 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8030 # support. Future versions do this automatically, but an explicit c++rt0.o
8031 # does not break anything, and helps significantly (at the cost of a little
8032 # extra space).
8033 freebsd2.2*)
8034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8035 hardcode_libdir_flag_spec='-R$libdir'
8036 hardcode_direct=yes
8037 hardcode_shlibpath_var=no
8038 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008039
a.rottmann9bc8b932004-02-29 15:18:31 +00008040 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8041 freebsd2*)
8042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8043 hardcode_direct=yes
8044 hardcode_minus_L=yes
8045 hardcode_shlibpath_var=no
8046 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008047
a.rottmann9bc8b932004-02-29 15:18:31 +00008048 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008049 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008050 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8051 hardcode_libdir_flag_spec='-R$libdir'
8052 hardcode_direct=yes
8053 hardcode_shlibpath_var=no
8054 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008055
a.rottmann9bc8b932004-02-29 15:18:31 +00008056 hpux9*)
8057 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008058 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 +00008059 else
mlcreech636a9952008-05-05 22:52:56 +00008060 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 +00008061 fi
8062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8063 hardcode_libdir_separator=:
8064 hardcode_direct=yes
8065
8066 # hardcode_minus_L: Not really in the search PATH,
8067 # but as the default location of the library.
8068 hardcode_minus_L=yes
8069 export_dynamic_flag_spec='${wl}-E'
8070 ;;
8071
vapier7f19c022007-02-17 14:46:31 +00008072 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8075 else
8076 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8077 fi
8078 if test "$with_gnu_ld" = no; then
8079 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008080 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008081 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008082 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008083 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008084 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008085 # hardcode_minus_L: Not really in the search PATH,
8086 # but as the default location of the library.
8087 hardcode_minus_L=yes
8088 fi
8089 ;;
8090
8091 hpux11*)
8092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8093 case $host_cpu in
8094 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008095 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8096 ;;
vapier7f19c022007-02-17 14:46:31 +00008097 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008098 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008099 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008100 *)
8101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8102 ;;
8103 esac
8104 else
vapier7f19c022007-02-17 14:46:31 +00008105 case $host_cpu in
8106 hppa*64*)
8107 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8108 ;;
8109 ia64*)
8110 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008111 ;;
8112 *)
vapier7f19c022007-02-17 14:46:31 +00008113 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 +00008114 ;;
8115 esac
8116 fi
8117 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8119 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008120
vapier7f19c022007-02-17 14:46:31 +00008121 case $host_cpu in
8122 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008123 hardcode_direct=no
8124 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008125 ;;
8126 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008127 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008128 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008129 export_dynamic_flag_spec='${wl}-E'
8130
8131 # hardcode_minus_L: Not really in the search PATH,
8132 # but as the default location of the library.
8133 hardcode_minus_L=yes
8134 ;;
8135 esac
8136 fi
8137 ;;
8138
8139 irix5* | irix6* | nonstopux*)
8140 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008141 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'
8142 # Try to use the -exported_symbol ld option, if it does not
8143 # work, assume that -exports_file does not work either and
8144 # implicitly export all symbols.
8145 save_LDFLAGS="$LDFLAGS"
8146 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8147 cat >conftest.$ac_ext <<_ACEOF
8148int foo(void) {}
8149_ACEOF
8150rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00008151if { (ac_try="$ac_link"
8152case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155esac
8156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157$as_echo "$ac_try_echo") >&5
8158 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00008159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00008163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest$ac_exeext && {
8168 test "$cross_compiling" = yes ||
8169 $as_test_x conftest$ac_exeext
8170 }; then
mlcreech636a9952008-05-05 22:52:56 +00008171 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'
8172
8173else
drh8b727472009-01-19 18:18:40 +00008174 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00008175sed 's/^/| /' conftest.$ac_ext >&5
8176
drh8b727472009-01-19 18:18:40 +00008177
mlcreech636a9952008-05-05 22:52:56 +00008178fi
drh8b727472009-01-19 18:18:40 +00008179
8180rm -rf conftest.dSYM
8181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00008182 conftest$ac_exeext conftest.$ac_ext
8183 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008184 else
mlcreech636a9952008-05-05 22:52:56 +00008185 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'
8186 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 +00008187 fi
mlcreech636a9952008-05-05 22:52:56 +00008188 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8190 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008191 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008192 link_all_deplibs=yes
8193 ;;
8194
vapier7f19c022007-02-17 14:46:31 +00008195 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8198 else
8199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8200 fi
8201 hardcode_libdir_flag_spec='-R$libdir'
8202 hardcode_direct=yes
8203 hardcode_shlibpath_var=no
8204 ;;
8205
8206 newsos6)
8207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_direct=yes
8209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8210 hardcode_libdir_separator=:
8211 hardcode_shlibpath_var=no
8212 ;;
8213
mlcreech636a9952008-05-05 22:52:56 +00008214 *nto* | *qnx*)
8215 ;;
8216
a.rottmann9bc8b932004-02-29 15:18:31 +00008217 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008218 if test -f /usr/libexec/ld.so; then
8219 hardcode_direct=yes
8220 hardcode_shlibpath_var=no
8221 hardcode_direct_absolute=yes
8222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8224 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8226 export_dynamic_flag_spec='${wl}-E'
8227 else
8228 case $host_os in
8229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8231 hardcode_libdir_flag_spec='-R$libdir'
8232 ;;
8233 *)
8234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8236 ;;
8237 esac
8238 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008239 else
mlcreech636a9952008-05-05 22:52:56 +00008240 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008241 fi
8242 ;;
8243
8244 os2*)
8245 hardcode_libdir_flag_spec='-L$libdir'
8246 hardcode_minus_L=yes
8247 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008248 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'
8249 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008250 ;;
8251
8252 osf3*)
8253 if test "$GCC" = yes; then
8254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008255 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 +00008256 else
8257 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008258 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 +00008259 fi
mlcreech636a9952008-05-05 22:52:56 +00008260 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8262 hardcode_libdir_separator=:
8263 ;;
8264
8265 osf4* | osf5*) # as osf3* with the addition of -msym flag
8266 if test "$GCC" = yes; then
8267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008268 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 +00008269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8270 else
8271 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008272 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'
8273 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~
8274 $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 +00008275
8276 # Both c and cxx compiler support -rpath directly
8277 hardcode_libdir_flag_spec='-rpath $libdir'
8278 fi
mlcreech636a9952008-05-05 22:52:56 +00008279 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 hardcode_libdir_separator=:
8281 ;;
8282
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008284 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008286 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008287 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8289 $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 +00008290 else
mlcreech636a9952008-05-05 22:52:56 +00008291 case `$CC -V 2>&1` in
8292 *"Compilers 5.0"*)
8293 wlarc=''
8294 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8297 ;;
8298 *)
8299 wlarc='${wl}'
8300 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8302 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8303 ;;
8304 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008305 fi
8306 hardcode_libdir_flag_spec='-R$libdir'
8307 hardcode_shlibpath_var=no
8308 case $host_os in
8309 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008310 *)
mlcreech636a9952008-05-05 22:52:56 +00008311 # The compiler driver will combine and reorder linker options,
8312 # but understands `-z linker_flag'. GCC discards it without `$wl',
8313 # but is careful enough not to reorder.
8314 # Supported since Solaris 2.6 (maybe 2.5.1?)
8315 if test "$GCC" = yes; then
8316 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8317 else
8318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8319 fi
8320 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008321 esac
8322 link_all_deplibs=yes
8323 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008324
a.rottmann9bc8b932004-02-29 15:18:31 +00008325 sunos4*)
8326 if test "x$host_vendor" = xsequent; then
8327 # Use $CC to link under sequent, because it throws in some extra .o
8328 # files that make .init and .fini sections work.
8329 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8330 else
8331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8332 fi
8333 hardcode_libdir_flag_spec='-L$libdir'
8334 hardcode_direct=yes
8335 hardcode_minus_L=yes
8336 hardcode_shlibpath_var=no
8337 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008338
a.rottmann9bc8b932004-02-29 15:18:31 +00008339 sysv4)
8340 case $host_vendor in
8341 sni)
8342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8343 hardcode_direct=yes # is this really true???
8344 ;;
8345 siemens)
8346 ## LD is ld it makes a PLAMLIB
8347 ## CC just makes a GrossModule.
8348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8349 reload_cmds='$CC -r -o $output$reload_objs'
8350 hardcode_direct=no
8351 ;;
8352 motorola)
8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8355 ;;
8356 esac
8357 runpath_var='LD_RUN_PATH'
8358 hardcode_shlibpath_var=no
8359 ;;
8360
8361 sysv4.3*)
8362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363 hardcode_shlibpath_var=no
8364 export_dynamic_flag_spec='-Bexport'
8365 ;;
8366
8367 sysv4*MP*)
8368 if test -d /usr/nec; then
8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_shlibpath_var=no
8371 runpath_var=LD_RUN_PATH
8372 hardcode_runpath_var=yes
8373 ld_shlibs=yes
8374 fi
8375 ;;
8376
mlcreech636a9952008-05-05 22:52:56 +00008377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008378 no_undefined_flag='${wl}-z,text'
8379 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008380 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008381 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008382
a.rottmann9bc8b932004-02-29 15:18:31 +00008383 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8385 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 +00008386 else
vapier7f19c022007-02-17 14:46:31 +00008387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8388 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 +00008389 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008390 ;;
8391
vapier7f19c022007-02-17 14:46:31 +00008392 sysv5* | sco3.2v5* | sco5v6*)
8393 # Note: We can NOT use -z defs as we might desire, because we do not
8394 # link with -lc, and that would cause any symbols used from libc to
8395 # always be unresolved, which means just about no library would
8396 # ever link correctly. If we're not using GNU ld we use -z text
8397 # though, which does catch some bad symbols but isn't as heavy-handed
8398 # as -z defs.
8399 no_undefined_flag='${wl}-z,text'
8400 allow_undefined_flag='${wl}-z,nodefs'
8401 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008402 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008403 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008404 hardcode_libdir_separator=':'
8405 link_all_deplibs=yes
8406 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008407 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008408
8409 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008412 else
mlcreech636a9952008-05-05 22:52:56 +00008413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008415 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008416 ;;
8417
8418 uts4*)
8419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_libdir_flag_spec='-L$libdir'
8421 hardcode_shlibpath_var=no
8422 ;;
8423
8424 *)
8425 ld_shlibs=no
8426 ;;
8427 esac
mlcreech636a9952008-05-05 22:52:56 +00008428
8429 if test x$host_vendor = xsni; then
8430 case $host in
8431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8432 export_dynamic_flag_spec='${wl}-Blargedynsym'
8433 ;;
8434 esac
8435 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008436 fi
8437
drh8b727472009-01-19 18:18:40 +00008438{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8439$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008440test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008441
mlcreech636a9952008-05-05 22:52:56 +00008442with_gnu_ld=$with_gnu_ld
8443
8444
danielk197733a14782008-08-04 14:50:05 +00008445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
a.rottmann9bc8b932004-02-29 15:18:31 +00008458#
8459# Do we need to explicitly link libc?
8460#
8461case "x$archive_cmds_need_lc" in
8462x|xyes)
8463 # Assume -lc should be added
8464 archive_cmds_need_lc=yes
8465
8466 if test "$enable_shared" = yes && test "$GCC" = yes; then
8467 case $archive_cmds in
8468 *'~'*)
8469 # FIXME: we may have to deal with multi-command sequences.
8470 ;;
8471 '$CC '*)
8472 # Test whether the compiler implicitly links with -lc since on some
8473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8474 # to ld, don't add -lc before -lgcc.
drh8b727472009-01-19 18:18:40 +00008475 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8476$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008477 $RM conftest*
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008479
8480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8481 (eval $ac_compile) 2>&5
8482 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008484 (exit $ac_status); } 2>conftest.err; then
8485 soname=conftest
8486 lib=conftest
8487 libobjs=conftest.$ac_objext
8488 deplibs=
8489 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008490 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008491 compiler_flags=-v
8492 linker_flags=-v
8493 verstring=
8494 output_objdir=.
8495 libname=conftest
8496 lt_save_allow_undefined_flag=$allow_undefined_flag
8497 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00008498 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8499 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008500 ac_status=$?
drh8b727472009-01-19 18:18:40 +00008501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008502 (exit $ac_status); }
8503 then
8504 archive_cmds_need_lc=no
8505 else
8506 archive_cmds_need_lc=yes
8507 fi
8508 allow_undefined_flag=$lt_save_allow_undefined_flag
8509 else
8510 cat conftest.err 1>&5
8511 fi
mlcreech636a9952008-05-05 22:52:56 +00008512 $RM conftest*
drh8b727472009-01-19 18:18:40 +00008513 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8514$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008515 ;;
8516 esac
drh71eb93e2001-09-28 01:34:43 +00008517 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008518 ;;
8519esac
drh71eb93e2001-09-28 01:34:43 +00008520
mlcreech636a9952008-05-05 22:52:56 +00008521
danielk197733a14782008-08-04 14:50:05 +00008522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
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
drh8b727472009-01-19 18:18:40 +00008677 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8678$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008679
8680if test "$GCC" = yes; then
8681 case $host_os in
8682 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8683 *) lt_awk_arg="/^libraries:/" ;;
8684 esac
8685 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8686 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8687 # if the path contains ";" then we assume it to be the separator
8688 # otherwise default to the standard path separator (i.e. ":") - it is
8689 # assumed that no part of a normal pathname contains ";" but that should
8690 # okay in the real world where ";" in dirpaths is itself problematic.
8691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8692 else
8693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8694 fi
8695 # Ok, now we have the path, separated by spaces, we can step through it
8696 # and add multilib dir if necessary.
8697 lt_tmp_lt_search_path_spec=
8698 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8699 for lt_sys_path in $lt_search_path_spec; do
8700 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8702 else
8703 test -d "$lt_sys_path" && \
8704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8705 fi
8706 done
8707 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8708BEGIN {RS=" "; FS="/|\n";} {
8709 lt_foo="";
8710 lt_count=0;
8711 for (lt_i = NF; lt_i > 0; lt_i--) {
8712 if ($lt_i != "" && $lt_i != ".") {
8713 if ($lt_i == "..") {
8714 lt_count++;
8715 } else {
8716 if (lt_count == 0) {
8717 lt_foo="/" $lt_i lt_foo;
8718 } else {
8719 lt_count--;
8720 }
8721 }
8722 }
8723 }
8724 if (lt_foo != "") { lt_freq[lt_foo]++; }
8725 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8726}'`
8727 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8728else
8729 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8730fi
drh71eb93e2001-09-28 01:34:43 +00008731library_names_spec=
8732libname_spec='lib$name'
8733soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008734shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008735postinstall_cmds=
8736postuninstall_cmds=
8737finish_cmds=
8738finish_eval=
8739shlibpath_var=
8740shlibpath_overrides_runpath=unknown
8741version_type=none
8742dynamic_linker="$host_os ld.so"
8743sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008744need_lib_prefix=unknown
8745hardcode_into_libs=no
8746
8747# when you set need_version to no, make sure it does not cause -set_version
8748# flags to be left without arguments
8749need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008750
8751case $host_os in
8752aix3*)
8753 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008754 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008755 shlibpath_var=LIBPATH
8756
a.rottmann9bc8b932004-02-29 15:18:31 +00008757 # AIX 3 has no versioning support, so we append a major version to the name.
8758 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008759 ;;
8760
mlcreech636a9952008-05-05 22:52:56 +00008761aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008762 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008763 need_lib_prefix=no
8764 need_version=no
8765 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008766 if test "$host_cpu" = ia64; then
8767 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008768 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008769 shlibpath_var=LD_LIBRARY_PATH
8770 else
8771 # With GCC up to 2.95.x, collect2 would create an import file
8772 # for dependence libraries. The import file would start with
8773 # the line `#! .'. This would cause the generated library to
8774 # depend on `.', always an invalid library. This was fixed in
8775 # development snapshots of GCC prior to 3.0.
8776 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008777 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008778 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8779 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008780 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 :
8782 else
8783 can_build_shared=no
8784 fi
8785 ;;
drh71eb93e2001-09-28 01:34:43 +00008786 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008787 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8788 # soname into executable. Probably we can add versioning support to
8789 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008790 if test "$aix_use_runtimelinking" = yes; then
8791 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8792 # instead of lib<name>.a to let people know that these are not
8793 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008795 else
8796 # We preserve .a as extension for shared libraries through AIX4.2
8797 # and later when we are not doing run time linking.
8798 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008799 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008800 fi
8801 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008802 fi
8803 ;;
8804
8805amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008806 case $host_cpu in
8807 powerpc)
8808 # Since July 2007 AmigaOS4 officially supports .so libraries.
8809 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 ;;
8812 m68k)
8813 library_names_spec='$libname.ixlibrary $libname.a'
8814 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8815 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'
8816 ;;
8817 esac
drh71eb93e2001-09-28 01:34:43 +00008818 ;;
8819
8820beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008821 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008822 dynamic_linker="$host_os ld.so"
8823 shlibpath_var=LIBRARY_PATH
8824 ;;
8825
vapier7f19c022007-02-17 14:46:31 +00008826bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008827 version_type=linux
8828 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8835 # the default ld.so.conf also contains /usr/contrib/lib and
8836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8837 # libtool to hard-code these into programs
8838 ;;
8839
vapier6acb2cf2009-01-28 04:46:28 +00008840cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008841 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008842 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008843 need_version=no
8844 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008845
drh71eb93e2001-09-28 01:34:43 +00008846 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008847 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008848 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8850 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008852 dldir=$destdir/`dirname \$dlpath`~
8853 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008854 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008855 chmod a+x \$dldir/$dlname~
8856 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8857 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8858 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008859 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008860 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008861 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008862 shlibpath_overrides_runpath=yes
8863
8864 case $host_os in
8865 cygwin*)
8866 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8867 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8869 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008870 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008871 # MinGW DLLs use traditional 'lib' prefix
8872 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008873 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8874 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008875 # It is most probably a Windows format PATH printed by
8876 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8877 # path with ; separators, and with drive letters. We can handle the
8878 # drive letters (cygwin fileutils understands them), so leave them,
8879 # especially as we might pass files found there to a mingw objdump,
8880 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008882 else
mlcreech636a9952008-05-05 22:52:56 +00008883 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008884 fi
8885 ;;
8886 pw32*)
8887 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008888 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 +00008889 ;;
8890 esac
drh71eb93e2001-09-28 01:34:43 +00008891 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008892
drh71eb93e2001-09-28 01:34:43 +00008893 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008894 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008895 ;;
8896 esac
8897 dynamic_linker='Win32 ld.exe'
8898 # FIXME: first we should search . and the directory the executable is in
8899 shlibpath_var=PATH
8900 ;;
8901
8902darwin* | rhapsody*)
8903 dynamic_linker="$host_os dyld"
8904 version_type=darwin
8905 need_lib_prefix=no
8906 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008907 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008908 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008909 shlibpath_overrides_runpath=yes
8910 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008912
8913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8915 ;;
8916
8917dgux*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008924 ;;
8925
a.rottmann84e63352003-03-24 09:42:16 +00008926freebsd1*)
8927 dynamic_linker=no
8928 ;;
8929
vapier7f19c022007-02-17 14:46:31 +00008930freebsd* | dragonfly*)
8931 # DragonFly does not have aout. When/if they implement a new
8932 # versioning mechanism, adjust this.
8933 if test -x /usr/bin/objformat; then
8934 objformat=`/usr/bin/objformat`
8935 else
8936 case $host_os in
8937 freebsd[123]*) objformat=aout ;;
8938 *) objformat=elf ;;
8939 esac
8940 fi
8941 # Handle Gentoo/FreeBSD as it was Linux
8942 case $host_vendor in
8943 gentoo)
8944 version_type=linux ;;
8945 *)
8946 version_type=freebsd-$objformat ;;
8947 esac
8948
drh71eb93e2001-09-28 01:34:43 +00008949 case $version_type in
8950 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008952 need_version=no
8953 need_lib_prefix=no
8954 ;;
8955 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008957 need_version=yes
8958 ;;
vapier7f19c022007-02-17 14:46:31 +00008959 linux)
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 need_lib_prefix=no
8963 need_version=no
8964 ;;
drh71eb93e2001-09-28 01:34:43 +00008965 esac
8966 shlibpath_var=LD_LIBRARY_PATH
8967 case $host_os in
8968 freebsd2*)
8969 shlibpath_overrides_runpath=yes
8970 ;;
vapier7f19c022007-02-17 14:46:31 +00008971 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008972 shlibpath_overrides_runpath=yes
8973 hardcode_into_libs=yes
8974 ;;
vapier7f19c022007-02-17 14:46:31 +00008975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008977 shlibpath_overrides_runpath=no
8978 hardcode_into_libs=yes
8979 ;;
mlcreech636a9952008-05-05 22:52:56 +00008980 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008981 shlibpath_overrides_runpath=yes
8982 hardcode_into_libs=yes
8983 ;;
drh71eb93e2001-09-28 01:34:43 +00008984 esac
8985 ;;
8986
8987gnu*)
8988 version_type=linux
8989 need_lib_prefix=no
8990 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8992 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008993 shlibpath_var=LD_LIBRARY_PATH
8994 hardcode_into_libs=yes
8995 ;;
8996
8997hpux9* | hpux10* | hpux11*)
8998 # Give a soname corresponding to the major version so that dld.sl refuses to
8999 # link against other versions.
9000 version_type=sunos
9001 need_lib_prefix=no
9002 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009003 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009004 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009005 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009006 hardcode_into_libs=yes
9007 dynamic_linker="$host_os dld.so"
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 if test "X$HPUX_IA64_MODE" = X32; then
9013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9014 else
9015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9016 fi
9017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9018 ;;
mlcreech636a9952008-05-05 22:52:56 +00009019 hppa*64*)
9020 shrext_cmds='.sl'
9021 hardcode_into_libs=yes
9022 dynamic_linker="$host_os dld.sl"
9023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9029 ;;
9030 *)
vapier7f19c022007-02-17 14:46:31 +00009031 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009032 dynamic_linker="$host_os dld.sl"
9033 shlibpath_var=SHLIB_PATH
9034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 ;;
9038 esac
drh71eb93e2001-09-28 01:34:43 +00009039 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9040 postinstall_cmds='chmod 555 $lib'
9041 ;;
9042
mlcreech636a9952008-05-05 22:52:56 +00009043interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009044 version_type=linux
9045 need_lib_prefix=no
9046 need_version=no
9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
9049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=no
9052 hardcode_into_libs=yes
9053 ;;
9054
a.rottmann84e63352003-03-24 09:42:16 +00009055irix5* | irix6* | nonstopux*)
9056 case $host_os in
9057 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009058 *)
9059 if test "$lt_cv_prog_gnu_ld" = yes; then
9060 version_type=linux
9061 else
9062 version_type=irix
9063 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009064 esac
drh71eb93e2001-09-28 01:34:43 +00009065 need_lib_prefix=no
9066 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009067 soname_spec='${libname}${release}${shared_ext}$major'
9068 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 +00009069 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009070 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009071 libsuff= shlibsuff=
9072 ;;
9073 *)
9074 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9076 libsuff= shlibsuff= libmagic=32-bit;;
9077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9078 libsuff=32 shlibsuff=N32 libmagic=N32;;
9079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009081 *) libsuff= shlibsuff= libmagic=never-match;;
9082 esac
9083 ;;
9084 esac
9085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9086 shlibpath_overrides_runpath=no
9087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009089 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009090 ;;
9091
9092# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009093linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009094 dynamic_linker=no
9095 ;;
9096
9097# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009098linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009107 # Some binutils ld are patched to set DT_RUNPATH
9108 save_LDFLAGS=$LDFLAGS
9109 save_libdir=$libdir
9110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9112 cat >conftest.$ac_ext <<_ACEOF
9113/* confdefs.h. */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
9118
9119int
9120main ()
9121{
9122
9123 ;
9124 return 0;
9125}
9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009128if { (ac_try="$ac_link"
9129case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132esac
9133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9134$as_echo "$ac_try_echo") >&5
9135 (eval "$ac_link") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +00009136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest$ac_exeext && {
9145 test "$cross_compiling" = yes ||
9146 $as_test_x conftest$ac_exeext
9147 }; then
mlcreech636a9952008-05-05 22:52:56 +00009148 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9149 shlibpath_overrides_runpath=yes
9150fi
9151
9152else
drh8b727472009-01-19 18:18:40 +00009153 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +00009154sed 's/^/| /' conftest.$ac_ext >&5
9155
drh8b727472009-01-19 18:18:40 +00009156
mlcreech636a9952008-05-05 22:52:56 +00009157fi
drh8b727472009-01-19 18:18:40 +00009158
9159rm -rf conftest.dSYM
9160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech636a9952008-05-05 22:52:56 +00009161 conftest$ac_exeext conftest.$ac_ext
9162 LDFLAGS=$save_LDFLAGS
9163 libdir=$save_libdir
9164
drh71eb93e2001-09-28 01:34:43 +00009165 # This implies no fast_install, which is unacceptable.
9166 # Some rework will be needed to allow for fast_install
9167 # before this can be enabled.
9168 hardcode_into_libs=yes
9169
a.rottmann9bc8b932004-02-29 15:18:31 +00009170 # Append ld.so.conf contents to the search path
9171 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009172 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 +00009173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009174 fi
9175
drh71eb93e2001-09-28 01:34:43 +00009176 # We used to test for /lib/ld.so.1 and disable shared libraries on
9177 # powerpc, because MkLinux only supported shared libraries with the
9178 # GNU dynamic linker. Since this was broken with cross compilers,
9179 # most powerpc-linux boxes support dynamic linking these days and
9180 # people can always --disable-shared, the test was removed, and we
9181 # assume the GNU/Linux dynamic linker is in use.
9182 dynamic_linker='GNU/Linux ld.so'
9183 ;;
9184
9185netbsd*)
9186 version_type=sunos
9187 need_lib_prefix=no
9188 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9192 dynamic_linker='NetBSD (a.out) ld.so'
9193 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009196 dynamic_linker='NetBSD ld.elf_so'
9197 fi
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=yes
9200 hardcode_into_libs=yes
9201 ;;
9202
9203newsos6)
9204 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9206 shlibpath_var=LD_LIBRARY_PATH
9207 shlibpath_overrides_runpath=yes
9208 ;;
9209
mlcreech636a9952008-05-05 22:52:56 +00009210*nto* | *qnx*)
9211 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009212 need_lib_prefix=no
9213 need_version=no
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009216 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009217 shlibpath_overrides_runpath=no
9218 hardcode_into_libs=yes
9219 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009220 ;;
9221
drh71eb93e2001-09-28 01:34:43 +00009222openbsd*)
9223 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009224 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009225 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009228 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9229 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009230 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9233 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009234 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 +00009235 case $host_os in
9236 openbsd2.[89] | openbsd2.[89].*)
9237 shlibpath_overrides_runpath=no
9238 ;;
9239 *)
9240 shlibpath_overrides_runpath=yes
9241 ;;
9242 esac
a.rottmann84e63352003-03-24 09:42:16 +00009243 else
9244 shlibpath_overrides_runpath=yes
9245 fi
drh71eb93e2001-09-28 01:34:43 +00009246 ;;
9247
9248os2*)
9249 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009250 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009251 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009252 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009253 dynamic_linker='OS/2 ld.exe'
9254 shlibpath_var=LIBPATH
9255 ;;
9256
9257osf3* | osf4* | osf5*)
9258 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009259 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009260 need_version=no
9261 soname_spec='${libname}${release}${shared_ext}$major'
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009263 shlibpath_var=LD_LIBRARY_PATH
9264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9266 ;;
9267
mlcreech636a9952008-05-05 22:52:56 +00009268rdos*)
9269 dynamic_linker=no
9270 ;;
9271
drh71eb93e2001-09-28 01:34:43 +00009272solaris*)
9273 version_type=linux
9274 need_lib_prefix=no
9275 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009278 shlibpath_var=LD_LIBRARY_PATH
9279 shlibpath_overrides_runpath=yes
9280 hardcode_into_libs=yes
9281 # ldd complains unless libraries are executable
9282 postinstall_cmds='chmod +x $lib'
9283 ;;
9284
9285sunos4*)
9286 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 shlibpath_overrides_runpath=yes
9291 if test "$with_gnu_ld" = yes; then
9292 need_lib_prefix=no
9293 fi
9294 need_version=yes
9295 ;;
9296
vapier7f19c022007-02-17 14:46:31 +00009297sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009298 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009301 shlibpath_var=LD_LIBRARY_PATH
9302 case $host_vendor in
9303 sni)
9304 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009305 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009306 runpath_var=LD_RUN_PATH
9307 ;;
9308 siemens)
9309 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009310 ;;
9311 motorola)
9312 need_lib_prefix=no
9313 need_version=no
9314 shlibpath_overrides_runpath=no
9315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9316 ;;
9317 esac
9318 ;;
9319
9320sysv4*MP*)
9321 if test -d /usr/nec ;then
9322 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9324 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009325 shlibpath_var=LD_LIBRARY_PATH
9326 fi
9327 ;;
9328
vapier7f19c022007-02-17 14:46:31 +00009329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9330 version_type=freebsd-elf
9331 need_lib_prefix=no
9332 need_version=no
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009336 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009337 hardcode_into_libs=yes
9338 if test "$with_gnu_ld" = yes; then
9339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009340 else
9341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009342 case $host_os in
9343 sco3.2v5*)
9344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 ;;
9346 esac
9347 fi
9348 sys_lib_dlsearch_path_spec='/usr/lib'
9349 ;;
9350
mlcreech636a9952008-05-05 22:52:56 +00009351tpf*)
9352 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9353 version_type=linux
9354 need_lib_prefix=no
9355 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009357 shlibpath_var=LD_LIBRARY_PATH
9358 shlibpath_overrides_runpath=no
9359 hardcode_into_libs=yes
9360 ;;
9361
a.rottmann9bc8b932004-02-29 15:18:31 +00009362uts4*)
9363 version_type=linux
9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9365 soname_spec='${libname}${release}${shared_ext}$major'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 ;;
9368
drh71eb93e2001-09-28 01:34:43 +00009369*)
9370 dynamic_linker=no
9371 ;;
9372esac
drh8b727472009-01-19 18:18:40 +00009373{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9374$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009375test "$dynamic_linker" = no && can_build_shared=no
9376
vapier7f19c022007-02-17 14:46:31 +00009377variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9378if test "$GCC" = yes; then
9379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9380fi
9381
mlcreech636a9952008-05-05 22:52:56 +00009382if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9383 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9384fi
9385if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9386 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9387fi
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
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
drh8b727472009-01-19 18:18:40 +00009475 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9476$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009477hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009478if test -n "$hardcode_libdir_flag_spec" ||
9479 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009480 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009481
mlcreech636a9952008-05-05 22:52:56 +00009482 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009483 if test "$hardcode_direct" != no &&
9484 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9485 # have to relink, otherwise we might link with an installed library
9486 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009487 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009488 test "$hardcode_minus_L" != no; then
9489 # Linking always hardcodes the temporary library directory.
9490 hardcode_action=relink
9491 else
9492 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9493 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009494 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009495else
9496 # We cannot hardcode anything, or else we can only hardcode existing
9497 # directories.
9498 hardcode_action=unsupported
9499fi
drh8b727472009-01-19 18:18:40 +00009500{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9501$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009502
mlcreech636a9952008-05-05 22:52:56 +00009503if test "$hardcode_action" = relink ||
9504 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009505 # Fast installation is not supported
9506 enable_fast_install=no
9507elif test "$shlibpath_overrides_runpath" = yes ||
9508 test "$enable_shared" = no; then
9509 # Fast installation is not necessary
9510 enable_fast_install=needless
9511fi
9512
a.rottmann84e63352003-03-24 09:42:16 +00009513
mlcreech636a9952008-05-05 22:52:56 +00009514
9515
9516
9517
9518 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009519 enable_dlopen=unknown
9520 enable_dlopen_self=unknown
9521 enable_dlopen_self_static=unknown
9522else
9523 lt_cv_dlopen=no
9524 lt_cv_dlopen_libs=
9525
9526 case $host_os in
9527 beos*)
9528 lt_cv_dlopen="load_add_on"
9529 lt_cv_dlopen_libs=
9530 lt_cv_dlopen_self=yes
9531 ;;
9532
vapier6acb2cf2009-01-28 04:46:28 +00009533 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009534 lt_cv_dlopen="LoadLibrary"
9535 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009536 ;;
drh71eb93e2001-09-28 01:34:43 +00009537
a.rottmann9bc8b932004-02-29 15:18:31 +00009538 cygwin*)
9539 lt_cv_dlopen="dlopen"
9540 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009541 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009542
9543 darwin*)
9544 # if libdl is installed we need to link against it
drh8b727472009-01-19 18:18:40 +00009545 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9546$as_echo_n "checking for dlopen in -ldl... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009547if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009548 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009549else
9550 ac_check_lib_save_LIBS=$LIBS
9551LIBS="-ldl $LIBS"
9552cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558
drh8b727472009-01-19 18:18:40 +00009559/* Override any GCC internal prototype to avoid an error.
9560 Use char because int might match the return type of a GCC
9561 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009562#ifdef __cplusplus
9563extern "C"
9564#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009565char dlopen ();
9566int
9567main ()
9568{
drh8b727472009-01-19 18:18:40 +00009569return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009570 ;
9571 return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009575if { (ac_try="$ac_link"
9576case "(($ac_try" in
9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9578 *) ac_try_echo=$ac_try;;
9579esac
9580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9581$as_echo "$ac_try_echo") >&5
9582 (eval "$ac_link") 2>conftest.er1
a.rottmann9bc8b932004-02-29 15:18:31 +00009583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest$ac_exeext && {
9592 test "$cross_compiling" = yes ||
9593 $as_test_x conftest$ac_exeext
9594 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009595 ac_cv_lib_dl_dlopen=yes
9596else
drh8b727472009-01-19 18:18:40 +00009597 $as_echo "$as_me: failed program was:" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00009598sed 's/^/| /' conftest.$ac_ext >&5
9599
drh8b727472009-01-19 18:18:40 +00009600 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009601fi
drh8b727472009-01-19 18:18:40 +00009602
9603rm -rf conftest.dSYM
9604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann9bc8b932004-02-29 15:18:31 +00009605 conftest$ac_exeext conftest.$ac_ext
9606LIBS=$ac_check_lib_save_LIBS
9607fi
drh8b727472009-01-19 18:18:40 +00009608{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9609$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009610if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9612else
9613
9614 lt_cv_dlopen="dyld"
9615 lt_cv_dlopen_libs=
9616 lt_cv_dlopen_self=yes
9617
9618fi
9619
mlcreech636a9952008-05-05 22:52:56 +00009620 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009621
drh71eb93e2001-09-28 01:34:43 +00009622 *)
drh8b727472009-01-19 18:18:40 +00009623 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9624$as_echo_n "checking for shl_load... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009625if test "${ac_cv_func_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009626 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009627else
9628 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009629/* confdefs.h. */
9630_ACEOF
9631cat confdefs.h >>conftest.$ac_ext
9632cat >>conftest.$ac_ext <<_ACEOF
9633/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636#define shl_load innocuous_shl_load
9637
drh71eb93e2001-09-28 01:34:43 +00009638/* System header to define __stub macros and hopefully few prototypes,
a.rottmann84e63352003-03-24 09:42:16 +00009639 which can conflict with char shl_load (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009642
a.rottmann84e63352003-03-24 09:42:16 +00009643#ifdef __STDC__
9644# include <limits.h>
9645#else
9646# include <assert.h>
9647#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009648
9649#undef shl_load
9650
drh8b727472009-01-19 18:18:40 +00009651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009654#ifdef __cplusplus
9655extern "C"
9656#endif
drh71eb93e2001-09-28 01:34:43 +00009657char shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009658/* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009661#if defined __stub_shl_load || defined __stub___shl_load
drh71eb93e2001-09-28 01:34:43 +00009662choke me
drh71eb93e2001-09-28 01:34:43 +00009663#endif
9664
a.rottmann84e63352003-03-24 09:42:16 +00009665int
9666main ()
9667{
drh8b727472009-01-19 18:18:40 +00009668return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009669 ;
9670 return 0;
9671}
9672_ACEOF
9673rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009674if { (ac_try="$ac_link"
9675case "(($ac_try" in
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9678esac
9679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9680$as_echo "$ac_try_echo") >&5
9681 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009682 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext && {
9691 test "$cross_compiling" = yes ||
9692 $as_test_x conftest$ac_exeext
9693 }; then
drh71eb93e2001-09-28 01:34:43 +00009694 ac_cv_func_shl_load=yes
9695else
drh8b727472009-01-19 18:18:40 +00009696 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009697sed 's/^/| /' conftest.$ac_ext >&5
9698
drh8b727472009-01-19 18:18:40 +00009699 ac_cv_func_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009700fi
drh8b727472009-01-19 18:18:40 +00009701
9702rm -rf conftest.dSYM
9703rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009704 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009705fi
drh8b727472009-01-19 18:18:40 +00009706{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9707$as_echo "$ac_cv_func_shl_load" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009708if test "x$ac_cv_func_shl_load" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +00009709 lt_cv_dlopen="shl_load"
9710else
drh8b727472009-01-19 18:18:40 +00009711 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9712$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009713if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009714 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009715else
9716 ac_check_lib_save_LIBS=$LIBS
9717LIBS="-ldld $LIBS"
9718cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009719/* confdefs.h. */
9720_ACEOF
9721cat confdefs.h >>conftest.$ac_ext
9722cat >>conftest.$ac_ext <<_ACEOF
9723/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009724
drh8b727472009-01-19 18:18:40 +00009725/* Override any GCC internal prototype to avoid an error.
9726 Use char because int might match the return type of a GCC
9727 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009728#ifdef __cplusplus
9729extern "C"
9730#endif
drh71eb93e2001-09-28 01:34:43 +00009731char shl_load ();
9732int
9733main ()
9734{
drh8b727472009-01-19 18:18:40 +00009735return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009736 ;
9737 return 0;
9738}
9739_ACEOF
9740rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009741if { (ac_try="$ac_link"
9742case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9747$as_echo "$ac_try_echo") >&5
9748 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009749 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); } && {
9755 test -z "$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9757 } && test -s conftest$ac_exeext && {
9758 test "$cross_compiling" = yes ||
9759 $as_test_x conftest$ac_exeext
9760 }; then
drh71eb93e2001-09-28 01:34:43 +00009761 ac_cv_lib_dld_shl_load=yes
9762else
drh8b727472009-01-19 18:18:40 +00009763 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009764sed 's/^/| /' conftest.$ac_ext >&5
9765
drh8b727472009-01-19 18:18:40 +00009766 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009767fi
drh8b727472009-01-19 18:18:40 +00009768
9769rm -rf conftest.dSYM
9770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009771 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009772LIBS=$ac_check_lib_save_LIBS
9773fi
drh8b727472009-01-19 18:18:40 +00009774{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9775$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009776if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
mlcreech636a9952008-05-05 22:52:56 +00009777 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009778else
drh8b727472009-01-19 18:18:40 +00009779 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9780$as_echo_n "checking for dlopen... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009781if test "${ac_cv_func_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009782 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009783else
9784 cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009785/* confdefs.h. */
9786_ACEOF
9787cat confdefs.h >>conftest.$ac_ext
9788cat >>conftest.$ac_ext <<_ACEOF
9789/* end confdefs.h. */
a.rottmann964dbb12004-02-26 19:47:42 +00009790/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9792#define dlopen innocuous_dlopen
9793
a.rottmann84e63352003-03-24 09:42:16 +00009794/* System header to define __stub macros and hopefully few prototypes,
9795 which can conflict with char dlopen (); below.
9796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9797 <limits.h> exists even on freestanding compilers. */
a.rottmann964dbb12004-02-26 19:47:42 +00009798
a.rottmann84e63352003-03-24 09:42:16 +00009799#ifdef __STDC__
9800# include <limits.h>
9801#else
9802# include <assert.h>
9803#endif
a.rottmann964dbb12004-02-26 19:47:42 +00009804
9805#undef dlopen
9806
drh8b727472009-01-19 18:18:40 +00009807/* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009810#ifdef __cplusplus
9811extern "C"
a.rottmann84e63352003-03-24 09:42:16 +00009812#endif
a.rottmann84e63352003-03-24 09:42:16 +00009813char dlopen ();
9814/* The GNU C library defines this for functions which it implements
9815 to always fail with ENOSYS. Some functions are actually named
9816 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +00009817#if defined __stub_dlopen || defined __stub___dlopen
a.rottmann84e63352003-03-24 09:42:16 +00009818choke me
a.rottmann84e63352003-03-24 09:42:16 +00009819#endif
9820
9821int
9822main ()
9823{
drh8b727472009-01-19 18:18:40 +00009824return dlopen ();
a.rottmann84e63352003-03-24 09:42:16 +00009825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009830if { (ac_try="$ac_link"
9831case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836$as_echo "$ac_try_echo") >&5
9837 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +00009838 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest$ac_exeext && {
9847 test "$cross_compiling" = yes ||
9848 $as_test_x conftest$ac_exeext
9849 }; then
a.rottmann84e63352003-03-24 09:42:16 +00009850 ac_cv_func_dlopen=yes
9851else
drh8b727472009-01-19 18:18:40 +00009852 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009853sed 's/^/| /' conftest.$ac_ext >&5
9854
drh8b727472009-01-19 18:18:40 +00009855 ac_cv_func_dlopen=no
a.rottmann84e63352003-03-24 09:42:16 +00009856fi
drh8b727472009-01-19 18:18:40 +00009857
9858rm -rf conftest.dSYM
9859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009860 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009861fi
drh8b727472009-01-19 18:18:40 +00009862{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9863$as_echo "$ac_cv_func_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009864if test "x$ac_cv_func_dlopen" = x""yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009865 lt_cv_dlopen="dlopen"
9866else
drh8b727472009-01-19 18:18:40 +00009867 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009869if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009870 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009871else
9872 ac_check_lib_save_LIBS=$LIBS
9873LIBS="-ldl $LIBS"
9874cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009880
drh8b727472009-01-19 18:18:40 +00009881/* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009884#ifdef __cplusplus
9885extern "C"
9886#endif
drh71eb93e2001-09-28 01:34:43 +00009887char dlopen ();
9888int
9889main ()
9890{
drh8b727472009-01-19 18:18:40 +00009891return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009892 ;
9893 return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903$as_echo "$ac_try_echo") >&5
9904 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009905 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext && {
9914 test "$cross_compiling" = yes ||
9915 $as_test_x conftest$ac_exeext
9916 }; then
drh71eb93e2001-09-28 01:34:43 +00009917 ac_cv_lib_dl_dlopen=yes
9918else
drh8b727472009-01-19 18:18:40 +00009919 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009920sed 's/^/| /' conftest.$ac_ext >&5
9921
drh8b727472009-01-19 18:18:40 +00009922 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009923fi
drh8b727472009-01-19 18:18:40 +00009924
9925rm -rf conftest.dSYM
9926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009927 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009928LIBS=$ac_check_lib_save_LIBS
9929fi
drh8b727472009-01-19 18:18:40 +00009930{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +00009932if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +00009933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9934else
drh8b727472009-01-19 18:18:40 +00009935 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9936$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009937if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009938 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009939else
9940 ac_check_lib_save_LIBS=$LIBS
9941LIBS="-lsvld $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009948
drh8b727472009-01-19 18:18:40 +00009949/* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009952#ifdef __cplusplus
9953extern "C"
9954#endif
drh71eb93e2001-09-28 01:34:43 +00009955char dlopen ();
9956int
9957main ()
9958{
drh8b727472009-01-19 18:18:40 +00009959return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +00009965if { (ac_try="$ac_link"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971$as_echo "$ac_try_echo") >&5
9972 (eval "$ac_link") 2>conftest.er1
drh71eb93e2001-09-28 01:34:43 +00009973 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +00009974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +00009977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext && {
9982 test "$cross_compiling" = yes ||
9983 $as_test_x conftest$ac_exeext
9984 }; then
drh71eb93e2001-09-28 01:34:43 +00009985 ac_cv_lib_svld_dlopen=yes
9986else
drh8b727472009-01-19 18:18:40 +00009987 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00009988sed 's/^/| /' conftest.$ac_ext >&5
9989
drh8b727472009-01-19 18:18:40 +00009990 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009991fi
drh8b727472009-01-19 18:18:40 +00009992
9993rm -rf conftest.dSYM
9994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +00009995 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009996LIBS=$ac_check_lib_save_LIBS
9997fi
drh8b727472009-01-19 18:18:40 +00009998{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9999$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000010000if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
drh71eb93e2001-09-28 01:34:43 +000010001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010002else
drh8b727472009-01-19 18:18:40 +000010003 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10004$as_echo_n "checking for dld_link in -ldld... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +000010005if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010006 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010007else
10008 ac_check_lib_save_LIBS=$LIBS
10009LIBS="-ldld $LIBS"
10010cat >conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016
drh8b727472009-01-19 18:18:40 +000010017/* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010020#ifdef __cplusplus
10021extern "C"
10022#endif
a.rottmann84e63352003-03-24 09:42:16 +000010023char dld_link ();
10024int
10025main ()
10026{
drh8b727472009-01-19 18:18:40 +000010027return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010028 ;
10029 return 0;
10030}
10031_ACEOF
10032rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000010033if { (ac_try="$ac_link"
10034case "(($ac_try" in
10035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10037esac
10038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10039$as_echo "$ac_try_echo") >&5
10040 (eval "$ac_link") 2>conftest.er1
a.rottmann84e63352003-03-24 09:42:16 +000010041 ac_status=$?
a.rottmann964dbb12004-02-26 19:47:42 +000010042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest$ac_exeext && {
10050 test "$cross_compiling" = yes ||
10051 $as_test_x conftest$ac_exeext
10052 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010053 ac_cv_lib_dld_dld_link=yes
10054else
drh8b727472009-01-19 18:18:40 +000010055 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010056sed 's/^/| /' conftest.$ac_ext >&5
10057
drh8b727472009-01-19 18:18:40 +000010058 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010059fi
drh8b727472009-01-19 18:18:40 +000010060
10061rm -rf conftest.dSYM
10062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
a.rottmann964dbb12004-02-26 19:47:42 +000010063 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010064LIBS=$ac_check_lib_save_LIBS
10065fi
drh8b727472009-01-19 18:18:40 +000010066{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10067$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000010068if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
mlcreech636a9952008-05-05 22:52:56 +000010069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010070fi
10071
drh71eb93e2001-09-28 01:34:43 +000010072
10073fi
10074
drh71eb93e2001-09-28 01:34:43 +000010075
10076fi
10077
a.rottmann84e63352003-03-24 09:42:16 +000010078
10079fi
10080
10081
10082fi
10083
10084
drh71eb93e2001-09-28 01:34:43 +000010085fi
10086
10087 ;;
10088 esac
10089
10090 if test "x$lt_cv_dlopen" != xno; then
10091 enable_dlopen=yes
10092 else
10093 enable_dlopen=no
10094 fi
10095
10096 case $lt_cv_dlopen in
10097 dlopen)
10098 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010100
10101 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010103
10104 save_LIBS="$LIBS"
10105 LIBS="$lt_cv_dlopen_libs $LIBS"
10106
drh8b727472009-01-19 18:18:40 +000010107 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10108$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010109if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010110 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010111else
10112 if test "$cross_compiling" = yes; then :
10113 lt_cv_dlopen_self=cross
10114else
a.rottmann9bc8b932004-02-29 15:18:31 +000010115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010116 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010117 cat > conftest.$ac_ext <<_LT_EOF
vapierfaa68db2009-04-01 07:38:31 +000010118#line 10118 "configure"
drh71eb93e2001-09-28 01:34:43 +000010119#include "confdefs.h"
10120
10121#if HAVE_DLFCN_H
10122#include <dlfcn.h>
10123#endif
10124
10125#include <stdio.h>
10126
10127#ifdef RTLD_GLOBAL
10128# define LT_DLGLOBAL RTLD_GLOBAL
10129#else
10130# ifdef DL_GLOBAL
10131# define LT_DLGLOBAL DL_GLOBAL
10132# else
10133# define LT_DLGLOBAL 0
10134# endif
10135#endif
10136
10137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10138 find out it does not work in some platform. */
10139#ifndef LT_DLLAZY_OR_NOW
10140# ifdef RTLD_LAZY
10141# define LT_DLLAZY_OR_NOW RTLD_LAZY
10142# else
10143# ifdef DL_LAZY
10144# define LT_DLLAZY_OR_NOW DL_LAZY
10145# else
10146# ifdef RTLD_NOW
10147# define LT_DLLAZY_OR_NOW RTLD_NOW
10148# else
10149# ifdef DL_NOW
10150# define LT_DLLAZY_OR_NOW DL_NOW
10151# else
10152# define LT_DLLAZY_OR_NOW 0
10153# endif
10154# endif
10155# endif
10156# endif
10157#endif
10158
drh71eb93e2001-09-28 01:34:43 +000010159void fnord() { int i=42;}
10160int main ()
10161{
10162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10163 int status = $lt_dlunknown;
10164
10165 if (self)
10166 {
10167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10168 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10169 /* dlclose (self); */
10170 }
vapier7f19c022007-02-17 14:46:31 +000010171 else
10172 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010173
vapier6acb2cf2009-01-28 04:46:28 +000010174 return status;
drh71eb93e2001-09-28 01:34:43 +000010175}
mlcreech636a9952008-05-05 22:52:56 +000010176_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010178 (eval $ac_link) 2>&5
10179 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010182 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010183 lt_status=$?
10184 case x$lt_status in
10185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010188 esac
10189 else :
10190 # compilation failed
10191 lt_cv_dlopen_self=no
10192 fi
10193fi
10194rm -fr conftest*
10195
a.rottmann84e63352003-03-24 09:42:16 +000010196
drh71eb93e2001-09-28 01:34:43 +000010197fi
drh8b727472009-01-19 18:18:40 +000010198{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10199$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010200
10201 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh8b727472009-01-19 18:18:40 +000010203 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010205if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010206 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010207else
10208 if test "$cross_compiling" = yes; then :
10209 lt_cv_dlopen_self_static=cross
10210else
a.rottmann9bc8b932004-02-29 15:18:31 +000010211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010212 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010213 cat > conftest.$ac_ext <<_LT_EOF
vapierfaa68db2009-04-01 07:38:31 +000010214#line 10214 "configure"
drh71eb93e2001-09-28 01:34:43 +000010215#include "confdefs.h"
10216
10217#if HAVE_DLFCN_H
10218#include <dlfcn.h>
10219#endif
10220
10221#include <stdio.h>
10222
10223#ifdef RTLD_GLOBAL
10224# define LT_DLGLOBAL RTLD_GLOBAL
10225#else
10226# ifdef DL_GLOBAL
10227# define LT_DLGLOBAL DL_GLOBAL
10228# else
10229# define LT_DLGLOBAL 0
10230# endif
10231#endif
10232
10233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10234 find out it does not work in some platform. */
10235#ifndef LT_DLLAZY_OR_NOW
10236# ifdef RTLD_LAZY
10237# define LT_DLLAZY_OR_NOW RTLD_LAZY
10238# else
10239# ifdef DL_LAZY
10240# define LT_DLLAZY_OR_NOW DL_LAZY
10241# else
10242# ifdef RTLD_NOW
10243# define LT_DLLAZY_OR_NOW RTLD_NOW
10244# else
10245# ifdef DL_NOW
10246# define LT_DLLAZY_OR_NOW DL_NOW
10247# else
10248# define LT_DLLAZY_OR_NOW 0
10249# endif
10250# endif
10251# endif
10252# endif
10253#endif
10254
drh71eb93e2001-09-28 01:34:43 +000010255void fnord() { int i=42;}
10256int main ()
10257{
10258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10259 int status = $lt_dlunknown;
10260
10261 if (self)
10262 {
10263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10265 /* dlclose (self); */
10266 }
vapier7f19c022007-02-17 14:46:31 +000010267 else
10268 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010269
vapier6acb2cf2009-01-28 04:46:28 +000010270 return status;
drh71eb93e2001-09-28 01:34:43 +000010271}
mlcreech636a9952008-05-05 22:52:56 +000010272_LT_EOF
a.rottmann84e63352003-03-24 09:42:16 +000010273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010274 (eval $ac_link) 2>&5
10275 ac_status=$?
drh8b727472009-01-19 18:18:40 +000010276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
drh71eb93e2001-09-28 01:34:43 +000010277 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010278 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010279 lt_status=$?
10280 case x$lt_status in
10281 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10282 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010283 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010284 esac
10285 else :
10286 # compilation failed
10287 lt_cv_dlopen_self_static=no
10288 fi
10289fi
10290rm -fr conftest*
10291
a.rottmann84e63352003-03-24 09:42:16 +000010292
drh71eb93e2001-09-28 01:34:43 +000010293fi
drh8b727472009-01-19 18:18:40 +000010294{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10295$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010296 fi
10297
10298 CPPFLAGS="$save_CPPFLAGS"
10299 LDFLAGS="$save_LDFLAGS"
10300 LIBS="$save_LIBS"
10301 ;;
10302 esac
10303
10304 case $lt_cv_dlopen_self in
10305 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10306 *) enable_dlopen_self=unknown ;;
10307 esac
10308
10309 case $lt_cv_dlopen_self_static in
10310 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10311 *) enable_dlopen_self_static=unknown ;;
10312 esac
10313fi
10314
drh71eb93e2001-09-28 01:34:43 +000010315
drh71eb93e2001-09-28 01:34:43 +000010316
a.rottmann9bc8b932004-02-29 15:18:31 +000010317
a.rottmann9bc8b932004-02-29 15:18:31 +000010318
mlcreech636a9952008-05-05 22:52:56 +000010319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331striplib=
10332old_striplib=
drh8b727472009-01-19 18:18:40 +000010333{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10334$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010335if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh8b727472009-01-19 18:18:40 +000010338 { $as_echo "$as_me:$LINENO: result: yes" >&5
10339$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010340else
10341# FIXME - insert some real tests, host_os isn't really good enough
10342 case $host_os in
10343 darwin*)
10344 if test -n "$STRIP" ; then
10345 striplib="$STRIP -x"
10346 old_striplib="$STRIP -S"
drh8b727472009-01-19 18:18:40 +000010347 { $as_echo "$as_me:$LINENO: result: yes" >&5
10348$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010349 else
drh8b727472009-01-19 18:18:40 +000010350 { $as_echo "$as_me:$LINENO: result: no" >&5
10351$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010352 fi
a.rottmann84e63352003-03-24 09:42:16 +000010353 ;;
mlcreech636a9952008-05-05 22:52:56 +000010354 *)
drh8b727472009-01-19 18:18:40 +000010355 { $as_echo "$as_me:$LINENO: result: no" >&5
10356$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010357 ;;
10358 esac
mlcreech636a9952008-05-05 22:52:56 +000010359fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010360
a.rottmann9bc8b932004-02-29 15:18:31 +000010361
drh71eb93e2001-09-28 01:34:43 +000010362
drh71eb93e2001-09-28 01:34:43 +000010363
a.rottmann84e63352003-03-24 09:42:16 +000010364
drh71eb93e2001-09-28 01:34:43 +000010365
drh71eb93e2001-09-28 01:34:43 +000010366
a.rottmann9bc8b932004-02-29 15:18:31 +000010367
drh71eb93e2001-09-28 01:34:43 +000010368
drh71eb93e2001-09-28 01:34:43 +000010369
drh71eb93e2001-09-28 01:34:43 +000010370
drh71eb93e2001-09-28 01:34:43 +000010371
mlcreech636a9952008-05-05 22:52:56 +000010372 # Report which library types will actually be built
drh8b727472009-01-19 18:18:40 +000010373 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10374$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10375 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10376$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010377
drh8b727472009-01-19 18:18:40 +000010378 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10379$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010380 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010381
mlcreech636a9952008-05-05 22:52:56 +000010382 # On AIX, shared libraries and static libraries use the same namespace, and
10383 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010384 case $host_os in
10385 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010386 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010387 if test -n "$RANLIB"; then
10388 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10389 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010390 fi
10391 ;;
10392
mlcreech636a9952008-05-05 22:52:56 +000010393 aix[4-9]*)
10394 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10395 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010396 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010397 ;;
10398 esac
drh8b727472009-01-19 18:18:40 +000010399 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10400$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010401
drh8b727472009-01-19 18:18:40 +000010402 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10403$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010404 # Make sure either enable_shared or enable_static is yes.
10405 test "$enable_shared" = yes || enable_static=yes
drh8b727472009-01-19 18:18:40 +000010406 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10407$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010408
a.rottmann9bc8b932004-02-29 15:18:31 +000010409
a.rottmann9bc8b932004-02-29 15:18:31 +000010410
a.rottmann9bc8b932004-02-29 15:18:31 +000010411
vapier7f19c022007-02-17 14:46:31 +000010412fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010413ac_ext=c
10414ac_cpp='$CPP $CPPFLAGS'
10415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10417ac_compiler_gnu=$ac_cv_c_compiler_gnu
10418
10419CC="$lt_save_CC"
10420
a.rottmann9bc8b932004-02-29 15:18:31 +000010421
a.rottmann9bc8b932004-02-29 15:18:31 +000010422
10423
a.rottmann9bc8b932004-02-29 15:18:31 +000010424
a.rottmann9bc8b932004-02-29 15:18:31 +000010425
a.rottmann9bc8b932004-02-29 15:18:31 +000010426
a.rottmann9bc8b932004-02-29 15:18:31 +000010427
a.rottmann9bc8b932004-02-29 15:18:31 +000010428
a.rottmann9bc8b932004-02-29 15:18:31 +000010429
vapier7f19c022007-02-17 14:46:31 +000010430
a.rottmann9bc8b932004-02-29 15:18:31 +000010431
10432
drh8b727472009-01-19 18:18:40 +000010433 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010434
vapier7f19c022007-02-17 14:46:31 +000010435
10436
vapier7f19c022007-02-17 14:46:31 +000010437
mlcreech636a9952008-05-05 22:52:56 +000010438# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010439
10440
drh71eb93e2001-09-28 01:34:43 +000010441# Find a good install program. We prefer a C program (faster),
10442# so one script is as good as another. But avoid the broken or
10443# incompatible versions:
10444# SysV /etc/install, /usr/sbin/install
10445# SunOS /usr/etc/install
10446# IRIX /sbin/install
10447# AIX /bin/install
10448# AmigaOS /C/install, which installs bootblocks on floppy discs
10449# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10450# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10451# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010452# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010453# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010454# Reject install programs that cannot install multiple files.
10455{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10456$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010457if test -z "$INSTALL"; then
10458if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010459 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010460else
a.rottmann84e63352003-03-24 09:42:16 +000010461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10462for as_dir in $PATH
10463do
10464 IFS=$as_save_IFS
10465 test -z "$as_dir" && as_dir=.
10466 # Account for people who put trailing slashes in PATH elements.
10467case $as_dir/ in
10468 ./ | .// | /cC/* | \
10469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
a.rottmann964dbb12004-02-26 19:47:42 +000010470 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010471 /usr/ucb/* ) ;;
10472 *)
10473 # OSF1 and SCO ODT 3.0 have their own names for install.
10474 # Don't use installbsd from OSF since it installs stuff as root
10475 # by default.
10476 for ac_prog in ginstall scoinst install; do
10477 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010478 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 +000010479 if test $ac_prog = install &&
10480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10481 # AIX install. It has an incompatible calling convention.
10482 :
10483 elif test $ac_prog = install &&
10484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10485 # program-specific install script used by HP pwplus--don't use.
10486 :
10487 else
drh8b727472009-01-19 18:18:40 +000010488 rm -rf conftest.one conftest.two conftest.dir
10489 echo one > conftest.one
10490 echo two > conftest.two
10491 mkdir conftest.dir
10492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10493 test -s conftest.one && test -s conftest.two &&
10494 test -s conftest.dir/conftest.one &&
10495 test -s conftest.dir/conftest.two
10496 then
10497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10498 break 3
10499 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010500 fi
10501 fi
drh71eb93e2001-09-28 01:34:43 +000010502 done
a.rottmann84e63352003-03-24 09:42:16 +000010503 done
10504 ;;
10505esac
a.rottmann84e63352003-03-24 09:42:16 +000010506
drh8b727472009-01-19 18:18:40 +000010507done
10508IFS=$as_save_IFS
10509
10510rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010511
10512fi
10513 if test "${ac_cv_path_install+set}" = set; then
10514 INSTALL=$ac_cv_path_install
10515 else
drh8b727472009-01-19 18:18:40 +000010516 # As a last resort, use the slow shell script. Don't cache a
10517 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010518 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010519 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010520 INSTALL=$ac_install_sh
10521 fi
10522fi
drh8b727472009-01-19 18:18:40 +000010523{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10524$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010525
10526# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10527# It thinks the first close brace ends the variable substitution.
10528test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10529
10530test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10531
10532test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10533
drhf1878b42006-01-23 18:06:52 +000010534for ac_prog in gawk mawk nawk awk
10535do
10536 # Extract the first word of "$ac_prog", so it can be a program name with args.
10537set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000010538{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10539$as_echo_n "checking for $ac_word... " >&6; }
drhf1878b42006-01-23 18:06:52 +000010540if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010541 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010542else
10543 if test -n "$AWK"; then
10544 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010552 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 +000010553 ac_cv_prog_AWK="$ac_prog"
drh8b727472009-01-19 18:18:40 +000010554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010555 break 2
10556 fi
10557done
10558done
drh8b727472009-01-19 18:18:40 +000010559IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010560
10561fi
10562fi
10563AWK=$ac_cv_prog_AWK
10564if test -n "$AWK"; then
drh8b727472009-01-19 18:18:40 +000010565 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10566$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010567else
drh8b727472009-01-19 18:18:40 +000010568 { $as_echo "$as_me:$LINENO: result: no" >&5
10569$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010570fi
10571
drh8b727472009-01-19 18:18:40 +000010572
drhf1878b42006-01-23 18:06:52 +000010573 test -n "$AWK" && break
10574done
10575
a.rottmann84e63352003-03-24 09:42:16 +000010576
drh75897232000-05-29 14:26:00 +000010577#########
mlcreech636a9952008-05-05 22:52:56 +000010578# Enable large file support (if special flags are necessary)
10579#
drh8b727472009-01-19 18:18:40 +000010580# Check whether --enable-largefile was given.
mlcreech636a9952008-05-05 22:52:56 +000010581if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010582 enableval=$enable_largefile;
10583fi
mlcreech636a9952008-05-05 22:52:56 +000010584
10585if test "$enable_largefile" != no; then
10586
drh8b727472009-01-19 18:18:40 +000010587 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10588$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010589if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010590 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010591else
mlcreech636a9952008-05-05 22:52:56 +000010592 ac_cv_sys_largefile_CC=no
10593 if test "$GCC" != yes; then
10594 ac_save_CC=$CC
10595 while :; do
drh8b727472009-01-19 18:18:40 +000010596 # IRIX 6.2 and later do not support large files by default,
10597 # so use the C compiler's -n32 option if that helps.
mlcreech636a9952008-05-05 22:52:56 +000010598 cat >conftest.$ac_ext <<_ACEOF
10599/* confdefs.h. */
10600_ACEOF
10601cat confdefs.h >>conftest.$ac_ext
10602cat >>conftest.$ac_ext <<_ACEOF
10603/* end confdefs.h. */
10604#include <sys/types.h>
10605 /* Check that off_t can represent 2**63 - 1 correctly.
10606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10607 since some C++ compilers masquerading as C compilers
10608 incorrectly reject 9223372036854775807. */
10609#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10611 && LARGE_OFF_T % 2147483647 == 1)
10612 ? 1 : -1];
10613int
10614main ()
10615{
10616
10617 ;
10618 return 0;
10619}
10620_ACEOF
drh8b727472009-01-19 18:18:40 +000010621 rm -f conftest.$ac_objext
10622if { (ac_try="$ac_compile"
10623case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626esac
10627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10628$as_echo "$ac_try_echo") >&5
10629 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010630 ac_status=$?
10631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010639 break
10640else
drh8b727472009-01-19 18:18:40 +000010641 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010642sed 's/^/| /' conftest.$ac_ext >&5
10643
drh8b727472009-01-19 18:18:40 +000010644
mlcreech636a9952008-05-05 22:52:56 +000010645fi
drh8b727472009-01-19 18:18:40 +000010646
10647rm -f core conftest.err conftest.$ac_objext
10648 CC="$CC -n32"
10649 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 ac_cv_sys_largefile_CC=' -n32'; 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
mlcreech636a9952008-05-05 22:52:56 +000010676 break
10677 done
10678 CC=$ac_save_CC
10679 rm -f conftest.$ac_ext
10680 fi
10681fi
drh8b727472009-01-19 18:18:40 +000010682{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10683$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010684 if test "$ac_cv_sys_largefile_CC" != no; then
10685 CC=$CC$ac_cv_sys_largefile_CC
10686 fi
10687
drh8b727472009-01-19 18:18:40 +000010688 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10689$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010690if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010691 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010692else
10693 while :; do
mlcreechb87057f2008-03-06 07:19:20 +000010694 cat >conftest.$ac_ext <<_ACEOF
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010700#include <sys/types.h>
10701 /* Check that off_t can represent 2**63 - 1 correctly.
10702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10703 since some C++ compilers masquerading as C compilers
10704 incorrectly reject 9223372036854775807. */
10705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10707 && LARGE_OFF_T % 2147483647 == 1)
10708 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010709int
10710main ()
10711{
mlcreech636a9952008-05-05 22:52:56 +000010712
mlcreechb87057f2008-03-06 07:19:20 +000010713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010718if { (ac_try="$ac_compile"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724$as_echo "$ac_try_echo") >&5
10725 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000010726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest.$ac_objext; then
10735 ac_cv_sys_file_offset_bits=no; break
mlcreechb87057f2008-03-06 07:19:20 +000010736else
drh8b727472009-01-19 18:18:40 +000010737 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000010738sed 's/^/| /' conftest.$ac_ext >&5
10739
drh8b727472009-01-19 18:18:40 +000010740
mlcreech636a9952008-05-05 22:52:56 +000010741fi
drh8b727472009-01-19 18:18:40 +000010742
10743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010744 cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h. */
10750#define _FILE_OFFSET_BITS 64
10751#include <sys/types.h>
10752 /* Check that off_t can represent 2**63 - 1 correctly.
10753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10754 since some C++ compilers masquerading as C compilers
10755 incorrectly reject 9223372036854775807. */
10756#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10758 && LARGE_OFF_T % 2147483647 == 1)
10759 ? 1 : -1];
10760int
10761main ()
10762{
10763
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010769if { (ac_try="$ac_compile"
10770case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10773esac
10774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10775$as_echo "$ac_try_echo") >&5
10776 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010777 ac_status=$?
10778 grep -v '^ *+' conftest.er1 >conftest.err
10779 rm -f conftest.er1
10780 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); } && {
10783 test -z "$ac_c_werror_flag" ||
10784 test ! -s conftest.err
10785 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010786 ac_cv_sys_file_offset_bits=64; break
10787else
drh8b727472009-01-19 18:18:40 +000010788 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010789sed 's/^/| /' conftest.$ac_ext >&5
10790
drh8b727472009-01-19 18:18:40 +000010791
mlcreech636a9952008-05-05 22:52:56 +000010792fi
drh8b727472009-01-19 18:18:40 +000010793
10794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010796 break
10797done
10798fi
drh8b727472009-01-19 18:18:40 +000010799{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10800$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10801case $ac_cv_sys_file_offset_bits in #(
10802 no | unknown) ;;
10803 *)
mlcreech636a9952008-05-05 22:52:56 +000010804cat >>confdefs.h <<_ACEOF
10805#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10806_ACEOF
drh8b727472009-01-19 18:18:40 +000010807;;
10808esac
10809rm -rf conftest*
10810 if test $ac_cv_sys_file_offset_bits = unknown; then
10811 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10812$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010813if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010814 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010815else
10816 while :; do
10817 cat >conftest.$ac_ext <<_ACEOF
10818/* confdefs.h. */
10819_ACEOF
10820cat confdefs.h >>conftest.$ac_ext
10821cat >>conftest.$ac_ext <<_ACEOF
10822/* end confdefs.h. */
10823#include <sys/types.h>
10824 /* Check that off_t can represent 2**63 - 1 correctly.
10825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10826 since some C++ compilers masquerading as C compilers
10827 incorrectly reject 9223372036854775807. */
10828#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10830 && LARGE_OFF_T % 2147483647 == 1)
10831 ? 1 : -1];
10832int
10833main ()
10834{
10835
10836 ;
10837 return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010841if { (ac_try="$ac_compile"
10842case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10847$as_echo "$ac_try_echo") >&5
10848 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); } && {
10855 test -z "$ac_c_werror_flag" ||
10856 test ! -s conftest.err
10857 } && test -s conftest.$ac_objext; then
10858 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010859else
drh8b727472009-01-19 18:18:40 +000010860 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010861sed 's/^/| /' conftest.$ac_ext >&5
10862
drh8b727472009-01-19 18:18:40 +000010863
mlcreech636a9952008-05-05 22:52:56 +000010864fi
drh8b727472009-01-19 18:18:40 +000010865
10866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010867 cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873#define _LARGE_FILES 1
10874#include <sys/types.h>
10875 /* Check that off_t can represent 2**63 - 1 correctly.
10876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10877 since some C++ compilers masquerading as C compilers
10878 incorrectly reject 9223372036854775807. */
10879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10881 && LARGE_OFF_T % 2147483647 == 1)
10882 ? 1 : -1];
10883int
10884main ()
10885{
10886
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010892if { (ac_try="$ac_compile"
10893case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10896esac
10897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10898$as_echo "$ac_try_echo") >&5
10899 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000010900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000010904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010909 ac_cv_sys_large_files=1; break
10910else
drh8b727472009-01-19 18:18:40 +000010911 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000010912sed 's/^/| /' conftest.$ac_ext >&5
10913
drh8b727472009-01-19 18:18:40 +000010914
mlcreech636a9952008-05-05 22:52:56 +000010915fi
drh8b727472009-01-19 18:18:40 +000010916
10917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10918 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010919 break
10920done
10921fi
drh8b727472009-01-19 18:18:40 +000010922{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10923$as_echo "$ac_cv_sys_large_files" >&6; }
10924case $ac_cv_sys_large_files in #(
10925 no | unknown) ;;
10926 *)
mlcreech636a9952008-05-05 22:52:56 +000010927cat >>confdefs.h <<_ACEOF
10928#define _LARGE_FILES $ac_cv_sys_large_files
10929_ACEOF
drh8b727472009-01-19 18:18:40 +000010930;;
10931esac
10932rm -rf conftest*
10933 fi
mlcreech636a9952008-05-05 22:52:56 +000010934fi
10935
10936
10937#########
10938# Check for needed/wanted data types
drh8b727472009-01-19 18:18:40 +000010939{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10940$as_echo_n "checking for int8_t... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010941if test "${ac_cv_type_int8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010942 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010943else
drh8b727472009-01-19 18:18:40 +000010944 ac_cv_type_int8_t=no
10945cat >conftest.$ac_ext <<_ACEOF
10946/* confdefs.h. */
10947_ACEOF
10948cat confdefs.h >>conftest.$ac_ext
10949cat >>conftest.$ac_ext <<_ACEOF
10950/* end confdefs.h. */
10951$ac_includes_default
10952int
10953main ()
10954{
10955if (sizeof (int8_t))
10956 return 0;
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961rm -f conftest.$ac_objext
10962if { (ac_try="$ac_compile"
10963case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966esac
10967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10968$as_echo "$ac_try_echo") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010979 cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985$ac_includes_default
10986int
10987main ()
10988{
drh8b727472009-01-19 18:18:40 +000010989if (sizeof ((int8_t)))
10990 return 0;
mlcreech636a9952008-05-05 22:52:56 +000010991 ;
10992 return 0;
10993}
10994_ACEOF
10995rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000010996if { (ac_try="$ac_compile"
10997case "(($ac_try" in
10998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10999 *) ac_try_echo=$ac_try;;
11000esac
11001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11002$as_echo "$ac_try_echo") >&5
11003 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest.$ac_objext; then
11013 :
mlcreech636a9952008-05-05 22:52:56 +000011014else
drh8b727472009-01-19 18:18:40 +000011015 $as_echo "$as_me: failed program was:" >&5
mlcreech636a9952008-05-05 22:52:56 +000011016sed 's/^/| /' conftest.$ac_ext >&5
11017
drh8b727472009-01-19 18:18:40 +000011018 ac_cv_type_int8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011019fi
drh8b727472009-01-19 18:18:40 +000011020
11021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022else
11023 $as_echo "$as_me: failed program was:" >&5
11024sed 's/^/| /' conftest.$ac_ext >&5
11025
11026
mlcreechb87057f2008-03-06 07:19:20 +000011027fi
drh8b727472009-01-19 18:18:40 +000011028
11029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030fi
11031{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11032$as_echo "$ac_cv_type_int8_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011033if test "x$ac_cv_type_int8_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011034
11035cat >>confdefs.h <<_ACEOF
11036#define HAVE_INT8_T 1
11037_ACEOF
11038
11039
11040fi
drh8b727472009-01-19 18:18:40 +000011041{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11042$as_echo_n "checking for int16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011043if test "${ac_cv_type_int16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011044 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011045else
drh8b727472009-01-19 18:18:40 +000011046 ac_cv_type_int16_t=no
11047cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
11053$ac_includes_default
11054int
11055main ()
11056{
11057if (sizeof (int16_t))
11058 return 0;
11059 ;
11060 return 0;
11061}
11062_ACEOF
11063rm -f conftest.$ac_objext
11064if { (ac_try="$ac_compile"
11065case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068esac
11069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11070$as_echo "$ac_try_echo") >&5
11071 (eval "$ac_compile") 2>conftest.er1
11072 ac_status=$?
11073 grep -v '^ *+' conftest.er1 >conftest.err
11074 rm -f conftest.er1
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011081 cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087$ac_includes_default
11088int
11089main ()
11090{
drh8b727472009-01-19 18:18:40 +000011091if (sizeof ((int16_t)))
11092 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011093 ;
11094 return 0;
11095}
11096_ACEOF
11097rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011098if { (ac_try="$ac_compile"
11099case "(($ac_try" in
11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101 *) ac_try_echo=$ac_try;;
11102esac
11103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11104$as_echo "$ac_try_echo") >&5
11105 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011106 ac_status=$?
11107 grep -v '^ *+' conftest.er1 >conftest.err
11108 rm -f conftest.er1
11109 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest.$ac_objext; then
11115 :
mlcreechb87057f2008-03-06 07:19:20 +000011116else
drh8b727472009-01-19 18:18:40 +000011117 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011118sed 's/^/| /' conftest.$ac_ext >&5
11119
drh8b727472009-01-19 18:18:40 +000011120 ac_cv_type_int16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011121fi
drh8b727472009-01-19 18:18:40 +000011122
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124else
11125 $as_echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
11128
mlcreechb87057f2008-03-06 07:19:20 +000011129fi
drh8b727472009-01-19 18:18:40 +000011130
11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132fi
11133{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11134$as_echo "$ac_cv_type_int16_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011135if test "x$ac_cv_type_int16_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011136
11137cat >>confdefs.h <<_ACEOF
11138#define HAVE_INT16_T 1
11139_ACEOF
11140
11141
11142fi
drh8b727472009-01-19 18:18:40 +000011143{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11144$as_echo_n "checking for int32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011145if test "${ac_cv_type_int32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011146 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011147else
drh8b727472009-01-19 18:18:40 +000011148 ac_cv_type_int32_t=no
11149cat >conftest.$ac_ext <<_ACEOF
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155$ac_includes_default
11156int
11157main ()
11158{
11159if (sizeof (int32_t))
11160 return 0;
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165rm -f conftest.$ac_objext
11166if { (ac_try="$ac_compile"
11167case "(($ac_try" in
11168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169 *) ac_try_echo=$ac_try;;
11170esac
11171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11172$as_echo "$ac_try_echo") >&5
11173 (eval "$ac_compile") 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011183 cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189$ac_includes_default
11190int
11191main ()
11192{
drh8b727472009-01-19 18:18:40 +000011193if (sizeof ((int32_t)))
11194 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011195 ;
11196 return 0;
11197}
11198_ACEOF
11199rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011200if { (ac_try="$ac_compile"
11201case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204esac
11205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11206$as_echo "$ac_try_echo") >&5
11207 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 :
mlcreechb87057f2008-03-06 07:19:20 +000011218else
drh8b727472009-01-19 18:18:40 +000011219 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011220sed 's/^/| /' conftest.$ac_ext >&5
11221
drh8b727472009-01-19 18:18:40 +000011222 ac_cv_type_int32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011223fi
drh8b727472009-01-19 18:18:40 +000011224
11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226else
11227 $as_echo "$as_me: failed program was:" >&5
11228sed 's/^/| /' conftest.$ac_ext >&5
11229
11230
mlcreechb87057f2008-03-06 07:19:20 +000011231fi
drh8b727472009-01-19 18:18:40 +000011232
11233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234fi
11235{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11236$as_echo "$ac_cv_type_int32_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011237if test "x$ac_cv_type_int32_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011238
11239cat >>confdefs.h <<_ACEOF
11240#define HAVE_INT32_T 1
11241_ACEOF
11242
11243
11244fi
drh8b727472009-01-19 18:18:40 +000011245{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11246$as_echo_n "checking for int64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011247if test "${ac_cv_type_int64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011248 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011249else
drh8b727472009-01-19 18:18:40 +000011250 ac_cv_type_int64_t=no
11251cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257$ac_includes_default
11258int
11259main ()
11260{
11261if (sizeof (int64_t))
11262 return 0;
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (ac_try="$ac_compile"
11269case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274$as_echo "$ac_try_echo") >&5
11275 (eval "$ac_compile") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011285 cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291$ac_includes_default
11292int
11293main ()
11294{
drh8b727472009-01-19 18:18:40 +000011295if (sizeof ((int64_t)))
11296 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011297 ;
11298 return 0;
11299}
11300_ACEOF
11301rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011302if { (ac_try="$ac_compile"
11303case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11308$as_echo "$ac_try_echo") >&5
11309 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011310 ac_status=$?
11311 grep -v '^ *+' conftest.er1 >conftest.err
11312 rm -f conftest.er1
11313 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest.$ac_objext; then
11319 :
mlcreechb87057f2008-03-06 07:19:20 +000011320else
drh8b727472009-01-19 18:18:40 +000011321 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011322sed 's/^/| /' conftest.$ac_ext >&5
11323
drh8b727472009-01-19 18:18:40 +000011324 ac_cv_type_int64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011325fi
drh8b727472009-01-19 18:18:40 +000011326
11327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328else
11329 $as_echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332
mlcreechb87057f2008-03-06 07:19:20 +000011333fi
drh8b727472009-01-19 18:18:40 +000011334
11335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336fi
11337{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11338$as_echo "$ac_cv_type_int64_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011339if test "x$ac_cv_type_int64_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011340
11341cat >>confdefs.h <<_ACEOF
11342#define HAVE_INT64_T 1
11343_ACEOF
11344
11345
11346fi
drh8b727472009-01-19 18:18:40 +000011347{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11348$as_echo_n "checking for intptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011349if test "${ac_cv_type_intptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011350 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011351else
drh8b727472009-01-19 18:18:40 +000011352 ac_cv_type_intptr_t=no
11353cat >conftest.$ac_ext <<_ACEOF
11354/* confdefs.h. */
11355_ACEOF
11356cat confdefs.h >>conftest.$ac_ext
11357cat >>conftest.$ac_ext <<_ACEOF
11358/* end confdefs.h. */
11359$ac_includes_default
11360int
11361main ()
11362{
11363if (sizeof (intptr_t))
11364 return 0;
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369rm -f conftest.$ac_objext
11370if { (ac_try="$ac_compile"
11371case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374esac
11375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11376$as_echo "$ac_try_echo") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011387 cat >conftest.$ac_ext <<_ACEOF
11388/* confdefs.h. */
11389_ACEOF
11390cat confdefs.h >>conftest.$ac_ext
11391cat >>conftest.$ac_ext <<_ACEOF
11392/* end confdefs.h. */
11393$ac_includes_default
11394int
11395main ()
11396{
drh8b727472009-01-19 18:18:40 +000011397if (sizeof ((intptr_t)))
11398 return 0;
danielk197733a14782008-08-04 14:50:05 +000011399 ;
11400 return 0;
11401}
11402_ACEOF
11403rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011404if { (ac_try="$ac_compile"
11405case "(($ac_try" in
11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11408esac
11409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11410$as_echo "$ac_try_echo") >&5
11411 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest.$ac_objext; then
11421 :
danielk197733a14782008-08-04 14:50:05 +000011422else
drh8b727472009-01-19 18:18:40 +000011423 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011424sed 's/^/| /' conftest.$ac_ext >&5
mlcreechb87057f2008-03-06 07:19:20 +000011425
drh8b727472009-01-19 18:18:40 +000011426 ac_cv_type_intptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011427fi
drh8b727472009-01-19 18:18:40 +000011428
11429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11430else
11431 $as_echo "$as_me: failed program was:" >&5
11432sed 's/^/| /' conftest.$ac_ext >&5
11433
11434
danielk197733a14782008-08-04 14:50:05 +000011435fi
drh8b727472009-01-19 18:18:40 +000011436
11437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11438fi
11439{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11440$as_echo "$ac_cv_type_intptr_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011441if test "x$ac_cv_type_intptr_t" = x""yes; then
danielk197733a14782008-08-04 14:50:05 +000011442
11443cat >>confdefs.h <<_ACEOF
11444#define HAVE_INTPTR_T 1
11445_ACEOF
11446
11447
11448fi
drh8b727472009-01-19 18:18:40 +000011449{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11450$as_echo_n "checking for uint8_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011451if test "${ac_cv_type_uint8_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011452 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011453else
drh8b727472009-01-19 18:18:40 +000011454 ac_cv_type_uint8_t=no
11455cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
11461$ac_includes_default
11462int
11463main ()
11464{
11465if (sizeof (uint8_t))
11466 return 0;
11467 ;
11468 return 0;
11469}
11470_ACEOF
11471rm -f conftest.$ac_objext
11472if { (ac_try="$ac_compile"
11473case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
11477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11478$as_echo "$ac_try_echo") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011489 cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
11495$ac_includes_default
11496int
11497main ()
11498{
drh8b727472009-01-19 18:18:40 +000011499if (sizeof ((uint8_t)))
11500 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011501 ;
11502 return 0;
11503}
11504_ACEOF
11505rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011506if { (ac_try="$ac_compile"
11507case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11512$as_echo "$ac_try_echo") >&5
11513 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 :
mlcreechb87057f2008-03-06 07:19:20 +000011524else
drh8b727472009-01-19 18:18:40 +000011525 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011526sed 's/^/| /' conftest.$ac_ext >&5
11527
drh8b727472009-01-19 18:18:40 +000011528 ac_cv_type_uint8_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011529fi
drh8b727472009-01-19 18:18:40 +000011530
11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532else
11533 $as_echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536
mlcreechb87057f2008-03-06 07:19:20 +000011537fi
drh8b727472009-01-19 18:18:40 +000011538
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540fi
11541{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11542$as_echo "$ac_cv_type_uint8_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011543if test "x$ac_cv_type_uint8_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011544
11545cat >>confdefs.h <<_ACEOF
11546#define HAVE_UINT8_T 1
11547_ACEOF
11548
11549
11550fi
drh8b727472009-01-19 18:18:40 +000011551{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11552$as_echo_n "checking for uint16_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011553if test "${ac_cv_type_uint16_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011554 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011555else
drh8b727472009-01-19 18:18:40 +000011556 ac_cv_type_uint16_t=no
11557cat >conftest.$ac_ext <<_ACEOF
11558/* confdefs.h. */
11559_ACEOF
11560cat confdefs.h >>conftest.$ac_ext
11561cat >>conftest.$ac_ext <<_ACEOF
11562/* end confdefs.h. */
11563$ac_includes_default
11564int
11565main ()
11566{
11567if (sizeof (uint16_t))
11568 return 0;
11569 ;
11570 return 0;
11571}
11572_ACEOF
11573rm -f conftest.$ac_objext
11574if { (ac_try="$ac_compile"
11575case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578esac
11579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11580$as_echo "$ac_try_echo") >&5
11581 (eval "$ac_compile") 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } && {
11588 test -z "$ac_c_werror_flag" ||
11589 test ! -s conftest.err
11590 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597$ac_includes_default
11598int
11599main ()
11600{
drh8b727472009-01-19 18:18:40 +000011601if (sizeof ((uint16_t)))
11602 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011603 ;
11604 return 0;
11605}
11606_ACEOF
11607rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011608if { (ac_try="$ac_compile"
11609case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614$as_echo "$ac_try_echo") >&5
11615 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest.$ac_objext; then
11625 :
mlcreechb87057f2008-03-06 07:19:20 +000011626else
drh8b727472009-01-19 18:18:40 +000011627 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011628sed 's/^/| /' conftest.$ac_ext >&5
11629
drh8b727472009-01-19 18:18:40 +000011630 ac_cv_type_uint16_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011631fi
drh8b727472009-01-19 18:18:40 +000011632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634else
11635 $as_echo "$as_me: failed program was:" >&5
11636sed 's/^/| /' conftest.$ac_ext >&5
11637
11638
mlcreechb87057f2008-03-06 07:19:20 +000011639fi
drh8b727472009-01-19 18:18:40 +000011640
11641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11642fi
11643{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11644$as_echo "$ac_cv_type_uint16_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011645if test "x$ac_cv_type_uint16_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011646
11647cat >>confdefs.h <<_ACEOF
11648#define HAVE_UINT16_T 1
11649_ACEOF
11650
11651
11652fi
drh8b727472009-01-19 18:18:40 +000011653{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11654$as_echo_n "checking for uint32_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011655if test "${ac_cv_type_uint32_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011656 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011657else
drh8b727472009-01-19 18:18:40 +000011658 ac_cv_type_uint32_t=no
11659cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665$ac_includes_default
11666int
11667main ()
11668{
11669if (sizeof (uint32_t))
11670 return 0;
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (ac_try="$ac_compile"
11677case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680esac
11681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11682$as_echo "$ac_try_echo") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699$ac_includes_default
11700int
11701main ()
11702{
drh8b727472009-01-19 18:18:40 +000011703if (sizeof ((uint32_t)))
11704 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011710if { (ac_try="$ac_compile"
11711case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11716$as_echo "$ac_try_echo") >&5
11717 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && {
11724 test -z "$ac_c_werror_flag" ||
11725 test ! -s conftest.err
11726 } && test -s conftest.$ac_objext; then
11727 :
mlcreechb87057f2008-03-06 07:19:20 +000011728else
drh8b727472009-01-19 18:18:40 +000011729 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011730sed 's/^/| /' conftest.$ac_ext >&5
11731
drh8b727472009-01-19 18:18:40 +000011732 ac_cv_type_uint32_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011733fi
drh8b727472009-01-19 18:18:40 +000011734
11735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11736else
11737 $as_echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
11739
11740
mlcreechb87057f2008-03-06 07:19:20 +000011741fi
drh8b727472009-01-19 18:18:40 +000011742
11743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11744fi
11745{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11746$as_echo "$ac_cv_type_uint32_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011747if test "x$ac_cv_type_uint32_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011748
11749cat >>confdefs.h <<_ACEOF
11750#define HAVE_UINT32_T 1
11751_ACEOF
11752
11753
11754fi
drh8b727472009-01-19 18:18:40 +000011755{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11756$as_echo_n "checking for uint64_t... " >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011757if test "${ac_cv_type_uint64_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011758 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000011759else
drh8b727472009-01-19 18:18:40 +000011760 ac_cv_type_uint64_t=no
11761cat >conftest.$ac_ext <<_ACEOF
11762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
11767$ac_includes_default
11768int
11769main ()
11770{
11771if (sizeof (uint64_t))
11772 return 0;
11773 ;
11774 return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext
11778if { (ac_try="$ac_compile"
11779case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782esac
11783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11784$as_echo "$ac_try_echo") >&5
11785 (eval "$ac_compile") 2>conftest.er1
11786 ac_status=$?
11787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
11790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } && {
11792 test -z "$ac_c_werror_flag" ||
11793 test ! -s conftest.err
11794 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000011795 cat >conftest.$ac_ext <<_ACEOF
11796/* confdefs.h. */
11797_ACEOF
11798cat confdefs.h >>conftest.$ac_ext
11799cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */
11801$ac_includes_default
11802int
11803main ()
11804{
drh8b727472009-01-19 18:18:40 +000011805if (sizeof ((uint64_t)))
11806 return 0;
mlcreech636a9952008-05-05 22:52:56 +000011807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011812if { (ac_try="$ac_compile"
11813case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11818$as_echo "$ac_try_echo") >&5
11819 (eval "$ac_compile") 2>conftest.er1
mlcreech636a9952008-05-05 22:52:56 +000011820 ac_status=$?
11821 grep -v '^ *+' conftest.er1 >conftest.err
11822 rm -f conftest.er1
11823 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } && {
11826 test -z "$ac_c_werror_flag" ||
11827 test ! -s conftest.err
11828 } && test -s conftest.$ac_objext; then
11829 :
mlcreechb87057f2008-03-06 07:19:20 +000011830else
drh8b727472009-01-19 18:18:40 +000011831 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000011832sed 's/^/| /' conftest.$ac_ext >&5
11833
drh8b727472009-01-19 18:18:40 +000011834 ac_cv_type_uint64_t=yes
mlcreech636a9952008-05-05 22:52:56 +000011835fi
drh8b727472009-01-19 18:18:40 +000011836
11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838else
11839 $as_echo "$as_me: failed program was:" >&5
11840sed 's/^/| /' conftest.$ac_ext >&5
11841
11842
mlcreechb87057f2008-03-06 07:19:20 +000011843fi
drh8b727472009-01-19 18:18:40 +000011844
11845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846fi
11847{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11848$as_echo "$ac_cv_type_uint64_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011849if test "x$ac_cv_type_uint64_t" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011850
11851cat >>confdefs.h <<_ACEOF
11852#define HAVE_UINT64_T 1
11853_ACEOF
11854
11855
11856fi
drh8b727472009-01-19 18:18:40 +000011857{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11858$as_echo_n "checking for uintptr_t... " >&6; }
danielk197733a14782008-08-04 14:50:05 +000011859if test "${ac_cv_type_uintptr_t+set}" = set; then
drh8b727472009-01-19 18:18:40 +000011860 $as_echo_n "(cached) " >&6
danielk197733a14782008-08-04 14:50:05 +000011861else
drh8b727472009-01-19 18:18:40 +000011862 ac_cv_type_uintptr_t=no
11863cat >conftest.$ac_ext <<_ACEOF
11864/* confdefs.h. */
11865_ACEOF
11866cat confdefs.h >>conftest.$ac_ext
11867cat >>conftest.$ac_ext <<_ACEOF
11868/* end confdefs.h. */
11869$ac_includes_default
11870int
11871main ()
11872{
11873if (sizeof (uintptr_t))
11874 return 0;
11875 ;
11876 return 0;
11877}
11878_ACEOF
11879rm -f conftest.$ac_objext
11880if { (ac_try="$ac_compile"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11886$as_echo "$ac_try_echo") >&5
11887 (eval "$ac_compile") 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } && {
11894 test -z "$ac_c_werror_flag" ||
11895 test ! -s conftest.err
11896 } && test -s conftest.$ac_objext; then
danielk197733a14782008-08-04 14:50:05 +000011897 cat >conftest.$ac_ext <<_ACEOF
11898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
11903$ac_includes_default
11904int
11905main ()
11906{
drh8b727472009-01-19 18:18:40 +000011907if (sizeof ((uintptr_t)))
11908 return 0;
danielk197733a14782008-08-04 14:50:05 +000011909 ;
11910 return 0;
11911}
11912_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000011913rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011914if { (ac_try="$ac_compile"
11915case "(($ac_try" in
11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11918esac
11919eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11920$as_echo "$ac_try_echo") >&5
11921 (eval "$ac_compile") 2>conftest.er1
danielk197733a14782008-08-04 14:50:05 +000011922 ac_status=$?
11923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000011926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 :
danielk197733a14782008-08-04 14:50:05 +000011932else
drh8b727472009-01-19 18:18:40 +000011933 $as_echo "$as_me: failed program was:" >&5
danielk197733a14782008-08-04 14:50:05 +000011934sed 's/^/| /' conftest.$ac_ext >&5
11935
drh8b727472009-01-19 18:18:40 +000011936 ac_cv_type_uintptr_t=yes
danielk197733a14782008-08-04 14:50:05 +000011937fi
drh8b727472009-01-19 18:18:40 +000011938
11939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940else
11941 $as_echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944
danielk197733a14782008-08-04 14:50:05 +000011945fi
drh8b727472009-01-19 18:18:40 +000011946
11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948fi
11949{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11950$as_echo "$ac_cv_type_uintptr_t" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000011951if test "x$ac_cv_type_uintptr_t" = x""yes; then
danielk197733a14782008-08-04 14:50:05 +000011952
11953cat >>confdefs.h <<_ACEOF
11954#define HAVE_UINTPTR_T 1
11955_ACEOF
11956
11957
11958fi
mlcreechb87057f2008-03-06 07:19:20 +000011959
11960
11961#########
11962# Check for needed/wanted headers
11963
mlcreech8390bc32008-03-06 08:54:38 +000011964
11965
11966
11967for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
mlcreechb87057f2008-03-06 07:19:20 +000011968do
drh8b727472009-01-19 18:18:40 +000011969as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11972$as_echo_n "checking for $ac_header... " >&6; }
11973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11974 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000011975fi
drh8b727472009-01-19 18:18:40 +000011976ac_res=`eval 'as_val=${'$as_ac_Header'}
11977 $as_echo "$as_val"'`
11978 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11979$as_echo "$ac_res" >&6; }
mlcreechb87057f2008-03-06 07:19:20 +000011980else
mlcreech8390bc32008-03-06 08:54:38 +000011981 # Is the header compilable?
drh8b727472009-01-19 18:18:40 +000011982{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983$as_echo_n "checking $ac_header usability... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000011984cat >conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000011985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
mlcreech8390bc32008-03-06 08:54:38 +000011990$ac_includes_default
mlcreechb87057f2008-03-06 07:19:20 +000011991#include <$ac_header>
11992_ACEOF
11993rm -f conftest.$ac_objext
drh8b727472009-01-19 18:18:40 +000011994if { (ac_try="$ac_compile"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000$as_echo "$ac_try_echo") >&5
12001 (eval "$ac_compile") 2>conftest.er1
mlcreechb87057f2008-03-06 07:19:20 +000012002 ac_status=$?
12003 grep -v '^ *+' conftest.er1 >conftest.err
12004 rm -f conftest.er1
12005 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); } && {
12008 test -z "$ac_c_werror_flag" ||
12009 test ! -s conftest.err
12010 } && test -s conftest.$ac_objext; then
mlcreech8390bc32008-03-06 08:54:38 +000012011 ac_header_compiler=yes
mlcreechb87057f2008-03-06 07:19:20 +000012012else
drh8b727472009-01-19 18:18:40 +000012013 $as_echo "$as_me: failed program was:" >&5
mlcreechb87057f2008-03-06 07:19:20 +000012014sed 's/^/| /' conftest.$ac_ext >&5
12015
drh8b727472009-01-19 18:18:40 +000012016 ac_header_compiler=no
mlcreechb87057f2008-03-06 07:19:20 +000012017fi
drh8b727472009-01-19 18:18:40 +000012018
12019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021$as_echo "$ac_header_compiler" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012022
12023# Is the header present?
drh8b727472009-01-19 18:18:40 +000012024{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025$as_echo_n "checking $ac_header presence... " >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012026cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032#include <$ac_header>
12033_ACEOF
drh8b727472009-01-19 18:18:40 +000012034if { (ac_try="$ac_cpp conftest.$ac_ext"
12035case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038esac
12039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12040$as_echo "$ac_try_echo") >&5
12041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
mlcreech8390bc32008-03-06 08:54:38 +000012042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } >/dev/null && {
12048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12050 }; then
mlcreech8390bc32008-03-06 08:54:38 +000012051 ac_header_preproc=yes
12052else
drh8b727472009-01-19 18:18:40 +000012053 $as_echo "$as_me: failed program was:" >&5
mlcreech8390bc32008-03-06 08:54:38 +000012054sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 ac_header_preproc=no
12057fi
drh8b727472009-01-19 18:18:40 +000012058
mlcreech8390bc32008-03-06 08:54:38 +000012059rm -f conftest.err conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +000012060{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12061$as_echo "$ac_header_preproc" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012062
12063# So? What about this header?
12064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12065 yes:no: )
drh8b727472009-01-19 18:18:40 +000012066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12067$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12069$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
mlcreech8390bc32008-03-06 08:54:38 +000012070 ac_header_preproc=yes
12071 ;;
12072 no:yes:* )
drh8b727472009-01-19 18:18:40 +000012073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12074$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12076$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12078$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12080$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12084$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12085
mlcreech8390bc32008-03-06 08:54:38 +000012086 ;;
12087esac
drh8b727472009-01-19 18:18:40 +000012088{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12089$as_echo_n "checking for $ac_header... " >&6; }
12090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 $as_echo_n "(cached) " >&6
mlcreech8390bc32008-03-06 08:54:38 +000012092else
12093 eval "$as_ac_Header=\$ac_header_preproc"
mlcreechb87057f2008-03-06 07:19:20 +000012094fi
drh8b727472009-01-19 18:18:40 +000012095ac_res=`eval 'as_val=${'$as_ac_Header'}
12096 $as_echo "$as_val"'`
12097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12098$as_echo "$ac_res" >&6; }
mlcreech8390bc32008-03-06 08:54:38 +000012099
12100fi
vapier6acb2cf2009-01-28 04:46:28 +000012101as_val=`eval 'as_val=${'$as_ac_Header'}
12102 $as_echo "$as_val"'`
12103 if test "x$as_val" = x""yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012104 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012105#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012106_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012107
mlcreechb87057f2008-03-06 07:19:20 +000012108fi
12109
12110done
12111
12112
12113#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012114# Figure out whether or not we have these functions
12115#
12116
12117
12118
12119
danielk197733a14782008-08-04 14:50:05 +000012120
shanefbedede2008-07-22 05:05:01 +000012121for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
mlcreech5b0a9eb2008-03-09 01:38:09 +000012122do
drh8b727472009-01-19 18:18:40 +000012123as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12124{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12125$as_echo_n "checking for $ac_func... " >&6; }
12126if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12127 $as_echo_n "(cached) " >&6
mlcreech5b0a9eb2008-03-09 01:38:09 +000012128else
12129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
12135/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12137#define $ac_func innocuous_$ac_func
12138
12139/* System header to define __stub macros and hopefully few prototypes,
12140 which can conflict with char $ac_func (); below.
12141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12142 <limits.h> exists even on freestanding compilers. */
12143
12144#ifdef __STDC__
12145# include <limits.h>
12146#else
12147# include <assert.h>
12148#endif
12149
12150#undef $ac_func
12151
drh8b727472009-01-19 18:18:40 +000012152/* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
mlcreech5b0a9eb2008-03-09 01:38:09 +000012155#ifdef __cplusplus
12156extern "C"
12157#endif
12158char $ac_func ();
12159/* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
drh8b727472009-01-19 18:18:40 +000012162#if defined __stub_$ac_func || defined __stub___$ac_func
mlcreech5b0a9eb2008-03-09 01:38:09 +000012163choke me
12164#endif
12165
12166int
12167main ()
12168{
drh8b727472009-01-19 18:18:40 +000012169return $ac_func ();
mlcreech5b0a9eb2008-03-09 01:38:09 +000012170 ;
12171 return 0;
12172}
12173_ACEOF
12174rm -f conftest.$ac_objext conftest$ac_exeext
drh8b727472009-01-19 18:18:40 +000012175if { (ac_try="$ac_link"
12176case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12181$as_echo "$ac_try_echo") >&5
12182 (eval "$ac_link") 2>conftest.er1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012183 ac_status=$?
12184 grep -v '^ *+' conftest.er1 >conftest.err
12185 rm -f conftest.er1
12186 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext && {
12192 test "$cross_compiling" = yes ||
12193 $as_test_x conftest$ac_exeext
12194 }; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012195 eval "$as_ac_var=yes"
12196else
drh8b727472009-01-19 18:18:40 +000012197 $as_echo "$as_me: failed program was:" >&5
mlcreech5b0a9eb2008-03-09 01:38:09 +000012198sed 's/^/| /' conftest.$ac_ext >&5
12199
drh8b727472009-01-19 18:18:40 +000012200 eval "$as_ac_var=no"
mlcreech5b0a9eb2008-03-09 01:38:09 +000012201fi
drh8b727472009-01-19 18:18:40 +000012202
12203rm -rf conftest.dSYM
12204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
mlcreech5b0a9eb2008-03-09 01:38:09 +000012205 conftest$ac_exeext conftest.$ac_ext
12206fi
drh8b727472009-01-19 18:18:40 +000012207ac_res=`eval 'as_val=${'$as_ac_var'}
12208 $as_echo "$as_val"'`
12209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12210$as_echo "$ac_res" >&6; }
vapier6acb2cf2009-01-28 04:46:28 +000012211as_val=`eval 'as_val=${'$as_ac_var'}
12212 $as_echo "$as_val"'`
12213 if test "x$as_val" = x""yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012214 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012215#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012216_ACEOF
12217
12218fi
12219done
12220
12221
mlcreechab1c47b2008-03-09 02:51:10 +000012222#########
mlcreechf3868112008-03-11 18:03:30 +000012223# By default, we use the amalgamation (this may be changed below...)
12224#
12225USE_AMALGAMATION=1
12226
12227#########
mlcreechab1c47b2008-03-09 02:51:10 +000012228# See whether we can run specific tclsh versions known to work well;
12229# if not, then we fall back to plain tclsh.
12230# TODO: try other versions before falling back?
12231#
12232for ac_prog in tclsh8.4 tclsh
12233do
12234 # Extract the first word of "$ac_prog", so it can be a program name with args.
12235set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012236{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12237$as_echo_n "checking for $ac_word... " >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012238if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012239 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012240else
12241 if test -n "$TCLSH_CMD"; then
12242 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12243else
12244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245for as_dir in $PATH
12246do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012250 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 +000012251 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012253 break 2
12254 fi
12255done
12256done
drh8b727472009-01-19 18:18:40 +000012257IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012258
12259fi
12260fi
12261TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12262if test -n "$TCLSH_CMD"; then
drh8b727472009-01-19 18:18:40 +000012263 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12264$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012265else
drh8b727472009-01-19 18:18:40 +000012266 { $as_echo "$as_me:$LINENO: result: no" >&5
12267$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012268fi
12269
drh8b727472009-01-19 18:18:40 +000012270
mlcreechab1c47b2008-03-09 02:51:10 +000012271 test -n "$TCLSH_CMD" && break
12272done
mlcreechf3868112008-03-11 18:03:30 +000012273test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012274
mlcreechf3868112008-03-11 18:03:30 +000012275if test "$TCLSH_CMD" = "none"; then
12276 # If we can't find a local tclsh, then building the amalgamation will fail.
12277 # We act as though --disable-amalgamation has been used.
12278 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12279 USE_AMALGAMATION=0
12280 TCLSH_CMD="tclsh"
12281fi
mlcreechab1c47b2008-03-09 02:51:10 +000012282
12283
mlcreech5b0a9eb2008-03-09 01:38:09 +000012284
vapier6acb2cf2009-01-28 04:46:28 +000012285if test "x${TCLLIBDIR+set}" != "xset" ; then
12286 TCLLIBDIR='$(libdir)'
12287 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12288 TCLLIBDIR=$i
12289 break
12290 done
12291 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12292fi
12293
12294
mlcreech5b0a9eb2008-03-09 01:38:09 +000012295#########
drh75897232000-05-29 14:26:00 +000012296# Set up an appropriate program prefix
12297#
12298if test "$program_prefix" = "NONE"; then
12299 program_prefix=""
12300fi
12301
a.rottmann84e63352003-03-24 09:42:16 +000012302
drh4b2266a2004-11-27 15:52:16 +000012303VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
vapier6acb2cf2009-01-28 04:46:28 +000012304{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12305$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012306
12307RELEASE=`cat $srcdir/VERSION`
vapier6acb2cf2009-01-28 04:46:28 +000012308{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12309$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012310
vapier6acb2cf2009-01-28 04:46:28 +000012311VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012312 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012313 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
vapier6acb2cf2009-01-28 04:46:28 +000012314{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12315$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012316
drh26d0e2a2005-07-06 13:51:27 +000012317
drh75897232000-05-29 14:26:00 +000012318#########
12319# Check to see if the --with-hints=FILE option is used. If there is none,
12320# then check for a files named "$host.hints" and ../$hosts.hints where
12321# $host is the hostname of the build system. If still no hints are
12322# found, try looking in $system.hints and ../$system.hints where
12323# $system is the result of uname -s.
12324#
drh71eb93e2001-09-28 01:34:43 +000012325
drh8b727472009-01-19 18:18:40 +000012326# Check whether --with-hints was given.
drh75897232000-05-29 14:26:00 +000012327if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012328 withval=$with_hints; hints=$withval
12329fi
12330
drh75897232000-05-29 14:26:00 +000012331if test "$hints" = ""; then
12332 host=`hostname | sed 's/\..*//'`
12333 if test -r $host.hints; then
12334 hints=$host.hints
12335 else
12336 if test -r ../$host.hints; then
12337 hints=../$host.hints
12338 fi
12339 fi
12340fi
12341if test "$hints" = ""; then
12342 sys=`uname -s`
12343 if test -r $sys.hints; then
12344 hints=$sys.hints
12345 else
12346 if test -r ../$sys.hints; then
12347 hints=../$sys.hints
12348 fi
12349 fi
12350fi
12351if test "$hints" != ""; then
drh8b727472009-01-19 18:18:40 +000012352 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12353$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012354 . $hints
12355fi
12356
12357#########
12358# Locate a compiler for the build machine. This compiler should
12359# generate command-line programs that run on the build machine.
12360#
vapier7f19c022007-02-17 14:46:31 +000012361if test x"$cross_compiling" = xno; then
12362 BUILD_CC=$CC
12363 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012364else
vapier7f19c022007-02-17 14:46:31 +000012365 if test "${BUILD_CC+set}" != set; then
12366 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012367do
12368 # Extract the first word of "$ac_prog", so it can be a program name with args.
12369set dummy $ac_prog; ac_word=$2
drh8b727472009-01-19 18:18:40 +000012370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000012372if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012373 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012374else
vapier7f19c022007-02-17 14:46:31 +000012375 if test -n "$BUILD_CC"; then
12376 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012377else
a.rottmann84e63352003-03-24 09:42:16 +000012378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012384 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 +000012385 ac_cv_prog_BUILD_CC="$ac_prog"
drh8b727472009-01-19 18:18:40 +000012386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012387 break 2
12388 fi
12389done
drh71eb93e2001-09-28 01:34:43 +000012390done
drh8b727472009-01-19 18:18:40 +000012391IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012392
drh71eb93e2001-09-28 01:34:43 +000012393fi
12394fi
vapier7f19c022007-02-17 14:46:31 +000012395BUILD_CC=$ac_cv_prog_BUILD_CC
12396if test -n "$BUILD_CC"; then
drh8b727472009-01-19 18:18:40 +000012397 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12398$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012399else
drh8b727472009-01-19 18:18:40 +000012400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012402fi
drh75897232000-05-29 14:26:00 +000012403
drh8b727472009-01-19 18:18:40 +000012404
vapier7f19c022007-02-17 14:46:31 +000012405 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012406done
drh75897232000-05-29 14:26:00 +000012407
vapier7f19c022007-02-17 14:46:31 +000012408 fi
12409 if test "${BUILD_CFLAGS+set}" != set; then
12410 BUILD_CFLAGS="-g"
12411 fi
drh71eb93e2001-09-28 01:34:43 +000012412fi
12413
a.rottmann84e63352003-03-24 09:42:16 +000012414
drh297ecf12001-04-05 15:57:13 +000012415##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012416# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012417#
drh8b727472009-01-19 18:18:40 +000012418# Check whether --enable-threadsafe was given.
dougcurrie0f290bf2004-06-21 18:57:29 +000012419if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012420 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012421else
drh5a3032b2007-09-03 16:12:09 +000012422 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012423fi
12424
12425{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12426$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012427if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012428 SQLITE_THREADSAFE=0
drh8b727472009-01-19 18:18:40 +000012429 { $as_echo "$as_me:$LINENO: result: no" >&5
12430$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012431else
drh5a3032b2007-09-03 16:12:09 +000012432 SQLITE_THREADSAFE=1
drh8b727472009-01-19 18:18:40 +000012433 { $as_echo "$as_me:$LINENO: result: yes" >&5
12434$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012435fi
12436
a.rottmann964dbb12004-02-26 19:47:42 +000012437
drh5a3032b2007-09-03 16:12:09 +000012438if test "$SQLITE_THREADSAFE" = "1"; then
drh8b727472009-01-19 18:18:40 +000012439 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12440$as_echo_n "checking for library containing pthread_create... " >&6; }
mlcreechc658b0f2008-03-09 02:20:11 +000012441if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012442 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012443else
mlcreechc658b0f2008-03-09 02:20:11 +000012444 ac_func_search_save_LIBS=$LIBS
dougcurrie65623c72004-09-20 14:57:23 +000012445cat >conftest.$ac_ext <<_ACEOF
12446/* confdefs.h. */
12447_ACEOF
12448cat confdefs.h >>conftest.$ac_ext
12449cat >>conftest.$ac_ext <<_ACEOF
12450/* end confdefs.h. */
12451
drh8b727472009-01-19 18:18:40 +000012452/* Override any GCC internal prototype to avoid an error.
12453 Use char because int might match the return type of a GCC
12454 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012455#ifdef __cplusplus
12456extern "C"
12457#endif
dougcurrie65623c72004-09-20 14:57:23 +000012458char pthread_create ();
12459int
12460main ()
12461{
drh8b727472009-01-19 18:18:40 +000012462return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012463 ;
12464 return 0;
12465}
12466_ACEOF
drh8b727472009-01-19 18:18:40 +000012467for ac_lib in '' pthread; do
12468 if test -z "$ac_lib"; then
12469 ac_res="none required"
12470 else
12471 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012473 fi
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475if { (ac_try="$ac_link"
12476case "(($ac_try" in
12477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12478 *) ac_try_echo=$ac_try;;
12479esac
12480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12481$as_echo "$ac_try_echo") >&5
12482 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000012483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000012487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } && {
12489 test -z "$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12491 } && test -s conftest$ac_exeext && {
12492 test "$cross_compiling" = yes ||
12493 $as_test_x conftest$ac_exeext
12494 }; then
12495 ac_cv_search_pthread_create=$ac_res
dougcurrie65623c72004-09-20 14:57:23 +000012496else
drh8b727472009-01-19 18:18:40 +000012497 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000012498sed 's/^/| /' conftest.$ac_ext >&5
12499
drh8b727472009-01-19 18:18:40 +000012500
mlcreechc658b0f2008-03-09 02:20:11 +000012501fi
drh8b727472009-01-19 18:18:40 +000012502
12503rm -rf conftest.dSYM
12504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12505 conftest$ac_exeext
12506 if test "${ac_cv_search_pthread_create+set}" = set; then
12507 break
drh866108f2008-05-13 00:57:21 +000012508fi
drh8b727472009-01-19 18:18:40 +000012509done
12510if test "${ac_cv_search_pthread_create+set}" = set; then
12511 :
12512else
12513 ac_cv_search_pthread_create=no
12514fi
12515rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012516LIBS=$ac_func_search_save_LIBS
12517fi
drh8b727472009-01-19 18:18:40 +000012518{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12519$as_echo "$ac_cv_search_pthread_create" >&6; }
12520ac_res=$ac_cv_search_pthread_create
12521if test "$ac_res" != no; then
12522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012523
dougcurrie65623c72004-09-20 14:57:23 +000012524fi
12525
mlcreechc658b0f2008-03-09 02:20:11 +000012526fi
dougcurrie65623c72004-09-20 14:57:23 +000012527
xdong28f79f72003-09-23 00:35:21 +000012528##########
drh91636d52005-11-24 23:14:00 +000012529# Do we want to allow a connection created in one thread to be used
12530# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12531# due to bugs in the threading implementations. This is thus off by default.
12532#
drh8b727472009-01-19 18:18:40 +000012533# Check whether --enable-cross-thread-connections was given.
drh91636d52005-11-24 23:14:00 +000012534if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012535 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012536else
12537 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012538fi
12539
12540{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12541$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012542if test "$enable_xthreadconnect" = "no"; then
12543 XTHREADCONNECT=''
drh8b727472009-01-19 18:18:40 +000012544 { $as_echo "$as_me:$LINENO: result: no" >&5
12545$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012546else
12547 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh8b727472009-01-19 18:18:40 +000012548 { $as_echo "$as_me:$LINENO: result: yes" >&5
12549$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012550fi
12551
12552
12553##########
drh8e2e2a12006-02-01 01:55:17 +000012554# Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12555# default. Normally, a test at runtime is performed to determine the
12556# appropriate value of this variable. Use this option only if you're sure that
12557# threads can safely override each others locks in all runtime situations.
12558#
drh8b727472009-01-19 18:18:40 +000012559# Check whether --enable-threads-override-locks was given.
drh8e2e2a12006-02-01 01:55:17 +000012560if test "${enable_threads_override_locks+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012561 enableval=$enable_threads_override_locks;
drh8e2e2a12006-02-01 01:55:17 +000012562else
12563 enable_threads_override_locks=no
drh8b727472009-01-19 18:18:40 +000012564fi
12565
12566{ $as_echo "$as_me:$LINENO: checking whether threads can override each others locks" >&5
12567$as_echo_n "checking whether threads can override each others locks... " >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012568if test "$enable_threads_override_locks" = "no"; then
12569 THREADSOVERRIDELOCKS='-1'
drh8b727472009-01-19 18:18:40 +000012570 { $as_echo "$as_me:$LINENO: result: no" >&5
12571$as_echo "no" >&6; }
drh8e2e2a12006-02-01 01:55:17 +000012572else
12573 THREADSOVERRIDELOCKS='1'
drh8b727472009-01-19 18:18:40 +000012574 { $as_echo "$as_me:$LINENO: result: yes" >&5
12575$as_echo "yes" >&6; }
drh8e2e2a12006-02-01 01:55:17 +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; }
vapier6acb2cf2009-01-28 04:46:28 +000013100if test "x$ac_cv_lib_readline_readline" = x""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
vapier6acb2cf2009-01-28 04:46:28 +000013248if test "x$ac_cv_header_readline_h" = x""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; }
vapier6acb2cf2009-01-28 04:46:28 +000013276as_val=`eval 'as_val=${'$as_ac_File'}
13277 $as_echo "$as_val"'`
13278 if test "x$as_val" = x""yes; then
drh75897232000-05-29 14:26:00 +000013279 found=yes
drh75897232000-05-29 14:26:00 +000013280fi
13281
vapier7f19c022007-02-17 14:46:31 +000013282 if test "$found" = "yes"; then
13283 TARGET_READLINE_INC="-I$dir/$subdir"
13284 break
13285 fi
13286 done
13287 test "$found" = "yes" && break
13288 done
13289 fi
13290
13291fi
13292
13293
13294 else
13295 TARGET_READLINE_INC="$with_readline_inc"
13296 fi
13297
13298 if test x"$found" = xno; then
13299 TARGET_READLINE_LIBS=""
13300 TARGET_READLINE_INC=""
13301 TARGET_HAVE_READLINE=0
13302 else
13303 TARGET_HAVE_READLINE=1
13304 fi
13305fi
13306
13307
13308
13309
13310
13311##########
13312# Figure out what C libraries are required to compile programs
13313# that use "fdatasync()" function.
13314#
drh8b727472009-01-19 18:18:40 +000013315{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13316$as_echo_n "checking for library containing fdatasync... " >&6; }
vapier7f19c022007-02-17 14:46:31 +000013317if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013318 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013319else
vapier7f19c022007-02-17 14:46:31 +000013320 ac_func_search_save_LIBS=$LIBS
13321cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013327
drh8b727472009-01-19 18:18:40 +000013328/* Override any GCC internal prototype to avoid an error.
13329 Use char because int might match the return type of a GCC
13330 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013331#ifdef __cplusplus
13332extern "C"
13333#endif
13334char fdatasync ();
13335int
13336main ()
13337{
drh8b727472009-01-19 18:18:40 +000013338return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013339 ;
13340 return 0;
13341}
13342_ACEOF
drh8b727472009-01-19 18:18:40 +000013343for ac_lib in '' rt; do
13344 if test -z "$ac_lib"; then
13345 ac_res="none required"
13346 else
13347 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013349 fi
13350 rm -f conftest.$ac_objext conftest$ac_exeext
13351if { (ac_try="$ac_link"
13352case "(($ac_try" in
13353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354 *) ac_try_echo=$ac_try;;
13355esac
13356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13357$as_echo "$ac_try_echo") >&5
13358 (eval "$ac_link") 2>conftest.er1
drh866108f2008-05-13 00:57:21 +000013359 ac_status=$?
13360 grep -v '^ *+' conftest.er1 >conftest.err
13361 rm -f conftest.er1
13362 cat conftest.err >&5
drh8b727472009-01-19 18:18:40 +000013363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } && {
13365 test -z "$ac_c_werror_flag" ||
13366 test ! -s conftest.err
13367 } && test -s conftest$ac_exeext && {
13368 test "$cross_compiling" = yes ||
13369 $as_test_x conftest$ac_exeext
13370 }; then
13371 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000013372else
drh8b727472009-01-19 18:18:40 +000013373 $as_echo "$as_me: failed program was:" >&5
drh866108f2008-05-13 00:57:21 +000013374sed 's/^/| /' conftest.$ac_ext >&5
13375
drh8b727472009-01-19 18:18:40 +000013376
mlcreech94984912008-03-04 19:03:08 +000013377fi
drh8b727472009-01-19 18:18:40 +000013378
13379rm -rf conftest.dSYM
13380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13381 conftest$ac_exeext
13382 if test "${ac_cv_search_fdatasync+set}" = set; then
13383 break
drh866108f2008-05-13 00:57:21 +000013384fi
drh8b727472009-01-19 18:18:40 +000013385done
13386if test "${ac_cv_search_fdatasync+set}" = set; then
13387 :
13388else
13389 ac_cv_search_fdatasync=no
13390fi
13391rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013392LIBS=$ac_func_search_save_LIBS
13393fi
drh8b727472009-01-19 18:18:40 +000013394{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13395$as_echo "$ac_cv_search_fdatasync" >&6; }
13396ac_res=$ac_cv_search_fdatasync
13397if test "$ac_res" != no; then
13398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013399
vapier7f19c022007-02-17 14:46:31 +000013400fi
13401
a.rottmann84e63352003-03-24 09:42:16 +000013402
drh75897232000-05-29 14:26:00 +000013403#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013404# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013405# Check whether --enable-debug was given.
tpoindex9d9f76c2005-01-03 21:28:56 +000013406if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013407 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013408else
13409 use_debug=no
drh8b727472009-01-19 18:18:40 +000013410fi
13411
tpoindex9d9f76c2005-01-03 21:28:56 +000013412if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013413 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013414else
13415 TARGET_DEBUG="-DNDEBUG"
13416fi
13417
13418
13419#########
mlcreech94984912008-03-04 19:03:08 +000013420# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013421# Check whether --enable-amalgamation was given.
mlcreech94984912008-03-04 19:03:08 +000013422if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013423 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013424else
13425 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013426fi
13427
mlcreechf3868112008-03-11 18:03:30 +000013428if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013429 USE_AMALGAMATION=0
13430fi
13431
13432
13433#########
mlcreecha4edab02008-03-06 04:14:17 +000013434# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013435# Check whether --enable-load-extension was given.
mlcreecha4edab02008-03-06 04:14:17 +000013436if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013437 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013438else
13439 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013440fi
13441
mlcreecha4edab02008-03-06 04:14:17 +000013442if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013443 OPT_FEATURE_FLAGS=""
mlcreecha4edab02008-03-06 04:14:17 +000013444else
shanefbedede2008-07-22 05:05:01 +000013445 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013446fi
13447
mlcreechaac7b932008-04-01 02:45:22 +000013448#########
shaneb1cd7302008-10-22 18:27:31 +000013449# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013450for option in $CFLAGS $CPPFLAGS
13451do
13452 case $option in
danielk197733a14782008-08-04 14:50:05 +000013453 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013454 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013455 esac
13456done
13457
13458
danielk197733a14782008-08-04 14:50:05 +000013459
shaneb1cd7302008-10-22 18:27:31 +000013460# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013461ac_temp_CFLAGS=""
13462for option in $CFLAGS
13463do
13464 case $option in
13465 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013466 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013467 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013468 esac
13469done
13470CFLAGS=$ac_temp_CFLAGS
13471
13472
shaneb1cd7302008-10-22 18:27:31 +000013473# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013474ac_temp_CPPFLAGS=""
13475for option in $CPPFLAGS
13476do
13477 case $option in
13478 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013479 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013480 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013481 esac
13482done
13483CPPFLAGS=$ac_temp_CPPFLAGS
13484
danielk197733a14782008-08-04 14:50:05 +000013485
drh8b727472009-01-19 18:18:40 +000013486# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013487ac_temp_BUILD_CFLAGS=""
13488for option in $BUILD_CFLAGS
13489do
13490 case $option in
13491 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013492 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013493 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013494 esac
13495done
13496BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13497
13498
13499#########
13500# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013501# Check whether --enable-gcov was given.
mlcreechaac7b932008-04-01 02:45:22 +000013502if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013503 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013504else
13505 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013506fi
13507
mlcreechaac7b932008-04-01 02:45:22 +000013508if test "${use_gcov}" = "yes" ; then
13509 USE_GCOV=1
13510else
13511 USE_GCOV=0
13512fi
13513
13514
danielk197733a14782008-08-04 14:50:05 +000013515
drh2dfbbca2000-07-28 14:32:48 +000013516#########
mlcreechb87057f2008-03-06 07:19:20 +000013517# Output the config header
drh8b727472009-01-19 18:18:40 +000013518ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013519
13520
13521#########
drh75897232000-05-29 14:26:00 +000013522# Generate the output files.
13523#
mlcreechdf59c7c2008-03-06 07:51:15 +000013524
drh8b727472009-01-19 18:18:40 +000013525ac_config_files="$ac_config_files Makefile sqlite3.pc"
13526
drh71eb93e2001-09-28 01:34:43 +000013527cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013528# This file is a shell script that caches the results of configure
13529# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013530# scripts and configure runs, see configure's option --config-cache.
13531# It is not useful on other systems. If it contains results you don't
13532# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013533#
drh71eb93e2001-09-28 01:34:43 +000013534# config.status only pays attention to the cache file if you give it
13535# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013536#
a.rottmann84e63352003-03-24 09:42:16 +000013537# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013538# loading this file, other *unset* `ac_cv_foo' will be assigned the
13539# following values.
13540
13541_ACEOF
13542
drh75897232000-05-29 14:26:00 +000013543# The following way of writing the cache mishandles newlines in values,
13544# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013545# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013546# Ultrix sh set writes to stderr and can't be redirected directly,
13547# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013548(
13549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13550 eval ac_val=\$$ac_var
13551 case $ac_val in #(
13552 *${as_nl}*)
13553 case $ac_var in #(
vapier6acb2cf2009-01-28 04:46:28 +000013554 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13555$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013556 esac
13557 case $ac_var in #(
13558 _ | IFS | as_nl) ;; #(
13559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13560 *) $as_unset $ac_var ;;
13561 esac ;;
13562 esac
13563 done
13564
drh71eb93e2001-09-28 01:34:43 +000013565 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013566 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13567 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +000013568 # `set' does not quote correctly, so add quotes (double-quote
13569 # substitution turns \\\\ into \\, and sed turns \\ into \).
13570 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013571 "s/'/'\\\\''/g;
13572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013573 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013574 *)
13575 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013577 ;;
drh8b727472009-01-19 18:18:40 +000013578 esac |
13579 sort
13580) |
drh71eb93e2001-09-28 01:34:43 +000013581 sed '
drh8b727472009-01-19 18:18:40 +000013582 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013583 t clear
drh8b727472009-01-19 18:18:40 +000013584 :clear
drh71eb93e2001-09-28 01:34:43 +000013585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13586 t end
drh8b727472009-01-19 18:18:40 +000013587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13588 :end' >>confcache
13589if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13590 if test -w "$cache_file"; then
13591 test "x$cache_file" != "x/dev/null" &&
13592 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13593$as_echo "$as_me: updating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +000013594 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013595 else
drh8b727472009-01-19 18:18:40 +000013596 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13597$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013598 fi
13599fi
13600rm -f confcache
13601
drh75897232000-05-29 14:26:00 +000013602test "x$prefix" = xNONE && prefix=$ac_default_prefix
13603# Let make expand exec_prefix.
13604test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13605
mlcreechb87057f2008-03-06 07:19:20 +000013606DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013607
13608ac_libobjs=
13609ac_ltlibobjs=
13610for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13611 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013612 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13613 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13614 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13615 # will be set to the directory where LIBOBJS objects are built.
13616 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13617 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013618done
13619LIBOBJS=$ac_libobjs
13620
13621LTLIBOBJS=$ac_ltlibobjs
13622
13623
13624
drh75897232000-05-29 14:26:00 +000013625: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013626ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013627ac_clean_files_save=$ac_clean_files
13628ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh8b727472009-01-19 18:18:40 +000013629{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13630$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13631cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013632#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013633# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013634# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013635# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013636# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013637
drh71eb93e2001-09-28 01:34:43 +000013638debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013639ac_cs_recheck=false
13640ac_cs_silent=false
drh71eb93e2001-09-28 01:34:43 +000013641SHELL=\${CONFIG_SHELL-$SHELL}
drh71eb93e2001-09-28 01:34:43 +000013642_ACEOF
drh75897232000-05-29 14:26:00 +000013643
drh8b727472009-01-19 18:18:40 +000013644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000013645## --------------------- ##
13646## M4sh Initialization. ##
13647## --------------------- ##
13648
drh8b727472009-01-19 18:18:40 +000013649# Be more Bourne compatible
13650DUALCASE=1; export DUALCASE # for MKS sh
drh71eb93e2001-09-28 01:34:43 +000013651if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13652 emulate sh
13653 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013654 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013655 # is contrary to our usage. Disable this feature.
13656 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013657 setopt NO_GLOB_SUBST
13658else
13659 case `(set -o) 2>/dev/null` in
13660 *posix*) set -o posix ;;
13661esac
13662
a.rottmann84e63352003-03-24 09:42:16 +000013663fi
drh8b727472009-01-19 18:18:40 +000013664
13665
13666
13667
13668# PATH needs CR
13669# Avoid depending upon Character Ranges.
13670as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13671as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13672as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13673as_cr_digits='0123456789'
13674as_cr_alnum=$as_cr_Letters$as_cr_digits
13675
13676as_nl='
13677'
13678export as_nl
13679# Printing a long string crashes Solaris 7 /usr/bin/printf.
13680as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13682as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13683if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13684 as_echo='printf %s\n'
13685 as_echo_n='printf %s'
13686else
13687 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13688 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13689 as_echo_n='/usr/ucb/echo -n'
13690 else
13691 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13692 as_echo_n_body='eval
13693 arg=$1;
13694 case $arg in
13695 *"$as_nl"*)
13696 expr "X$arg" : "X\\(.*\\)$as_nl";
13697 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13698 esac;
13699 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13700 '
13701 export as_echo_n_body
13702 as_echo_n='sh -c $as_echo_n_body as_echo'
13703 fi
13704 export as_echo_body
13705 as_echo='sh -c $as_echo_body as_echo'
13706fi
13707
13708# The user is always right.
13709if test "${PATH_SEPARATOR+set}" != set; then
13710 PATH_SEPARATOR=:
13711 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13712 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13713 PATH_SEPARATOR=';'
13714 }
13715fi
a.rottmann84e63352003-03-24 09:42:16 +000013716
mlcreech94984912008-03-04 19:03:08 +000013717# Support unset when possible.
13718if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13719 as_unset=unset
13720else
13721 as_unset=false
13722fi
a.rottmann84e63352003-03-24 09:42:16 +000013723
mlcreech94984912008-03-04 19:03:08 +000013724
drh8b727472009-01-19 18:18:40 +000013725# IFS
13726# We need space, tab and new line, in precisely that order. Quoting is
13727# there to prevent editors from complaining about space-tab.
13728# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13729# splitting by setting IFS to empty value.)
13730IFS=" "" $as_nl"
13731
13732# Find who we are. Look in the path if we contain no directory separator.
13733case $0 in
13734 *[\\/]* ) as_myself=$0 ;;
13735 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736for as_dir in $PATH
13737do
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
13740 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13741done
13742IFS=$as_save_IFS
13743
13744 ;;
13745esac
13746# We did not find ourselves, most probably we were run as `sh COMMAND'
13747# in which case we are not to be found in the path.
13748if test "x$as_myself" = x; then
13749 as_myself=$0
13750fi
13751if test ! -f "$as_myself"; then
13752 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13753 { (exit 1); exit 1; }
13754fi
13755
mlcreech94984912008-03-04 19:03:08 +000013756# Work around bugs in pre-3.0 UWIN ksh.
drh8b727472009-01-19 18:18:40 +000013757for as_var in ENV MAIL MAILPATH
13758do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13759done
mlcreech94984912008-03-04 19:03:08 +000013760PS1='$ '
13761PS2='> '
13762PS4='+ '
13763
13764# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013765LC_ALL=C
13766export LC_ALL
13767LANGUAGE=C
13768export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013769
13770# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013771if expr a : '\(a\)' >/dev/null 2>&1 &&
13772 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013773 as_expr=expr
13774else
13775 as_expr=false
13776fi
13777
drh8b727472009-01-19 18:18:40 +000013778if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013779 as_basename=basename
13780else
13781 as_basename=false
13782fi
13783
13784
13785# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013786as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013787$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13788 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13790$as_echo X/"$0" |
13791 sed '/^.*\/\([^/][^/]*\)\/*$/{
13792 s//\1/
13793 q
13794 }
13795 /^X\/\(\/\/\)$/{
13796 s//\1/
13797 q
13798 }
13799 /^X\/\(\/\).*/{
13800 s//\1/
13801 q
13802 }
13803 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013804
drh8b727472009-01-19 18:18:40 +000013805# CDPATH.
13806$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +000013807
13808
13809
a.rottmann84e63352003-03-24 09:42:16 +000013810 as_lineno_1=$LINENO
13811 as_lineno_2=$LINENO
a.rottmann84e63352003-03-24 09:42:16 +000013812 test "x$as_lineno_1" != "x$as_lineno_2" &&
drh8b727472009-01-19 18:18:40 +000013813 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
a.rottmann84e63352003-03-24 09:42:16 +000013814
13815 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13816 # uniformly replaced by the line number. The first 'sed' inserts a
drh8b727472009-01-19 18:18:40 +000013817 # line-number line after each line using $LINENO; the second 'sed'
13818 # does the real work. The second script uses 'N' to pair each
13819 # line-number line with the line containing $LINENO, and appends
13820 # trailing '-' during substitution so that $LINENO is not a special
13821 # case at line end.
a.rottmann84e63352003-03-24 09:42:16 +000013822 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
drh8b727472009-01-19 18:18:40 +000013823 # scripts with optimization help from Paolo Bonzini. Blame Lee
13824 # E. McMahon (1931-1989) for sed's syntax. :-)
13825 sed -n '
13826 p
13827 /[$]LINENO/=
13828 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +000013829 sed '
drh8b727472009-01-19 18:18:40 +000013830 s/[$]LINENO.*/&-/
13831 t lineno
13832 b
13833 :lineno
a.rottmann84e63352003-03-24 09:42:16 +000013834 N
drh8b727472009-01-19 18:18:40 +000013835 :loop
13836 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +000013837 t loop
drh8b727472009-01-19 18:18:40 +000013838 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +000013839 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +000013840 chmod +x "$as_me.lineno" ||
13841 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
a.rottmann84e63352003-03-24 09:42:16 +000013842 { (exit 1); exit 1; }; }
13843
13844 # Don't try to exec as it changes $[0], causing all sort of problems
13845 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +000013846 # original and so on. Autoconf is especially sensitive to this).
13847 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +000013848 # Exit status is that of the last command.
13849 exit
13850}
13851
13852
drh8b727472009-01-19 18:18:40 +000013853if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13854 as_dirname=dirname
13855else
13856 as_dirname=false
13857fi
drh866108f2008-05-13 00:57:21 +000013858
drh8b727472009-01-19 18:18:40 +000013859ECHO_C= ECHO_N= ECHO_T=
13860case `echo -n x` in
13861-n*)
13862 case `echo 'x\c'` in
13863 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13864 *) ECHO_C='\c';;
13865 esac;;
13866*)
13867 ECHO_N='-n';;
13868esac
13869if expr a : '\(a\)' >/dev/null 2>&1 &&
13870 test "X`expr 00001 : '.*\(...\)'`" = X001; then
drh71eb93e2001-09-28 01:34:43 +000013871 as_expr=expr
13872else
13873 as_expr=false
13874fi
13875
13876rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013877if test -d conf$$.dir; then
13878 rm -f conf$$.dir/conf$$.file
13879else
13880 rm -f conf$$.dir
13881 mkdir conf$$.dir 2>/dev/null
13882fi
13883if (echo >conf$$.file) 2>/dev/null; then
13884 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013885 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013886 # ... but there are two gotchas:
13887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13889 # In both cases, we have to default to `cp -p'.
13890 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13891 as_ln_s='cp -p'
13892 elif ln conf$$.file conf$$ 2>/dev/null; then
13893 as_ln_s=ln
13894 else
13895 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013896 fi
drh71eb93e2001-09-28 01:34:43 +000013897else
13898 as_ln_s='cp -p'
13899fi
drh8b727472009-01-19 18:18:40 +000013900rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13901rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013902
a.rottmann84e63352003-03-24 09:42:16 +000013903if mkdir -p . 2>/dev/null; then
13904 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013905else
a.rottmann964dbb12004-02-26 19:47:42 +000013906 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013907 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013908fi
13909
drh8b727472009-01-19 18:18:40 +000013910if test -x / >/dev/null 2>&1; then
13911 as_test_x='test -x'
13912else
13913 if ls -dL / >/dev/null 2>&1; then
13914 as_ls_L_option=L
13915 else
13916 as_ls_L_option=
13917 fi
13918 as_test_x='
13919 eval sh -c '\''
13920 if test -d "$1"; then
13921 test -d "$1/.";
13922 else
13923 case $1 in
13924 -*)set "./$1";;
13925 esac;
13926 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13927 ???[sx]*):;;*)false;;esac;fi
13928 '\'' sh
13929 '
13930fi
13931as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013932
13933# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013934as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013935
13936# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013937as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013938
drh71eb93e2001-09-28 01:34:43 +000013939
drh71eb93e2001-09-28 01:34:43 +000013940exec 6>&1
13941
drh8b727472009-01-19 18:18:40 +000013942# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013943# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013944# values after options handling.
13945ac_log="
vapier051cd802009-03-31 23:29:15 +000013946This file was extended by sqlite $as_me 3.6.12, which was
vapier6acb2cf2009-01-28 04:46:28 +000013947generated by GNU Autoconf 2.63. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013948
13949 CONFIG_FILES = $CONFIG_FILES
13950 CONFIG_HEADERS = $CONFIG_HEADERS
13951 CONFIG_LINKS = $CONFIG_LINKS
13952 CONFIG_COMMANDS = $CONFIG_COMMANDS
13953 $ $0 $@
13954
drh8b727472009-01-19 18:18:40 +000013955on `(hostname || uname -n) 2>/dev/null | sed 1q`
13956"
13957
drh71eb93e2001-09-28 01:34:43 +000013958_ACEOF
13959
vapier6acb2cf2009-01-28 04:46:28 +000013960case $ac_config_files in *"
13961"*) set x $ac_config_files; shift; ac_config_files=$*;;
13962esac
13963
13964case $ac_config_headers in *"
13965"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13966esac
13967
13968
drh8b727472009-01-19 18:18:40 +000013969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013970# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013971config_files="$ac_config_files"
13972config_headers="$ac_config_headers"
13973config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013974
drh8b727472009-01-19 18:18:40 +000013975_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013976
drh8b727472009-01-19 18:18:40 +000013977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013978ac_cs_usage="\
13979\`$as_me' instantiates files from templates according to the
13980current configuration.
13981
vapier6acb2cf2009-01-28 04:46:28 +000013982Usage: $0 [OPTION]... [FILE]...
drh71eb93e2001-09-28 01:34:43 +000013983
13984 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013985 -V, --version print version number and configuration settings, then exit
vapier6acb2cf2009-01-28 04:46:28 +000013986 -q, --quiet, --silent
13987 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013988 -d, --debug don't remove temporary files
13989 --recheck update $as_me by reconfiguring in the same conditions
vapier6acb2cf2009-01-28 04:46:28 +000013990 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013991 instantiate the configuration file FILE
vapier6acb2cf2009-01-28 04:46:28 +000013992 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013993 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013994
13995Configuration files:
13996$config_files
13997
mlcreechb87057f2008-03-06 07:19:20 +000013998Configuration headers:
13999$config_headers
14000
mlcreech636a9952008-05-05 22:52:56 +000014001Configuration commands:
14002$config_commands
14003
drh71eb93e2001-09-28 01:34:43 +000014004Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014005
mlcreech94984912008-03-04 19:03:08 +000014006_ACEOF
drh8b727472009-01-19 18:18:40 +000014007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014008ac_cs_version="\\
vapier051cd802009-03-31 23:29:15 +000014009sqlite config.status 3.6.12
vapier6acb2cf2009-01-28 04:46:28 +000014010configured by $0, generated by GNU Autoconf 2.63,
drh8b727472009-01-19 18:18:40 +000014011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014012
drh8b727472009-01-19 18:18:40 +000014013Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014014This config.status script is free software; the Free Software Foundation
14015gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014016
14017ac_pwd='$ac_pwd'
14018srcdir='$srcdir'
14019INSTALL='$INSTALL'
14020AWK='$AWK'
14021test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014022_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014023
drh8b727472009-01-19 18:18:40 +000014024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14025# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014026ac_need_defaults=:
14027while test $# != 0
14028do
14029 case $1 in
14030 --*=*)
drh8b727472009-01-19 18:18:40 +000014031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014033 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014034 ;;
drh8b727472009-01-19 18:18:40 +000014035 *)
a.rottmann84e63352003-03-24 09:42:16 +000014036 ac_option=$1
14037 ac_optarg=$2
14038 ac_shift=shift
14039 ;;
drh75897232000-05-29 14:26:00 +000014040 esac
14041
a.rottmann84e63352003-03-24 09:42:16 +000014042 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014043 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014045 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14047 $as_echo "$ac_cs_version"; exit ;;
14048 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014049 debug=: ;;
14050 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014051 $ac_shift
drh8b727472009-01-19 18:18:40 +000014052 case $ac_optarg in
14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14054 esac
14055 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014056 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014057 --header | --heade | --head | --hea )
14058 $ac_shift
drh8b727472009-01-19 18:18:40 +000014059 case $ac_optarg in
14060 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14061 esac
14062 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014063 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014064 --he | --h)
14065 # Conflict between --help and --header
14066 { $as_echo "$as_me: error: ambiguous option: $1
14067Try \`$0 --help' for more information." >&2
14068 { (exit 1); exit 1; }; };;
14069 --help | --hel | -h )
14070 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14073 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014074
drh71eb93e2001-09-28 01:34:43 +000014075 # This is an error.
drh8b727472009-01-19 18:18:40 +000014076 -*) { $as_echo "$as_me: error: unrecognized option: $1
14077Try \`$0 --help' for more information." >&2
drh71eb93e2001-09-28 01:34:43 +000014078 { (exit 1); exit 1; }; } ;;
14079
drh8b727472009-01-19 18:18:40 +000014080 *) ac_config_targets="$ac_config_targets $1"
14081 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014082
14083 esac
14084 shift
14085done
14086
a.rottmann84e63352003-03-24 09:42:16 +000014087ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014088
a.rottmann84e63352003-03-24 09:42:16 +000014089if $ac_cs_silent; then
14090 exec 6>/dev/null
14091 ac_configure_extra_args="$ac_configure_extra_args --silent"
14092fi
drh71eb93e2001-09-28 01:34:43 +000014093
14094_ACEOF
drh8b727472009-01-19 18:18:40 +000014095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014096if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014097 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14098 shift
14099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14100 CONFIG_SHELL='$SHELL'
14101 export CONFIG_SHELL
14102 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014103fi
drh71eb93e2001-09-28 01:34:43 +000014104
a.rottmann84e63352003-03-24 09:42:16 +000014105_ACEOF
drh8b727472009-01-19 18:18:40 +000014106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107exec 5>>config.log
14108{
14109 echo
14110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14111## Running $as_me. ##
14112_ASBOX
14113 $as_echo "$ac_log"
14114} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014115
drh8b727472009-01-19 18:18:40 +000014116_ACEOF
14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014118#
drh8b727472009-01-19 18:18:40 +000014119# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014120#
14121
14122
14123# The HP-UX ksh and POSIX shell print the target directory to stdout
14124# if CDPATH is set.
14125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14126
14127sed_quote_subst='$sed_quote_subst'
14128double_quote_subst='$double_quote_subst'
14129delay_variable_subst='$delay_variable_subst'
14130macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14131macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14132enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14133enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14134pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14135enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14136host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14137host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14138host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14139build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14140build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14141build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14142SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14143Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14144GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14145EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14146FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14147LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14148NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14149LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14150max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14151ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14152exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14153lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14154lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14155lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14156reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14157reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014158OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014159deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14160file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14161AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14162AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14163STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14164RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14165old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14166old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14167old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14168CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14169CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14170compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14171GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14174lt_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"`'
14175lt_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"`'
14176objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14177SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14178ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14179MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14180lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14181lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14182lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14183lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14184lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14185need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14186DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14187NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14188LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14189OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14190OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14191libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14192shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14193extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14194archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14195enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14196export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14197whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14198compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14199old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14200old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14201archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14202archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14203module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14204module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14205with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14206allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14207no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14208hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14209hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14210hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14211hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14212hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14213hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14214hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14215hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14216inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14217link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14218fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14219always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14220export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14222include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14223prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14225variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14226need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14227need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14228version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14229runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14230shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14231shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14232libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14233library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14234soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14235postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14237finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14238finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14239hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14240sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14241sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14242hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14243enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14244enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14245enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14246old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14247striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14248
14249LTCC='$LTCC'
14250LTCFLAGS='$LTCFLAGS'
14251compiler='$compiler_DEFAULT'
14252
14253# Quote evaled strings.
14254for var in SED \
14255GREP \
14256EGREP \
14257FGREP \
14258LD \
14259NM \
14260LN_S \
14261lt_SP2NL \
14262lt_NL2SP \
14263reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014264OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014265deplibs_check_method \
14266file_magic_cmd \
14267AR \
14268AR_FLAGS \
14269STRIP \
14270RANLIB \
14271CC \
14272CFLAGS \
14273compiler \
14274lt_cv_sys_global_symbol_pipe \
14275lt_cv_sys_global_symbol_to_cdecl \
14276lt_cv_sys_global_symbol_to_c_name_address \
14277lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14278SHELL \
14279ECHO \
14280lt_prog_compiler_no_builtin_flag \
14281lt_prog_compiler_wl \
14282lt_prog_compiler_pic \
14283lt_prog_compiler_static \
14284lt_cv_prog_compiler_c_o \
14285need_locks \
14286DSYMUTIL \
14287NMEDIT \
14288LIPO \
14289OTOOL \
14290OTOOL64 \
14291shrext_cmds \
14292export_dynamic_flag_spec \
14293whole_archive_flag_spec \
14294compiler_needs_object \
14295with_gnu_ld \
14296allow_undefined_flag \
14297no_undefined_flag \
14298hardcode_libdir_flag_spec \
14299hardcode_libdir_flag_spec_ld \
14300hardcode_libdir_separator \
14301fix_srcfile_path \
14302exclude_expsyms \
14303include_expsyms \
14304file_list_spec \
14305variables_saved_for_relink \
14306libname_spec \
14307library_names_spec \
14308soname_spec \
14309finish_eval \
14310old_striplib \
14311striplib; do
14312 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14313 *[\\\\\\\`\\"\\\$]*)
14314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14315 ;;
14316 *)
14317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14318 ;;
14319 esac
14320done
14321
14322# Double-quote double-evaled strings.
14323for var in reload_cmds \
14324old_postinstall_cmds \
14325old_postuninstall_cmds \
14326old_archive_cmds \
14327extract_expsyms_cmds \
14328old_archive_from_new_cmds \
14329old_archive_from_expsyms_cmds \
14330archive_cmds \
14331archive_expsym_cmds \
14332module_cmds \
14333module_expsym_cmds \
14334export_symbols_cmds \
14335prelink_cmds \
14336postinstall_cmds \
14337postuninstall_cmds \
14338finish_cmds \
14339sys_lib_search_path_spec \
14340sys_lib_dlsearch_path_spec; do
14341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14342 *[\\\\\\\`\\"\\\$]*)
14343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14344 ;;
14345 *)
14346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14347 ;;
14348 esac
14349done
14350
14351# Fix-up fallback echo if it was mangled by the above quoting rules.
14352case \$lt_ECHO in
14353*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14354 ;;
14355esac
14356
14357ac_aux_dir='$ac_aux_dir'
14358xsi_shell='$xsi_shell'
14359lt_shell_append='$lt_shell_append'
14360
14361# See if we are running on zsh, and set the options which allow our
14362# commands through without removal of \ escapes INIT.
14363if test -n "\${ZSH_VERSION+set}" ; then
14364 setopt NO_GLOB_SUBST
14365fi
14366
14367
14368 PACKAGE='$PACKAGE'
14369 VERSION='$VERSION'
14370 TIMESTAMP='$TIMESTAMP'
14371 RM='$RM'
14372 ofile='$ofile'
14373
14374
14375
14376
mlcreech94984912008-03-04 19:03:08 +000014377_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014378
drh8b727472009-01-19 18:18:40 +000014379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014380
drh8b727472009-01-19 18:18:40 +000014381# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014382for ac_config_target in $ac_config_targets
14383do
drh8b727472009-01-19 18:18:40 +000014384 case $ac_config_target in
14385 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14388 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14389
14390 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14391$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
drh71eb93e2001-09-28 01:34:43 +000014392 { (exit 1); exit 1; }; };;
14393 esac
14394done
14395
drh8b727472009-01-19 18:18:40 +000014396
drh71eb93e2001-09-28 01:34:43 +000014397# If the user did not use the arguments to specify the items to instantiate,
14398# then the envvar interface is used. Set only those that are not.
14399# We use the long form for the default assignment because of an extremely
14400# bizarre bug on SunOS 4.1.3.
14401if $ac_need_defaults; then
14402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014405fi
14406
a.rottmann84e63352003-03-24 09:42:16 +000014407# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014408# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014409# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014410# Hook for its removal unless debugging.
14411# Note that there is a small window in which the directory will not be cleaned:
14412# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014413$debug ||
14414{
drh8b727472009-01-19 18:18:40 +000014415 tmp=
14416 trap 'exit_status=$?
14417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14418' 0
drh71eb93e2001-09-28 01:34:43 +000014419 trap '{ (exit 1); exit 1; }' 1 2 13 15
14420}
drh71eb93e2001-09-28 01:34:43 +000014421# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014422
drh71eb93e2001-09-28 01:34:43 +000014423{
drh8b727472009-01-19 18:18:40 +000014424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh71eb93e2001-09-28 01:34:43 +000014425 test -n "$tmp" && test -d "$tmp"
14426} ||
14427{
drh8b727472009-01-19 18:18:40 +000014428 tmp=./conf$$-$RANDOM
14429 (umask 077 && mkdir "$tmp")
drh71eb93e2001-09-28 01:34:43 +000014430} ||
14431{
drh8b727472009-01-19 18:18:40 +000014432 $as_echo "$as_me: cannot create a temporary directory in ." >&2
drh71eb93e2001-09-28 01:34:43 +000014433 { (exit 1); exit 1; }
14434}
14435
drh8b727472009-01-19 18:18:40 +000014436# Set up the scripts for CONFIG_FILES section.
14437# No need to generate them if there are no CONFIG_FILES.
14438# This happens for instance with `./config.status config.h'.
14439if test -n "$CONFIG_FILES"; then
14440
14441
14442ac_cr=' '
14443ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14444if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14445 ac_cs_awk_cr='\\r'
14446else
14447 ac_cs_awk_cr=$ac_cr
14448fi
14449
14450echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014451_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014452
mlcreech94984912008-03-04 19:03:08 +000014453
drh8b727472009-01-19 18:18:40 +000014454{
14455 echo "cat >conf$$subs.awk <<_ACEOF" &&
14456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14457 echo "_ACEOF"
14458} >conf$$subs.sh ||
14459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14460$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14461 { (exit 1); exit 1; }; }
14462ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14463ac_delim='%!_!# '
14464for ac_last_try in false false false false false :; do
14465 . ./conf$$subs.sh ||
14466 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14467$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14468 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014469
vapier6acb2cf2009-01-28 04:46:28 +000014470 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14471 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014472 break
14473 elif $ac_last_try; then
14474 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14475$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14476 { (exit 1); exit 1; }; }
14477 else
14478 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014479 fi
drh8b727472009-01-19 18:18:40 +000014480done
14481rm -f conf$$subs.sh
14482
14483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14484cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14485_ACEOF
14486sed -n '
14487h
14488s/^/S["/; s/!.*/"]=/
14489p
14490g
14491s/^[^!]*!//
14492:repl
14493t repl
14494s/'"$ac_delim"'$//
14495t delim
14496:nl
14497h
14498s/\(.\{148\}\).*/\1/
14499t more1
14500s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14501p
14502n
14503b repl
14504:more1
14505s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14506p
14507g
14508s/.\{148\}//
14509t nl
14510:delim
14511h
14512s/\(.\{148\}\).*/\1/
14513t more2
14514s/["\\]/\\&/g; s/^/"/; s/$/"/
14515p
14516b
14517:more2
14518s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14519p
14520g
14521s/.\{148\}//
14522t delim
14523' <conf$$subs.awk | sed '
14524/^[^""]/{
14525 N
14526 s/\n//
14527}
14528' >>$CONFIG_STATUS || ac_write_fail=1
14529rm -f conf$$subs.awk
14530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531_ACAWK
14532cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14533 for (key in S) S_is_set[key] = 1
14534 FS = ""
14535
14536}
14537{
14538 line = $ 0
14539 nfields = split(line, field, "@")
14540 substed = 0
14541 len = length(field[1])
14542 for (i = 2; i < nfields; i++) {
14543 key = field[i]
14544 keylen = length(key)
14545 if (S_is_set[key]) {
14546 value = S[key]
14547 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14548 len += length(value) + length(field[++i])
14549 substed = 1
14550 } else
14551 len += 1 + keylen
14552 }
14553
14554 print line
14555}
14556
14557_ACAWK
14558_ACEOF
14559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14561 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14562else
14563 cat
14564fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14565 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14566$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14567 { (exit 1); exit 1; }; }
14568_ACEOF
14569
14570# VPATH may cause trouble with some makes, so we remove $(srcdir),
14571# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14572# trailing colons and then remove the whole line if VPATH becomes empty
14573# (actually we leave an empty line to preserve line numbers).
14574if test "x$srcdir" = x.; then
14575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14576s/:*\$(srcdir):*/:/
14577s/:*\${srcdir}:*/:/
14578s/:*@srcdir@:*/:/
14579s/^\([^=]*=[ ]*\):*/\1/
14580s/:*$//
14581s/^[^=]*=[ ]*$//
14582}'
14583fi
14584
14585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014586fi # test -n "$CONFIG_FILES"
14587
drh8b727472009-01-19 18:18:40 +000014588# Set up the scripts for CONFIG_HEADERS section.
14589# No need to generate them if there are no CONFIG_HEADERS.
14590# This happens for instance with `./config.status Makefile'.
14591if test -n "$CONFIG_HEADERS"; then
14592cat >"$tmp/defines.awk" <<\_ACAWK ||
14593BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014594_ACEOF
drh8b727472009-01-19 18:18:40 +000014595
14596# Transform confdefs.h into an awk script `defines.awk', embedded as
14597# here-document in config.status, that substitutes the proper values into
14598# config.h.in to produce config.h.
14599
14600# Create a delimiter string that does not exist in confdefs.h, to ease
14601# handling of long lines.
14602ac_delim='%!_!# '
14603for ac_last_try in false false :; do
14604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14605 if test -z "$ac_t"; then
14606 break
14607 elif $ac_last_try; then
14608 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14609$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14610 { (exit 1); exit 1; }; }
14611 else
14612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14613 fi
14614done
14615
14616# For the awk script, D is an array of macro values keyed by name,
14617# likewise P contains macro parameters if any. Preserve backslash
14618# newline sequences.
14619
14620ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14621sed -n '
14622s/.\{148\}/&'"$ac_delim"'/g
14623t rset
14624:rset
14625s/^[ ]*#[ ]*define[ ][ ]*/ /
14626t def
14627d
14628:def
14629s/\\$//
14630t bsnl
14631s/["\\]/\\&/g
14632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14633D["\1"]=" \3"/p
14634s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14635d
14636:bsnl
14637s/["\\]/\\&/g
14638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14639D["\1"]=" \3\\\\\\n"\\/p
14640t cont
14641s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14642t cont
14643d
14644:cont
14645n
14646s/.\{148\}/&'"$ac_delim"'/g
14647t clear
14648:clear
14649s/\\$//
14650t bsnlc
14651s/["\\]/\\&/g; s/^/"/; s/$/"/p
14652d
14653:bsnlc
14654s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14655b cont
14656' <confdefs.h | sed '
14657s/'"$ac_delim"'/"\\\
14658"/g' >>$CONFIG_STATUS || ac_write_fail=1
14659
14660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14661 for (key in D) D_is_set[key] = 1
14662 FS = ""
14663}
14664/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14665 line = \$ 0
14666 split(line, arg, " ")
14667 if (arg[1] == "#") {
14668 defundef = arg[2]
14669 mac1 = arg[3]
14670 } else {
14671 defundef = substr(arg[1], 2)
14672 mac1 = arg[2]
14673 }
14674 split(mac1, mac2, "(") #)
14675 macro = mac2[1]
vapier6acb2cf2009-01-28 04:46:28 +000014676 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014677 if (D_is_set[macro]) {
14678 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000014679 print prefix "define", macro P[macro] D[macro]
14680 next
14681 } else {
14682 # Replace #undef with comments. This is necessary, for example,
14683 # in the case of _POSIX_SOURCE, which is predefined and required
14684 # on some systems where configure will not decide to define it.
14685 if (defundef == "undef") {
vapier6acb2cf2009-01-28 04:46:28 +000014686 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000014687 next
14688 }
14689 }
14690}
14691{ print }
14692_ACAWK
14693_ACEOF
14694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14695 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14696$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14697 { (exit 1); exit 1; }; }
14698fi # test -n "$CONFIG_HEADERS"
14699
14700
14701eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14702shift
14703for ac_tag
14704do
14705 case $ac_tag in
14706 :[FHLC]) ac_mode=$ac_tag; continue;;
14707 esac
14708 case $ac_mode$ac_tag in
14709 :[FHL]*:*);;
vapier6acb2cf2009-01-28 04:46:28 +000014710 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14711$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
drh8b727472009-01-19 18:18:40 +000014712 { (exit 1); exit 1; }; };;
14713 :[FH]-) ac_tag=-:-;;
14714 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14715 esac
14716 ac_save_IFS=$IFS
14717 IFS=:
14718 set x $ac_tag
14719 IFS=$ac_save_IFS
14720 shift
14721 ac_file=$1
14722 shift
14723
14724 case $ac_mode in
14725 :L) ac_source=$1;;
14726 :[FH])
14727 ac_file_inputs=
14728 for ac_f
14729 do
14730 case $ac_f in
14731 -) ac_f="$tmp/stdin";;
14732 *) # Look for the file first in the build tree, then in the source tree
14733 # (if the path is not absolute). The absolute path cannot be DOS-style,
14734 # because $ac_f cannot contain `:'.
14735 test -f "$ac_f" ||
14736 case $ac_f in
14737 [\\/$]*) false;;
14738 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14739 esac ||
14740 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14741$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14742 { (exit 1); exit 1; }; };;
14743 esac
14744 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14745 ac_file_inputs="$ac_file_inputs '$ac_f'"
14746 done
14747
14748 # Let's still pretend it is `configure' which instantiates (i.e., don't
14749 # use $as_me), people would be surprised to read:
14750 # /* config.h. Generated by config.status. */
14751 configure_input='Generated from '`
14752 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14753 `' by configure.'
14754 if test x"$ac_file" != x-; then
14755 configure_input="$ac_file. $configure_input"
14756 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14757$as_echo "$as_me: creating $ac_file" >&6;}
14758 fi
14759 # Neutralize special characters interpreted by sed in replacement strings.
14760 case $configure_input in #(
14761 *\&* | *\|* | *\\* )
14762 ac_sed_conf_input=`$as_echo "$configure_input" |
14763 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14764 *) ac_sed_conf_input=$configure_input;;
14765 esac
14766
14767 case $ac_tag in
14768 *:-:* | *:-) cat >"$tmp/stdin" \
14769 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14770$as_echo "$as_me: error: could not create $ac_file" >&2;}
14771 { (exit 1); exit 1; }; } ;;
14772 esac
14773 ;;
drh71eb93e2001-09-28 01:34:43 +000014774 esac
14775
drh8b727472009-01-19 18:18:40 +000014776 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014777$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014778 X"$ac_file" : 'X\(//\)[^/]' \| \
14779 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014780 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14781$as_echo X"$ac_file" |
14782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14783 s//\1/
14784 q
14785 }
14786 /^X\(\/\/\)[^/].*/{
14787 s//\1/
14788 q
14789 }
14790 /^X\(\/\/\)$/{
14791 s//\1/
14792 q
14793 }
14794 /^X\(\/\).*/{
14795 s//\1/
14796 q
14797 }
14798 s/.*/./; q'`
14799 { as_dir="$ac_dir"
14800 case $as_dir in #(
14801 -*) as_dir=./$as_dir;;
14802 esac
14803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
a.rottmann84e63352003-03-24 09:42:16 +000014804 as_dirs=
drh8b727472009-01-19 18:18:40 +000014805 while :; do
14806 case $as_dir in #(
14807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14808 *) as_qdir=$as_dir;;
14809 esac
14810 as_dirs="'$as_qdir' $as_dirs"
14811 as_dir=`$as_dirname -- "$as_dir" ||
a.rottmann84e63352003-03-24 09:42:16 +000014812$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014813 X"$as_dir" : 'X\(//\)[^/]' \| \
14814 X"$as_dir" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14816$as_echo X"$as_dir" |
14817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14818 s//\1/
14819 q
14820 }
14821 /^X\(\/\/\)[^/].*/{
14822 s//\1/
14823 q
14824 }
14825 /^X\(\/\/\)$/{
14826 s//\1/
14827 q
14828 }
14829 /^X\(\/\).*/{
14830 s//\1/
14831 q
14832 }
14833 s/.*/./; q'`
14834 test -d "$as_dir" && break
a.rottmann84e63352003-03-24 09:42:16 +000014835 done
drh8b727472009-01-19 18:18:40 +000014836 test -z "$as_dirs" || eval "mkdir $as_dirs"
14837 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14838$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
a.rottmann84e63352003-03-24 09:42:16 +000014839 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014840 ac_builddir=.
14841
drh8b727472009-01-19 18:18:40 +000014842case "$ac_dir" in
14843.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14844*)
14845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14846 # A ".." for each directory in $ac_dir_suffix.
14847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14848 case $ac_top_builddir_sub in
14849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14851 esac ;;
14852esac
14853ac_abs_top_builddir=$ac_pwd
14854ac_abs_builddir=$ac_pwd$ac_dir_suffix
14855# for backward compatibility:
14856ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014857
14858case $srcdir in
drh8b727472009-01-19 18:18:40 +000014859 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014860 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014861 ac_top_srcdir=$ac_top_builddir_sub
14862 ac_abs_top_srcdir=$ac_pwd ;;
14863 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014864 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014865 ac_top_srcdir=$srcdir
14866 ac_abs_top_srcdir=$srcdir ;;
14867 *) # Relative name.
14868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14869 ac_top_srcdir=$ac_top_build_prefix$srcdir
14870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014871esac
drh8b727472009-01-19 18:18:40 +000014872ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014873
a.rottmann84e63352003-03-24 09:42:16 +000014874
drh8b727472009-01-19 18:18:40 +000014875 case $ac_mode in
14876 :F)
14877 #
14878 # CONFIG_FILE
14879 #
drh75897232000-05-29 14:26:00 +000014880
drh71eb93e2001-09-28 01:34:43 +000014881 case $INSTALL in
14882 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014883 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014884 esac
mlcreech94984912008-03-04 19:03:08 +000014885_ACEOF
drh8b727472009-01-19 18:18:40 +000014886
14887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14888# If the template does not know about datarootdir, expand it.
14889# FIXME: This hack should be removed a few years after 2.60.
14890ac_datarootdir_hack=; ac_datarootdir_seen=
14891
14892ac_sed_dataroot='
14893/datarootdir/ {
14894 p
14895 q
14896}
14897/@datadir@/p
14898/@docdir@/p
14899/@infodir@/p
14900/@localedir@/p
14901/@mandir@/p
14902'
14903case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14904*datarootdir*) ac_datarootdir_seen=yes;;
14905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14906 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14907$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14908_ACEOF
14909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14910 ac_datarootdir_hack='
14911 s&@datadir@&$datadir&g
14912 s&@docdir@&$docdir&g
14913 s&@infodir@&$infodir&g
14914 s&@localedir@&$localedir&g
14915 s&@mandir@&$mandir&g
14916 s&\\\${datarootdir}&$datarootdir&g' ;;
14917esac
14918_ACEOF
14919
14920# Neutralize VPATH when `$srcdir' = `.'.
14921# Shell code in configure.ac might set extrasub.
14922# FIXME: do we really want to maintain this feature?
14923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014925$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014926_ACEOF
drh8b727472009-01-19 18:18:40 +000014927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014928:t
14929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014930s|@configure_input@|$ac_sed_conf_input|;t t
14931s&@top_builddir@&$ac_top_builddir_sub&;t t
14932s&@top_build_prefix@&$ac_top_build_prefix&;t t
14933s&@srcdir@&$ac_srcdir&;t t
14934s&@abs_srcdir@&$ac_abs_srcdir&;t t
14935s&@top_srcdir@&$ac_top_srcdir&;t t
14936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14937s&@builddir@&$ac_builddir&;t t
14938s&@abs_builddir@&$ac_abs_builddir&;t t
14939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14940s&@INSTALL@&$ac_INSTALL&;t t
14941$ac_datarootdir_hack
14942"
14943eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14944 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14945$as_echo "$as_me: error: could not create $ac_file" >&2;}
14946 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014947
drh8b727472009-01-19 18:18:40 +000014948test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14949 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14951 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14952which seems to be undefined. Please make sure it is defined." >&5
14953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14954which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014955
drh8b727472009-01-19 18:18:40 +000014956 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014957 case $ac_file in
drh8b727472009-01-19 18:18:40 +000014958 -) cat "$tmp/out" && rm -f "$tmp/out";;
14959 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14960 esac \
14961 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14962$as_echo "$as_me: error: could not create $ac_file" >&2;}
drh866108f2008-05-13 00:57:21 +000014963 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014964 ;;
14965 :H)
14966 #
14967 # CONFIG_HEADER
14968 #
drh866108f2008-05-13 00:57:21 +000014969 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014970 {
14971 $as_echo "/* $configure_input */" \
14972 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14973 } >"$tmp/config.h" \
14974 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14975$as_echo "$as_me: error: could not create $ac_file" >&2;}
14976 { (exit 1); exit 1; }; }
14977 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14978 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14979$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014980 else
drh8b727472009-01-19 18:18:40 +000014981 rm -f "$ac_file"
14982 mv "$tmp/config.h" "$ac_file" \
14983 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14984$as_echo "$as_me: error: could not create $ac_file" >&2;}
14985 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014986 fi
14987 else
drh8b727472009-01-19 18:18:40 +000014988 $as_echo "/* $configure_input */" \
14989 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14990 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14991$as_echo "$as_me: error: could not create -" >&2;}
14992 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014993 fi
drh8b727472009-01-19 18:18:40 +000014994 ;;
drh866108f2008-05-13 00:57:21 +000014995
drh8b727472009-01-19 18:18:40 +000014996 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14997$as_echo "$as_me: executing $ac_file commands" >&6;}
14998 ;;
14999 esac
drh866108f2008-05-13 00:57:21 +000015000
15001
drh8b727472009-01-19 18:18:40 +000015002 case $ac_file$ac_mode in
15003 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015004
15005 # See if we are running on zsh, and set the options which allow our
15006 # commands through without removal of \ escapes.
15007 if test -n "${ZSH_VERSION+set}" ; then
15008 setopt NO_GLOB_SUBST
15009 fi
15010
15011 cfgfile="${ofile}T"
15012 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15013 $RM "$cfgfile"
15014
15015 cat <<_LT_EOF >> "$cfgfile"
15016#! $SHELL
15017
15018# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15019# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15020# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15021# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15022#
15023# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15024# 2006, 2007, 2008 Free Software Foundation, Inc.
15025# Written by Gordon Matzigkeit, 1996
15026#
15027# This file is part of GNU Libtool.
15028#
15029# GNU Libtool is free software; you can redistribute it and/or
15030# modify it under the terms of the GNU General Public License as
15031# published by the Free Software Foundation; either version 2 of
15032# the License, or (at your option) any later version.
15033#
15034# As a special exception to the GNU General Public License,
15035# if you distribute this file as part of a program or library that
15036# is built using GNU Libtool, you may include this file under the
15037# same distribution terms that you use for the rest of that program.
15038#
15039# GNU Libtool is distributed in the hope that it will be useful,
15040# but WITHOUT ANY WARRANTY; without even the implied warranty of
15041# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15042# GNU General Public License for more details.
15043#
15044# You should have received a copy of the GNU General Public License
15045# along with GNU Libtool; see the file COPYING. If not, a copy
15046# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15047# obtained by writing to the Free Software Foundation, Inc.,
15048# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15049
15050
15051# The names of the tagged configurations supported by this script.
15052available_tags=""
15053
15054# ### BEGIN LIBTOOL CONFIG
15055
15056# Which release of libtool.m4 was used?
15057macro_version=$macro_version
15058macro_revision=$macro_revision
15059
15060# Whether or not to build shared libraries.
15061build_libtool_libs=$enable_shared
15062
15063# Whether or not to build static libraries.
15064build_old_libs=$enable_static
15065
15066# What type of objects to build.
15067pic_mode=$pic_mode
15068
15069# Whether or not to optimize for fast installation.
15070fast_install=$enable_fast_install
15071
15072# The host system.
15073host_alias=$host_alias
15074host=$host
15075host_os=$host_os
15076
15077# The build system.
15078build_alias=$build_alias
15079build=$build
15080build_os=$build_os
15081
15082# A sed program that does not truncate output.
15083SED=$lt_SED
15084
15085# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15086Xsed="\$SED -e 1s/^X//"
15087
15088# A grep program that handles long lines.
15089GREP=$lt_GREP
15090
15091# An ERE matcher.
15092EGREP=$lt_EGREP
15093
15094# A literal string matcher.
15095FGREP=$lt_FGREP
15096
15097# A BSD- or MS-compatible name lister.
15098NM=$lt_NM
15099
15100# Whether we need soft or hard links.
15101LN_S=$lt_LN_S
15102
15103# What is the maximum length of a command?
15104max_cmd_len=$max_cmd_len
15105
15106# Object file suffix (normally "o").
15107objext=$ac_objext
15108
15109# Executable file suffix (normally "").
15110exeext=$exeext
15111
15112# whether the shell understands "unset".
15113lt_unset=$lt_unset
15114
15115# turn spaces into newlines.
15116SP2NL=$lt_lt_SP2NL
15117
15118# turn newlines into spaces.
15119NL2SP=$lt_lt_NL2SP
15120
15121# How to create reloadable object files.
15122reload_flag=$lt_reload_flag
15123reload_cmds=$lt_reload_cmds
15124
vapier6acb2cf2009-01-28 04:46:28 +000015125# An object symbol dumper.
15126OBJDUMP=$lt_OBJDUMP
15127
mlcreech636a9952008-05-05 22:52:56 +000015128# Method to check whether dependent libraries are shared objects.
15129deplibs_check_method=$lt_deplibs_check_method
15130
15131# Command to use when deplibs_check_method == "file_magic".
15132file_magic_cmd=$lt_file_magic_cmd
15133
15134# The archiver.
15135AR=$lt_AR
15136AR_FLAGS=$lt_AR_FLAGS
15137
15138# A symbol stripping program.
15139STRIP=$lt_STRIP
15140
15141# Commands used to install an old-style archive.
15142RANLIB=$lt_RANLIB
15143old_postinstall_cmds=$lt_old_postinstall_cmds
15144old_postuninstall_cmds=$lt_old_postuninstall_cmds
15145
15146# A C compiler.
15147LTCC=$lt_CC
15148
15149# LTCC compiler flags.
15150LTCFLAGS=$lt_CFLAGS
15151
15152# Take the output of nm and produce a listing of raw symbols and C names.
15153global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15154
15155# Transform the output of nm in a proper C declaration.
15156global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15157
15158# Transform the output of nm in a C name address pair.
15159global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15160
15161# Transform the output of nm in a C name address pair when lib prefix is needed.
15162global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15163
15164# The name of the directory that contains temporary libtool files.
15165objdir=$objdir
15166
15167# Shell to use when invoking shell scripts.
15168SHELL=$lt_SHELL
15169
15170# An echo program that does not interpret backslashes.
15171ECHO=$lt_ECHO
15172
15173# Used to examine libraries when file_magic_cmd begins with "file".
15174MAGIC_CMD=$MAGIC_CMD
15175
15176# Must we lock files when doing compilation?
15177need_locks=$lt_need_locks
15178
15179# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15180DSYMUTIL=$lt_DSYMUTIL
15181
15182# Tool to change global to local symbols on Mac OS X.
15183NMEDIT=$lt_NMEDIT
15184
15185# Tool to manipulate fat objects and archives on Mac OS X.
15186LIPO=$lt_LIPO
15187
15188# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15189OTOOL=$lt_OTOOL
15190
15191# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15192OTOOL64=$lt_OTOOL64
15193
15194# Old archive suffix (normally "a").
15195libext=$libext
15196
15197# Shared library suffix (normally ".so").
15198shrext_cmds=$lt_shrext_cmds
15199
15200# The commands to extract the exported symbol list from a shared archive.
15201extract_expsyms_cmds=$lt_extract_expsyms_cmds
15202
15203# Variables whose values should be saved in libtool wrapper scripts and
15204# restored at link time.
15205variables_saved_for_relink=$lt_variables_saved_for_relink
15206
15207# Do we need the "lib" prefix for modules?
15208need_lib_prefix=$need_lib_prefix
15209
15210# Do we need a version for libraries?
15211need_version=$need_version
15212
15213# Library versioning type.
15214version_type=$version_type
15215
15216# Shared library runtime path variable.
15217runpath_var=$runpath_var
15218
15219# Shared library path variable.
15220shlibpath_var=$shlibpath_var
15221
15222# Is shlibpath searched before the hard-coded library search path?
15223shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15224
15225# Format of library name prefix.
15226libname_spec=$lt_libname_spec
15227
15228# List of archive names. First name is the real one, the rest are links.
15229# The last name is the one that the linker finds with -lNAME
15230library_names_spec=$lt_library_names_spec
15231
15232# The coded name of the library, if different from the real name.
15233soname_spec=$lt_soname_spec
15234
15235# Command to use after installation of a shared archive.
15236postinstall_cmds=$lt_postinstall_cmds
15237
15238# Command to use after uninstallation of a shared archive.
15239postuninstall_cmds=$lt_postuninstall_cmds
15240
15241# Commands used to finish a libtool library installation in a directory.
15242finish_cmds=$lt_finish_cmds
15243
15244# As "finish_cmds", except a single script fragment to be evaled but
15245# not shown.
15246finish_eval=$lt_finish_eval
15247
15248# Whether we should hardcode library paths into libraries.
15249hardcode_into_libs=$hardcode_into_libs
15250
15251# Compile-time system search path for libraries.
15252sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15253
15254# Run-time system search path for libraries.
15255sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15256
15257# Whether dlopen is supported.
15258dlopen_support=$enable_dlopen
15259
15260# Whether dlopen of programs is supported.
15261dlopen_self=$enable_dlopen_self
15262
15263# Whether dlopen of statically linked programs is supported.
15264dlopen_self_static=$enable_dlopen_self_static
15265
15266# Commands to strip libraries.
15267old_striplib=$lt_old_striplib
15268striplib=$lt_striplib
15269
15270
15271# The linker used to build libraries.
15272LD=$lt_LD
15273
15274# Commands used to build an old-style archive.
15275old_archive_cmds=$lt_old_archive_cmds
15276
15277# A language specific compiler.
15278CC=$lt_compiler
15279
15280# Is the compiler the GNU compiler?
15281with_gcc=$GCC
15282
15283# Compiler flag to turn off builtin functions.
15284no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15285
15286# How to pass a linker flag through the compiler.
15287wl=$lt_lt_prog_compiler_wl
15288
15289# Additional compiler flags for building library objects.
15290pic_flag=$lt_lt_prog_compiler_pic
15291
15292# Compiler flag to prevent dynamic linking.
15293link_static_flag=$lt_lt_prog_compiler_static
15294
15295# Does compiler simultaneously support -c and -o options?
15296compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15297
15298# Whether or not to add -lc for building shared libraries.
15299build_libtool_need_lc=$archive_cmds_need_lc
15300
15301# Whether or not to disallow shared libs when runtime libs are static.
15302allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15303
15304# Compiler flag to allow reflexive dlopens.
15305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15306
15307# Compiler flag to generate shared objects directly from archives.
15308whole_archive_flag_spec=$lt_whole_archive_flag_spec
15309
15310# Whether the compiler copes with passing no objects directly.
15311compiler_needs_object=$lt_compiler_needs_object
15312
15313# Create an old-style archive from a shared archive.
15314old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15315
15316# Create a temporary old-style archive to link instead of a shared archive.
15317old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15318
15319# Commands used to build a shared archive.
15320archive_cmds=$lt_archive_cmds
15321archive_expsym_cmds=$lt_archive_expsym_cmds
15322
15323# Commands used to build a loadable module if different from building
15324# a shared archive.
15325module_cmds=$lt_module_cmds
15326module_expsym_cmds=$lt_module_expsym_cmds
15327
15328# Whether we are building with GNU ld or not.
15329with_gnu_ld=$lt_with_gnu_ld
15330
15331# Flag that allows shared libraries with undefined symbols to be built.
15332allow_undefined_flag=$lt_allow_undefined_flag
15333
15334# Flag that enforces no undefined symbols.
15335no_undefined_flag=$lt_no_undefined_flag
15336
15337# Flag to hardcode \$libdir into a binary during linking.
15338# This must work even if \$libdir does not exist
15339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15340
15341# If ld is used when linking, flag to hardcode \$libdir into a binary
15342# during linking. This must work even if \$libdir does not exist.
15343hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15344
15345# Whether we need a single "-rpath" flag with a separated argument.
15346hardcode_libdir_separator=$lt_hardcode_libdir_separator
15347
15348# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15349# DIR into the resulting binary.
15350hardcode_direct=$hardcode_direct
15351
15352# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15353# DIR into the resulting binary and the resulting library dependency is
15354# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15355# library is relocated.
15356hardcode_direct_absolute=$hardcode_direct_absolute
15357
15358# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15359# into the resulting binary.
15360hardcode_minus_L=$hardcode_minus_L
15361
15362# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15363# into the resulting binary.
15364hardcode_shlibpath_var=$hardcode_shlibpath_var
15365
15366# Set to "yes" if building a shared library automatically hardcodes DIR
15367# into the library and all subsequent libraries and executables linked
15368# against it.
15369hardcode_automatic=$hardcode_automatic
15370
15371# Set to yes if linker adds runtime paths of dependent libraries
15372# to runtime path list.
15373inherit_rpath=$inherit_rpath
15374
15375# Whether libtool must link a program against all its dependency libraries.
15376link_all_deplibs=$link_all_deplibs
15377
15378# Fix the shell variable \$srcfile for the compiler.
15379fix_srcfile_path=$lt_fix_srcfile_path
15380
15381# Set to "yes" if exported symbols are required.
15382always_export_symbols=$always_export_symbols
15383
15384# The commands to list exported symbols.
15385export_symbols_cmds=$lt_export_symbols_cmds
15386
15387# Symbols that should not be listed in the preloaded symbols.
15388exclude_expsyms=$lt_exclude_expsyms
15389
15390# Symbols that must always be exported.
15391include_expsyms=$lt_include_expsyms
15392
15393# Commands necessary for linking programs (against libraries) with templates.
15394prelink_cmds=$lt_prelink_cmds
15395
15396# Specify filename containing input files.
15397file_list_spec=$lt_file_list_spec
15398
15399# How to hardcode a shared library path into an executable.
15400hardcode_action=$hardcode_action
15401
15402# ### END LIBTOOL CONFIG
15403
15404_LT_EOF
15405
15406 case $host_os in
15407 aix3*)
15408 cat <<\_LT_EOF >> "$cfgfile"
15409# AIX sometimes has problems with the GCC collect2 program. For some
15410# reason, if we set the COLLECT_NAMES environment variable, the problems
15411# vanish in a puff of smoke.
15412if test "X${COLLECT_NAMES+set}" != Xset; then
15413 COLLECT_NAMES=
15414 export COLLECT_NAMES
15415fi
15416_LT_EOF
15417 ;;
15418 esac
15419
15420
15421ltmain="$ac_aux_dir/ltmain.sh"
15422
15423
15424 # We use sed instead of cat because bash on DJGPP gets confused if
15425 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15426 # text mode, it properly converts lines to CR/LF. This bash problem
15427 # is reportedly fixed, but why not run on old versions too?
15428 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15429 || (rm -f "$cfgfile"; exit 1)
15430
15431 case $xsi_shell in
15432 yes)
15433 cat << \_LT_EOF >> "$cfgfile"
15434
15435# func_dirname file append nondir_replacement
15436# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15437# otherwise set result to NONDIR_REPLACEMENT.
15438func_dirname ()
15439{
15440 case ${1} in
15441 */*) func_dirname_result="${1%/*}${2}" ;;
15442 * ) func_dirname_result="${3}" ;;
15443 esac
15444}
15445
15446# func_basename file
15447func_basename ()
15448{
15449 func_basename_result="${1##*/}"
15450}
15451
15452# func_dirname_and_basename file append nondir_replacement
15453# perform func_basename and func_dirname in a single function
15454# call:
15455# dirname: Compute the dirname of FILE. If nonempty,
15456# add APPEND to the result, otherwise set result
15457# to NONDIR_REPLACEMENT.
15458# value returned in "$func_dirname_result"
15459# basename: Compute filename of FILE.
15460# value retuned in "$func_basename_result"
15461# Implementation must be kept synchronized with func_dirname
15462# and func_basename. For efficiency, we do not delegate to
15463# those functions but instead duplicate the functionality here.
15464func_dirname_and_basename ()
15465{
15466 case ${1} in
15467 */*) func_dirname_result="${1%/*}${2}" ;;
15468 * ) func_dirname_result="${3}" ;;
15469 esac
15470 func_basename_result="${1##*/}"
15471}
15472
15473# func_stripname prefix suffix name
15474# strip PREFIX and SUFFIX off of NAME.
15475# PREFIX and SUFFIX must not contain globbing or regex special
15476# characters, hashes, percent signs, but SUFFIX may contain a leading
15477# dot (in which case that matches only a dot).
15478func_stripname ()
15479{
15480 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15481 # positional parameters, so assign one to ordinary parameter first.
15482 func_stripname_result=${3}
15483 func_stripname_result=${func_stripname_result#"${1}"}
15484 func_stripname_result=${func_stripname_result%"${2}"}
15485}
15486
15487# func_opt_split
15488func_opt_split ()
15489{
15490 func_opt_split_opt=${1%%=*}
15491 func_opt_split_arg=${1#*=}
15492}
15493
15494# func_lo2o object
15495func_lo2o ()
15496{
15497 case ${1} in
15498 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15499 *) func_lo2o_result=${1} ;;
15500 esac
15501}
15502
15503# func_xform libobj-or-source
15504func_xform ()
15505{
15506 func_xform_result=${1%.*}.lo
15507}
15508
15509# func_arith arithmetic-term...
15510func_arith ()
15511{
15512 func_arith_result=$(( $* ))
15513}
15514
15515# func_len string
15516# STRING may not start with a hyphen.
15517func_len ()
15518{
15519 func_len_result=${#1}
15520}
15521
15522_LT_EOF
15523 ;;
15524 *) # Bourne compatible functions.
15525 cat << \_LT_EOF >> "$cfgfile"
15526
15527# func_dirname file append nondir_replacement
15528# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15529# otherwise set result to NONDIR_REPLACEMENT.
15530func_dirname ()
15531{
15532 # Extract subdirectory from the argument.
15533 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15534 if test "X$func_dirname_result" = "X${1}"; then
15535 func_dirname_result="${3}"
15536 else
15537 func_dirname_result="$func_dirname_result${2}"
15538 fi
15539}
15540
15541# func_basename file
15542func_basename ()
15543{
15544 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15545}
15546
15547
15548# func_stripname prefix suffix name
15549# strip PREFIX and SUFFIX off of NAME.
15550# PREFIX and SUFFIX must not contain globbing or regex special
15551# characters, hashes, percent signs, but SUFFIX may contain a leading
15552# dot (in which case that matches only a dot).
15553# func_strip_suffix prefix name
15554func_stripname ()
15555{
15556 case ${2} in
15557 .*) func_stripname_result=`$ECHO "X${3}" \
15558 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15559 *) func_stripname_result=`$ECHO "X${3}" \
15560 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15561 esac
15562}
15563
15564# sed scripts:
15565my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15566my_sed_long_arg='1s/^-[^=]*=//'
15567
15568# func_opt_split
15569func_opt_split ()
15570{
15571 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15572 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15573}
15574
15575# func_lo2o object
15576func_lo2o ()
15577{
15578 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15579}
15580
15581# func_xform libobj-or-source
15582func_xform ()
15583{
15584 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15585}
15586
15587# func_arith arithmetic-term...
15588func_arith ()
15589{
15590 func_arith_result=`expr "$@"`
15591}
15592
15593# func_len string
15594# STRING may not start with a hyphen.
15595func_len ()
15596{
15597 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15598}
15599
15600_LT_EOF
15601esac
15602
15603case $lt_shell_append in
15604 yes)
15605 cat << \_LT_EOF >> "$cfgfile"
15606
15607# func_append var value
15608# Append VALUE to the end of shell variable VAR.
15609func_append ()
15610{
15611 eval "$1+=\$2"
15612}
15613_LT_EOF
15614 ;;
15615 *)
15616 cat << \_LT_EOF >> "$cfgfile"
15617
15618# func_append var value
15619# Append VALUE to the end of shell variable VAR.
15620func_append ()
15621{
15622 eval "$1=\$$1\$2"
15623}
15624
15625_LT_EOF
15626 ;;
15627 esac
15628
15629
15630 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15631 || (rm -f "$cfgfile"; exit 1)
15632
15633 mv -f "$cfgfile" "$ofile" ||
15634 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15635 chmod +x "$ofile"
15636
15637 ;;
mlcreech94984912008-03-04 19:03:08 +000015638
drh8b727472009-01-19 18:18:40 +000015639 esac
15640done # for ac_tag
15641
drh71eb93e2001-09-28 01:34:43 +000015642
15643{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015644_ACEOF
drh75897232000-05-29 14:26:00 +000015645chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015646ac_clean_files=$ac_clean_files_save
15647
drh8b727472009-01-19 18:18:40 +000015648test $ac_write_fail = 0 ||
15649 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15650$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15651 { (exit 1); exit 1; }; }
15652
a.rottmann84e63352003-03-24 09:42:16 +000015653
drh71eb93e2001-09-28 01:34:43 +000015654# configure is writing to config.log, and then calls config.status.
15655# config.status does its own redirection, appending to config.log.
15656# Unfortunately, on DOS this fails, as config.log is still kept open
15657# by configure, so config.status won't be able to write to it; its
15658# output is simply discarded. So we exec the FD to /dev/null,
15659# effectively closing config.log, so it can be properly (re)opened and
15660# appended to by config.status. When coming back to configure, we
15661# need to make the FD available again.
15662if test "$no_create" != yes; then
15663 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015664 ac_config_status_args=
15665 test "$silent" = yes &&
15666 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015667 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015668 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015669 exec 5>>config.log
15670 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15671 # would make configure fail if this is the last instruction.
15672 $ac_cs_success || { (exit 1); exit 1; }
15673fi
drh8b727472009-01-19 18:18:40 +000015674if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
vapier6acb2cf2009-01-28 04:46:28 +000015675 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15676$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015677fi
drh613a0fe2007-11-23 17:31:17 +000015678