blob: 9b8266d8125282e81c5e0b8a775b5ccc3d198276 [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.
drhb614eab2014-08-20 23:42:50 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.8.7.
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,
drh710658c2012-01-16 13:00:05 +00006# 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.
drh710658c2012-01-16 13:00:05 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000012
drh8b727472009-01-19 18:18:40 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000016 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
drh710658c2012-01-16 13:00:05 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000025esac
drh710658c2012-01-16 13:00:05 +000026
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
drh710658c2012-01-16 13:00:05 +000030
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
drh8b727472009-01-19 18:18:40 +000040as_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
drh710658c2012-01-16 13:00:05 +000047if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000048 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;
drh710658c2012-01-16 13:00:05 +000058 case $arg in
drh8b727472009-01-19 18:18:40 +000059 *"$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
drh710658c2012-01-16 13:00:05 +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
87
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.
drh710658c2012-01-16 13:00:05 +000097case $0 in
drh8b727472009-01-19 18:18:40 +000098 *[\\/]* ) 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=.
drh710658c2012-01-16 13:00:05 +0000104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
drh8b727472009-01-19 18:18:40 +0000106IFS=$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
drh710658c2012-01-16 13:00:05 +0000117 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +0000118fi
119
drh710658c2012-01-16 13:00:05 +0000120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +0000123done
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
drh710658c2012-01-16 13:00:05 +0000134# 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
drh710658c2012-01-16 13:00:05 +0000149# 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
drh710658c2012-01-16 13:00:05 +0000169# CDPATH.
170$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh710658c2012-01-16 13:00:05 +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
178fi
179
180 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}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if 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=
240 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=.
245 case $as_dir in
246 /*)
247 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(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 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" || {
447
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
450 # 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.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000458 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" ||
drh710658c2012-01-16 13:00:05 +0000474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +0000476
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
drh710658c2012-01-16 13:00:05 +0000485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
drh8b727472009-01-19 18:18:40 +0000492ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +0000493case `echo -n x` in
drh8b727472009-01-19 18:18:40 +0000494-n*)
drh710658c2012-01-16 13:00:05 +0000495 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +0000496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +0000497 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +0000498 esac;;
499*)
500 ECHO_N='-n';;
501esac
drh710658c2012-01-16 13:00:05 +0000502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
a.rottmann84e63352003-03-24 09:42:16 +0000508
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
drh710658c2012-01-16 13:00:05 +0000537 as_mkdir_p=:
a.rottmann84e63352003-03-24 09:42:16 +0000538else
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
drh710658c2012-01-16 13:00:05 +0000556 case $1 in
drh8b727472009-01-19 18:18:40 +0000557 -*)set "./$1";;
558 esac;
drh710658c2012-01-16 13:00:05 +0000559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +0000560 ???[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
drh710658c2012-01-16 13:00:05 +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
drh710658c2012-01-16 13:00:05 +0000723exec 7<&0 </dev/null 6>&1
drh8b727472009-01-19 18:18:40 +0000724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
drh710658c2012-01-16 13:00:05 +0000726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000727# 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=
drh710658c2012-01-16 13:00:05 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
drh71eb93e2001-09-28 01:34:43 +0000742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
drhb614eab2014-08-20 23:42:50 +0000746PACKAGE_VERSION='3.8.7'
747PACKAGE_STRING='sqlite 3.8.7'
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
drh710658c2012-01-16 13:00:05 +0000786ac_subst_vars='SHELL
dana9f39fd2011-08-12 16:34:42 +0000787PATH_SEPARATOR
drh710658c2012-01-16 13:00:05 +0000788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823LIBTOOL
824build
825build_cpu
826build_vendor
827build_os
828host
829host_cpu
830host_vendor
831host_os
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839SED
840GREP
841EGREP
842FGREP
843LD
844DUMPBIN
845ac_ct_DUMPBIN
846NM
847LN_S
848OBJDUMP
849AR
850STRIP
851RANLIB
852lt_ECHO
853DSYMUTIL
854NMEDIT
855LIPO
856OTOOL
857OTOOL64
858CPP
859INSTALL_PROGRAM
860INSTALL_SCRIPT
861INSTALL_DATA
862AWK
863TCLSH_CMD
864TCLLIBDIR
865program_prefix
866VERSION
867RELEASE
868VERSION_NUMBER
869BUILD_CC
870SQLITE_THREADSAFE
871XTHREADCONNECT
872ALLOWRELEASE
873TEMP_STORE
874BUILD_EXEEXT
875SQLITE_OS_UNIX
876SQLITE_OS_WIN
drh710658c2012-01-16 13:00:05 +0000877TARGET_EXEEXT
878TCL_VERSION
879TCL_BIN_DIR
880TCL_SRC_DIR
drh710658c2012-01-16 13:00:05 +0000881TCL_INCLUDE_SPEC
882TCL_LIB_FILE
883TCL_LIB_FLAG
884TCL_LIB_SPEC
885TCL_STUB_LIB_FILE
886TCL_STUB_LIB_FLAG
887TCL_STUB_LIB_SPEC
888HAVE_TCL
889TARGET_READLINE_LIBS
890TARGET_READLINE_INC
891TARGET_HAVE_READLINE
892TARGET_DEBUG
893USE_AMALGAMATION
894OPT_FEATURE_FLAGS
895USE_GCOV
896BUILD_CFLAGS
897LIBOBJS
898LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000899ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000900ac_user_opts='
901enable_option_checking
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906with_gnu_ld
907enable_libtool_lock
908enable_largefile
909with_hints
910enable_threadsafe
911enable_cross_thread_connections
drh8b727472009-01-19 18:18:40 +0000912enable_releasemode
913enable_tempstore
914enable_tcl
915with_tcl
916enable_readline
917with_readline_lib
918with_readline_inc
919enable_debug
920enable_amalgamation
921enable_load_extension
922enable_gcov
923'
924 ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930LIBS
931CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000932CPP
933TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000934
drh75897232000-05-29 14:26:00 +0000935
936# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000937ac_init_help=
938ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000939ac_unrecognized_opts=
940ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000941# The variables have the same names as the options, with
942# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000943cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000944exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000945no_create=
drh75897232000-05-29 14:26:00 +0000946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
drh75897232000-05-29 14:26:00 +0000954verbose=
955x_includes=NONE
956x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000963# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000972includedir='${prefix}/include'
973oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000983
drh75897232000-05-29 14:26:00 +0000984ac_prev=
drh8b727472009-01-19 18:18:40 +0000985ac_dashdash=
drh75897232000-05-29 14:26:00 +0000986for ac_option
987do
drh75897232000-05-29 14:26:00 +0000988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000990 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000991 ac_prev=
992 continue
993 fi
994
drh8b727472009-01-19 18:18:40 +0000995 case $ac_option in
drh710658c2012-01-16 13:00:05 +0000996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000998 esac
drh75897232000-05-29 14:26:00 +0000999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
drh8b727472009-01-19 18:18:40 +00001002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001009 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001010
1011 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001012 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001014 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001025
drh8b727472009-01-19 18:18:40 +00001026 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001027 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001029 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001030
drh8b727472009-01-19 18:18:40 +00001031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
drh75897232000-05-29 14:26:00 +00001038 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001040 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001064
1065 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001067 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"enable_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001079 esac
drh8b727472009-01-19 18:18:40 +00001080 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001089 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
drh71eb93e2001-09-28 01:34:43 +00001095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001101
1102 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001103 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001104 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001105 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001106
drh8b727472009-01-19 18:18:40 +00001107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
drh75897232000-05-29 14:26:00 +00001113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001118 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001123 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001128 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001135 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001136
drh8b727472009-01-19 18:18:40 +00001137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
drh75897232000-05-29 14:26:00 +00001142 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001143 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001147 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001152 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001159 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001173 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001178 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001185 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001192 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001209 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001210
drh8b727472009-01-19 18:18:40 +00001211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
drh75897232000-05-29 14:26:00 +00001221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001229 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001240 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001245 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001250 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001257 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001260 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001262 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
drh71eb93e2001-09-28 01:34:43 +00001267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001269
1270 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001272 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"with_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001284 esac
drh8b727472009-01-19 18:18:40 +00001285 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001286
1287 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001289 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297"with_$ac_useropt"
1298"*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001313 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001320 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001321
drh710658c2012-01-16 13:00:05 +00001322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001325 ;;
1326
drh71eb93e2001-09-28 01:34:43 +00001327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
drh710658c2012-01-16 13:00:05 +00001330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001333 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001334 export $ac_envvar ;;
1335
drh75897232000-05-29 14:26:00 +00001336 *)
drh71eb93e2001-09-28 01:34:43 +00001337 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh710658c2012-01-16 13:00:05 +00001341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001342 ;;
1343
1344 esac
1345done
1346
1347if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh710658c2012-01-16 13:00:05 +00001349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001351fi
1352
drh8b727472009-01-19 18:18:40 +00001353if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
drh710658c2012-01-16 13:00:05 +00001356 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001359 esac
drh8b727472009-01-19 18:18:40 +00001360fi
drh866108f2008-05-13 00:57:21 +00001361
drh8b727472009-01-19 18:18:40 +00001362# Check all directory arguments for consistency.
1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001367do
drh8b727472009-01-19 18:18:40 +00001368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001370 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001374 esac
drh8b727472009-01-19 18:18:40 +00001375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
drh710658c2012-01-16 13:00:05 +00001380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001382done
drh75897232000-05-29 14:26:00 +00001383
drh71eb93e2001-09-28 01:34:43 +00001384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001386# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001387build=$build_alias
1388host=$host_alias
1389target=$target_alias
drh75897232000-05-29 14:26:00 +00001390
a.rottmann84e63352003-03-24 09:42:16 +00001391# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001392if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
drh710658c2012-01-16 13:00:05 +00001395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
drh71eb93e2001-09-28 01:34:43 +00001397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400fi
1401
1402ac_tool_prefix=
1403test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001406
a.rottmann84e63352003-03-24 09:42:16 +00001407
drh8b727472009-01-19 18:18:40 +00001408ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409ac_ls_di=`ls -di .` &&
1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh710658c2012-01-16 13:00:05 +00001411 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001413test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drh710658c2012-01-16 13:00:05 +00001414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001416
1417
drh75897232000-05-29 14:26:00 +00001418# Find the source files, if location was not specified.
1419if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427$as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001445 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001446 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001447 srcdir=..
1448 fi
1449else
1450 ac_srcdir_defaulted=no
1451fi
drh8b727472009-01-19 18:18:40 +00001452if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drh710658c2012-01-16 13:00:05 +00001454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001456fi
drh8b727472009-01-19 18:18:40 +00001457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
drh710658c2012-01-16 13:00:05 +00001459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001461 pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
drh75897232000-05-29 14:26:00 +00001478
drh71eb93e2001-09-28 01:34:43 +00001479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001485 cat <<_ACEOF
drhb614eab2014-08-20 23:42:50 +00001486\`configure' configures sqlite 3.8.7 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
drh710658c2012-01-16 13:00:05 +00001500 -q, --quiet, --silent do not print \`checking...' messages
drh71eb93e2001-09-28 01:34:43 +00001501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
drh71eb93e2001-09-28 01:34:43 +00001506Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001508 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001510 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001539_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001540
a.rottmann84e63352003-03-24 09:42:16 +00001541 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001542
1543System types:
1544 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001547fi
1548
1549if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001550 case $ac_init_help in
drhb614eab2014-08-20 23:42:50 +00001551 short | recursive ) echo "Configuration of sqlite 3.8.7:";;
mlcreechb87057f2008-03-06 07:19:20 +00001552 esac
a.rottmann84e63352003-03-24 09:42:16 +00001553 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001554
1555Optional Features:
drh8b727472009-01-19 18:18:40 +00001556 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001559 --enable-shared[=PKGS] build shared libraries [default=yes]
1560 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001561 --enable-fast-install[=PKGS]
1562 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001563 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001564 --disable-largefile omit support for large files
drh94e4f822006-02-15 02:00:25 +00001565 --enable-threadsafe Support threadsafe operation
1566 --enable-cross-thread-connections
1567 Allow connection sharing across threads
drh94e4f822006-02-15 02:00:25 +00001568 --enable-releasemode Support libtool link to release mode
1569 --enable-tempstore Use an in-ram database for temporary tables
1570 (never,no,yes,always)
1571 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001572 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001573 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001574 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001575 separately
mlcreecha4edab02008-03-06 04:14:17 +00001576 --enable-load-extension Enable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001577 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001578
1579Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001582 --with-pic try to use only PIC/non-PIC objects [default=use
1583 both]
mlcreech636a9952008-05-05 22:52:56 +00001584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh71eb93e2001-09-28 01:34:43 +00001585 --with-hints=FILE Read configuration options from FILE
drh94e4f822006-02-15 02:00:25 +00001586 --with-tcl=DIR directory containing tcl configuration
1587 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001588 --with-readline-lib specify readline library
1589 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001590
1591Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001596 LIBS libraries to pass to the linker, e.g. -l<library>
drh710658c2012-01-16 13:00:05 +00001597 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001598 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001599 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001600 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001601
1602Use these variables to override the choices made by `configure' or to help
1603it to find libraries and programs with nonstandard names/locations.
1604
a.rottmann84e63352003-03-24 09:42:16 +00001605_ACEOF
drh8b727472009-01-19 18:18:40 +00001606ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
a.rottmann84e63352003-03-24 09:42:16 +00001615 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001616
drh8b727472009-01-19 18:18:40 +00001617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001632
a.rottmann84e63352003-03-24 09:42:16 +00001633case $srcdir in
drh8b727472009-01-19 18:18:40 +00001634 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001635 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001639 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001646esac
drh8b727472009-01-19 18:18:40 +00001647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001648
drh8b727472009-01-19 18:18:40 +00001649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001657 else
drh8b727472009-01-19 18:18:40 +00001658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001661 done
1662fi
1663
drh8b727472009-01-19 18:18:40 +00001664test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001665if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001666 cat <<\_ACEOF
drhb614eab2014-08-20 23:42:50 +00001667sqlite configure 3.8.7
drh710658c2012-01-16 13:00:05 +00001668generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001669
drh710658c2012-01-16 13:00:05 +00001670Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16712002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001674_ACEOF
drh8b727472009-01-19 18:18:40 +00001675 exit
drh71eb93e2001-09-28 01:34:43 +00001676fi
drh8b727472009-01-19 18:18:40 +00001677cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001678This file contains any messages produced by compilers while
1679running configure, to aid debugging if configure makes a mistake.
1680
drhb614eab2014-08-20 23:42:50 +00001681It was created by sqlite $as_me 3.8.7, which was
drh710658c2012-01-16 13:00:05 +00001682generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001683
1684 $ $0 $@
1685
a.rottmann84e63352003-03-24 09:42:16 +00001686_ACEOF
drh8b727472009-01-19 18:18:40 +00001687exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001688{
1689cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001690## --------- ##
1691## Platform. ##
1692## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001693
1694hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1695uname -m = `(uname -m) 2>/dev/null || echo unknown`
1696uname -r = `(uname -r) 2>/dev/null || echo unknown`
1697uname -s = `(uname -s) 2>/dev/null || echo unknown`
1698uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699
1700/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1701/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1702
1703/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1704/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1705/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001706/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001707/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1708/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1709/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1710
drh71eb93e2001-09-28 01:34:43 +00001711_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001712
1713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714for as_dir in $PATH
1715do
1716 IFS=$as_save_IFS
1717 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00001718 $as_echo "PATH: $as_dir"
1719done
drh8b727472009-01-19 18:18:40 +00001720IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001721
drh71eb93e2001-09-28 01:34:43 +00001722} >&5
1723
a.rottmann84e63352003-03-24 09:42:16 +00001724cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001725
a.rottmann84e63352003-03-24 09:42:16 +00001726
1727## ----------- ##
1728## Core tests. ##
1729## ----------- ##
1730
1731_ACEOF
1732
drh71eb93e2001-09-28 01:34:43 +00001733
1734# Keep a trace of the command line.
1735# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001736# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001737# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001738# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001739ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001740ac_configure_args0=
1741ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001742ac_must_keep_next=false
1743for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001744do
a.rottmann84e63352003-03-24 09:42:16 +00001745 for ac_arg
1746 do
1747 case $ac_arg in
1748 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1750 | -silent | --silent | --silen | --sile | --sil)
1751 continue ;;
drh8b727472009-01-19 18:18:40 +00001752 *\'*)
1753 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001754 esac
1755 case $ac_pass in
drh710658c2012-01-16 13:00:05 +00001756 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00001757 2)
drh710658c2012-01-16 13:00:05 +00001758 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001759 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001760 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001761 else
a.rottmann964dbb12004-02-26 19:47:42 +00001762 case $ac_arg in
1763 *=* | --config-cache | -C | -disable-* | --disable-* \
1764 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1765 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1766 | -with-* | --with-* | -without-* | --without-* | --x)
1767 case "$ac_configure_args0 " in
1768 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1769 esac
1770 ;;
1771 -* ) ac_must_keep_next=true ;;
1772 esac
a.rottmann84e63352003-03-24 09:42:16 +00001773 fi
drh710658c2012-01-16 13:00:05 +00001774 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001775 ;;
1776 esac
1777 done
drh71eb93e2001-09-28 01:34:43 +00001778done
drh710658c2012-01-16 13:00:05 +00001779$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1780$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001781
1782# When interrupted or exit'd, cleanup temporary files, and complete
1783# config.log. We remove comments because anyway the quotes in there
1784# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001785# WARNING: Use '\'' to represent an apostrophe within the trap.
1786# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001787trap 'exit_status=$?
1788 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001789 {
1790 echo
1791
drh710658c2012-01-16 13:00:05 +00001792 cat <<\_ASBOX
1793## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001794## Cache variables. ##
drh710658c2012-01-16 13:00:05 +00001795## ---------------- ##
1796_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001797 echo
1798 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001799(
1800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1801 eval ac_val=\$$ac_var
1802 case $ac_val in #(
1803 *${as_nl}*)
1804 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +00001805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1806$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001807 esac
1808 case $ac_var in #(
1809 _ | IFS | as_nl) ;; #(
1810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +00001811 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +00001812 esac ;;
1813 esac
1814 done
drh71eb93e2001-09-28 01:34:43 +00001815 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1817 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001818 sed -n \
drh8b727472009-01-19 18:18:40 +00001819 "s/'\''/'\''\\\\'\'''\''/g;
1820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1821 ;; #(
drh866108f2008-05-13 00:57:21 +00001822 *)
drh8b727472009-01-19 18:18:40 +00001823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001824 ;;
drh8b727472009-01-19 18:18:40 +00001825 esac |
1826 sort
1827)
a.rottmann84e63352003-03-24 09:42:16 +00001828 echo
1829
drh710658c2012-01-16 13:00:05 +00001830 cat <<\_ASBOX
1831## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001832## Output variables. ##
drh710658c2012-01-16 13:00:05 +00001833## ----------------- ##
1834_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001835 echo
1836 for ac_var in $ac_subst_vars
1837 do
drh8b727472009-01-19 18:18:40 +00001838 eval ac_val=\$$ac_var
1839 case $ac_val in
1840 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1841 esac
1842 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001843 done | sort
1844 echo
1845
1846 if test -n "$ac_subst_files"; then
drh710658c2012-01-16 13:00:05 +00001847 cat <<\_ASBOX
1848## ------------------- ##
drh8b727472009-01-19 18:18:40 +00001849## File substitutions. ##
drh710658c2012-01-16 13:00:05 +00001850## ------------------- ##
1851_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001852 echo
1853 for ac_var in $ac_subst_files
1854 do
drh8b727472009-01-19 18:18:40 +00001855 eval ac_val=\$$ac_var
1856 case $ac_val in
1857 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858 esac
1859 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001860 done | sort
1861 echo
1862 fi
1863
1864 if test -s confdefs.h; then
drh710658c2012-01-16 13:00:05 +00001865 cat <<\_ASBOX
1866## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001867## confdefs.h. ##
drh710658c2012-01-16 13:00:05 +00001868## ----------- ##
1869_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001870 echo
drh8b727472009-01-19 18:18:40 +00001871 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001872 echo
1873 fi
1874 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001875 $as_echo "$as_me: caught signal $ac_signal"
1876 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001877 } >&5
drh8b727472009-01-19 18:18:40 +00001878 rm -f core *.core core.conftest.* &&
1879 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001880 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001881' 0
drh71eb93e2001-09-28 01:34:43 +00001882for ac_signal in 1 2 13 15; do
drh710658c2012-01-16 13:00:05 +00001883 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00001884done
1885ac_signal=0
1886
1887# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001888rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001889
a.rottmann84e63352003-03-24 09:42:16 +00001890# Predefined preprocessor variables.
1891
1892cat >>confdefs.h <<_ACEOF
1893#define PACKAGE_NAME "$PACKAGE_NAME"
1894_ACEOF
1895
drh710658c2012-01-16 13:00:05 +00001896
a.rottmann84e63352003-03-24 09:42:16 +00001897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1899_ACEOF
1900
drh710658c2012-01-16 13:00:05 +00001901
a.rottmann84e63352003-03-24 09:42:16 +00001902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_VERSION "$PACKAGE_VERSION"
1904_ACEOF
1905
drh710658c2012-01-16 13:00:05 +00001906
a.rottmann84e63352003-03-24 09:42:16 +00001907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_STRING "$PACKAGE_STRING"
1909_ACEOF
1910
a.rottmann84e63352003-03-24 09:42:16 +00001911
dana9f39fd2011-08-12 16:34:42 +00001912cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00001913#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00001914_ACEOF
1915
a.rottmann84e63352003-03-24 09:42:16 +00001916
drh71eb93e2001-09-28 01:34:43 +00001917# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001918# Prefer an explicitly selected file to automatically selected ones.
1919ac_site_file1=NONE
1920ac_site_file2=NONE
1921if test -n "$CONFIG_SITE"; then
drh710658c2012-01-16 13:00:05 +00001922 ac_site_file1=$CONFIG_SITE
drh8b727472009-01-19 18:18:40 +00001923elif test "x$prefix" != xNONE; then
1924 ac_site_file1=$prefix/share/config.site
1925 ac_site_file2=$prefix/etc/config.site
1926else
1927 ac_site_file1=$ac_default_prefix/share/config.site
1928 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001929fi
drh8b727472009-01-19 18:18:40 +00001930for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1931do
1932 test "x$ac_site_file" = xNONE && continue
drh710658c2012-01-16 13:00:05 +00001933 if test -r "$ac_site_file"; then
1934 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00001935$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001936 sed 's/^/| /' "$ac_site_file" >&5
drh710658c2012-01-16 13:00:05 +00001937 . "$ac_site_file"
drh75897232000-05-29 14:26:00 +00001938 fi
1939done
1940
1941if test -r "$cache_file"; then
drh710658c2012-01-16 13:00:05 +00001942 # Some versions of bash will fail to source /dev/null (special
1943 # files actually), so we avoid doing that.
1944 if test -f "$cache_file"; then
1945 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001946$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001947 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1949 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001950 esac
1951 fi
drh75897232000-05-29 14:26:00 +00001952else
drh710658c2012-01-16 13:00:05 +00001953 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001954$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001955 >$cache_file
1956fi
1957
1958# Check that the precious variables saved in the cache have kept the same
1959# value.
1960ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001961for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1963 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001964 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1965 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001966 case $ac_old_set,$ac_new_set in
1967 set,)
drh710658c2012-01-16 13:00:05 +00001968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001969$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001970 ac_cache_corrupted=: ;;
1971 ,set)
drh710658c2012-01-16 13:00:05 +00001972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001973$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001974 ac_cache_corrupted=: ;;
1975 ,);;
1976 *)
1977 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001978 # differences in whitespace do not lead to failure.
1979 ac_old_val_w=`echo x $ac_old_val`
1980 ac_new_val_w=`echo x $ac_new_val`
1981 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drh710658c2012-01-16 13:00:05 +00001982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001983$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1984 ac_cache_corrupted=:
1985 else
drh710658c2012-01-16 13:00:05 +00001986 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001987$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1988 eval $ac_var=\$ac_old_val
1989 fi
drh710658c2012-01-16 13:00:05 +00001990 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00001991$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drh710658c2012-01-16 13:00:05 +00001992 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00001993$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001994 fi;;
1995 esac
a.rottmann84e63352003-03-24 09:42:16 +00001996 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001997 if test "$ac_new_set" = set; then
1998 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00001999 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002000 *) ac_arg=$ac_var=$ac_new_val ;;
2001 esac
2002 case " $ac_configure_args " in
2003 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drh710658c2012-01-16 13:00:05 +00002004 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002005 esac
2006 fi
2007done
2008if $ac_cache_corrupted; then
drh710658c2012-01-16 13:00:05 +00002009 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002010$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drh710658c2012-01-16 13:00:05 +00002011 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002014fi
drh710658c2012-01-16 13:00:05 +00002015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
drh8b727472009-01-19 18:18:40 +00002039
drh75897232000-05-29 14:26:00 +00002040ac_ext=c
drh75897232000-05-29 14:26:00 +00002041ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002045
a.rottmann84e63352003-03-24 09:42:16 +00002046
2047
drh04446102009-06-15 00:04:06 +00002048sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002049if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drh710658c2012-01-16 13:00:05 +00002050{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002051 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2052 top level VERSION file = $sqlite_version_sanity_check
drh710658c2012-01-16 13:00:05 +00002053please regen with autoconf" >&5
2054$as_echo "$as_me: error: configure script is out of date:
2055 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2056 top level VERSION file = $sqlite_version_sanity_check
2057please regen with autoconf" >&2;}
2058 { (exit 1); exit 1; }; }
vapierfaa68db2009-04-01 07:38:31 +00002059fi
2060
drh75897232000-05-29 14:26:00 +00002061# The following RCS revision string applies to configure.in
drhcee4c932009-08-24 19:37:20 +00002062# $Revision: 1.56 $
drh75897232000-05-29 14:26:00 +00002063
2064#########
drh71eb93e2001-09-28 01:34:43 +00002065# Programs needed
drh75897232000-05-29 14:26:00 +00002066#
mlcreech636a9952008-05-05 22:52:56 +00002067case `pwd` in
2068 *\ * | *\ *)
drh710658c2012-01-16 13:00:05 +00002069 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002070$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002071esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002072
mlcreech94984912008-03-04 19:03:08 +00002073
mlcreech636a9952008-05-05 22:52:56 +00002074
vapier6acb2cf2009-01-28 04:46:28 +00002075macro_version='2.2.6'
2076macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002077
mlcreech94984912008-03-04 19:03:08 +00002078
mlcreech94984912008-03-04 19:03:08 +00002079
a.rottmann9bc8b932004-02-29 15:18:31 +00002080
mlcreech636a9952008-05-05 22:52:56 +00002081
2082
2083
2084
2085
2086
2087
2088
2089
2090ltmain="$ac_aux_dir/ltmain.sh"
2091
drh71eb93e2001-09-28 01:34:43 +00002092ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002093for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002094 if test -f "$ac_dir/install-sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2097 break
2098 elif test -f "$ac_dir/install.sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2101 break
2102 elif test -f "$ac_dir/shtool"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2105 break
2106 fi
drh71eb93e2001-09-28 01:34:43 +00002107done
2108if test -z "$ac_aux_dir"; then
drh710658c2012-01-16 13:00:05 +00002109 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002112fi
drh8b727472009-01-19 18:18:40 +00002113
2114# These three variables are undocumented and unsupported,
2115# and are intended to be withdrawn in a future Autoconf release.
2116# They can cause serious problems if a builder's source tree is in a directory
2117# whose full name contains unusual characters.
2118ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2119ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2120ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2121
drh71eb93e2001-09-28 01:34:43 +00002122
2123# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drh710658c2012-01-16 13:00:05 +00002125 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002128
drh710658c2012-01-16 13:00:05 +00002129{ $as_echo "$as_me:$LINENO: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002130$as_echo_n "checking build system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002131if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002132 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002133else
drh8b727472009-01-19 18:18:40 +00002134 ac_build_alias=$build_alias
2135test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137test "x$ac_build_alias" = x &&
drh710658c2012-01-16 13:00:05 +00002138 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002141ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drh710658c2012-01-16 13:00:05 +00002142 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002145
2146fi
drh710658c2012-01-16 13:00:05 +00002147{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002148$as_echo "$ac_cv_build" >&6; }
2149case $ac_cv_build in
2150*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002151*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002154esac
drh71eb93e2001-09-28 01:34:43 +00002155build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002156ac_save_IFS=$IFS; IFS='-'
2157set x $ac_cv_build
2158shift
2159build_cpu=$1
2160build_vendor=$2
2161shift; shift
2162# Remember, the first character of IFS is used to create $*,
2163# except with old shells:
2164build_os=$*
2165IFS=$ac_save_IFS
2166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002167
a.rottmann84e63352003-03-24 09:42:16 +00002168
drh710658c2012-01-16 13:00:05 +00002169{ $as_echo "$as_me:$LINENO: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002170$as_echo_n "checking host system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002171if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002172 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002173else
drh8b727472009-01-19 18:18:40 +00002174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drh710658c2012-01-16 13:00:05 +00002178 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002181fi
drh71eb93e2001-09-28 01:34:43 +00002182
2183fi
drh710658c2012-01-16 13:00:05 +00002184{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002185$as_echo "$ac_cv_host" >&6; }
2186case $ac_cv_host in
2187*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002188*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002191esac
drh71eb93e2001-09-28 01:34:43 +00002192host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_host
2195shift
2196host_cpu=$1
2197host_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201host_os=$*
2202IFS=$ac_save_IFS
2203case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002204
a.rottmann84e63352003-03-24 09:42:16 +00002205
drh71eb93e2001-09-28 01:34:43 +00002206ac_ext=c
2207ac_cpp='$CPP $CPPFLAGS'
2208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002214{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002215$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002216if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002217 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002218else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221else
a.rottmann84e63352003-03-24 09:42:16 +00002222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002227 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002228 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 +00002229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh710658c2012-01-16 13:00:05 +00002230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002231 break 2
2232 fi
2233done
drh710658c2012-01-16 13:00:05 +00002234done
drh8b727472009-01-19 18:18:40 +00002235IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002236
2237fi
2238fi
2239CC=$ac_cv_prog_CC
2240if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002241 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002242$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002243else
drh710658c2012-01-16 13:00:05 +00002244 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002245$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002246fi
2247
drh8b727472009-01-19 18:18:40 +00002248
drh71eb93e2001-09-28 01:34:43 +00002249fi
2250if test -z "$ac_cv_prog_CC"; then
2251 ac_ct_CC=$CC
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253set dummy gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002254{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002255$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002257 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002258else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261else
a.rottmann84e63352003-03-24 09:42:16 +00002262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263for as_dir in $PATH
2264do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002267 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002268 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 +00002269 ac_cv_prog_ac_ct_CC="gcc"
drh710658c2012-01-16 13:00:05 +00002270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002271 break 2
2272 fi
2273done
drh710658c2012-01-16 13:00:05 +00002274done
drh8b727472009-01-19 18:18:40 +00002275IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002276
2277fi
2278fi
2279ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002281 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002282$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002283else
drh710658c2012-01-16 13:00:05 +00002284 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002285$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002286fi
2287
drh8b727472009-01-19 18:18:40 +00002288 if test "x$ac_ct_CC" = x; then
2289 CC=""
2290 else
2291 case $cross_compiling:$ac_tool_warned in
2292yes:)
drh710658c2012-01-16 13:00:05 +00002293{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2294whose name does not start with the host triplet. If you think this
2295configuration is useful to you, please write to autoconf@gnu.org." >&5
2296$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2297whose name does not start with the host triplet. If you think this
2298configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002299ac_tool_warned=yes ;;
2300esac
2301 CC=$ac_ct_CC
2302 fi
drh71eb93e2001-09-28 01:34:43 +00002303else
2304 CC="$ac_cv_prog_CC"
2305fi
2306
2307if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002310set dummy ${ac_tool_prefix}cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002312$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002313if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002314 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002315else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
a.rottmann84e63352003-03-24 09:42:16 +00002319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002324 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002325 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 +00002326 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh710658c2012-01-16 13:00:05 +00002327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002328 break 2
2329 fi
2330done
drh710658c2012-01-16 13:00:05 +00002331done
drh8b727472009-01-19 18:18:40 +00002332IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002333
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002339$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002340else
drh710658c2012-01-16 13:00:05 +00002341 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002342$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002343fi
2344
drh8b727472009-01-19 18:18:40 +00002345
a.rottmann84e63352003-03-24 09:42:16 +00002346 fi
drh71eb93e2001-09-28 01:34:43 +00002347fi
2348if test -z "$CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350set dummy cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002351{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002352$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002353if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002354 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002355else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358else
2359 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002365 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002366 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 +00002367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368 ac_prog_rejected=yes
2369 continue
2370 fi
2371 ac_cv_prog_CC="cc"
drh710658c2012-01-16 13:00:05 +00002372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002373 break 2
2374 fi
2375done
drh710658c2012-01-16 13:00:05 +00002376done
drh8b727472009-01-19 18:18:40 +00002377IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002378
2379if test $ac_prog_rejected = yes; then
2380 # We found a bogon in the path, so make sure we never use it.
2381 set dummy $ac_cv_prog_CC
2382 shift
2383 if test $# != 0; then
2384 # We chose a different compiler from the bogus one.
2385 # However, it has the same basename, so the bogon will be chosen
2386 # first if we set CC to just the basename; use the full file name.
2387 shift
a.rottmann84e63352003-03-24 09:42:16 +00002388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002389 fi
2390fi
2391fi
2392fi
2393CC=$ac_cv_prog_CC
2394if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002395 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002396$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002397else
drh710658c2012-01-16 13:00:05 +00002398 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002399$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002400fi
2401
drh8b727472009-01-19 18:18:40 +00002402
drh71eb93e2001-09-28 01:34:43 +00002403fi
2404if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002406 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002407 do
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002411$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002412if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002413 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002414else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417else
a.rottmann84e63352003-03-24 09:42:16 +00002418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419for as_dir in $PATH
2420do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002423 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002424 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 +00002425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00002426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002427 break 2
2428 fi
2429done
drh710658c2012-01-16 13:00:05 +00002430done
drh8b727472009-01-19 18:18:40 +00002431IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002432
2433fi
2434fi
2435CC=$ac_cv_prog_CC
2436if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002437 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002438$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002439else
drh710658c2012-01-16 13:00:05 +00002440 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002441$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002442fi
2443
drh8b727472009-01-19 18:18:40 +00002444
drh71eb93e2001-09-28 01:34:43 +00002445 test -n "$CC" && break
2446 done
2447fi
2448if test -z "$CC"; then
2449 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002450 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002451do
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002454{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002455$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002456if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002457 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002458else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461else
a.rottmann84e63352003-03-24 09:42:16 +00002462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463for as_dir in $PATH
2464do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002467 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002468 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 +00002469 ac_cv_prog_ac_ct_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +00002470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002471 break 2
2472 fi
2473done
drh710658c2012-01-16 13:00:05 +00002474done
drh8b727472009-01-19 18:18:40 +00002475IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002476
2477fi
2478fi
2479ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002481 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002482$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002483else
drh710658c2012-01-16 13:00:05 +00002484 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002485$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002486fi
2487
drh8b727472009-01-19 18:18:40 +00002488
drh71eb93e2001-09-28 01:34:43 +00002489 test -n "$ac_ct_CC" && break
2490done
2491
drh8b727472009-01-19 18:18:40 +00002492 if test "x$ac_ct_CC" = x; then
2493 CC=""
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496yes:)
drh710658c2012-01-16 13:00:05 +00002497{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet. If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&5
2500$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501whose name does not start with the host triplet. If you think this
2502configuration is useful to you, please write to autoconf@gnu.org." >&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
drh710658c2012-01-16 13:00:05 +00002512test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2513See \`config.log' for more details." >&5
2514$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2515See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002517
2518# Provide some information about the compiler.
drh710658c2012-01-16 13:00:05 +00002519$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002520set X $ac_compile
2521ac_compiler=$2
drh710658c2012-01-16 13:00:05 +00002522{ (ac_try="$ac_compiler --version >&5"
drh8b727472009-01-19 18:18:40 +00002523case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526esac
drh710658c2012-01-16 13:00:05 +00002527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528$as_echo "$ac_try_echo") >&5
2529 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002530 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533{ (ac_try="$ac_compiler -v >&5"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539$as_echo "$ac_try_echo") >&5
2540 (eval "$ac_compiler -v >&5") 2>&5
2541 ac_status=$?
2542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544{ (ac_try="$ac_compiler -V >&5"
2545case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548esac
2549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2550$as_echo "$ac_try_echo") >&5
2551 (eval "$ac_compiler -V >&5") 2>&5
2552 ac_status=$?
2553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
drh71eb93e2001-09-28 01:34:43 +00002555
drh710658c2012-01-16 13:00:05 +00002556cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002561/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002562
2563int
2564main ()
2565{
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002572ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002573# Try to create an executable without -o first, disregard a.out.
2574# It will help us diagnose broken compilers, and finding out an intuition
2575# of exeext.
drh710658c2012-01-16 13:00:05 +00002576{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2577$as_echo_n "checking for C compiler default output file name... " >&6; }
drh8b727472009-01-19 18:18:40 +00002578ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002579
drh8b727472009-01-19 18:18:40 +00002580# The possible output files:
2581ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2582
2583ac_rmfiles=
2584for ac_file in $ac_files
2585do
2586 case $ac_file in
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2589 esac
2590done
2591rm -f $ac_rmfiles
2592
drh710658c2012-01-16 13:00:05 +00002593if { (ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
drh710658c2012-01-16 13:00:05 +00002598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2599$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002600 (eval "$ac_link_default") 2>&5
2601 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2605# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2606# in a Makefile. We should not override ac_cv_exeext if it was cached,
2607# so that the user can short-circuit this test for compilers unknown to
2608# Autoconf.
2609for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002610do
2611 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002612 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002614 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002615 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002616 # We found the default executable, but exeext='' is most
2617 # certainly right.
2618 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002619 *.* )
drh710658c2012-01-16 13:00:05 +00002620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002621 then :; else
2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2623 fi
2624 # We set ac_cv_exeext here because the later test for it is not
2625 # safe: cross compilers may not add the suffix if given an `-o'
2626 # argument, so we may need to know it at that point already.
2627 # Even if this section looks crufty: it has the advantage of
2628 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002629 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002630 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002631 break;;
drh71eb93e2001-09-28 01:34:43 +00002632 esac
2633done
drh8b727472009-01-19 18:18:40 +00002634test "$ac_cv_exeext" = no && ac_cv_exeext=
2635
drh71eb93e2001-09-28 01:34:43 +00002636else
drh8b727472009-01-19 18:18:40 +00002637 ac_file=''
2638fi
drh710658c2012-01-16 13:00:05 +00002639
2640{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2641$as_echo "$ac_file" >&6; }
2642if test -z "$ac_file"; then
2643 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002644sed 's/^/| /' conftest.$ac_ext >&5
2645
drh710658c2012-01-16 13:00:05 +00002646{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2647See \`config.log' for more details." >&5
2648$as_echo "$as_me: error: C compiler cannot create executables
2649See \`config.log' for more details." >&2;}
2650 { (exit 77); exit 77; }; }
dana9f39fd2011-08-12 16:34:42 +00002651fi
drh710658c2012-01-16 13:00:05 +00002652
dana9f39fd2011-08-12 16:34:42 +00002653ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002654
drh710658c2012-01-16 13:00:05 +00002655# Check that the compiler produces executables we can run. If not, either
2656# the compiler is broken, or we cross compile.
2657{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2658$as_echo_n "checking whether the C compiler works... " >&6; }
2659# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2660# If not cross compiling, check that we can run a simple program.
2661if test "$cross_compiling" != yes; then
2662 if { ac_try='./$ac_file'
2663 { (case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666esac
2667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2668$as_echo "$ac_try_echo") >&5
2669 (eval "$ac_try") 2>&5
2670 ac_status=$?
2671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 cross_compiling=no
2674 else
2675 if test "$cross_compiling" = maybe; then
2676 cross_compiling=yes
2677 else
2678 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2679If you meant to cross compile, use \`--host'.
2680See \`config.log' for more details." >&5
2681$as_echo "$as_me: error: cannot run C compiled programs.
2682If you meant to cross compile, use \`--host'.
2683See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2685 fi
2686 fi
2687fi
2688{ $as_echo "$as_me:$LINENO: result: yes" >&5
2689$as_echo "yes" >&6; }
2690
drh8b727472009-01-19 18:18:40 +00002691rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002692ac_clean_files=$ac_clean_files_save
drh710658c2012-01-16 13:00:05 +00002693# Check that the compiler produces executables we can run. If not, either
2694# the compiler is broken, or we cross compile.
2695{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2696$as_echo_n "checking whether we are cross compiling... " >&6; }
2697{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2698$as_echo "$cross_compiling" >&6; }
2699
2700{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002701$as_echo_n "checking for suffix of executables... " >&6; }
drh710658c2012-01-16 13:00:05 +00002702if { (ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002703case "(($ac_try" in
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2706esac
drh710658c2012-01-16 13:00:05 +00002707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2708$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002709 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002710 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
drh71eb93e2001-09-28 01:34:43 +00002713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715# work properly (i.e., refer to `conftest.exe'), while it won't with
2716# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002717for ac_file in conftest.exe conftest conftest.*; do
2718 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002719 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002722 break;;
drh71eb93e2001-09-28 01:34:43 +00002723 * ) break;;
2724 esac
2725done
2726else
drh710658c2012-01-16 13:00:05 +00002727 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2728See \`config.log' for more details." >&5
2729$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2730See \`config.log' for more details." >&2;}
2731 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002732fi
drh710658c2012-01-16 13:00:05 +00002733
2734rm -f conftest$ac_cv_exeext
2735{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002736$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002737
2738rm -f conftest.$ac_ext
2739EXEEXT=$ac_cv_exeext
2740ac_exeext=$EXEEXT
drh710658c2012-01-16 13:00:05 +00002741{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00002742$as_echo_n "checking for suffix of object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00002743if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002744 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002745else
drh710658c2012-01-16 13:00:05 +00002746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002751/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002752
2753int
2754main ()
2755{
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761rm -f conftest.o conftest.obj
drh710658c2012-01-16 13:00:05 +00002762if { (ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00002763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
drh710658c2012-01-16 13:00:05 +00002767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2768$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002769 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002770 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002773 for ac_file in conftest.o conftest.obj conftest.*; do
2774 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002775 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2778 break;;
2779 esac
2780done
2781else
drh8b727472009-01-19 18:18:40 +00002782 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002783sed 's/^/| /' conftest.$ac_ext >&5
2784
drh710658c2012-01-16 13:00:05 +00002785{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2786See \`config.log' for more details." >&5
2787$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2788See \`config.log' for more details." >&2;}
2789 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002790fi
drh710658c2012-01-16 13:00:05 +00002791
drh71eb93e2001-09-28 01:34:43 +00002792rm -f conftest.$ac_cv_objext conftest.$ac_ext
2793fi
drh710658c2012-01-16 13:00:05 +00002794{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00002795$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002796OBJEXT=$ac_cv_objext
2797ac_objext=$OBJEXT
drh710658c2012-01-16 13:00:05 +00002798{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00002799$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh710658c2012-01-16 13:00:05 +00002800if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002801 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002802else
drh710658c2012-01-16 13:00:05 +00002803 cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h. */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002808/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002809
2810int
2811main ()
2812{
2813#ifndef __GNUC__
2814 choke me
2815#endif
2816
2817 ;
2818 return 0;
2819}
2820_ACEOF
drh710658c2012-01-16 13:00:05 +00002821rm -f conftest.$ac_objext
2822if { (ac_try="$ac_compile"
2823case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826esac
2827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2828$as_echo "$ac_try_echo") >&5
2829 (eval "$ac_compile") 2>conftest.er1
2830 ac_status=$?
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
2834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } && {
2836 test -z "$ac_c_werror_flag" ||
2837 test ! -s conftest.err
2838 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002839 ac_compiler_gnu=yes
2840else
drh710658c2012-01-16 13:00:05 +00002841 $as_echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002845fi
drh710658c2012-01-16 13:00:05 +00002846
drh8b727472009-01-19 18:18:40 +00002847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002848ac_cv_c_compiler_gnu=$ac_compiler_gnu
2849
2850fi
drh710658c2012-01-16 13:00:05 +00002851{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00002852$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2853if test $ac_compiler_gnu = yes; then
2854 GCC=yes
2855else
2856 GCC=
2857fi
drh71eb93e2001-09-28 01:34:43 +00002858ac_test_CFLAGS=${CFLAGS+set}
2859ac_save_CFLAGS=$CFLAGS
drh710658c2012-01-16 13:00:05 +00002860{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00002861$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh710658c2012-01-16 13:00:05 +00002862if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002863 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002864else
drh8b727472009-01-19 18:18:40 +00002865 ac_save_c_werror_flag=$ac_c_werror_flag
2866 ac_c_werror_flag=yes
2867 ac_cv_prog_cc_g=no
2868 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002869 cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h. */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002874/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002875
2876int
2877main ()
2878{
2879
2880 ;
2881 return 0;
2882}
2883_ACEOF
drh710658c2012-01-16 13:00:05 +00002884rm -f conftest.$ac_objext
2885if { (ac_try="$ac_compile"
2886case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889esac
2890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2891$as_echo "$ac_try_echo") >&5
2892 (eval "$ac_compile") 2>conftest.er1
2893 ac_status=$?
2894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
2897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } && {
2899 test -z "$ac_c_werror_flag" ||
2900 test ! -s conftest.err
2901 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002902 ac_cv_prog_cc_g=yes
2903else
drh710658c2012-01-16 13:00:05 +00002904 $as_echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 CFLAGS=""
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
drh710658c2012-01-16 13:00:05 +00002923rm -f conftest.$ac_objext
2924if { (ac_try="$ac_compile"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930$as_echo "$ac_try_echo") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2941 :
dana9f39fd2011-08-12 16:34:42 +00002942else
drh710658c2012-01-16 13:00:05 +00002943 $as_echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00002947 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002948 cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002953/* end confdefs.h. */
2954
2955int
2956main ()
2957{
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
drh710658c2012-01-16 13:00:05 +00002963rm -f conftest.$ac_objext
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970$as_echo "$ac_try_echo") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } && {
2978 test -z "$ac_c_werror_flag" ||
2979 test ! -s conftest.err
2980 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00002981 ac_cv_prog_cc_g=yes
drh710658c2012-01-16 13:00:05 +00002982else
2983 $as_echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986
drh71eb93e2001-09-28 01:34:43 +00002987fi
drh710658c2012-01-16 13:00:05 +00002988
drh8b727472009-01-19 18:18:40 +00002989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002990fi
drh710658c2012-01-16 13:00:05 +00002991
drh8b727472009-01-19 18:18:40 +00002992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993fi
drh710658c2012-01-16 13:00:05 +00002994
drh8b727472009-01-19 18:18:40 +00002995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_c_werror_flag=$ac_save_c_werror_flag
2997fi
drh710658c2012-01-16 13:00:05 +00002998{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00002999$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003000if test "$ac_test_CFLAGS" = set; then
3001 CFLAGS=$ac_save_CFLAGS
3002elif test $ac_cv_prog_cc_g = yes; then
3003 if test "$GCC" = yes; then
3004 CFLAGS="-g -O2"
3005 else
3006 CFLAGS="-g"
3007 fi
3008else
3009 if test "$GCC" = yes; then
3010 CFLAGS="-O2"
3011 else
3012 CFLAGS=
3013 fi
3014fi
drh710658c2012-01-16 13:00:05 +00003015{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003016$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drh710658c2012-01-16 13:00:05 +00003017if test "${ac_cv_prog_cc_c89+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003018 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003019else
drh8b727472009-01-19 18:18:40 +00003020 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003021ac_save_CC=$CC
drh710658c2012-01-16 13:00:05 +00003022cat >conftest.$ac_ext <<_ACEOF
3023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003027/* end confdefs.h. */
3028#include <stdarg.h>
3029#include <stdio.h>
3030#include <sys/types.h>
3031#include <sys/stat.h>
3032/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3033struct buf { int x; };
3034FILE * (*rcsopen) (struct buf *, struct stat *, int);
3035static char *e (p, i)
3036 char **p;
3037 int i;
3038{
3039 return p[i];
3040}
3041static char *f (char * (*g) (char **, int), char **p, ...)
3042{
3043 char *s;
3044 va_list v;
3045 va_start (v,p);
3046 s = g (p, va_arg (v,int));
3047 va_end (v);
3048 return s;
3049}
a.rottmann964dbb12004-02-26 19:47:42 +00003050
3051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3052 function prototypes and stuff, but not '\xHH' hex character constants.
3053 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003054 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3056 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003057 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003058int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3059
drh8b727472009-01-19 18:18:40 +00003060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3061 inside strings and character constants. */
3062#define FOO(x) 'x'
3063int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3064
a.rottmann84e63352003-03-24 09:42:16 +00003065int test (int i, double x);
3066struct s1 {int (*f) (int a);};
3067struct s2 {int (*f) (double a);};
3068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3069int argc;
3070char **argv;
3071int
3072main ()
3073{
3074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3075 ;
3076 return 0;
3077}
3078_ACEOF
drh8b727472009-01-19 18:18:40 +00003079for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003081do
3082 CC="$ac_save_CC $ac_arg"
drh710658c2012-01-16 13:00:05 +00003083 rm -f conftest.$ac_objext
3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3090$as_echo "$ac_try_echo") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00003101 ac_cv_prog_cc_c89=$ac_arg
drh710658c2012-01-16 13:00:05 +00003102else
3103 $as_echo "$as_me: failed program was:" >&5
3104sed 's/^/| /' conftest.$ac_ext >&5
3105
3106
a.rottmann84e63352003-03-24 09:42:16 +00003107fi
drh710658c2012-01-16 13:00:05 +00003108
drh8b727472009-01-19 18:18:40 +00003109rm -f core conftest.err conftest.$ac_objext
3110 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003111done
drh8b727472009-01-19 18:18:40 +00003112rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003113CC=$ac_save_CC
3114
3115fi
drh8b727472009-01-19 18:18:40 +00003116# AC_CACHE_VAL
3117case "x$ac_cv_prog_cc_c89" in
3118 x)
drh710658c2012-01-16 13:00:05 +00003119 { $as_echo "$as_me:$LINENO: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003120$as_echo "none needed" >&6; } ;;
3121 xno)
drh710658c2012-01-16 13:00:05 +00003122 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003123$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003124 *)
drh8b727472009-01-19 18:18:40 +00003125 CC="$CC $ac_cv_prog_cc_c89"
drh710658c2012-01-16 13:00:05 +00003126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003127$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003128esac
3129
a.rottmann84e63352003-03-24 09:42:16 +00003130
drh71eb93e2001-09-28 01:34:43 +00003131ac_ext=c
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
drh710658c2012-01-16 13:00:05 +00003137{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003138$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drh710658c2012-01-16 13:00:05 +00003139if test "${ac_cv_path_SED+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003140 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003141else
drh8b727472009-01-19 18:18:40 +00003142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3143 for ac_i in 1 2 3 4 5 6 7; do
3144 ac_script="$ac_script$as_nl$ac_script"
3145 done
3146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drh710658c2012-01-16 13:00:05 +00003147 $as_unset ac_script || ac_script=
drh8b727472009-01-19 18:18:40 +00003148 if test -z "$SED"; then
3149 ac_path_SED_found=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003152for as_dir in $PATH
3153do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003156 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003157 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3160# Check for GNU ac_path_SED and select it if it is found.
3161 # Check for GNU $ac_path_SED
3162case `"$ac_path_SED" --version 2>&1` in
3163*GNU*)
3164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3165*)
3166 ac_count=0
3167 $as_echo_n 0123456789 >"conftest.in"
3168 while :
3169 do
3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
3171 mv "conftest.tmp" "conftest.in"
3172 cp "conftest.in" "conftest.nl"
3173 $as_echo '' >> "conftest.nl"
3174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003176 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003177 if test $ac_count -gt ${ac_path_SED_max-0}; then
3178 # Best one so far, save it but keep looking for a better one
3179 ac_cv_path_SED="$ac_path_SED"
3180 ac_path_SED_max=$ac_count
3181 fi
3182 # 10*(2^10) chars as input seems more than enough
3183 test $ac_count -gt 10 && break
3184 done
3185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3186esac
3187
3188 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003189 done
3190 done
drh710658c2012-01-16 13:00:05 +00003191done
mlcreech636a9952008-05-05 22:52:56 +00003192IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003193 if test -z "$ac_cv_path_SED"; then
drh710658c2012-01-16 13:00:05 +00003194 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3195$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3196 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003197 fi
drh8b727472009-01-19 18:18:40 +00003198else
3199 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003200fi
drh866108f2008-05-13 00:57:21 +00003201
drh8b727472009-01-19 18:18:40 +00003202fi
drh710658c2012-01-16 13:00:05 +00003203{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003204$as_echo "$ac_cv_path_SED" >&6; }
3205 SED="$ac_cv_path_SED"
3206 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003207
mlcreech636a9952008-05-05 22:52:56 +00003208test -z "$SED" && SED=sed
3209Xsed="$SED -e 1s/^X//"
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
drh710658c2012-01-16 13:00:05 +00003221{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003222$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drh710658c2012-01-16 13:00:05 +00003223if test "${ac_cv_path_GREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003224 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003225else
drh8b727472009-01-19 18:18:40 +00003226 if test -z "$GREP"; then
3227 ac_path_GREP_found=false
3228 # Loop through the user's path and test for each of PROGNAME-LIST
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003234 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3237 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3238# Check for GNU ac_path_GREP and select it if it is found.
3239 # Check for GNU $ac_path_GREP
3240case `"$ac_path_GREP" --version 2>&1` in
3241*GNU*)
3242 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3243*)
3244 ac_count=0
3245 $as_echo_n 0123456789 >"conftest.in"
3246 while :
3247 do
3248 cat "conftest.in" "conftest.in" >"conftest.tmp"
3249 mv "conftest.tmp" "conftest.in"
3250 cp "conftest.in" "conftest.nl"
3251 $as_echo 'GREP' >> "conftest.nl"
3252 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003254 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003255 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3256 # Best one so far, save it but keep looking for a better one
3257 ac_cv_path_GREP="$ac_path_GREP"
3258 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003259 fi
drh8b727472009-01-19 18:18:40 +00003260 # 10*(2^10) chars as input seems more than enough
3261 test $ac_count -gt 10 && break
3262 done
3263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3264esac
3265
3266 $ac_path_GREP_found && break 3
3267 done
3268 done
drh710658c2012-01-16 13:00:05 +00003269done
drh8b727472009-01-19 18:18:40 +00003270IFS=$as_save_IFS
3271 if test -z "$ac_cv_path_GREP"; then
drh710658c2012-01-16 13:00:05 +00003272 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3273$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3274 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003275 fi
3276else
3277 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003278fi
drh8b727472009-01-19 18:18:40 +00003279
3280fi
drh710658c2012-01-16 13:00:05 +00003281{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003282$as_echo "$ac_cv_path_GREP" >&6; }
3283 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003284
3285
drh710658c2012-01-16 13:00:05 +00003286{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003287$as_echo_n "checking for egrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003288if test "${ac_cv_path_EGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003289 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003290else
drh8b727472009-01-19 18:18:40 +00003291 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3292 then ac_cv_path_EGREP="$GREP -E"
3293 else
3294 if test -z "$EGREP"; then
3295 ac_path_EGREP_found=false
3296 # Loop through the user's path and test for each of PROGNAME-LIST
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003302 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3305 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3306# Check for GNU ac_path_EGREP and select it if it is found.
3307 # Check for GNU $ac_path_EGREP
3308case `"$ac_path_EGREP" --version 2>&1` in
3309*GNU*)
3310 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3311*)
3312 ac_count=0
3313 $as_echo_n 0123456789 >"conftest.in"
3314 while :
3315 do
3316 cat "conftest.in" "conftest.in" >"conftest.tmp"
3317 mv "conftest.tmp" "conftest.in"
3318 cp "conftest.in" "conftest.nl"
3319 $as_echo 'EGREP' >> "conftest.nl"
3320 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003322 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003323 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3324 # Best one so far, save it but keep looking for a better one
3325 ac_cv_path_EGREP="$ac_path_EGREP"
3326 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003327 fi
drh8b727472009-01-19 18:18:40 +00003328 # 10*(2^10) chars as input seems more than enough
3329 test $ac_count -gt 10 && break
3330 done
3331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3332esac
3333
3334 $ac_path_EGREP_found && break 3
3335 done
3336 done
drh710658c2012-01-16 13:00:05 +00003337done
drh8b727472009-01-19 18:18:40 +00003338IFS=$as_save_IFS
3339 if test -z "$ac_cv_path_EGREP"; then
drh710658c2012-01-16 13:00:05 +00003340 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3341$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3342 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003343 fi
3344else
3345 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003346fi
drh8b727472009-01-19 18:18:40 +00003347
3348 fi
3349fi
drh710658c2012-01-16 13:00:05 +00003350{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003351$as_echo "$ac_cv_path_EGREP" >&6; }
3352 EGREP="$ac_cv_path_EGREP"
3353
3354
drh710658c2012-01-16 13:00:05 +00003355{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003356$as_echo_n "checking for fgrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003357if test "${ac_cv_path_FGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003358 $as_echo_n "(cached) " >&6
3359else
3360 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3361 then ac_cv_path_FGREP="$GREP -F"
3362 else
3363 if test -z "$FGREP"; then
3364 ac_path_FGREP_found=false
3365 # Loop through the user's path and test for each of PROGNAME-LIST
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003371 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3374 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3375# Check for GNU ac_path_FGREP and select it if it is found.
3376 # Check for GNU $ac_path_FGREP
3377case `"$ac_path_FGREP" --version 2>&1` in
3378*GNU*)
3379 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3380*)
3381 ac_count=0
3382 $as_echo_n 0123456789 >"conftest.in"
3383 while :
3384 do
3385 cat "conftest.in" "conftest.in" >"conftest.tmp"
3386 mv "conftest.tmp" "conftest.in"
3387 cp "conftest.in" "conftest.nl"
3388 $as_echo 'FGREP' >> "conftest.nl"
3389 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003391 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003392 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3393 # Best one so far, save it but keep looking for a better one
3394 ac_cv_path_FGREP="$ac_path_FGREP"
3395 ac_path_FGREP_max=$ac_count
3396 fi
3397 # 10*(2^10) chars as input seems more than enough
3398 test $ac_count -gt 10 && break
3399 done
3400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3401esac
3402
3403 $ac_path_FGREP_found && break 3
3404 done
3405 done
drh710658c2012-01-16 13:00:05 +00003406done
drh8b727472009-01-19 18:18:40 +00003407IFS=$as_save_IFS
3408 if test -z "$ac_cv_path_FGREP"; then
drh710658c2012-01-16 13:00:05 +00003409 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3410$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3411 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003412 fi
3413else
3414 ac_cv_path_FGREP=$FGREP
3415fi
3416
3417 fi
3418fi
drh710658c2012-01-16 13:00:05 +00003419{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003420$as_echo "$ac_cv_path_FGREP" >&6; }
3421 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003422
3423
3424test -z "$GREP" && GREP=grep
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
a.rottmann9bc8b932004-02-29 15:18:31 +00003441
3442
a.rottmann84e63352003-03-24 09:42:16 +00003443
drh8b727472009-01-19 18:18:40 +00003444# Check whether --with-gnu-ld was given.
drh710658c2012-01-16 13:00:05 +00003445if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003446 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003447else
3448 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003449fi
3450
drh71eb93e2001-09-28 01:34:43 +00003451ac_prog=ld
3452if test "$GCC" = yes; then
3453 # Check if gcc -print-prog-name=ld gives a path.
drh710658c2012-01-16 13:00:05 +00003454 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003455$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003456 case $host in
3457 *-*-mingw*)
3458 # gcc leaves a trailing carriage return which upsets mingw
3459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3460 *)
3461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3462 esac
3463 case $ac_prog in
3464 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003465 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003466 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003467 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003471 done
3472 test -z "$LD" && LD="$ac_prog"
3473 ;;
3474 "")
3475 # If it fails, then pretend we aren't using GCC.
3476 ac_prog=ld
3477 ;;
3478 *)
3479 # If it is relative, then search for the first ld in PATH.
3480 with_gnu_ld=unknown
3481 ;;
3482 esac
3483elif test "$with_gnu_ld" = yes; then
drh710658c2012-01-16 13:00:05 +00003484 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003485$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003486else
drh710658c2012-01-16 13:00:05 +00003487 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003488$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003489fi
drh710658c2012-01-16 13:00:05 +00003490if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003491 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003492else
3493 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003495 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003496 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003497 test -z "$ac_dir" && ac_dir=.
3498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3499 lt_cv_path_LD="$ac_dir/$ac_prog"
3500 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003501 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003502 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3504 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003505 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003506 ;;
3507 *)
drh71eb93e2001-09-28 01:34:43 +00003508 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003509 ;;
3510 esac
drh71eb93e2001-09-28 01:34:43 +00003511 fi
3512 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003513 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003514else
3515 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3516fi
3517fi
3518
3519LD="$lt_cv_path_LD"
3520if test -n "$LD"; then
drh710658c2012-01-16 13:00:05 +00003521 { $as_echo "$as_me:$LINENO: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003522$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003523else
drh710658c2012-01-16 13:00:05 +00003524 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003525$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003526fi
drh710658c2012-01-16 13:00:05 +00003527test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3528$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3529 { (exit 1); exit 1; }; }
3530{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh710658c2012-01-16 13:00:05 +00003532if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003533 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003534else
vapier7f19c022007-02-17 14:46:31 +00003535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003536case `$LD -v 2>&1 </dev/null` in
3537*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003538 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003539 ;;
3540*)
drh71eb93e2001-09-28 01:34:43 +00003541 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003542 ;;
3543esac
drh71eb93e2001-09-28 01:34:43 +00003544fi
drh710658c2012-01-16 13:00:05 +00003545{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003546$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003547with_gnu_ld=$lt_cv_prog_gnu_ld
3548
a.rottmann84e63352003-03-24 09:42:16 +00003549
drh71eb93e2001-09-28 01:34:43 +00003550
mlcreech636a9952008-05-05 22:52:56 +00003551
3552
3553
3554
3555
3556
drh710658c2012-01-16 13:00:05 +00003557{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003558$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh710658c2012-01-16 13:00:05 +00003559if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003560 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003561else
3562 if test -n "$NM"; then
3563 # Let the user override the test.
3564 lt_cv_path_NM="$NM"
3565else
vapier7f19c022007-02-17 14:46:31 +00003566 lt_nm_to_check="${ac_tool_prefix}nm"
3567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3568 lt_nm_to_check="$lt_nm_to_check nm"
3569 fi
3570 for lt_tmp_nm in $lt_nm_to_check; do
3571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3573 IFS="$lt_save_ifs"
3574 test -z "$ac_dir" && ac_dir=.
3575 tmp_nm="$ac_dir/$lt_tmp_nm"
3576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3577 # Check to see if the nm accepts a BSD-compat flag.
3578 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3579 # nm: unknown option "B" ignored
3580 # Tru64's nm complains that /dev/null is an invalid object file
3581 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3582 */dev/null* | *'Invalid file or object type'*)
3583 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003584 break
3585 ;;
3586 *)
vapier7f19c022007-02-17 14:46:31 +00003587 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3588 */dev/null*)
3589 lt_cv_path_NM="$tmp_nm -p"
3590 break
3591 ;;
3592 *)
3593 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3594 continue # so that we can try to find one that supports BSD flags
3595 ;;
3596 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003597 ;;
3598 esac
vapier7f19c022007-02-17 14:46:31 +00003599 fi
3600 done
3601 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003602 done
mlcreech636a9952008-05-05 22:52:56 +00003603 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003604fi
3605fi
drh710658c2012-01-16 13:00:05 +00003606{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003607$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003608if test "$lt_cv_path_NM" != "no"; then
3609 NM="$lt_cv_path_NM"
3610else
3611 # Didn't find any BSD compatible name lister, look for dumpbin.
3612 if test -n "$ac_tool_prefix"; then
3613 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3614 do
3615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003618$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003619if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003620 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003621else
3622 if test -n "$DUMPBIN"; then
3623 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3624else
3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH
3627do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003630 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003631 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 +00003632 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00003633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003634 break 2
3635 fi
3636done
drh710658c2012-01-16 13:00:05 +00003637done
drh8b727472009-01-19 18:18:40 +00003638IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003639
mlcreech636a9952008-05-05 22:52:56 +00003640fi
3641fi
3642DUMPBIN=$ac_cv_prog_DUMPBIN
3643if test -n "$DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003644 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003645$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003646else
drh710658c2012-01-16 13:00:05 +00003647 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003648$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003649fi
3650
drh8b727472009-01-19 18:18:40 +00003651
mlcreech636a9952008-05-05 22:52:56 +00003652 test -n "$DUMPBIN" && break
3653 done
3654fi
3655if test -z "$DUMPBIN"; then
3656 ac_ct_DUMPBIN=$DUMPBIN
3657 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3658do
3659 # Extract the first word of "$ac_prog", so it can be a program name with args.
3660set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003662$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003663if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003664 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003665else
3666 if test -n "$ac_ct_DUMPBIN"; then
3667 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3668else
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003674 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003675 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 +00003676 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh710658c2012-01-16 13:00:05 +00003677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003678 break 2
3679 fi
3680done
drh710658c2012-01-16 13:00:05 +00003681done
drh8b727472009-01-19 18:18:40 +00003682IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003683
3684fi
3685fi
3686ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3687if test -n "$ac_ct_DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003688 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003689$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003690else
drh710658c2012-01-16 13:00:05 +00003691 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003692$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003693fi
3694
drh8b727472009-01-19 18:18:40 +00003695
mlcreech636a9952008-05-05 22:52:56 +00003696 test -n "$ac_ct_DUMPBIN" && break
3697done
3698
drh8b727472009-01-19 18:18:40 +00003699 if test "x$ac_ct_DUMPBIN" = x; then
3700 DUMPBIN=":"
3701 else
3702 case $cross_compiling:$ac_tool_warned in
3703yes:)
drh710658c2012-01-16 13:00:05 +00003704{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3705whose name does not start with the host triplet. If you think this
3706configuration is useful to you, please write to autoconf@gnu.org." >&5
3707$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3708whose name does not start with the host triplet. If you think this
3709configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003710ac_tool_warned=yes ;;
3711esac
3712 DUMPBIN=$ac_ct_DUMPBIN
3713 fi
mlcreech636a9952008-05-05 22:52:56 +00003714fi
3715
3716
3717 if test "$DUMPBIN" != ":"; then
3718 NM="$DUMPBIN"
3719 fi
3720fi
3721test -z "$NM" && NM=nm
3722
3723
3724
3725
3726
3727
drh710658c2012-01-16 13:00:05 +00003728{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003729$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drh710658c2012-01-16 13:00:05 +00003730if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003731 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003732else
3733 lt_cv_nm_interface="BSD nm"
3734 echo "int some_variable = 0;" > conftest.$ac_ext
drhe4f9b9b2013-08-28 18:18:12 +00003735 (eval echo "\"\$as_me:3735: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003736 (eval "$ac_compile" 2>conftest.err)
3737 cat conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00003738 (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3740 cat conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00003741 (eval echo "\"\$as_me:3741: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003742 cat conftest.out >&5
3743 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3744 lt_cv_nm_interface="MS dumpbin"
3745 fi
3746 rm -f conftest*
3747fi
drh710658c2012-01-16 13:00:05 +00003748{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003749$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003750
drh710658c2012-01-16 13:00:05 +00003751{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003752$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003753LN_S=$as_ln_s
3754if test "$LN_S" = "ln -s"; then
drh710658c2012-01-16 13:00:05 +00003755 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003756$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003757else
drh710658c2012-01-16 13:00:05 +00003758 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003759$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003760fi
3761
mlcreech636a9952008-05-05 22:52:56 +00003762# find the maximum length of command line arguments
drh710658c2012-01-16 13:00:05 +00003763{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003764$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drh710658c2012-01-16 13:00:05 +00003765if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003766 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003767else
3768 i=0
3769 teststring="ABCD"
3770
3771 case $build_os in
3772 msdosdjgpp*)
3773 # On DJGPP, this test can blow up pretty badly due to problems in libc
3774 # (any single argument exceeding 2000 bytes causes a buffer overrun
3775 # during glob expansion). Even if it were fixed, the result of this
3776 # check would be larger than it should be.
3777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3778 ;;
3779
3780 gnu*)
3781 # Under GNU Hurd, this test is not required because there is
3782 # no limit to the length of command line arguments.
3783 # Libtool will interpret -1 as no limit whatsoever
3784 lt_cv_sys_max_cmd_len=-1;
3785 ;;
3786
vapier6acb2cf2009-01-28 04:46:28 +00003787 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003788 # On Win9x/ME, this test blows up -- it succeeds, but takes
3789 # about 5 minutes as the teststring grows exponentially.
3790 # Worse, since 9x/ME are not pre-emptively multitasking,
3791 # you end up with a "frozen" computer, even though with patience
3792 # the test eventually succeeds (with a max line length of 256k).
3793 # Instead, let's just punt: use the minimum linelength reported by
3794 # all of the supported platforms: 8192 (on NT/2K/XP).
3795 lt_cv_sys_max_cmd_len=8192;
3796 ;;
3797
3798 amigaos*)
3799 # On AmigaOS with pdksh, this test takes hours, literally.
3800 # So we just punt and use a minimum line length of 8192.
3801 lt_cv_sys_max_cmd_len=8192;
3802 ;;
3803
3804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3805 # This has been around since 386BSD, at least. Likely further.
3806 if test -x /sbin/sysctl; then
3807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3808 elif test -x /usr/sbin/sysctl; then
3809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3810 else
3811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3812 fi
3813 # And add a safety zone
3814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3816 ;;
3817
3818 interix*)
3819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3820 lt_cv_sys_max_cmd_len=196608
3821 ;;
3822
3823 osf*)
3824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3826 # nice to cause kernel panics so lets avoid the loop below.
3827 # First set a reasonable default.
3828 lt_cv_sys_max_cmd_len=16384
3829 #
3830 if test -x /sbin/sysconfig; then
3831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3833 esac
3834 fi
3835 ;;
3836 sco3.2v5*)
3837 lt_cv_sys_max_cmd_len=102400
3838 ;;
3839 sysv5* | sco5v6* | sysv4.2uw2*)
3840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3841 if test -n "$kargmax"; then
3842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3843 else
3844 lt_cv_sys_max_cmd_len=32768
3845 fi
3846 ;;
3847 *)
3848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3849 if test -n "$lt_cv_sys_max_cmd_len"; then
3850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3852 else
3853 # Make teststring a little bigger before we do anything with it.
3854 # a 1K string should be a reasonable start.
3855 for i in 1 2 3 4 5 6 7 8 ; do
3856 teststring=$teststring$teststring
3857 done
3858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3859 # If test is not a shell built-in, we'll probably end up computing a
3860 # maximum length that is only half of the actual maximum length, but
3861 # we can't tell.
3862 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3863 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3864 test $i != 17 # 1/2 MB should be enough
3865 do
3866 i=`expr $i + 1`
3867 teststring=$teststring$teststring
3868 done
3869 # Only check the string length outside the loop.
3870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3871 teststring=
3872 # Add a significant safety factor because C++ compilers can tack on
3873 # massive amounts of additional arguments before passing them to the
3874 # linker. It appears as though 1/2 is a usable value.
3875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3876 fi
3877 ;;
3878 esac
3879
3880fi
3881
3882if test -n $lt_cv_sys_max_cmd_len ; then
drh710658c2012-01-16 13:00:05 +00003883 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00003884$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003885else
drh710658c2012-01-16 13:00:05 +00003886 { $as_echo "$as_me:$LINENO: result: none" >&5
drh8b727472009-01-19 18:18:40 +00003887$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003888fi
3889max_cmd_len=$lt_cv_sys_max_cmd_len
3890
3891
3892
3893
3894
3895
3896: ${CP="cp -f"}
3897: ${MV="mv -f"}
3898: ${RM="rm -f"}
3899
drh710658c2012-01-16 13:00:05 +00003900{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00003901$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003902# Try some XSI features
3903xsi_shell=no
3904( _lt_dummy="a/b/c"
3905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3906 = c,a/b,, \
3907 && eval 'test $(( 1 + 1 )) -eq 2 \
3908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3909 && xsi_shell=yes
drh710658c2012-01-16 13:00:05 +00003910{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00003911$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003912
3913
drh710658c2012-01-16 13:00:05 +00003914{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00003915$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003916lt_shell_append=no
3917( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3918 >/dev/null 2>&1 \
3919 && lt_shell_append=yes
drh710658c2012-01-16 13:00:05 +00003920{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00003921$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003922
3923
3924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3925 lt_unset=unset
3926else
3927 lt_unset=false
3928fi
3929
3930
3931
3932
3933
3934# test EBCDIC or ASCII
3935case `echo X|tr X '\101'` in
3936 A) # ASCII based system
3937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3938 lt_SP2NL='tr \040 \012'
3939 lt_NL2SP='tr \015\012 \040\040'
3940 ;;
3941 *) # EBCDIC based system
3942 lt_SP2NL='tr \100 \n'
3943 lt_NL2SP='tr \r\n \100\100'
3944 ;;
3945esac
3946
3947
3948
3949
3950
3951
3952
3953
3954
drh710658c2012-01-16 13:00:05 +00003955{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo_n "checking for $LD option to reload object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00003957if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003958 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003959else
3960 lt_cv_ld_reload_flag='-r'
3961fi
drh710658c2012-01-16 13:00:05 +00003962{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00003963$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003964reload_flag=$lt_cv_ld_reload_flag
3965case $reload_flag in
3966"" | " "*) ;;
3967*) reload_flag=" $reload_flag" ;;
3968esac
3969reload_cmds='$LD$reload_flag -o $output$reload_objs'
3970case $host_os in
3971 darwin*)
3972 if test "$GCC" = yes; then
3973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3974 else
3975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976 fi
3977 ;;
3978esac
3979
3980
3981
3982
3983
3984
3985
3986
3987
vapier6acb2cf2009-01-28 04:46:28 +00003988if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3990set dummy ${ac_tool_prefix}objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00003992$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003993if test "${ac_cv_prog_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00003994 $as_echo_n "(cached) " >&6
3995else
3996 if test -n "$OBJDUMP"; then
3997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3998else
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004004 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drh710658c2012-01-16 13:00:05 +00004007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004008 break 2
4009 fi
4010done
drh710658c2012-01-16 13:00:05 +00004011done
vapier6acb2cf2009-01-28 04:46:28 +00004012IFS=$as_save_IFS
4013
4014fi
4015fi
4016OBJDUMP=$ac_cv_prog_OBJDUMP
4017if test -n "$OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004018 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004019$as_echo "$OBJDUMP" >&6; }
4020else
drh710658c2012-01-16 13:00:05 +00004021 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004022$as_echo "no" >&6; }
4023fi
4024
4025
4026fi
4027if test -z "$ac_cv_prog_OBJDUMP"; then
4028 ac_ct_OBJDUMP=$OBJDUMP
4029 # Extract the first word of "objdump", so it can be a program name with args.
4030set dummy objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004032$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004033if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00004034 $as_echo_n "(cached) " >&6
4035else
4036 if test -n "$ac_ct_OBJDUMP"; then
4037 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4038else
4039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004044 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drh710658c2012-01-16 13:00:05 +00004047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004048 break 2
4049 fi
4050done
drh710658c2012-01-16 13:00:05 +00004051done
vapier6acb2cf2009-01-28 04:46:28 +00004052IFS=$as_save_IFS
4053
4054fi
4055fi
4056ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4057if test -n "$ac_ct_OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004058 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004059$as_echo "$ac_ct_OBJDUMP" >&6; }
4060else
drh710658c2012-01-16 13:00:05 +00004061 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004062$as_echo "no" >&6; }
4063fi
4064
4065 if test "x$ac_ct_OBJDUMP" = x; then
4066 OBJDUMP="false"
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069yes:)
drh710658c2012-01-16 13:00:05 +00004070{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4071whose name does not start with the host triplet. If you think this
4072configuration is useful to you, please write to autoconf@gnu.org." >&5
4073$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4074whose name does not start with the host triplet. If you think this
4075configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004076ac_tool_warned=yes ;;
4077esac
4078 OBJDUMP=$ac_ct_OBJDUMP
4079 fi
4080else
4081 OBJDUMP="$ac_cv_prog_OBJDUMP"
4082fi
4083
4084test -z "$OBJDUMP" && OBJDUMP=objdump
4085
4086
4087
4088
4089
4090
4091
4092
mlcreech636a9952008-05-05 22:52:56 +00004093
drh710658c2012-01-16 13:00:05 +00004094{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004095$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +00004096if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004097 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004098else
4099 lt_cv_file_magic_cmd='$MAGIC_CMD'
4100lt_cv_file_magic_test_file=
4101lt_cv_deplibs_check_method='unknown'
4102# Need to set the preceding variable on all platforms that support
4103# interlibrary dependencies.
4104# 'none' -- dependencies not supported.
4105# `unknown' -- same as none, but documents that we really don't know.
4106# 'pass_all' -- all dependencies passed with no checks.
4107# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004108# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004109# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004110# If you have `file' or equivalent on your system and you're not sure
4111# whether `pass_all' will *always* work, you probably want this one.
4112
4113case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004114aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004115 lt_cv_deplibs_check_method=pass_all
4116 ;;
4117
4118beos*)
4119 lt_cv_deplibs_check_method=pass_all
4120 ;;
4121
vapier7f19c022007-02-17 14:46:31 +00004122bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4124 lt_cv_file_magic_cmd='/usr/bin/file -L'
4125 lt_cv_file_magic_test_file=/shlib/libc.so
4126 ;;
4127
a.rottmann9bc8b932004-02-29 15:18:31 +00004128cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004129 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004130 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004131 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004132 ;;
4133
4134mingw* | pw32*)
4135 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004136 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4137 # unless we find 'file', for example because we are cross-compiling.
4138 if ( file / ) >/dev/null 2>&1; then
4139 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4140 lt_cv_file_magic_cmd='func_win32_libid'
4141 else
4142 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4143 lt_cv_file_magic_cmd='$OBJDUMP -f'
4144 fi
drh71eb93e2001-09-28 01:34:43 +00004145 ;;
4146
vapier6acb2cf2009-01-28 04:46:28 +00004147cegcc)
4148 # use the weaker test based on 'objdump'. See mingw*.
4149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4150 lt_cv_file_magic_cmd='$OBJDUMP -f'
4151 ;;
4152
drh71eb93e2001-09-28 01:34:43 +00004153darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004154 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004155 ;;
4156
mlcreech636a9952008-05-05 22:52:56 +00004157freebsd* | dragonfly*)
4158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004159 case $host_cpu in
4160 i*86 )
4161 # Not sure whether the presence of OpenBSD here was a mistake.
4162 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004163 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 +00004164 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4166 ;;
4167 esac
4168 else
4169 lt_cv_deplibs_check_method=pass_all
4170 fi
4171 ;;
4172
4173gnu*)
4174 lt_cv_deplibs_check_method=pass_all
4175 ;;
4176
a.rottmann9bc8b932004-02-29 15:18:31 +00004177hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004178 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004179 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004180 ia64*)
4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4183 ;;
4184 hppa*64*)
4185 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]'
4186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4187 ;;
4188 *)
4189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4191 ;;
4192 esac
drh71eb93e2001-09-28 01:34:43 +00004193 ;;
4194
mlcreech636a9952008-05-05 22:52:56 +00004195interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4198 ;;
4199
a.rottmann84e63352003-03-24 09:42:16 +00004200irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004201 case $LD in
4202 *-32|*"-32 ") libmagic=32-bit;;
4203 *-n32|*"-n32 ") libmagic=N32;;
4204 *-64|*"-64 ") libmagic=64-bit;;
4205 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004206 esac
drh71eb93e2001-09-28 01:34:43 +00004207 lt_cv_deplibs_check_method=pass_all
4208 ;;
4209
4210# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004211linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004212 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004213 ;;
4214
vapier7f19c022007-02-17 14:46:31 +00004215netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004218 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004220 fi
4221 ;;
4222
4223newos6*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4225 lt_cv_file_magic_cmd=/usr/bin/file
4226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4227 ;;
4228
mlcreech636a9952008-05-05 22:52:56 +00004229*nto* | *qnx*)
4230 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004231 ;;
4232
a.rottmann84e63352003-03-24 09:42:16 +00004233openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004236 else
vapier7f19c022007-02-17 14:46:31 +00004237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004238 fi
drh71eb93e2001-09-28 01:34:43 +00004239 ;;
4240
4241osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004242 lt_cv_deplibs_check_method=pass_all
4243 ;;
4244
mlcreech636a9952008-05-05 22:52:56 +00004245rdos*)
4246 lt_cv_deplibs_check_method=pass_all
4247 ;;
4248
drh71eb93e2001-09-28 01:34:43 +00004249solaris*)
4250 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004251 ;;
4252
mlcreech636a9952008-05-05 22:52:56 +00004253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4254 lt_cv_deplibs_check_method=pass_all
4255 ;;
4256
vapier7f19c022007-02-17 14:46:31 +00004257sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004258 case $host_vendor in
4259 motorola)
4260 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]'
4261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4262 ;;
4263 ncr)
4264 lt_cv_deplibs_check_method=pass_all
4265 ;;
4266 sequent)
4267 lt_cv_file_magic_cmd='/bin/file'
4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4269 ;;
4270 sni)
4271 lt_cv_file_magic_cmd='/bin/file'
4272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4273 lt_cv_file_magic_test_file=/lib/libc.so
4274 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004275 siemens)
4276 lt_cv_deplibs_check_method=pass_all
4277 ;;
vapier7f19c022007-02-17 14:46:31 +00004278 pc)
4279 lt_cv_deplibs_check_method=pass_all
4280 ;;
drh71eb93e2001-09-28 01:34:43 +00004281 esac
4282 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004283
mlcreech636a9952008-05-05 22:52:56 +00004284tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004285 lt_cv_deplibs_check_method=pass_all
4286 ;;
drh71eb93e2001-09-28 01:34:43 +00004287esac
4288
4289fi
drh710658c2012-01-16 13:00:05 +00004290{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004291$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004292file_magic_cmd=$lt_cv_file_magic_cmd
4293deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004294test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004295
drh71eb93e2001-09-28 01:34:43 +00004296
drh71eb93e2001-09-28 01:34:43 +00004297
drh71eb93e2001-09-28 01:34:43 +00004298
mlcreech636a9952008-05-05 22:52:56 +00004299
4300
4301
4302
4303
4304
4305
4306
4307if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4309set dummy ${ac_tool_prefix}ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004310{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004311$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004312if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004313 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004314else
4315 if test -n "$AR"; then
4316 ac_cv_prog_AR="$AR" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004323 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004324 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 +00004325 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh710658c2012-01-16 13:00:05 +00004326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004327 break 2
4328 fi
4329done
drh710658c2012-01-16 13:00:05 +00004330done
drh8b727472009-01-19 18:18:40 +00004331IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004332
4333fi
4334fi
4335AR=$ac_cv_prog_AR
4336if test -n "$AR"; then
drh710658c2012-01-16 13:00:05 +00004337 { $as_echo "$as_me:$LINENO: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004338$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004339else
drh710658c2012-01-16 13:00:05 +00004340 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004341$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004342fi
4343
drh8b727472009-01-19 18:18:40 +00004344
mlcreech636a9952008-05-05 22:52:56 +00004345fi
4346if test -z "$ac_cv_prog_AR"; then
4347 ac_ct_AR=$AR
4348 # Extract the first word of "ar", so it can be a program name with args.
4349set dummy ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004350{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004351$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004352if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004353 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004354else
4355 if test -n "$ac_ct_AR"; then
4356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4357else
4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004363 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004364 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 +00004365 ac_cv_prog_ac_ct_AR="ar"
drh710658c2012-01-16 13:00:05 +00004366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004367 break 2
4368 fi
4369done
drh710658c2012-01-16 13:00:05 +00004370done
drh8b727472009-01-19 18:18:40 +00004371IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004372
4373fi
4374fi
4375ac_ct_AR=$ac_cv_prog_ac_ct_AR
4376if test -n "$ac_ct_AR"; then
drh710658c2012-01-16 13:00:05 +00004377 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004378$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004379else
drh710658c2012-01-16 13:00:05 +00004380 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004381$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004382fi
4383
drh8b727472009-01-19 18:18:40 +00004384 if test "x$ac_ct_AR" = x; then
4385 AR="false"
4386 else
4387 case $cross_compiling:$ac_tool_warned in
4388yes:)
drh710658c2012-01-16 13:00:05 +00004389{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4390whose name does not start with the host triplet. If you think this
4391configuration is useful to you, please write to autoconf@gnu.org." >&5
4392$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4393whose name does not start with the host triplet. If you think this
4394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004395ac_tool_warned=yes ;;
4396esac
4397 AR=$ac_ct_AR
4398 fi
mlcreech636a9952008-05-05 22:52:56 +00004399else
4400 AR="$ac_cv_prog_AR"
4401fi
4402
4403test -z "$AR" && AR=ar
4404test -z "$AR_FLAGS" && AR_FLAGS=cru
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4418set dummy ${ac_tool_prefix}strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004420$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004421if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004422 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004423else
4424 if test -n "$STRIP"; then
4425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4426else
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004432 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004433 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 +00004434 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh710658c2012-01-16 13:00:05 +00004435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004436 break 2
4437 fi
4438done
drh710658c2012-01-16 13:00:05 +00004439done
drh8b727472009-01-19 18:18:40 +00004440IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004441
4442fi
4443fi
4444STRIP=$ac_cv_prog_STRIP
4445if test -n "$STRIP"; then
drh710658c2012-01-16 13:00:05 +00004446 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004447$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004448else
drh710658c2012-01-16 13:00:05 +00004449 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004450$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004451fi
4452
drh8b727472009-01-19 18:18:40 +00004453
mlcreech636a9952008-05-05 22:52:56 +00004454fi
4455if test -z "$ac_cv_prog_STRIP"; then
4456 ac_ct_STRIP=$STRIP
4457 # Extract the first word of "strip", so it can be a program name with args.
4458set dummy strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004460$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004461if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004462 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004463else
4464 if test -n "$ac_ct_STRIP"; then
4465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004472 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004473 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 +00004474 ac_cv_prog_ac_ct_STRIP="strip"
drh710658c2012-01-16 13:00:05 +00004475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004476 break 2
4477 fi
4478done
drh710658c2012-01-16 13:00:05 +00004479done
drh8b727472009-01-19 18:18:40 +00004480IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004481
4482fi
4483fi
4484ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4485if test -n "$ac_ct_STRIP"; then
drh710658c2012-01-16 13:00:05 +00004486 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004487$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004488else
drh710658c2012-01-16 13:00:05 +00004489 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004490$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004491fi
4492
drh8b727472009-01-19 18:18:40 +00004493 if test "x$ac_ct_STRIP" = x; then
4494 STRIP=":"
4495 else
4496 case $cross_compiling:$ac_tool_warned in
4497yes:)
drh710658c2012-01-16 13:00:05 +00004498{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4499whose name does not start with the host triplet. If you think this
4500configuration is useful to you, please write to autoconf@gnu.org." >&5
4501$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4502whose name does not start with the host triplet. If you think this
4503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004504ac_tool_warned=yes ;;
4505esac
4506 STRIP=$ac_ct_STRIP
4507 fi
mlcreech636a9952008-05-05 22:52:56 +00004508else
4509 STRIP="$ac_cv_prog_STRIP"
4510fi
4511
4512test -z "$STRIP" && STRIP=:
4513
4514
4515
4516
4517
4518
4519if test -n "$ac_tool_prefix"; then
4520 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4521set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004523$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004524if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004525 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004526else
4527 if test -n "$RANLIB"; then
4528 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4529else
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004535 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004536 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 +00004537 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh710658c2012-01-16 13:00:05 +00004538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004539 break 2
4540 fi
4541done
drh710658c2012-01-16 13:00:05 +00004542done
drh8b727472009-01-19 18:18:40 +00004543IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004544
4545fi
4546fi
4547RANLIB=$ac_cv_prog_RANLIB
4548if test -n "$RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004549 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004550$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004551else
drh710658c2012-01-16 13:00:05 +00004552 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004553$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004554fi
4555
drh8b727472009-01-19 18:18:40 +00004556
mlcreech636a9952008-05-05 22:52:56 +00004557fi
4558if test -z "$ac_cv_prog_RANLIB"; then
4559 ac_ct_RANLIB=$RANLIB
4560 # Extract the first word of "ranlib", so it can be a program name with args.
4561set dummy ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004563$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004564if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004565 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004566else
4567 if test -n "$ac_ct_RANLIB"; then
4568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4569else
4570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571for as_dir in $PATH
4572do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004575 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004576 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 +00004577 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh710658c2012-01-16 13:00:05 +00004578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004579 break 2
4580 fi
4581done
drh710658c2012-01-16 13:00:05 +00004582done
drh8b727472009-01-19 18:18:40 +00004583IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004584
4585fi
4586fi
4587ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4588if test -n "$ac_ct_RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004589 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004590$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004591else
drh710658c2012-01-16 13:00:05 +00004592 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004593$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004594fi
4595
drh8b727472009-01-19 18:18:40 +00004596 if test "x$ac_ct_RANLIB" = x; then
4597 RANLIB=":"
4598 else
4599 case $cross_compiling:$ac_tool_warned in
4600yes:)
drh710658c2012-01-16 13:00:05 +00004601{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4602whose name does not start with the host triplet. If you think this
4603configuration is useful to you, please write to autoconf@gnu.org." >&5
4604$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4605whose name does not start with the host triplet. If you think this
4606configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004607ac_tool_warned=yes ;;
4608esac
4609 RANLIB=$ac_ct_RANLIB
4610 fi
mlcreech636a9952008-05-05 22:52:56 +00004611else
4612 RANLIB="$ac_cv_prog_RANLIB"
4613fi
4614
4615test -z "$RANLIB" && RANLIB=:
4616
4617
4618
4619
4620
4621
4622# Determine commands to create old-style static archives.
4623old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4624old_postinstall_cmds='chmod 644 $oldlib'
4625old_postuninstall_cmds=
4626
4627if test -n "$RANLIB"; then
4628 case $host_os in
4629 openbsd*)
4630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4631 ;;
4632 *)
4633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4634 ;;
4635 esac
4636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4637fi
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
a.rottmann9bc8b932004-02-29 15:18:31 +00004672# If no C compiler was specified, use CC.
4673LTCC=${LTCC-"$CC"}
4674
vapier7f19c022007-02-17 14:46:31 +00004675# If no C compiler flags were specified, use CFLAGS.
4676LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4677
a.rottmann9bc8b932004-02-29 15:18:31 +00004678# Allow CC to be a program name with arguments.
4679compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004680
drh71eb93e2001-09-28 01:34:43 +00004681
mlcreech636a9952008-05-05 22:52:56 +00004682# Check for command to grab the raw symbol name followed by C symbol from nm.
drh710658c2012-01-16 13:00:05 +00004683{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004684$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drh710658c2012-01-16 13:00:05 +00004685if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004686 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004687else
4688
4689# These are sane defaults that work on at least a few old systems.
4690# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4691
4692# Character class describing NM global symbol codes.
4693symcode='[BCDEGRST]'
4694
4695# Regexp to match symbols that can be accessed directly from C.
4696sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4697
4698# Define system-specific variables.
4699case $host_os in
4700aix*)
4701 symcode='[BCDT]'
4702 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004703cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004704 symcode='[ABCDGISTW]'
4705 ;;
4706hpux*)
4707 if test "$host_cpu" = ia64; then
4708 symcode='[ABCDEGRST]'
4709 fi
4710 ;;
4711irix* | nonstopux*)
4712 symcode='[BCDEGRST]'
4713 ;;
4714osf*)
4715 symcode='[BCDEGQRST]'
4716 ;;
4717solaris*)
4718 symcode='[BDRT]'
4719 ;;
4720sco3.2v5*)
4721 symcode='[DT]'
4722 ;;
4723sysv4.2uw2*)
4724 symcode='[DT]'
4725 ;;
4726sysv5* | sco5v6* | unixware* | OpenUNIX*)
4727 symcode='[ABDT]'
4728 ;;
4729sysv4)
4730 symcode='[DFNSTU]'
4731 ;;
4732esac
4733
4734# If we're using GNU nm, then use its standard symbol codes.
4735case `$NM -V 2>&1` in
4736*GNU* | *'with BFD'*)
4737 symcode='[ABCDGIRSTW]' ;;
4738esac
4739
4740# Transform an extracted symbol line into a proper C declaration.
4741# Some systems (esp. on ia64) link data and code symbols differently,
4742# so use this general approach.
4743lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4744
4745# Transform an extracted symbol line into symbol name and symbol address
4746lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4747lt_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'"
4748
4749# Handle CRLF in mingw tool chain
4750opt_cr=
4751case $build_os in
4752mingw*)
4753 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4754 ;;
4755esac
4756
4757# Try without a prefix underscore, then with it.
4758for ac_symprfx in "" "_"; do
4759
4760 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4761 symxfrm="\\1 $ac_symprfx\\2 \\2"
4762
4763 # Write the raw and C identifiers.
4764 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4765 # Fake it for dumpbin and say T for any non-static function
4766 # and D for any global variable.
4767 # Also find C++ and __fastcall symbols from MSVC++,
4768 # which start with @ or ?.
4769 lt_cv_sys_global_symbol_pipe="$AWK '"\
4770" {last_section=section; section=\$ 3};"\
4771" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4772" \$ 0!~/External *\|/{next};"\
4773" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4774" {if(hide[section]) next};"\
4775" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4776" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4777" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4778" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4779" ' prfx=^$ac_symprfx"
4780 else
4781 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4782 fi
4783
4784 # Check to see that the pipe works correctly.
4785 pipe_works=no
4786
4787 rm -f conftest*
4788 cat > conftest.$ac_ext <<_LT_EOF
4789#ifdef __cplusplus
4790extern "C" {
4791#endif
4792char nm_test_var;
4793void nm_test_func(void);
4794void nm_test_func(void){}
4795#ifdef __cplusplus
4796}
4797#endif
4798int main(){nm_test_var='a';nm_test_func();return(0);}
4799_LT_EOF
4800
drh710658c2012-01-16 13:00:05 +00004801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004802 (eval $ac_compile) 2>&5
4803 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004806 # Now try to grab the symbols.
4807 nlist=conftest.nm
drh710658c2012-01-16 13:00:05 +00004808 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004809 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4810 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004813 # Try sorting and uniquifying the output.
4814 if sort "$nlist" | uniq > "$nlist"T; then
4815 mv -f "$nlist"T "$nlist"
4816 else
4817 rm -f "$nlist"T
4818 fi
4819
4820 # Make sure that we snagged all the symbols we need.
4821 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4822 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4823 cat <<_LT_EOF > conftest.$ac_ext
4824#ifdef __cplusplus
4825extern "C" {
4826#endif
4827
4828_LT_EOF
4829 # Now generate the symbol file.
4830 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4831
4832 cat <<_LT_EOF >> conftest.$ac_ext
4833
4834/* The mapping between symbol names and symbols. */
4835const struct {
4836 const char *name;
4837 void *address;
4838}
4839lt__PROGRAM__LTX_preloaded_symbols[] =
4840{
4841 { "@PROGRAM@", (void *) 0 },
4842_LT_EOF
4843 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4844 cat <<\_LT_EOF >> conftest.$ac_ext
4845 {0, (void *) 0}
4846};
4847
4848/* This works around a problem in FreeBSD linker */
4849#ifdef FREEBSD_WORKAROUND
4850static const void *lt_preloaded_setup() {
4851 return lt__PROGRAM__LTX_preloaded_symbols;
4852}
4853#endif
4854
4855#ifdef __cplusplus
4856}
4857#endif
4858_LT_EOF
4859 # Now try linking the two files.
4860 mv conftest.$ac_objext conftstm.$ac_objext
4861 lt_save_LIBS="$LIBS"
4862 lt_save_CFLAGS="$CFLAGS"
4863 LIBS="conftstm.$ac_objext"
4864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drh710658c2012-01-16 13:00:05 +00004865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004866 (eval $ac_link) 2>&5
4867 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00004870 pipe_works=yes
4871 fi
4872 LIBS="$lt_save_LIBS"
4873 CFLAGS="$lt_save_CFLAGS"
4874 else
4875 echo "cannot find nm_test_func in $nlist" >&5
4876 fi
4877 else
4878 echo "cannot find nm_test_var in $nlist" >&5
4879 fi
4880 else
4881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4882 fi
4883 else
4884 echo "$progname: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 fi
4887 rm -rf conftest* conftst*
4888
4889 # Do not use the global_symbol_pipe unless it works.
4890 if test "$pipe_works" = yes; then
4891 break
4892 else
4893 lt_cv_sys_global_symbol_pipe=
4894 fi
4895done
4896
4897fi
4898
4899if test -z "$lt_cv_sys_global_symbol_pipe"; then
4900 lt_cv_sys_global_symbol_to_cdecl=
4901fi
4902if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh710658c2012-01-16 13:00:05 +00004903 { $as_echo "$as_me:$LINENO: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00004904$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004905else
drh710658c2012-01-16 13:00:05 +00004906 { $as_echo "$as_me:$LINENO: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00004907$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004908fi
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
drh8b727472009-01-19 18:18:40 +00004932# Check whether --enable-libtool-lock was given.
drh710658c2012-01-16 13:00:05 +00004933if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004934 enableval=$enable_libtool_lock;
4935fi
drh71eb93e2001-09-28 01:34:43 +00004936
a.rottmann9bc8b932004-02-29 15:18:31 +00004937test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004938
a.rottmann9bc8b932004-02-29 15:18:31 +00004939# Some flags need to be propagated to the compiler or linker for good
4940# libtool support.
4941case $host in
4942ia64-*-hpux*)
4943 # Find out which ABI we are using.
4944 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004946 (eval $ac_compile) 2>&5
4947 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004950 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004951 *ELF-32*)
4952 HPUX_IA64_MODE="32"
4953 ;;
4954 *ELF-64*)
4955 HPUX_IA64_MODE="64"
4956 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004957 esac
4958 fi
4959 rm -rf conftest*
4960 ;;
4961*-*-irix6*)
4962 # Find out which ABI we are using.
drhe4f9b9b2013-08-28 18:18:12 +00004963 echo '#line 4963 "configure"' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004965 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004966 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004969 if test "$lt_cv_prog_gnu_ld" = yes; then
4970 case `/usr/bin/file conftest.$ac_objext` in
4971 *32-bit*)
4972 LD="${LD-ld} -melf32bsmip"
4973 ;;
4974 *N32*)
4975 LD="${LD-ld} -melf32bmipn32"
4976 ;;
4977 *64-bit*)
4978 LD="${LD-ld} -melf64bmip"
4979 ;;
4980 esac
4981 else
4982 case `/usr/bin/file conftest.$ac_objext` in
4983 *32-bit*)
4984 LD="${LD-ld} -32"
4985 ;;
4986 *N32*)
4987 LD="${LD-ld} -n32"
4988 ;;
4989 *64-bit*)
4990 LD="${LD-ld} -64"
4991 ;;
4992 esac
4993 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004994 fi
4995 rm -rf conftest*
4996 ;;
drh71eb93e2001-09-28 01:34:43 +00004997
mlcreech636a9952008-05-05 22:52:56 +00004998x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4999s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005000 # Find out which ABI we are using.
5001 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005003 (eval $ac_compile) 2>&5
5004 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005007 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005008 *32-bit*)
5009 case $host in
5010 x86_64-*kfreebsd*-gnu)
5011 LD="${LD-ld} -m elf_i386_fbsd"
5012 ;;
5013 x86_64-*linux*)
5014 LD="${LD-ld} -m elf_i386"
5015 ;;
5016 ppc64-*linux*|powerpc64-*linux*)
5017 LD="${LD-ld} -m elf32ppclinux"
5018 ;;
5019 s390x-*linux*)
5020 LD="${LD-ld} -m elf_s390"
5021 ;;
5022 sparc64-*linux*)
5023 LD="${LD-ld} -m elf32_sparc"
5024 ;;
5025 esac
5026 ;;
5027 *64-bit*)
5028 case $host in
5029 x86_64-*kfreebsd*-gnu)
5030 LD="${LD-ld} -m elf_x86_64_fbsd"
5031 ;;
5032 x86_64-*linux*)
5033 LD="${LD-ld} -m elf_x86_64"
5034 ;;
5035 ppc*-*linux*|powerpc*-*linux*)
5036 LD="${LD-ld} -m elf64ppc"
5037 ;;
5038 s390*-*linux*|s390*-*tpf*)
5039 LD="${LD-ld} -m elf64_s390"
5040 ;;
5041 sparc*-*linux*)
5042 LD="${LD-ld} -m elf64_sparc"
5043 ;;
5044 esac
5045 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005046 esac
5047 fi
5048 rm -rf conftest*
5049 ;;
drh71eb93e2001-09-28 01:34:43 +00005050
a.rottmann9bc8b932004-02-29 15:18:31 +00005051*-*-sco3.2v5*)
5052 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5053 SAVE_CFLAGS="$CFLAGS"
5054 CFLAGS="$CFLAGS -belf"
drh710658c2012-01-16 13:00:05 +00005055 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005056$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drh710658c2012-01-16 13:00:05 +00005057if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005058 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005059else
5060 ac_ext=c
5061ac_cpp='$CPP $CPPFLAGS'
5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005065
drh710658c2012-01-16 13:00:05 +00005066 cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h. */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005071/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005072
a.rottmann9bc8b932004-02-29 15:18:31 +00005073int
5074main ()
drh71eb93e2001-09-28 01:34:43 +00005075{
drh71eb93e2001-09-28 01:34:43 +00005076
a.rottmann9bc8b932004-02-29 15:18:31 +00005077 ;
5078 return 0;
drh71eb93e2001-09-28 01:34:43 +00005079}
a.rottmann9bc8b932004-02-29 15:18:31 +00005080_ACEOF
drh710658c2012-01-16 13:00:05 +00005081rm -f conftest.$ac_objext conftest$ac_exeext
5082if { (ac_try="$ac_link"
5083case "(($ac_try" in
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5086esac
5087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5088$as_echo "$ac_try_echo") >&5
5089 (eval "$ac_link") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest$ac_exeext && {
5099 test "$cross_compiling" = yes ||
5100 $as_test_x conftest$ac_exeext
5101 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005102 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005103else
drh710658c2012-01-16 13:00:05 +00005104 $as_echo "$as_me: failed program was:" >&5
5105sed 's/^/| /' conftest.$ac_ext >&5
5106
5107 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005108fi
drh710658c2012-01-16 13:00:05 +00005109
5110rm -rf conftest.dSYM
5111rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5112 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005113 ac_ext=c
5114ac_cpp='$CPP $CPPFLAGS'
5115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
drh71eb93e2001-09-28 01:34:43 +00005119fi
drh710658c2012-01-16 13:00:05 +00005120{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005121$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005122 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5123 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5124 CFLAGS="$SAVE_CFLAGS"
5125 fi
5126 ;;
vapier7f19c022007-02-17 14:46:31 +00005127sparc*-*solaris*)
5128 # Find out which ABI we are using.
5129 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vapier7f19c022007-02-17 14:46:31 +00005131 (eval $ac_compile) 2>&5
5132 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005135 case `/usr/bin/file conftest.o` in
5136 *64-bit*)
5137 case $lt_cv_prog_gnu_ld in
5138 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005139 *)
5140 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5141 LD="${LD-ld} -64"
5142 fi
5143 ;;
vapier7f19c022007-02-17 14:46:31 +00005144 esac
5145 ;;
5146 esac
5147 fi
5148 rm -rf conftest*
5149 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005150esac
5151
5152need_locks="$enable_libtool_lock"
5153
drh71eb93e2001-09-28 01:34:43 +00005154
mlcreech636a9952008-05-05 22:52:56 +00005155 case $host_os in
5156 rhapsody* | darwin*)
5157 if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005161$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005162if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005163 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005164else
5165 if test -n "$DSYMUTIL"; then
5166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005173 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005174 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 +00005175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh710658c2012-01-16 13:00:05 +00005176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005177 break 2
5178 fi
5179done
drh710658c2012-01-16 13:00:05 +00005180done
drh8b727472009-01-19 18:18:40 +00005181IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005182
5183fi
5184fi
5185DSYMUTIL=$ac_cv_prog_DSYMUTIL
5186if test -n "$DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005187 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005188$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005189else
drh710658c2012-01-16 13:00:05 +00005190 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005191$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005192fi
5193
drh8b727472009-01-19 18:18:40 +00005194
mlcreech636a9952008-05-05 22:52:56 +00005195fi
5196if test -z "$ac_cv_prog_DSYMUTIL"; then
5197 ac_ct_DSYMUTIL=$DSYMUTIL
5198 # Extract the first word of "dsymutil", so it can be a program name with args.
5199set dummy dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005201$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005202if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005203 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005204else
5205 if test -n "$ac_ct_DSYMUTIL"; then
5206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005213 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005214 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 +00005215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh710658c2012-01-16 13:00:05 +00005216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005217 break 2
5218 fi
5219done
drh710658c2012-01-16 13:00:05 +00005220done
drh8b727472009-01-19 18:18:40 +00005221IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005222
5223fi
5224fi
5225ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5226if test -n "$ac_ct_DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005227 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005228$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005229else
drh710658c2012-01-16 13:00:05 +00005230 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005231$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005232fi
5233
drh8b727472009-01-19 18:18:40 +00005234 if test "x$ac_ct_DSYMUTIL" = x; then
5235 DSYMUTIL=":"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
drh710658c2012-01-16 13:00:05 +00005239{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5240whose name does not start with the host triplet. If you think this
5241configuration is useful to you, please write to autoconf@gnu.org." >&5
5242$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5243whose name does not start with the host triplet. If you think this
5244configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005245ac_tool_warned=yes ;;
5246esac
5247 DSYMUTIL=$ac_ct_DSYMUTIL
5248 fi
mlcreech636a9952008-05-05 22:52:56 +00005249else
5250 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5251fi
5252
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5255set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005257$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005258if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005259 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005260else
5261 if test -n "$NMEDIT"; then
5262 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005269 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005270 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 +00005271 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh710658c2012-01-16 13:00:05 +00005272 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005273 break 2
5274 fi
5275done
drh710658c2012-01-16 13:00:05 +00005276done
drh8b727472009-01-19 18:18:40 +00005277IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005278
5279fi
5280fi
5281NMEDIT=$ac_cv_prog_NMEDIT
5282if test -n "$NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005283 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005284$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005285else
drh710658c2012-01-16 13:00:05 +00005286 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005287$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005288fi
5289
drh8b727472009-01-19 18:18:40 +00005290
mlcreech636a9952008-05-05 22:52:56 +00005291fi
5292if test -z "$ac_cv_prog_NMEDIT"; then
5293 ac_ct_NMEDIT=$NMEDIT
5294 # Extract the first word of "nmedit", so it can be a program name with args.
5295set dummy nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005296{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005297$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005298if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005299 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005300else
5301 if test -n "$ac_ct_NMEDIT"; then
5302 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5303else
5304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305for as_dir in $PATH
5306do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005309 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005310 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 +00005311 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh710658c2012-01-16 13:00:05 +00005312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005313 break 2
5314 fi
5315done
drh710658c2012-01-16 13:00:05 +00005316done
drh8b727472009-01-19 18:18:40 +00005317IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005318
5319fi
5320fi
5321ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5322if test -n "$ac_ct_NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005323 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005324$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005325else
drh710658c2012-01-16 13:00:05 +00005326 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005327$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005328fi
5329
drh8b727472009-01-19 18:18:40 +00005330 if test "x$ac_ct_NMEDIT" = x; then
5331 NMEDIT=":"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334yes:)
drh710658c2012-01-16 13:00:05 +00005335{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5336whose name does not start with the host triplet. If you think this
5337configuration is useful to you, please write to autoconf@gnu.org." >&5
5338$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5339whose name does not start with the host triplet. If you think this
5340configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005341ac_tool_warned=yes ;;
5342esac
5343 NMEDIT=$ac_ct_NMEDIT
5344 fi
mlcreech636a9952008-05-05 22:52:56 +00005345else
5346 NMEDIT="$ac_cv_prog_NMEDIT"
5347fi
5348
5349 if test -n "$ac_tool_prefix"; then
5350 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5351set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005352{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005353$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005354if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005355 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005356else
5357 if test -n "$LIPO"; then
5358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005365 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005366 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 +00005367 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh710658c2012-01-16 13:00:05 +00005368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005369 break 2
5370 fi
5371done
drh710658c2012-01-16 13:00:05 +00005372done
drh8b727472009-01-19 18:18:40 +00005373IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005374
5375fi
5376fi
5377LIPO=$ac_cv_prog_LIPO
5378if test -n "$LIPO"; then
drh710658c2012-01-16 13:00:05 +00005379 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005380$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005381else
drh710658c2012-01-16 13:00:05 +00005382 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005383$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005384fi
5385
drh8b727472009-01-19 18:18:40 +00005386
mlcreech636a9952008-05-05 22:52:56 +00005387fi
5388if test -z "$ac_cv_prog_LIPO"; then
5389 ac_ct_LIPO=$LIPO
5390 # Extract the first word of "lipo", so it can be a program name with args.
5391set dummy lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005393$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005394if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005395 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005396else
5397 if test -n "$ac_ct_LIPO"; then
5398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005405 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005406 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 +00005407 ac_cv_prog_ac_ct_LIPO="lipo"
drh710658c2012-01-16 13:00:05 +00005408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005409 break 2
5410 fi
5411done
drh710658c2012-01-16 13:00:05 +00005412done
drh8b727472009-01-19 18:18:40 +00005413IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005414
5415fi
5416fi
5417ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5418if test -n "$ac_ct_LIPO"; then
drh710658c2012-01-16 13:00:05 +00005419 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005420$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005421else
drh710658c2012-01-16 13:00:05 +00005422 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005423$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005424fi
5425
drh8b727472009-01-19 18:18:40 +00005426 if test "x$ac_ct_LIPO" = x; then
5427 LIPO=":"
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430yes:)
drh710658c2012-01-16 13:00:05 +00005431{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5432whose name does not start with the host triplet. If you think this
5433configuration is useful to you, please write to autoconf@gnu.org." >&5
5434$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5435whose name does not start with the host triplet. If you think this
5436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005437ac_tool_warned=yes ;;
5438esac
5439 LIPO=$ac_ct_LIPO
5440 fi
mlcreech636a9952008-05-05 22:52:56 +00005441else
5442 LIPO="$ac_cv_prog_LIPO"
5443fi
5444
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5447set dummy ${ac_tool_prefix}otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005448{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005449$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005450if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005451 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005452else
5453 if test -n "$OTOOL"; then
5454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5455else
5456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005461 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005462 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 +00005463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh710658c2012-01-16 13:00:05 +00005464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005465 break 2
5466 fi
5467done
drh710658c2012-01-16 13:00:05 +00005468done
drh8b727472009-01-19 18:18:40 +00005469IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005470
5471fi
5472fi
5473OTOOL=$ac_cv_prog_OTOOL
5474if test -n "$OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005475 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005476$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005477else
drh710658c2012-01-16 13:00:05 +00005478 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005479$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005480fi
5481
drh8b727472009-01-19 18:18:40 +00005482
mlcreech636a9952008-05-05 22:52:56 +00005483fi
5484if test -z "$ac_cv_prog_OTOOL"; then
5485 ac_ct_OTOOL=$OTOOL
5486 # Extract the first word of "otool", so it can be a program name with args.
5487set dummy otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005489$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005490if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005491 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005492else
5493 if test -n "$ac_ct_OTOOL"; then
5494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005501 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005502 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 +00005503 ac_cv_prog_ac_ct_OTOOL="otool"
drh710658c2012-01-16 13:00:05 +00005504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005505 break 2
5506 fi
5507done
drh710658c2012-01-16 13:00:05 +00005508done
drh8b727472009-01-19 18:18:40 +00005509IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005510
5511fi
5512fi
5513ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5514if test -n "$ac_ct_OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005515 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005516$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005517else
drh710658c2012-01-16 13:00:05 +00005518 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005519$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005520fi
5521
drh8b727472009-01-19 18:18:40 +00005522 if test "x$ac_ct_OTOOL" = x; then
5523 OTOOL=":"
5524 else
5525 case $cross_compiling:$ac_tool_warned in
5526yes:)
drh710658c2012-01-16 13:00:05 +00005527{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5528whose name does not start with the host triplet. If you think this
5529configuration is useful to you, please write to autoconf@gnu.org." >&5
5530$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5531whose name does not start with the host triplet. If you think this
5532configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005533ac_tool_warned=yes ;;
5534esac
5535 OTOOL=$ac_ct_OTOOL
5536 fi
mlcreech636a9952008-05-05 22:52:56 +00005537else
5538 OTOOL="$ac_cv_prog_OTOOL"
5539fi
5540
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5543set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005544{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005545$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005546if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005547 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005548else
5549 if test -n "$OTOOL64"; then
5550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005557 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005558 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 +00005559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh710658c2012-01-16 13:00:05 +00005560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005561 break 2
5562 fi
5563done
drh710658c2012-01-16 13:00:05 +00005564done
drh8b727472009-01-19 18:18:40 +00005565IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005566
5567fi
5568fi
5569OTOOL64=$ac_cv_prog_OTOOL64
5570if test -n "$OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005571 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005572$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005573else
drh710658c2012-01-16 13:00:05 +00005574 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005575$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005576fi
5577
drh8b727472009-01-19 18:18:40 +00005578
mlcreech636a9952008-05-05 22:52:56 +00005579fi
5580if test -z "$ac_cv_prog_OTOOL64"; then
5581 ac_ct_OTOOL64=$OTOOL64
5582 # Extract the first word of "otool64", so it can be a program name with args.
5583set dummy otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005584{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005585$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005586if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005587 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005588else
5589 if test -n "$ac_ct_OTOOL64"; then
5590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005597 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005598 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 +00005599 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh710658c2012-01-16 13:00:05 +00005600 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005601 break 2
5602 fi
5603done
drh710658c2012-01-16 13:00:05 +00005604done
drh8b727472009-01-19 18:18:40 +00005605IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005606
5607fi
5608fi
5609ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5610if test -n "$ac_ct_OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005611 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005612$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005613else
drh710658c2012-01-16 13:00:05 +00005614 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005615$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005616fi
5617
drh8b727472009-01-19 18:18:40 +00005618 if test "x$ac_ct_OTOOL64" = x; then
5619 OTOOL64=":"
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622yes:)
drh710658c2012-01-16 13:00:05 +00005623{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5624whose name does not start with the host triplet. If you think this
5625configuration is useful to you, please write to autoconf@gnu.org." >&5
5626$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5627whose name does not start with the host triplet. If you think this
5628configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005629ac_tool_warned=yes ;;
5630esac
5631 OTOOL64=$ac_ct_OTOOL64
5632 fi
mlcreech636a9952008-05-05 22:52:56 +00005633else
5634 OTOOL64="$ac_cv_prog_OTOOL64"
5635fi
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
drh710658c2012-01-16 13:00:05 +00005663 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005664$as_echo_n "checking for -single_module linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005665if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005666 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005667else
5668 lt_cv_apple_cc_single_mod=no
5669 if test -z "${LT_MULTI_MODULE}"; then
5670 # By default we will add the -single_module flag. You can override
5671 # by either setting the environment variable LT_MULTI_MODULE
5672 # non-empty at configure time, or by adding -multi_module to the
5673 # link flags.
5674 rm -rf libconftest.dylib*
5675 echo "int foo(void){return 1;}" > conftest.c
5676 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5677-dynamiclib -Wl,-single_module conftest.c" >&5
5678 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5679 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5680 _lt_result=$?
5681 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5682 lt_cv_apple_cc_single_mod=yes
5683 else
5684 cat conftest.err >&5
5685 fi
5686 rm -rf libconftest.dylib*
5687 rm -f conftest.*
5688 fi
5689fi
drh710658c2012-01-16 13:00:05 +00005690{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005691$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drh710658c2012-01-16 13:00:05 +00005692 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005693$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005694if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005695 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005696else
5697 lt_cv_ld_exported_symbols_list=no
5698 save_LDFLAGS=$LDFLAGS
5699 echo "_main" > conftest.sym
5700 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drh710658c2012-01-16 13:00:05 +00005701 cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00005706/* end confdefs.h. */
5707
5708int
5709main ()
5710{
5711
5712 ;
5713 return 0;
5714}
5715_ACEOF
drh710658c2012-01-16 13:00:05 +00005716rm -f conftest.$ac_objext conftest$ac_exeext
5717if { (ac_try="$ac_link"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723$as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5736 }; then
mlcreech636a9952008-05-05 22:52:56 +00005737 lt_cv_ld_exported_symbols_list=yes
5738else
drh710658c2012-01-16 13:00:05 +00005739 $as_echo "$as_me: failed program was:" >&5
5740sed 's/^/| /' conftest.$ac_ext >&5
5741
5742 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005743fi
drh710658c2012-01-16 13:00:05 +00005744
5745rm -rf conftest.dSYM
5746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5747 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005748 LDFLAGS="$save_LDFLAGS"
5749
5750fi
drh710658c2012-01-16 13:00:05 +00005751{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005752$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005753 case $host_os in
5754 rhapsody* | darwin1.[012])
5755 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5756 darwin1.*)
5757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5758 darwin*) # darwin 5.x on
5759 # if running on 10.5 or later, the deployment target defaults
5760 # to the OS version, if on x86, and 10.4, the deployment
5761 # target defaults to 10.4. Don't you love it?
5762 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5763 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5764 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5765 10.[012]*)
5766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5767 10.*)
5768 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5769 esac
5770 ;;
5771 esac
5772 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5773 _lt_dar_single_mod='$single_module'
5774 fi
5775 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5776 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5777 else
5778 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5779 fi
5780 if test "$DSYMUTIL" != ":"; then
5781 _lt_dsymutil='~$DSYMUTIL $lib || :'
5782 else
5783 _lt_dsymutil=
5784 fi
5785 ;;
5786 esac
5787
a.rottmann84e63352003-03-24 09:42:16 +00005788ac_ext=c
5789ac_cpp='$CPP $CPPFLAGS'
5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh710658c2012-01-16 13:00:05 +00005793{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005794$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005795# On Suns, sometimes $CPP names a directory.
5796if test -n "$CPP" && test -d "$CPP"; then
5797 CPP=
5798fi
5799if test -z "$CPP"; then
drh710658c2012-01-16 13:00:05 +00005800 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005801 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005802else
a.rottmann84e63352003-03-24 09:42:16 +00005803 # Double quotes because CPP needs to be expanded
5804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5805 do
5806 ac_preproc_ok=false
5807for ac_c_preproc_warn_flag in '' yes
5808do
5809 # Use a header file that comes with gcc, so configuring glibc
5810 # with a fresh cross-compiler works.
5811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5812 # <limits.h> exists even on freestanding compilers.
5813 # On the NeXT, cc -E runs the code through the compiler's parser,
5814 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005815 cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005820/* end confdefs.h. */
5821#ifdef __STDC__
5822# include <limits.h>
5823#else
5824# include <assert.h>
5825#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005826 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005827_ACEOF
drh710658c2012-01-16 13:00:05 +00005828if { (ac_try="$ac_cpp conftest.$ac_ext"
5829case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5834$as_echo "$ac_try_echo") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 }; then
5845 :
dana9f39fd2011-08-12 16:34:42 +00005846else
drh710658c2012-01-16 13:00:05 +00005847 $as_echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
a.rottmann84e63352003-03-24 09:42:16 +00005850 # Broken: fails on valid input.
5851continue
5852fi
drh710658c2012-01-16 13:00:05 +00005853
5854rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005855
drh8b727472009-01-19 18:18:40 +00005856 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005857 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005858 cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h. */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005863/* end confdefs.h. */
5864#include <ac_nonexistent.h>
5865_ACEOF
drh710658c2012-01-16 13:00:05 +00005866if { (ac_try="$ac_cpp conftest.$ac_ext"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872$as_echo "$ac_try_echo") >&5
5873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } >/dev/null && {
5880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005883 # Broken: success on invalid input.
5884continue
5885else
drh710658c2012-01-16 13:00:05 +00005886 $as_echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
a.rottmann84e63352003-03-24 09:42:16 +00005889 # Passes both tests.
5890ac_preproc_ok=:
5891break
5892fi
drh710658c2012-01-16 13:00:05 +00005893
5894rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005895
5896done
5897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005898rm -f conftest.err conftest.$ac_ext
5899if $ac_preproc_ok; then
a.rottmann84e63352003-03-24 09:42:16 +00005900 break
5901fi
5902
5903 done
5904 ac_cv_prog_CPP=$CPP
5905
5906fi
5907 CPP=$ac_cv_prog_CPP
5908else
5909 ac_cv_prog_CPP=$CPP
5910fi
drh710658c2012-01-16 13:00:05 +00005911{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005912$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005913ac_preproc_ok=false
5914for ac_c_preproc_warn_flag in '' yes
5915do
5916 # Use a header file that comes with gcc, so configuring glibc
5917 # with a fresh cross-compiler works.
5918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5919 # <limits.h> exists even on freestanding compilers.
5920 # On the NeXT, cc -E runs the code through the compiler's parser,
5921 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005927/* end confdefs.h. */
5928#ifdef __STDC__
5929# include <limits.h>
5930#else
5931# include <assert.h>
5932#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005933 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005934_ACEOF
drh710658c2012-01-16 13:00:05 +00005935if { (ac_try="$ac_cpp conftest.$ac_ext"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5941$as_echo "$ac_try_echo") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev/null && {
5949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5951 }; then
5952 :
dana9f39fd2011-08-12 16:34:42 +00005953else
drh710658c2012-01-16 13:00:05 +00005954 $as_echo "$as_me: failed program was:" >&5
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
a.rottmann84e63352003-03-24 09:42:16 +00005957 # Broken: fails on valid input.
5958continue
5959fi
drh710658c2012-01-16 13:00:05 +00005960
5961rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005962
drh8b727472009-01-19 18:18:40 +00005963 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005964 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005970/* end confdefs.h. */
5971#include <ac_nonexistent.h>
5972_ACEOF
drh710658c2012-01-16 13:00:05 +00005973if { (ac_try="$ac_cpp conftest.$ac_ext"
5974case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979$as_echo "$ac_try_echo") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005990 # Broken: success on invalid input.
5991continue
5992else
drh710658c2012-01-16 13:00:05 +00005993 $as_echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
a.rottmann84e63352003-03-24 09:42:16 +00005996 # Passes both tests.
5997ac_preproc_ok=:
5998break
5999fi
drh710658c2012-01-16 13:00:05 +00006000
6001rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006002
6003done
6004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00006005rm -f conftest.err conftest.$ac_ext
6006if $ac_preproc_ok; then
6007 :
a.rottmann84e63352003-03-24 09:42:16 +00006008else
drh710658c2012-01-16 13:00:05 +00006009 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6010See \`config.log' for more details." >&5
6011$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6012See \`config.log' for more details." >&2;}
6013 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006014fi
6015
6016ac_ext=c
6017ac_cpp='$CPP $CPPFLAGS'
6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
drh710658c2012-01-16 13:00:05 +00006023{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006024$as_echo_n "checking for ANSI C header files... " >&6; }
drh710658c2012-01-16 13:00:05 +00006025if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006026 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006027else
drh710658c2012-01-16 13:00:05 +00006028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006033/* end confdefs.h. */
6034#include <stdlib.h>
6035#include <stdarg.h>
6036#include <string.h>
6037#include <float.h>
6038
6039int
6040main ()
6041{
6042
6043 ;
6044 return 0;
6045}
6046_ACEOF
drh710658c2012-01-16 13:00:05 +00006047rm -f conftest.$ac_objext
6048if { (ac_try="$ac_compile"
6049case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
6053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6054$as_echo "$ac_try_echo") >&5
6055 (eval "$ac_compile") 2>conftest.er1
6056 ac_status=$?
6057 grep -v '^ *+' conftest.er1 >conftest.err
6058 rm -f conftest.er1
6059 cat conftest.err >&5
6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006065 ac_cv_header_stdc=yes
6066else
drh710658c2012-01-16 13:00:05 +00006067 $as_echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
6069
6070 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006071fi
drh710658c2012-01-16 13:00:05 +00006072
drh8b727472009-01-19 18:18:40 +00006073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006074
6075if test $ac_cv_header_stdc = yes; then
6076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006077 cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h. */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006082/* end confdefs.h. */
6083#include <string.h>
6084
6085_ACEOF
6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006087 $EGREP "memchr" >/dev/null 2>&1; then
6088 :
a.rottmann84e63352003-03-24 09:42:16 +00006089else
6090 ac_cv_header_stdc=no
6091fi
6092rm -f conftest*
6093
6094fi
6095
6096if test $ac_cv_header_stdc = yes; then
6097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006098 cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006103/* end confdefs.h. */
6104#include <stdlib.h>
6105
6106_ACEOF
6107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006108 $EGREP "free" >/dev/null 2>&1; then
6109 :
a.rottmann84e63352003-03-24 09:42:16 +00006110else
6111 ac_cv_header_stdc=no
6112fi
6113rm -f conftest*
6114
6115fi
6116
6117if test $ac_cv_header_stdc = yes; then
6118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drh710658c2012-01-16 13:00:05 +00006119 if test "$cross_compiling" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006120 :
6121else
drh710658c2012-01-16 13:00:05 +00006122 cat >conftest.$ac_ext <<_ACEOF
6123/* confdefs.h. */
6124_ACEOF
6125cat confdefs.h >>conftest.$ac_ext
6126cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006127/* end confdefs.h. */
6128#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006129#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006130#if ((' ' & 0x0FF) == 0x020)
6131# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6132# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6133#else
6134# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006135 (('a' <= (c) && (c) <= 'i') \
6136 || ('j' <= (c) && (c) <= 'r') \
6137 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006138# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6139#endif
6140
6141#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6142int
6143main ()
6144{
6145 int i;
6146 for (i = 0; i < 256; i++)
6147 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006148 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006149 return 2;
6150 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006151}
6152_ACEOF
drh710658c2012-01-16 13:00:05 +00006153rm -f conftest$ac_exeext
6154if { (ac_try="$ac_link"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160$as_echo "$ac_try_echo") >&5
6161 (eval "$ac_link") 2>&5
6162 ac_status=$?
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
6169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6170$as_echo "$ac_try_echo") >&5
6171 (eval "$ac_try") 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
6175 :
a.rottmann84e63352003-03-24 09:42:16 +00006176else
drh710658c2012-01-16 13:00:05 +00006177 $as_echo "$as_me: program exited with status $ac_status" >&5
6178$as_echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181( exit $ac_status )
6182ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006183fi
drh710658c2012-01-16 13:00:05 +00006184rm -rf conftest.dSYM
6185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006186fi
6187
drh710658c2012-01-16 13:00:05 +00006188
a.rottmann84e63352003-03-24 09:42:16 +00006189fi
6190fi
drh710658c2012-01-16 13:00:05 +00006191{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006192$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006193if test $ac_cv_header_stdc = yes; then
6194
drh710658c2012-01-16 13:00:05 +00006195cat >>confdefs.h <<\_ACEOF
6196#define STDC_HEADERS 1
6197_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006198
6199fi
6200
6201# On IRIX 5.3, sys/types and inttypes.h are conflicting.
drh710658c2012-01-16 13:00:05 +00006202
6203
6204
6205
6206
6207
6208
6209
6210
a.rottmann84e63352003-03-24 09:42:16 +00006211for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006212 inttypes.h stdint.h unistd.h
drh710658c2012-01-16 13:00:05 +00006213do
6214as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6215{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6216$as_echo_n "checking for $ac_header... " >&6; }
6217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6218 $as_echo_n "(cached) " >&6
6219else
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226$ac_includes_default
6227
6228#include <$ac_header>
6229_ACEOF
6230rm -f conftest.$ac_objext
6231if { (ac_try="$ac_compile"
6232case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237$as_echo "$ac_try_echo") >&5
6238 (eval "$ac_compile") 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
6248 eval "$as_ac_Header=yes"
6249else
6250 $as_echo "$as_me: failed program was:" >&5
6251sed 's/^/| /' conftest.$ac_ext >&5
6252
6253 eval "$as_ac_Header=no"
6254fi
6255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258ac_res=`eval 'as_val=${'$as_ac_Header'}
6259 $as_echo "$as_val"'`
6260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6261$as_echo "$ac_res" >&6; }
6262if test `eval 'as_val=${'$as_ac_Header'}
6263 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006264 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006266_ACEOF
6267
6268fi
6269
6270done
6271
6272
drh710658c2012-01-16 13:00:05 +00006273
a.rottmann84e63352003-03-24 09:42:16 +00006274for ac_header in dlfcn.h
drh710658c2012-01-16 13:00:05 +00006275do
6276as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6278$as_echo_n "checking for $ac_header... " >&6; }
6279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6280 $as_echo_n "(cached) " >&6
6281else
6282 cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288$ac_includes_default
6289
6290#include <$ac_header>
6291_ACEOF
6292rm -f conftest.$ac_objext
6293if { (ac_try="$ac_compile"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 eval "$as_ac_Header=yes"
6311else
6312 $as_echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 eval "$as_ac_Header=no"
6316fi
6317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320ac_res=`eval 'as_val=${'$as_ac_Header'}
6321 $as_echo "$as_val"'`
6322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6323$as_echo "$ac_res" >&6; }
6324if test `eval 'as_val=${'$as_ac_Header'}
6325 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006326 cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00006327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006328_ACEOF
6329
6330fi
6331
drh71eb93e2001-09-28 01:34:43 +00006332done
6333
drh71eb93e2001-09-28 01:34:43 +00006334
drh71eb93e2001-09-28 01:34:43 +00006335
mlcreech636a9952008-05-05 22:52:56 +00006336# Set options
mlcreech94984912008-03-04 19:03:08 +00006337
drh71eb93e2001-09-28 01:34:43 +00006338
drh71eb93e2001-09-28 01:34:43 +00006339
mlcreech636a9952008-05-05 22:52:56 +00006340 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006341
a.rottmann9bc8b932004-02-29 15:18:31 +00006342
mlcreech636a9952008-05-05 22:52:56 +00006343 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006344
a.rottmann9bc8b932004-02-29 15:18:31 +00006345
drh8b727472009-01-19 18:18:40 +00006346 # Check whether --enable-shared was given.
drh710658c2012-01-16 13:00:05 +00006347if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006348 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006349 case $enableval in
6350 yes) enable_shared=yes ;;
6351 no) enable_shared=no ;;
6352 *)
6353 enable_shared=no
6354 # Look at the argument we got. We use all the common list separators.
6355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6356 for pkg in $enableval; do
6357 IFS="$lt_save_ifs"
6358 if test "X$pkg" = "X$p"; then
6359 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006360 fi
mlcreech636a9952008-05-05 22:52:56 +00006361 done
6362 IFS="$lt_save_ifs"
6363 ;;
6364 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006365else
mlcreech636a9952008-05-05 22:52:56 +00006366 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006367fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006368
mlcreech636a9952008-05-05 22:52:56 +00006369
6370
6371
6372
6373
6374
6375
drh8b727472009-01-19 18:18:40 +00006376
6377 # Check whether --enable-static was given.
drh710658c2012-01-16 13:00:05 +00006378if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006379 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006380 case $enableval in
6381 yes) enable_static=yes ;;
6382 no) enable_static=no ;;
6383 *)
6384 enable_static=no
6385 # Look at the argument we got. We use all the common list separators.
6386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6387 for pkg in $enableval; do
6388 IFS="$lt_save_ifs"
6389 if test "X$pkg" = "X$p"; then
6390 enable_static=yes
6391 fi
6392 done
6393 IFS="$lt_save_ifs"
6394 ;;
6395 esac
6396else
6397 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006398fi
mlcreech636a9952008-05-05 22:52:56 +00006399
6400
6401
6402
6403
6404
6405
6406
6407
drh8b727472009-01-19 18:18:40 +00006408
6409# Check whether --with-pic was given.
drh710658c2012-01-16 13:00:05 +00006410if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006411 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006412else
6413 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006414fi
6415
mlcreech636a9952008-05-05 22:52:56 +00006416
6417test -z "$pic_mode" && pic_mode=default
6418
6419
6420
6421
6422
6423
6424
drh8b727472009-01-19 18:18:40 +00006425 # Check whether --enable-fast-install was given.
drh710658c2012-01-16 13:00:05 +00006426if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006427 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006428 case $enableval in
6429 yes) enable_fast_install=yes ;;
6430 no) enable_fast_install=no ;;
6431 *)
6432 enable_fast_install=no
6433 # Look at the argument we got. We use all the common list separators.
6434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6435 for pkg in $enableval; do
6436 IFS="$lt_save_ifs"
6437 if test "X$pkg" = "X$p"; then
6438 enable_fast_install=yes
6439 fi
6440 done
6441 IFS="$lt_save_ifs"
6442 ;;
6443 esac
6444else
6445 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006446fi
6447
mlcreech636a9952008-05-05 22:52:56 +00006448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458# This can be used to rebuild libtool when needed
6459LIBTOOL_DEPS="$ltmain"
6460
6461# Always use our own libtool.
6462LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488test -z "$LN_S" && LN_S="ln -s"
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503if test -n "${ZSH_VERSION+set}" ; then
6504 setopt NO_GLOB_SUBST
6505fi
6506
drh710658c2012-01-16 13:00:05 +00006507{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006508$as_echo_n "checking for objdir... " >&6; }
drh710658c2012-01-16 13:00:05 +00006509if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006510 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006511else
6512 rm -f .libs 2>/dev/null
6513mkdir .libs 2>/dev/null
6514if test -d .libs; then
6515 lt_cv_objdir=.libs
6516else
6517 # MS-DOS does not allow filenames that begin with a dot.
6518 lt_cv_objdir=_libs
6519fi
6520rmdir .libs 2>/dev/null
6521fi
drh710658c2012-01-16 13:00:05 +00006522{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006523$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006524objdir=$lt_cv_objdir
6525
6526
6527
6528
6529
mlcreech636a9952008-05-05 22:52:56 +00006530cat >>confdefs.h <<_ACEOF
6531#define LT_OBJDIR "$lt_cv_objdir/"
6532_ACEOF
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
a.rottmann9bc8b932004-02-29 15:18:31 +00006550case $host_os in
6551aix3*)
6552 # AIX sometimes has problems with the GCC collect2 program. For some
6553 # reason, if we set the COLLECT_NAMES environment variable, the problems
6554 # vanish in a puff of smoke.
6555 if test "X${COLLECT_NAMES+set}" != Xset; then
6556 COLLECT_NAMES=
6557 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006558 fi
6559 ;;
6560esac
6561
a.rottmann9bc8b932004-02-29 15:18:31 +00006562# Sed substitution that helps us do robust quoting. It backslashifies
6563# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006564sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006565
6566# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006567double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006568
6569# Sed substitution to delay expansion of an escaped shell variable in a
6570# double_quote_subst'ed string.
6571delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6572
mlcreech636a9952008-05-05 22:52:56 +00006573# Sed substitution to delay expansion of an escaped single quote.
6574delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6575
a.rottmann9bc8b932004-02-29 15:18:31 +00006576# Sed substitution to avoid accidental globbing in evaled expressions
6577no_glob_subst='s/\*/\\\*/g'
6578
a.rottmann9bc8b932004-02-29 15:18:31 +00006579# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006580ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006581can_build_shared=yes
6582
vapier7f19c022007-02-17 14:46:31 +00006583# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006584# which needs '.lib').
6585libext=a
mlcreech636a9952008-05-05 22:52:56 +00006586
a.rottmann9bc8b932004-02-29 15:18:31 +00006587with_gnu_ld="$lt_cv_prog_gnu_ld"
6588
a.rottmann84e63352003-03-24 09:42:16 +00006589old_CC="$CC"
6590old_CFLAGS="$CFLAGS"
6591
6592# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006593test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006594test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006595test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006596test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006597test -z "$ac_objext" && ac_objext=o
6598
vapier7f19c022007-02-17 14:46:31 +00006599for cc_temp in $compiler""; do
6600 case $cc_temp in
6601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6603 \-*) ;;
6604 *) break;;
6605 esac
6606done
mlcreech636a9952008-05-05 22:52:56 +00006607cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006608
6609
a.rottmann9bc8b932004-02-29 15:18:31 +00006610# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006611test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006612case $deplibs_check_method in
6613file_magic*)
6614 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh710658c2012-01-16 13:00:05 +00006615 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006616$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006617if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006618 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006619else
a.rottmann9bc8b932004-02-29 15:18:31 +00006620 case $MAGIC_CMD in
6621[\\/*] | ?:[\\/]*)
6622 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6623 ;;
6624*)
6625 lt_save_MAGIC_CMD="$MAGIC_CMD"
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6628 for ac_dir in $ac_dummy; do
6629 IFS="$lt_save_ifs"
6630 test -z "$ac_dir" && ac_dir=.
6631 if test -f $ac_dir/${ac_tool_prefix}file; then
6632 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6633 if test -n "$file_magic_test_file"; then
6634 case $deplibs_check_method in
6635 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006636 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6639 $EGREP "$file_magic_regex" > /dev/null; then
6640 :
6641 else
mlcreech636a9952008-05-05 22:52:56 +00006642 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006643
a.rottmann9bc8b932004-02-29 15:18:31 +00006644*** Warning: the command libtool uses to detect shared libraries,
6645*** $file_magic_cmd, produces output that libtool cannot recognize.
6646*** The result is that libtool may fail to recognize shared libraries
6647*** as such. This will affect the creation of libtool libraries that
6648*** depend on shared libraries, but programs linked with such libtool
6649*** libraries will work regardless of this problem. Nevertheless, you
6650*** may want to report the problem to your system manager and/or to
6651*** bug-libtool@gnu.org
6652
mlcreech636a9952008-05-05 22:52:56 +00006653_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006654 fi ;;
6655 esac
6656 fi
6657 break
6658 fi
6659 done
6660 IFS="$lt_save_ifs"
6661 MAGIC_CMD="$lt_save_MAGIC_CMD"
6662 ;;
6663esac
6664fi
6665
6666MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6667if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006668 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006669$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006670else
drh710658c2012-01-16 13:00:05 +00006671 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006672$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006673fi
6674
mlcreech636a9952008-05-05 22:52:56 +00006675
6676
6677
6678
a.rottmann9bc8b932004-02-29 15:18:31 +00006679if test -z "$lt_cv_path_MAGIC_CMD"; then
6680 if test -n "$ac_tool_prefix"; then
drh710658c2012-01-16 13:00:05 +00006681 { $as_echo "$as_me:$LINENO: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006682$as_echo_n "checking for file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006683if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006684 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006685else
6686 case $MAGIC_CMD in
6687[\\/*] | ?:[\\/]*)
6688 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6689 ;;
6690*)
6691 lt_save_MAGIC_CMD="$MAGIC_CMD"
6692 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6694 for ac_dir in $ac_dummy; do
6695 IFS="$lt_save_ifs"
6696 test -z "$ac_dir" && ac_dir=.
6697 if test -f $ac_dir/file; then
6698 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6699 if test -n "$file_magic_test_file"; then
6700 case $deplibs_check_method in
6701 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6705 $EGREP "$file_magic_regex" > /dev/null; then
6706 :
6707 else
mlcreech636a9952008-05-05 22:52:56 +00006708 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006709
6710*** Warning: the command libtool uses to detect shared libraries,
6711*** $file_magic_cmd, produces output that libtool cannot recognize.
6712*** The result is that libtool may fail to recognize shared libraries
6713*** as such. This will affect the creation of libtool libraries that
6714*** depend on shared libraries, but programs linked with such libtool
6715*** libraries will work regardless of this problem. Nevertheless, you
6716*** may want to report the problem to your system manager and/or to
6717*** bug-libtool@gnu.org
6718
mlcreech636a9952008-05-05 22:52:56 +00006719_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006720 fi ;;
6721 esac
6722 fi
6723 break
6724 fi
6725 done
6726 IFS="$lt_save_ifs"
6727 MAGIC_CMD="$lt_save_MAGIC_CMD"
6728 ;;
6729esac
6730fi
6731
6732MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6733if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006734 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006735$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006736else
drh710658c2012-01-16 13:00:05 +00006737 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006738$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006739fi
6740
mlcreech636a9952008-05-05 22:52:56 +00006741
a.rottmann9bc8b932004-02-29 15:18:31 +00006742 else
6743 MAGIC_CMD=:
6744 fi
6745fi
6746
6747 fi
6748 ;;
6749esac
6750
a.rottmann9bc8b932004-02-29 15:18:31 +00006751# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006752
a.rottmann9bc8b932004-02-29 15:18:31 +00006753lt_save_CC="$CC"
6754ac_ext=c
6755ac_cpp='$CPP $CPPFLAGS'
6756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760
6761# Source file extension for C test sources.
6762ac_ext=c
6763
6764# Object file extension for compiled C test sources.
6765objext=o
6766objext=$objext
6767
6768# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006769lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006770
6771# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006772lt_simple_link_test_code='int main(){return(0);}'
6773
6774
6775
6776
6777
a.rottmann9bc8b932004-02-29 15:18:31 +00006778
6779
6780# If no C compiler was specified, use CC.
6781LTCC=${LTCC-"$CC"}
6782
vapier7f19c022007-02-17 14:46:31 +00006783# If no C compiler flags were specified, use CFLAGS.
6784LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6785
a.rottmann9bc8b932004-02-29 15:18:31 +00006786# Allow CC to be a program name with arguments.
6787compiler=$CC
6788
mlcreech636a9952008-05-05 22:52:56 +00006789# Save the default compiler, since it gets overwritten when the other
6790# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6791compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006792
vapier7f19c022007-02-17 14:46:31 +00006793# save warnings/boilerplate of simple test code
6794ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006795echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6797_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006798$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006799
vapier7f19c022007-02-17 14:46:31 +00006800ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006801echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006804$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006805
6806
mlcreech636a9952008-05-05 22:52:56 +00006807if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006808
6809lt_prog_compiler_no_builtin_flag=
6810
6811if test "$GCC" = yes; then
6812 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6813
drh710658c2012-01-16 13:00:05 +00006814 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006815$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drh710658c2012-01-16 13:00:05 +00006816if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006817 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006818else
6819 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006820 ac_outfile=conftest.$ac_objext
6821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006822 lt_compiler_flag="-fno-rtti -fno-exceptions"
6823 # Insert the option either (1) after the last *FLAGS variable, or
6824 # (2) before a word containing "conftest.", or (3) at the end.
6825 # Note that $ac_compile itself does not contain backslashes and begins
6826 # with a dollar sign (not a hyphen), so the echo should work correctly.
6827 # The option is referenced via a variable to avoid confusing sed.
6828 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6831 -e 's:$: $lt_compiler_flag:'`
drhe4f9b9b2013-08-28 18:18:12 +00006832 (eval echo "\"\$as_me:6832: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006833 (eval "$lt_compile" 2>conftest.err)
6834 ac_status=$?
6835 cat conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00006836 echo "$as_me:6836: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006837 if (exit $ac_status) && test -s "$ac_outfile"; then
6838 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006839 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006840 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006841 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6842 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 lt_cv_prog_compiler_rtti_exceptions=yes
6844 fi
6845 fi
mlcreech636a9952008-05-05 22:52:56 +00006846 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006847
6848fi
drh710658c2012-01-16 13:00:05 +00006849{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006850$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006851
6852if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6853 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6854else
6855 :
6856fi
6857
6858fi
6859
mlcreech636a9952008-05-05 22:52:56 +00006860
6861
6862
6863
6864
6865 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006866lt_prog_compiler_pic=
6867lt_prog_compiler_static=
6868
drh710658c2012-01-16 13:00:05 +00006869{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006870$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006871
drh71eb93e2001-09-28 01:34:43 +00006872 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006875
6876 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006877 aix*)
6878 # All AIX code is PIC.
6879 if test "$host_cpu" = ia64; then
6880 # AIX 5 now supports IA64 processor
6881 lt_prog_compiler_static='-Bstatic'
6882 fi
drh71eb93e2001-09-28 01:34:43 +00006883 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006884
drh71eb93e2001-09-28 01:34:43 +00006885 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006886 case $host_cpu in
6887 powerpc)
6888 # see comment about AmigaOS4 .so support
6889 lt_prog_compiler_pic='-fPIC'
6890 ;;
6891 m68k)
6892 # FIXME: we need at least 68020 code to build shared libraries, but
6893 # adding the `-m68020' flag to GCC prevents building anything better,
6894 # like `-m68040'.
6895 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6896 ;;
6897 esac
drh71eb93e2001-09-28 01:34:43 +00006898 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006899
mlcreech636a9952008-05-05 22:52:56 +00006900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006901 # PIC is the default for these OSes.
6902 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006903
vapier6acb2cf2009-01-28 04:46:28 +00006904 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006905 # This hack is so that the source file can tell whether it is being
6906 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6908 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006909 lt_prog_compiler_pic='-DDLL_EXPORT'
6910 ;;
6911
drh71eb93e2001-09-28 01:34:43 +00006912 darwin* | rhapsody*)
6913 # PIC is the default on this platform
6914 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006916 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006917
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6921 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006922 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006923 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 # +Z the default
6925 ;;
6926 *)
6927 lt_prog_compiler_pic='-fPIC'
6928 ;;
6929 esac
6930 ;;
6931
mlcreech636a9952008-05-05 22:52:56 +00006932 interix[3-9]*)
6933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6934 # Instead, we relocate shared libraries at runtime.
6935 ;;
6936
6937 msdosdjgpp*)
6938 # Just because we use GCC doesn't mean we suddenly get shared libraries
6939 # on systems that don't support them.
6940 lt_prog_compiler_can_build_shared=no
6941 enable_shared=no
6942 ;;
6943
6944 *nto* | *qnx*)
6945 # QNX uses GNU C++, but need to define -shared option too, otherwise
6946 # it will coredump.
6947 lt_prog_compiler_pic='-fPIC -shared'
6948 ;;
6949
6950 sysv4*MP*)
6951 if test -d /usr/nec; then
6952 lt_prog_compiler_pic=-Kconform_pic
6953 fi
6954 ;;
6955
drh71eb93e2001-09-28 01:34:43 +00006956 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006957 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006958 ;;
6959 esac
6960 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006962 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 aix*)
6964 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006965 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006966 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006968 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006970 fi
6971 ;;
6972
vapier6acb2cf2009-01-28 04:46:28 +00006973 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006974 # This hack is so that the source file can tell whether it is being
6975 # built for inclusion in a dll (and should export symbols for example).
6976 lt_prog_compiler_pic='-DDLL_EXPORT'
6977 ;;
6978
a.rottmann84e63352003-03-24 09:42:16 +00006979 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 lt_prog_compiler_wl='-Wl,'
6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006983 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006984 hppa*64*|ia64*)
6985 # +Z the default
6986 ;;
6987 *)
6988 lt_prog_compiler_pic='+Z'
6989 ;;
6990 esac
6991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6992 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006993 ;;
6994
6995 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006996 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006997 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006999 ;;
7000
mlcreech636a9952008-05-05 22:52:56 +00007001 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00007002 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00007003 # old Intel for x86_64 which still supported -KPIC.
7004 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007005 lt_prog_compiler_wl='-Wl,'
7006 lt_prog_compiler_pic='-KPIC'
7007 lt_prog_compiler_static='-static'
7008 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007009 # icc used to be incompatible with GCC.
7010 # ICC 10 doesn't accept -KPIC any more.
7011 icc* | ifort*)
7012 lt_prog_compiler_wl='-Wl,'
7013 lt_prog_compiler_pic='-fPIC'
7014 lt_prog_compiler_static='-static'
7015 ;;
7016 # Lahey Fortran 8.1.
7017 lf95*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='--shared'
7020 lt_prog_compiler_static='--static'
7021 ;;
vapier7f19c022007-02-17 14:46:31 +00007022 pgcc* | pgf77* | pgf90* | pgf95*)
7023 # Portland Group compilers (*not* the Pentium gcc compiler,
7024 # which looks to be a dead project)
7025 lt_prog_compiler_wl='-Wl,'
7026 lt_prog_compiler_pic='-fpic'
7027 lt_prog_compiler_static='-Bstatic'
7028 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007029 ccc*)
7030 lt_prog_compiler_wl='-Wl,'
7031 # All Alpha code is PIC.
7032 lt_prog_compiler_static='-non_shared'
7033 ;;
mlcreech636a9952008-05-05 22:52:56 +00007034 xl*)
7035 # IBM XL C 8.0/Fortran 10.1 on PPC
7036 lt_prog_compiler_wl='-Wl,'
7037 lt_prog_compiler_pic='-qpic'
7038 lt_prog_compiler_static='-qstaticlink'
7039 ;;
7040 *)
7041 case `$CC -V 2>&1 | sed 5q` in
7042 *Sun\ C*)
7043 # Sun C 5.9
7044 lt_prog_compiler_pic='-KPIC'
7045 lt_prog_compiler_static='-Bstatic'
7046 lt_prog_compiler_wl='-Wl,'
7047 ;;
7048 *Sun\ F*)
7049 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_wl=''
7053 ;;
7054 esac
7055 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007056 esac
drh71eb93e2001-09-28 01:34:43 +00007057 ;;
7058
mlcreech636a9952008-05-05 22:52:56 +00007059 newsos6)
7060 lt_prog_compiler_pic='-KPIC'
7061 lt_prog_compiler_static='-Bstatic'
7062 ;;
7063
7064 *nto* | *qnx*)
7065 # QNX uses GNU C++, but need to define -shared option too, otherwise
7066 # it will coredump.
7067 lt_prog_compiler_pic='-fPIC -shared'
7068 ;;
7069
drh71eb93e2001-09-28 01:34:43 +00007070 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007071 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007072 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007073 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007074 ;;
7075
mlcreech636a9952008-05-05 22:52:56 +00007076 rdos*)
7077 lt_prog_compiler_static='-non_shared'
7078 ;;
7079
drh71eb93e2001-09-28 01:34:43 +00007080 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007081 lt_prog_compiler_pic='-KPIC'
7082 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007083 case $cc_basename in
7084 f77* | f90* | f95*)
7085 lt_prog_compiler_wl='-Qoption ld ';;
7086 *)
7087 lt_prog_compiler_wl='-Wl,';;
7088 esac
drh71eb93e2001-09-28 01:34:43 +00007089 ;;
7090
7091 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007092 lt_prog_compiler_wl='-Qoption ld '
7093 lt_prog_compiler_pic='-PIC'
7094 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007095 ;;
7096
vapier7f19c022007-02-17 14:46:31 +00007097 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007098 lt_prog_compiler_wl='-Wl,'
7099 lt_prog_compiler_pic='-KPIC'
7100 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007101 ;;
7102
7103 sysv4*MP*)
7104 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 lt_prog_compiler_pic='-Kconform_pic'
7106 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007107 fi
7108 ;;
7109
vapier7f19c022007-02-17 14:46:31 +00007110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7111 lt_prog_compiler_wl='-Wl,'
7112 lt_prog_compiler_pic='-KPIC'
7113 lt_prog_compiler_static='-Bstatic'
7114 ;;
7115
7116 unicos*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_can_build_shared=no
7119 ;;
7120
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 uts4*)
7122 lt_prog_compiler_pic='-pic'
7123 lt_prog_compiler_static='-Bstatic'
7124 ;;
7125
drh71eb93e2001-09-28 01:34:43 +00007126 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007127 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007128 ;;
7129 esac
7130 fi
7131
mlcreech636a9952008-05-05 22:52:56 +00007132case $host_os in
7133 # For platforms which do not support PIC, -DPIC is meaningless:
7134 *djgpp*)
7135 lt_prog_compiler_pic=
7136 ;;
7137 *)
7138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7139 ;;
7140esac
drh710658c2012-01-16 13:00:05 +00007141{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00007142$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007143
7144
7145
7146
7147
drh71eb93e2001-09-28 01:34:43 +00007148
a.rottmann9bc8b932004-02-29 15:18:31 +00007149#
7150# Check to make sure the PIC flag actually works.
7151#
7152if test -n "$lt_prog_compiler_pic"; then
drh710658c2012-01-16 13:00:05 +00007153 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007154$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007155if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007156 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007157else
mlcreech636a9952008-05-05 22:52:56 +00007158 lt_cv_prog_compiler_pic_works=no
7159 ac_outfile=conftest.$ac_objext
7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007161 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7162 # Insert the option either (1) after the last *FLAGS variable, or
7163 # (2) before a word containing "conftest.", or (3) at the end.
7164 # Note that $ac_compile itself does not contain backslashes and begins
7165 # with a dollar sign (not a hyphen), so the echo should work correctly.
7166 # The option is referenced via a variable to avoid confusing sed.
7167 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7170 -e 's:$: $lt_compiler_flag:'`
drhe4f9b9b2013-08-28 18:18:12 +00007171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007172 (eval "$lt_compile" 2>conftest.err)
7173 ac_status=$?
7174 cat conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00007175 echo "$as_me:7175: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007176 if (exit $ac_status) && test -s "$ac_outfile"; then
7177 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007178 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7181 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007182 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007183 fi
7184 fi
mlcreech636a9952008-05-05 22:52:56 +00007185 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007186
a.rottmann9bc8b932004-02-29 15:18:31 +00007187fi
drh710658c2012-01-16 13:00:05 +00007188{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007189$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007190
mlcreech636a9952008-05-05 22:52:56 +00007191if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007192 case $lt_prog_compiler_pic in
7193 "" | " "*) ;;
7194 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7195 esac
drh71eb93e2001-09-28 01:34:43 +00007196else
a.rottmann9bc8b932004-02-29 15:18:31 +00007197 lt_prog_compiler_pic=
7198 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007199fi
7200
a.rottmann84e63352003-03-24 09:42:16 +00007201fi
mlcreech636a9952008-05-05 22:52:56 +00007202
7203
7204
7205
7206
a.rottmann84e63352003-03-24 09:42:16 +00007207
vapier7f19c022007-02-17 14:46:31 +00007208#
7209# Check to make sure the static flag actually works.
7210#
7211wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +00007212{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007213$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007214if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007215 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007216else
mlcreech636a9952008-05-05 22:52:56 +00007217 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007218 save_LDFLAGS="$LDFLAGS"
7219 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007220 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007221 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7222 # The linker can only warn and ignore the option if not recognized
7223 # So say no if there are warnings
7224 if test -s conftest.err; then
7225 # Append any errors to the config.log.
7226 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007227 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7229 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007230 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007231 fi
7232 else
mlcreech636a9952008-05-05 22:52:56 +00007233 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007234 fi
7235 fi
mlcreech636a9952008-05-05 22:52:56 +00007236 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007237 LDFLAGS="$save_LDFLAGS"
7238
7239fi
drh710658c2012-01-16 13:00:05 +00007240{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007241$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007242
mlcreech636a9952008-05-05 22:52:56 +00007243if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007244 :
7245else
7246 lt_prog_compiler_static=
7247fi
7248
7249
mlcreech636a9952008-05-05 22:52:56 +00007250
7251
7252
7253
7254
drh710658c2012-01-16 13:00:05 +00007255 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007257if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007258 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007259else
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007261 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 mkdir conftest
7263 cd conftest
7264 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007266
a.rottmann9bc8b932004-02-29 15:18:31 +00007267 lt_compiler_flag="-o out/conftest2.$ac_objext"
7268 # Insert the option either (1) after the last *FLAGS variable, or
7269 # (2) before a word containing "conftest.", or (3) at the end.
7270 # Note that $ac_compile itself does not contain backslashes and begins
7271 # with a dollar sign (not a hyphen), so the echo should work correctly.
7272 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7275 -e 's:$: $lt_compiler_flag:'`
drhe4f9b9b2013-08-28 18:18:12 +00007276 (eval echo "\"\$as_me:7276: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007277 (eval "$lt_compile" 2>out/conftest.err)
7278 ac_status=$?
7279 cat out/conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00007280 echo "$as_me:7280: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7282 then
7283 # The compiler can only warn and ignore the option if not recognized
7284 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007285 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007288 lt_cv_prog_compiler_c_o=yes
7289 fi
7290 fi
vapier7f19c022007-02-17 14:46:31 +00007291 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007292 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007293 # SGI C++ compiler will create directory out/ii_files/ for
7294 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7296 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007297 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007298 $RM -r conftest
7299 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007300
7301fi
drh710658c2012-01-16 13:00:05 +00007302{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007303$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007304
7305
7306
7307
7308
7309
drh710658c2012-01-16 13:00:05 +00007310 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007311$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007312if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007313 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007314else
7315 lt_cv_prog_compiler_c_o=no
7316 $RM -r conftest 2>/dev/null
7317 mkdir conftest
7318 cd conftest
7319 mkdir out
7320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7321
7322 lt_compiler_flag="-o out/conftest2.$ac_objext"
7323 # Insert the option either (1) after the last *FLAGS variable, or
7324 # (2) before a word containing "conftest.", or (3) at the end.
7325 # Note that $ac_compile itself does not contain backslashes and begins
7326 # with a dollar sign (not a hyphen), so the echo should work correctly.
7327 lt_compile=`echo "$ac_compile" | $SED \
7328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7330 -e 's:$: $lt_compiler_flag:'`
drhe4f9b9b2013-08-28 18:18:12 +00007331 (eval echo "\"\$as_me:7331: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007332 (eval "$lt_compile" 2>out/conftest.err)
7333 ac_status=$?
7334 cat out/conftest.err >&5
drhe4f9b9b2013-08-28 18:18:12 +00007335 echo "$as_me:7335: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7337 then
7338 # The compiler can only warn and ignore the option if not recognized
7339 # So say no if there are warnings
7340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7343 lt_cv_prog_compiler_c_o=yes
7344 fi
7345 fi
7346 chmod u+w . 2>&5
7347 $RM conftest*
7348 # SGI C++ compiler will create directory out/ii_files/ for
7349 # template instantiation
7350 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7351 $RM out/* && rmdir out
7352 cd ..
7353 $RM -r conftest
7354 $RM conftest*
7355
7356fi
drh710658c2012-01-16 13:00:05 +00007357{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007358$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007359
7360
drh71eb93e2001-09-28 01:34:43 +00007361
a.rottmann84e63352003-03-24 09:42:16 +00007362
drh71eb93e2001-09-28 01:34:43 +00007363hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007364if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007365 # do not overwrite the value of need_locks provided by the user
drh710658c2012-01-16 13:00:05 +00007366 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007367$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007368 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007369 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007370 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7371 touch conftest.a
7372 ln conftest.a conftest.b 2>&5 || hard_links=no
7373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh710658c2012-01-16 13:00:05 +00007374 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007375$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007376 if test "$hard_links" = no; then
drh710658c2012-01-16 13:00:05 +00007377 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007378$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007379 need_locks=warn
7380 fi
7381else
7382 need_locks=no
7383fi
7384
mlcreech636a9952008-05-05 22:52:56 +00007385
7386
7387
7388
7389
drh710658c2012-01-16 13:00:05 +00007390 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007391$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007392
7393 runpath_var=
7394 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007395 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007396 archive_cmds=
7397 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007398 compiler_needs_object=no
7399 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007400 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007401 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7402 hardcode_automatic=no
7403 hardcode_direct=no
7404 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007405 hardcode_libdir_flag_spec=
7406 hardcode_libdir_flag_spec_ld=
7407 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007408 hardcode_minus_L=no
7409 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007410 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007411 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007412 module_cmds=
7413 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007414 old_archive_from_new_cmds=
7415 old_archive_from_expsyms_cmds=
7416 thread_safe_flag_spec=
7417 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007418 # include_expsyms should be a list of space-separated symbols to be *always*
7419 # included in the symbol list
7420 include_expsyms=
7421 # exclude_expsyms can be an extended regexp of symbols to exclude
7422 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7423 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7424 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007425 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007426 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7427 # platforms (ab)use it in PIC code, but their linkers get confused if
7428 # the symbol is explicitly referenced. Since portable code cannot
7429 # rely on this symbol name, it's probably fine to never include it in
7430 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007431 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007432 extract_expsyms_cmds=
7433
7434 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007435 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007436 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7437 # When not using gcc, we currently assume that we are using
7438 # Microsoft Visual C++.
7439 if test "$GCC" != yes; then
7440 with_gnu_ld=no
7441 fi
7442 ;;
vapier7f19c022007-02-17 14:46:31 +00007443 interix*)
7444 # we just hope/assume this is gcc and not c89 (= MSVC++)
7445 with_gnu_ld=yes
7446 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007447 openbsd*)
7448 with_gnu_ld=no
7449 ;;
7450 esac
7451
7452 ld_shlibs=yes
7453 if test "$with_gnu_ld" = yes; then
7454 # If archive_cmds runs LD, not CC, wlarc should be empty
7455 wlarc='${wl}'
7456
vapier7f19c022007-02-17 14:46:31 +00007457 # Set some defaults for GNU ld with shared library support. These
7458 # are reset later if shared libraries are not supported. Putting them
7459 # here allows them to be overridden if necessary.
7460 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007462 export_dynamic_flag_spec='${wl}--export-dynamic'
7463 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007464 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7465 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7466 else
7467 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007468 fi
7469 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007470 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007471 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7472 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7473 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7474 *\ 2.11.*) ;; # other 2.11 versions
7475 *) supports_anon_versioning=yes ;;
7476 esac
7477
a.rottmann9bc8b932004-02-29 15:18:31 +00007478 # See if GNU ld supports shared libraries.
7479 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007480 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007481 # On AIX/PPC, the GNU linker is very broken
7482 if test "$host_cpu" != ia64; then
7483 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007484 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007485
7486*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7487*** to be unable to reliably create shared libraries on AIX.
7488*** Therefore, libtool is disabling shared libraries support. If you
7489*** really care for shared libraries, you may want to modify your PATH
7490*** so that a non-GNU linker is found, and then restart.
7491
mlcreech636a9952008-05-05 22:52:56 +00007492_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007493 fi
7494 ;;
7495
7496 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007497 case $host_cpu in
7498 powerpc)
7499 # see comment about AmigaOS4 .so support
7500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 archive_expsym_cmds=''
7502 ;;
7503 m68k)
7504 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)'
7505 hardcode_libdir_flag_spec='-L$libdir'
7506 hardcode_minus_L=yes
7507 ;;
7508 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007509 ;;
7510
7511 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007513 allow_undefined_flag=unsupported
7514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7515 # support --undefined. This deserves some investigation. FIXME
7516 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 else
7518 ld_shlibs=no
7519 fi
7520 ;;
7521
vapier6acb2cf2009-01-28 04:46:28 +00007522 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007523 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007524 # as there is no search path for DLLs.
7525 hardcode_libdir_flag_spec='-L$libdir'
7526 allow_undefined_flag=unsupported
7527 always_export_symbols=no
7528 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007529 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 +00007530
mlcreech636a9952008-05-05 22:52:56 +00007531 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007532 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 +00007533 # If the export-symbols file already is a .def file (1st line
7534 # is EXPORTS), use it as is; otherwise, prepend...
7535 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7536 cp $export_symbols $output_objdir/$soname.def;
7537 else
7538 echo EXPORTS > $output_objdir/$soname.def;
7539 cat $export_symbols >> $output_objdir/$soname.def;
7540 fi~
vapier7f19c022007-02-17 14:46:31 +00007541 $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 +00007542 else
7543 ld_shlibs=no
7544 fi
7545 ;;
7546
mlcreech636a9952008-05-05 22:52:56 +00007547 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007548 hardcode_direct=no
7549 hardcode_shlibpath_var=no
7550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551 export_dynamic_flag_spec='${wl}-E'
7552 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7553 # Instead, shared libraries are loaded at an image base (0x10000000 by
7554 # default) and relocated if they conflict, which is a slow very memory
7555 # consuming and fragmenting process. To avoid this, we pick a random,
7556 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7557 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7559 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'
7560 ;;
7561
mlcreech636a9952008-05-05 22:52:56 +00007562 gnu* | linux* | tpf* | k*bsd*-gnu)
7563 tmp_diet=no
7564 if test "$host_os" = linux-dietlibc; then
7565 case $cc_basename in
7566 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7567 esac
7568 fi
7569 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7570 && test "$tmp_diet" = no
7571 then
vapier7f19c022007-02-17 14:46:31 +00007572 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007573 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007574 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007575 pgcc*) # Portland Group C compiler
7576 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 +00007577 tmp_addflag=' $pic_flag'
7578 ;;
7579 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007580 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 +00007581 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007582 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007583 tmp_addflag=' -i_dynamic' ;;
7584 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7585 tmp_addflag=' -i_dynamic -nofor_main' ;;
7586 ifc* | ifort*) # Intel Fortran compiler
7587 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007588 lf95*) # Lahey Fortran 8.1
7589 whole_archive_flag_spec=
7590 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007591 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7592 tmp_sharedflag='-qmkshrobj'
7593 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007594 esac
mlcreech636a9952008-05-05 22:52:56 +00007595 case `$CC -V 2>&1 | sed 5q` in
7596 *Sun\ C*) # Sun C 5.9
7597 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'
7598 compiler_needs_object=yes
7599 tmp_sharedflag='-G' ;;
7600 *Sun\ F*) # Sun Fortran 8.3
7601 tmp_sharedflag='-G' ;;
7602 esac
7603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007604
mlcreech636a9952008-05-05 22:52:56 +00007605 if test "x$supports_anon_versioning" = xyes; then
7606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608 echo "local: *; };" >> $output_objdir/$libname.ver~
7609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7610 fi
7611
7612 case $cc_basename in
7613 xlf*)
7614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7616 hardcode_libdir_flag_spec=
7617 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7618 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7619 if test "x$supports_anon_versioning" = xyes; then
7620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7622 echo "local: *; };" >> $output_objdir/$libname.ver~
7623 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7624 fi
7625 ;;
7626 esac
vapier7f19c022007-02-17 14:46:31 +00007627 else
mlcreech636a9952008-05-05 22:52:56 +00007628 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007629 fi
7630 ;;
7631
7632 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7635 wlarc=
7636 else
7637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7639 fi
7640 ;;
7641
vapier7f19c022007-02-17 14:46:31 +00007642 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007645 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007646
7647*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7648*** create shared libraries on Solaris systems. Therefore, libtool
7649*** is disabling shared libraries support. We urge you to upgrade GNU
7650*** binutils to release 2.9.1 or newer. Another option is to modify
7651*** your PATH or compiler configuration so that the native linker is
7652*** used, and then restart.
7653
mlcreech636a9952008-05-05 22:52:56 +00007654_LT_EOF
7655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7658 else
7659 ld_shlibs=no
7660 fi
7661 ;;
7662
vapier7f19c022007-02-17 14:46:31 +00007663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7664 case `$LD -v 2>&1` in
7665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7666 ld_shlibs=no
7667 cat <<_LT_EOF 1>&2
7668
7669*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7670*** reliably create shared libraries on SCO systems. Therefore, libtool
7671*** is disabling shared libraries support. We urge you to upgrade GNU
7672*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7673*** your PATH or compiler configuration so that the native linker is
7674*** used, and then restart.
7675
7676_LT_EOF
7677 ;;
7678 *)
mlcreech636a9952008-05-05 22:52:56 +00007679 # For security reasons, it is highly recommended that you always
7680 # use absolute paths for naming shared libraries, and exclude the
7681 # DT_RUNPATH tag from executables and libraries. But doing so
7682 # requires that you compile everything twice, which is a pain.
7683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7686 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 +00007687 else
7688 ld_shlibs=no
7689 fi
7690 ;;
7691 esac
7692 ;;
7693
a.rottmann9bc8b932004-02-29 15:18:31 +00007694 sunos4*)
7695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7696 wlarc=
7697 hardcode_direct=yes
7698 hardcode_shlibpath_var=no
7699 ;;
7700
a.rottmann9bc8b932004-02-29 15:18:31 +00007701 *)
mlcreech636a9952008-05-05 22:52:56 +00007702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7705 else
7706 ld_shlibs=no
7707 fi
7708 ;;
7709 esac
7710
vapier7f19c022007-02-17 14:46:31 +00007711 if test "$ld_shlibs" = no; then
7712 runpath_var=
7713 hardcode_libdir_flag_spec=
7714 export_dynamic_flag_spec=
7715 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 fi
7717 else
7718 # PORTME fill in a description of your system's linker (not GNU ld)
7719 case $host_os in
7720 aix3*)
7721 allow_undefined_flag=unsupported
7722 always_export_symbols=yes
7723 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'
7724 # Note: this linker hardcodes the directories in LIBPATH if there
7725 # are no directories specified by -L.
7726 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007728 # Neither direct hardcoding nor static linking is supported with a
7729 # broken collect2.
7730 hardcode_direct=unsupported
7731 fi
7732 ;;
7733
mlcreech636a9952008-05-05 22:52:56 +00007734 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007735 if test "$host_cpu" = ia64; then
7736 # On IA64, the linker does run time linking by default, so we don't
7737 # have to do anything special.
7738 aix_use_runtimelinking=no
7739 exp_sym_flag='-Bexport'
7740 no_entry_flag=""
7741 else
7742 # If we're using GNU nm, then we don't want the "-C" option.
7743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007744 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7745 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 +00007746 else
mlcreech636a9952008-05-05 22:52:56 +00007747 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 +00007748 fi
7749 aix_use_runtimelinking=no
7750
7751 # Test if we are trying to use run time linking or normal
7752 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7753 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007754 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007756 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7757 aix_use_runtimelinking=yes
7758 break
7759 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007760 done
vapier7f19c022007-02-17 14:46:31 +00007761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007762 esac
7763
7764 exp_sym_flag='-bexport'
7765 no_entry_flag='-bnoentry'
7766 fi
7767
7768 # When large executables or shared objects are built, AIX ld can
7769 # have problems creating the table of contents. If linking a library
7770 # or program results in "error TOC overflow" add -mminimal-toc to
7771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7773
7774 archive_cmds=''
7775 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007776 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007777 hardcode_libdir_separator=':'
7778 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007779 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007780
7781 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007782 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 # We only want to do this on AIX 4.2 and lower, the check
7784 # below for broken collect2 doesn't work under 4.3+
7785 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007786 if test -f "$collect2name" &&
7787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007788 then
mlcreech636a9952008-05-05 22:52:56 +00007789 # We have reworked collect2
7790 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007791 else
mlcreech636a9952008-05-05 22:52:56 +00007792 # We have old collect2
7793 hardcode_direct=unsupported
7794 # It fails to find uninstalled libraries when the uninstalled
7795 # path is not listed in the libpath. Setting hardcode_minus_L
7796 # to unsupported forces relinking
7797 hardcode_minus_L=yes
7798 hardcode_libdir_flag_spec='-L$libdir'
7799 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 fi
vapier7f19c022007-02-17 14:46:31 +00007801 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007802 esac
7803 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007804 if test "$aix_use_runtimelinking" = yes; then
7805 shared_flag="$shared_flag "'${wl}-G'
7806 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007807 else
7808 # not using gcc
7809 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007810 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7811 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 shared_flag='-G'
7813 else
vapier7f19c022007-02-17 14:46:31 +00007814 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007815 shared_flag='${wl}-G'
7816 else
7817 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007818 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007819 fi
7820 fi
7821
vapier6acb2cf2009-01-28 04:46:28 +00007822 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 # It seems that -bexpall does not export symbols beginning with
7824 # underscore (_), so it is better to generate a list of symbols to export.
7825 always_export_symbols=yes
7826 if test "$aix_use_runtimelinking" = yes; then
7827 # Warning - without using the other runtime loading flags (-brtl),
7828 # -berok will link without error, but may produce a broken library.
7829 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007830 # Determine the default libpath from the value encoded in an
7831 # empty executable.
drh710658c2012-01-16 13:00:05 +00007832 cat >conftest.$ac_ext <<_ACEOF
7833/* confdefs.h. */
7834_ACEOF
7835cat confdefs.h >>conftest.$ac_ext
7836cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007837/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007838
a.rottmann84e63352003-03-24 09:42:16 +00007839int
7840main ()
7841{
a.rottmann9bc8b932004-02-29 15:18:31 +00007842
a.rottmann84e63352003-03-24 09:42:16 +00007843 ;
7844 return 0;
7845}
7846_ACEOF
drh710658c2012-01-16 13:00:05 +00007847rm -f conftest.$ac_objext conftest$ac_exeext
7848if { (ac_try="$ac_link"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7855 (eval "$ac_link") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest$ac_exeext && {
7865 test "$cross_compiling" = yes ||
7866 $as_test_x conftest$ac_exeext
7867 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007868
mlcreech636a9952008-05-05 22:52:56 +00007869lt_aix_libpath_sed='
7870 /Import File Strings/,/^$/ {
7871 /^0/ {
7872 s/^0 *\(.*\)$/\1/
7873 p
7874 }
7875 }'
7876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007877# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007878if test -z "$aix_libpath"; then
7879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7880fi
drh710658c2012-01-16 13:00:05 +00007881else
7882 $as_echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885
a.rottmann84e63352003-03-24 09:42:16 +00007886fi
drh710658c2012-01-16 13:00:05 +00007887
7888rm -rf conftest.dSYM
7889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7890 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007892
mlcreech636a9952008-05-05 22:52:56 +00007893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7894 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"
7895 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007896 if test "$host_cpu" = ia64; then
7897 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7898 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007899 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 +00007900 else
mlcreech636a9952008-05-05 22:52:56 +00007901 # Determine the default libpath from the value encoded in an
7902 # empty executable.
drh710658c2012-01-16 13:00:05 +00007903 cat >conftest.$ac_ext <<_ACEOF
7904/* confdefs.h. */
7905_ACEOF
7906cat confdefs.h >>conftest.$ac_ext
7907cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007908/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007909
a.rottmann9bc8b932004-02-29 15:18:31 +00007910int
7911main ()
7912{
a.rottmann84e63352003-03-24 09:42:16 +00007913
a.rottmann9bc8b932004-02-29 15:18:31 +00007914 ;
7915 return 0;
7916}
7917_ACEOF
drh710658c2012-01-16 13:00:05 +00007918rm -f conftest.$ac_objext conftest$ac_exeext
7919if { (ac_try="$ac_link"
7920case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7923esac
7924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7925$as_echo "$ac_try_echo") >&5
7926 (eval "$ac_link") 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest$ac_exeext && {
7936 test "$cross_compiling" = yes ||
7937 $as_test_x conftest$ac_exeext
7938 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007939
mlcreech636a9952008-05-05 22:52:56 +00007940lt_aix_libpath_sed='
7941 /Import File Strings/,/^$/ {
7942 /^0/ {
7943 s/^0 *\(.*\)$/\1/
7944 p
7945 }
7946 }'
7947aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007948# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007949if test -z "$aix_libpath"; then
7950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7951fi
drh710658c2012-01-16 13:00:05 +00007952else
7953 $as_echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956
a.rottmann9bc8b932004-02-29 15:18:31 +00007957fi
drh710658c2012-01-16 13:00:05 +00007958
7959rm -rf conftest.dSYM
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007963
a.rottmann9bc8b932004-02-29 15:18:31 +00007964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7965 # Warning - without using the other run time loading flags,
7966 # -berok will link without error, but may produce a broken library.
7967 no_undefined_flag=' ${wl}-bernotok'
7968 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007969 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007970 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007971 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007972 # This is similar to how AIX traditionally builds its shared libraries.
7973 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 +00007974 fi
7975 fi
a.rottmann84e63352003-03-24 09:42:16 +00007976 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007977
7978 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007979 case $host_cpu in
7980 powerpc)
7981 # see comment about AmigaOS4 .so support
7982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983 archive_expsym_cmds=''
7984 ;;
7985 m68k)
7986 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)'
7987 hardcode_libdir_flag_spec='-L$libdir'
7988 hardcode_minus_L=yes
7989 ;;
7990 esac
a.rottmann84e63352003-03-24 09:42:16 +00007991 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007992
vapier7f19c022007-02-17 14:46:31 +00007993 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007994 export_dynamic_flag_spec=-rdynamic
7995 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007996
vapier6acb2cf2009-01-28 04:46:28 +00007997 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007998 # When not using gcc, we currently assume that we are using
7999 # Microsoft Visual C++.
8000 # hardcode_libdir_flag_spec is actually meaningless, as there is
8001 # no search path for DLLs.
8002 hardcode_libdir_flag_spec=' '
8003 allow_undefined_flag=unsupported
8004 # Tell ltmain to make .lib files, not .a files.
8005 libext=lib
8006 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00008007 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008008 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008009 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 +00008010 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008011 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008012 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008013 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 fix_srcfile_path='`cygpath -w "$srcfile"`'
8015 enable_shared_with_static_runtimes=yes
8016 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008017
a.rottmann9bc8b932004-02-29 15:18:31 +00008018 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008019
8020
8021 archive_cmds_need_lc=no
8022 hardcode_direct=no
8023 hardcode_automatic=yes
8024 hardcode_shlibpath_var=unsupported
8025 whole_archive_flag_spec=''
8026 link_all_deplibs=yes
8027 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008028 case $cc_basename in
8029 ifort*) _lt_dar_can_shared=yes ;;
8030 *) _lt_dar_can_shared=$GCC ;;
8031 esac
8032 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008033 output_verbose_link_cmd=echo
8034 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8035 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8036 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}"
8037 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}"
8038
8039 else
8040 ld_shlibs=no
8041 fi
8042
a.rottmann9bc8b932004-02-29 15:18:31 +00008043 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008044
a.rottmann9bc8b932004-02-29 15:18:31 +00008045 dgux*)
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_libdir_flag_spec='-L$libdir'
8048 hardcode_shlibpath_var=no
8049 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008050
a.rottmann9bc8b932004-02-29 15:18:31 +00008051 freebsd1*)
8052 ld_shlibs=no
8053 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008054
a.rottmann9bc8b932004-02-29 15:18:31 +00008055 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8056 # support. Future versions do this automatically, but an explicit c++rt0.o
8057 # does not break anything, and helps significantly (at the cost of a little
8058 # extra space).
8059 freebsd2.2*)
8060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8061 hardcode_libdir_flag_spec='-R$libdir'
8062 hardcode_direct=yes
8063 hardcode_shlibpath_var=no
8064 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008065
a.rottmann9bc8b932004-02-29 15:18:31 +00008066 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8067 freebsd2*)
8068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8069 hardcode_direct=yes
8070 hardcode_minus_L=yes
8071 hardcode_shlibpath_var=no
8072 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008073
a.rottmann9bc8b932004-02-29 15:18:31 +00008074 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008075 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008076 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8077 hardcode_libdir_flag_spec='-R$libdir'
8078 hardcode_direct=yes
8079 hardcode_shlibpath_var=no
8080 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008081
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 hpux9*)
8083 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008084 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 +00008085 else
mlcreech636a9952008-05-05 22:52:56 +00008086 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 +00008087 fi
8088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8089 hardcode_libdir_separator=:
8090 hardcode_direct=yes
8091
8092 # hardcode_minus_L: Not really in the search PATH,
8093 # but as the default location of the library.
8094 hardcode_minus_L=yes
8095 export_dynamic_flag_spec='${wl}-E'
8096 ;;
8097
vapier7f19c022007-02-17 14:46:31 +00008098 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008099 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8101 else
8102 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8103 fi
8104 if test "$with_gnu_ld" = no; then
8105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008106 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008107 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008108 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008109 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008110 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008111 # hardcode_minus_L: Not really in the search PATH,
8112 # but as the default location of the library.
8113 hardcode_minus_L=yes
8114 fi
8115 ;;
8116
8117 hpux11*)
8118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8119 case $host_cpu in
8120 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8122 ;;
vapier7f19c022007-02-17 14:46:31 +00008123 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008124 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008125 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008126 *)
8127 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8128 ;;
8129 esac
8130 else
vapier7f19c022007-02-17 14:46:31 +00008131 case $host_cpu in
8132 hppa*64*)
8133 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 ;;
8135 ia64*)
8136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008137 ;;
8138 *)
vapier7f19c022007-02-17 14:46:31 +00008139 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 +00008140 ;;
8141 esac
8142 fi
8143 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8145 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008146
vapier7f19c022007-02-17 14:46:31 +00008147 case $host_cpu in
8148 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008149 hardcode_direct=no
8150 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008151 ;;
8152 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008153 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008154 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008155 export_dynamic_flag_spec='${wl}-E'
8156
8157 # hardcode_minus_L: Not really in the search PATH,
8158 # but as the default location of the library.
8159 hardcode_minus_L=yes
8160 ;;
8161 esac
8162 fi
8163 ;;
8164
8165 irix5* | irix6* | nonstopux*)
8166 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008167 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'
8168 # Try to use the -exported_symbol ld option, if it does not
8169 # work, assume that -exports_file does not work either and
8170 # implicitly export all symbols.
8171 save_LDFLAGS="$LDFLAGS"
8172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drh710658c2012-01-16 13:00:05 +00008173 cat >conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00008174int foo(void) {}
8175_ACEOF
drh710658c2012-01-16 13:00:05 +00008176rm -f conftest.$ac_objext conftest$ac_exeext
8177if { (ac_try="$ac_link"
8178case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8181esac
8182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8183$as_echo "$ac_try_echo") >&5
8184 (eval "$ac_link") 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest$ac_exeext && {
8194 test "$cross_compiling" = yes ||
8195 $as_test_x conftest$ac_exeext
8196 }; then
mlcreech636a9952008-05-05 22:52:56 +00008197 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'
8198
drh710658c2012-01-16 13:00:05 +00008199else
8200 $as_echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203
mlcreech636a9952008-05-05 22:52:56 +00008204fi
drh710658c2012-01-16 13:00:05 +00008205
8206rm -rf conftest.dSYM
8207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8208 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008209 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008210 else
mlcreech636a9952008-05-05 22:52:56 +00008211 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'
8212 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 +00008213 fi
mlcreech636a9952008-05-05 22:52:56 +00008214 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8216 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008217 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008218 link_all_deplibs=yes
8219 ;;
8220
vapier7f19c022007-02-17 14:46:31 +00008221 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8224 else
8225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8226 fi
8227 hardcode_libdir_flag_spec='-R$libdir'
8228 hardcode_direct=yes
8229 hardcode_shlibpath_var=no
8230 ;;
8231
8232 newsos6)
8233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_direct=yes
8235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8236 hardcode_libdir_separator=:
8237 hardcode_shlibpath_var=no
8238 ;;
8239
mlcreech636a9952008-05-05 22:52:56 +00008240 *nto* | *qnx*)
8241 ;;
8242
a.rottmann9bc8b932004-02-29 15:18:31 +00008243 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008244 if test -f /usr/libexec/ld.so; then
8245 hardcode_direct=yes
8246 hardcode_shlibpath_var=no
8247 hardcode_direct_absolute=yes
8248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8252 export_dynamic_flag_spec='${wl}-E'
8253 else
8254 case $host_os in
8255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8257 hardcode_libdir_flag_spec='-R$libdir'
8258 ;;
8259 *)
8260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8262 ;;
8263 esac
8264 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008265 else
mlcreech636a9952008-05-05 22:52:56 +00008266 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 fi
8268 ;;
8269
8270 os2*)
8271 hardcode_libdir_flag_spec='-L$libdir'
8272 hardcode_minus_L=yes
8273 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008274 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'
8275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008276 ;;
8277
8278 osf3*)
8279 if test "$GCC" = yes; then
8280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008281 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 +00008282 else
8283 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008284 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 +00008285 fi
mlcreech636a9952008-05-05 22:52:56 +00008286 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8288 hardcode_libdir_separator=:
8289 ;;
8290
8291 osf4* | osf5*) # as osf3* with the addition of -msym flag
8292 if test "$GCC" = yes; then
8293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008294 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 +00008295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296 else
8297 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008298 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'
8299 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~
8300 $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 +00008301
8302 # Both c and cxx compiler support -rpath directly
8303 hardcode_libdir_flag_spec='-rpath $libdir'
8304 fi
mlcreech636a9952008-05-05 22:52:56 +00008305 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008306 hardcode_libdir_separator=:
8307 ;;
8308
a.rottmann9bc8b932004-02-29 15:18:31 +00008309 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008310 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008311 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008312 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $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 +00008316 else
mlcreech636a9952008-05-05 22:52:56 +00008317 case `$CC -V 2>&1` in
8318 *"Compilers 5.0"*)
8319 wlarc=''
8320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8323 ;;
8324 *)
8325 wlarc='${wl}'
8326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8329 ;;
8330 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008331 fi
8332 hardcode_libdir_flag_spec='-R$libdir'
8333 hardcode_shlibpath_var=no
8334 case $host_os in
8335 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008336 *)
mlcreech636a9952008-05-05 22:52:56 +00008337 # The compiler driver will combine and reorder linker options,
8338 # but understands `-z linker_flag'. GCC discards it without `$wl',
8339 # but is careful enough not to reorder.
8340 # Supported since Solaris 2.6 (maybe 2.5.1?)
8341 if test "$GCC" = yes; then
8342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8343 else
8344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8345 fi
8346 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008347 esac
8348 link_all_deplibs=yes
8349 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008350
a.rottmann9bc8b932004-02-29 15:18:31 +00008351 sunos4*)
8352 if test "x$host_vendor" = xsequent; then
8353 # Use $CC to link under sequent, because it throws in some extra .o
8354 # files that make .init and .fini sections work.
8355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8356 else
8357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8358 fi
8359 hardcode_libdir_flag_spec='-L$libdir'
8360 hardcode_direct=yes
8361 hardcode_minus_L=yes
8362 hardcode_shlibpath_var=no
8363 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008364
a.rottmann9bc8b932004-02-29 15:18:31 +00008365 sysv4)
8366 case $host_vendor in
8367 sni)
8368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8369 hardcode_direct=yes # is this really true???
8370 ;;
8371 siemens)
8372 ## LD is ld it makes a PLAMLIB
8373 ## CC just makes a GrossModule.
8374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8375 reload_cmds='$CC -r -o $output$reload_objs'
8376 hardcode_direct=no
8377 ;;
8378 motorola)
8379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8381 ;;
8382 esac
8383 runpath_var='LD_RUN_PATH'
8384 hardcode_shlibpath_var=no
8385 ;;
8386
8387 sysv4.3*)
8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_shlibpath_var=no
8390 export_dynamic_flag_spec='-Bexport'
8391 ;;
8392
8393 sysv4*MP*)
8394 if test -d /usr/nec; then
8395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8396 hardcode_shlibpath_var=no
8397 runpath_var=LD_RUN_PATH
8398 hardcode_runpath_var=yes
8399 ld_shlibs=yes
8400 fi
8401 ;;
8402
mlcreech636a9952008-05-05 22:52:56 +00008403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008404 no_undefined_flag='${wl}-z,text'
8405 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008406 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008407 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008408
a.rottmann9bc8b932004-02-29 15:18:31 +00008409 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +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'
a.rottmann9bc8b932004-02-29 15:18:31 +00008412 else
vapier7f19c022007-02-17 14:46:31 +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'
a.rottmann9bc8b932004-02-29 15:18:31 +00008415 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008416 ;;
8417
vapier7f19c022007-02-17 14:46:31 +00008418 sysv5* | sco3.2v5* | sco5v6*)
8419 # Note: We can NOT use -z defs as we might desire, because we do not
8420 # link with -lc, and that would cause any symbols used from libc to
8421 # always be unresolved, which means just about no library would
8422 # ever link correctly. If we're not using GNU ld we use -z text
8423 # though, which does catch some bad symbols but isn't as heavy-handed
8424 # as -z defs.
8425 no_undefined_flag='${wl}-z,text'
8426 allow_undefined_flag='${wl}-z,nodefs'
8427 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008428 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008430 hardcode_libdir_separator=':'
8431 link_all_deplibs=yes
8432 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008433 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008434
8435 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008438 else
mlcreech636a9952008-05-05 22:52:56 +00008439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008441 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008442 ;;
8443
8444 uts4*)
8445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 hardcode_shlibpath_var=no
8448 ;;
8449
8450 *)
8451 ld_shlibs=no
8452 ;;
8453 esac
mlcreech636a9952008-05-05 22:52:56 +00008454
8455 if test x$host_vendor = xsni; then
8456 case $host in
8457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8458 export_dynamic_flag_spec='${wl}-Blargedynsym'
8459 ;;
8460 esac
8461 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008462 fi
8463
drh710658c2012-01-16 13:00:05 +00008464{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008465$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008466test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008467
mlcreech636a9952008-05-05 22:52:56 +00008468with_gnu_ld=$with_gnu_ld
8469
8470
danielk197733a14782008-08-04 14:50:05 +00008471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
a.rottmann9bc8b932004-02-29 15:18:31 +00008484#
8485# Do we need to explicitly link libc?
8486#
8487case "x$archive_cmds_need_lc" in
8488x|xyes)
8489 # Assume -lc should be added
8490 archive_cmds_need_lc=yes
8491
8492 if test "$enable_shared" = yes && test "$GCC" = yes; then
8493 case $archive_cmds in
8494 *'~'*)
8495 # FIXME: we may have to deal with multi-command sequences.
8496 ;;
8497 '$CC '*)
8498 # Test whether the compiler implicitly links with -lc since on some
8499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8500 # to ld, don't add -lc before -lgcc.
drh710658c2012-01-16 13:00:05 +00008501 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008502$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008503 $RM conftest*
8504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008505
drh710658c2012-01-16 13:00:05 +00008506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008507 (eval $ac_compile) 2>&5
8508 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008511 soname=conftest
8512 lib=conftest
8513 libobjs=conftest.$ac_objext
8514 deplibs=
8515 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008516 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008517 compiler_flags=-v
8518 linker_flags=-v
8519 verstring=
8520 output_objdir=.
8521 libname=conftest
8522 lt_save_allow_undefined_flag=$allow_undefined_flag
8523 allow_undefined_flag=
drh710658c2012-01-16 13:00:05 +00008524 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00008525 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008526 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }
a.rottmann9bc8b932004-02-29 15:18:31 +00008529 then
8530 archive_cmds_need_lc=no
8531 else
8532 archive_cmds_need_lc=yes
8533 fi
8534 allow_undefined_flag=$lt_save_allow_undefined_flag
8535 else
8536 cat conftest.err 1>&5
8537 fi
mlcreech636a9952008-05-05 22:52:56 +00008538 $RM conftest*
drh710658c2012-01-16 13:00:05 +00008539 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008540$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008541 ;;
8542 esac
drh71eb93e2001-09-28 01:34:43 +00008543 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008544 ;;
8545esac
drh71eb93e2001-09-28 01:34:43 +00008546
mlcreech636a9952008-05-05 22:52:56 +00008547
danielk197733a14782008-08-04 14:50:05 +00008548
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
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
drh710658c2012-01-16 13:00:05 +00008703 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008704$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008705
8706if test "$GCC" = yes; then
8707 case $host_os in
8708 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8709 *) lt_awk_arg="/^libraries:/" ;;
8710 esac
8711 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8713 # if the path contains ";" then we assume it to be the separator
8714 # otherwise default to the standard path separator (i.e. ":") - it is
8715 # assumed that no part of a normal pathname contains ";" but that should
8716 # okay in the real world where ";" in dirpaths is itself problematic.
8717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8718 else
8719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720 fi
8721 # Ok, now we have the path, separated by spaces, we can step through it
8722 # and add multilib dir if necessary.
8723 lt_tmp_lt_search_path_spec=
8724 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8725 for lt_sys_path in $lt_search_path_spec; do
8726 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8727 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8728 else
8729 test -d "$lt_sys_path" && \
8730 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8731 fi
8732 done
8733 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8734BEGIN {RS=" "; FS="/|\n";} {
8735 lt_foo="";
8736 lt_count=0;
8737 for (lt_i = NF; lt_i > 0; lt_i--) {
8738 if ($lt_i != "" && $lt_i != ".") {
8739 if ($lt_i == "..") {
8740 lt_count++;
8741 } else {
8742 if (lt_count == 0) {
8743 lt_foo="/" $lt_i lt_foo;
8744 } else {
8745 lt_count--;
8746 }
8747 }
8748 }
8749 }
8750 if (lt_foo != "") { lt_freq[lt_foo]++; }
8751 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8752}'`
8753 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8754else
8755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8756fi
drh71eb93e2001-09-28 01:34:43 +00008757library_names_spec=
8758libname_spec='lib$name'
8759soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008760shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008761postinstall_cmds=
8762postuninstall_cmds=
8763finish_cmds=
8764finish_eval=
8765shlibpath_var=
8766shlibpath_overrides_runpath=unknown
8767version_type=none
8768dynamic_linker="$host_os ld.so"
8769sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008770need_lib_prefix=unknown
8771hardcode_into_libs=no
8772
8773# when you set need_version to no, make sure it does not cause -set_version
8774# flags to be left without arguments
8775need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008776
8777case $host_os in
8778aix3*)
8779 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008781 shlibpath_var=LIBPATH
8782
a.rottmann9bc8b932004-02-29 15:18:31 +00008783 # AIX 3 has no versioning support, so we append a major version to the name.
8784 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008785 ;;
8786
mlcreech636a9952008-05-05 22:52:56 +00008787aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008788 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008789 need_lib_prefix=no
8790 need_version=no
8791 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008792 if test "$host_cpu" = ia64; then
8793 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008795 shlibpath_var=LD_LIBRARY_PATH
8796 else
8797 # With GCC up to 2.95.x, collect2 would create an import file
8798 # for dependence libraries. The import file would start with
8799 # the line `#! .'. This would cause the generated library to
8800 # depend on `.', always an invalid library. This was fixed in
8801 # development snapshots of GCC prior to 3.0.
8802 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008803 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8805 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008807 :
8808 else
8809 can_build_shared=no
8810 fi
8811 ;;
drh71eb93e2001-09-28 01:34:43 +00008812 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8814 # soname into executable. Probably we can add versioning support to
8815 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008816 if test "$aix_use_runtimelinking" = yes; then
8817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8818 # instead of lib<name>.a to let people know that these are not
8819 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008821 else
8822 # We preserve .a as extension for shared libraries through AIX4.2
8823 # and later when we are not doing run time linking.
8824 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008825 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008826 fi
8827 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008828 fi
8829 ;;
8830
8831amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008832 case $host_cpu in
8833 powerpc)
8834 # Since July 2007 AmigaOS4 officially supports .so libraries.
8835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8837 ;;
8838 m68k)
8839 library_names_spec='$libname.ixlibrary $libname.a'
8840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8841 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'
8842 ;;
8843 esac
drh71eb93e2001-09-28 01:34:43 +00008844 ;;
8845
8846beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008847 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008848 dynamic_linker="$host_os ld.so"
8849 shlibpath_var=LIBRARY_PATH
8850 ;;
8851
vapier7f19c022007-02-17 14:46:31 +00008852bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008853 version_type=linux
8854 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8858 shlibpath_var=LD_LIBRARY_PATH
8859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8861 # the default ld.so.conf also contains /usr/contrib/lib and
8862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8863 # libtool to hard-code these into programs
8864 ;;
8865
vapier6acb2cf2009-01-28 04:46:28 +00008866cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008867 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008868 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008869 need_version=no
8870 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008871
drh71eb93e2001-09-28 01:34:43 +00008872 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008874 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8876 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008878 dldir=$destdir/`dirname \$dlpath`~
8879 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008880 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008881 chmod a+x \$dldir/$dlname~
8882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8884 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008886 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008887 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008888 shlibpath_overrides_runpath=yes
8889
8890 case $host_os in
8891 cygwin*)
8892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8894 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8895 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008896 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008897 # MinGW DLLs use traditional 'lib' prefix
8898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008899 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8900 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008901 # It is most probably a Windows format PATH printed by
8902 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8903 # path with ; separators, and with drive letters. We can handle the
8904 # drive letters (cygwin fileutils understands them), so leave them,
8905 # especially as we might pass files found there to a mingw objdump,
8906 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008907 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008908 else
mlcreech636a9952008-05-05 22:52:56 +00008909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008910 fi
8911 ;;
8912 pw32*)
8913 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008914 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 +00008915 ;;
8916 esac
drh71eb93e2001-09-28 01:34:43 +00008917 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008918
drh71eb93e2001-09-28 01:34:43 +00008919 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008921 ;;
8922 esac
8923 dynamic_linker='Win32 ld.exe'
8924 # FIXME: first we should search . and the directory the executable is in
8925 shlibpath_var=PATH
8926 ;;
8927
8928darwin* | rhapsody*)
8929 dynamic_linker="$host_os dyld"
8930 version_type=darwin
8931 need_lib_prefix=no
8932 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008933 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008934 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008935 shlibpath_overrides_runpath=yes
8936 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008938
8939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8941 ;;
8942
8943dgux*)
8944 version_type=linux
8945 need_lib_prefix=no
8946 need_version=no
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008950 ;;
8951
a.rottmann84e63352003-03-24 09:42:16 +00008952freebsd1*)
8953 dynamic_linker=no
8954 ;;
8955
vapier7f19c022007-02-17 14:46:31 +00008956freebsd* | dragonfly*)
8957 # DragonFly does not have aout. When/if they implement a new
8958 # versioning mechanism, adjust this.
8959 if test -x /usr/bin/objformat; then
8960 objformat=`/usr/bin/objformat`
8961 else
8962 case $host_os in
8963 freebsd[123]*) objformat=aout ;;
8964 *) objformat=elf ;;
8965 esac
8966 fi
8967 # Handle Gentoo/FreeBSD as it was Linux
8968 case $host_vendor in
8969 gentoo)
8970 version_type=linux ;;
8971 *)
8972 version_type=freebsd-$objformat ;;
8973 esac
8974
drh71eb93e2001-09-28 01:34:43 +00008975 case $version_type in
8976 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008978 need_version=no
8979 need_lib_prefix=no
8980 ;;
8981 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008983 need_version=yes
8984 ;;
vapier7f19c022007-02-17 14:46:31 +00008985 linux)
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 need_lib_prefix=no
8989 need_version=no
8990 ;;
drh71eb93e2001-09-28 01:34:43 +00008991 esac
8992 shlibpath_var=LD_LIBRARY_PATH
8993 case $host_os in
8994 freebsd2*)
8995 shlibpath_overrides_runpath=yes
8996 ;;
vapier7f19c022007-02-17 14:46:31 +00008997 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008998 shlibpath_overrides_runpath=yes
8999 hardcode_into_libs=yes
9000 ;;
vapier7f19c022007-02-17 14:46:31 +00009001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00009003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 ;;
mlcreech636a9952008-05-05 22:52:56 +00009006 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00009007 shlibpath_overrides_runpath=yes
9008 hardcode_into_libs=yes
9009 ;;
drh71eb93e2001-09-28 01:34:43 +00009010 esac
9011 ;;
9012
9013gnu*)
9014 version_type=linux
9015 need_lib_prefix=no
9016 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9018 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009019 shlibpath_var=LD_LIBRARY_PATH
9020 hardcode_into_libs=yes
9021 ;;
9022
9023hpux9* | hpux10* | hpux11*)
9024 # Give a soname corresponding to the major version so that dld.sl refuses to
9025 # link against other versions.
9026 version_type=sunos
9027 need_lib_prefix=no
9028 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009029 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009030 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009031 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009032 hardcode_into_libs=yes
9033 dynamic_linker="$host_os dld.so"
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 if test "X$HPUX_IA64_MODE" = X32; then
9039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9040 else
9041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9042 fi
9043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9044 ;;
mlcreech636a9952008-05-05 22:52:56 +00009045 hppa*64*)
9046 shrext_cmds='.sl'
9047 hardcode_into_libs=yes
9048 dynamic_linker="$host_os dld.sl"
9049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9052 soname_spec='${libname}${release}${shared_ext}$major'
9053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9055 ;;
9056 *)
vapier7f19c022007-02-17 14:46:31 +00009057 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009058 dynamic_linker="$host_os dld.sl"
9059 shlibpath_var=SHLIB_PATH
9060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 ;;
9064 esac
drh71eb93e2001-09-28 01:34:43 +00009065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9066 postinstall_cmds='chmod 555 $lib'
9067 ;;
9068
mlcreech636a9952008-05-05 22:52:56 +00009069interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 hardcode_into_libs=yes
9079 ;;
9080
a.rottmann84e63352003-03-24 09:42:16 +00009081irix5* | irix6* | nonstopux*)
9082 case $host_os in
9083 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009084 *)
9085 if test "$lt_cv_prog_gnu_ld" = yes; then
9086 version_type=linux
9087 else
9088 version_type=irix
9089 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009090 esac
drh71eb93e2001-09-28 01:34:43 +00009091 need_lib_prefix=no
9092 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009093 soname_spec='${libname}${release}${shared_ext}$major'
9094 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 +00009095 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009096 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009097 libsuff= shlibsuff=
9098 ;;
9099 *)
9100 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9102 libsuff= shlibsuff= libmagic=32-bit;;
9103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9104 libsuff=32 shlibsuff=N32 libmagic=N32;;
9105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009107 *) libsuff= shlibsuff= libmagic=never-match;;
9108 esac
9109 ;;
9110 esac
9111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9112 shlibpath_overrides_runpath=no
9113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009115 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009116 ;;
9117
9118# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009119linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009120 dynamic_linker=no
9121 ;;
9122
9123# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009124linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009125 version_type=linux
9126 need_lib_prefix=no
9127 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009133 # Some binutils ld are patched to set DT_RUNPATH
9134 save_LDFLAGS=$LDFLAGS
9135 save_libdir=$libdir
9136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drh710658c2012-01-16 13:00:05 +00009138 cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h. */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00009143/* end confdefs.h. */
9144
9145int
9146main ()
9147{
9148
9149 ;
9150 return 0;
9151}
9152_ACEOF
drh710658c2012-01-16 13:00:05 +00009153rm -f conftest.$ac_objext conftest$ac_exeext
9154if { (ac_try="$ac_link"
9155case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158esac
9159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9160$as_echo "$ac_try_echo") >&5
9161 (eval "$ac_link") 2>conftest.er1
9162 ac_status=$?
9163 grep -v '^ *+' conftest.er1 >conftest.err
9164 rm -f conftest.er1
9165 cat conftest.err >&5
9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest$ac_exeext && {
9171 test "$cross_compiling" = yes ||
9172 $as_test_x conftest$ac_exeext
9173 }; then
9174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00009175 shlibpath_overrides_runpath=yes
9176fi
drh710658c2012-01-16 13:00:05 +00009177
9178else
9179 $as_echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182
mlcreech636a9952008-05-05 22:52:56 +00009183fi
drh710658c2012-01-16 13:00:05 +00009184
9185rm -rf conftest.dSYM
9186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009188 LDFLAGS=$save_LDFLAGS
9189 libdir=$save_libdir
9190
drh71eb93e2001-09-28 01:34:43 +00009191 # This implies no fast_install, which is unacceptable.
9192 # Some rework will be needed to allow for fast_install
9193 # before this can be enabled.
9194 hardcode_into_libs=yes
9195
a.rottmann9bc8b932004-02-29 15:18:31 +00009196 # Append ld.so.conf contents to the search path
9197 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009198 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 +00009199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009200 fi
9201
drh71eb93e2001-09-28 01:34:43 +00009202 # We used to test for /lib/ld.so.1 and disable shared libraries on
9203 # powerpc, because MkLinux only supported shared libraries with the
9204 # GNU dynamic linker. Since this was broken with cross compilers,
9205 # most powerpc-linux boxes support dynamic linking these days and
9206 # people can always --disable-shared, the test was removed, and we
9207 # assume the GNU/Linux dynamic linker is in use.
9208 dynamic_linker='GNU/Linux ld.so'
9209 ;;
9210
9211netbsd*)
9212 version_type=sunos
9213 need_lib_prefix=no
9214 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9218 dynamic_linker='NetBSD (a.out) ld.so'
9219 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9221 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009222 dynamic_linker='NetBSD ld.elf_so'
9223 fi
9224 shlibpath_var=LD_LIBRARY_PATH
9225 shlibpath_overrides_runpath=yes
9226 hardcode_into_libs=yes
9227 ;;
9228
9229newsos6)
9230 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 shlibpath_overrides_runpath=yes
9234 ;;
9235
mlcreech636a9952008-05-05 22:52:56 +00009236*nto* | *qnx*)
9237 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009242 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009243 shlibpath_overrides_runpath=no
9244 hardcode_into_libs=yes
9245 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009246 ;;
9247
drh71eb93e2001-09-28 01:34:43 +00009248openbsd*)
9249 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009250 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009251 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009252 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9253 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009254 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9255 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009256 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9259 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009260 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 +00009261 case $host_os in
9262 openbsd2.[89] | openbsd2.[89].*)
9263 shlibpath_overrides_runpath=no
9264 ;;
9265 *)
9266 shlibpath_overrides_runpath=yes
9267 ;;
9268 esac
a.rottmann84e63352003-03-24 09:42:16 +00009269 else
9270 shlibpath_overrides_runpath=yes
9271 fi
drh71eb93e2001-09-28 01:34:43 +00009272 ;;
9273
9274os2*)
9275 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009276 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009277 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009278 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009279 dynamic_linker='OS/2 ld.exe'
9280 shlibpath_var=LIBPATH
9281 ;;
9282
9283osf3* | osf4* | osf5*)
9284 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009285 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009286 need_version=no
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009289 shlibpath_var=LD_LIBRARY_PATH
9290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9292 ;;
9293
mlcreech636a9952008-05-05 22:52:56 +00009294rdos*)
9295 dynamic_linker=no
9296 ;;
9297
drh71eb93e2001-09-28 01:34:43 +00009298solaris*)
9299 version_type=linux
9300 need_lib_prefix=no
9301 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009304 shlibpath_var=LD_LIBRARY_PATH
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 # ldd complains unless libraries are executable
9308 postinstall_cmds='chmod +x $lib'
9309 ;;
9310
9311sunos4*)
9312 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009314 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 shlibpath_overrides_runpath=yes
9317 if test "$with_gnu_ld" = yes; then
9318 need_lib_prefix=no
9319 fi
9320 need_version=yes
9321 ;;
9322
vapier7f19c022007-02-17 14:46:31 +00009323sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009324 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9326 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009327 shlibpath_var=LD_LIBRARY_PATH
9328 case $host_vendor in
9329 sni)
9330 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009331 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009332 runpath_var=LD_RUN_PATH
9333 ;;
9334 siemens)
9335 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009336 ;;
9337 motorola)
9338 need_lib_prefix=no
9339 need_version=no
9340 shlibpath_overrides_runpath=no
9341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9342 ;;
9343 esac
9344 ;;
9345
9346sysv4*MP*)
9347 if test -d /usr/nec ;then
9348 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9350 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009351 shlibpath_var=LD_LIBRARY_PATH
9352 fi
9353 ;;
9354
vapier7f19c022007-02-17 14:46:31 +00009355sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9356 version_type=freebsd-elf
9357 need_lib_prefix=no
9358 need_version=no
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9360 soname_spec='${libname}${release}${shared_ext}$major'
9361 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009362 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009363 hardcode_into_libs=yes
9364 if test "$with_gnu_ld" = yes; then
9365 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009366 else
9367 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009368 case $host_os in
9369 sco3.2v5*)
9370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9371 ;;
9372 esac
9373 fi
9374 sys_lib_dlsearch_path_spec='/usr/lib'
9375 ;;
9376
mlcreech636a9952008-05-05 22:52:56 +00009377tpf*)
9378 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9379 version_type=linux
9380 need_lib_prefix=no
9381 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 hardcode_into_libs=yes
9386 ;;
9387
a.rottmann9bc8b932004-02-29 15:18:31 +00009388uts4*)
9389 version_type=linux
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 ;;
9394
drh71eb93e2001-09-28 01:34:43 +00009395*)
9396 dynamic_linker=no
9397 ;;
9398esac
drh710658c2012-01-16 13:00:05 +00009399{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009400$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009401test "$dynamic_linker" = no && can_build_shared=no
9402
vapier7f19c022007-02-17 14:46:31 +00009403variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9404if test "$GCC" = yes; then
9405 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9406fi
9407
mlcreech636a9952008-05-05 22:52:56 +00009408if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9409 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9410fi
9411if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9412 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9413fi
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
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
drh710658c2012-01-16 13:00:05 +00009501 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009502$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009503hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009504if test -n "$hardcode_libdir_flag_spec" ||
9505 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009506 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009507
mlcreech636a9952008-05-05 22:52:56 +00009508 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009509 if test "$hardcode_direct" != no &&
9510 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9511 # have to relink, otherwise we might link with an installed library
9512 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009513 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009514 test "$hardcode_minus_L" != no; then
9515 # Linking always hardcodes the temporary library directory.
9516 hardcode_action=relink
9517 else
9518 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9519 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009520 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009521else
9522 # We cannot hardcode anything, or else we can only hardcode existing
9523 # directories.
9524 hardcode_action=unsupported
9525fi
drh710658c2012-01-16 13:00:05 +00009526{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009527$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009528
mlcreech636a9952008-05-05 22:52:56 +00009529if test "$hardcode_action" = relink ||
9530 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009531 # Fast installation is not supported
9532 enable_fast_install=no
9533elif test "$shlibpath_overrides_runpath" = yes ||
9534 test "$enable_shared" = no; then
9535 # Fast installation is not necessary
9536 enable_fast_install=needless
9537fi
9538
a.rottmann84e63352003-03-24 09:42:16 +00009539
mlcreech636a9952008-05-05 22:52:56 +00009540
9541
9542
9543
9544 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009545 enable_dlopen=unknown
9546 enable_dlopen_self=unknown
9547 enable_dlopen_self_static=unknown
9548else
9549 lt_cv_dlopen=no
9550 lt_cv_dlopen_libs=
9551
9552 case $host_os in
9553 beos*)
9554 lt_cv_dlopen="load_add_on"
9555 lt_cv_dlopen_libs=
9556 lt_cv_dlopen_self=yes
9557 ;;
9558
vapier6acb2cf2009-01-28 04:46:28 +00009559 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009560 lt_cv_dlopen="LoadLibrary"
9561 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009562 ;;
drh71eb93e2001-09-28 01:34:43 +00009563
a.rottmann9bc8b932004-02-29 15:18:31 +00009564 cygwin*)
9565 lt_cv_dlopen="dlopen"
9566 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009567 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009568
9569 darwin*)
9570 # if libdl is installed we need to link against it
drh710658c2012-01-16 13:00:05 +00009571 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009572$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009573if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009574 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009575else
9576 ac_check_lib_save_LIBS=$LIBS
9577LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009578cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h. */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00009583/* end confdefs.h. */
9584
drh8b727472009-01-19 18:18:40 +00009585/* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009588#ifdef __cplusplus
9589extern "C"
9590#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009591char dlopen ();
9592int
9593main ()
9594{
drh8b727472009-01-19 18:18:40 +00009595return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009596 ;
9597 return 0;
9598}
9599_ACEOF
drh710658c2012-01-16 13:00:05 +00009600rm -f conftest.$ac_objext conftest$ac_exeext
9601if { (ac_try="$ac_link"
9602case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9607$as_echo "$ac_try_echo") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext && {
9618 test "$cross_compiling" = yes ||
9619 $as_test_x conftest$ac_exeext
9620 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009621 ac_cv_lib_dl_dlopen=yes
9622else
drh710658c2012-01-16 13:00:05 +00009623 $as_echo "$as_me: failed program was:" >&5
9624sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009627fi
drh710658c2012-01-16 13:00:05 +00009628
9629rm -rf conftest.dSYM
9630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9631 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009632LIBS=$ac_check_lib_save_LIBS
9633fi
drh710658c2012-01-16 13:00:05 +00009634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009635$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009636if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9638else
9639
9640 lt_cv_dlopen="dyld"
9641 lt_cv_dlopen_libs=
9642 lt_cv_dlopen_self=yes
9643
9644fi
9645
mlcreech636a9952008-05-05 22:52:56 +00009646 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009647
drh71eb93e2001-09-28 01:34:43 +00009648 *)
drh710658c2012-01-16 13:00:05 +00009649 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9650$as_echo_n "checking for shl_load... " >&6; }
9651if test "${ac_cv_func_shl_load+set}" = set; then
9652 $as_echo_n "(cached) " >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define shl_load innocuous_shl_load
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char shl_load (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef shl_load
9676
9677/* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char shl_load ();
9684/* The GNU C library defines this for functions which it implements
9685 to always fail with ENOSYS. Some functions are actually named
9686 something starting with __ and the normal name is an alias. */
9687#if defined __stub_shl_load || defined __stub___shl_load
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return shl_load ();
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
9705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9706$as_echo "$ac_try_echo") >&5
9707 (eval "$ac_link") 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } && {
9714 test -z "$ac_c_werror_flag" ||
9715 test ! -s conftest.err
9716 } && test -s conftest$ac_exeext && {
9717 test "$cross_compiling" = yes ||
9718 $as_test_x conftest$ac_exeext
9719 }; then
9720 ac_cv_func_shl_load=yes
9721else
9722 $as_echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ac_cv_func_shl_load=no
9726fi
9727
9728rm -rf conftest.dSYM
9729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9730 conftest$ac_exeext conftest.$ac_ext
9731fi
9732{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9733$as_echo "$ac_cv_func_shl_load" >&6; }
9734if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009735 lt_cv_dlopen="shl_load"
9736else
drh710658c2012-01-16 13:00:05 +00009737 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009738$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009739if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009740 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009741else
9742 ac_check_lib_save_LIBS=$LIBS
9743LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +00009744cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h. */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009749/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009750
drh8b727472009-01-19 18:18:40 +00009751/* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009754#ifdef __cplusplus
9755extern "C"
9756#endif
drh71eb93e2001-09-28 01:34:43 +00009757char shl_load ();
9758int
9759main ()
9760{
drh8b727472009-01-19 18:18:40 +00009761return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009762 ;
9763 return 0;
9764}
9765_ACEOF
drh710658c2012-01-16 13:00:05 +00009766rm -f conftest.$ac_objext conftest$ac_exeext
9767if { (ac_try="$ac_link"
9768case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771esac
9772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773$as_echo "$ac_try_echo") >&5
9774 (eval "$ac_link") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest$ac_exeext && {
9784 test "$cross_compiling" = yes ||
9785 $as_test_x conftest$ac_exeext
9786 }; then
drh71eb93e2001-09-28 01:34:43 +00009787 ac_cv_lib_dld_shl_load=yes
9788else
drh710658c2012-01-16 13:00:05 +00009789 $as_echo "$as_me: failed program was:" >&5
9790sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009793fi
drh710658c2012-01-16 13:00:05 +00009794
9795rm -rf conftest.dSYM
9796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009798LIBS=$ac_check_lib_save_LIBS
9799fi
drh710658c2012-01-16 13:00:05 +00009800{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009801$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh710658c2012-01-16 13:00:05 +00009802if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009804else
drh710658c2012-01-16 13:00:05 +00009805 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9806$as_echo_n "checking for dlopen... " >&6; }
9807if test "${ac_cv_func_dlopen+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809else
9810 cat >conftest.$ac_ext <<_ACEOF
9811/* confdefs.h. */
9812_ACEOF
9813cat confdefs.h >>conftest.$ac_ext
9814cat >>conftest.$ac_ext <<_ACEOF
9815/* end confdefs.h. */
9816/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9818#define dlopen innocuous_dlopen
9819
9820/* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char dlopen (); below.
9822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9823 <limits.h> exists even on freestanding compilers. */
9824
9825#ifdef __STDC__
9826# include <limits.h>
9827#else
9828# include <assert.h>
9829#endif
9830
9831#undef dlopen
9832
9833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839char dlopen ();
9840/* The GNU C library defines this for functions which it implements
9841 to always fail with ENOSYS. Some functions are actually named
9842 something starting with __ and the normal name is an alias. */
9843#if defined __stub_dlopen || defined __stub___dlopen
9844choke me
9845#endif
9846
9847int
9848main ()
9849{
9850return dlopen ();
9851 ;
9852 return 0;
9853}
9854_ACEOF
9855rm -f conftest.$ac_objext conftest$ac_exeext
9856if { (ac_try="$ac_link"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
9861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862$as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9875 }; then
9876 ac_cv_func_dlopen=yes
9877else
9878 $as_echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_cv_func_dlopen=no
9882fi
9883
9884rm -rf conftest.dSYM
9885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9887fi
9888{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9889$as_echo "$ac_cv_func_dlopen" >&6; }
9890if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009891 lt_cv_dlopen="dlopen"
9892else
drh710658c2012-01-16 13:00:05 +00009893 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009894$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009895if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009896 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009897else
9898 ac_check_lib_save_LIBS=$LIBS
9899LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009900cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009905/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009906
drh8b727472009-01-19 18:18:40 +00009907/* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009910#ifdef __cplusplus
9911extern "C"
9912#endif
drh71eb93e2001-09-28 01:34:43 +00009913char dlopen ();
9914int
9915main ()
9916{
drh8b727472009-01-19 18:18:40 +00009917return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009918 ;
9919 return 0;
9920}
9921_ACEOF
drh710658c2012-01-16 13:00:05 +00009922rm -f conftest.$ac_objext conftest$ac_exeext
9923if { (ac_try="$ac_link"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929$as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext && {
9940 test "$cross_compiling" = yes ||
9941 $as_test_x conftest$ac_exeext
9942 }; then
drh71eb93e2001-09-28 01:34:43 +00009943 ac_cv_lib_dl_dlopen=yes
9944else
drh710658c2012-01-16 13:00:05 +00009945 $as_echo "$as_me: failed program was:" >&5
9946sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009949fi
drh710658c2012-01-16 13:00:05 +00009950
9951rm -rf conftest.dSYM
9952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009954LIBS=$ac_check_lib_save_LIBS
9955fi
drh710658c2012-01-16 13:00:05 +00009956{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009957$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009958if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9960else
drh710658c2012-01-16 13:00:05 +00009961 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009962$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009963if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009964 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009965else
9966 ac_check_lib_save_LIBS=$LIBS
9967LIBS="-lsvld $LIBS"
drh710658c2012-01-16 13:00:05 +00009968cat >conftest.$ac_ext <<_ACEOF
9969/* confdefs.h. */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009973/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009974
drh8b727472009-01-19 18:18:40 +00009975/* Override any GCC internal prototype to avoid an error.
9976 Use char because int might match the return type of a GCC
9977 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009978#ifdef __cplusplus
9979extern "C"
9980#endif
drh71eb93e2001-09-28 01:34:43 +00009981char dlopen ();
9982int
9983main ()
9984{
drh8b727472009-01-19 18:18:40 +00009985return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009986 ;
9987 return 0;
9988}
9989_ACEOF
drh710658c2012-01-16 13:00:05 +00009990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (ac_try="$ac_link"
9992case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9997$as_echo "$ac_try_echo") >&5
9998 (eval "$ac_link") 2>conftest.er1
9999 ac_status=$?
10000 grep -v '^ *+' conftest.er1 >conftest.err
10001 rm -f conftest.er1
10002 cat conftest.err >&5
10003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext && {
10008 test "$cross_compiling" = yes ||
10009 $as_test_x conftest$ac_exeext
10010 }; then
drh71eb93e2001-09-28 01:34:43 +000010011 ac_cv_lib_svld_dlopen=yes
10012else
drh710658c2012-01-16 13:00:05 +000010013 $as_echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010017fi
drh710658c2012-01-16 13:00:05 +000010018
10019rm -rf conftest.dSYM
10020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010022LIBS=$ac_check_lib_save_LIBS
10023fi
drh710658c2012-01-16 13:00:05 +000010024{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +000010025$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +000010026if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010028else
drh710658c2012-01-16 13:00:05 +000010029 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +000010030$as_echo_n "checking for dld_link in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +000010031if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010032 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010033else
10034 ac_check_lib_save_LIBS=$LIBS
10035LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +000010036cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010041/* end confdefs.h. */
10042
drh8b727472009-01-19 18:18:40 +000010043/* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010046#ifdef __cplusplus
10047extern "C"
10048#endif
a.rottmann84e63352003-03-24 09:42:16 +000010049char dld_link ();
10050int
10051main ()
10052{
drh8b727472009-01-19 18:18:40 +000010053return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010054 ;
10055 return 0;
10056}
10057_ACEOF
drh710658c2012-01-16 13:00:05 +000010058rm -f conftest.$ac_objext conftest$ac_exeext
10059if { (ac_try="$ac_link"
10060case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063esac
10064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10065$as_echo "$ac_try_echo") >&5
10066 (eval "$ac_link") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest$ac_exeext && {
10076 test "$cross_compiling" = yes ||
10077 $as_test_x conftest$ac_exeext
10078 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010079 ac_cv_lib_dld_dld_link=yes
10080else
drh710658c2012-01-16 13:00:05 +000010081 $as_echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010085fi
drh710658c2012-01-16 13:00:05 +000010086
10087rm -rf conftest.dSYM
10088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10089 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010090LIBS=$ac_check_lib_save_LIBS
10091fi
drh710658c2012-01-16 13:00:05 +000010092{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +000010093$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh710658c2012-01-16 13:00:05 +000010094if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010095 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010096fi
10097
drh71eb93e2001-09-28 01:34:43 +000010098
10099fi
10100
drh71eb93e2001-09-28 01:34:43 +000010101
10102fi
10103
a.rottmann84e63352003-03-24 09:42:16 +000010104
10105fi
10106
10107
10108fi
10109
10110
drh71eb93e2001-09-28 01:34:43 +000010111fi
10112
10113 ;;
10114 esac
10115
10116 if test "x$lt_cv_dlopen" != xno; then
10117 enable_dlopen=yes
10118 else
10119 enable_dlopen=no
10120 fi
10121
10122 case $lt_cv_dlopen in
10123 dlopen)
10124 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010125 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010126
10127 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010128 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010129
10130 save_LIBS="$LIBS"
10131 LIBS="$lt_cv_dlopen_libs $LIBS"
10132
drh710658c2012-01-16 13:00:05 +000010133 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010134$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010135if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010136 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010137else
10138 if test "$cross_compiling" = yes; then :
10139 lt_cv_dlopen_self=cross
10140else
a.rottmann9bc8b932004-02-29 15:18:31 +000010141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010142 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010143 cat > conftest.$ac_ext <<_LT_EOF
drhe4f9b9b2013-08-28 18:18:12 +000010144#line 10144 "configure"
drh71eb93e2001-09-28 01:34:43 +000010145#include "confdefs.h"
10146
10147#if HAVE_DLFCN_H
10148#include <dlfcn.h>
10149#endif
10150
10151#include <stdio.h>
10152
10153#ifdef RTLD_GLOBAL
10154# define LT_DLGLOBAL RTLD_GLOBAL
10155#else
10156# ifdef DL_GLOBAL
10157# define LT_DLGLOBAL DL_GLOBAL
10158# else
10159# define LT_DLGLOBAL 0
10160# endif
10161#endif
10162
10163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10164 find out it does not work in some platform. */
10165#ifndef LT_DLLAZY_OR_NOW
10166# ifdef RTLD_LAZY
10167# define LT_DLLAZY_OR_NOW RTLD_LAZY
10168# else
10169# ifdef DL_LAZY
10170# define LT_DLLAZY_OR_NOW DL_LAZY
10171# else
10172# ifdef RTLD_NOW
10173# define LT_DLLAZY_OR_NOW RTLD_NOW
10174# else
10175# ifdef DL_NOW
10176# define LT_DLLAZY_OR_NOW DL_NOW
10177# else
10178# define LT_DLLAZY_OR_NOW 0
10179# endif
10180# endif
10181# endif
10182# endif
10183#endif
10184
drh71eb93e2001-09-28 01:34:43 +000010185void fnord() { int i=42;}
10186int main ()
10187{
10188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10189 int status = $lt_dlunknown;
10190
10191 if (self)
10192 {
10193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10195 /* dlclose (self); */
10196 }
vapier7f19c022007-02-17 14:46:31 +000010197 else
10198 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010199
vapier6acb2cf2009-01-28 04:46:28 +000010200 return status;
drh71eb93e2001-09-28 01:34:43 +000010201}
mlcreech636a9952008-05-05 22:52:56 +000010202_LT_EOF
drh710658c2012-01-16 13:00:05 +000010203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010204 (eval $ac_link) 2>&5
10205 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010208 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010209 lt_status=$?
10210 case x$lt_status in
10211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010214 esac
10215 else :
10216 # compilation failed
10217 lt_cv_dlopen_self=no
10218 fi
10219fi
10220rm -fr conftest*
10221
a.rottmann84e63352003-03-24 09:42:16 +000010222
drh71eb93e2001-09-28 01:34:43 +000010223fi
drh710658c2012-01-16 13:00:05 +000010224{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +000010225$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010226
10227 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +000010229 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010230$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010231if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010232 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010233else
10234 if test "$cross_compiling" = yes; then :
10235 lt_cv_dlopen_self_static=cross
10236else
a.rottmann9bc8b932004-02-29 15:18:31 +000010237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010238 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010239 cat > conftest.$ac_ext <<_LT_EOF
drhe4f9b9b2013-08-28 18:18:12 +000010240#line 10240 "configure"
drh71eb93e2001-09-28 01:34:43 +000010241#include "confdefs.h"
10242
10243#if HAVE_DLFCN_H
10244#include <dlfcn.h>
10245#endif
10246
10247#include <stdio.h>
10248
10249#ifdef RTLD_GLOBAL
10250# define LT_DLGLOBAL RTLD_GLOBAL
10251#else
10252# ifdef DL_GLOBAL
10253# define LT_DLGLOBAL DL_GLOBAL
10254# else
10255# define LT_DLGLOBAL 0
10256# endif
10257#endif
10258
10259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10260 find out it does not work in some platform. */
10261#ifndef LT_DLLAZY_OR_NOW
10262# ifdef RTLD_LAZY
10263# define LT_DLLAZY_OR_NOW RTLD_LAZY
10264# else
10265# ifdef DL_LAZY
10266# define LT_DLLAZY_OR_NOW DL_LAZY
10267# else
10268# ifdef RTLD_NOW
10269# define LT_DLLAZY_OR_NOW RTLD_NOW
10270# else
10271# ifdef DL_NOW
10272# define LT_DLLAZY_OR_NOW DL_NOW
10273# else
10274# define LT_DLLAZY_OR_NOW 0
10275# endif
10276# endif
10277# endif
10278# endif
10279#endif
10280
drh71eb93e2001-09-28 01:34:43 +000010281void fnord() { int i=42;}
10282int main ()
10283{
10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10285 int status = $lt_dlunknown;
10286
10287 if (self)
10288 {
10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10291 /* dlclose (self); */
10292 }
vapier7f19c022007-02-17 14:46:31 +000010293 else
10294 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010295
vapier6acb2cf2009-01-28 04:46:28 +000010296 return status;
drh71eb93e2001-09-28 01:34:43 +000010297}
mlcreech636a9952008-05-05 22:52:56 +000010298_LT_EOF
drh710658c2012-01-16 13:00:05 +000010299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010300 (eval $ac_link) 2>&5
10301 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010304 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010305 lt_status=$?
10306 case x$lt_status in
10307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010310 esac
10311 else :
10312 # compilation failed
10313 lt_cv_dlopen_self_static=no
10314 fi
10315fi
10316rm -fr conftest*
10317
a.rottmann84e63352003-03-24 09:42:16 +000010318
drh71eb93e2001-09-28 01:34:43 +000010319fi
drh710658c2012-01-16 13:00:05 +000010320{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +000010321$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010322 fi
10323
10324 CPPFLAGS="$save_CPPFLAGS"
10325 LDFLAGS="$save_LDFLAGS"
10326 LIBS="$save_LIBS"
10327 ;;
10328 esac
10329
10330 case $lt_cv_dlopen_self in
10331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10332 *) enable_dlopen_self=unknown ;;
10333 esac
10334
10335 case $lt_cv_dlopen_self_static in
10336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10337 *) enable_dlopen_self_static=unknown ;;
10338 esac
10339fi
10340
drh71eb93e2001-09-28 01:34:43 +000010341
drh71eb93e2001-09-28 01:34:43 +000010342
a.rottmann9bc8b932004-02-29 15:18:31 +000010343
a.rottmann9bc8b932004-02-29 15:18:31 +000010344
mlcreech636a9952008-05-05 22:52:56 +000010345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357striplib=
10358old_striplib=
drh710658c2012-01-16 13:00:05 +000010359{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +000010360$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010361if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10362 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10363 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh710658c2012-01-16 13:00:05 +000010364 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010365$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010366else
10367# FIXME - insert some real tests, host_os isn't really good enough
10368 case $host_os in
10369 darwin*)
10370 if test -n "$STRIP" ; then
10371 striplib="$STRIP -x"
10372 old_striplib="$STRIP -S"
drh710658c2012-01-16 13:00:05 +000010373 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010374$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010375 else
drh710658c2012-01-16 13:00:05 +000010376 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010377$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010378 fi
a.rottmann84e63352003-03-24 09:42:16 +000010379 ;;
mlcreech636a9952008-05-05 22:52:56 +000010380 *)
drh710658c2012-01-16 13:00:05 +000010381 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010382$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010383 ;;
10384 esac
mlcreech636a9952008-05-05 22:52:56 +000010385fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010386
a.rottmann9bc8b932004-02-29 15:18:31 +000010387
drh71eb93e2001-09-28 01:34:43 +000010388
drh71eb93e2001-09-28 01:34:43 +000010389
a.rottmann84e63352003-03-24 09:42:16 +000010390
drh71eb93e2001-09-28 01:34:43 +000010391
drh71eb93e2001-09-28 01:34:43 +000010392
a.rottmann9bc8b932004-02-29 15:18:31 +000010393
drh71eb93e2001-09-28 01:34:43 +000010394
drh71eb93e2001-09-28 01:34:43 +000010395
drh71eb93e2001-09-28 01:34:43 +000010396
drh71eb93e2001-09-28 01:34:43 +000010397
mlcreech636a9952008-05-05 22:52:56 +000010398 # Report which library types will actually be built
drh710658c2012-01-16 13:00:05 +000010399 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010400$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +000010401 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +000010402$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010403
drh710658c2012-01-16 13:00:05 +000010404 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010405$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010406 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010407
mlcreech636a9952008-05-05 22:52:56 +000010408 # On AIX, shared libraries and static libraries use the same namespace, and
10409 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010410 case $host_os in
10411 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010412 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010413 if test -n "$RANLIB"; then
10414 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10415 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010416 fi
10417 ;;
10418
mlcreech636a9952008-05-05 22:52:56 +000010419 aix[4-9]*)
10420 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10421 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010422 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010423 ;;
10424 esac
drh710658c2012-01-16 13:00:05 +000010425 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +000010426$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010427
drh710658c2012-01-16 13:00:05 +000010428 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +000010429$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010430 # Make sure either enable_shared or enable_static is yes.
10431 test "$enable_shared" = yes || enable_static=yes
drh710658c2012-01-16 13:00:05 +000010432 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +000010433$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010434
a.rottmann9bc8b932004-02-29 15:18:31 +000010435
a.rottmann9bc8b932004-02-29 15:18:31 +000010436
a.rottmann9bc8b932004-02-29 15:18:31 +000010437
vapier7f19c022007-02-17 14:46:31 +000010438fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010439ac_ext=c
10440ac_cpp='$CPP $CPPFLAGS'
10441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10443ac_compiler_gnu=$ac_cv_c_compiler_gnu
10444
10445CC="$lt_save_CC"
10446
a.rottmann9bc8b932004-02-29 15:18:31 +000010447
a.rottmann9bc8b932004-02-29 15:18:31 +000010448
10449
a.rottmann9bc8b932004-02-29 15:18:31 +000010450
a.rottmann9bc8b932004-02-29 15:18:31 +000010451
a.rottmann9bc8b932004-02-29 15:18:31 +000010452
a.rottmann9bc8b932004-02-29 15:18:31 +000010453
a.rottmann9bc8b932004-02-29 15:18:31 +000010454
a.rottmann9bc8b932004-02-29 15:18:31 +000010455
vapier7f19c022007-02-17 14:46:31 +000010456
a.rottmann9bc8b932004-02-29 15:18:31 +000010457
10458
drh8b727472009-01-19 18:18:40 +000010459 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010460
vapier7f19c022007-02-17 14:46:31 +000010461
10462
vapier7f19c022007-02-17 14:46:31 +000010463
mlcreech636a9952008-05-05 22:52:56 +000010464# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010465
10466
drh71eb93e2001-09-28 01:34:43 +000010467# Find a good install program. We prefer a C program (faster),
10468# so one script is as good as another. But avoid the broken or
10469# incompatible versions:
10470# SysV /etc/install, /usr/sbin/install
10471# SunOS /usr/etc/install
10472# IRIX /sbin/install
10473# AIX /bin/install
10474# AmigaOS /C/install, which installs bootblocks on floppy discs
10475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010478# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010479# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010480# Reject install programs that cannot install multiple files.
drh710658c2012-01-16 13:00:05 +000010481{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +000010482$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010483if test -z "$INSTALL"; then
drh710658c2012-01-16 13:00:05 +000010484if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010485 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010486else
a.rottmann84e63352003-03-24 09:42:16 +000010487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488for as_dir in $PATH
10489do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010492 # Account for people who put trailing slashes in PATH elements.
10493case $as_dir/ in
10494 ./ | .// | /cC/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drh710658c2012-01-16 13:00:05 +000010496 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010497 /usr/ucb/* ) ;;
10498 *)
10499 # OSF1 and SCO ODT 3.0 have their own names for install.
10500 # Don't use installbsd from OSF since it installs stuff as root
10501 # by default.
10502 for ac_prog in ginstall scoinst install; do
10503 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010504 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 +000010505 if test $ac_prog = install &&
10506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10507 # AIX install. It has an incompatible calling convention.
10508 :
10509 elif test $ac_prog = install &&
10510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10511 # program-specific install script used by HP pwplus--don't use.
10512 :
10513 else
drh8b727472009-01-19 18:18:40 +000010514 rm -rf conftest.one conftest.two conftest.dir
10515 echo one > conftest.one
10516 echo two > conftest.two
10517 mkdir conftest.dir
10518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10519 test -s conftest.one && test -s conftest.two &&
10520 test -s conftest.dir/conftest.one &&
10521 test -s conftest.dir/conftest.two
10522 then
10523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10524 break 3
10525 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010526 fi
10527 fi
drh71eb93e2001-09-28 01:34:43 +000010528 done
a.rottmann84e63352003-03-24 09:42:16 +000010529 done
10530 ;;
10531esac
a.rottmann84e63352003-03-24 09:42:16 +000010532
drh710658c2012-01-16 13:00:05 +000010533done
drh8b727472009-01-19 18:18:40 +000010534IFS=$as_save_IFS
10535
10536rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010537
10538fi
10539 if test "${ac_cv_path_install+set}" = set; then
10540 INSTALL=$ac_cv_path_install
10541 else
drh8b727472009-01-19 18:18:40 +000010542 # As a last resort, use the slow shell script. Don't cache a
10543 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010544 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010545 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010546 INSTALL=$ac_install_sh
10547 fi
10548fi
drh710658c2012-01-16 13:00:05 +000010549{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +000010550$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010551
10552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10553# It thinks the first close brace ends the variable substitution.
10554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10555
10556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10557
10558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10559
drhf1878b42006-01-23 18:06:52 +000010560for ac_prog in gawk mawk nawk awk
10561do
10562 # Extract the first word of "$ac_prog", so it can be a program name with args.
10563set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000010564{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010565$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000010566if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010567 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010568else
10569 if test -n "$AWK"; then
10570 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10571else
10572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10573for as_dir in $PATH
10574do
10575 IFS=$as_save_IFS
10576 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010577 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010578 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 +000010579 ac_cv_prog_AWK="$ac_prog"
drh710658c2012-01-16 13:00:05 +000010580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010581 break 2
10582 fi
10583done
drh710658c2012-01-16 13:00:05 +000010584done
drh8b727472009-01-19 18:18:40 +000010585IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010586
10587fi
10588fi
10589AWK=$ac_cv_prog_AWK
10590if test -n "$AWK"; then
drh710658c2012-01-16 13:00:05 +000010591 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +000010592$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010593else
drh710658c2012-01-16 13:00:05 +000010594 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010595$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010596fi
10597
drh8b727472009-01-19 18:18:40 +000010598
drhf1878b42006-01-23 18:06:52 +000010599 test -n "$AWK" && break
10600done
10601
a.rottmann84e63352003-03-24 09:42:16 +000010602
drh75897232000-05-29 14:26:00 +000010603#########
mlcreech636a9952008-05-05 22:52:56 +000010604# Enable large file support (if special flags are necessary)
10605#
drh8b727472009-01-19 18:18:40 +000010606# Check whether --enable-largefile was given.
drh710658c2012-01-16 13:00:05 +000010607if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010608 enableval=$enable_largefile;
10609fi
mlcreech636a9952008-05-05 22:52:56 +000010610
10611if test "$enable_largefile" != no; then
10612
drh710658c2012-01-16 13:00:05 +000010613 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010614$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010615if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010616 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010617else
mlcreech636a9952008-05-05 22:52:56 +000010618 ac_cv_sys_largefile_CC=no
10619 if test "$GCC" != yes; then
10620 ac_save_CC=$CC
10621 while :; do
drh8b727472009-01-19 18:18:40 +000010622 # IRIX 6.2 and later do not support large files by default,
10623 # so use the C compiler's -n32 option if that helps.
drh710658c2012-01-16 13:00:05 +000010624 cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010629/* end confdefs.h. */
10630#include <sys/types.h>
10631 /* Check that off_t can represent 2**63 - 1 correctly.
10632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10633 since some C++ compilers masquerading as C compilers
10634 incorrectly reject 9223372036854775807. */
10635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10637 && LARGE_OFF_T % 2147483647 == 1)
10638 ? 1 : -1];
10639int
10640main ()
10641{
10642
10643 ;
10644 return 0;
10645}
10646_ACEOF
drh710658c2012-01-16 13:00:05 +000010647 rm -f conftest.$ac_objext
10648if { (ac_try="$ac_compile"
10649case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652esac
10653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654$as_echo "$ac_try_echo") >&5
10655 (eval "$ac_compile") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010665 break
drh710658c2012-01-16 13:00:05 +000010666else
10667 $as_echo "$as_me: failed program was:" >&5
10668sed 's/^/| /' conftest.$ac_ext >&5
10669
10670
mlcreech636a9952008-05-05 22:52:56 +000010671fi
drh710658c2012-01-16 13:00:05 +000010672
drh8b727472009-01-19 18:18:40 +000010673rm -f core conftest.err conftest.$ac_objext
10674 CC="$CC -n32"
drh710658c2012-01-16 13:00:05 +000010675 rm -f conftest.$ac_objext
10676if { (ac_try="$ac_compile"
10677case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680esac
10681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682$as_echo "$ac_try_echo") >&5
10683 (eval "$ac_compile") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } && {
10690 test -z "$ac_c_werror_flag" ||
10691 test ! -s conftest.err
10692 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010693 ac_cv_sys_largefile_CC=' -n32'; break
drh710658c2012-01-16 13:00:05 +000010694else
10695 $as_echo "$as_me: failed program was:" >&5
10696sed 's/^/| /' conftest.$ac_ext >&5
10697
10698
mlcreech636a9952008-05-05 22:52:56 +000010699fi
drh710658c2012-01-16 13:00:05 +000010700
drh8b727472009-01-19 18:18:40 +000010701rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010702 break
10703 done
10704 CC=$ac_save_CC
10705 rm -f conftest.$ac_ext
10706 fi
10707fi
drh710658c2012-01-16 13:00:05 +000010708{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010709$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010710 if test "$ac_cv_sys_largefile_CC" != no; then
10711 CC=$CC$ac_cv_sys_largefile_CC
10712 fi
10713
drh710658c2012-01-16 13:00:05 +000010714 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010715$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010716if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010717 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010718else
10719 while :; do
drh710658c2012-01-16 13:00:05 +000010720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010725/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010726#include <sys/types.h>
10727 /* Check that off_t can represent 2**63 - 1 correctly.
10728 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10729 since some C++ compilers masquerading as C compilers
10730 incorrectly reject 9223372036854775807. */
10731#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10732 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10733 && LARGE_OFF_T % 2147483647 == 1)
10734 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010735int
10736main ()
10737{
mlcreech636a9952008-05-05 22:52:56 +000010738
mlcreechb87057f2008-03-06 07:19:20 +000010739 ;
10740 return 0;
10741}
10742_ACEOF
drh710658c2012-01-16 13:00:05 +000010743rm -f conftest.$ac_objext
10744if { (ac_try="$ac_compile"
10745case "(($ac_try" in
10746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10748esac
10749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750$as_echo "$ac_try_echo") >&5
10751 (eval "$ac_compile") 2>conftest.er1
10752 ac_status=$?
10753 grep -v '^ *+' conftest.er1 >conftest.err
10754 rm -f conftest.er1
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010761 ac_cv_sys_file_offset_bits=no; break
drh710658c2012-01-16 13:00:05 +000010762else
10763 $as_echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
10765
10766
mlcreech636a9952008-05-05 22:52:56 +000010767fi
drh710658c2012-01-16 13:00:05 +000010768
drh8b727472009-01-19 18:18:40 +000010769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010770 cat >conftest.$ac_ext <<_ACEOF
10771/* confdefs.h. */
10772_ACEOF
10773cat confdefs.h >>conftest.$ac_ext
10774cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010775/* end confdefs.h. */
10776#define _FILE_OFFSET_BITS 64
10777#include <sys/types.h>
10778 /* Check that off_t can represent 2**63 - 1 correctly.
10779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10780 since some C++ compilers masquerading as C compilers
10781 incorrectly reject 9223372036854775807. */
10782#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10784 && LARGE_OFF_T % 2147483647 == 1)
10785 ? 1 : -1];
10786int
10787main ()
10788{
10789
10790 ;
10791 return 0;
10792}
10793_ACEOF
drh710658c2012-01-16 13:00:05 +000010794rm -f conftest.$ac_objext
10795if { (ac_try="$ac_compile"
10796case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10801$as_echo "$ac_try_echo") >&5
10802 (eval "$ac_compile") 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } && {
10809 test -z "$ac_c_werror_flag" ||
10810 test ! -s conftest.err
10811 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010812 ac_cv_sys_file_offset_bits=64; break
drh710658c2012-01-16 13:00:05 +000010813else
10814 $as_echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817
mlcreech636a9952008-05-05 22:52:56 +000010818fi
drh710658c2012-01-16 13:00:05 +000010819
drh8b727472009-01-19 18:18:40 +000010820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010822 break
10823done
10824fi
drh710658c2012-01-16 13:00:05 +000010825{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010826$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10827case $ac_cv_sys_file_offset_bits in #(
10828 no | unknown) ;;
10829 *)
mlcreech636a9952008-05-05 22:52:56 +000010830cat >>confdefs.h <<_ACEOF
10831#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10832_ACEOF
drh8b727472009-01-19 18:18:40 +000010833;;
10834esac
10835rm -rf conftest*
10836 if test $ac_cv_sys_file_offset_bits = unknown; then
drh710658c2012-01-16 13:00:05 +000010837 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010838$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010839if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010840 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010841else
10842 while :; do
drh710658c2012-01-16 13:00:05 +000010843 cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010848/* end confdefs.h. */
10849#include <sys/types.h>
10850 /* Check that off_t can represent 2**63 - 1 correctly.
10851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10852 since some C++ compilers masquerading as C compilers
10853 incorrectly reject 9223372036854775807. */
10854#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10856 && LARGE_OFF_T % 2147483647 == 1)
10857 ? 1 : -1];
10858int
10859main ()
10860{
10861
10862 ;
10863 return 0;
10864}
10865_ACEOF
drh710658c2012-01-16 13:00:05 +000010866rm -f conftest.$ac_objext
10867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10873$as_echo "$ac_try_echo") >&5
10874 (eval "$ac_compile") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010884 ac_cv_sys_large_files=no; break
drh710658c2012-01-16 13:00:05 +000010885else
10886 $as_echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5
10888
10889
mlcreech636a9952008-05-05 22:52:56 +000010890fi
drh710658c2012-01-16 13:00:05 +000010891
drh8b727472009-01-19 18:18:40 +000010892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010893 cat >conftest.$ac_ext <<_ACEOF
10894/* confdefs.h. */
10895_ACEOF
10896cat confdefs.h >>conftest.$ac_ext
10897cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010898/* end confdefs.h. */
10899#define _LARGE_FILES 1
10900#include <sys/types.h>
10901 /* Check that off_t can represent 2**63 - 1 correctly.
10902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10903 since some C++ compilers masquerading as C compilers
10904 incorrectly reject 9223372036854775807. */
10905#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10907 && LARGE_OFF_T % 2147483647 == 1)
10908 ? 1 : -1];
10909int
10910main ()
10911{
10912
10913 ;
10914 return 0;
10915}
10916_ACEOF
drh710658c2012-01-16 13:00:05 +000010917rm -f conftest.$ac_objext
10918if { (ac_try="$ac_compile"
10919case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924$as_echo "$ac_try_echo") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010935 ac_cv_sys_large_files=1; break
drh710658c2012-01-16 13:00:05 +000010936else
10937 $as_echo "$as_me: failed program was:" >&5
10938sed 's/^/| /' conftest.$ac_ext >&5
10939
10940
mlcreech636a9952008-05-05 22:52:56 +000010941fi
drh710658c2012-01-16 13:00:05 +000010942
drh8b727472009-01-19 18:18:40 +000010943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010945 break
10946done
10947fi
drh710658c2012-01-16 13:00:05 +000010948{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010949$as_echo "$ac_cv_sys_large_files" >&6; }
10950case $ac_cv_sys_large_files in #(
10951 no | unknown) ;;
10952 *)
mlcreech636a9952008-05-05 22:52:56 +000010953cat >>confdefs.h <<_ACEOF
10954#define _LARGE_FILES $ac_cv_sys_large_files
10955_ACEOF
drh8b727472009-01-19 18:18:40 +000010956;;
10957esac
10958rm -rf conftest*
10959 fi
mlcreech636a9952008-05-05 22:52:56 +000010960fi
10961
10962
10963#########
10964# Check for needed/wanted data types
drh710658c2012-01-16 13:00:05 +000010965{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10966$as_echo_n "checking for int8_t... " >&6; }
10967if test "${ac_cv_type_int8_t+set}" = set; then
10968 $as_echo_n "(cached) " >&6
10969else
10970 ac_cv_type_int8_t=no
10971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977$ac_includes_default
10978int
10979main ()
10980{
10981if (sizeof (int8_t))
10982 return 0;
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext
10988if { (ac_try="$ac_compile"
10989case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994$as_echo "$ac_try_echo") >&5
10995 (eval "$ac_compile") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.$ac_objext; then
11005 cat >conftest.$ac_ext <<_ACEOF
11006/* confdefs.h. */
11007_ACEOF
11008cat confdefs.h >>conftest.$ac_ext
11009cat >>conftest.$ac_ext <<_ACEOF
11010/* end confdefs.h. */
11011$ac_includes_default
11012int
11013main ()
11014{
11015if (sizeof ((int8_t)))
11016 return 0;
11017 ;
11018 return 0;
11019}
11020_ACEOF
11021rm -f conftest.$ac_objext
11022if { (ac_try="$ac_compile"
11023case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11026esac
11027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11028$as_echo "$ac_try_echo") >&5
11029 (eval "$ac_compile") 2>conftest.er1
11030 ac_status=$?
11031 grep -v '^ *+' conftest.er1 >conftest.err
11032 rm -f conftest.er1
11033 cat conftest.err >&5
11034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); } && {
11036 test -z "$ac_c_werror_flag" ||
11037 test ! -s conftest.err
11038 } && test -s conftest.$ac_objext; then
11039 :
11040else
11041 $as_echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 ac_cv_type_int8_t=yes
11045fi
11046
11047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048else
11049 $as_echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052
11053fi
11054
11055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056fi
11057{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11058$as_echo "$ac_cv_type_int8_t" >&6; }
11059if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011060
11061cat >>confdefs.h <<_ACEOF
11062#define HAVE_INT8_T 1
11063_ACEOF
11064
11065
11066fi
drh710658c2012-01-16 13:00:05 +000011067{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11068$as_echo_n "checking for int16_t... " >&6; }
11069if test "${ac_cv_type_int16_t+set}" = set; then
11070 $as_echo_n "(cached) " >&6
11071else
11072 ac_cv_type_int16_t=no
11073cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079$ac_includes_default
11080int
11081main ()
11082{
11083if (sizeof (int16_t))
11084 return 0;
11085 ;
11086 return 0;
11087}
11088_ACEOF
11089rm -f conftest.$ac_objext
11090if { (ac_try="$ac_compile"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11096$as_echo "$ac_try_echo") >&5
11097 (eval "$ac_compile") 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_c_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest.$ac_objext; then
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113$ac_includes_default
11114int
11115main ()
11116{
11117if (sizeof ((int16_t)))
11118 return 0;
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123rm -f conftest.$ac_objext
11124if { (ac_try="$ac_compile"
11125case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11130$as_echo "$ac_try_echo") >&5
11131 (eval "$ac_compile") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest.$ac_objext; then
11141 :
11142else
11143 $as_echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_cv_type_int16_t=yes
11147fi
11148
11149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150else
11151 $as_echo "$as_me: failed program was:" >&5
11152sed 's/^/| /' conftest.$ac_ext >&5
11153
11154
11155fi
11156
11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158fi
11159{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11160$as_echo "$ac_cv_type_int16_t" >&6; }
11161if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011162
11163cat >>confdefs.h <<_ACEOF
11164#define HAVE_INT16_T 1
11165_ACEOF
11166
11167
11168fi
drh710658c2012-01-16 13:00:05 +000011169{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11170$as_echo_n "checking for int32_t... " >&6; }
11171if test "${ac_cv_type_int32_t+set}" = set; then
11172 $as_echo_n "(cached) " >&6
11173else
11174 ac_cv_type_int32_t=no
11175cat >conftest.$ac_ext <<_ACEOF
11176/* confdefs.h. */
11177_ACEOF
11178cat confdefs.h >>conftest.$ac_ext
11179cat >>conftest.$ac_ext <<_ACEOF
11180/* end confdefs.h. */
11181$ac_includes_default
11182int
11183main ()
11184{
11185if (sizeof (int32_t))
11186 return 0;
11187 ;
11188 return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext
11192if { (ac_try="$ac_compile"
11193case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196esac
11197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198$as_echo "$ac_try_echo") >&5
11199 (eval "$ac_compile") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
11209 cat >conftest.$ac_ext <<_ACEOF
11210/* confdefs.h. */
11211_ACEOF
11212cat confdefs.h >>conftest.$ac_ext
11213cat >>conftest.$ac_ext <<_ACEOF
11214/* end confdefs.h. */
11215$ac_includes_default
11216int
11217main ()
11218{
11219if (sizeof ((int32_t)))
11220 return 0;
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
11226if { (ac_try="$ac_compile"
11227case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11230esac
11231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11232$as_echo "$ac_try_echo") >&5
11233 (eval "$ac_compile") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest.$ac_objext; then
11243 :
11244else
11245 $as_echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 ac_cv_type_int32_t=yes
11249fi
11250
11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252else
11253 $as_echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256
11257fi
11258
11259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260fi
11261{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11262$as_echo "$ac_cv_type_int32_t" >&6; }
11263if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011264
11265cat >>confdefs.h <<_ACEOF
11266#define HAVE_INT32_T 1
11267_ACEOF
11268
11269
11270fi
drh710658c2012-01-16 13:00:05 +000011271{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11272$as_echo_n "checking for int64_t... " >&6; }
11273if test "${ac_cv_type_int64_t+set}" = set; then
11274 $as_echo_n "(cached) " >&6
11275else
11276 ac_cv_type_int64_t=no
11277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283$ac_includes_default
11284int
11285main ()
11286{
11287if (sizeof (int64_t))
11288 return 0;
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (ac_try="$ac_compile"
11295case "(($ac_try" in
11296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11297 *) ac_try_echo=$ac_try;;
11298esac
11299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11300$as_echo "$ac_try_echo") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_c_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318int
11319main ()
11320{
11321if (sizeof ((int64_t)))
11322 return 0;
11323 ;
11324 return 0;
11325}
11326_ACEOF
11327rm -f conftest.$ac_objext
11328if { (ac_try="$ac_compile"
11329case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332esac
11333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11334$as_echo "$ac_try_echo") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
11345 :
11346else
11347 $as_echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 ac_cv_type_int64_t=yes
11351fi
11352
11353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354else
11355 $as_echo "$as_me: failed program was:" >&5
11356sed 's/^/| /' conftest.$ac_ext >&5
11357
11358
11359fi
11360
11361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362fi
11363{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11364$as_echo "$ac_cv_type_int64_t" >&6; }
11365if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011366
11367cat >>confdefs.h <<_ACEOF
11368#define HAVE_INT64_T 1
11369_ACEOF
11370
11371
11372fi
drh710658c2012-01-16 13:00:05 +000011373{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11374$as_echo_n "checking for intptr_t... " >&6; }
11375if test "${ac_cv_type_intptr_t+set}" = set; then
11376 $as_echo_n "(cached) " >&6
11377else
11378 ac_cv_type_intptr_t=no
11379cat >conftest.$ac_ext <<_ACEOF
11380/* confdefs.h. */
11381_ACEOF
11382cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */
11385$ac_includes_default
11386int
11387main ()
11388{
11389if (sizeof (intptr_t))
11390 return 0;
11391 ;
11392 return 0;
11393}
11394_ACEOF
11395rm -f conftest.$ac_objext
11396if { (ac_try="$ac_compile"
11397case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402$as_echo "$ac_try_echo") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419$ac_includes_default
11420int
11421main ()
11422{
11423if (sizeof ((intptr_t)))
11424 return 0;
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429rm -f conftest.$ac_objext
11430if { (ac_try="$ac_compile"
11431case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434esac
11435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11436$as_echo "$ac_try_echo") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11438 ac_status=$?
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
11442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest.$ac_objext; then
11447 :
11448else
11449 $as_echo "$as_me: failed program was:" >&5
11450sed 's/^/| /' conftest.$ac_ext >&5
11451
11452 ac_cv_type_intptr_t=yes
11453fi
11454
11455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456else
11457 $as_echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460
11461fi
11462
11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464fi
11465{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11466$as_echo "$ac_cv_type_intptr_t" >&6; }
11467if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011468
11469cat >>confdefs.h <<_ACEOF
11470#define HAVE_INTPTR_T 1
11471_ACEOF
11472
11473
11474fi
drh710658c2012-01-16 13:00:05 +000011475{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11476$as_echo_n "checking for uint8_t... " >&6; }
11477if test "${ac_cv_type_uint8_t+set}" = set; then
11478 $as_echo_n "(cached) " >&6
11479else
11480 ac_cv_type_uint8_t=no
11481cat >conftest.$ac_ext <<_ACEOF
11482/* confdefs.h. */
11483_ACEOF
11484cat confdefs.h >>conftest.$ac_ext
11485cat >>conftest.$ac_ext <<_ACEOF
11486/* end confdefs.h. */
11487$ac_includes_default
11488int
11489main ()
11490{
11491if (sizeof (uint8_t))
11492 return 0;
11493 ;
11494 return 0;
11495}
11496_ACEOF
11497rm -f conftest.$ac_objext
11498if { (ac_try="$ac_compile"
11499case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502esac
11503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11504$as_echo "$ac_try_echo") >&5
11505 (eval "$ac_compile") 2>conftest.er1
11506 ac_status=$?
11507 grep -v '^ *+' conftest.er1 >conftest.err
11508 rm -f conftest.er1
11509 cat conftest.err >&5
11510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } && {
11512 test -z "$ac_c_werror_flag" ||
11513 test ! -s conftest.err
11514 } && test -s conftest.$ac_objext; then
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521$ac_includes_default
11522int
11523main ()
11524{
11525if (sizeof ((uint8_t)))
11526 return 0;
11527 ;
11528 return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (ac_try="$ac_compile"
11533case "(($ac_try" in
11534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11535 *) ac_try_echo=$ac_try;;
11536esac
11537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11538$as_echo "$ac_try_echo") >&5
11539 (eval "$ac_compile") 2>conftest.er1
11540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && {
11546 test -z "$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11548 } && test -s conftest.$ac_objext; then
11549 :
11550else
11551 $as_echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_cv_type_uint8_t=yes
11555fi
11556
11557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558else
11559 $as_echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562
11563fi
11564
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11568$as_echo "$ac_cv_type_uint8_t" >&6; }
11569if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011570
11571cat >>confdefs.h <<_ACEOF
11572#define HAVE_UINT8_T 1
11573_ACEOF
11574
11575
11576fi
drh710658c2012-01-16 13:00:05 +000011577{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11578$as_echo_n "checking for uint16_t... " >&6; }
11579if test "${ac_cv_type_uint16_t+set}" = set; then
11580 $as_echo_n "(cached) " >&6
11581else
11582 ac_cv_type_uint16_t=no
11583cat >conftest.$ac_ext <<_ACEOF
11584/* confdefs.h. */
11585_ACEOF
11586cat confdefs.h >>conftest.$ac_ext
11587cat >>conftest.$ac_ext <<_ACEOF
11588/* end confdefs.h. */
11589$ac_includes_default
11590int
11591main ()
11592{
11593if (sizeof (uint16_t))
11594 return 0;
11595 ;
11596 return 0;
11597}
11598_ACEOF
11599rm -f conftest.$ac_objext
11600if { (ac_try="$ac_compile"
11601case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11604esac
11605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606$as_echo "$ac_try_echo") >&5
11607 (eval "$ac_compile") 2>conftest.er1
11608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest.$ac_objext; then
11617 cat >conftest.$ac_ext <<_ACEOF
11618/* confdefs.h. */
11619_ACEOF
11620cat confdefs.h >>conftest.$ac_ext
11621cat >>conftest.$ac_ext <<_ACEOF
11622/* end confdefs.h. */
11623$ac_includes_default
11624int
11625main ()
11626{
11627if (sizeof ((uint16_t)))
11628 return 0;
11629 ;
11630 return 0;
11631}
11632_ACEOF
11633rm -f conftest.$ac_objext
11634if { (ac_try="$ac_compile"
11635case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11640$as_echo "$ac_try_echo") >&5
11641 (eval "$ac_compile") 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } && {
11648 test -z "$ac_c_werror_flag" ||
11649 test ! -s conftest.err
11650 } && test -s conftest.$ac_objext; then
11651 :
11652else
11653 $as_echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 ac_cv_type_uint16_t=yes
11657fi
11658
11659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660else
11661 $as_echo "$as_me: failed program was:" >&5
11662sed 's/^/| /' conftest.$ac_ext >&5
11663
11664
11665fi
11666
11667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11668fi
11669{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11670$as_echo "$ac_cv_type_uint16_t" >&6; }
11671if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011672
11673cat >>confdefs.h <<_ACEOF
11674#define HAVE_UINT16_T 1
11675_ACEOF
11676
11677
11678fi
drh710658c2012-01-16 13:00:05 +000011679{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11680$as_echo_n "checking for uint32_t... " >&6; }
11681if test "${ac_cv_type_uint32_t+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11683else
11684 ac_cv_type_uint32_t=no
11685cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691$ac_includes_default
11692int
11693main ()
11694{
11695if (sizeof (uint32_t))
11696 return 0;
11697 ;
11698 return 0;
11699}
11700_ACEOF
11701rm -f conftest.$ac_objext
11702if { (ac_try="$ac_compile"
11703case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706esac
11707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708$as_echo "$ac_try_echo") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.$ac_objext; then
11719 cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725$ac_includes_default
11726int
11727main ()
11728{
11729if (sizeof ((uint32_t)))
11730 return 0;
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext
11736if { (ac_try="$ac_compile"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11742$as_echo "$ac_try_echo") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.$ac_objext; then
11753 :
11754else
11755 $as_echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
11758 ac_cv_type_uint32_t=yes
11759fi
11760
11761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762else
11763 $as_echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766
11767fi
11768
11769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770fi
11771{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11772$as_echo "$ac_cv_type_uint32_t" >&6; }
11773if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011774
11775cat >>confdefs.h <<_ACEOF
11776#define HAVE_UINT32_T 1
11777_ACEOF
11778
11779
11780fi
drh710658c2012-01-16 13:00:05 +000011781{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11782$as_echo_n "checking for uint64_t... " >&6; }
11783if test "${ac_cv_type_uint64_t+set}" = set; then
11784 $as_echo_n "(cached) " >&6
11785else
11786 ac_cv_type_uint64_t=no
11787cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793$ac_includes_default
11794int
11795main ()
11796{
11797if (sizeof (uint64_t))
11798 return 0;
11799 ;
11800 return 0;
11801}
11802_ACEOF
11803rm -f conftest.$ac_objext
11804if { (ac_try="$ac_compile"
11805case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11810$as_echo "$ac_try_echo") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827$ac_includes_default
11828int
11829main ()
11830{
11831if (sizeof ((uint64_t)))
11832 return 0;
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (ac_try="$ac_compile"
11839case "(($ac_try" in
11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11841 *) ac_try_echo=$ac_try;;
11842esac
11843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11844$as_echo "$ac_try_echo") >&5
11845 (eval "$ac_compile") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } && {
11852 test -z "$ac_c_werror_flag" ||
11853 test ! -s conftest.err
11854 } && test -s conftest.$ac_objext; then
11855 :
11856else
11857 $as_echo "$as_me: failed program was:" >&5
11858sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_cv_type_uint64_t=yes
11861fi
11862
11863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864else
11865 $as_echo "$as_me: failed program was:" >&5
11866sed 's/^/| /' conftest.$ac_ext >&5
11867
11868
11869fi
11870
11871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872fi
11873{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11874$as_echo "$ac_cv_type_uint64_t" >&6; }
11875if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011876
11877cat >>confdefs.h <<_ACEOF
11878#define HAVE_UINT64_T 1
11879_ACEOF
11880
11881
11882fi
drh710658c2012-01-16 13:00:05 +000011883{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11884$as_echo_n "checking for uintptr_t... " >&6; }
11885if test "${ac_cv_type_uintptr_t+set}" = set; then
11886 $as_echo_n "(cached) " >&6
11887else
11888 ac_cv_type_uintptr_t=no
11889cat >conftest.$ac_ext <<_ACEOF
11890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
11895$ac_includes_default
11896int
11897main ()
11898{
11899if (sizeof (uintptr_t))
11900 return 0;
11901 ;
11902 return 0;
11903}
11904_ACEOF
11905rm -f conftest.$ac_objext
11906if { (ac_try="$ac_compile"
11907case "(($ac_try" in
11908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11910esac
11911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11912$as_echo "$ac_try_echo") >&5
11913 (eval "$ac_compile") 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest.$ac_objext; then
11923 cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929$ac_includes_default
11930int
11931main ()
11932{
11933if (sizeof ((uintptr_t)))
11934 return 0;
11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext
11940if { (ac_try="$ac_compile"
11941case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944esac
11945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11946$as_echo "$ac_try_echo") >&5
11947 (eval "$ac_compile") 2>conftest.er1
11948 ac_status=$?
11949 grep -v '^ *+' conftest.er1 >conftest.err
11950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest.$ac_objext; then
11957 :
11958else
11959 $as_echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 ac_cv_type_uintptr_t=yes
11963fi
11964
11965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11966else
11967 $as_echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
11970
11971fi
11972
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974fi
11975{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11976$as_echo "$ac_cv_type_uintptr_t" >&6; }
11977if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011978
11979cat >>confdefs.h <<_ACEOF
11980#define HAVE_UINTPTR_T 1
11981_ACEOF
11982
11983
11984fi
mlcreechb87057f2008-03-06 07:19:20 +000011985
11986
11987#########
11988# Check for needed/wanted headers
drh710658c2012-01-16 13:00:05 +000011989
11990
11991
11992
drh86c5a932012-02-08 12:13:28 +000011993
11994for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drh710658c2012-01-16 13:00:05 +000011995do
11996as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11999$as_echo_n "checking for $ac_header... " >&6; }
12000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12001 $as_echo_n "(cached) " >&6
12002fi
12003ac_res=`eval 'as_val=${'$as_ac_Header'}
12004 $as_echo "$as_val"'`
12005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12006$as_echo "$ac_res" >&6; }
12007else
12008 # Is the header compilable?
12009{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12010$as_echo_n "checking $ac_header usability... " >&6; }
12011cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017$ac_includes_default
12018#include <$ac_header>
12019_ACEOF
12020rm -f conftest.$ac_objext
12021if { (ac_try="$ac_compile"
12022case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12027$as_echo "$ac_try_echo") >&5
12028 (eval "$ac_compile") 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } && {
12035 test -z "$ac_c_werror_flag" ||
12036 test ! -s conftest.err
12037 } && test -s conftest.$ac_objext; then
12038 ac_header_compiler=yes
12039else
12040 $as_echo "$as_me: failed program was:" >&5
12041sed 's/^/| /' conftest.$ac_ext >&5
12042
12043 ac_header_compiler=no
12044fi
12045
12046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12048$as_echo "$ac_header_compiler" >&6; }
12049
12050# Is the header present?
12051{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12052$as_echo_n "checking $ac_header presence... " >&6; }
12053cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059#include <$ac_header>
12060_ACEOF
12061if { (ac_try="$ac_cpp conftest.$ac_ext"
12062case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065esac
12066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12067$as_echo "$ac_try_echo") >&5
12068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } >/dev/null && {
12075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12076 test ! -s conftest.err
12077 }; then
12078 ac_header_preproc=yes
12079else
12080 $as_echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 ac_header_preproc=no
12084fi
12085
12086rm -f conftest.err conftest.$ac_ext
12087{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12088$as_echo "$ac_header_preproc" >&6; }
12089
12090# So? What about this header?
12091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092 yes:no: )
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12094$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12096$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12097 ac_header_preproc=yes
12098 ;;
12099 no:yes:* )
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12101$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12103$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12105$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12107$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12109$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12111$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112
12113 ;;
12114esac
12115{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12116$as_echo_n "checking for $ac_header... " >&6; }
12117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 $as_echo_n "(cached) " >&6
12119else
12120 eval "$as_ac_Header=\$ac_header_preproc"
12121fi
12122ac_res=`eval 'as_val=${'$as_ac_Header'}
12123 $as_echo "$as_val"'`
12124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12125$as_echo "$ac_res" >&6; }
12126
12127fi
12128if test `eval 'as_val=${'$as_ac_Header'}
12129 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012130 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012131#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012132_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012133
mlcreechb87057f2008-03-06 07:19:20 +000012134fi
12135
12136done
12137
12138
12139#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012140# Figure out whether or not we have these functions
12141#
drh710658c2012-01-16 13:00:05 +000012142
12143
12144
12145
12146
12147
12148
drh6a8ab6d2011-11-09 01:53:25 +000012149for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
drh710658c2012-01-16 13:00:05 +000012150do
12151as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12152{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12153$as_echo_n "checking for $ac_func... " >&6; }
12154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12155 $as_echo_n "(cached) " >&6
12156else
12157 cat >conftest.$ac_ext <<_ACEOF
12158/* confdefs.h. */
12159_ACEOF
12160cat confdefs.h >>conftest.$ac_ext
12161cat >>conftest.$ac_ext <<_ACEOF
12162/* end confdefs.h. */
12163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12165#define $ac_func innocuous_$ac_func
12166
12167/* System header to define __stub macros and hopefully few prototypes,
12168 which can conflict with char $ac_func (); below.
12169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12170 <limits.h> exists even on freestanding compilers. */
12171
12172#ifdef __STDC__
12173# include <limits.h>
12174#else
12175# include <assert.h>
12176#endif
12177
12178#undef $ac_func
12179
12180/* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12183#ifdef __cplusplus
12184extern "C"
12185#endif
12186char $ac_func ();
12187/* The GNU C library defines this for functions which it implements
12188 to always fail with ENOSYS. Some functions are actually named
12189 something starting with __ and the normal name is an alias. */
12190#if defined __stub_$ac_func || defined __stub___$ac_func
12191choke me
12192#endif
12193
12194int
12195main ()
12196{
12197return $ac_func ();
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202rm -f conftest.$ac_objext conftest$ac_exeext
12203if { (ac_try="$ac_link"
12204case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
12208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12209$as_echo "$ac_try_echo") >&5
12210 (eval "$ac_link") 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } && {
12217 test -z "$ac_c_werror_flag" ||
12218 test ! -s conftest.err
12219 } && test -s conftest$ac_exeext && {
12220 test "$cross_compiling" = yes ||
12221 $as_test_x conftest$ac_exeext
12222 }; then
12223 eval "$as_ac_var=yes"
12224else
12225 $as_echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
12228 eval "$as_ac_var=no"
12229fi
12230
12231rm -rf conftest.dSYM
12232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233 conftest$ac_exeext conftest.$ac_ext
12234fi
12235ac_res=`eval 'as_val=${'$as_ac_var'}
12236 $as_echo "$as_val"'`
12237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12238$as_echo "$ac_res" >&6; }
12239if test `eval 'as_val=${'$as_ac_var'}
12240 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012241 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012242#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012243_ACEOF
12244
12245fi
12246done
12247
12248
mlcreechab1c47b2008-03-09 02:51:10 +000012249#########
mlcreechf3868112008-03-11 18:03:30 +000012250# By default, we use the amalgamation (this may be changed below...)
12251#
12252USE_AMALGAMATION=1
12253
12254#########
mlcreechab1c47b2008-03-09 02:51:10 +000012255# See whether we can run specific tclsh versions known to work well;
12256# if not, then we fall back to plain tclsh.
12257# TODO: try other versions before falling back?
12258#
mistachkinfe27b082013-08-28 18:06:26 +000012259for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000012260do
12261 # Extract the first word of "$ac_prog", so it can be a program name with args.
12262set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012263{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012264$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012265if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012266 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012267else
12268 if test -n "$TCLSH_CMD"; then
12269 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12270else
12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12272for as_dir in $PATH
12273do
12274 IFS=$as_save_IFS
12275 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012276 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012277 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 +000012278 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012279 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012280 break 2
12281 fi
12282done
drh710658c2012-01-16 13:00:05 +000012283done
drh8b727472009-01-19 18:18:40 +000012284IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012285
12286fi
12287fi
12288TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12289if test -n "$TCLSH_CMD"; then
drh710658c2012-01-16 13:00:05 +000012290 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000012291$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012292else
drh710658c2012-01-16 13:00:05 +000012293 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012294$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012295fi
12296
drh8b727472009-01-19 18:18:40 +000012297
mlcreechab1c47b2008-03-09 02:51:10 +000012298 test -n "$TCLSH_CMD" && break
12299done
mlcreechf3868112008-03-11 18:03:30 +000012300test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012301
mlcreechf3868112008-03-11 18:03:30 +000012302if test "$TCLSH_CMD" = "none"; then
12303 # If we can't find a local tclsh, then building the amalgamation will fail.
12304 # We act as though --disable-amalgamation has been used.
12305 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12306 USE_AMALGAMATION=0
12307 TCLSH_CMD="tclsh"
12308fi
mlcreechab1c47b2008-03-09 02:51:10 +000012309
12310
mlcreech5b0a9eb2008-03-09 01:38:09 +000012311
vapier6acb2cf2009-01-28 04:46:28 +000012312if test "x${TCLLIBDIR+set}" != "xset" ; then
12313 TCLLIBDIR='$(libdir)'
12314 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12315 TCLLIBDIR=$i
12316 break
12317 done
12318 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12319fi
12320
12321
mlcreech5b0a9eb2008-03-09 01:38:09 +000012322#########
drh75897232000-05-29 14:26:00 +000012323# Set up an appropriate program prefix
12324#
12325if test "$program_prefix" = "NONE"; then
12326 program_prefix=""
12327fi
12328
a.rottmann84e63352003-03-24 09:42:16 +000012329
drh4b2266a2004-11-27 15:52:16 +000012330VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drh710658c2012-01-16 13:00:05 +000012331{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012332$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012333
12334RELEASE=`cat $srcdir/VERSION`
drh710658c2012-01-16 13:00:05 +000012335{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012336$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012337
vapier6acb2cf2009-01-28 04:46:28 +000012338VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012339 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012340 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drh710658c2012-01-16 13:00:05 +000012341{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012342$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012343
drh26d0e2a2005-07-06 13:51:27 +000012344
drh75897232000-05-29 14:26:00 +000012345#########
12346# Check to see if the --with-hints=FILE option is used. If there is none,
12347# then check for a files named "$host.hints" and ../$hosts.hints where
12348# $host is the hostname of the build system. If still no hints are
12349# found, try looking in $system.hints and ../$system.hints where
12350# $system is the result of uname -s.
12351#
drh71eb93e2001-09-28 01:34:43 +000012352
drh8b727472009-01-19 18:18:40 +000012353# Check whether --with-hints was given.
drh710658c2012-01-16 13:00:05 +000012354if test "${with_hints+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012355 withval=$with_hints; hints=$withval
12356fi
12357
drh75897232000-05-29 14:26:00 +000012358if test "$hints" = ""; then
12359 host=`hostname | sed 's/\..*//'`
12360 if test -r $host.hints; then
12361 hints=$host.hints
12362 else
12363 if test -r ../$host.hints; then
12364 hints=../$host.hints
12365 fi
12366 fi
12367fi
12368if test "$hints" = ""; then
12369 sys=`uname -s`
12370 if test -r $sys.hints; then
12371 hints=$sys.hints
12372 else
12373 if test -r ../$sys.hints; then
12374 hints=../$sys.hints
12375 fi
12376 fi
12377fi
12378if test "$hints" != ""; then
drh710658c2012-01-16 13:00:05 +000012379 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
drh8b727472009-01-19 18:18:40 +000012380$as_echo "reading hints from $hints" >&6; }
drh75897232000-05-29 14:26:00 +000012381 . $hints
12382fi
12383
12384#########
12385# Locate a compiler for the build machine. This compiler should
12386# generate command-line programs that run on the build machine.
12387#
vapier7f19c022007-02-17 14:46:31 +000012388if test x"$cross_compiling" = xno; then
12389 BUILD_CC=$CC
12390 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012391else
vapier7f19c022007-02-17 14:46:31 +000012392 if test "${BUILD_CC+set}" != set; then
12393 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012394do
12395 # Extract the first word of "$ac_prog", so it can be a program name with args.
12396set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012398$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012399if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012400 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012401else
vapier7f19c022007-02-17 14:46:31 +000012402 if test -n "$BUILD_CC"; then
12403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012404else
a.rottmann84e63352003-03-24 09:42:16 +000012405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012410 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012411 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 +000012412 ac_cv_prog_BUILD_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012414 break 2
12415 fi
12416done
drh710658c2012-01-16 13:00:05 +000012417done
drh8b727472009-01-19 18:18:40 +000012418IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012419
drh71eb93e2001-09-28 01:34:43 +000012420fi
12421fi
vapier7f19c022007-02-17 14:46:31 +000012422BUILD_CC=$ac_cv_prog_BUILD_CC
12423if test -n "$BUILD_CC"; then
drh710658c2012-01-16 13:00:05 +000012424 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000012425$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012426else
drh710658c2012-01-16 13:00:05 +000012427 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012428$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012429fi
drh75897232000-05-29 14:26:00 +000012430
drh8b727472009-01-19 18:18:40 +000012431
vapier7f19c022007-02-17 14:46:31 +000012432 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012433done
drh75897232000-05-29 14:26:00 +000012434
vapier7f19c022007-02-17 14:46:31 +000012435 fi
12436 if test "${BUILD_CFLAGS+set}" != set; then
12437 BUILD_CFLAGS="-g"
12438 fi
drh71eb93e2001-09-28 01:34:43 +000012439fi
12440
a.rottmann84e63352003-03-24 09:42:16 +000012441
drh297ecf12001-04-05 15:57:13 +000012442##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012443# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012444#
drh8b727472009-01-19 18:18:40 +000012445# Check whether --enable-threadsafe was given.
drh710658c2012-01-16 13:00:05 +000012446if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012447 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012448else
drh5a3032b2007-09-03 16:12:09 +000012449 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012450fi
12451
drh710658c2012-01-16 13:00:05 +000012452{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000012453$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012454if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012455 SQLITE_THREADSAFE=0
drh710658c2012-01-16 13:00:05 +000012456 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012457$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012458else
drh5a3032b2007-09-03 16:12:09 +000012459 SQLITE_THREADSAFE=1
drh710658c2012-01-16 13:00:05 +000012460 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012461$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012462fi
12463
a.rottmann964dbb12004-02-26 19:47:42 +000012464
drh5a3032b2007-09-03 16:12:09 +000012465if test "$SQLITE_THREADSAFE" = "1"; then
drh710658c2012-01-16 13:00:05 +000012466 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012467$as_echo_n "checking for library containing pthread_create... " >&6; }
drh710658c2012-01-16 13:00:05 +000012468if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012469 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012470else
mlcreechc658b0f2008-03-09 02:20:11 +000012471 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
dougcurrie65623c72004-09-20 14:57:23 +000012477/* end confdefs.h. */
12478
drh8b727472009-01-19 18:18:40 +000012479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012482#ifdef __cplusplus
12483extern "C"
12484#endif
dougcurrie65623c72004-09-20 14:57:23 +000012485char pthread_create ();
12486int
12487main ()
12488{
drh8b727472009-01-19 18:18:40 +000012489return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012490 ;
12491 return 0;
12492}
12493_ACEOF
drh8b727472009-01-19 18:18:40 +000012494for ac_lib in '' pthread; do
12495 if test -z "$ac_lib"; then
12496 ac_res="none required"
12497 else
12498 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012500 fi
drh710658c2012-01-16 13:00:05 +000012501 rm -f conftest.$ac_objext conftest$ac_exeext
12502if { (ac_try="$ac_link"
12503case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12506esac
12507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508$as_echo "$ac_try_echo") >&5
12509 (eval "$ac_link") 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } && {
12516 test -z "$ac_c_werror_flag" ||
12517 test ! -s conftest.err
12518 } && test -s conftest$ac_exeext && {
12519 test "$cross_compiling" = yes ||
12520 $as_test_x conftest$ac_exeext
12521 }; then
drh8b727472009-01-19 18:18:40 +000012522 ac_cv_search_pthread_create=$ac_res
drh710658c2012-01-16 13:00:05 +000012523else
12524 $as_echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
12527
mlcreechc658b0f2008-03-09 02:20:11 +000012528fi
drh710658c2012-01-16 13:00:05 +000012529
12530rm -rf conftest.dSYM
12531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12532 conftest$ac_exeext
12533 if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012534 break
drh866108f2008-05-13 00:57:21 +000012535fi
drh8b727472009-01-19 18:18:40 +000012536done
drh710658c2012-01-16 13:00:05 +000012537if test "${ac_cv_search_pthread_create+set}" = set; then
12538 :
drh8b727472009-01-19 18:18:40 +000012539else
12540 ac_cv_search_pthread_create=no
12541fi
12542rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012543LIBS=$ac_func_search_save_LIBS
12544fi
drh710658c2012-01-16 13:00:05 +000012545{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012546$as_echo "$ac_cv_search_pthread_create" >&6; }
12547ac_res=$ac_cv_search_pthread_create
drh710658c2012-01-16 13:00:05 +000012548if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012550
dougcurrie65623c72004-09-20 14:57:23 +000012551fi
12552
mlcreechc658b0f2008-03-09 02:20:11 +000012553fi
dougcurrie65623c72004-09-20 14:57:23 +000012554
xdong28f79f72003-09-23 00:35:21 +000012555##########
drh91636d52005-11-24 23:14:00 +000012556# Do we want to allow a connection created in one thread to be used
12557# in another thread. This does not work on many Linux systems (ex: RedHat 9)
12558# due to bugs in the threading implementations. This is thus off by default.
12559#
drh8b727472009-01-19 18:18:40 +000012560# Check whether --enable-cross-thread-connections was given.
drh710658c2012-01-16 13:00:05 +000012561if test "${enable_cross_thread_connections+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012562 enableval=$enable_cross_thread_connections;
drh91636d52005-11-24 23:14:00 +000012563else
12564 enable_xthreadconnect=no
drh8b727472009-01-19 18:18:40 +000012565fi
12566
drh710658c2012-01-16 13:00:05 +000012567{ $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
drh8b727472009-01-19 18:18:40 +000012568$as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
drh91636d52005-11-24 23:14:00 +000012569if test "$enable_xthreadconnect" = "no"; then
12570 XTHREADCONNECT=''
drh710658c2012-01-16 13:00:05 +000012571 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012572$as_echo "no" >&6; }
drh91636d52005-11-24 23:14:00 +000012573else
12574 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
drh710658c2012-01-16 13:00:05 +000012575 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012576$as_echo "yes" >&6; }
drh91636d52005-11-24 23:14:00 +000012577fi
12578
12579
12580##########
xdong28f79f72003-09-23 00:35:21 +000012581# Do we want to support release
12582#
drh8b727472009-01-19 18:18:40 +000012583# Check whether --enable-releasemode was given.
drh710658c2012-01-16 13:00:05 +000012584if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012585 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012586else
12587 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012588fi
12589
drh710658c2012-01-16 13:00:05 +000012590{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000012591$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012592if test "$enable_releasemode" = "no"; then
12593 ALLOWRELEASE=""
drh710658c2012-01-16 13:00:05 +000012594 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012595$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012596else
drh0b47d342007-11-27 14:50:06 +000012597 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh710658c2012-01-16 13:00:05 +000012598 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012599$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012600fi
paulb0208cc2003-04-13 18:26:49 +000012601
a.rottmann964dbb12004-02-26 19:47:42 +000012602
paulb0208cc2003-04-13 18:26:49 +000012603##########
12604# Do we want temporary databases in memory
12605#
drh8b727472009-01-19 18:18:40 +000012606# Check whether --enable-tempstore was given.
drh710658c2012-01-16 13:00:05 +000012607if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012608 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012609else
drh54414bb2005-10-10 00:05:50 +000012610 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012611fi
12612
drh710658c2012-01-16 13:00:05 +000012613{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000012614$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012615case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012616 never )
paul2dc96f92003-04-20 11:46:34 +000012617 TEMP_STORE=0
drh710658c2012-01-16 13:00:05 +000012618 { $as_echo "$as_me:$LINENO: result: never" >&5
drh8b727472009-01-19 18:18:40 +000012619$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012620 ;;
12621 no )
paul2dc96f92003-04-20 11:46:34 +000012622 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012623 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012624$as_echo "no" >&6; }
12625 ;;
12626 yes )
12627 TEMP_STORE=2
drh710658c2012-01-16 13:00:05 +000012628 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012629$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012630 ;;
12631 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012632 TEMP_STORE=3
drh710658c2012-01-16 13:00:05 +000012633 { $as_echo "$as_me:$LINENO: result: always" >&5
drh8b727472009-01-19 18:18:40 +000012634$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012635 ;;
paulb0208cc2003-04-13 18:26:49 +000012636 * )
drh54414bb2005-10-10 00:05:50 +000012637 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012638 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012639$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012640 ;;
12641esac
12642
12643
12644
drh75897232000-05-29 14:26:00 +000012645###########
12646# Lots of things are different if we are compiling for Windows using
12647# the CYGWIN environment. So check for that special case and handle
12648# things accordingly.
12649#
drh710658c2012-01-16 13:00:05 +000012650{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000012651$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012652if test "$config_BUILD_EXEEXT" = ".exe"; then
12653 CYGWIN=yes
drh710658c2012-01-16 13:00:05 +000012654 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012655$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012656else
drh710658c2012-01-16 13:00:05 +000012657 { $as_echo "$as_me:$LINENO: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000012658$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012659fi
12660if test "$CYGWIN" != "yes"; then
drh710658c2012-01-16 13:00:05 +000012661 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12662$as_echo_n "checking host system type... " >&6; }
12663if test "${ac_cv_host+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12665else
12666 if test "x$host_alias" = x; then
12667 ac_cv_host=$ac_cv_build
12668else
12669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12671$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12672 { (exit 1); exit 1; }; }
12673fi
12674
12675fi
12676{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12677$as_echo "$ac_cv_host" >&6; }
12678case $ac_cv_host in
12679*-*-*) ;;
12680*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12681$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12682 { (exit 1); exit 1; }; };;
12683esac
12684host=$ac_cv_host
12685ac_save_IFS=$IFS; IFS='-'
12686set x $ac_cv_host
12687shift
12688host_cpu=$1
12689host_vendor=$2
12690shift; shift
12691# Remember, the first character of IFS is used to create $*,
12692# except with old shells:
12693host_os=$*
12694IFS=$ac_save_IFS
12695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12696
a.rottmann84e63352003-03-24 09:42:16 +000012697
12698case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012699 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012700 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012701esac
drh75897232000-05-29 14:26:00 +000012702
drh75897232000-05-29 14:26:00 +000012703fi
12704if test "$CYGWIN" = "yes"; then
12705 BUILD_EXEEXT=.exe
12706else
dougcurrie6194a5f2003-12-19 20:09:51 +000012707 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012708fi
vapier7f19c022007-02-17 14:46:31 +000012709if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012710 TARGET_EXEEXT=$BUILD_EXEEXT
12711else
12712 TARGET_EXEEXT=$config_TARGET_EXEEXT
12713fi
12714if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000012715 SQLITE_OS_UNIX=0
12716 SQLITE_OS_WIN=1
12717 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000012718else
danielk197729bafea2008-06-26 10:41:19 +000012719 SQLITE_OS_UNIX=1
12720 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000012721 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012722fi
drh75897232000-05-29 14:26:00 +000012723
a.rottmann84e63352003-03-24 09:42:16 +000012724
12725
12726
12727
12728
drh75897232000-05-29 14:26:00 +000012729##########
drh7b5717e2004-11-25 13:50:01 +000012730# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012731#
drh7b5717e2004-11-25 13:50:01 +000012732# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12733# macros in the in the tcl.m4 file of the standard TCL distribution.
12734# Those macros could not be used directly since we have to make some
12735# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012736#
drh8b727472009-01-19 18:18:40 +000012737# Check whether --enable-tcl was given.
drh710658c2012-01-16 13:00:05 +000012738if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012739 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012740else
drh7b5717e2004-11-25 13:50:01 +000012741 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012742fi
12743
drh7b5717e2004-11-25 13:50:01 +000012744if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012745
drh8b727472009-01-19 18:18:40 +000012746# Check whether --with-tcl was given.
drh710658c2012-01-16 13:00:05 +000012747if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012748 withval=$with_tcl; with_tclconfig=${withval}
12749fi
12750
drh710658c2012-01-16 13:00:05 +000012751 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000012752$as_echo_n "checking for Tcl configuration... " >&6; }
drh710658c2012-01-16 13:00:05 +000012753 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012754 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012755else
a.rottmann84e63352003-03-24 09:42:16 +000012756
drh7b5717e2004-11-25 13:50:01 +000012757 # First check to see if --with-tcl was specified.
12758 if test x"${with_tclconfig}" != x ; then
12759 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12760 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12761 else
drh710658c2012-01-16 13:00:05 +000012762 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12763$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12764 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012765 fi
12766 fi
vapier6acb2cf2009-01-28 04:46:28 +000012767
12768 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000012769 if test x"${ac_cv_c_tclconfig}" = x ; then
12770 if test x"$cross_compiling" = xno; then
12771 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12772 do
12773 if test -f "$i/tclConfig.sh" ; then
12774 ac_cv_c_tclconfig="$i"
12775 break
12776 fi
12777 done
12778 fi
vapier6acb2cf2009-01-28 04:46:28 +000012779 fi
12780
drh7b5717e2004-11-25 13:50:01 +000012781 # then check for a private Tcl installation
12782 if test x"${ac_cv_c_tclconfig}" = x ; then
12783 for i in \
12784 ../tcl \
12785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12788 ../../tcl \
12789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12792 ../../../tcl \
12793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12796 do
12797 if test -f "$i/unix/tclConfig.sh" ; then
12798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12799 break
12800 fi
12801 done
12802 fi
12803
12804 # check in a few common install locations
12805 if test x"${ac_cv_c_tclconfig}" = x ; then
12806 for i in \
12807 `ls -d ${libdir} 2>/dev/null` \
12808 `ls -d /usr/local/lib 2>/dev/null` \
12809 `ls -d /usr/contrib/lib 2>/dev/null` \
12810 `ls -d /usr/lib 2>/dev/null`
12811 do
12812 if test -f "$i/tclConfig.sh" ; then
12813 ac_cv_c_tclconfig=`(cd $i; pwd)`
12814 break
12815 fi
12816 done
12817 fi
12818
12819 # check in a few other private locations
12820 if test x"${ac_cv_c_tclconfig}" = x ; then
12821 for i in \
12822 ${srcdir}/../tcl \
12823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12826 do
12827 if test -f "$i/unix/tclConfig.sh" ; then
12828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12829 break
12830 fi
12831 done
12832 fi
12833
drh75897232000-05-29 14:26:00 +000012834fi
12835
drh7b5717e2004-11-25 13:50:01 +000012836
12837 if test x"${ac_cv_c_tclconfig}" = x ; then
12838 use_tcl=no
drh710658c2012-01-16 13:00:05 +000012839 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000012840$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drh710658c2012-01-16 13:00:05 +000012841 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000012842$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drh710658c2012-01-16 13:00:05 +000012843 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000012844$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012845 else
12846 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh710658c2012-01-16 13:00:05 +000012847 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012848$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012849
drh710658c2012-01-16 13:00:05 +000012850 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012851$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh710658c2012-01-16 13:00:05 +000012853 { $as_echo "$as_me:$LINENO: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000012854$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012855 . $TCL_BIN_DIR/tclConfig.sh
12856 else
drh710658c2012-01-16 13:00:05 +000012857 { $as_echo "$as_me:$LINENO: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000012858$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012859 fi
drh7b5717e2004-11-25 13:50:01 +000012860
12861 #
12862 # If the TCL_BIN_DIR is the build directory (not the install directory),
12863 # then set the common variable name to the value of the build variables.
12864 # For example, the variable TCL_LIB_SPEC will be set to the value
12865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12867 # installed and uninstalled version of Tcl.
12868 #
12869
mlcreechab1c47b2008-03-09 02:51:10 +000012870 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12874 fi
12875
12876 #
12877 # eval is required to do the TCL_DBGX substitution
12878 #
12879
12880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12883
12884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
drh7b5717e2004-11-25 13:50:01 +000012900 fi
drh75897232000-05-29 14:26:00 +000012901fi
drh7b5717e2004-11-25 13:50:01 +000012902if test "${use_tcl}" = "no" ; then
12903 HAVE_TCL=""
12904else
12905 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012906fi
drh75897232000-05-29 14:26:00 +000012907
a.rottmann84e63352003-03-24 09:42:16 +000012908
drh75897232000-05-29 14:26:00 +000012909##########
12910# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012911# that use "readline()" library.
12912#
vapier7f19c022007-02-17 14:46:31 +000012913TARGET_READLINE_LIBS=""
12914TARGET_READLINE_INC=""
12915TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012916# Check whether --enable-readline was given.
drh710658c2012-01-16 13:00:05 +000012917if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012918 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012919else
vapier7f19c022007-02-17 14:46:31 +000012920 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012921fi
12922
vapier7f19c022007-02-17 14:46:31 +000012923
12924if test x"$with_readline" != xno; then
12925 found="yes"
12926
12927
drh8b727472009-01-19 18:18:40 +000012928# Check whether --with-readline-lib was given.
drh710658c2012-01-16 13:00:05 +000012929if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012930 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012931else
12932 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012933fi
12934
vapier7f19c022007-02-17 14:46:31 +000012935 if test "x$with_readline_lib" = xauto; then
12936 save_LIBS="$LIBS"
12937 LIBS=""
drh710658c2012-01-16 13:00:05 +000012938 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012939$as_echo_n "checking for library containing tgetent... " >&6; }
drh710658c2012-01-16 13:00:05 +000012940if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012941 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012942else
drh71eb93e2001-09-28 01:34:43 +000012943 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012944cat >conftest.$ac_ext <<_ACEOF
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012949/* end confdefs.h. */
12950
drh8b727472009-01-19 18:18:40 +000012951/* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012954#ifdef __cplusplus
12955extern "C"
12956#endif
paul38372372003-04-22 08:04:49 +000012957char tgetent ();
12958int
12959main ()
12960{
drh8b727472009-01-19 18:18:40 +000012961return tgetent ();
paul38372372003-04-22 08:04:49 +000012962 ;
12963 return 0;
12964}
12965_ACEOF
drh8b727472009-01-19 18:18:40 +000012966for ac_lib in '' readline ncurses curses termcap; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12969 else
12970 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012972 fi
drh710658c2012-01-16 13:00:05 +000012973 rm -f conftest.$ac_objext conftest$ac_exeext
12974if { (ac_try="$ac_link"
12975case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978esac
12979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12980$as_echo "$ac_try_echo") >&5
12981 (eval "$ac_link") 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && {
12988 test -z "$ac_c_werror_flag" ||
12989 test ! -s conftest.err
12990 } && test -s conftest$ac_exeext && {
12991 test "$cross_compiling" = yes ||
12992 $as_test_x conftest$ac_exeext
12993 }; then
drh8b727472009-01-19 18:18:40 +000012994 ac_cv_search_tgetent=$ac_res
drh710658c2012-01-16 13:00:05 +000012995else
12996 $as_echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999
mlcreech94984912008-03-04 19:03:08 +000013000fi
drh710658c2012-01-16 13:00:05 +000013001
13002rm -rf conftest.dSYM
13003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13004 conftest$ac_exeext
13005 if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013006 break
drh866108f2008-05-13 00:57:21 +000013007fi
drh8b727472009-01-19 18:18:40 +000013008done
drh710658c2012-01-16 13:00:05 +000013009if test "${ac_cv_search_tgetent+set}" = set; then
13010 :
drh8b727472009-01-19 18:18:40 +000013011else
13012 ac_cv_search_tgetent=no
13013fi
13014rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013015LIBS=$ac_func_search_save_LIBS
13016fi
drh710658c2012-01-16 13:00:05 +000013017{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000013018$as_echo "$ac_cv_search_tgetent" >&6; }
13019ac_res=$ac_cv_search_tgetent
drh710658c2012-01-16 13:00:05 +000013020if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000013022 term_LIBS="$LIBS"
13023else
13024 term_LIBS=""
paul38372372003-04-22 08:04:49 +000013025fi
13026
drh710658c2012-01-16 13:00:05 +000013027 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000013028$as_echo_n "checking for readline in -lreadline... " >&6; }
drh710658c2012-01-16 13:00:05 +000013029if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013030 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000013031else
13032 ac_check_lib_save_LIBS=$LIBS
13033LIBS="-lreadline $LIBS"
drh710658c2012-01-16 13:00:05 +000013034cat >conftest.$ac_ext <<_ACEOF
13035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000013039/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013040
drh8b727472009-01-19 18:18:40 +000013041/* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000013044#ifdef __cplusplus
13045extern "C"
13046#endif
drh71eb93e2001-09-28 01:34:43 +000013047char readline ();
13048int
13049main ()
13050{
drh8b727472009-01-19 18:18:40 +000013051return readline ();
drh71eb93e2001-09-28 01:34:43 +000013052 ;
13053 return 0;
13054}
13055_ACEOF
drh710658c2012-01-16 13:00:05 +000013056rm -f conftest.$ac_objext conftest$ac_exeext
13057if { (ac_try="$ac_link"
13058case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13063$as_echo "$ac_try_echo") >&5
13064 (eval "$ac_link") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && {
13071 test -z "$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 } && test -s conftest$ac_exeext && {
13074 test "$cross_compiling" = yes ||
13075 $as_test_x conftest$ac_exeext
13076 }; then
paul38372372003-04-22 08:04:49 +000013077 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013078else
drh710658c2012-01-16 13:00:05 +000013079 $as_echo "$as_me: failed program was:" >&5
13080sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013083fi
drh710658c2012-01-16 13:00:05 +000013084
13085rm -rf conftest.dSYM
13086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13087 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013088LIBS=$ac_check_lib_save_LIBS
13089fi
drh710658c2012-01-16 13:00:05 +000013090{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000013091$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh710658c2012-01-16 13:00:05 +000013092if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013093 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013094else
vapier7f19c022007-02-17 14:46:31 +000013095 found="no"
13096fi
drhf1878b42006-01-23 18:06:52 +000013097
vapier7f19c022007-02-17 14:46:31 +000013098 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13099 LIBS="$save_LIBS"
13100 else
13101 TARGET_READLINE_LIBS="$with_readline_lib"
13102 fi
13103
13104
drh8b727472009-01-19 18:18:40 +000013105# Check whether --with-readline-inc was given.
drh710658c2012-01-16 13:00:05 +000013106if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013107 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013108else
vapier7f19c022007-02-17 14:46:31 +000013109 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013110fi
13111
vapier7f19c022007-02-17 14:46:31 +000013112 if test "x$with_readline_inc" = xauto; then
drh710658c2012-01-16 13:00:05 +000013113 if test "${ac_cv_header_readline_h+set}" = set; then
13114 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13115$as_echo_n "checking for readline.h... " >&6; }
13116if test "${ac_cv_header_readline_h+set}" = set; then
13117 $as_echo_n "(cached) " >&6
13118fi
13119{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13120$as_echo "$ac_cv_header_readline_h" >&6; }
13121else
13122 # Is the header compilable?
13123{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13124$as_echo_n "checking readline.h usability... " >&6; }
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132#include <readline.h>
13133_ACEOF
13134rm -f conftest.$ac_objext
13135if { (ac_try="$ac_compile"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13141$as_echo "$ac_try_echo") >&5
13142 (eval "$ac_compile") 2>conftest.er1
13143 ac_status=$?
13144 grep -v '^ *+' conftest.er1 >conftest.err
13145 rm -f conftest.er1
13146 cat conftest.err >&5
13147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } && {
13149 test -z "$ac_c_werror_flag" ||
13150 test ! -s conftest.err
13151 } && test -s conftest.$ac_objext; then
13152 ac_header_compiler=yes
13153else
13154 $as_echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
13157 ac_header_compiler=no
13158fi
13159
13160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13162$as_echo "$ac_header_compiler" >&6; }
13163
13164# Is the header present?
13165{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13166$as_echo_n "checking readline.h presence... " >&6; }
13167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
13173#include <readline.h>
13174_ACEOF
13175if { (ac_try="$ac_cpp conftest.$ac_ext"
13176case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179esac
13180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181$as_echo "$ac_try_echo") >&5
13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } >/dev/null && {
13189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 }; then
13192 ac_header_preproc=yes
13193else
13194 $as_echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 ac_header_preproc=no
13198fi
13199
13200rm -f conftest.err conftest.$ac_ext
13201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13202$as_echo "$ac_header_preproc" >&6; }
13203
13204# So? What about this header?
13205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13206 yes:no: )
13207 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13208$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13209 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13210$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13211 ac_header_preproc=yes
13212 ;;
13213 no:yes:* )
13214 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13215$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13216 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13217$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13219$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13221$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13223$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13225$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13226
13227 ;;
13228esac
13229{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13230$as_echo_n "checking for readline.h... " >&6; }
13231if test "${ac_cv_header_readline_h+set}" = set; then
13232 $as_echo_n "(cached) " >&6
13233else
13234 ac_cv_header_readline_h=$ac_header_preproc
13235fi
13236{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13237$as_echo "$ac_cv_header_readline_h" >&6; }
13238
13239fi
13240if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013241 found="yes"
13242else
drh75897232000-05-29 14:26:00 +000013243
vapier7f19c022007-02-17 14:46:31 +000013244 found="no"
13245 if test "$cross_compiling" != yes; then
13246 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13247 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013248 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drh710658c2012-01-16 13:00:05 +000013249{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000013250$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drh710658c2012-01-16 13:00:05 +000013251if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh8b727472009-01-19 18:18:40 +000013252 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013253else
13254 test "$cross_compiling" = yes &&
drh710658c2012-01-16 13:00:05 +000013255 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13256$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13257 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013258if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013259 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013260else
drh71eb93e2001-09-28 01:34:43 +000013261 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013262fi
13263fi
drh710658c2012-01-16 13:00:05 +000013264ac_res=`eval 'as_val=${'$as_ac_File'}
13265 $as_echo "$as_val"'`
13266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000013267$as_echo "$ac_res" >&6; }
drh710658c2012-01-16 13:00:05 +000013268if test `eval 'as_val=${'$as_ac_File'}
13269 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013270 found=yes
drh75897232000-05-29 14:26:00 +000013271fi
13272
vapier7f19c022007-02-17 14:46:31 +000013273 if test "$found" = "yes"; then
13274 TARGET_READLINE_INC="-I$dir/$subdir"
13275 break
13276 fi
13277 done
13278 test "$found" = "yes" && break
13279 done
13280 fi
13281
13282fi
13283
13284
13285 else
13286 TARGET_READLINE_INC="$with_readline_inc"
13287 fi
13288
13289 if test x"$found" = xno; then
13290 TARGET_READLINE_LIBS=""
13291 TARGET_READLINE_INC=""
13292 TARGET_HAVE_READLINE=0
13293 else
13294 TARGET_HAVE_READLINE=1
13295 fi
13296fi
13297
13298
13299
13300
13301
13302##########
13303# Figure out what C libraries are required to compile programs
13304# that use "fdatasync()" function.
13305#
drh710658c2012-01-16 13:00:05 +000013306{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013307$as_echo_n "checking for library containing fdatasync... " >&6; }
drh710658c2012-01-16 13:00:05 +000013308if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013309 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013310else
vapier7f19c022007-02-17 14:46:31 +000013311 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013312cat >conftest.$ac_ext <<_ACEOF
13313/* confdefs.h. */
13314_ACEOF
13315cat confdefs.h >>conftest.$ac_ext
13316cat >>conftest.$ac_ext <<_ACEOF
vapier7f19c022007-02-17 14:46:31 +000013317/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013318
drh8b727472009-01-19 18:18:40 +000013319/* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013322#ifdef __cplusplus
13323extern "C"
13324#endif
13325char fdatasync ();
13326int
13327main ()
13328{
drh8b727472009-01-19 18:18:40 +000013329return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013330 ;
13331 return 0;
13332}
13333_ACEOF
drh8b727472009-01-19 18:18:40 +000013334for ac_lib in '' rt; do
13335 if test -z "$ac_lib"; then
13336 ac_res="none required"
13337 else
13338 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013340 fi
drh710658c2012-01-16 13:00:05 +000013341 rm -f conftest.$ac_objext conftest$ac_exeext
13342if { (ac_try="$ac_link"
13343case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346esac
13347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348$as_echo "$ac_try_echo") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext && {
13359 test "$cross_compiling" = yes ||
13360 $as_test_x conftest$ac_exeext
13361 }; then
drh8b727472009-01-19 18:18:40 +000013362 ac_cv_search_fdatasync=$ac_res
drh710658c2012-01-16 13:00:05 +000013363else
13364 $as_echo "$as_me: failed program was:" >&5
13365sed 's/^/| /' conftest.$ac_ext >&5
13366
13367
mlcreech94984912008-03-04 19:03:08 +000013368fi
drh710658c2012-01-16 13:00:05 +000013369
13370rm -rf conftest.dSYM
13371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext
13373 if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013374 break
drh866108f2008-05-13 00:57:21 +000013375fi
drh8b727472009-01-19 18:18:40 +000013376done
drh710658c2012-01-16 13:00:05 +000013377if test "${ac_cv_search_fdatasync+set}" = set; then
13378 :
drh8b727472009-01-19 18:18:40 +000013379else
13380 ac_cv_search_fdatasync=no
13381fi
13382rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013383LIBS=$ac_func_search_save_LIBS
13384fi
drh710658c2012-01-16 13:00:05 +000013385{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013386$as_echo "$ac_cv_search_fdatasync" >&6; }
13387ac_res=$ac_cv_search_fdatasync
drh710658c2012-01-16 13:00:05 +000013388if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013390
vapier7f19c022007-02-17 14:46:31 +000013391fi
13392
a.rottmann84e63352003-03-24 09:42:16 +000013393
drh75897232000-05-29 14:26:00 +000013394#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013395# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013396# Check whether --enable-debug was given.
drh710658c2012-01-16 13:00:05 +000013397if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013398 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013399else
13400 use_debug=no
drh8b727472009-01-19 18:18:40 +000013401fi
13402
tpoindex9d9f76c2005-01-03 21:28:56 +000013403if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013404 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013405else
13406 TARGET_DEBUG="-DNDEBUG"
13407fi
13408
13409
13410#########
mlcreech94984912008-03-04 19:03:08 +000013411# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013412# Check whether --enable-amalgamation was given.
drh710658c2012-01-16 13:00:05 +000013413if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013414 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013415else
13416 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013417fi
13418
mlcreechf3868112008-03-11 18:03:30 +000013419if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013420 USE_AMALGAMATION=0
13421fi
13422
13423
13424#########
mlcreecha4edab02008-03-06 04:14:17 +000013425# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013426# Check whether --enable-load-extension was given.
drh710658c2012-01-16 13:00:05 +000013427if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013428 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013429else
13430 use_loadextension=no
drh8b727472009-01-19 18:18:40 +000013431fi
13432
mlcreecha4edab02008-03-06 04:14:17 +000013433if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013434 OPT_FEATURE_FLAGS=""
drh710658c2012-01-16 13:00:05 +000013435 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013436$as_echo_n "checking for library containing dlopen... " >&6; }
drh710658c2012-01-16 13:00:05 +000013437if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013438 $as_echo_n "(cached) " >&6
13439else
13440 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013441cat >conftest.$ac_ext <<_ACEOF
13442/* confdefs.h. */
13443_ACEOF
13444cat confdefs.h >>conftest.$ac_ext
13445cat >>conftest.$ac_ext <<_ACEOF
drhdbe4b882011-06-20 18:00:17 +000013446/* end confdefs.h. */
13447
13448/* Override any GCC internal prototype to avoid an error.
13449 Use char because int might match the return type of a GCC
13450 builtin and then its argument prototype would still apply. */
13451#ifdef __cplusplus
13452extern "C"
13453#endif
13454char dlopen ();
13455int
13456main ()
13457{
13458return dlopen ();
13459 ;
13460 return 0;
13461}
13462_ACEOF
13463for ac_lib in '' dl; do
13464 if test -z "$ac_lib"; then
13465 ac_res="none required"
13466 else
13467 ac_res=-l$ac_lib
13468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13469 fi
drh710658c2012-01-16 13:00:05 +000013470 rm -f conftest.$ac_objext conftest$ac_exeext
13471if { (ac_try="$ac_link"
13472case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475esac
13476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13477$as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest$ac_exeext
13490 }; then
drhdbe4b882011-06-20 18:00:17 +000013491 ac_cv_search_dlopen=$ac_res
drh710658c2012-01-16 13:00:05 +000013492else
13493 $as_echo "$as_me: failed program was:" >&5
13494sed 's/^/| /' conftest.$ac_ext >&5
13495
13496
drhdbe4b882011-06-20 18:00:17 +000013497fi
drh710658c2012-01-16 13:00:05 +000013498
13499rm -rf conftest.dSYM
13500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext
13502 if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013503 break
13504fi
13505done
drh710658c2012-01-16 13:00:05 +000013506if test "${ac_cv_search_dlopen+set}" = set; then
13507 :
drhdbe4b882011-06-20 18:00:17 +000013508else
13509 ac_cv_search_dlopen=no
13510fi
13511rm conftest.$ac_ext
13512LIBS=$ac_func_search_save_LIBS
13513fi
drh710658c2012-01-16 13:00:05 +000013514{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013515$as_echo "$ac_cv_search_dlopen" >&6; }
13516ac_res=$ac_cv_search_dlopen
drh710658c2012-01-16 13:00:05 +000013517if test "$ac_res" != no; then
drhdbe4b882011-06-20 18:00:17 +000013518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13519
13520fi
13521
mlcreecha4edab02008-03-06 04:14:17 +000013522else
shanefbedede2008-07-22 05:05:01 +000013523 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013524fi
13525
mlcreechaac7b932008-04-01 02:45:22 +000013526#########
shaneb1cd7302008-10-22 18:27:31 +000013527# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013528for option in $CFLAGS $CPPFLAGS
13529do
13530 case $option in
danielk197733a14782008-08-04 14:50:05 +000013531 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013532 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013533 esac
13534done
13535
13536
danielk197733a14782008-08-04 14:50:05 +000013537
shaneb1cd7302008-10-22 18:27:31 +000013538# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013539ac_temp_CFLAGS=""
13540for option in $CFLAGS
13541do
13542 case $option in
13543 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013544 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013545 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013546 esac
13547done
13548CFLAGS=$ac_temp_CFLAGS
13549
13550
shaneb1cd7302008-10-22 18:27:31 +000013551# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013552ac_temp_CPPFLAGS=""
13553for option in $CPPFLAGS
13554do
13555 case $option in
13556 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013557 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013558 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013559 esac
13560done
13561CPPFLAGS=$ac_temp_CPPFLAGS
13562
danielk197733a14782008-08-04 14:50:05 +000013563
drh8b727472009-01-19 18:18:40 +000013564# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013565ac_temp_BUILD_CFLAGS=""
13566for option in $BUILD_CFLAGS
13567do
13568 case $option in
13569 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013570 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013571 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013572 esac
13573done
13574BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13575
13576
13577#########
13578# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013579# Check whether --enable-gcov was given.
drh710658c2012-01-16 13:00:05 +000013580if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013581 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013582else
13583 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013584fi
13585
mlcreechaac7b932008-04-01 02:45:22 +000013586if test "${use_gcov}" = "yes" ; then
13587 USE_GCOV=1
13588else
13589 USE_GCOV=0
13590fi
13591
13592
danielk197733a14782008-08-04 14:50:05 +000013593
drh2dfbbca2000-07-28 14:32:48 +000013594#########
mlcreechb87057f2008-03-06 07:19:20 +000013595# Output the config header
drh8b727472009-01-19 18:18:40 +000013596ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013597
13598
13599#########
drh75897232000-05-29 14:26:00 +000013600# Generate the output files.
13601#
mlcreechdf59c7c2008-03-06 07:51:15 +000013602
drh8b727472009-01-19 18:18:40 +000013603ac_config_files="$ac_config_files Makefile sqlite3.pc"
13604
drh71eb93e2001-09-28 01:34:43 +000013605cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013606# This file is a shell script that caches the results of configure
13607# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013608# scripts and configure runs, see configure's option --config-cache.
13609# It is not useful on other systems. If it contains results you don't
13610# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013611#
drh71eb93e2001-09-28 01:34:43 +000013612# config.status only pays attention to the cache file if you give it
13613# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013614#
a.rottmann84e63352003-03-24 09:42:16 +000013615# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013616# loading this file, other *unset* `ac_cv_foo' will be assigned the
13617# following values.
13618
13619_ACEOF
13620
drh75897232000-05-29 14:26:00 +000013621# The following way of writing the cache mishandles newlines in values,
13622# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013623# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013624# Ultrix sh set writes to stderr and can't be redirected directly,
13625# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013626(
13627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13628 eval ac_val=\$$ac_var
13629 case $ac_val in #(
13630 *${as_nl}*)
13631 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +000013632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13633$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013634 esac
13635 case $ac_var in #(
13636 _ | IFS | as_nl) ;; #(
13637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +000013638 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +000013639 esac ;;
13640 esac
13641 done
13642
drh71eb93e2001-09-28 01:34:43 +000013643 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13645 *${as_nl}ac_space=\ *)
drh710658c2012-01-16 13:00:05 +000013646 # `set' does not quote correctly, so add quotes (double-quote
13647 # substitution turns \\\\ into \\, and sed turns \\ into \).
drh71eb93e2001-09-28 01:34:43 +000013648 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013649 "s/'/'\\\\''/g;
13650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013651 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013652 *)
13653 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013655 ;;
drh8b727472009-01-19 18:18:40 +000013656 esac |
13657 sort
13658) |
drh71eb93e2001-09-28 01:34:43 +000013659 sed '
drh8b727472009-01-19 18:18:40 +000013660 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013661 t clear
drh8b727472009-01-19 18:18:40 +000013662 :clear
drh71eb93e2001-09-28 01:34:43 +000013663 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13664 t end
drh8b727472009-01-19 18:18:40 +000013665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13666 :end' >>confcache
13667if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13668 if test -w "$cache_file"; then
drh710658c2012-01-16 13:00:05 +000013669 test "x$cache_file" != "x/dev/null" &&
13670 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013671$as_echo "$as_me: updating cache $cache_file" >&6;}
drh710658c2012-01-16 13:00:05 +000013672 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013673 else
drh710658c2012-01-16 13:00:05 +000013674 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013675$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013676 fi
13677fi
13678rm -f confcache
13679
drh75897232000-05-29 14:26:00 +000013680test "x$prefix" = xNONE && prefix=$ac_default_prefix
13681# Let make expand exec_prefix.
13682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13683
mlcreechb87057f2008-03-06 07:19:20 +000013684DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013685
13686ac_libobjs=
13687ac_ltlibobjs=
13688for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13689 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13693 # will be set to the directory where LIBOBJS objects are built.
drh710658c2012-01-16 13:00:05 +000013694 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13695 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013696done
13697LIBOBJS=$ac_libobjs
13698
13699LTLIBOBJS=$ac_ltlibobjs
13700
13701
13702
drh710658c2012-01-16 13:00:05 +000013703: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013704ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013705ac_clean_files_save=$ac_clean_files
13706ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh710658c2012-01-16 13:00:05 +000013707{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000013708$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drh710658c2012-01-16 13:00:05 +000013709cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013710#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013711# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013712# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013713# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013714# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013715
drh71eb93e2001-09-28 01:34:43 +000013716debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013717ac_cs_recheck=false
13718ac_cs_silent=false
dana9f39fd2011-08-12 16:34:42 +000013719SHELL=\${CONFIG_SHELL-$SHELL}
drh710658c2012-01-16 13:00:05 +000013720_ACEOF
13721
13722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13723## --------------------- ##
13724## M4sh Initialization. ##
13725## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000013726
drh8b727472009-01-19 18:18:40 +000013727# Be more Bourne compatible
13728DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000013729if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000013730 emulate sh
13731 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013733 # is contrary to our usage. Disable this feature.
13734 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013735 setopt NO_GLOB_SUBST
13736else
drh710658c2012-01-16 13:00:05 +000013737 case `(set -o) 2>/dev/null` in
13738 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000013739esac
drh710658c2012-01-16 13:00:05 +000013740
a.rottmann84e63352003-03-24 09:42:16 +000013741fi
drh8b727472009-01-19 18:18:40 +000013742
13743
drh710658c2012-01-16 13:00:05 +000013744
13745
13746# PATH needs CR
13747# Avoid depending upon Character Ranges.
13748as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13749as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13750as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13751as_cr_digits='0123456789'
13752as_cr_alnum=$as_cr_Letters$as_cr_digits
13753
drh8b727472009-01-19 18:18:40 +000013754as_nl='
13755'
13756export as_nl
13757# Printing a long string crashes Solaris 7 /usr/bin/printf.
13758as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13759as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13760as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drh710658c2012-01-16 13:00:05 +000013761if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000013762 as_echo='printf %s\n'
13763 as_echo_n='printf %s'
13764else
13765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13767 as_echo_n='/usr/ucb/echo -n'
13768 else
13769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13770 as_echo_n_body='eval
13771 arg=$1;
drh710658c2012-01-16 13:00:05 +000013772 case $arg in
drh8b727472009-01-19 18:18:40 +000013773 *"$as_nl"*)
13774 expr "X$arg" : "X\\(.*\\)$as_nl";
13775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13776 esac;
13777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13778 '
13779 export as_echo_n_body
13780 as_echo_n='sh -c $as_echo_n_body as_echo'
13781 fi
13782 export as_echo_body
13783 as_echo='sh -c $as_echo_body as_echo'
13784fi
13785
13786# The user is always right.
13787if test "${PATH_SEPARATOR+set}" != set; then
13788 PATH_SEPARATOR=:
13789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13791 PATH_SEPARATOR=';'
13792 }
13793fi
a.rottmann84e63352003-03-24 09:42:16 +000013794
drh710658c2012-01-16 13:00:05 +000013795# Support unset when possible.
13796if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13797 as_unset=unset
13798else
13799 as_unset=false
13800fi
13801
mlcreech94984912008-03-04 19:03:08 +000013802
drh8b727472009-01-19 18:18:40 +000013803# IFS
13804# We need space, tab and new line, in precisely that order. Quoting is
13805# there to prevent editors from complaining about space-tab.
13806# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13807# splitting by setting IFS to empty value.)
13808IFS=" "" $as_nl"
13809
13810# Find who we are. Look in the path if we contain no directory separator.
drh710658c2012-01-16 13:00:05 +000013811case $0 in
drh8b727472009-01-19 18:18:40 +000013812 *[\\/]* ) as_myself=$0 ;;
13813 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13814for as_dir in $PATH
13815do
13816 IFS=$as_save_IFS
13817 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000013818 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13819done
drh8b727472009-01-19 18:18:40 +000013820IFS=$as_save_IFS
13821
13822 ;;
13823esac
13824# We did not find ourselves, most probably we were run as `sh COMMAND'
13825# in which case we are not to be found in the path.
13826if test "x$as_myself" = x; then
13827 as_myself=$0
13828fi
13829if test ! -f "$as_myself"; then
13830 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drh710658c2012-01-16 13:00:05 +000013831 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +000013832fi
13833
drh710658c2012-01-16 13:00:05 +000013834# Work around bugs in pre-3.0 UWIN ksh.
13835for as_var in ENV MAIL MAILPATH
13836do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +000013837done
mlcreech94984912008-03-04 19:03:08 +000013838PS1='$ '
13839PS2='> '
13840PS4='+ '
13841
13842# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013843LC_ALL=C
13844export LC_ALL
13845LANGUAGE=C
13846export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013847
drh710658c2012-01-16 13:00:05 +000013848# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013849if expr a : '\(a\)' >/dev/null 2>&1 &&
13850 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013851 as_expr=expr
13852else
13853 as_expr=false
13854fi
13855
drh8b727472009-01-19 18:18:40 +000013856if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013857 as_basename=basename
13858else
13859 as_basename=false
13860fi
13861
13862
drh710658c2012-01-16 13:00:05 +000013863# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013864as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013865$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13866 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13868$as_echo X/"$0" |
13869 sed '/^.*\/\([^/][^/]*\)\/*$/{
13870 s//\1/
13871 q
13872 }
13873 /^X\/\(\/\/\)$/{
13874 s//\1/
13875 q
13876 }
13877 /^X\/\(\/\).*/{
13878 s//\1/
13879 q
13880 }
13881 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013882
drh710658c2012-01-16 13:00:05 +000013883# CDPATH.
13884$as_unset CDPATH
13885
13886
13887
13888 as_lineno_1=$LINENO
13889 as_lineno_2=$LINENO
13890 test "x$as_lineno_1" != "x$as_lineno_2" &&
13891 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13892
13893 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13894 # uniformly replaced by the line number. The first 'sed' inserts a
13895 # line-number line after each line using $LINENO; the second 'sed'
13896 # does the real work. The second script uses 'N' to pair each
13897 # line-number line with the line containing $LINENO, and appends
13898 # trailing '-' during substitution so that $LINENO is not a special
13899 # case at line end.
13900 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13901 # scripts with optimization help from Paolo Bonzini. Blame Lee
13902 # E. McMahon (1931-1989) for sed's syntax. :-)
13903 sed -n '
13904 p
13905 /[$]LINENO/=
13906 ' <$as_myself |
13907 sed '
13908 s/[$]LINENO.*/&-/
13909 t lineno
13910 b
13911 :lineno
13912 N
13913 :loop
13914 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13915 t loop
13916 s/-\n.*//
13917 ' >$as_me.lineno &&
13918 chmod +x "$as_me.lineno" ||
13919 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13920 { (exit 1); exit 1; }; }
13921
13922 # Don't try to exec as it changes $[0], causing all sort of problems
13923 # (the dirname of $[0] is not the place where we might find the
13924 # original and so on. Autoconf is especially sensitive to this).
13925 . "./$as_me.lineno"
13926 # Exit status is that of the last command.
13927 exit
13928}
13929
13930
13931if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13932 as_dirname=dirname
13933else
13934 as_dirname=false
13935fi
drh866108f2008-05-13 00:57:21 +000013936
drh8b727472009-01-19 18:18:40 +000013937ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +000013938case `echo -n x` in
drh8b727472009-01-19 18:18:40 +000013939-n*)
drh710658c2012-01-16 13:00:05 +000013940 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +000013941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +000013942 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +000013943 esac;;
13944*)
13945 ECHO_N='-n';;
13946esac
drh710658c2012-01-16 13:00:05 +000013947if expr a : '\(a\)' >/dev/null 2>&1 &&
13948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13949 as_expr=expr
13950else
13951 as_expr=false
13952fi
drh71eb93e2001-09-28 01:34:43 +000013953
13954rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013955if test -d conf$$.dir; then
13956 rm -f conf$$.dir/conf$$.file
13957else
13958 rm -f conf$$.dir
13959 mkdir conf$$.dir 2>/dev/null
13960fi
13961if (echo >conf$$.file) 2>/dev/null; then
13962 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013963 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013964 # ... but there are two gotchas:
13965 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13966 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13967 # In both cases, we have to default to `cp -p'.
13968 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13969 as_ln_s='cp -p'
13970 elif ln conf$$.file conf$$ 2>/dev/null; then
13971 as_ln_s=ln
13972 else
13973 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013974 fi
drh71eb93e2001-09-28 01:34:43 +000013975else
13976 as_ln_s='cp -p'
13977fi
drh8b727472009-01-19 18:18:40 +000013978rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13979rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013980
a.rottmann84e63352003-03-24 09:42:16 +000013981if mkdir -p . 2>/dev/null; then
drh710658c2012-01-16 13:00:05 +000013982 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013983else
a.rottmann964dbb12004-02-26 19:47:42 +000013984 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013985 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013986fi
13987
drh8b727472009-01-19 18:18:40 +000013988if test -x / >/dev/null 2>&1; then
13989 as_test_x='test -x'
13990else
13991 if ls -dL / >/dev/null 2>&1; then
13992 as_ls_L_option=L
13993 else
13994 as_ls_L_option=
13995 fi
13996 as_test_x='
13997 eval sh -c '\''
13998 if test -d "$1"; then
13999 test -d "$1/.";
14000 else
drh710658c2012-01-16 13:00:05 +000014001 case $1 in
drh8b727472009-01-19 18:18:40 +000014002 -*)set "./$1";;
14003 esac;
drh710658c2012-01-16 13:00:05 +000014004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +000014005 ???[sx]*):;;*)false;;esac;fi
14006 '\'' sh
14007 '
14008fi
14009as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000014010
14011# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000014012as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000014013
14014# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000014015as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000014016
drh71eb93e2001-09-28 01:34:43 +000014017
drh71eb93e2001-09-28 01:34:43 +000014018exec 6>&1
14019
drh710658c2012-01-16 13:00:05 +000014020# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000014021# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000014022# values after options handling.
14023ac_log="
drhb614eab2014-08-20 23:42:50 +000014024This file was extended by sqlite $as_me 3.8.7, which was
drh710658c2012-01-16 13:00:05 +000014025generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000014026
14027 CONFIG_FILES = $CONFIG_FILES
14028 CONFIG_HEADERS = $CONFIG_HEADERS
14029 CONFIG_LINKS = $CONFIG_LINKS
14030 CONFIG_COMMANDS = $CONFIG_COMMANDS
14031 $ $0 $@
14032
drh8b727472009-01-19 18:18:40 +000014033on `(hostname || uname -n) 2>/dev/null | sed 1q`
14034"
14035
drh71eb93e2001-09-28 01:34:43 +000014036_ACEOF
14037
drh8b727472009-01-19 18:18:40 +000014038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014039# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000014040config_files="$ac_config_files"
14041config_headers="$ac_config_headers"
14042config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000014043
drh8b727472009-01-19 18:18:40 +000014044_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014045
drh8b727472009-01-19 18:18:40 +000014046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014047ac_cs_usage="\
drh710658c2012-01-16 13:00:05 +000014048\`$as_me' instantiates files from templates according to the
14049current configuration.
drh71eb93e2001-09-28 01:34:43 +000014050
drh710658c2012-01-16 13:00:05 +000014051Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000014052
14053 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000014054 -V, --version print version number and configuration settings, then exit
drh710658c2012-01-16 13:00:05 +000014055 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000014056 -d, --debug don't remove temporary files
14057 --recheck update $as_me by reconfiguring in the same conditions
drh710658c2012-01-16 13:00:05 +000014058 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014059 instantiate the configuration file FILE
drh710658c2012-01-16 13:00:05 +000014060 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000014061 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000014062
14063Configuration files:
14064$config_files
14065
mlcreechb87057f2008-03-06 07:19:20 +000014066Configuration headers:
14067$config_headers
14068
mlcreech636a9952008-05-05 22:52:56 +000014069Configuration commands:
14070$config_commands
14071
drh710658c2012-01-16 13:00:05 +000014072Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014073
mlcreech94984912008-03-04 19:03:08 +000014074_ACEOF
drh8b727472009-01-19 18:18:40 +000014075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014076ac_cs_version="\\
drhb614eab2014-08-20 23:42:50 +000014077sqlite config.status 3.8.7
drh710658c2012-01-16 13:00:05 +000014078configured by $0, generated by GNU Autoconf 2.62,
14079 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014080
drh710658c2012-01-16 13:00:05 +000014081Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014082This config.status script is free software; the Free Software Foundation
14083gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014084
14085ac_pwd='$ac_pwd'
14086srcdir='$srcdir'
14087INSTALL='$INSTALL'
14088AWK='$AWK'
14089test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014090_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014091
drh8b727472009-01-19 18:18:40 +000014092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014094ac_need_defaults=:
14095while test $# != 0
14096do
14097 case $1 in
drh710658c2012-01-16 13:00:05 +000014098 --*=*)
drh8b727472009-01-19 18:18:40 +000014099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014101 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014102 ;;
drh8b727472009-01-19 18:18:40 +000014103 *)
a.rottmann84e63352003-03-24 09:42:16 +000014104 ac_option=$1
14105 ac_optarg=$2
14106 ac_shift=shift
14107 ;;
drh75897232000-05-29 14:26:00 +000014108 esac
14109
a.rottmann84e63352003-03-24 09:42:16 +000014110 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014111 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014113 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14115 $as_echo "$ac_cs_version"; exit ;;
14116 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014117 debug=: ;;
14118 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014119 $ac_shift
drh8b727472009-01-19 18:18:40 +000014120 case $ac_optarg in
14121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14122 esac
drh710658c2012-01-16 13:00:05 +000014123 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014124 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014125 --header | --heade | --head | --hea )
14126 $ac_shift
drh8b727472009-01-19 18:18:40 +000014127 case $ac_optarg in
14128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14129 esac
drh710658c2012-01-16 13:00:05 +000014130 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014131 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014132 --he | --h)
14133 # Conflict between --help and --header
drh710658c2012-01-16 13:00:05 +000014134 { $as_echo "$as_me: error: ambiguous option: $1
14135Try \`$0 --help' for more information." >&2
14136 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014137 --help | --hel | -h )
14138 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14141 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014142
drh71eb93e2001-09-28 01:34:43 +000014143 # This is an error.
drh710658c2012-01-16 13:00:05 +000014144 -*) { $as_echo "$as_me: error: unrecognized option: $1
14145Try \`$0 --help' for more information." >&2
14146 { (exit 1); exit 1; }; } ;;
drh71eb93e2001-09-28 01:34:43 +000014147
drh710658c2012-01-16 13:00:05 +000014148 *) ac_config_targets="$ac_config_targets $1"
drh8b727472009-01-19 18:18:40 +000014149 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014150
14151 esac
14152 shift
14153done
14154
a.rottmann84e63352003-03-24 09:42:16 +000014155ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014156
a.rottmann84e63352003-03-24 09:42:16 +000014157if $ac_cs_silent; then
14158 exec 6>/dev/null
14159 ac_configure_extra_args="$ac_configure_extra_args --silent"
14160fi
drh71eb93e2001-09-28 01:34:43 +000014161
14162_ACEOF
drh8b727472009-01-19 18:18:40 +000014163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014164if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014165 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14166 shift
14167 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14168 CONFIG_SHELL='$SHELL'
14169 export CONFIG_SHELL
14170 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014171fi
drh71eb93e2001-09-28 01:34:43 +000014172
a.rottmann84e63352003-03-24 09:42:16 +000014173_ACEOF
drh8b727472009-01-19 18:18:40 +000014174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14175exec 5>>config.log
14176{
14177 echo
14178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14179## Running $as_me. ##
14180_ASBOX
14181 $as_echo "$ac_log"
14182} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014183
drh8b727472009-01-19 18:18:40 +000014184_ACEOF
14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014186#
drh8b727472009-01-19 18:18:40 +000014187# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014188#
14189
14190
14191# The HP-UX ksh and POSIX shell print the target directory to stdout
14192# if CDPATH is set.
14193(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14194
14195sed_quote_subst='$sed_quote_subst'
14196double_quote_subst='$double_quote_subst'
14197delay_variable_subst='$delay_variable_subst'
14198macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14199macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14200enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14201enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14202pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14203enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14204host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14205host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14206host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14207build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14208build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14209build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14210SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14211Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14212GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14213EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14214FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14215LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14216NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14217LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14218max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14219ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14220exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14221lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14222lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14223lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14224reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14225reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014226OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014227deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14228file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14229AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14230AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14231STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14232RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14233old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14234old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14235old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14237CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14238compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14239GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14240lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14241lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14242lt_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"`'
14243lt_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"`'
14244objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14245SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14246ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14247MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14248lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14249lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14250lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14251lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14252lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14253need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14254DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14255NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14256LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14257OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14258OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14259libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14260shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14261extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14262archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14263enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14264export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14265whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14266compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14267old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14268old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14269archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14270archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14271module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14273with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14274allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14275no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14276hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14277hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14278hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14279hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14280hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14281hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14282hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14283hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14284inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14285link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14286fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14287always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14288export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14289exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14290include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14291prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14292file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14293variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14294need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14295need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14296version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14297runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14298shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14299shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14300libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14301library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14302soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14303postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14304postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14305finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14306finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14307hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14308sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14309sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14310hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14311enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14312enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14313enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14314old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14315striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14316
14317LTCC='$LTCC'
14318LTCFLAGS='$LTCFLAGS'
14319compiler='$compiler_DEFAULT'
14320
14321# Quote evaled strings.
14322for var in SED \
14323GREP \
14324EGREP \
14325FGREP \
14326LD \
14327NM \
14328LN_S \
14329lt_SP2NL \
14330lt_NL2SP \
14331reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014332OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014333deplibs_check_method \
14334file_magic_cmd \
14335AR \
14336AR_FLAGS \
14337STRIP \
14338RANLIB \
14339CC \
14340CFLAGS \
14341compiler \
14342lt_cv_sys_global_symbol_pipe \
14343lt_cv_sys_global_symbol_to_cdecl \
14344lt_cv_sys_global_symbol_to_c_name_address \
14345lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14346SHELL \
14347ECHO \
14348lt_prog_compiler_no_builtin_flag \
14349lt_prog_compiler_wl \
14350lt_prog_compiler_pic \
14351lt_prog_compiler_static \
14352lt_cv_prog_compiler_c_o \
14353need_locks \
14354DSYMUTIL \
14355NMEDIT \
14356LIPO \
14357OTOOL \
14358OTOOL64 \
14359shrext_cmds \
14360export_dynamic_flag_spec \
14361whole_archive_flag_spec \
14362compiler_needs_object \
14363with_gnu_ld \
14364allow_undefined_flag \
14365no_undefined_flag \
14366hardcode_libdir_flag_spec \
14367hardcode_libdir_flag_spec_ld \
14368hardcode_libdir_separator \
14369fix_srcfile_path \
14370exclude_expsyms \
14371include_expsyms \
14372file_list_spec \
14373variables_saved_for_relink \
14374libname_spec \
14375library_names_spec \
14376soname_spec \
14377finish_eval \
14378old_striplib \
14379striplib; do
14380 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14381 *[\\\\\\\`\\"\\\$]*)
14382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14383 ;;
14384 *)
14385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14386 ;;
14387 esac
14388done
14389
14390# Double-quote double-evaled strings.
14391for var in reload_cmds \
14392old_postinstall_cmds \
14393old_postuninstall_cmds \
14394old_archive_cmds \
14395extract_expsyms_cmds \
14396old_archive_from_new_cmds \
14397old_archive_from_expsyms_cmds \
14398archive_cmds \
14399archive_expsym_cmds \
14400module_cmds \
14401module_expsym_cmds \
14402export_symbols_cmds \
14403prelink_cmds \
14404postinstall_cmds \
14405postuninstall_cmds \
14406finish_cmds \
14407sys_lib_search_path_spec \
14408sys_lib_dlsearch_path_spec; do
14409 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14410 *[\\\\\\\`\\"\\\$]*)
14411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14412 ;;
14413 *)
14414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14415 ;;
14416 esac
14417done
14418
14419# Fix-up fallback echo if it was mangled by the above quoting rules.
14420case \$lt_ECHO in
14421*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14422 ;;
14423esac
14424
14425ac_aux_dir='$ac_aux_dir'
14426xsi_shell='$xsi_shell'
14427lt_shell_append='$lt_shell_append'
14428
14429# See if we are running on zsh, and set the options which allow our
14430# commands through without removal of \ escapes INIT.
14431if test -n "\${ZSH_VERSION+set}" ; then
14432 setopt NO_GLOB_SUBST
14433fi
14434
14435
14436 PACKAGE='$PACKAGE'
14437 VERSION='$VERSION'
14438 TIMESTAMP='$TIMESTAMP'
14439 RM='$RM'
14440 ofile='$ofile'
14441
14442
14443
14444
mlcreech94984912008-03-04 19:03:08 +000014445_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014446
drh8b727472009-01-19 18:18:40 +000014447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014448
drh8b727472009-01-19 18:18:40 +000014449# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014450for ac_config_target in $ac_config_targets
14451do
drh8b727472009-01-19 18:18:40 +000014452 case $ac_config_target in
14453 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14455 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14456 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14457
drh710658c2012-01-16 13:00:05 +000014458 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14459$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14460 { (exit 1); exit 1; }; };;
drh71eb93e2001-09-28 01:34:43 +000014461 esac
14462done
14463
drh8b727472009-01-19 18:18:40 +000014464
drh71eb93e2001-09-28 01:34:43 +000014465# If the user did not use the arguments to specify the items to instantiate,
14466# then the envvar interface is used. Set only those that are not.
14467# We use the long form for the default assignment because of an extremely
14468# bizarre bug on SunOS 4.1.3.
14469if $ac_need_defaults; then
14470 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014471 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014472 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014473fi
14474
a.rottmann84e63352003-03-24 09:42:16 +000014475# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014476# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014477# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014478# Hook for its removal unless debugging.
14479# Note that there is a small window in which the directory will not be cleaned:
14480# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014481$debug ||
14482{
drh710658c2012-01-16 13:00:05 +000014483 tmp=
drh8b727472009-01-19 18:18:40 +000014484 trap 'exit_status=$?
drh710658c2012-01-16 13:00:05 +000014485 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000014486' 0
drh710658c2012-01-16 13:00:05 +000014487 trap '{ (exit 1); exit 1; }' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000014488}
drh71eb93e2001-09-28 01:34:43 +000014489# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014490
drh71eb93e2001-09-28 01:34:43 +000014491{
drh8b727472009-01-19 18:18:40 +000014492 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh710658c2012-01-16 13:00:05 +000014493 test -n "$tmp" && test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000014494} ||
14495{
drh8b727472009-01-19 18:18:40 +000014496 tmp=./conf$$-$RANDOM
14497 (umask 077 && mkdir "$tmp")
drh710658c2012-01-16 13:00:05 +000014498} ||
14499{
14500 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14501 { (exit 1); exit 1; }
14502}
drh71eb93e2001-09-28 01:34:43 +000014503
drh8b727472009-01-19 18:18:40 +000014504# Set up the scripts for CONFIG_FILES section.
14505# No need to generate them if there are no CONFIG_FILES.
14506# This happens for instance with `./config.status config.h'.
14507if test -n "$CONFIG_FILES"; then
14508
14509
drh710658c2012-01-16 13:00:05 +000014510ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014511ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000014513 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000014514else
14515 ac_cs_awk_cr=$ac_cr
14516fi
14517
drh710658c2012-01-16 13:00:05 +000014518echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014519_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014520
mlcreech94984912008-03-04 19:03:08 +000014521
drh8b727472009-01-19 18:18:40 +000014522{
14523 echo "cat >conf$$subs.awk <<_ACEOF" &&
14524 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14525 echo "_ACEOF"
14526} >conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014527 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14528$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14529 { (exit 1); exit 1; }; }
14530ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
drh8b727472009-01-19 18:18:40 +000014531ac_delim='%!_!# '
14532for ac_last_try in false false false false false :; do
14533 . ./conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14535$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14536 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014537
drh710658c2012-01-16 13:00:05 +000014538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000014539 break
14540 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014541 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14542$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14543 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014544 else
14545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014546 fi
drh8b727472009-01-19 18:18:40 +000014547done
14548rm -f conf$$subs.sh
14549
14550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014551cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014552_ACEOF
14553sed -n '
14554h
14555s/^/S["/; s/!.*/"]=/
14556p
14557g
14558s/^[^!]*!//
14559:repl
14560t repl
14561s/'"$ac_delim"'$//
14562t delim
14563:nl
14564h
drh710658c2012-01-16 13:00:05 +000014565s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014566t more1
14567s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14568p
14569n
14570b repl
14571:more1
14572s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14573p
14574g
14575s/.\{148\}//
14576t nl
14577:delim
14578h
drh710658c2012-01-16 13:00:05 +000014579s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014580t more2
14581s/["\\]/\\&/g; s/^/"/; s/$/"/
14582p
14583b
14584:more2
14585s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14586p
14587g
14588s/.\{148\}//
14589t delim
14590' <conf$$subs.awk | sed '
14591/^[^""]/{
14592 N
14593 s/\n//
14594}
14595' >>$CONFIG_STATUS || ac_write_fail=1
14596rm -f conf$$subs.awk
14597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14598_ACAWK
drh710658c2012-01-16 13:00:05 +000014599cat >>"\$tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014600 for (key in S) S_is_set[key] = 1
14601 FS = ""
14602
14603}
14604{
14605 line = $ 0
14606 nfields = split(line, field, "@")
14607 substed = 0
14608 len = length(field[1])
14609 for (i = 2; i < nfields; i++) {
14610 key = field[i]
14611 keylen = length(key)
14612 if (S_is_set[key]) {
14613 value = S[key]
14614 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14615 len += length(value) + length(field[++i])
14616 substed = 1
14617 } else
14618 len += 1 + keylen
14619 }
14620
14621 print line
14622}
14623
14624_ACAWK
14625_ACEOF
14626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14627if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14628 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14629else
14630 cat
drh710658c2012-01-16 13:00:05 +000014631fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14632 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14633$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14634 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014635_ACEOF
14636
drh710658c2012-01-16 13:00:05 +000014637# VPATH may cause trouble with some makes, so we remove $(srcdir),
14638# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000014639# trailing colons and then remove the whole line if VPATH becomes empty
14640# (actually we leave an empty line to preserve line numbers).
14641if test "x$srcdir" = x.; then
drh710658c2012-01-16 13:00:05 +000014642 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14643s/:*\$(srcdir):*/:/
14644s/:*\${srcdir}:*/:/
14645s/:*@srcdir@:*/:/
14646s/^\([^=]*=[ ]*\):*/\1/
drh8b727472009-01-19 18:18:40 +000014647s/:*$//
14648s/^[^=]*=[ ]*$//
14649}'
14650fi
14651
14652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014653fi # test -n "$CONFIG_FILES"
14654
drh8b727472009-01-19 18:18:40 +000014655# Set up the scripts for CONFIG_HEADERS section.
14656# No need to generate them if there are no CONFIG_HEADERS.
14657# This happens for instance with `./config.status Makefile'.
14658if test -n "$CONFIG_HEADERS"; then
drh710658c2012-01-16 13:00:05 +000014659cat >"$tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000014660BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014661_ACEOF
drh8b727472009-01-19 18:18:40 +000014662
14663# Transform confdefs.h into an awk script `defines.awk', embedded as
14664# here-document in config.status, that substitutes the proper values into
14665# config.h.in to produce config.h.
14666
14667# Create a delimiter string that does not exist in confdefs.h, to ease
14668# handling of long lines.
14669ac_delim='%!_!# '
14670for ac_last_try in false false :; do
drh710658c2012-01-16 13:00:05 +000014671 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14672 if test -z "$ac_t"; then
drh8b727472009-01-19 18:18:40 +000014673 break
14674 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014675 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14676$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14677 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014678 else
14679 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14680 fi
14681done
14682
14683# For the awk script, D is an array of macro values keyed by name,
14684# likewise P contains macro parameters if any. Preserve backslash
14685# newline sequences.
14686
14687ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14688sed -n '
14689s/.\{148\}/&'"$ac_delim"'/g
14690t rset
14691:rset
14692s/^[ ]*#[ ]*define[ ][ ]*/ /
14693t def
14694d
14695:def
14696s/\\$//
14697t bsnl
14698s/["\\]/\\&/g
14699s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14700D["\1"]=" \3"/p
14701s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14702d
14703:bsnl
14704s/["\\]/\\&/g
14705s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14706D["\1"]=" \3\\\\\\n"\\/p
14707t cont
14708s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14709t cont
14710d
14711:cont
14712n
14713s/.\{148\}/&'"$ac_delim"'/g
14714t clear
14715:clear
14716s/\\$//
14717t bsnlc
14718s/["\\]/\\&/g; s/^/"/; s/$/"/p
14719d
14720:bsnlc
14721s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14722b cont
14723' <confdefs.h | sed '
14724s/'"$ac_delim"'/"\\\
14725"/g' >>$CONFIG_STATUS || ac_write_fail=1
14726
14727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14728 for (key in D) D_is_set[key] = 1
14729 FS = ""
14730}
14731/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14732 line = \$ 0
14733 split(line, arg, " ")
14734 if (arg[1] == "#") {
14735 defundef = arg[2]
14736 mac1 = arg[3]
14737 } else {
14738 defundef = substr(arg[1], 2)
14739 mac1 = arg[2]
14740 }
14741 split(mac1, mac2, "(") #)
14742 macro = mac2[1]
14743 if (D_is_set[macro]) {
14744 # Preserve the white space surrounding the "#".
drh710658c2012-01-16 13:00:05 +000014745 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014746 print prefix "define", macro P[macro] D[macro]
14747 next
14748 } else {
14749 # Replace #undef with comments. This is necessary, for example,
14750 # in the case of _POSIX_SOURCE, which is predefined and required
14751 # on some systems where configure will not decide to define it.
14752 if (defundef == "undef") {
drh710658c2012-01-16 13:00:05 +000014753 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014754 next
14755 }
14756 }
14757}
14758{ print }
14759_ACAWK
14760_ACEOF
14761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014762 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14763$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14764 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014765fi # test -n "$CONFIG_HEADERS"
14766
14767
14768eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14769shift
14770for ac_tag
14771do
14772 case $ac_tag in
14773 :[FHLC]) ac_mode=$ac_tag; continue;;
14774 esac
14775 case $ac_mode$ac_tag in
14776 :[FHL]*:*);;
drh710658c2012-01-16 13:00:05 +000014777 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14778$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14779 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014780 :[FH]-) ac_tag=-:-;;
14781 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14782 esac
14783 ac_save_IFS=$IFS
14784 IFS=:
14785 set x $ac_tag
14786 IFS=$ac_save_IFS
14787 shift
14788 ac_file=$1
14789 shift
14790
14791 case $ac_mode in
14792 :L) ac_source=$1;;
14793 :[FH])
14794 ac_file_inputs=
14795 for ac_f
14796 do
14797 case $ac_f in
drh710658c2012-01-16 13:00:05 +000014798 -) ac_f="$tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000014799 *) # Look for the file first in the build tree, then in the source tree
14800 # (if the path is not absolute). The absolute path cannot be DOS-style,
14801 # because $ac_f cannot contain `:'.
14802 test -f "$ac_f" ||
14803 case $ac_f in
14804 [\\/$]*) false;;
14805 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14806 esac ||
drh710658c2012-01-16 13:00:05 +000014807 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14808$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14809 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014810 esac
14811 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drh710658c2012-01-16 13:00:05 +000014812 ac_file_inputs="$ac_file_inputs '$ac_f'"
drh8b727472009-01-19 18:18:40 +000014813 done
14814
14815 # Let's still pretend it is `configure' which instantiates (i.e., don't
14816 # use $as_me), people would be surprised to read:
14817 # /* config.h. Generated by config.status. */
14818 configure_input='Generated from '`
14819 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14820 `' by configure.'
14821 if test x"$ac_file" != x-; then
14822 configure_input="$ac_file. $configure_input"
drh710658c2012-01-16 13:00:05 +000014823 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000014824$as_echo "$as_me: creating $ac_file" >&6;}
14825 fi
14826 # Neutralize special characters interpreted by sed in replacement strings.
14827 case $configure_input in #(
14828 *\&* | *\|* | *\\* )
14829 ac_sed_conf_input=`$as_echo "$configure_input" |
14830 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14831 *) ac_sed_conf_input=$configure_input;;
14832 esac
14833
14834 case $ac_tag in
drh710658c2012-01-16 13:00:05 +000014835 *:-:* | *:-) cat >"$tmp/stdin" \
14836 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14837$as_echo "$as_me: error: could not create $ac_file" >&2;}
14838 { (exit 1); exit 1; }; } ;;
drh8b727472009-01-19 18:18:40 +000014839 esac
14840 ;;
drh71eb93e2001-09-28 01:34:43 +000014841 esac
14842
drh8b727472009-01-19 18:18:40 +000014843 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014845 X"$ac_file" : 'X\(//\)[^/]' \| \
14846 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14848$as_echo X"$ac_file" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14850 s//\1/
14851 q
14852 }
14853 /^X\(\/\/\)[^/].*/{
14854 s//\1/
14855 q
14856 }
14857 /^X\(\/\/\)$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\).*/{
14862 s//\1/
14863 q
14864 }
14865 s/.*/./; q'`
drh710658c2012-01-16 13:00:05 +000014866 { as_dir="$ac_dir"
14867 case $as_dir in #(
14868 -*) as_dir=./$as_dir;;
14869 esac
14870 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14871 as_dirs=
14872 while :; do
14873 case $as_dir in #(
14874 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14875 *) as_qdir=$as_dir;;
14876 esac
14877 as_dirs="'$as_qdir' $as_dirs"
14878 as_dir=`$as_dirname -- "$as_dir" ||
14879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14880 X"$as_dir" : 'X\(//\)[^/]' \| \
14881 X"$as_dir" : 'X\(//\)$' \| \
14882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14883$as_echo X"$as_dir" |
14884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14885 s//\1/
14886 q
14887 }
14888 /^X\(\/\/\)[^/].*/{
14889 s//\1/
14890 q
14891 }
14892 /^X\(\/\/\)$/{
14893 s//\1/
14894 q
14895 }
14896 /^X\(\/\).*/{
14897 s//\1/
14898 q
14899 }
14900 s/.*/./; q'`
14901 test -d "$as_dir" && break
14902 done
14903 test -z "$as_dirs" || eval "mkdir $as_dirs"
14904 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14905$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14906 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014907 ac_builddir=.
14908
drh8b727472009-01-19 18:18:40 +000014909case "$ac_dir" in
14910.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14911*)
14912 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14913 # A ".." for each directory in $ac_dir_suffix.
14914 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14915 case $ac_top_builddir_sub in
14916 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14917 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14918 esac ;;
14919esac
14920ac_abs_top_builddir=$ac_pwd
14921ac_abs_builddir=$ac_pwd$ac_dir_suffix
14922# for backward compatibility:
14923ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014924
14925case $srcdir in
drh8b727472009-01-19 18:18:40 +000014926 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014927 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014928 ac_top_srcdir=$ac_top_builddir_sub
14929 ac_abs_top_srcdir=$ac_pwd ;;
14930 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014931 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014932 ac_top_srcdir=$srcdir
14933 ac_abs_top_srcdir=$srcdir ;;
14934 *) # Relative name.
14935 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14936 ac_top_srcdir=$ac_top_build_prefix$srcdir
14937 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014938esac
drh8b727472009-01-19 18:18:40 +000014939ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014940
a.rottmann84e63352003-03-24 09:42:16 +000014941
drh8b727472009-01-19 18:18:40 +000014942 case $ac_mode in
14943 :F)
14944 #
14945 # CONFIG_FILE
14946 #
drh75897232000-05-29 14:26:00 +000014947
drh71eb93e2001-09-28 01:34:43 +000014948 case $INSTALL in
14949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014950 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014951 esac
mlcreech94984912008-03-04 19:03:08 +000014952_ACEOF
drh8b727472009-01-19 18:18:40 +000014953
14954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955# If the template does not know about datarootdir, expand it.
14956# FIXME: This hack should be removed a few years after 2.60.
14957ac_datarootdir_hack=; ac_datarootdir_seen=
drh710658c2012-01-16 13:00:05 +000014958
drh8b727472009-01-19 18:18:40 +000014959ac_sed_dataroot='
14960/datarootdir/ {
14961 p
14962 q
14963}
14964/@datadir@/p
14965/@docdir@/p
14966/@infodir@/p
14967/@localedir@/p
drh710658c2012-01-16 13:00:05 +000014968/@mandir@/p
14969'
drh8b727472009-01-19 18:18:40 +000014970case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14971*datarootdir*) ac_datarootdir_seen=yes;;
14972*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drh710658c2012-01-16 13:00:05 +000014973 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000014974$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14975_ACEOF
14976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14977 ac_datarootdir_hack='
14978 s&@datadir@&$datadir&g
14979 s&@docdir@&$docdir&g
14980 s&@infodir@&$infodir&g
14981 s&@localedir@&$localedir&g
14982 s&@mandir@&$mandir&g
drh710658c2012-01-16 13:00:05 +000014983 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000014984esac
14985_ACEOF
14986
14987# Neutralize VPATH when `$srcdir' = `.'.
14988# Shell code in configure.ac might set extrasub.
14989# FIXME: do we really want to maintain this feature?
14990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14991ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014992$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014993_ACEOF
drh8b727472009-01-19 18:18:40 +000014994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014995:t
14996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014997s|@configure_input@|$ac_sed_conf_input|;t t
14998s&@top_builddir@&$ac_top_builddir_sub&;t t
14999s&@top_build_prefix@&$ac_top_build_prefix&;t t
15000s&@srcdir@&$ac_srcdir&;t t
15001s&@abs_srcdir@&$ac_abs_srcdir&;t t
15002s&@top_srcdir@&$ac_top_srcdir&;t t
15003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15004s&@builddir@&$ac_builddir&;t t
15005s&@abs_builddir@&$ac_abs_builddir&;t t
15006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15007s&@INSTALL@&$ac_INSTALL&;t t
15008$ac_datarootdir_hack
15009"
drh710658c2012-01-16 13:00:05 +000015010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15011 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15012$as_echo "$as_me: error: could not create $ac_file" >&2;}
15013 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000015014
drh8b727472009-01-19 18:18:40 +000015015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drh710658c2012-01-16 13:00:05 +000015016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15018 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15019which seems to be undefined. Please make sure it is defined." >&5
drh8b727472009-01-19 18:18:40 +000015020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh710658c2012-01-16 13:00:05 +000015021which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000015022
drh710658c2012-01-16 13:00:05 +000015023 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000015024 case $ac_file in
drh710658c2012-01-16 13:00:05 +000015025 -) cat "$tmp/out" && rm -f "$tmp/out";;
15026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000015027 esac \
drh710658c2012-01-16 13:00:05 +000015028 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15029$as_echo "$as_me: error: could not create $ac_file" >&2;}
15030 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015031 ;;
15032 :H)
15033 #
15034 # CONFIG_HEADER
15035 #
drh866108f2008-05-13 00:57:21 +000015036 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000015037 {
15038 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000015039 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15040 } >"$tmp/config.h" \
15041 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15042$as_echo "$as_me: error: could not create $ac_file" >&2;}
15043 { (exit 1); exit 1; }; }
15044 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15045 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000015046$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000015047 else
drh8b727472009-01-19 18:18:40 +000015048 rm -f "$ac_file"
drh710658c2012-01-16 13:00:05 +000015049 mv "$tmp/config.h" "$ac_file" \
15050 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15051$as_echo "$as_me: error: could not create $ac_file" >&2;}
15052 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015053 fi
15054 else
drh8b727472009-01-19 18:18:40 +000015055 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000015056 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15057 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15058$as_echo "$as_me: error: could not create -" >&2;}
15059 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000015060 fi
drh8b727472009-01-19 18:18:40 +000015061 ;;
drh866108f2008-05-13 00:57:21 +000015062
drh710658c2012-01-16 13:00:05 +000015063 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000015064$as_echo "$as_me: executing $ac_file commands" >&6;}
15065 ;;
15066 esac
drh866108f2008-05-13 00:57:21 +000015067
15068
drh8b727472009-01-19 18:18:40 +000015069 case $ac_file$ac_mode in
15070 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015071
15072 # See if we are running on zsh, and set the options which allow our
15073 # commands through without removal of \ escapes.
15074 if test -n "${ZSH_VERSION+set}" ; then
15075 setopt NO_GLOB_SUBST
15076 fi
15077
15078 cfgfile="${ofile}T"
15079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15080 $RM "$cfgfile"
15081
15082 cat <<_LT_EOF >> "$cfgfile"
15083#! $SHELL
15084
15085# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15086# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15087# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15088# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15089#
15090# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15091# 2006, 2007, 2008 Free Software Foundation, Inc.
15092# Written by Gordon Matzigkeit, 1996
15093#
15094# This file is part of GNU Libtool.
15095#
15096# GNU Libtool is free software; you can redistribute it and/or
15097# modify it under the terms of the GNU General Public License as
15098# published by the Free Software Foundation; either version 2 of
15099# the License, or (at your option) any later version.
15100#
15101# As a special exception to the GNU General Public License,
15102# if you distribute this file as part of a program or library that
15103# is built using GNU Libtool, you may include this file under the
15104# same distribution terms that you use for the rest of that program.
15105#
15106# GNU Libtool is distributed in the hope that it will be useful,
15107# but WITHOUT ANY WARRANTY; without even the implied warranty of
15108# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15109# GNU General Public License for more details.
15110#
15111# You should have received a copy of the GNU General Public License
15112# along with GNU Libtool; see the file COPYING. If not, a copy
15113# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15114# obtained by writing to the Free Software Foundation, Inc.,
15115# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15116
15117
15118# The names of the tagged configurations supported by this script.
15119available_tags=""
15120
15121# ### BEGIN LIBTOOL CONFIG
15122
15123# Which release of libtool.m4 was used?
15124macro_version=$macro_version
15125macro_revision=$macro_revision
15126
15127# Whether or not to build shared libraries.
15128build_libtool_libs=$enable_shared
15129
15130# Whether or not to build static libraries.
15131build_old_libs=$enable_static
15132
15133# What type of objects to build.
15134pic_mode=$pic_mode
15135
15136# Whether or not to optimize for fast installation.
15137fast_install=$enable_fast_install
15138
15139# The host system.
15140host_alias=$host_alias
15141host=$host
15142host_os=$host_os
15143
15144# The build system.
15145build_alias=$build_alias
15146build=$build
15147build_os=$build_os
15148
15149# A sed program that does not truncate output.
15150SED=$lt_SED
15151
15152# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15153Xsed="\$SED -e 1s/^X//"
15154
15155# A grep program that handles long lines.
15156GREP=$lt_GREP
15157
15158# An ERE matcher.
15159EGREP=$lt_EGREP
15160
15161# A literal string matcher.
15162FGREP=$lt_FGREP
15163
15164# A BSD- or MS-compatible name lister.
15165NM=$lt_NM
15166
15167# Whether we need soft or hard links.
15168LN_S=$lt_LN_S
15169
15170# What is the maximum length of a command?
15171max_cmd_len=$max_cmd_len
15172
15173# Object file suffix (normally "o").
15174objext=$ac_objext
15175
15176# Executable file suffix (normally "").
15177exeext=$exeext
15178
15179# whether the shell understands "unset".
15180lt_unset=$lt_unset
15181
15182# turn spaces into newlines.
15183SP2NL=$lt_lt_SP2NL
15184
15185# turn newlines into spaces.
15186NL2SP=$lt_lt_NL2SP
15187
15188# How to create reloadable object files.
15189reload_flag=$lt_reload_flag
15190reload_cmds=$lt_reload_cmds
15191
vapier6acb2cf2009-01-28 04:46:28 +000015192# An object symbol dumper.
15193OBJDUMP=$lt_OBJDUMP
15194
mlcreech636a9952008-05-05 22:52:56 +000015195# Method to check whether dependent libraries are shared objects.
15196deplibs_check_method=$lt_deplibs_check_method
15197
15198# Command to use when deplibs_check_method == "file_magic".
15199file_magic_cmd=$lt_file_magic_cmd
15200
15201# The archiver.
15202AR=$lt_AR
15203AR_FLAGS=$lt_AR_FLAGS
15204
15205# A symbol stripping program.
15206STRIP=$lt_STRIP
15207
15208# Commands used to install an old-style archive.
15209RANLIB=$lt_RANLIB
15210old_postinstall_cmds=$lt_old_postinstall_cmds
15211old_postuninstall_cmds=$lt_old_postuninstall_cmds
15212
15213# A C compiler.
15214LTCC=$lt_CC
15215
15216# LTCC compiler flags.
15217LTCFLAGS=$lt_CFLAGS
15218
15219# Take the output of nm and produce a listing of raw symbols and C names.
15220global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15221
15222# Transform the output of nm in a proper C declaration.
15223global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15224
15225# Transform the output of nm in a C name address pair.
15226global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15227
15228# Transform the output of nm in a C name address pair when lib prefix is needed.
15229global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15230
15231# The name of the directory that contains temporary libtool files.
15232objdir=$objdir
15233
15234# Shell to use when invoking shell scripts.
15235SHELL=$lt_SHELL
15236
15237# An echo program that does not interpret backslashes.
15238ECHO=$lt_ECHO
15239
15240# Used to examine libraries when file_magic_cmd begins with "file".
15241MAGIC_CMD=$MAGIC_CMD
15242
15243# Must we lock files when doing compilation?
15244need_locks=$lt_need_locks
15245
15246# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15247DSYMUTIL=$lt_DSYMUTIL
15248
15249# Tool to change global to local symbols on Mac OS X.
15250NMEDIT=$lt_NMEDIT
15251
15252# Tool to manipulate fat objects and archives on Mac OS X.
15253LIPO=$lt_LIPO
15254
15255# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15256OTOOL=$lt_OTOOL
15257
15258# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15259OTOOL64=$lt_OTOOL64
15260
15261# Old archive suffix (normally "a").
15262libext=$libext
15263
15264# Shared library suffix (normally ".so").
15265shrext_cmds=$lt_shrext_cmds
15266
15267# The commands to extract the exported symbol list from a shared archive.
15268extract_expsyms_cmds=$lt_extract_expsyms_cmds
15269
15270# Variables whose values should be saved in libtool wrapper scripts and
15271# restored at link time.
15272variables_saved_for_relink=$lt_variables_saved_for_relink
15273
15274# Do we need the "lib" prefix for modules?
15275need_lib_prefix=$need_lib_prefix
15276
15277# Do we need a version for libraries?
15278need_version=$need_version
15279
15280# Library versioning type.
15281version_type=$version_type
15282
15283# Shared library runtime path variable.
15284runpath_var=$runpath_var
15285
15286# Shared library path variable.
15287shlibpath_var=$shlibpath_var
15288
15289# Is shlibpath searched before the hard-coded library search path?
15290shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15291
15292# Format of library name prefix.
15293libname_spec=$lt_libname_spec
15294
15295# List of archive names. First name is the real one, the rest are links.
15296# The last name is the one that the linker finds with -lNAME
15297library_names_spec=$lt_library_names_spec
15298
15299# The coded name of the library, if different from the real name.
15300soname_spec=$lt_soname_spec
15301
15302# Command to use after installation of a shared archive.
15303postinstall_cmds=$lt_postinstall_cmds
15304
15305# Command to use after uninstallation of a shared archive.
15306postuninstall_cmds=$lt_postuninstall_cmds
15307
15308# Commands used to finish a libtool library installation in a directory.
15309finish_cmds=$lt_finish_cmds
15310
15311# As "finish_cmds", except a single script fragment to be evaled but
15312# not shown.
15313finish_eval=$lt_finish_eval
15314
15315# Whether we should hardcode library paths into libraries.
15316hardcode_into_libs=$hardcode_into_libs
15317
15318# Compile-time system search path for libraries.
15319sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15320
15321# Run-time system search path for libraries.
15322sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15323
15324# Whether dlopen is supported.
15325dlopen_support=$enable_dlopen
15326
15327# Whether dlopen of programs is supported.
15328dlopen_self=$enable_dlopen_self
15329
15330# Whether dlopen of statically linked programs is supported.
15331dlopen_self_static=$enable_dlopen_self_static
15332
15333# Commands to strip libraries.
15334old_striplib=$lt_old_striplib
15335striplib=$lt_striplib
15336
15337
15338# The linker used to build libraries.
15339LD=$lt_LD
15340
15341# Commands used to build an old-style archive.
15342old_archive_cmds=$lt_old_archive_cmds
15343
15344# A language specific compiler.
15345CC=$lt_compiler
15346
15347# Is the compiler the GNU compiler?
15348with_gcc=$GCC
15349
15350# Compiler flag to turn off builtin functions.
15351no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15352
15353# How to pass a linker flag through the compiler.
15354wl=$lt_lt_prog_compiler_wl
15355
15356# Additional compiler flags for building library objects.
15357pic_flag=$lt_lt_prog_compiler_pic
15358
15359# Compiler flag to prevent dynamic linking.
15360link_static_flag=$lt_lt_prog_compiler_static
15361
15362# Does compiler simultaneously support -c and -o options?
15363compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15364
15365# Whether or not to add -lc for building shared libraries.
15366build_libtool_need_lc=$archive_cmds_need_lc
15367
15368# Whether or not to disallow shared libs when runtime libs are static.
15369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15370
15371# Compiler flag to allow reflexive dlopens.
15372export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15373
15374# Compiler flag to generate shared objects directly from archives.
15375whole_archive_flag_spec=$lt_whole_archive_flag_spec
15376
15377# Whether the compiler copes with passing no objects directly.
15378compiler_needs_object=$lt_compiler_needs_object
15379
15380# Create an old-style archive from a shared archive.
15381old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15382
15383# Create a temporary old-style archive to link instead of a shared archive.
15384old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15385
15386# Commands used to build a shared archive.
15387archive_cmds=$lt_archive_cmds
15388archive_expsym_cmds=$lt_archive_expsym_cmds
15389
15390# Commands used to build a loadable module if different from building
15391# a shared archive.
15392module_cmds=$lt_module_cmds
15393module_expsym_cmds=$lt_module_expsym_cmds
15394
15395# Whether we are building with GNU ld or not.
15396with_gnu_ld=$lt_with_gnu_ld
15397
15398# Flag that allows shared libraries with undefined symbols to be built.
15399allow_undefined_flag=$lt_allow_undefined_flag
15400
15401# Flag that enforces no undefined symbols.
15402no_undefined_flag=$lt_no_undefined_flag
15403
15404# Flag to hardcode \$libdir into a binary during linking.
15405# This must work even if \$libdir does not exist
15406hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15407
15408# If ld is used when linking, flag to hardcode \$libdir into a binary
15409# during linking. This must work even if \$libdir does not exist.
15410hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15411
15412# Whether we need a single "-rpath" flag with a separated argument.
15413hardcode_libdir_separator=$lt_hardcode_libdir_separator
15414
15415# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15416# DIR into the resulting binary.
15417hardcode_direct=$hardcode_direct
15418
15419# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15420# DIR into the resulting binary and the resulting library dependency is
15421# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15422# library is relocated.
15423hardcode_direct_absolute=$hardcode_direct_absolute
15424
15425# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15426# into the resulting binary.
15427hardcode_minus_L=$hardcode_minus_L
15428
15429# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15430# into the resulting binary.
15431hardcode_shlibpath_var=$hardcode_shlibpath_var
15432
15433# Set to "yes" if building a shared library automatically hardcodes DIR
15434# into the library and all subsequent libraries and executables linked
15435# against it.
15436hardcode_automatic=$hardcode_automatic
15437
15438# Set to yes if linker adds runtime paths of dependent libraries
15439# to runtime path list.
15440inherit_rpath=$inherit_rpath
15441
15442# Whether libtool must link a program against all its dependency libraries.
15443link_all_deplibs=$link_all_deplibs
15444
15445# Fix the shell variable \$srcfile for the compiler.
15446fix_srcfile_path=$lt_fix_srcfile_path
15447
15448# Set to "yes" if exported symbols are required.
15449always_export_symbols=$always_export_symbols
15450
15451# The commands to list exported symbols.
15452export_symbols_cmds=$lt_export_symbols_cmds
15453
15454# Symbols that should not be listed in the preloaded symbols.
15455exclude_expsyms=$lt_exclude_expsyms
15456
15457# Symbols that must always be exported.
15458include_expsyms=$lt_include_expsyms
15459
15460# Commands necessary for linking programs (against libraries) with templates.
15461prelink_cmds=$lt_prelink_cmds
15462
15463# Specify filename containing input files.
15464file_list_spec=$lt_file_list_spec
15465
15466# How to hardcode a shared library path into an executable.
15467hardcode_action=$hardcode_action
15468
15469# ### END LIBTOOL CONFIG
15470
15471_LT_EOF
15472
15473 case $host_os in
15474 aix3*)
15475 cat <<\_LT_EOF >> "$cfgfile"
15476# AIX sometimes has problems with the GCC collect2 program. For some
15477# reason, if we set the COLLECT_NAMES environment variable, the problems
15478# vanish in a puff of smoke.
15479if test "X${COLLECT_NAMES+set}" != Xset; then
15480 COLLECT_NAMES=
15481 export COLLECT_NAMES
15482fi
15483_LT_EOF
15484 ;;
15485 esac
15486
15487
15488ltmain="$ac_aux_dir/ltmain.sh"
15489
15490
15491 # We use sed instead of cat because bash on DJGPP gets confused if
15492 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15493 # text mode, it properly converts lines to CR/LF. This bash problem
15494 # is reportedly fixed, but why not run on old versions too?
15495 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15496 || (rm -f "$cfgfile"; exit 1)
15497
15498 case $xsi_shell in
15499 yes)
15500 cat << \_LT_EOF >> "$cfgfile"
15501
15502# func_dirname file append nondir_replacement
15503# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15504# otherwise set result to NONDIR_REPLACEMENT.
15505func_dirname ()
15506{
15507 case ${1} in
15508 */*) func_dirname_result="${1%/*}${2}" ;;
15509 * ) func_dirname_result="${3}" ;;
15510 esac
15511}
15512
15513# func_basename file
15514func_basename ()
15515{
15516 func_basename_result="${1##*/}"
15517}
15518
15519# func_dirname_and_basename file append nondir_replacement
15520# perform func_basename and func_dirname in a single function
15521# call:
15522# dirname: Compute the dirname of FILE. If nonempty,
15523# add APPEND to the result, otherwise set result
15524# to NONDIR_REPLACEMENT.
15525# value returned in "$func_dirname_result"
15526# basename: Compute filename of FILE.
15527# value retuned in "$func_basename_result"
15528# Implementation must be kept synchronized with func_dirname
15529# and func_basename. For efficiency, we do not delegate to
15530# those functions but instead duplicate the functionality here.
15531func_dirname_and_basename ()
15532{
15533 case ${1} in
15534 */*) func_dirname_result="${1%/*}${2}" ;;
15535 * ) func_dirname_result="${3}" ;;
15536 esac
15537 func_basename_result="${1##*/}"
15538}
15539
15540# func_stripname prefix suffix name
15541# strip PREFIX and SUFFIX off of NAME.
15542# PREFIX and SUFFIX must not contain globbing or regex special
15543# characters, hashes, percent signs, but SUFFIX may contain a leading
15544# dot (in which case that matches only a dot).
15545func_stripname ()
15546{
15547 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15548 # positional parameters, so assign one to ordinary parameter first.
15549 func_stripname_result=${3}
15550 func_stripname_result=${func_stripname_result#"${1}"}
15551 func_stripname_result=${func_stripname_result%"${2}"}
15552}
15553
15554# func_opt_split
15555func_opt_split ()
15556{
15557 func_opt_split_opt=${1%%=*}
15558 func_opt_split_arg=${1#*=}
15559}
15560
15561# func_lo2o object
15562func_lo2o ()
15563{
15564 case ${1} in
15565 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15566 *) func_lo2o_result=${1} ;;
15567 esac
15568}
15569
15570# func_xform libobj-or-source
15571func_xform ()
15572{
15573 func_xform_result=${1%.*}.lo
15574}
15575
15576# func_arith arithmetic-term...
15577func_arith ()
15578{
15579 func_arith_result=$(( $* ))
15580}
15581
15582# func_len string
15583# STRING may not start with a hyphen.
15584func_len ()
15585{
15586 func_len_result=${#1}
15587}
15588
15589_LT_EOF
15590 ;;
15591 *) # Bourne compatible functions.
15592 cat << \_LT_EOF >> "$cfgfile"
15593
15594# func_dirname file append nondir_replacement
15595# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15596# otherwise set result to NONDIR_REPLACEMENT.
15597func_dirname ()
15598{
15599 # Extract subdirectory from the argument.
15600 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15601 if test "X$func_dirname_result" = "X${1}"; then
15602 func_dirname_result="${3}"
15603 else
15604 func_dirname_result="$func_dirname_result${2}"
15605 fi
15606}
15607
15608# func_basename file
15609func_basename ()
15610{
15611 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15612}
15613
15614
15615# func_stripname prefix suffix name
15616# strip PREFIX and SUFFIX off of NAME.
15617# PREFIX and SUFFIX must not contain globbing or regex special
15618# characters, hashes, percent signs, but SUFFIX may contain a leading
15619# dot (in which case that matches only a dot).
15620# func_strip_suffix prefix name
15621func_stripname ()
15622{
15623 case ${2} in
15624 .*) func_stripname_result=`$ECHO "X${3}" \
15625 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15626 *) func_stripname_result=`$ECHO "X${3}" \
15627 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15628 esac
15629}
15630
15631# sed scripts:
15632my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15633my_sed_long_arg='1s/^-[^=]*=//'
15634
15635# func_opt_split
15636func_opt_split ()
15637{
15638 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15639 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15640}
15641
15642# func_lo2o object
15643func_lo2o ()
15644{
15645 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15646}
15647
15648# func_xform libobj-or-source
15649func_xform ()
15650{
15651 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15652}
15653
15654# func_arith arithmetic-term...
15655func_arith ()
15656{
15657 func_arith_result=`expr "$@"`
15658}
15659
15660# func_len string
15661# STRING may not start with a hyphen.
15662func_len ()
15663{
15664 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15665}
15666
15667_LT_EOF
15668esac
15669
15670case $lt_shell_append in
15671 yes)
15672 cat << \_LT_EOF >> "$cfgfile"
15673
15674# func_append var value
15675# Append VALUE to the end of shell variable VAR.
15676func_append ()
15677{
15678 eval "$1+=\$2"
15679}
15680_LT_EOF
15681 ;;
15682 *)
15683 cat << \_LT_EOF >> "$cfgfile"
15684
15685# func_append var value
15686# Append VALUE to the end of shell variable VAR.
15687func_append ()
15688{
15689 eval "$1=\$$1\$2"
15690}
15691
15692_LT_EOF
15693 ;;
15694 esac
15695
15696
15697 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15698 || (rm -f "$cfgfile"; exit 1)
15699
15700 mv -f "$cfgfile" "$ofile" ||
15701 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15702 chmod +x "$ofile"
15703
15704 ;;
mlcreech94984912008-03-04 19:03:08 +000015705
drh8b727472009-01-19 18:18:40 +000015706 esac
15707done # for ac_tag
15708
drh71eb93e2001-09-28 01:34:43 +000015709
drh710658c2012-01-16 13:00:05 +000015710{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015711_ACEOF
drh710658c2012-01-16 13:00:05 +000015712chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015713ac_clean_files=$ac_clean_files_save
15714
drh8b727472009-01-19 18:18:40 +000015715test $ac_write_fail = 0 ||
drh710658c2012-01-16 13:00:05 +000015716 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15717$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15718 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015719
a.rottmann84e63352003-03-24 09:42:16 +000015720
drh71eb93e2001-09-28 01:34:43 +000015721# configure is writing to config.log, and then calls config.status.
15722# config.status does its own redirection, appending to config.log.
15723# Unfortunately, on DOS this fails, as config.log is still kept open
15724# by configure, so config.status won't be able to write to it; its
15725# output is simply discarded. So we exec the FD to /dev/null,
15726# effectively closing config.log, so it can be properly (re)opened and
15727# appended to by config.status. When coming back to configure, we
15728# need to make the FD available again.
15729if test "$no_create" != yes; then
15730 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015731 ac_config_status_args=
15732 test "$silent" = yes &&
15733 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015734 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015735 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015736 exec 5>>config.log
15737 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15738 # would make configure fail if this is the last instruction.
drh710658c2012-01-16 13:00:05 +000015739 $ac_cs_success || { (exit 1); exit 1; }
drh71eb93e2001-09-28 01:34:43 +000015740fi
drh8b727472009-01-19 18:18:40 +000015741if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh710658c2012-01-16 13:00:05 +000015742 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15743$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015744fi
drhbc7a22d2009-10-13 22:47:13 +000015745