blob: 1dbef105753fb884fcd4de43d1add0ced406db66 [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.
drh636f5052020-12-02 00:22:09 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.35.0.
drh75897232000-05-29 14:26:00 +00004#
drhf922ca42015-05-14 15:39:18 +00005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
drh75897232000-05-29 14:26:00 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
drhf922ca42015-05-14 15:39:18 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000014
drh8b727472009-01-19 18:18:40 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000018 emulate sh
19 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000023 setopt NO_GLOB_SUBST
24else
drhf922ca42015-05-14 15:39:18 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
drh8b727472009-01-19 18:18:40 +000030esac
a.rottmann84e63352003-03-24 09:42:16 +000031fi
drh8b727472009-01-19 18:18:40 +000032
33
drh8b727472009-01-19 18:18:40 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (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;
drhf922ca42015-05-14 15:39:18 +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
mlcreech94984912008-03-04 19:03:08 +000081
drh8b727472009-01-19 18:18:40 +000082# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000090as_myself=
91case $0 in #((
drh8b727472009-01-19 18:18:40 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
drh8b727472009-01-19 18:18:40 +0000100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +0000111 exit 1
drh8b727472009-01-19 18:18:40 +0000112fi
113
drhf922ca42015-05-14 15:39:18 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000121done
mlcreech94984912008-03-04 19:03:08 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000131
drhf922ca42015-05-14 15:39:18 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
drh8b727472009-01-19 18:18:40 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
drh8b727472009-01-19 18:18:40 +0000426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
drhf922ca42015-05-14 15:39:18 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
mlcreech94984912008-03-04 19:03:08 +0000437
drh8b727472009-01-19 18:18:40 +0000438as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
drhf922ca42015-05-14 15:39:18 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000463
464
drhf922ca42015-05-14 15:39:18 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000474 sed '
drh8b727472009-01-19 18:18:40 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000479 N
drh8b727472009-01-19 18:18:40 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000482 t loop
drh8b727472009-01-19 18:18:40 +0000483 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000484 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000485 chmod +x "$as_me.lineno" ||
drhf922ca42015-05-14 15:39:18 +0000486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000487
drhf922ca42015-05-14 15:39:18 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
a.rottmann84e63352003-03-24 09:42:16 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000496 # Exit status is that of the last command.
497 exit
498}
499
drh8b727472009-01-19 18:18:40 +0000500ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +0000501case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000502-n*)
drhf922ca42015-05-14 15:39:18 +0000503 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000508 esac;;
509*)
510 ECHO_N='-n';;
511esac
a.rottmann84e63352003-03-24 09:42:16 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000522 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +0000526 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +0000528 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
drhf922ca42015-05-14 15:39:18 +0000532 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +0000533 fi
a.rottmann84e63352003-03-24 09:42:16 +0000534else
drhf922ca42015-05-14 15:39:18 +0000535 as_ln_s='cp -pR'
a.rottmann84e63352003-03-24 09:42:16 +0000536fi
drh8b727472009-01-19 18:18:40 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000539
540if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000542else
a.rottmann964dbb12004-02-26 19:47:42 +0000543 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000544 as_mkdir_p=false
545fi
546
drhf922ca42015-05-14 15:39:18 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +0000549
550# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000552
553# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000555
556
drh75897232000-05-29 14:26:00 +0000557
drh71eb93e2001-09-28 01:34:43 +0000558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
mlcreech636a9952008-05-05 22:52:56 +0000561case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000565 ;;
566esac
567
mlcreech636a9952008-05-05 22:52:56 +0000568ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
mlcreech636a9952008-05-05 22:52:56 +0000575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
mlcreech636a9952008-05-05 22:52:56 +0000586 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000587$*
mlcreech636a9952008-05-05 22:52:56 +0000588_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000595
mlcreech636a9952008-05-05 22:52:56 +0000596if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
drh71eb93e2001-09-28 01:34:43 +0000608
mlcreech636a9952008-05-05 22:52:56 +0000609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000619
mlcreech636a9952008-05-05 22:52:56 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000631 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000632
mlcreech636a9952008-05-05 22:52:56 +0000633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000648 else
mlcreech636a9952008-05-05 22:52:56 +0000649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
drh71eb93e2001-09-28 01:34:43 +0000673
mlcreech636a9952008-05-05 22:52:56 +0000674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000689 fi
mlcreech636a9952008-05-05 22:52:56 +0000690 fi
drh71eb93e2001-09-28 01:34:43 +0000691 fi
692 fi
693 fi
694fi
drh71eb93e2001-09-28 01:34:43 +0000695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000701fi
702
drh71eb93e2001-09-28 01:34:43 +0000703
drh71eb93e2001-09-28 01:34:43 +0000704
a.rottmann9bc8b932004-02-29 15:18:31 +0000705
drhf922ca42015-05-14 15:39:18 +0000706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
drh8b727472009-01-19 18:18:40 +0000708
drh71eb93e2001-09-28 01:34:43 +0000709# Name of the host.
drhf922ca42015-05-14 15:39:18 +0000710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
drh71eb93e2001-09-28 01:34:43 +0000714#
715# Initializations.
716#
drh75897232000-05-29 14:26:00 +0000717ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000718ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000719ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000720LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000721cross_compiling=no
722subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000723MFLAGS=
724MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
drh636f5052020-12-02 00:22:09 +0000729PACKAGE_VERSION='3.35.0'
730PACKAGE_STRING='sqlite 3.35.0'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
drh56c93112017-11-24 16:55:48 +0000775HAVE_ZLIB
drhf922ca42015-05-14 15:39:18 +0000776USE_AMALGAMATION
777TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000778TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000779TARGET_HAVE_READLINE
780TARGET_READLINE_INC
781TARGET_READLINE_LIBS
782HAVE_TCL
783TCL_SHLIB_SUFFIX
784TCL_STUB_LIB_SPEC
785TCL_STUB_LIB_FLAG
786TCL_STUB_LIB_FILE
787TCL_LIB_SPEC
788TCL_LIB_FLAG
789TCL_LIB_FILE
790TCL_INCLUDE_SPEC
791TCL_SRC_DIR
792TCL_BIN_DIR
793TCL_VERSION
794TARGET_EXEEXT
795SQLITE_OS_WIN
796SQLITE_OS_UNIX
797BUILD_EXEEXT
798TEMP_STORE
799ALLOWRELEASE
800SQLITE_THREADSAFE
801BUILD_CC
drhf922ca42015-05-14 15:39:18 +0000802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
drhe44b8352015-10-30 14:25:57 +0000899enable_editline
drh8b727472009-01-19 18:18:40 +0000900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
drhe2ce8c42020-12-07 21:19:17 +0000906enable_math
drhc530b9c2016-07-25 11:27:22 +0000907enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000908enable_memsys3
drh29368ea2019-12-28 13:17:11 +0000909enable_all
drhce1d9f52015-10-09 12:48:33 +0000910enable_fts3
911enable_fts4
912enable_fts5
913enable_json1
drh83bebdd2017-08-28 17:00:12 +0000914enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000915enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000916enable_rtree
drh5e18d402016-05-03 13:14:18 +0000917enable_session
drh8b727472009-01-19 18:18:40 +0000918enable_gcov
919'
920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926LIBS
927CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000928CPP
929TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000930
drh75897232000-05-29 14:26:00 +0000931
932# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000933ac_init_help=
934ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000935ac_unrecognized_opts=
936ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000937# The variables have the same names as the options, with
938# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000939cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000940exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000941no_create=
drh75897232000-05-29 14:26:00 +0000942no_recursion=
943prefix=NONE
944program_prefix=NONE
945program_suffix=NONE
946program_transform_name=s,x,x,
947silent=
948site=
949srcdir=
drh75897232000-05-29 14:26:00 +0000950verbose=
951x_includes=NONE
952x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000953
954# Installation directory options.
955# These are left unexpanded so users can "make install exec_prefix=/foo"
956# and all the variables that are supposed to be based on exec_prefix
957# by default will actually change.
958# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000959# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000960bindir='${exec_prefix}/bin'
961sbindir='${exec_prefix}/sbin'
962libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000963datarootdir='${prefix}/share'
964datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000965sysconfdir='${prefix}/etc'
966sharedstatedir='${prefix}/com'
967localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000968includedir='${prefix}/include'
969oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000970docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971infodir='${datarootdir}/info'
972htmldir='${docdir}'
973dvidir='${docdir}'
974pdfdir='${docdir}'
975psdir='${docdir}'
976libdir='${exec_prefix}/lib'
977localedir='${datarootdir}/locale'
978mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000979
drh75897232000-05-29 14:26:00 +0000980ac_prev=
drh8b727472009-01-19 18:18:40 +0000981ac_dashdash=
drh75897232000-05-29 14:26:00 +0000982for ac_option
983do
drh75897232000-05-29 14:26:00 +0000984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000986 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000987 ac_prev=
988 continue
989 fi
990
drh8b727472009-01-19 18:18:40 +0000991 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *=) ac_optarg= ;;
994 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000995 esac
drh75897232000-05-29 14:26:00 +0000996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
drh8b727472009-01-19 18:18:40 +0000999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001006 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001007
1008 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001009 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001011 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001022
drh8b727472009-01-19 18:18:40 +00001023 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001024 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001026 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001027
drh8b727472009-01-19 18:18:40 +00001028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
drh75897232000-05-29 14:26:00 +00001035 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001037 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001039 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001060
1061 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001063 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001065 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"enable_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001074 esac
drh8b727472009-01-19 18:18:40 +00001075 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001084 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
drh71eb93e2001-09-28 01:34:43 +00001090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001096
1097 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001098 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001099 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001100 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001101
drh8b727472009-01-19 18:18:40 +00001102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
drh75897232000-05-29 14:26:00 +00001108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001113 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001118 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001123 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001130 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001131
drh8b727472009-01-19 18:18:40 +00001132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
drh75897232000-05-29 14:26:00 +00001137 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001138 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001142 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001147 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001154 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001168 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001173 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001180 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001187 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001204 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001205
drh8b727472009-01-19 18:18:40 +00001206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
drh75897232000-05-29 14:26:00 +00001216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001224 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001235 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001240 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001245 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001252 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001255 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001257 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
drh71eb93e2001-09-28 01:34:43 +00001262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001264
1265 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001267 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001269 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001278 esac
drh8b727472009-01-19 18:18:40 +00001279 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001280
1281 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001283 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001285 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1289 *"
1290"with_$ac_useropt"
1291"*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001306 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001313 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001314
drhf922ca42015-05-14 15:39:18 +00001315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001317 ;;
1318
drh71eb93e2001-09-28 01:34:43 +00001319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
drh8b727472009-01-19 18:18:40 +00001326 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001327 export $ac_envvar ;;
1328
drh75897232000-05-29 14:26:00 +00001329 *)
drh71eb93e2001-09-28 01:34:43 +00001330 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001342 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001343fi
1344
drh8b727472009-01-19 18:18:40 +00001345if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
drhf922ca42015-05-14 15:39:18 +00001348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001350 esac
drh8b727472009-01-19 18:18:40 +00001351fi
drh866108f2008-05-13 00:57:21 +00001352
drh8b727472009-01-19 18:18:40 +00001353# Check all directory arguments for consistency.
1354for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001357 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001358do
drh8b727472009-01-19 18:18:40 +00001359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001361 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001365 esac
drh8b727472009-01-19 18:18:40 +00001366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
drhf922ca42015-05-14 15:39:18 +00001371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001372done
drh75897232000-05-29 14:26:00 +00001373
drh71eb93e2001-09-28 01:34:43 +00001374# There might be people who depend on the old broken behavior: `$host'
1375# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001376# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001377build=$build_alias
1378host=$host_alias
1379target=$target_alias
drh75897232000-05-29 14:26:00 +00001380
a.rottmann84e63352003-03-24 09:42:16 +00001381# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001382if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1387 fi
1388fi
1389
1390ac_tool_prefix=
1391test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392
1393test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001394
a.rottmann84e63352003-03-24 09:42:16 +00001395
drh8b727472009-01-19 18:18:40 +00001396ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397ac_ls_di=`ls -di .` &&
1398ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001399 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001401 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001402
1403
drh75897232000-05-29 14:26:00 +00001404# Find the source files, if location was not specified.
1405if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413$as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\/\)$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\).*/{
1427 s//\1/
1428 q
1429 }
1430 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001431 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001432 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001433 srcdir=..
1434 fi
1435else
1436 ac_srcdir_defaulted=no
1437fi
drh8b727472009-01-19 18:18:40 +00001438if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001441fi
drh8b727472009-01-19 18:18:40 +00001442ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001445 pwd)`
1446# When building in place, set srcdir=.
1447if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1449fi
1450# Remove unnecessary trailing slashes from srcdir.
1451# Double slashes in file names in object file debugging info
1452# mess up M-x gdb in Emacs.
1453case $srcdir in
1454*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455esac
1456for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461done
drh75897232000-05-29 14:26:00 +00001462
drh71eb93e2001-09-28 01:34:43 +00001463#
1464# Report the --help message.
1465#
1466if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001469 cat <<_ACEOF
drh636f5052020-12-02 00:22:09 +00001470\`configure' configures sqlite 3.35.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001471
1472Usage: $0 [OPTION]... [VAR=VALUE]...
1473
1474To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475VAR=VALUE. See below for descriptions of some of the useful variables.
1476
1477Defaults for the options are specified in brackets.
1478
1479Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001484 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1489
drh71eb93e2001-09-28 01:34:43 +00001490Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001492 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001494 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001495
1496By default, \`make install' will install all the files in
1497\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499for instance \`--prefix=\$HOME'.
1500
1501For better control, use the options below.
1502
1503Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001523_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001524
a.rottmann84e63352003-03-24 09:42:16 +00001525 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001526
1527System types:
1528 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001531fi
1532
1533if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001534 case $ac_init_help in
drh636f5052020-12-02 00:22:09 +00001535 short | recursive ) echo "Configuration of sqlite 3.35.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001536 esac
a.rottmann84e63352003-03-24 09:42:16 +00001537 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001538
1539Optional Features:
drh8b727472009-01-19 18:18:40 +00001540 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001547 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001548 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001549 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001550 --enable-releasemode Support libtool link to release mode
1551 --enable-tempstore Use an in-ram database for temporary tables
1552 (never,no,yes,always)
1553 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001554 --enable-editline enable BSD editline support
1555 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001556 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001557 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001558 separately
drh05c7e0b2015-01-10 14:27:17 +00001559 --disable-load-extension
1560 Disable loading of external extensions
drhf6e904b2020-12-07 17:15:32 +00001561 --disable-math Disable math functions
drhc530b9c2016-07-25 11:27:22 +00001562 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001563 --enable-memsys3 Enable MEMSYS3
drh29368ea2019-12-28 13:17:11 +00001564 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
drhce1d9f52015-10-09 12:48:33 +00001565 --enable-fts3 Enable the FTS3 extension
1566 --enable-fts4 Enable the FTS4 extension
1567 --enable-fts5 Enable the FTS5 extension
1568 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001569 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001570 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001571 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001572 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001573 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001574
1575Optional Packages:
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001578 --with-pic try to use only PIC/non-PIC objects [default=use
1579 both]
mlcreech636a9952008-05-05 22:52:56 +00001580 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001581 --with-tcl=DIR directory containing tcl configuration
1582 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001583 --with-readline-lib specify readline library
1584 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001591 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001593 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001594 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001595 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001596
1597Use these variables to override the choices made by `configure' or to help
1598it to find libraries and programs with nonstandard names/locations.
1599
drhf922ca42015-05-14 15:39:18 +00001600Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001601_ACEOF
drh8b727472009-01-19 18:18:40 +00001602ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001603fi
1604
1605if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
a.rottmann84e63352003-03-24 09:42:16 +00001611 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001612
drh8b727472009-01-19 18:18:40 +00001613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001628
a.rottmann84e63352003-03-24 09:42:16 +00001629case $srcdir in
drh8b727472009-01-19 18:18:40 +00001630 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001631 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001635 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001642esac
drh8b727472009-01-19 18:18:40 +00001643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001644
drh8b727472009-01-19 18:18:40 +00001645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001653 else
drh8b727472009-01-19 18:18:40 +00001654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001657 done
1658fi
1659
drh8b727472009-01-19 18:18:40 +00001660test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001661if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001662 cat <<\_ACEOF
drh636f5052020-12-02 00:22:09 +00001663sqlite configure 3.35.0
drhf922ca42015-05-14 15:39:18 +00001664generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001665
drhf922ca42015-05-14 15:39:18 +00001666Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001669_ACEOF
drh8b727472009-01-19 18:18:40 +00001670 exit
drh71eb93e2001-09-28 01:34:43 +00001671fi
drhf922ca42015-05-14 15:39:18 +00001672
1673## ------------------------ ##
1674## Autoconf initialization. ##
1675## ------------------------ ##
1676
1677# ac_fn_c_try_compile LINENO
1678# --------------------------
1679# Try to compile conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext
1684 if { { ac_try="$ac_compile"
1685case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688esac
1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690$as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_compile") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1697 fi
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest.$ac_objext; then :
1703 ac_retval=0
1704else
1705 $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709fi
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_compile
1714
1715# ac_fn_c_try_link LINENO
1716# -----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_link ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 test -x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_link
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780else
1781 eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_try_cpp LINENO
1793# ----------------------
1794# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_cpp ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_cpp
1828
1829# ac_fn_c_try_run LINENO
1830# ----------------------
1831# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832# that executables *can* be run.
1833ac_fn_c_try_run ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if { { ac_try="$ac_link"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847 { { case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_try") 2>&5
1854 ac_status=$?
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; }; }; then :
1857 ac_retval=0
1858else
1859 $as_echo "$as_me: program exited with status $ac_status" >&5
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=$ac_status
1864fi
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869} # ac_fn_c_try_run
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_func
1937
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977
1978else
1979 eval "$3=yes"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_type
1991
1992# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993# -------------------------------------------------------
1994# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995# the include files in INCLUDES and setting the cache variable VAR
1996# accordingly.
1997ac_fn_c_check_header_mongrel ()
1998{
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if eval \${$3+:} false; then :
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002$as_echo_n "checking for $2... " >&6; }
2003if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009else
2010 # Is the header compilable?
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012$as_echo_n "checking $2 usability... " >&6; }
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$4
2016#include <$2>
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_header_compiler=yes
2020else
2021 ac_header_compiler=no
2022fi
2023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025$as_echo "$ac_header_compiler" >&6; }
2026
2027# Is the header present?
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029$as_echo_n "checking $2 presence... " >&6; }
2030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h. */
2032#include <$2>
2033_ACEOF
2034if ac_fn_c_try_cpp "$LINENO"; then :
2035 ac_header_preproc=yes
2036else
2037 ac_header_preproc=no
2038fi
2039rm -f conftest.err conftest.i conftest.$ac_ext
2040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041$as_echo "$ac_header_preproc" >&6; }
2042
2043# So? What about this header?
2044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2045 yes:no: )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ;;
2051 no:yes:* )
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2055$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2059$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 ;;
2063esac
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 eval "$3=\$ac_header_compiler"
2070fi
2071eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074fi
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076
2077} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002078cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002079This file contains any messages produced by compilers while
2080running configure, to aid debugging if configure makes a mistake.
2081
drh636f5052020-12-02 00:22:09 +00002082It was created by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +00002083generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002084
2085 $ $0 $@
2086
a.rottmann84e63352003-03-24 09:42:16 +00002087_ACEOF
drh8b727472009-01-19 18:18:40 +00002088exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002089{
2090cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002091## --------- ##
2092## Platform. ##
2093## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002094
2095hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2103
2104/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2105/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2106/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002107/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002108/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2109/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2110/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2111
drh71eb93e2001-09-28 01:34:43 +00002112_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002113
2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002119 $as_echo "PATH: $as_dir"
2120 done
drh8b727472009-01-19 18:18:40 +00002121IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002122
drh71eb93e2001-09-28 01:34:43 +00002123} >&5
2124
a.rottmann84e63352003-03-24 09:42:16 +00002125cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002126
a.rottmann84e63352003-03-24 09:42:16 +00002127
2128## ----------- ##
2129## Core tests. ##
2130## ----------- ##
2131
2132_ACEOF
2133
drh71eb93e2001-09-28 01:34:43 +00002134
2135# Keep a trace of the command line.
2136# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002137# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002138# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002139# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002140ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002141ac_configure_args0=
2142ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002143ac_must_keep_next=false
2144for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002145do
a.rottmann84e63352003-03-24 09:42:16 +00002146 for ac_arg
2147 do
2148 case $ac_arg in
2149 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151 | -silent | --silent | --silen | --sile | --sil)
2152 continue ;;
drh8b727472009-01-19 18:18:40 +00002153 *\'*)
2154 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002155 esac
2156 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002157 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002158 2)
drhf922ca42015-05-14 15:39:18 +00002159 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002160 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002161 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002162 else
a.rottmann964dbb12004-02-26 19:47:42 +00002163 case $ac_arg in
2164 *=* | --config-cache | -C | -disable-* | --disable-* \
2165 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167 | -with-* | --with-* | -without-* | --without-* | --x)
2168 case "$ac_configure_args0 " in
2169 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170 esac
2171 ;;
2172 -* ) ac_must_keep_next=true ;;
2173 esac
a.rottmann84e63352003-03-24 09:42:16 +00002174 fi
drhf922ca42015-05-14 15:39:18 +00002175 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002176 ;;
2177 esac
2178 done
drh71eb93e2001-09-28 01:34:43 +00002179done
drhf922ca42015-05-14 15:39:18 +00002180{ ac_configure_args0=; unset ac_configure_args0;}
2181{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002182
2183# When interrupted or exit'd, cleanup temporary files, and complete
2184# config.log. We remove comments because anyway the quotes in there
2185# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002186# WARNING: Use '\'' to represent an apostrophe within the trap.
2187# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002188trap 'exit_status=$?
2189 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002190 {
2191 echo
2192
drhf922ca42015-05-14 15:39:18 +00002193 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002194## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002195## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002196 echo
2197 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002198(
2199 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in #(
2202 *${as_nl}*)
2203 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002204 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002206 esac
2207 case $ac_var in #(
2208 _ | IFS | as_nl) ;; #(
2209 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002210 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002211 esac ;;
2212 esac
2213 done
drh71eb93e2001-09-28 01:34:43 +00002214 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002215 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002217 sed -n \
drh8b727472009-01-19 18:18:40 +00002218 "s/'\''/'\''\\\\'\'''\''/g;
2219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 ;; #(
drh866108f2008-05-13 00:57:21 +00002221 *)
drh8b727472009-01-19 18:18:40 +00002222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002223 ;;
drh8b727472009-01-19 18:18:40 +00002224 esac |
2225 sort
2226)
a.rottmann84e63352003-03-24 09:42:16 +00002227 echo
2228
drhf922ca42015-05-14 15:39:18 +00002229 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002230## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002231## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002232 echo
2233 for ac_var in $ac_subst_vars
2234 do
drh8b727472009-01-19 18:18:40 +00002235 eval ac_val=\$$ac_var
2236 case $ac_val in
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238 esac
2239 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002240 done | sort
2241 echo
2242
2243 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002244 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002245## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002246## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002247 echo
2248 for ac_var in $ac_subst_files
2249 do
drh8b727472009-01-19 18:18:40 +00002250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002255 done | sort
2256 echo
2257 fi
2258
2259 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002260 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002261## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002262## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002263 echo
drh8b727472009-01-19 18:18:40 +00002264 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002265 echo
2266 fi
2267 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002268 $as_echo "$as_me: caught signal $ac_signal"
2269 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002270 } >&5
drh8b727472009-01-19 18:18:40 +00002271 rm -f core *.core core.conftest.* &&
2272 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002273 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002274' 0
drh71eb93e2001-09-28 01:34:43 +00002275for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002276 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002277done
2278ac_signal=0
2279
2280# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002281rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002282
drhf922ca42015-05-14 15:39:18 +00002283$as_echo "/* confdefs.h */" > confdefs.h
2284
a.rottmann84e63352003-03-24 09:42:16 +00002285# Predefined preprocessor variables.
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_NAME "$PACKAGE_NAME"
2289_ACEOF
2290
a.rottmann84e63352003-03-24 09:42:16 +00002291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293_ACEOF
2294
a.rottmann84e63352003-03-24 09:42:16 +00002295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_VERSION "$PACKAGE_VERSION"
2297_ACEOF
2298
a.rottmann84e63352003-03-24 09:42:16 +00002299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_STRING "$PACKAGE_STRING"
2301_ACEOF
2302
dana9f39fd2011-08-12 16:34:42 +00002303cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002305_ACEOF
2306
drhf922ca42015-05-14 15:39:18 +00002307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_URL "$PACKAGE_URL"
2309_ACEOF
2310
a.rottmann84e63352003-03-24 09:42:16 +00002311
drh71eb93e2001-09-28 01:34:43 +00002312# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002313# Prefer an explicitly selected file to automatically selected ones.
2314ac_site_file1=NONE
2315ac_site_file2=NONE
2316if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002317 # We do not want a PATH search for config.site.
2318 case $CONFIG_SITE in #((
2319 -*) ac_site_file1=./$CONFIG_SITE;;
2320 */*) ac_site_file1=$CONFIG_SITE;;
2321 *) ac_site_file1=./$CONFIG_SITE;;
2322 esac
drh8b727472009-01-19 18:18:40 +00002323elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002329fi
drh8b727472009-01-19 18:18:40 +00002330for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do
2332 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002333 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002335$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002336 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002337 . "$ac_site_file" \
2338 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340as_fn_error $? "failed to load site script $ac_site_file
2341See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002342 fi
2343done
2344
2345if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002346 # Some versions of bash will fail to source /dev/null (special files
2347 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2348 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002350$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002351 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002352 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002354 esac
2355 fi
drh75897232000-05-29 14:26:00 +00002356else
drhf922ca42015-05-14 15:39:18 +00002357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002358$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002359 >$cache_file
2360fi
2361
2362# Check that the precious variables saved in the cache have kept the same
2363# value.
2364ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002365for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002366 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002368 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002370 case $ac_old_set,$ac_new_set in
2371 set,)
drhf922ca42015-05-14 15:39:18 +00002372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002373$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002374 ac_cache_corrupted=: ;;
2375 ,set)
drhf922ca42015-05-14 15:39:18 +00002376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002377$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002378 ac_cache_corrupted=: ;;
2379 ,);;
2380 *)
2381 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002382 # differences in whitespace do not lead to failure.
2383 ac_old_val_w=`echo x $ac_old_val`
2384 ac_new_val_w=`echo x $ac_new_val`
2385 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002387$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388 ac_cache_corrupted=:
2389 else
drhf922ca42015-05-14 15:39:18 +00002390 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002391$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392 eval $ac_var=\$ac_old_val
2393 fi
drhf922ca42015-05-14 15:39:18 +00002394 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002395$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002396 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002397$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002398 fi;;
2399 esac
a.rottmann84e63352003-03-24 09:42:16 +00002400 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002401 if test "$ac_new_set" = set; then
2402 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002403 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002404 *) ac_arg=$ac_var=$ac_new_val ;;
2405 esac
2406 case " $ac_configure_args " in
2407 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002408 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002409 esac
2410 fi
2411done
2412if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002416$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002417 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002418fi
drhf922ca42015-05-14 15:39:18 +00002419## -------------------- ##
2420## Main body of script. ##
2421## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002422
drh75897232000-05-29 14:26:00 +00002423ac_ext=c
drh75897232000-05-29 14:26:00 +00002424ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002428
a.rottmann84e63352003-03-24 09:42:16 +00002429
2430
drh04446102009-06-15 00:04:06 +00002431sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002432if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002433as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002434 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2435 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002436please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002437fi
2438
drh75897232000-05-29 14:26:00 +00002439#########
drh71eb93e2001-09-28 01:34:43 +00002440# Programs needed
drh75897232000-05-29 14:26:00 +00002441#
mlcreech636a9952008-05-05 22:52:56 +00002442case `pwd` in
2443 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002445$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002446esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002447
mlcreech94984912008-03-04 19:03:08 +00002448
mlcreech636a9952008-05-05 22:52:56 +00002449
vapier6acb2cf2009-01-28 04:46:28 +00002450macro_version='2.2.6'
2451macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002452
mlcreech94984912008-03-04 19:03:08 +00002453
mlcreech94984912008-03-04 19:03:08 +00002454
a.rottmann9bc8b932004-02-29 15:18:31 +00002455
mlcreech636a9952008-05-05 22:52:56 +00002456
2457
2458
2459
2460
2461
2462
2463
2464
2465ltmain="$ac_aux_dir/ltmain.sh"
2466
drh71eb93e2001-09-28 01:34:43 +00002467ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002468for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002469 if test -f "$ac_dir/install-sh"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/install-sh -c"
2472 break
2473 elif test -f "$ac_dir/install.sh"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/install.sh -c"
2476 break
2477 elif test -f "$ac_dir/shtool"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/shtool install -c"
2480 break
2481 fi
drh71eb93e2001-09-28 01:34:43 +00002482done
2483if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002484 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002485fi
drh8b727472009-01-19 18:18:40 +00002486
2487# These three variables are undocumented and unsupported,
2488# and are intended to be withdrawn in a future Autoconf release.
2489# They can cause serious problems if a builder's source tree is in a directory
2490# whose full name contains unusual characters.
2491ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2492ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2493ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2494
drh71eb93e2001-09-28 01:34:43 +00002495
2496# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002497$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002498 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002499
drhf922ca42015-05-14 15:39:18 +00002500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002501$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002502if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002503 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002504else
drh8b727472009-01-19 18:18:40 +00002505 ac_build_alias=$build_alias
2506test "x$ac_build_alias" = x &&
2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002509 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002510ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002511 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002512
2513fi
drhf922ca42015-05-14 15:39:18 +00002514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002515$as_echo "$ac_cv_build" >&6; }
2516case $ac_cv_build in
2517*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002518*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002519esac
drh71eb93e2001-09-28 01:34:43 +00002520build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002521ac_save_IFS=$IFS; IFS='-'
2522set x $ac_cv_build
2523shift
2524build_cpu=$1
2525build_vendor=$2
2526shift; shift
2527# Remember, the first character of IFS is used to create $*,
2528# except with old shells:
2529build_os=$*
2530IFS=$ac_save_IFS
2531case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002532
a.rottmann84e63352003-03-24 09:42:16 +00002533
drhf922ca42015-05-14 15:39:18 +00002534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002535$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002536if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002537 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002538else
drh8b727472009-01-19 18:18:40 +00002539 if test "x$host_alias" = x; then
2540 ac_cv_host=$ac_cv_build
2541else
2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002544fi
drh71eb93e2001-09-28 01:34:43 +00002545
2546fi
drhf922ca42015-05-14 15:39:18 +00002547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002548$as_echo "$ac_cv_host" >&6; }
2549case $ac_cv_host in
2550*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002551*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002552esac
drh71eb93e2001-09-28 01:34:43 +00002553host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002554ac_save_IFS=$IFS; IFS='-'
2555set x $ac_cv_host
2556shift
2557host_cpu=$1
2558host_vendor=$2
2559shift; shift
2560# Remember, the first character of IFS is used to create $*,
2561# except with old shells:
2562host_os=$*
2563IFS=$ac_save_IFS
2564case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002565
a.rottmann84e63352003-03-24 09:42:16 +00002566
drh71eb93e2001-09-28 01:34:43 +00002567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572if test -n "$ac_tool_prefix"; then
2573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2574set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002576$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002577if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002578 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002579else
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC="$CC" # Let the user override the test.
2582else
a.rottmann84e63352003-03-24 09:42:16 +00002583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002592 break 2
2593 fi
2594done
drhf922ca42015-05-14 15:39:18 +00002595 done
drh8b727472009-01-19 18:18:40 +00002596IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002597
2598fi
2599fi
2600CC=$ac_cv_prog_CC
2601if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002603$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002604else
drhf922ca42015-05-14 15:39:18 +00002605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002606$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002607fi
2608
drh8b727472009-01-19 18:18:40 +00002609
drh71eb93e2001-09-28 01:34:43 +00002610fi
2611if test -z "$ac_cv_prog_CC"; then
2612 ac_ct_CC=$CC
2613 # Extract the first word of "gcc", so it can be a program name with args.
2614set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002616$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002617if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002618 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002619else
2620 if test -n "$ac_ct_CC"; then
2621 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2622else
a.rottmann84e63352003-03-24 09:42:16 +00002623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002630 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002632 break 2
2633 fi
2634done
drhf922ca42015-05-14 15:39:18 +00002635 done
drh8b727472009-01-19 18:18:40 +00002636IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002637
2638fi
2639fi
2640ac_ct_CC=$ac_cv_prog_ac_ct_CC
2641if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002643$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002644else
drhf922ca42015-05-14 15:39:18 +00002645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002646$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002647fi
2648
drh8b727472009-01-19 18:18:40 +00002649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653yes:)
drhf922ca42015-05-14 15:39:18 +00002654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002656ac_tool_warned=yes ;;
2657esac
2658 CC=$ac_ct_CC
2659 fi
drh71eb93e2001-09-28 01:34:43 +00002660else
2661 CC="$ac_cv_prog_CC"
2662fi
2663
2664if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002665 if test -n "$ac_tool_prefix"; then
2666 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002667set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002669$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002670if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002671 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002672else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675else
a.rottmann84e63352003-03-24 09:42:16 +00002676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002683 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002685 break 2
2686 fi
2687done
drhf922ca42015-05-14 15:39:18 +00002688 done
drh8b727472009-01-19 18:18:40 +00002689IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002690
2691fi
2692fi
2693CC=$ac_cv_prog_CC
2694if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002696$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002697else
drhf922ca42015-05-14 15:39:18 +00002698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002699$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002700fi
2701
drh8b727472009-01-19 18:18:40 +00002702
a.rottmann84e63352003-03-24 09:42:16 +00002703 fi
drh71eb93e2001-09-28 01:34:43 +00002704fi
2705if test -z "$CC"; then
2706 # Extract the first word of "cc", so it can be a program name with args.
2707set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002709$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002710if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002711 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002712else
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2715else
2716 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2725 ac_prog_rejected=yes
2726 continue
2727 fi
2728 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002730 break 2
2731 fi
2732done
drhf922ca42015-05-14 15:39:18 +00002733 done
drh8b727472009-01-19 18:18:40 +00002734IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002735
2736if test $ac_prog_rejected = yes; then
2737 # We found a bogon in the path, so make sure we never use it.
2738 set dummy $ac_cv_prog_CC
2739 shift
2740 if test $# != 0; then
2741 # We chose a different compiler from the bogus one.
2742 # However, it has the same basename, so the bogon will be chosen
2743 # first if we set CC to just the basename; use the full file name.
2744 shift
a.rottmann84e63352003-03-24 09:42:16 +00002745 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002746 fi
2747fi
2748fi
2749fi
2750CC=$ac_cv_prog_CC
2751if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002753$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002754else
drhf922ca42015-05-14 15:39:18 +00002755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002756$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002757fi
2758
drh8b727472009-01-19 18:18:40 +00002759
drh71eb93e2001-09-28 01:34:43 +00002760fi
2761if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002763 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002764 do
2765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2766set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002768$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002769if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002770 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002771else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774else
a.rottmann84e63352003-03-24 09:42:16 +00002775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002782 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002784 break 2
2785 fi
2786done
drhf922ca42015-05-14 15:39:18 +00002787 done
drh8b727472009-01-19 18:18:40 +00002788IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002789
2790fi
2791fi
2792CC=$ac_cv_prog_CC
2793if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002795$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002796else
drhf922ca42015-05-14 15:39:18 +00002797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002798$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002799fi
2800
drh8b727472009-01-19 18:18:40 +00002801
drh71eb93e2001-09-28 01:34:43 +00002802 test -n "$CC" && break
2803 done
2804fi
2805if test -z "$CC"; then
2806 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002807 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002808do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002812$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002813if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002814 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002815else
2816 if test -n "$ac_ct_CC"; then
2817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818else
a.rottmann84e63352003-03-24 09:42:16 +00002819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002826 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002828 break 2
2829 fi
2830done
drhf922ca42015-05-14 15:39:18 +00002831 done
drh8b727472009-01-19 18:18:40 +00002832IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002833
2834fi
2835fi
2836ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002839$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002840else
drhf922ca42015-05-14 15:39:18 +00002841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002842$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002843fi
2844
drh8b727472009-01-19 18:18:40 +00002845
drh71eb93e2001-09-28 01:34:43 +00002846 test -n "$ac_ct_CC" && break
2847done
2848
drh8b727472009-01-19 18:18:40 +00002849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
drhf922ca42015-05-14 15:39:18 +00002854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002856ac_tool_warned=yes ;;
2857esac
2858 CC=$ac_ct_CC
2859 fi
drh71eb93e2001-09-28 01:34:43 +00002860fi
2861
2862fi
2863
a.rottmann84e63352003-03-24 09:42:16 +00002864
drhf922ca42015-05-14 15:39:18 +00002865test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867as_fn_error $? "no acceptable C compiler found in \$PATH
2868See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002869
2870# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002871$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002872set X $ac_compile
2873ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002874for ac_option in --version -v -V -qversion; do
2875 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002876case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
drhf922ca42015-05-14 15:39:18 +00002880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881$as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002883 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002884 if test -s conftest.err; then
2885 sed '10a\
2886... rest of stderr output deleted ...
2887 10q' conftest.err >conftest.er1
2888 cat conftest.er1 >&5
2889 fi
2890 rm -f conftest.er1 conftest.err
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }
2893done
drh71eb93e2001-09-28 01:34:43 +00002894
drhf922ca42015-05-14 15:39:18 +00002895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002896/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002907ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002908# Try to create an executable without -o first, disregard a.out.
2909# It will help us diagnose broken compilers, and finding out an intuition
2910# of exeext.
drhf922ca42015-05-14 15:39:18 +00002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2912$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002913ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002914
drh8b727472009-01-19 18:18:40 +00002915# The possible output files:
2916ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2917
2918ac_rmfiles=
2919for ac_file in $ac_files
2920do
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2924 esac
2925done
2926rm -f $ac_rmfiles
2927
drhf922ca42015-05-14 15:39:18 +00002928if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002929case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932esac
drhf922ca42015-05-14 15:39:18 +00002933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002935 (eval "$ac_link_default") 2>&5
2936 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2940# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2941# in a Makefile. We should not override ac_cv_exeext if it was cached,
2942# so that the user can short-circuit this test for compilers unknown to
2943# Autoconf.
2944for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002945do
2946 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002947 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002949 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002950 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002951 # We found the default executable, but exeext='' is most
2952 # certainly right.
2953 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002954 *.* )
drhf922ca42015-05-14 15:39:18 +00002955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002956 then :; else
2957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958 fi
2959 # We set ac_cv_exeext here because the later test for it is not
2960 # safe: cross compilers may not add the suffix if given an `-o'
2961 # argument, so we may need to know it at that point already.
2962 # Even if this section looks crufty: it has the advantage of
2963 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002964 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002965 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002966 break;;
drh71eb93e2001-09-28 01:34:43 +00002967 esac
2968done
drh8b727472009-01-19 18:18:40 +00002969test "$ac_cv_exeext" = no && ac_cv_exeext=
2970
drh71eb93e2001-09-28 01:34:43 +00002971else
drh8b727472009-01-19 18:18:40 +00002972 ac_file=''
2973fi
drhf922ca42015-05-14 15:39:18 +00002974if test -z "$ac_file"; then :
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
drhf922ca42015-05-14 15:39:18 +00002980{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982as_fn_error 77 "C compiler cannot create executables
2983See \`config.log' for more details" "$LINENO" 5; }
2984else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002986$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002987fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989$as_echo_n "checking for C compiler default output file name... " >&6; }
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2991$as_echo "$ac_file" >&6; }
2992ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002993
drh8b727472009-01-19 18:18:40 +00002994rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002995ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002997$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002998if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
drhf922ca42015-05-14 15:39:18 +00003003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003005 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003006 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011# work properly (i.e., refer to `conftest.exe'), while it won't with
3012# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003013for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003015 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003018 break;;
drh71eb93e2001-09-28 01:34:43 +00003019 * ) break;;
3020 esac
3021done
3022else
drhf922ca42015-05-14 15:39:18 +00003023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3026See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003027fi
drhf922ca42015-05-14 15:39:18 +00003028rm -f conftest conftest$ac_cv_exeext
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003030$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003031
3032rm -f conftest.$ac_ext
3033EXEEXT=$ac_cv_exeext
3034ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */
3037#include <stdio.h>
3038int
3039main ()
3040{
3041FILE *f = fopen ("conftest.out", "w");
3042 return ferror (f) || fclose (f) != 0;
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048ac_clean_files="$ac_clean_files conftest.out"
3049# Check that the compiler produces executables we can run. If not, either
3050# the compiler is broken, or we cross compile.
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3052$as_echo_n "checking whether we are cross compiling... " >&6; }
3053if test "$cross_compiling" != yes; then
3054 { { ac_try="$ac_link"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3065 if { ac_try='./conftest$ac_cv_exeext'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071$as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083as_fn_error $? "cannot run C compiled programs.
3084If you meant to cross compile, use \`--host'.
3085See \`config.log' for more details" "$LINENO" 5; }
3086 fi
3087 fi
3088fi
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090$as_echo "$cross_compiling" >&6; }
3091
3092rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3093ac_clean_files=$ac_clean_files_save
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003095$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003096if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003097 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003098else
drhf922ca42015-05-14 15:39:18 +00003099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003100/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003101
3102int
3103main ()
3104{
3105
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003111if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003112case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
drhf922ca42015-05-14 15:39:18 +00003116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003118 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003119 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003124 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127 break;;
3128 esac
3129done
3130else
drh8b727472009-01-19 18:18:40 +00003131 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003132sed 's/^/| /' conftest.$ac_ext >&5
3133
drhf922ca42015-05-14 15:39:18 +00003134{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136as_fn_error $? "cannot compute suffix of object files: cannot compile
3137See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003138fi
drh71eb93e2001-09-28 01:34:43 +00003139rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140fi
drhf922ca42015-05-14 15:39:18 +00003141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003142$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003143OBJEXT=$ac_cv_objext
3144ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003146$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003147if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003148 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003149else
drhf922ca42015-05-14 15:39:18 +00003150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003151/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003152
3153int
3154main ()
3155{
3156#ifndef __GNUC__
3157 choke me
3158#endif
3159
3160 ;
3161 return 0;
3162}
3163_ACEOF
drhf922ca42015-05-14 15:39:18 +00003164if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003165 ac_compiler_gnu=yes
3166else
drhf922ca42015-05-14 15:39:18 +00003167 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003168fi
drh8b727472009-01-19 18:18:40 +00003169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003170ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171
3172fi
drhf922ca42015-05-14 15:39:18 +00003173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003174$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3175if test $ac_compiler_gnu = yes; then
3176 GCC=yes
3177else
3178 GCC=
3179fi
drh71eb93e2001-09-28 01:34:43 +00003180ac_test_CFLAGS=${CFLAGS+set}
3181ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003183$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003184if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003185 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003186else
drh8b727472009-01-19 18:18:40 +00003187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003192/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003193
3194int
3195main ()
3196{
3197
3198 ;
3199 return 0;
3200}
3201_ACEOF
drhf922ca42015-05-14 15:39:18 +00003202if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003203 ac_cv_prog_cc_g=yes
3204else
drhf922ca42015-05-14 15:39:18 +00003205 CFLAGS=""
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
drhf922ca42015-05-14 15:39:18 +00003217if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003218
drhf922ca42015-05-14 15:39:18 +00003219else
3220 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003221 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003223/* end confdefs.h. */
3224
3225int
3226main ()
3227{
3228
3229 ;
3230 return 0;
3231}
3232_ACEOF
drhf922ca42015-05-14 15:39:18 +00003233if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003234 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003235fi
drh8b727472009-01-19 18:18:40 +00003236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003237fi
drh8b727472009-01-19 18:18:40 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
drh8b727472009-01-19 18:18:40 +00003240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
drhf922ca42015-05-14 15:39:18 +00003243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003244$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259fi
drhf922ca42015-05-14 15:39:18 +00003260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003261$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003262if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003263 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003264else
drh8b727472009-01-19 18:18:40 +00003265 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003266ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003268/* end confdefs.h. */
3269#include <stdarg.h>
3270#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003271struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276 char **p;
3277 int i;
3278{
3279 return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283 char *s;
3284 va_list v;
3285 va_start (v,p);
3286 s = g (p, va_arg (v,int));
3287 va_end (v);
3288 return s;
3289}
a.rottmann964dbb12004-02-26 19:47:42 +00003290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3292 function prototypes and stuff, but not '\xHH' hex character constants.
3293 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003294 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3296 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003297 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
drh8b727472009-01-19 18:18:40 +00003300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301 inside strings and character constants. */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
a.rottmann84e63352003-03-24 09:42:16 +00003305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 ;
3316 return 0;
3317}
3318_ACEOF
drh8b727472009-01-19 18:18:40 +00003319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003321do
3322 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003323 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003324 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003325fi
drh8b727472009-01-19 18:18:40 +00003326rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003328done
drh8b727472009-01-19 18:18:40 +00003329rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003330CC=$ac_save_CC
3331
3332fi
drh8b727472009-01-19 18:18:40 +00003333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335 x)
drhf922ca42015-05-14 15:39:18 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003337$as_echo "none needed" >&6; } ;;
3338 xno)
drhf922ca42015-05-14 15:39:18 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003340$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003341 *)
drh8b727472009-01-19 18:18:40 +00003342 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003344$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003345esac
drhf922ca42015-05-14 15:39:18 +00003346if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003347
drhf922ca42015-05-14 15:39:18 +00003348fi
a.rottmann84e63352003-03-24 09:42:16 +00003349
drh71eb93e2001-09-28 01:34:43 +00003350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
drhf922ca42015-05-14 15:39:18 +00003356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003357$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003358if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003359 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003360else
drh8b727472009-01-19 18:18:40 +00003361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3362 for ac_i in 1 2 3 4 5 6 7; do
3363 ac_script="$ac_script$as_nl$ac_script"
3364 done
3365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003366 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003367 if test -z "$SED"; then
3368 ac_path_SED_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003371for as_dir in $PATH
3372do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003375 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003376 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003378 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003379# Check for GNU ac_path_SED and select it if it is found.
3380 # Check for GNU $ac_path_SED
3381case `"$ac_path_SED" --version 2>&1` in
3382*GNU*)
3383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3384*)
3385 ac_count=0
3386 $as_echo_n 0123456789 >"conftest.in"
3387 while :
3388 do
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 $as_echo '' >> "conftest.nl"
3393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003395 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003396 if test $ac_count -gt ${ac_path_SED_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_SED="$ac_path_SED"
3399 ac_path_SED_max=$ac_count
3400 fi
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405esac
3406
3407 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003408 done
3409 done
drhf922ca42015-05-14 15:39:18 +00003410 done
mlcreech636a9952008-05-05 22:52:56 +00003411IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003412 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003413 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003414 fi
drh8b727472009-01-19 18:18:40 +00003415else
3416 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003417fi
drh866108f2008-05-13 00:57:21 +00003418
drh8b727472009-01-19 18:18:40 +00003419fi
drhf922ca42015-05-14 15:39:18 +00003420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003421$as_echo "$ac_cv_path_SED" >&6; }
3422 SED="$ac_cv_path_SED"
3423 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003424
mlcreech636a9952008-05-05 22:52:56 +00003425test -z "$SED" && SED=sed
3426Xsed="$SED -e 1s/^X//"
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
drhf922ca42015-05-14 15:39:18 +00003438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003440if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003441 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003442else
drh8b727472009-01-19 18:18:40 +00003443 if test -z "$GREP"; then
3444 ac_path_GREP_found=false
3445 # Loop through the user's path and test for each of PROGNAME-LIST
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003451 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003454 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003455# Check for GNU ac_path_GREP and select it if it is found.
3456 # Check for GNU $ac_path_GREP
3457case `"$ac_path_GREP" --version 2>&1` in
3458*GNU*)
3459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3460*)
3461 ac_count=0
3462 $as_echo_n 0123456789 >"conftest.in"
3463 while :
3464 do
3465 cat "conftest.in" "conftest.in" >"conftest.tmp"
3466 mv "conftest.tmp" "conftest.in"
3467 cp "conftest.in" "conftest.nl"
3468 $as_echo 'GREP' >> "conftest.nl"
3469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003471 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3473 # Best one so far, save it but keep looking for a better one
3474 ac_cv_path_GREP="$ac_path_GREP"
3475 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003476 fi
drh8b727472009-01-19 18:18:40 +00003477 # 10*(2^10) chars as input seems more than enough
3478 test $ac_count -gt 10 && break
3479 done
3480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481esac
3482
3483 $ac_path_GREP_found && break 3
3484 done
3485 done
drhf922ca42015-05-14 15:39:18 +00003486 done
drh8b727472009-01-19 18:18:40 +00003487IFS=$as_save_IFS
3488 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003490 fi
3491else
3492 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003493fi
drh8b727472009-01-19 18:18:40 +00003494
3495fi
drhf922ca42015-05-14 15:39:18 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003497$as_echo "$ac_cv_path_GREP" >&6; }
3498 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003499
3500
drhf922ca42015-05-14 15:39:18 +00003501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003502$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003503if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003504 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003505else
drh8b727472009-01-19 18:18:40 +00003506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3507 then ac_cv_path_EGREP="$GREP -E"
3508 else
3509 if test -z "$EGREP"; then
3510 ac_path_EGREP_found=false
3511 # Loop through the user's path and test for each of PROGNAME-LIST
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3514do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003517 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003520 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003521# Check for GNU ac_path_EGREP and select it if it is found.
3522 # Check for GNU $ac_path_EGREP
3523case `"$ac_path_EGREP" --version 2>&1` in
3524*GNU*)
3525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3526*)
3527 ac_count=0
3528 $as_echo_n 0123456789 >"conftest.in"
3529 while :
3530 do
3531 cat "conftest.in" "conftest.in" >"conftest.tmp"
3532 mv "conftest.tmp" "conftest.in"
3533 cp "conftest.in" "conftest.nl"
3534 $as_echo 'EGREP' >> "conftest.nl"
3535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003537 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3539 # Best one so far, save it but keep looking for a better one
3540 ac_cv_path_EGREP="$ac_path_EGREP"
3541 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003542 fi
drh8b727472009-01-19 18:18:40 +00003543 # 10*(2^10) chars as input seems more than enough
3544 test $ac_count -gt 10 && break
3545 done
3546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3547esac
3548
3549 $ac_path_EGREP_found && break 3
3550 done
3551 done
drhf922ca42015-05-14 15:39:18 +00003552 done
drh8b727472009-01-19 18:18:40 +00003553IFS=$as_save_IFS
3554 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003555 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003556 fi
3557else
3558 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003559fi
drh8b727472009-01-19 18:18:40 +00003560
3561 fi
3562fi
drhf922ca42015-05-14 15:39:18 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003564$as_echo "$ac_cv_path_EGREP" >&6; }
3565 EGREP="$ac_cv_path_EGREP"
3566
3567
drhf922ca42015-05-14 15:39:18 +00003568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003569$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003570if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003571 $as_echo_n "(cached) " >&6
3572else
3573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3574 then ac_cv_path_FGREP="$GREP -F"
3575 else
3576 if test -z "$FGREP"; then
3577 ac_path_FGREP_found=false
3578 # Loop through the user's path and test for each of PROGNAME-LIST
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003584 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003587 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003588# Check for GNU ac_path_FGREP and select it if it is found.
3589 # Check for GNU $ac_path_FGREP
3590case `"$ac_path_FGREP" --version 2>&1` in
3591*GNU*)
3592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3593*)
3594 ac_count=0
3595 $as_echo_n 0123456789 >"conftest.in"
3596 while :
3597 do
3598 cat "conftest.in" "conftest.in" >"conftest.tmp"
3599 mv "conftest.tmp" "conftest.in"
3600 cp "conftest.in" "conftest.nl"
3601 $as_echo 'FGREP' >> "conftest.nl"
3602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003604 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3606 # Best one so far, save it but keep looking for a better one
3607 ac_cv_path_FGREP="$ac_path_FGREP"
3608 ac_path_FGREP_max=$ac_count
3609 fi
3610 # 10*(2^10) chars as input seems more than enough
3611 test $ac_count -gt 10 && break
3612 done
3613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3614esac
3615
3616 $ac_path_FGREP_found && break 3
3617 done
3618 done
drhf922ca42015-05-14 15:39:18 +00003619 done
drh8b727472009-01-19 18:18:40 +00003620IFS=$as_save_IFS
3621 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003622 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003623 fi
3624else
3625 ac_cv_path_FGREP=$FGREP
3626fi
3627
3628 fi
3629fi
drhf922ca42015-05-14 15:39:18 +00003630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003631$as_echo "$ac_cv_path_FGREP" >&6; }
3632 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003633
3634
3635test -z "$GREP" && GREP=grep
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
a.rottmann9bc8b932004-02-29 15:18:31 +00003652
3653
a.rottmann84e63352003-03-24 09:42:16 +00003654
drh8b727472009-01-19 18:18:40 +00003655# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003656if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003657 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003658else
3659 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003660fi
3661
drh71eb93e2001-09-28 01:34:43 +00003662ac_prog=ld
3663if test "$GCC" = yes; then
3664 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003666$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003667 case $host in
3668 *-*-mingw*)
3669 # gcc leaves a trailing carriage return which upsets mingw
3670 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3671 *)
3672 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3673 esac
3674 case $ac_prog in
3675 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003676 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003677 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003678 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003679 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3680 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3681 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003682 done
3683 test -z "$LD" && LD="$ac_prog"
3684 ;;
3685 "")
3686 # If it fails, then pretend we aren't using GCC.
3687 ac_prog=ld
3688 ;;
3689 *)
3690 # If it is relative, then search for the first ld in PATH.
3691 with_gnu_ld=unknown
3692 ;;
3693 esac
3694elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003696$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003697else
drhf922ca42015-05-14 15:39:18 +00003698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003699$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003700fi
drhf922ca42015-05-14 15:39:18 +00003701if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003702 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003703else
3704 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003706 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003707 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003708 test -z "$ac_dir" && ac_dir=.
3709 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3710 lt_cv_path_LD="$ac_dir/$ac_prog"
3711 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003712 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003713 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3715 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003716 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003717 ;;
3718 *)
drh71eb93e2001-09-28 01:34:43 +00003719 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003720 ;;
3721 esac
drh71eb93e2001-09-28 01:34:43 +00003722 fi
3723 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003724 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003725else
3726 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3727fi
3728fi
3729
3730LD="$lt_cv_path_LD"
3731if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003733$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003734else
drhf922ca42015-05-14 15:39:18 +00003735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003736$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003737fi
drhf922ca42015-05-14 15:39:18 +00003738test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003740$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003741if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003742 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003743else
vapier7f19c022007-02-17 14:46:31 +00003744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003745case `$LD -v 2>&1 </dev/null` in
3746*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003747 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003748 ;;
3749*)
drh71eb93e2001-09-28 01:34:43 +00003750 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003751 ;;
3752esac
drh71eb93e2001-09-28 01:34:43 +00003753fi
drhf922ca42015-05-14 15:39:18 +00003754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003755$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003756with_gnu_ld=$lt_cv_prog_gnu_ld
3757
a.rottmann84e63352003-03-24 09:42:16 +00003758
drh71eb93e2001-09-28 01:34:43 +00003759
mlcreech636a9952008-05-05 22:52:56 +00003760
3761
3762
3763
3764
3765
drhf922ca42015-05-14 15:39:18 +00003766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003767$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003768if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003769 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003770else
3771 if test -n "$NM"; then
3772 # Let the user override the test.
3773 lt_cv_path_NM="$NM"
3774else
vapier7f19c022007-02-17 14:46:31 +00003775 lt_nm_to_check="${ac_tool_prefix}nm"
3776 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3777 lt_nm_to_check="$lt_nm_to_check nm"
3778 fi
3779 for lt_tmp_nm in $lt_nm_to_check; do
3780 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3781 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3782 IFS="$lt_save_ifs"
3783 test -z "$ac_dir" && ac_dir=.
3784 tmp_nm="$ac_dir/$lt_tmp_nm"
3785 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3786 # Check to see if the nm accepts a BSD-compat flag.
3787 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3788 # nm: unknown option "B" ignored
3789 # Tru64's nm complains that /dev/null is an invalid object file
3790 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3791 */dev/null* | *'Invalid file or object type'*)
3792 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003793 break
3794 ;;
3795 *)
vapier7f19c022007-02-17 14:46:31 +00003796 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3797 */dev/null*)
3798 lt_cv_path_NM="$tmp_nm -p"
3799 break
3800 ;;
3801 *)
3802 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3803 continue # so that we can try to find one that supports BSD flags
3804 ;;
3805 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003806 ;;
3807 esac
vapier7f19c022007-02-17 14:46:31 +00003808 fi
3809 done
3810 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003811 done
mlcreech636a9952008-05-05 22:52:56 +00003812 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003813fi
3814fi
drhf922ca42015-05-14 15:39:18 +00003815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003816$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003817if test "$lt_cv_path_NM" != "no"; then
3818 NM="$lt_cv_path_NM"
3819else
3820 # Didn't find any BSD compatible name lister, look for dumpbin.
3821 if test -n "$ac_tool_prefix"; then
3822 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3823 do
3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003827$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003828if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003829 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003830else
3831 if test -n "$DUMPBIN"; then
3832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003843 break 2
3844 fi
3845done
drhf922ca42015-05-14 15:39:18 +00003846 done
drh8b727472009-01-19 18:18:40 +00003847IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003848
mlcreech636a9952008-05-05 22:52:56 +00003849fi
3850fi
3851DUMPBIN=$ac_cv_prog_DUMPBIN
3852if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003854$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003855else
drhf922ca42015-05-14 15:39:18 +00003856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003857$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003858fi
3859
drh8b727472009-01-19 18:18:40 +00003860
mlcreech636a9952008-05-05 22:52:56 +00003861 test -n "$DUMPBIN" && break
3862 done
3863fi
3864if test -z "$DUMPBIN"; then
3865 ac_ct_DUMPBIN=$DUMPBIN
3866 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3867do
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003871$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003872if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003873 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003874else
3875 if test -n "$ac_ct_DUMPBIN"; then
3876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003887 break 2
3888 fi
3889done
drhf922ca42015-05-14 15:39:18 +00003890 done
drh8b727472009-01-19 18:18:40 +00003891IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003892
3893fi
3894fi
3895ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3896if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003898$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003899else
drhf922ca42015-05-14 15:39:18 +00003900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003901$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003902fi
3903
drh8b727472009-01-19 18:18:40 +00003904
mlcreech636a9952008-05-05 22:52:56 +00003905 test -n "$ac_ct_DUMPBIN" && break
3906done
3907
drh8b727472009-01-19 18:18:40 +00003908 if test "x$ac_ct_DUMPBIN" = x; then
3909 DUMPBIN=":"
3910 else
3911 case $cross_compiling:$ac_tool_warned in
3912yes:)
drhf922ca42015-05-14 15:39:18 +00003913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003915ac_tool_warned=yes ;;
3916esac
3917 DUMPBIN=$ac_ct_DUMPBIN
3918 fi
mlcreech636a9952008-05-05 22:52:56 +00003919fi
3920
3921
3922 if test "$DUMPBIN" != ":"; then
3923 NM="$DUMPBIN"
3924 fi
3925fi
3926test -z "$NM" && NM=nm
3927
3928
3929
3930
3931
3932
drhf922ca42015-05-14 15:39:18 +00003933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003934$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003935if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003936 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003937else
3938 lt_cv_nm_interface="BSD nm"
3939 echo "int some_variable = 0;" > conftest.$ac_ext
drhe2ce8c42020-12-07 21:19:17 +00003940 (eval echo "\"\$as_me:3940: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003941 (eval "$ac_compile" 2>conftest.err)
3942 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003943 (eval echo "\"\$as_me:3943: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003944 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3945 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00003946 (eval echo "\"\$as_me:3946: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003947 cat conftest.out >&5
3948 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3949 lt_cv_nm_interface="MS dumpbin"
3950 fi
3951 rm -f conftest*
3952fi
drhf922ca42015-05-14 15:39:18 +00003953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003954$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003955
drhf922ca42015-05-14 15:39:18 +00003956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003957$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003958LN_S=$as_ln_s
3959if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003961$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003962else
drhf922ca42015-05-14 15:39:18 +00003963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003964$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003965fi
3966
mlcreech636a9952008-05-05 22:52:56 +00003967# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003969$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003970if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003971 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003972else
3973 i=0
3974 teststring="ABCD"
3975
3976 case $build_os in
3977 msdosdjgpp*)
3978 # On DJGPP, this test can blow up pretty badly due to problems in libc
3979 # (any single argument exceeding 2000 bytes causes a buffer overrun
3980 # during glob expansion). Even if it were fixed, the result of this
3981 # check would be larger than it should be.
3982 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3983 ;;
3984
3985 gnu*)
3986 # Under GNU Hurd, this test is not required because there is
3987 # no limit to the length of command line arguments.
3988 # Libtool will interpret -1 as no limit whatsoever
3989 lt_cv_sys_max_cmd_len=-1;
3990 ;;
3991
vapier6acb2cf2009-01-28 04:46:28 +00003992 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003993 # On Win9x/ME, this test blows up -- it succeeds, but takes
3994 # about 5 minutes as the teststring grows exponentially.
3995 # Worse, since 9x/ME are not pre-emptively multitasking,
3996 # you end up with a "frozen" computer, even though with patience
3997 # the test eventually succeeds (with a max line length of 256k).
3998 # Instead, let's just punt: use the minimum linelength reported by
3999 # all of the supported platforms: 8192 (on NT/2K/XP).
4000 lt_cv_sys_max_cmd_len=8192;
4001 ;;
4002
4003 amigaos*)
4004 # On AmigaOS with pdksh, this test takes hours, literally.
4005 # So we just punt and use a minimum line length of 8192.
4006 lt_cv_sys_max_cmd_len=8192;
4007 ;;
4008
4009 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4010 # This has been around since 386BSD, at least. Likely further.
4011 if test -x /sbin/sysctl; then
4012 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4013 elif test -x /usr/sbin/sysctl; then
4014 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4015 else
4016 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4017 fi
4018 # And add a safety zone
4019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4021 ;;
4022
4023 interix*)
4024 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4025 lt_cv_sys_max_cmd_len=196608
4026 ;;
4027
4028 osf*)
4029 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4030 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4031 # nice to cause kernel panics so lets avoid the loop below.
4032 # First set a reasonable default.
4033 lt_cv_sys_max_cmd_len=16384
4034 #
4035 if test -x /sbin/sysconfig; then
4036 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4037 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4038 esac
4039 fi
4040 ;;
4041 sco3.2v5*)
4042 lt_cv_sys_max_cmd_len=102400
4043 ;;
4044 sysv5* | sco5v6* | sysv4.2uw2*)
4045 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4046 if test -n "$kargmax"; then
4047 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4048 else
4049 lt_cv_sys_max_cmd_len=32768
4050 fi
4051 ;;
4052 *)
4053 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4054 if test -n "$lt_cv_sys_max_cmd_len"; then
4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4057 else
4058 # Make teststring a little bigger before we do anything with it.
4059 # a 1K string should be a reasonable start.
4060 for i in 1 2 3 4 5 6 7 8 ; do
4061 teststring=$teststring$teststring
4062 done
4063 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4064 # If test is not a shell built-in, we'll probably end up computing a
4065 # maximum length that is only half of the actual maximum length, but
4066 # we can't tell.
4067 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4068 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4069 test $i != 17 # 1/2 MB should be enough
4070 do
4071 i=`expr $i + 1`
4072 teststring=$teststring$teststring
4073 done
4074 # Only check the string length outside the loop.
4075 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4076 teststring=
4077 # Add a significant safety factor because C++ compilers can tack on
4078 # massive amounts of additional arguments before passing them to the
4079 # linker. It appears as though 1/2 is a usable value.
4080 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4081 fi
4082 ;;
4083 esac
4084
4085fi
4086
4087if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004089$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004090else
drhf922ca42015-05-14 15:39:18 +00004091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004092$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004093fi
4094max_cmd_len=$lt_cv_sys_max_cmd_len
4095
4096
4097
4098
4099
4100
4101: ${CP="cp -f"}
4102: ${MV="mv -f"}
4103: ${RM="rm -f"}
4104
drhf922ca42015-05-14 15:39:18 +00004105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004106$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004107# Try some XSI features
4108xsi_shell=no
4109( _lt_dummy="a/b/c"
4110 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4111 = c,a/b,, \
4112 && eval 'test $(( 1 + 1 )) -eq 2 \
4113 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4114 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004116$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004117
4118
drhf922ca42015-05-14 15:39:18 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004120$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004121lt_shell_append=no
4122( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4123 >/dev/null 2>&1 \
4124 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004126$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004127
4128
4129if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4130 lt_unset=unset
4131else
4132 lt_unset=false
4133fi
4134
4135
4136
4137
4138
4139# test EBCDIC or ASCII
4140case `echo X|tr X '\101'` in
4141 A) # ASCII based system
4142 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4143 lt_SP2NL='tr \040 \012'
4144 lt_NL2SP='tr \015\012 \040\040'
4145 ;;
4146 *) # EBCDIC based system
4147 lt_SP2NL='tr \100 \n'
4148 lt_NL2SP='tr \r\n \100\100'
4149 ;;
4150esac
4151
4152
4153
4154
4155
4156
4157
4158
4159
drhf922ca42015-05-14 15:39:18 +00004160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004161$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004162if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004163 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004164else
4165 lt_cv_ld_reload_flag='-r'
4166fi
drhf922ca42015-05-14 15:39:18 +00004167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004168$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004169reload_flag=$lt_cv_ld_reload_flag
4170case $reload_flag in
4171"" | " "*) ;;
4172*) reload_flag=" $reload_flag" ;;
4173esac
4174reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175case $host_os in
4176 darwin*)
4177 if test "$GCC" = yes; then
4178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4179 else
4180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4181 fi
4182 ;;
4183esac
4184
4185
4186
4187
4188
4189
4190
4191
4192
vapier6acb2cf2009-01-28 04:46:28 +00004193if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004197$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004198if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$OBJDUMP"; then
4202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004213 break 2
4214 fi
4215done
drhf922ca42015-05-14 15:39:18 +00004216 done
vapier6acb2cf2009-01-28 04:46:28 +00004217IFS=$as_save_IFS
4218
4219fi
4220fi
4221OBJDUMP=$ac_cv_prog_OBJDUMP
4222if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004224$as_echo "$OBJDUMP" >&6; }
4225else
drhf922ca42015-05-14 15:39:18 +00004226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004227$as_echo "no" >&6; }
4228fi
4229
4230
4231fi
4232if test -z "$ac_cv_prog_OBJDUMP"; then
4233 ac_ct_OBJDUMP=$OBJDUMP
4234 # Extract the first word of "objdump", so it can be a program name with args.
4235set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004237$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004238if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$ac_ct_OBJDUMP"; then
4242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004251 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004253 break 2
4254 fi
4255done
drhf922ca42015-05-14 15:39:18 +00004256 done
vapier6acb2cf2009-01-28 04:46:28 +00004257IFS=$as_save_IFS
4258
4259fi
4260fi
4261ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4262if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004264$as_echo "$ac_ct_OBJDUMP" >&6; }
4265else
drhf922ca42015-05-14 15:39:18 +00004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004267$as_echo "no" >&6; }
4268fi
4269
4270 if test "x$ac_ct_OBJDUMP" = x; then
4271 OBJDUMP="false"
4272 else
4273 case $cross_compiling:$ac_tool_warned in
4274yes:)
drhf922ca42015-05-14 15:39:18 +00004275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004277ac_tool_warned=yes ;;
4278esac
4279 OBJDUMP=$ac_ct_OBJDUMP
4280 fi
4281else
4282 OBJDUMP="$ac_cv_prog_OBJDUMP"
4283fi
4284
4285test -z "$OBJDUMP" && OBJDUMP=objdump
4286
4287
4288
4289
4290
4291
4292
4293
mlcreech636a9952008-05-05 22:52:56 +00004294
drhf922ca42015-05-14 15:39:18 +00004295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004296$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004297if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004298 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004299else
4300 lt_cv_file_magic_cmd='$MAGIC_CMD'
4301lt_cv_file_magic_test_file=
4302lt_cv_deplibs_check_method='unknown'
4303# Need to set the preceding variable on all platforms that support
4304# interlibrary dependencies.
4305# 'none' -- dependencies not supported.
4306# `unknown' -- same as none, but documents that we really don't know.
4307# 'pass_all' -- all dependencies passed with no checks.
4308# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004309# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004310# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004311# If you have `file' or equivalent on your system and you're not sure
4312# whether `pass_all' will *always* work, you probably want this one.
4313
4314case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004315aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004316 lt_cv_deplibs_check_method=pass_all
4317 ;;
4318
4319beos*)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322
vapier7f19c022007-02-17 14:46:31 +00004323bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4325 lt_cv_file_magic_cmd='/usr/bin/file -L'
4326 lt_cv_file_magic_test_file=/shlib/libc.so
4327 ;;
4328
a.rottmann9bc8b932004-02-29 15:18:31 +00004329cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004330 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004332 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004333 ;;
4334
4335mingw* | pw32*)
4336 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004337 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4338 # unless we find 'file', for example because we are cross-compiling.
4339 if ( file / ) >/dev/null 2>&1; then
4340 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4341 lt_cv_file_magic_cmd='func_win32_libid'
4342 else
4343 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4344 lt_cv_file_magic_cmd='$OBJDUMP -f'
4345 fi
drh71eb93e2001-09-28 01:34:43 +00004346 ;;
4347
vapier6acb2cf2009-01-28 04:46:28 +00004348cegcc)
4349 # use the weaker test based on 'objdump'. See mingw*.
4350 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4351 lt_cv_file_magic_cmd='$OBJDUMP -f'
4352 ;;
4353
drh71eb93e2001-09-28 01:34:43 +00004354darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004355 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004356 ;;
4357
mlcreech636a9952008-05-05 22:52:56 +00004358freebsd* | dragonfly*)
4359 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004360 case $host_cpu in
4361 i*86 )
4362 # Not sure whether the presence of OpenBSD here was a mistake.
4363 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004364 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 +00004365 lt_cv_file_magic_cmd=/usr/bin/file
4366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4367 ;;
4368 esac
4369 else
4370 lt_cv_deplibs_check_method=pass_all
4371 fi
4372 ;;
4373
4374gnu*)
4375 lt_cv_deplibs_check_method=pass_all
4376 ;;
4377
a.rottmann9bc8b932004-02-29 15:18:31 +00004378hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004379 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004380 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004381 ia64*)
4382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4383 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4384 ;;
4385 hppa*64*)
4386 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]'
4387 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4388 ;;
4389 *)
4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4391 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4392 ;;
4393 esac
drh71eb93e2001-09-28 01:34:43 +00004394 ;;
4395
mlcreech636a9952008-05-05 22:52:56 +00004396interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004397 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4399 ;;
4400
a.rottmann84e63352003-03-24 09:42:16 +00004401irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004402 case $LD in
4403 *-32|*"-32 ") libmagic=32-bit;;
4404 *-n32|*"-n32 ") libmagic=N32;;
4405 *-64|*"-64 ") libmagic=64-bit;;
4406 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004407 esac
drh71eb93e2001-09-28 01:34:43 +00004408 lt_cv_deplibs_check_method=pass_all
4409 ;;
4410
4411# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004412linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004413 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004414 ;;
4415
vapier7f19c022007-02-17 14:46:31 +00004416netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004419 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004421 fi
4422 ;;
4423
4424newos6*)
4425 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4426 lt_cv_file_magic_cmd=/usr/bin/file
4427 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4428 ;;
4429
mlcreech636a9952008-05-05 22:52:56 +00004430*nto* | *qnx*)
4431 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004432 ;;
4433
a.rottmann84e63352003-03-24 09:42:16 +00004434openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004437 else
vapier7f19c022007-02-17 14:46:31 +00004438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004439 fi
drh71eb93e2001-09-28 01:34:43 +00004440 ;;
4441
4442osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004443 lt_cv_deplibs_check_method=pass_all
4444 ;;
4445
mlcreech636a9952008-05-05 22:52:56 +00004446rdos*)
4447 lt_cv_deplibs_check_method=pass_all
4448 ;;
4449
drh71eb93e2001-09-28 01:34:43 +00004450solaris*)
4451 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004452 ;;
4453
mlcreech636a9952008-05-05 22:52:56 +00004454sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4455 lt_cv_deplibs_check_method=pass_all
4456 ;;
4457
vapier7f19c022007-02-17 14:46:31 +00004458sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004459 case $host_vendor in
4460 motorola)
4461 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]'
4462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4463 ;;
4464 ncr)
4465 lt_cv_deplibs_check_method=pass_all
4466 ;;
4467 sequent)
4468 lt_cv_file_magic_cmd='/bin/file'
4469 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4470 ;;
4471 sni)
4472 lt_cv_file_magic_cmd='/bin/file'
4473 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4474 lt_cv_file_magic_test_file=/lib/libc.so
4475 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004476 siemens)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
vapier7f19c022007-02-17 14:46:31 +00004479 pc)
4480 lt_cv_deplibs_check_method=pass_all
4481 ;;
drh71eb93e2001-09-28 01:34:43 +00004482 esac
4483 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004484
mlcreech636a9952008-05-05 22:52:56 +00004485tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004486 lt_cv_deplibs_check_method=pass_all
4487 ;;
drh71eb93e2001-09-28 01:34:43 +00004488esac
4489
4490fi
drhf922ca42015-05-14 15:39:18 +00004491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004492$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004493file_magic_cmd=$lt_cv_file_magic_cmd
4494deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004495test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004496
drh71eb93e2001-09-28 01:34:43 +00004497
drh71eb93e2001-09-28 01:34:43 +00004498
drh71eb93e2001-09-28 01:34:43 +00004499
mlcreech636a9952008-05-05 22:52:56 +00004500
4501
4502
4503
4504
4505
4506
4507
4508if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4510set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004512$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004513if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004514 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004515else
4516 if test -n "$AR"; then
4517 ac_cv_prog_AR="$AR" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004526 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004528 break 2
4529 fi
4530done
drhf922ca42015-05-14 15:39:18 +00004531 done
drh8b727472009-01-19 18:18:40 +00004532IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004533
4534fi
4535fi
4536AR=$ac_cv_prog_AR
4537if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004539$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004540else
drhf922ca42015-05-14 15:39:18 +00004541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004542$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004543fi
4544
drh8b727472009-01-19 18:18:40 +00004545
mlcreech636a9952008-05-05 22:52:56 +00004546fi
4547if test -z "$ac_cv_prog_AR"; then
4548 ac_ct_AR=$AR
4549 # Extract the first word of "ar", so it can be a program name with args.
4550set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004552$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004553if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004554 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004555else
4556 if test -n "$ac_ct_AR"; then
4557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004566 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004568 break 2
4569 fi
4570done
drhf922ca42015-05-14 15:39:18 +00004571 done
drh8b727472009-01-19 18:18:40 +00004572IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004573
4574fi
4575fi
4576ac_ct_AR=$ac_cv_prog_ac_ct_AR
4577if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004579$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004580else
drhf922ca42015-05-14 15:39:18 +00004581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004582$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004583fi
4584
drh8b727472009-01-19 18:18:40 +00004585 if test "x$ac_ct_AR" = x; then
4586 AR="false"
4587 else
4588 case $cross_compiling:$ac_tool_warned in
4589yes:)
drhf922ca42015-05-14 15:39:18 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004592ac_tool_warned=yes ;;
4593esac
4594 AR=$ac_ct_AR
4595 fi
mlcreech636a9952008-05-05 22:52:56 +00004596else
4597 AR="$ac_cv_prog_AR"
4598fi
4599
4600test -z "$AR" && AR=ar
4601test -z "$AR_FLAGS" && AR_FLAGS=cru
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613if test -n "$ac_tool_prefix"; then
4614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4615set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004617$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004618if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004619 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004620else
4621 if test -n "$STRIP"; then
4622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004631 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004633 break 2
4634 fi
4635done
drhf922ca42015-05-14 15:39:18 +00004636 done
drh8b727472009-01-19 18:18:40 +00004637IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004638
4639fi
4640fi
4641STRIP=$ac_cv_prog_STRIP
4642if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004644$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004645else
drhf922ca42015-05-14 15:39:18 +00004646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004647$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004648fi
4649
drh8b727472009-01-19 18:18:40 +00004650
mlcreech636a9952008-05-05 22:52:56 +00004651fi
4652if test -z "$ac_cv_prog_STRIP"; then
4653 ac_ct_STRIP=$STRIP
4654 # Extract the first word of "strip", so it can be a program name with args.
4655set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004657$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004658if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004659 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004660else
4661 if test -n "$ac_ct_STRIP"; then
4662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004671 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004673 break 2
4674 fi
4675done
drhf922ca42015-05-14 15:39:18 +00004676 done
drh8b727472009-01-19 18:18:40 +00004677IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004678
4679fi
4680fi
4681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4682if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004684$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004685else
drhf922ca42015-05-14 15:39:18 +00004686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004687$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004688fi
4689
drh8b727472009-01-19 18:18:40 +00004690 if test "x$ac_ct_STRIP" = x; then
4691 STRIP=":"
4692 else
4693 case $cross_compiling:$ac_tool_warned in
4694yes:)
drhf922ca42015-05-14 15:39:18 +00004695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004697ac_tool_warned=yes ;;
4698esac
4699 STRIP=$ac_ct_STRIP
4700 fi
mlcreech636a9952008-05-05 22:52:56 +00004701else
4702 STRIP="$ac_cv_prog_STRIP"
4703fi
4704
4705test -z "$STRIP" && STRIP=:
4706
4707
4708
4709
4710
4711
4712if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004716$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004717if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004718 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004719else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722else
4723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004732 break 2
4733 fi
4734done
drhf922ca42015-05-14 15:39:18 +00004735 done
drh8b727472009-01-19 18:18:40 +00004736IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004737
4738fi
4739fi
4740RANLIB=$ac_cv_prog_RANLIB
4741if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004743$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004744else
drhf922ca42015-05-14 15:39:18 +00004745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004746$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004747fi
4748
drh8b727472009-01-19 18:18:40 +00004749
mlcreech636a9952008-05-05 22:52:56 +00004750fi
4751if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004756$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004758 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004759else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004770 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004772 break 2
4773 fi
4774done
drhf922ca42015-05-14 15:39:18 +00004775 done
drh8b727472009-01-19 18:18:40 +00004776IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004777
4778fi
4779fi
4780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004783$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004784else
drhf922ca42015-05-14 15:39:18 +00004785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004786$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004787fi
4788
drh8b727472009-01-19 18:18:40 +00004789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB=":"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793yes:)
drhf922ca42015-05-14 15:39:18 +00004794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004796ac_tool_warned=yes ;;
4797esac
4798 RANLIB=$ac_ct_RANLIB
4799 fi
mlcreech636a9952008-05-05 22:52:56 +00004800else
4801 RANLIB="$ac_cv_prog_RANLIB"
4802fi
4803
4804test -z "$RANLIB" && RANLIB=:
4805
4806
4807
4808
4809
4810
4811# Determine commands to create old-style static archives.
4812old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4813old_postinstall_cmds='chmod 644 $oldlib'
4814old_postuninstall_cmds=
4815
4816if test -n "$RANLIB"; then
4817 case $host_os in
4818 openbsd*)
4819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4820 ;;
4821 *)
4822 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4823 ;;
4824 esac
4825 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4826fi
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
a.rottmann9bc8b932004-02-29 15:18:31 +00004861# If no C compiler was specified, use CC.
4862LTCC=${LTCC-"$CC"}
4863
vapier7f19c022007-02-17 14:46:31 +00004864# If no C compiler flags were specified, use CFLAGS.
4865LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4866
a.rottmann9bc8b932004-02-29 15:18:31 +00004867# Allow CC to be a program name with arguments.
4868compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004869
drh71eb93e2001-09-28 01:34:43 +00004870
mlcreech636a9952008-05-05 22:52:56 +00004871# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004873$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004874if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004875 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004876else
4877
4878# These are sane defaults that work on at least a few old systems.
4879# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4880
4881# Character class describing NM global symbol codes.
4882symcode='[BCDEGRST]'
4883
4884# Regexp to match symbols that can be accessed directly from C.
4885sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4886
4887# Define system-specific variables.
4888case $host_os in
4889aix*)
4890 symcode='[BCDT]'
4891 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004892cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004893 symcode='[ABCDGISTW]'
4894 ;;
4895hpux*)
4896 if test "$host_cpu" = ia64; then
4897 symcode='[ABCDEGRST]'
4898 fi
4899 ;;
4900irix* | nonstopux*)
4901 symcode='[BCDEGRST]'
4902 ;;
4903osf*)
4904 symcode='[BCDEGQRST]'
4905 ;;
4906solaris*)
4907 symcode='[BDRT]'
4908 ;;
4909sco3.2v5*)
4910 symcode='[DT]'
4911 ;;
4912sysv4.2uw2*)
4913 symcode='[DT]'
4914 ;;
4915sysv5* | sco5v6* | unixware* | OpenUNIX*)
4916 symcode='[ABDT]'
4917 ;;
4918sysv4)
4919 symcode='[DFNSTU]'
4920 ;;
4921esac
4922
4923# If we're using GNU nm, then use its standard symbol codes.
4924case `$NM -V 2>&1` in
4925*GNU* | *'with BFD'*)
4926 symcode='[ABCDGIRSTW]' ;;
4927esac
4928
4929# Transform an extracted symbol line into a proper C declaration.
4930# Some systems (esp. on ia64) link data and code symbols differently,
4931# so use this general approach.
4932lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4933
4934# Transform an extracted symbol line into symbol name and symbol address
4935lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4936lt_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'"
4937
4938# Handle CRLF in mingw tool chain
4939opt_cr=
4940case $build_os in
4941mingw*)
4942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4943 ;;
4944esac
4945
4946# Try without a prefix underscore, then with it.
4947for ac_symprfx in "" "_"; do
4948
4949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4950 symxfrm="\\1 $ac_symprfx\\2 \\2"
4951
4952 # Write the raw and C identifiers.
4953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4954 # Fake it for dumpbin and say T for any non-static function
4955 # and D for any global variable.
4956 # Also find C++ and __fastcall symbols from MSVC++,
4957 # which start with @ or ?.
4958 lt_cv_sys_global_symbol_pipe="$AWK '"\
4959" {last_section=section; section=\$ 3};"\
4960" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4961" \$ 0!~/External *\|/{next};"\
4962" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4963" {if(hide[section]) next};"\
4964" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4965" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4966" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4967" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4968" ' prfx=^$ac_symprfx"
4969 else
4970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4971 fi
4972
4973 # Check to see that the pipe works correctly.
4974 pipe_works=no
4975
4976 rm -f conftest*
4977 cat > conftest.$ac_ext <<_LT_EOF
4978#ifdef __cplusplus
4979extern "C" {
4980#endif
4981char nm_test_var;
4982void nm_test_func(void);
4983void nm_test_func(void){}
4984#ifdef __cplusplus
4985}
4986#endif
4987int main(){nm_test_var='a';nm_test_func();return(0);}
4988_LT_EOF
4989
drhf922ca42015-05-14 15:39:18 +00004990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004991 (eval $ac_compile) 2>&5
4992 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4994 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004995 # Now try to grab the symbols.
4996 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4999 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5001 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005002 # Try sorting and uniquifying the output.
5003 if sort "$nlist" | uniq > "$nlist"T; then
5004 mv -f "$nlist"T "$nlist"
5005 else
5006 rm -f "$nlist"T
5007 fi
5008
5009 # Make sure that we snagged all the symbols we need.
5010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5012 cat <<_LT_EOF > conftest.$ac_ext
5013#ifdef __cplusplus
5014extern "C" {
5015#endif
5016
5017_LT_EOF
5018 # Now generate the symbol file.
5019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5020
5021 cat <<_LT_EOF >> conftest.$ac_ext
5022
5023/* The mapping between symbol names and symbols. */
5024const struct {
5025 const char *name;
5026 void *address;
5027}
5028lt__PROGRAM__LTX_preloaded_symbols[] =
5029{
5030 { "@PROGRAM@", (void *) 0 },
5031_LT_EOF
5032 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5033 cat <<\_LT_EOF >> conftest.$ac_ext
5034 {0, (void *) 0}
5035};
5036
5037/* This works around a problem in FreeBSD linker */
5038#ifdef FREEBSD_WORKAROUND
5039static const void *lt_preloaded_setup() {
5040 return lt__PROGRAM__LTX_preloaded_symbols;
5041}
5042#endif
5043
5044#ifdef __cplusplus
5045}
5046#endif
5047_LT_EOF
5048 # Now try linking the two files.
5049 mv conftest.$ac_objext conftstm.$ac_objext
5050 lt_save_LIBS="$LIBS"
5051 lt_save_CFLAGS="$CFLAGS"
5052 LIBS="conftstm.$ac_objext"
5053 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005055 (eval $ac_link) 2>&5
5056 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5058 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005059 pipe_works=yes
5060 fi
5061 LIBS="$lt_save_LIBS"
5062 CFLAGS="$lt_save_CFLAGS"
5063 else
5064 echo "cannot find nm_test_func in $nlist" >&5
5065 fi
5066 else
5067 echo "cannot find nm_test_var in $nlist" >&5
5068 fi
5069 else
5070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5071 fi
5072 else
5073 echo "$progname: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5075 fi
5076 rm -rf conftest* conftst*
5077
5078 # Do not use the global_symbol_pipe unless it works.
5079 if test "$pipe_works" = yes; then
5080 break
5081 else
5082 lt_cv_sys_global_symbol_pipe=
5083 fi
5084done
5085
5086fi
5087
5088if test -z "$lt_cv_sys_global_symbol_pipe"; then
5089 lt_cv_sys_global_symbol_to_cdecl=
5090fi
5091if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005093$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005094else
drhf922ca42015-05-14 15:39:18 +00005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005096$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005097fi
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
drh8b727472009-01-19 18:18:40 +00005121# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005122if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005123 enableval=$enable_libtool_lock;
5124fi
drh71eb93e2001-09-28 01:34:43 +00005125
a.rottmann9bc8b932004-02-29 15:18:31 +00005126test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005127
a.rottmann9bc8b932004-02-29 15:18:31 +00005128# Some flags need to be propagated to the compiler or linker for good
5129# libtool support.
5130case $host in
5131ia64-*-hpux*)
5132 # Find out which ABI we are using.
5133 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005135 (eval $ac_compile) 2>&5
5136 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5138 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005139 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005140 *ELF-32*)
5141 HPUX_IA64_MODE="32"
5142 ;;
5143 *ELF-64*)
5144 HPUX_IA64_MODE="64"
5145 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005146 esac
5147 fi
5148 rm -rf conftest*
5149 ;;
5150*-*-irix6*)
5151 # Find out which ABI we are using.
drhe2ce8c42020-12-07 21:19:17 +00005152 echo '#line 5152 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005154 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005155 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5157 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005158 if test "$lt_cv_prog_gnu_ld" = yes; then
5159 case `/usr/bin/file conftest.$ac_objext` in
5160 *32-bit*)
5161 LD="${LD-ld} -melf32bsmip"
5162 ;;
5163 *N32*)
5164 LD="${LD-ld} -melf32bmipn32"
5165 ;;
5166 *64-bit*)
5167 LD="${LD-ld} -melf64bmip"
5168 ;;
5169 esac
5170 else
5171 case `/usr/bin/file conftest.$ac_objext` in
5172 *32-bit*)
5173 LD="${LD-ld} -32"
5174 ;;
5175 *N32*)
5176 LD="${LD-ld} -n32"
5177 ;;
5178 *64-bit*)
5179 LD="${LD-ld} -64"
5180 ;;
5181 esac
5182 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005183 fi
5184 rm -rf conftest*
5185 ;;
drh71eb93e2001-09-28 01:34:43 +00005186
mlcreech636a9952008-05-05 22:52:56 +00005187x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5188s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005189 # Find out which ABI we are using.
5190 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005192 (eval $ac_compile) 2>&5
5193 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5195 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005196 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005197 *32-bit*)
5198 case $host in
5199 x86_64-*kfreebsd*-gnu)
5200 LD="${LD-ld} -m elf_i386_fbsd"
5201 ;;
5202 x86_64-*linux*)
5203 LD="${LD-ld} -m elf_i386"
5204 ;;
5205 ppc64-*linux*|powerpc64-*linux*)
5206 LD="${LD-ld} -m elf32ppclinux"
5207 ;;
5208 s390x-*linux*)
5209 LD="${LD-ld} -m elf_s390"
5210 ;;
5211 sparc64-*linux*)
5212 LD="${LD-ld} -m elf32_sparc"
5213 ;;
5214 esac
5215 ;;
5216 *64-bit*)
5217 case $host in
5218 x86_64-*kfreebsd*-gnu)
5219 LD="${LD-ld} -m elf_x86_64_fbsd"
5220 ;;
5221 x86_64-*linux*)
5222 LD="${LD-ld} -m elf_x86_64"
5223 ;;
5224 ppc*-*linux*|powerpc*-*linux*)
5225 LD="${LD-ld} -m elf64ppc"
5226 ;;
5227 s390*-*linux*|s390*-*tpf*)
5228 LD="${LD-ld} -m elf64_s390"
5229 ;;
5230 sparc*-*linux*)
5231 LD="${LD-ld} -m elf64_sparc"
5232 ;;
5233 esac
5234 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005235 esac
5236 fi
5237 rm -rf conftest*
5238 ;;
drh71eb93e2001-09-28 01:34:43 +00005239
a.rottmann9bc8b932004-02-29 15:18:31 +00005240*-*-sco3.2v5*)
5241 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5242 SAVE_CFLAGS="$CFLAGS"
5243 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005245$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005246if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005247 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005248else
5249 ac_ext=c
5250ac_cpp='$CPP $CPPFLAGS'
5251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005254
drhf922ca42015-05-14 15:39:18 +00005255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005256/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005257
a.rottmann9bc8b932004-02-29 15:18:31 +00005258int
5259main ()
drh71eb93e2001-09-28 01:34:43 +00005260{
drh71eb93e2001-09-28 01:34:43 +00005261
a.rottmann9bc8b932004-02-29 15:18:31 +00005262 ;
5263 return 0;
drh71eb93e2001-09-28 01:34:43 +00005264}
a.rottmann9bc8b932004-02-29 15:18:31 +00005265_ACEOF
drhf922ca42015-05-14 15:39:18 +00005266if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005267 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005268else
drhf922ca42015-05-14 15:39:18 +00005269 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005270fi
drhf922ca42015-05-14 15:39:18 +00005271rm -f core conftest.err conftest.$ac_objext \
5272 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005273 ac_ext=c
5274ac_cpp='$CPP $CPPFLAGS'
5275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
drh71eb93e2001-09-28 01:34:43 +00005279fi
drhf922ca42015-05-14 15:39:18 +00005280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005281$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005282 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5283 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5284 CFLAGS="$SAVE_CFLAGS"
5285 fi
5286 ;;
vapier7f19c022007-02-17 14:46:31 +00005287sparc*-*solaris*)
5288 # Find out which ABI we are using.
5289 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005291 (eval $ac_compile) 2>&5
5292 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005295 case `/usr/bin/file conftest.o` in
5296 *64-bit*)
5297 case $lt_cv_prog_gnu_ld in
5298 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005299 *)
5300 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5301 LD="${LD-ld} -64"
5302 fi
5303 ;;
vapier7f19c022007-02-17 14:46:31 +00005304 esac
5305 ;;
5306 esac
5307 fi
5308 rm -rf conftest*
5309 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005310esac
5311
5312need_locks="$enable_libtool_lock"
5313
drh71eb93e2001-09-28 01:34:43 +00005314
mlcreech636a9952008-05-05 22:52:56 +00005315 case $host_os in
5316 rhapsody* | darwin*)
5317 if test -n "$ac_tool_prefix"; then
5318 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5319set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005321$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005322if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005323 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005324else
5325 if test -n "$DSYMUTIL"; then
5326 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331 IFS=$as_save_IFS
5332 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005333 for ac_exec_ext in '' $ac_executable_extensions; do
5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005335 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005337 break 2
5338 fi
5339done
drhf922ca42015-05-14 15:39:18 +00005340 done
drh8b727472009-01-19 18:18:40 +00005341IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005342
5343fi
5344fi
5345DSYMUTIL=$ac_cv_prog_DSYMUTIL
5346if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005348$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005349else
drhf922ca42015-05-14 15:39:18 +00005350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005351$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005352fi
5353
drh8b727472009-01-19 18:18:40 +00005354
mlcreech636a9952008-05-05 22:52:56 +00005355fi
5356if test -z "$ac_cv_prog_DSYMUTIL"; then
5357 ac_ct_DSYMUTIL=$DSYMUTIL
5358 # Extract the first word of "dsymutil", so it can be a program name with args.
5359set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005361$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005362if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005363 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005364else
5365 if test -n "$ac_ct_DSYMUTIL"; then
5366 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5367else
5368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369for as_dir in $PATH
5370do
5371 IFS=$as_save_IFS
5372 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005375 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005377 break 2
5378 fi
5379done
drhf922ca42015-05-14 15:39:18 +00005380 done
drh8b727472009-01-19 18:18:40 +00005381IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005382
5383fi
5384fi
5385ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5386if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005388$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005389else
drhf922ca42015-05-14 15:39:18 +00005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005391$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005392fi
5393
drh8b727472009-01-19 18:18:40 +00005394 if test "x$ac_ct_DSYMUTIL" = x; then
5395 DSYMUTIL=":"
5396 else
5397 case $cross_compiling:$ac_tool_warned in
5398yes:)
drhf922ca42015-05-14 15:39:18 +00005399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005401ac_tool_warned=yes ;;
5402esac
5403 DSYMUTIL=$ac_ct_DSYMUTIL
5404 fi
mlcreech636a9952008-05-05 22:52:56 +00005405else
5406 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5407fi
5408
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5411set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005413$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005414if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005415 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005416else
5417 if test -n "$NMEDIT"; then
5418 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005427 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005429 break 2
5430 fi
5431done
drhf922ca42015-05-14 15:39:18 +00005432 done
drh8b727472009-01-19 18:18:40 +00005433IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005434
5435fi
5436fi
5437NMEDIT=$ac_cv_prog_NMEDIT
5438if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005440$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005441else
drhf922ca42015-05-14 15:39:18 +00005442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005443$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005444fi
5445
drh8b727472009-01-19 18:18:40 +00005446
mlcreech636a9952008-05-05 22:52:56 +00005447fi
5448if test -z "$ac_cv_prog_NMEDIT"; then
5449 ac_ct_NMEDIT=$NMEDIT
5450 # Extract the first word of "nmedit", so it can be a program name with args.
5451set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005453$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005454if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005455 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005456else
5457 if test -n "$ac_ct_NMEDIT"; then
5458 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005467 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005469 break 2
5470 fi
5471done
drhf922ca42015-05-14 15:39:18 +00005472 done
drh8b727472009-01-19 18:18:40 +00005473IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005474
5475fi
5476fi
5477ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5478if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005480$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005481else
drhf922ca42015-05-14 15:39:18 +00005482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005483$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005484fi
5485
drh8b727472009-01-19 18:18:40 +00005486 if test "x$ac_ct_NMEDIT" = x; then
5487 NMEDIT=":"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
drhf922ca42015-05-14 15:39:18 +00005491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005493ac_tool_warned=yes ;;
5494esac
5495 NMEDIT=$ac_ct_NMEDIT
5496 fi
mlcreech636a9952008-05-05 22:52:56 +00005497else
5498 NMEDIT="$ac_cv_prog_NMEDIT"
5499fi
5500
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5503set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005505$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005506if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005507 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005508else
5509 if test -n "$LIPO"; then
5510 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005519 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005521 break 2
5522 fi
5523done
drhf922ca42015-05-14 15:39:18 +00005524 done
drh8b727472009-01-19 18:18:40 +00005525IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005526
5527fi
5528fi
5529LIPO=$ac_cv_prog_LIPO
5530if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005532$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005533else
drhf922ca42015-05-14 15:39:18 +00005534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005535$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005536fi
5537
drh8b727472009-01-19 18:18:40 +00005538
mlcreech636a9952008-05-05 22:52:56 +00005539fi
5540if test -z "$ac_cv_prog_LIPO"; then
5541 ac_ct_LIPO=$LIPO
5542 # Extract the first word of "lipo", so it can be a program name with args.
5543set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005545$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005546if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005547 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005548else
5549 if test -n "$ac_ct_LIPO"; then
5550 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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=.
drhf922ca42015-05-14 15:39:18 +00005557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005559 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005561 break 2
5562 fi
5563done
drhf922ca42015-05-14 15:39:18 +00005564 done
drh8b727472009-01-19 18:18:40 +00005565IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005566
5567fi
5568fi
5569ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5570if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005572$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005573else
drhf922ca42015-05-14 15:39:18 +00005574 { $as_echo "$as_me:${as_lineno-$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 if test "x$ac_ct_LIPO" = x; then
5579 LIPO=":"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
drhf922ca42015-05-14 15:39:18 +00005583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005585ac_tool_warned=yes ;;
5586esac
5587 LIPO=$ac_ct_LIPO
5588 fi
mlcreech636a9952008-05-05 22:52:56 +00005589else
5590 LIPO="$ac_cv_prog_LIPO"
5591fi
5592
5593 if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005597$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005598if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005599 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005600else
5601 if test -n "$OTOOL"; then
5602 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005611 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005613 break 2
5614 fi
5615done
drhf922ca42015-05-14 15:39:18 +00005616 done
drh8b727472009-01-19 18:18:40 +00005617IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005618
5619fi
5620fi
5621OTOOL=$ac_cv_prog_OTOOL
5622if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005624$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005625else
drhf922ca42015-05-14 15:39:18 +00005626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005627$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005628fi
5629
drh8b727472009-01-19 18:18:40 +00005630
mlcreech636a9952008-05-05 22:52:56 +00005631fi
5632if test -z "$ac_cv_prog_OTOOL"; then
5633 ac_ct_OTOOL=$OTOOL
5634 # Extract the first word of "otool", so it can be a program name with args.
5635set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005637$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005638if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005639 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005640else
5641 if test -n "$ac_ct_OTOOL"; then
5642 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005651 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005653 break 2
5654 fi
5655done
drhf922ca42015-05-14 15:39:18 +00005656 done
drh8b727472009-01-19 18:18:40 +00005657IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005658
5659fi
5660fi
5661ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5662if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005664$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005665else
drhf922ca42015-05-14 15:39:18 +00005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005667$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005668fi
5669
drh8b727472009-01-19 18:18:40 +00005670 if test "x$ac_ct_OTOOL" = x; then
5671 OTOOL=":"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
drhf922ca42015-05-14 15:39:18 +00005675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005677ac_tool_warned=yes ;;
5678esac
5679 OTOOL=$ac_ct_OTOOL
5680 fi
mlcreech636a9952008-05-05 22:52:56 +00005681else
5682 OTOOL="$ac_cv_prog_OTOOL"
5683fi
5684
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5687set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005689$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005690if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005691 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005692else
5693 if test -n "$OTOOL64"; then
5694 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005703 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005705 break 2
5706 fi
5707done
drhf922ca42015-05-14 15:39:18 +00005708 done
drh8b727472009-01-19 18:18:40 +00005709IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005710
5711fi
5712fi
5713OTOOL64=$ac_cv_prog_OTOOL64
5714if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005716$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005717else
drhf922ca42015-05-14 15:39:18 +00005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005719$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005720fi
5721
drh8b727472009-01-19 18:18:40 +00005722
mlcreech636a9952008-05-05 22:52:56 +00005723fi
5724if test -z "$ac_cv_prog_OTOOL64"; then
5725 ac_ct_OTOOL64=$OTOOL64
5726 # Extract the first word of "otool64", so it can be a program name with args.
5727set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005729$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005730if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005731 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005732else
5733 if test -n "$ac_ct_OTOOL64"; then
5734 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5735else
5736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737for as_dir in $PATH
5738do
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005743 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005745 break 2
5746 fi
5747done
drhf922ca42015-05-14 15:39:18 +00005748 done
drh8b727472009-01-19 18:18:40 +00005749IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005750
5751fi
5752fi
5753ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5754if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005756$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005757else
drhf922ca42015-05-14 15:39:18 +00005758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005759$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005760fi
5761
drh8b727472009-01-19 18:18:40 +00005762 if test "x$ac_ct_OTOOL64" = x; then
5763 OTOOL64=":"
5764 else
5765 case $cross_compiling:$ac_tool_warned in
5766yes:)
drhf922ca42015-05-14 15:39:18 +00005767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005769ac_tool_warned=yes ;;
5770esac
5771 OTOOL64=$ac_ct_OTOOL64
5772 fi
mlcreech636a9952008-05-05 22:52:56 +00005773else
5774 OTOOL64="$ac_cv_prog_OTOOL64"
5775fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
drhf922ca42015-05-14 15:39:18 +00005803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005804$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005805if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005806 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005807else
5808 lt_cv_apple_cc_single_mod=no
5809 if test -z "${LT_MULTI_MODULE}"; then
5810 # By default we will add the -single_module flag. You can override
5811 # by either setting the environment variable LT_MULTI_MODULE
5812 # non-empty at configure time, or by adding -multi_module to the
5813 # link flags.
5814 rm -rf libconftest.dylib*
5815 echo "int foo(void){return 1;}" > conftest.c
5816 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5817-dynamiclib -Wl,-single_module conftest.c" >&5
5818 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5819 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5820 _lt_result=$?
5821 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5822 lt_cv_apple_cc_single_mod=yes
5823 else
5824 cat conftest.err >&5
5825 fi
5826 rm -rf libconftest.dylib*
5827 rm -f conftest.*
5828 fi
5829fi
drhf922ca42015-05-14 15:39:18 +00005830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005831$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005833$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005834if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005835 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005836else
5837 lt_cv_ld_exported_symbols_list=no
5838 save_LDFLAGS=$LDFLAGS
5839 echo "_main" > conftest.sym
5840 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005842/* end confdefs.h. */
5843
5844int
5845main ()
5846{
5847
5848 ;
5849 return 0;
5850}
5851_ACEOF
drhf922ca42015-05-14 15:39:18 +00005852if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005853 lt_cv_ld_exported_symbols_list=yes
5854else
drhf922ca42015-05-14 15:39:18 +00005855 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005856fi
drhf922ca42015-05-14 15:39:18 +00005857rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005859 LDFLAGS="$save_LDFLAGS"
5860
5861fi
drhf922ca42015-05-14 15:39:18 +00005862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005863$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005864 case $host_os in
5865 rhapsody* | darwin1.[012])
5866 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5867 darwin1.*)
5868 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5869 darwin*) # darwin 5.x on
5870 # if running on 10.5 or later, the deployment target defaults
5871 # to the OS version, if on x86, and 10.4, the deployment
5872 # target defaults to 10.4. Don't you love it?
5873 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5874 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5875 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5876 10.[012]*)
5877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5878 10.*)
5879 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5880 esac
5881 ;;
5882 esac
5883 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5884 _lt_dar_single_mod='$single_module'
5885 fi
5886 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5887 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5888 else
5889 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5890 fi
5891 if test "$DSYMUTIL" != ":"; then
5892 _lt_dsymutil='~$DSYMUTIL $lib || :'
5893 else
5894 _lt_dsymutil=
5895 fi
5896 ;;
5897 esac
5898
a.rottmann84e63352003-03-24 09:42:16 +00005899ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005905$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005906# On Suns, sometimes $CPP names a directory.
5907if test -n "$CPP" && test -d "$CPP"; then
5908 CPP=
5909fi
5910if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005911 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005912 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005913else
a.rottmann84e63352003-03-24 09:42:16 +00005914 # Double quotes because CPP needs to be expanded
5915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5916 do
5917 ac_preproc_ok=false
5918for ac_c_preproc_warn_flag in '' yes
5919do
5920 # Use a header file that comes with gcc, so configuring glibc
5921 # with a fresh cross-compiler works.
5922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5923 # <limits.h> exists even on freestanding compilers.
5924 # On the NeXT, cc -E runs the code through the compiler's parser,
5925 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
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
drhf922ca42015-05-14 15:39:18 +00005935if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005936
drhf922ca42015-05-14 15:39:18 +00005937else
a.rottmann84e63352003-03-24 09:42:16 +00005938 # Broken: fails on valid input.
5939continue
5940fi
drhf922ca42015-05-14 15:39:18 +00005941rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005942
drh8b727472009-01-19 18:18:40 +00005943 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005944 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005946/* end confdefs.h. */
5947#include <ac_nonexistent.h>
5948_ACEOF
drhf922ca42015-05-14 15:39:18 +00005949if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005950 # Broken: success on invalid input.
5951continue
5952else
a.rottmann84e63352003-03-24 09:42:16 +00005953 # Passes both tests.
5954ac_preproc_ok=:
5955break
5956fi
drhf922ca42015-05-14 15:39:18 +00005957rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005958
5959done
5960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005961rm -f conftest.i conftest.err conftest.$ac_ext
5962if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005963 break
5964fi
5965
5966 done
5967 ac_cv_prog_CPP=$CPP
5968
5969fi
5970 CPP=$ac_cv_prog_CPP
5971else
5972 ac_cv_prog_CPP=$CPP
5973fi
drhf922ca42015-05-14 15:39:18 +00005974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005975$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005976ac_preproc_ok=false
5977for ac_c_preproc_warn_flag in '' yes
5978do
5979 # Use a header file that comes with gcc, so configuring glibc
5980 # with a fresh cross-compiler works.
5981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5982 # <limits.h> exists even on freestanding compilers.
5983 # On the NeXT, cc -E runs the code through the compiler's parser,
5984 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005986/* end confdefs.h. */
5987#ifdef __STDC__
5988# include <limits.h>
5989#else
5990# include <assert.h>
5991#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005992 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005993_ACEOF
drhf922ca42015-05-14 15:39:18 +00005994if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005995
drhf922ca42015-05-14 15:39:18 +00005996else
a.rottmann84e63352003-03-24 09:42:16 +00005997 # Broken: fails on valid input.
5998continue
5999fi
drhf922ca42015-05-14 15:39:18 +00006000rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006001
drh8b727472009-01-19 18:18:40 +00006002 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006003 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006005/* end confdefs.h. */
6006#include <ac_nonexistent.h>
6007_ACEOF
drhf922ca42015-05-14 15:39:18 +00006008if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006009 # Broken: success on invalid input.
6010continue
6011else
a.rottmann84e63352003-03-24 09:42:16 +00006012 # Passes both tests.
6013ac_preproc_ok=:
6014break
6015fi
drhf922ca42015-05-14 15:39:18 +00006016rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006017
6018done
6019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006020rm -f conftest.i conftest.err conftest.$ac_ext
6021if $ac_preproc_ok; then :
6022
a.rottmann84e63352003-03-24 09:42:16 +00006023else
drhf922ca42015-05-14 15:39:18 +00006024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6026as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6027See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006028fi
6029
6030ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036
drhf922ca42015-05-14 15:39:18 +00006037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006038$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006039if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006040 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006041else
drhf922ca42015-05-14 15:39:18 +00006042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006043/* end confdefs.h. */
6044#include <stdlib.h>
6045#include <stdarg.h>
6046#include <string.h>
6047#include <float.h>
6048
6049int
6050main ()
6051{
6052
6053 ;
6054 return 0;
6055}
6056_ACEOF
drhf922ca42015-05-14 15:39:18 +00006057if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006058 ac_cv_header_stdc=yes
6059else
drhf922ca42015-05-14 15:39:18 +00006060 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006061fi
drh8b727472009-01-19 18:18:40 +00006062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006063
6064if test $ac_cv_header_stdc = yes; then
6065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006067/* end confdefs.h. */
6068#include <string.h>
6069
6070_ACEOF
6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006072 $EGREP "memchr" >/dev/null 2>&1; then :
6073
a.rottmann84e63352003-03-24 09:42:16 +00006074else
6075 ac_cv_header_stdc=no
6076fi
6077rm -f conftest*
6078
6079fi
6080
6081if test $ac_cv_header_stdc = yes; then
6082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006084/* end confdefs.h. */
6085#include <stdlib.h>
6086
6087_ACEOF
6088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006089 $EGREP "free" >/dev/null 2>&1; then :
6090
a.rottmann84e63352003-03-24 09:42:16 +00006091else
6092 ac_cv_header_stdc=no
6093fi
6094rm -f conftest*
6095
6096fi
6097
6098if test $ac_cv_header_stdc = yes; then
6099 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006100 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006101 :
6102else
drhf922ca42015-05-14 15:39:18 +00006103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006104/* end confdefs.h. */
6105#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006106#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006107#if ((' ' & 0x0FF) == 0x020)
6108# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6109# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6110#else
6111# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006112 (('a' <= (c) && (c) <= 'i') \
6113 || ('j' <= (c) && (c) <= 'r') \
6114 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006115# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6116#endif
6117
6118#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6119int
6120main ()
6121{
6122 int i;
6123 for (i = 0; i < 256; i++)
6124 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006125 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006126 return 2;
6127 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006128}
6129_ACEOF
drhf922ca42015-05-14 15:39:18 +00006130if ac_fn_c_try_run "$LINENO"; then :
6131
a.rottmann84e63352003-03-24 09:42:16 +00006132else
drhf922ca42015-05-14 15:39:18 +00006133 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006134fi
drhf922ca42015-05-14 15:39:18 +00006135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6136 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006137fi
6138
a.rottmann84e63352003-03-24 09:42:16 +00006139fi
6140fi
drhf922ca42015-05-14 15:39:18 +00006141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006142$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006143if test $ac_cv_header_stdc = yes; then
6144
drhf922ca42015-05-14 15:39:18 +00006145$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006146
6147fi
6148
6149# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006150for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006151 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006152do :
6153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6155"
6156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006157 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006159_ACEOF
6160
6161fi
6162
6163done
6164
6165
a.rottmann84e63352003-03-24 09:42:16 +00006166for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006167do :
6168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6169"
6170if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006171 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006172#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006173_ACEOF
6174
6175fi
6176
drh71eb93e2001-09-28 01:34:43 +00006177done
6178
drh71eb93e2001-09-28 01:34:43 +00006179
drh71eb93e2001-09-28 01:34:43 +00006180
mlcreech636a9952008-05-05 22:52:56 +00006181# Set options
mlcreech94984912008-03-04 19:03:08 +00006182
drh71eb93e2001-09-28 01:34:43 +00006183
drh71eb93e2001-09-28 01:34:43 +00006184
mlcreech636a9952008-05-05 22:52:56 +00006185 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006186
a.rottmann9bc8b932004-02-29 15:18:31 +00006187
mlcreech636a9952008-05-05 22:52:56 +00006188 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006189
a.rottmann9bc8b932004-02-29 15:18:31 +00006190
drh8b727472009-01-19 18:18:40 +00006191 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006192if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006193 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006194 case $enableval in
6195 yes) enable_shared=yes ;;
6196 no) enable_shared=no ;;
6197 *)
6198 enable_shared=no
6199 # Look at the argument we got. We use all the common list separators.
6200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6201 for pkg in $enableval; do
6202 IFS="$lt_save_ifs"
6203 if test "X$pkg" = "X$p"; then
6204 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006205 fi
mlcreech636a9952008-05-05 22:52:56 +00006206 done
6207 IFS="$lt_save_ifs"
6208 ;;
6209 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006210else
mlcreech636a9952008-05-05 22:52:56 +00006211 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006212fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006213
mlcreech636a9952008-05-05 22:52:56 +00006214
6215
6216
6217
6218
6219
6220
drh8b727472009-01-19 18:18:40 +00006221
6222 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006223if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006224 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006225 case $enableval in
6226 yes) enable_static=yes ;;
6227 no) enable_static=no ;;
6228 *)
6229 enable_static=no
6230 # Look at the argument we got. We use all the common list separators.
6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232 for pkg in $enableval; do
6233 IFS="$lt_save_ifs"
6234 if test "X$pkg" = "X$p"; then
6235 enable_static=yes
6236 fi
6237 done
6238 IFS="$lt_save_ifs"
6239 ;;
6240 esac
6241else
6242 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006243fi
mlcreech636a9952008-05-05 22:52:56 +00006244
6245
6246
6247
6248
6249
6250
6251
6252
drh8b727472009-01-19 18:18:40 +00006253
6254# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006255if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006256 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006257else
6258 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006259fi
6260
mlcreech636a9952008-05-05 22:52:56 +00006261
6262test -z "$pic_mode" && pic_mode=default
6263
6264
6265
6266
6267
6268
6269
drh8b727472009-01-19 18:18:40 +00006270 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006271if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006272 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006273 case $enableval in
6274 yes) enable_fast_install=yes ;;
6275 no) enable_fast_install=no ;;
6276 *)
6277 enable_fast_install=no
6278 # Look at the argument we got. We use all the common list separators.
6279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6280 for pkg in $enableval; do
6281 IFS="$lt_save_ifs"
6282 if test "X$pkg" = "X$p"; then
6283 enable_fast_install=yes
6284 fi
6285 done
6286 IFS="$lt_save_ifs"
6287 ;;
6288 esac
6289else
6290 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006291fi
6292
mlcreech636a9952008-05-05 22:52:56 +00006293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303# This can be used to rebuild libtool when needed
6304LIBTOOL_DEPS="$ltmain"
6305
6306# Always use our own libtool.
6307LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333test -z "$LN_S" && LN_S="ln -s"
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348if test -n "${ZSH_VERSION+set}" ; then
6349 setopt NO_GLOB_SUBST
6350fi
6351
drhf922ca42015-05-14 15:39:18 +00006352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006353$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006354if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006355 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006356else
6357 rm -f .libs 2>/dev/null
6358mkdir .libs 2>/dev/null
6359if test -d .libs; then
6360 lt_cv_objdir=.libs
6361else
6362 # MS-DOS does not allow filenames that begin with a dot.
6363 lt_cv_objdir=_libs
6364fi
6365rmdir .libs 2>/dev/null
6366fi
drhf922ca42015-05-14 15:39:18 +00006367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006368$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006369objdir=$lt_cv_objdir
6370
6371
6372
6373
6374
mlcreech636a9952008-05-05 22:52:56 +00006375cat >>confdefs.h <<_ACEOF
6376#define LT_OBJDIR "$lt_cv_objdir/"
6377_ACEOF
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
a.rottmann9bc8b932004-02-29 15:18:31 +00006395case $host_os in
6396aix3*)
6397 # AIX sometimes has problems with the GCC collect2 program. For some
6398 # reason, if we set the COLLECT_NAMES environment variable, the problems
6399 # vanish in a puff of smoke.
6400 if test "X${COLLECT_NAMES+set}" != Xset; then
6401 COLLECT_NAMES=
6402 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006403 fi
6404 ;;
6405esac
6406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407# Sed substitution that helps us do robust quoting. It backslashifies
6408# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006409sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006410
6411# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006412double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006413
6414# Sed substitution to delay expansion of an escaped shell variable in a
6415# double_quote_subst'ed string.
6416delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417
mlcreech636a9952008-05-05 22:52:56 +00006418# Sed substitution to delay expansion of an escaped single quote.
6419delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6420
a.rottmann9bc8b932004-02-29 15:18:31 +00006421# Sed substitution to avoid accidental globbing in evaled expressions
6422no_glob_subst='s/\*/\\\*/g'
6423
a.rottmann9bc8b932004-02-29 15:18:31 +00006424# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006425ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006426can_build_shared=yes
6427
vapier7f19c022007-02-17 14:46:31 +00006428# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006429# which needs '.lib').
6430libext=a
mlcreech636a9952008-05-05 22:52:56 +00006431
a.rottmann9bc8b932004-02-29 15:18:31 +00006432with_gnu_ld="$lt_cv_prog_gnu_ld"
6433
a.rottmann84e63352003-03-24 09:42:16 +00006434old_CC="$CC"
6435old_CFLAGS="$CFLAGS"
6436
6437# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006438test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006439test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006440test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006441test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006442test -z "$ac_objext" && ac_objext=o
6443
vapier7f19c022007-02-17 14:46:31 +00006444for cc_temp in $compiler""; do
6445 case $cc_temp in
6446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6448 \-*) ;;
6449 *) break;;
6450 esac
6451done
mlcreech636a9952008-05-05 22:52:56 +00006452cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006453
6454
a.rottmann9bc8b932004-02-29 15:18:31 +00006455# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006456test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006457case $deplibs_check_method in
6458file_magic*)
6459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006461$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006462if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006463 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006464else
a.rottmann9bc8b932004-02-29 15:18:31 +00006465 case $MAGIC_CMD in
6466[\\/*] | ?:[\\/]*)
6467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6468 ;;
6469*)
6470 lt_save_MAGIC_CMD="$MAGIC_CMD"
6471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6473 for ac_dir in $ac_dummy; do
6474 IFS="$lt_save_ifs"
6475 test -z "$ac_dir" && ac_dir=.
6476 if test -f $ac_dir/${ac_tool_prefix}file; then
6477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6478 if test -n "$file_magic_test_file"; then
6479 case $deplibs_check_method in
6480 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6484 $EGREP "$file_magic_regex" > /dev/null; then
6485 :
6486 else
mlcreech636a9952008-05-05 22:52:56 +00006487 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006488
a.rottmann9bc8b932004-02-29 15:18:31 +00006489*** Warning: the command libtool uses to detect shared libraries,
6490*** $file_magic_cmd, produces output that libtool cannot recognize.
6491*** The result is that libtool may fail to recognize shared libraries
6492*** as such. This will affect the creation of libtool libraries that
6493*** depend on shared libraries, but programs linked with such libtool
6494*** libraries will work regardless of this problem. Nevertheless, you
6495*** may want to report the problem to your system manager and/or to
6496*** bug-libtool@gnu.org
6497
mlcreech636a9952008-05-05 22:52:56 +00006498_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006499 fi ;;
6500 esac
6501 fi
6502 break
6503 fi
6504 done
6505 IFS="$lt_save_ifs"
6506 MAGIC_CMD="$lt_save_MAGIC_CMD"
6507 ;;
6508esac
6509fi
6510
6511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6512if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006514$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006515else
drhf922ca42015-05-14 15:39:18 +00006516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006517$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006518fi
6519
mlcreech636a9952008-05-05 22:52:56 +00006520
6521
6522
6523
a.rottmann9bc8b932004-02-29 15:18:31 +00006524if test -z "$lt_cv_path_MAGIC_CMD"; then
6525 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006527$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006528if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006529 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006530else
6531 case $MAGIC_CMD in
6532[\\/*] | ?:[\\/]*)
6533 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6534 ;;
6535*)
6536 lt_save_MAGIC_CMD="$MAGIC_CMD"
6537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6538 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6539 for ac_dir in $ac_dummy; do
6540 IFS="$lt_save_ifs"
6541 test -z "$ac_dir" && ac_dir=.
6542 if test -f $ac_dir/file; then
6543 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6544 if test -n "$file_magic_test_file"; then
6545 case $deplibs_check_method in
6546 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006547 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6549 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6550 $EGREP "$file_magic_regex" > /dev/null; then
6551 :
6552 else
mlcreech636a9952008-05-05 22:52:56 +00006553 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006554
6555*** Warning: the command libtool uses to detect shared libraries,
6556*** $file_magic_cmd, produces output that libtool cannot recognize.
6557*** The result is that libtool may fail to recognize shared libraries
6558*** as such. This will affect the creation of libtool libraries that
6559*** depend on shared libraries, but programs linked with such libtool
6560*** libraries will work regardless of this problem. Nevertheless, you
6561*** may want to report the problem to your system manager and/or to
6562*** bug-libtool@gnu.org
6563
mlcreech636a9952008-05-05 22:52:56 +00006564_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006565 fi ;;
6566 esac
6567 fi
6568 break
6569 fi
6570 done
6571 IFS="$lt_save_ifs"
6572 MAGIC_CMD="$lt_save_MAGIC_CMD"
6573 ;;
6574esac
6575fi
6576
6577MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6578if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006580$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006581else
drhf922ca42015-05-14 15:39:18 +00006582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006583$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006584fi
6585
mlcreech636a9952008-05-05 22:52:56 +00006586
a.rottmann9bc8b932004-02-29 15:18:31 +00006587 else
6588 MAGIC_CMD=:
6589 fi
6590fi
6591
6592 fi
6593 ;;
6594esac
6595
a.rottmann9bc8b932004-02-29 15:18:31 +00006596# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006597
a.rottmann9bc8b932004-02-29 15:18:31 +00006598lt_save_CC="$CC"
6599ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604
6605
6606# Source file extension for C test sources.
6607ac_ext=c
6608
6609# Object file extension for compiled C test sources.
6610objext=o
6611objext=$objext
6612
6613# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006614lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006615
6616# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006617lt_simple_link_test_code='int main(){return(0);}'
6618
6619
6620
6621
6622
a.rottmann9bc8b932004-02-29 15:18:31 +00006623
6624
6625# If no C compiler was specified, use CC.
6626LTCC=${LTCC-"$CC"}
6627
vapier7f19c022007-02-17 14:46:31 +00006628# If no C compiler flags were specified, use CFLAGS.
6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6630
a.rottmann9bc8b932004-02-29 15:18:31 +00006631# Allow CC to be a program name with arguments.
6632compiler=$CC
6633
mlcreech636a9952008-05-05 22:52:56 +00006634# Save the default compiler, since it gets overwritten when the other
6635# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6636compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006637
vapier7f19c022007-02-17 14:46:31 +00006638# save warnings/boilerplate of simple test code
6639ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006640echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6642_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006643$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006644
vapier7f19c022007-02-17 14:46:31 +00006645ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006646echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6648_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006649$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006650
6651
mlcreech636a9952008-05-05 22:52:56 +00006652if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006653
6654lt_prog_compiler_no_builtin_flag=
6655
6656if test "$GCC" = yes; then
6657 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6658
drhf922ca42015-05-14 15:39:18 +00006659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006660$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006661if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006662 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006663else
6664 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006665 ac_outfile=conftest.$ac_objext
6666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006667 lt_compiler_flag="-fno-rtti -fno-exceptions"
6668 # Insert the option either (1) after the last *FLAGS variable, or
6669 # (2) before a word containing "conftest.", or (3) at the end.
6670 # Note that $ac_compile itself does not contain backslashes and begins
6671 # with a dollar sign (not a hyphen), so the echo should work correctly.
6672 # The option is referenced via a variable to avoid confusing sed.
6673 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6676 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00006677 (eval echo "\"\$as_me:6677: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006678 (eval "$lt_compile" 2>conftest.err)
6679 ac_status=$?
6680 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00006681 echo "$as_me:6681: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006682 if (exit $ac_status) && test -s "$ac_outfile"; then
6683 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006684 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006685 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006688 lt_cv_prog_compiler_rtti_exceptions=yes
6689 fi
6690 fi
mlcreech636a9952008-05-05 22:52:56 +00006691 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006692
6693fi
drhf922ca42015-05-14 15:39:18 +00006694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006695$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006696
6697if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6698 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6699else
6700 :
6701fi
6702
6703fi
6704
mlcreech636a9952008-05-05 22:52:56 +00006705
6706
6707
6708
6709
6710 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006711lt_prog_compiler_pic=
6712lt_prog_compiler_static=
6713
drhf922ca42015-05-14 15:39:18 +00006714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006715$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006716
drh71eb93e2001-09-28 01:34:43 +00006717 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006718 lt_prog_compiler_wl='-Wl,'
6719 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006720
6721 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006722 aix*)
6723 # All AIX code is PIC.
6724 if test "$host_cpu" = ia64; then
6725 # AIX 5 now supports IA64 processor
6726 lt_prog_compiler_static='-Bstatic'
6727 fi
drh71eb93e2001-09-28 01:34:43 +00006728 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006729
drh71eb93e2001-09-28 01:34:43 +00006730 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006731 case $host_cpu in
6732 powerpc)
6733 # see comment about AmigaOS4 .so support
6734 lt_prog_compiler_pic='-fPIC'
6735 ;;
6736 m68k)
6737 # FIXME: we need at least 68020 code to build shared libraries, but
6738 # adding the `-m68020' flag to GCC prevents building anything better,
6739 # like `-m68040'.
6740 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6741 ;;
6742 esac
drh71eb93e2001-09-28 01:34:43 +00006743 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006744
mlcreech636a9952008-05-05 22:52:56 +00006745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006746 # PIC is the default for these OSes.
6747 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006748
vapier6acb2cf2009-01-28 04:46:28 +00006749 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006750 # This hack is so that the source file can tell whether it is being
6751 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6753 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006754 lt_prog_compiler_pic='-DDLL_EXPORT'
6755 ;;
6756
drh71eb93e2001-09-28 01:34:43 +00006757 darwin* | rhapsody*)
6758 # PIC is the default on this platform
6759 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006760 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006761 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006762
a.rottmann9bc8b932004-02-29 15:18:31 +00006763 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6766 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006767 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006768 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006769 # +Z the default
6770 ;;
6771 *)
6772 lt_prog_compiler_pic='-fPIC'
6773 ;;
6774 esac
6775 ;;
6776
mlcreech636a9952008-05-05 22:52:56 +00006777 interix[3-9]*)
6778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6779 # Instead, we relocate shared libraries at runtime.
6780 ;;
6781
6782 msdosdjgpp*)
6783 # Just because we use GCC doesn't mean we suddenly get shared libraries
6784 # on systems that don't support them.
6785 lt_prog_compiler_can_build_shared=no
6786 enable_shared=no
6787 ;;
6788
6789 *nto* | *qnx*)
6790 # QNX uses GNU C++, but need to define -shared option too, otherwise
6791 # it will coredump.
6792 lt_prog_compiler_pic='-fPIC -shared'
6793 ;;
6794
6795 sysv4*MP*)
6796 if test -d /usr/nec; then
6797 lt_prog_compiler_pic=-Kconform_pic
6798 fi
6799 ;;
6800
drh71eb93e2001-09-28 01:34:43 +00006801 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006803 ;;
6804 esac
6805 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006806 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006807 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 aix*)
6809 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006810 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006811 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006813 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006815 fi
6816 ;;
6817
vapier6acb2cf2009-01-28 04:46:28 +00006818 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006819 # This hack is so that the source file can tell whether it is being
6820 # built for inclusion in a dll (and should export symbols for example).
6821 lt_prog_compiler_pic='-DDLL_EXPORT'
6822 ;;
6823
a.rottmann84e63352003-03-24 09:42:16 +00006824 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006825 lt_prog_compiler_wl='-Wl,'
6826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6827 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006828 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006829 hppa*64*|ia64*)
6830 # +Z the default
6831 ;;
6832 *)
6833 lt_prog_compiler_pic='+Z'
6834 ;;
6835 esac
6836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6837 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006838 ;;
6839
6840 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006841 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006842 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006843 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006844 ;;
6845
mlcreech636a9952008-05-05 22:52:56 +00006846 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006847 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006848 # old Intel for x86_64 which still supported -KPIC.
6849 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006850 lt_prog_compiler_wl='-Wl,'
6851 lt_prog_compiler_pic='-KPIC'
6852 lt_prog_compiler_static='-static'
6853 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006854 # icc used to be incompatible with GCC.
6855 # ICC 10 doesn't accept -KPIC any more.
6856 icc* | ifort*)
6857 lt_prog_compiler_wl='-Wl,'
6858 lt_prog_compiler_pic='-fPIC'
6859 lt_prog_compiler_static='-static'
6860 ;;
6861 # Lahey Fortran 8.1.
6862 lf95*)
6863 lt_prog_compiler_wl='-Wl,'
6864 lt_prog_compiler_pic='--shared'
6865 lt_prog_compiler_static='--static'
6866 ;;
vapier7f19c022007-02-17 14:46:31 +00006867 pgcc* | pgf77* | pgf90* | pgf95*)
6868 # Portland Group compilers (*not* the Pentium gcc compiler,
6869 # which looks to be a dead project)
6870 lt_prog_compiler_wl='-Wl,'
6871 lt_prog_compiler_pic='-fpic'
6872 lt_prog_compiler_static='-Bstatic'
6873 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006874 ccc*)
6875 lt_prog_compiler_wl='-Wl,'
6876 # All Alpha code is PIC.
6877 lt_prog_compiler_static='-non_shared'
6878 ;;
mlcreech636a9952008-05-05 22:52:56 +00006879 xl*)
6880 # IBM XL C 8.0/Fortran 10.1 on PPC
6881 lt_prog_compiler_wl='-Wl,'
6882 lt_prog_compiler_pic='-qpic'
6883 lt_prog_compiler_static='-qstaticlink'
6884 ;;
6885 *)
6886 case `$CC -V 2>&1 | sed 5q` in
6887 *Sun\ C*)
6888 # Sun C 5.9
6889 lt_prog_compiler_pic='-KPIC'
6890 lt_prog_compiler_static='-Bstatic'
6891 lt_prog_compiler_wl='-Wl,'
6892 ;;
6893 *Sun\ F*)
6894 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6895 lt_prog_compiler_pic='-KPIC'
6896 lt_prog_compiler_static='-Bstatic'
6897 lt_prog_compiler_wl=''
6898 ;;
6899 esac
6900 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006901 esac
drh71eb93e2001-09-28 01:34:43 +00006902 ;;
6903
mlcreech636a9952008-05-05 22:52:56 +00006904 newsos6)
6905 lt_prog_compiler_pic='-KPIC'
6906 lt_prog_compiler_static='-Bstatic'
6907 ;;
6908
6909 *nto* | *qnx*)
6910 # QNX uses GNU C++, but need to define -shared option too, otherwise
6911 # it will coredump.
6912 lt_prog_compiler_pic='-fPIC -shared'
6913 ;;
6914
drh71eb93e2001-09-28 01:34:43 +00006915 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006917 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006919 ;;
6920
mlcreech636a9952008-05-05 22:52:56 +00006921 rdos*)
6922 lt_prog_compiler_static='-non_shared'
6923 ;;
6924
drh71eb93e2001-09-28 01:34:43 +00006925 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006926 lt_prog_compiler_pic='-KPIC'
6927 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006928 case $cc_basename in
6929 f77* | f90* | f95*)
6930 lt_prog_compiler_wl='-Qoption ld ';;
6931 *)
6932 lt_prog_compiler_wl='-Wl,';;
6933 esac
drh71eb93e2001-09-28 01:34:43 +00006934 ;;
6935
6936 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006937 lt_prog_compiler_wl='-Qoption ld '
6938 lt_prog_compiler_pic='-PIC'
6939 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006940 ;;
6941
vapier7f19c022007-02-17 14:46:31 +00006942 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006943 lt_prog_compiler_wl='-Wl,'
6944 lt_prog_compiler_pic='-KPIC'
6945 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006946 ;;
6947
6948 sysv4*MP*)
6949 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 lt_prog_compiler_pic='-Kconform_pic'
6951 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006952 fi
6953 ;;
6954
vapier7f19c022007-02-17 14:46:31 +00006955 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6956 lt_prog_compiler_wl='-Wl,'
6957 lt_prog_compiler_pic='-KPIC'
6958 lt_prog_compiler_static='-Bstatic'
6959 ;;
6960
6961 unicos*)
6962 lt_prog_compiler_wl='-Wl,'
6963 lt_prog_compiler_can_build_shared=no
6964 ;;
6965
a.rottmann9bc8b932004-02-29 15:18:31 +00006966 uts4*)
6967 lt_prog_compiler_pic='-pic'
6968 lt_prog_compiler_static='-Bstatic'
6969 ;;
6970
drh71eb93e2001-09-28 01:34:43 +00006971 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006972 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006973 ;;
6974 esac
6975 fi
6976
mlcreech636a9952008-05-05 22:52:56 +00006977case $host_os in
6978 # For platforms which do not support PIC, -DPIC is meaningless:
6979 *djgpp*)
6980 lt_prog_compiler_pic=
6981 ;;
6982 *)
6983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6984 ;;
6985esac
drhf922ca42015-05-14 15:39:18 +00006986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006987$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006988
6989
6990
6991
6992
drh71eb93e2001-09-28 01:34:43 +00006993
a.rottmann9bc8b932004-02-29 15:18:31 +00006994#
6995# Check to make sure the PIC flag actually works.
6996#
6997if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006999$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007000if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007001 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007002else
mlcreech636a9952008-05-05 22:52:56 +00007003 lt_cv_prog_compiler_pic_works=no
7004 ac_outfile=conftest.$ac_objext
7005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7007 # Insert the option either (1) after the last *FLAGS variable, or
7008 # (2) before a word containing "conftest.", or (3) at the end.
7009 # Note that $ac_compile itself does not contain backslashes and begins
7010 # with a dollar sign (not a hyphen), so the echo should work correctly.
7011 # The option is referenced via a variable to avoid confusing sed.
7012 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7015 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007016 (eval echo "\"\$as_me:7016: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007017 (eval "$lt_compile" 2>conftest.err)
7018 ac_status=$?
7019 cat conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007020 echo "$as_me:7020: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007021 if (exit $ac_status) && test -s "$ac_outfile"; then
7022 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007023 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007024 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007025 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7026 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007027 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007028 fi
7029 fi
mlcreech636a9952008-05-05 22:52:56 +00007030 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007031
a.rottmann9bc8b932004-02-29 15:18:31 +00007032fi
drhf922ca42015-05-14 15:39:18 +00007033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007034$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007035
mlcreech636a9952008-05-05 22:52:56 +00007036if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 case $lt_prog_compiler_pic in
7038 "" | " "*) ;;
7039 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7040 esac
drh71eb93e2001-09-28 01:34:43 +00007041else
a.rottmann9bc8b932004-02-29 15:18:31 +00007042 lt_prog_compiler_pic=
7043 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007044fi
7045
a.rottmann84e63352003-03-24 09:42:16 +00007046fi
mlcreech636a9952008-05-05 22:52:56 +00007047
7048
7049
7050
7051
a.rottmann84e63352003-03-24 09:42:16 +00007052
vapier7f19c022007-02-17 14:46:31 +00007053#
7054# Check to make sure the static flag actually works.
7055#
7056wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007058$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007059if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007060 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007061else
mlcreech636a9952008-05-05 22:52:56 +00007062 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007063 save_LDFLAGS="$LDFLAGS"
7064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7067 # The linker can only warn and ignore the option if not recognized
7068 # So say no if there are warnings
7069 if test -s conftest.err; then
7070 # Append any errors to the config.log.
7071 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7074 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007075 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007076 fi
7077 else
mlcreech636a9952008-05-05 22:52:56 +00007078 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007079 fi
7080 fi
mlcreech636a9952008-05-05 22:52:56 +00007081 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007082 LDFLAGS="$save_LDFLAGS"
7083
7084fi
drhf922ca42015-05-14 15:39:18 +00007085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007086$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007087
mlcreech636a9952008-05-05 22:52:56 +00007088if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007089 :
7090else
7091 lt_prog_compiler_static=
7092fi
7093
7094
mlcreech636a9952008-05-05 22:52:56 +00007095
7096
7097
7098
7099
drhf922ca42015-05-14 15:39:18 +00007100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007101$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007102if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007103 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007104else
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007106 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 mkdir conftest
7108 cd conftest
7109 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007111
a.rottmann9bc8b932004-02-29 15:18:31 +00007112 lt_compiler_flag="-o out/conftest2.$ac_objext"
7113 # Insert the option either (1) after the last *FLAGS variable, or
7114 # (2) before a word containing "conftest.", or (3) at the end.
7115 # Note that $ac_compile itself does not contain backslashes and begins
7116 # with a dollar sign (not a hyphen), so the echo should work correctly.
7117 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007122 (eval "$lt_compile" 2>out/conftest.err)
7123 ac_status=$?
7124 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007125 echo "$as_me:7125: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7127 then
7128 # The compiler can only warn and ignore the option if not recognized
7129 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007130 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 lt_cv_prog_compiler_c_o=yes
7134 fi
7135 fi
vapier7f19c022007-02-17 14:46:31 +00007136 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007137 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007138 # SGI C++ compiler will create directory out/ii_files/ for
7139 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007140 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7141 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007142 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007143 $RM -r conftest
7144 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007145
7146fi
drhf922ca42015-05-14 15:39:18 +00007147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007148$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007149
7150
7151
7152
7153
7154
drhf922ca42015-05-14 15:39:18 +00007155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007156$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007157if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007158 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007159else
7160 lt_cv_prog_compiler_c_o=no
7161 $RM -r conftest 2>/dev/null
7162 mkdir conftest
7163 cd conftest
7164 mkdir out
7165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7166
7167 lt_compiler_flag="-o out/conftest2.$ac_objext"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 lt_compile=`echo "$ac_compile" | $SED \
7173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7175 -e 's:$: $lt_compiler_flag:'`
drhe2ce8c42020-12-07 21:19:17 +00007176 (eval echo "\"\$as_me:7176: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007177 (eval "$lt_compile" 2>out/conftest.err)
7178 ac_status=$?
7179 cat out/conftest.err >&5
drhe2ce8c42020-12-07 21:19:17 +00007180 echo "$as_me:7180: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7182 then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7188 lt_cv_prog_compiler_c_o=yes
7189 fi
7190 fi
7191 chmod u+w . 2>&5
7192 $RM conftest*
7193 # SGI C++ compiler will create directory out/ii_files/ for
7194 # template instantiation
7195 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7196 $RM out/* && rmdir out
7197 cd ..
7198 $RM -r conftest
7199 $RM conftest*
7200
7201fi
drhf922ca42015-05-14 15:39:18 +00007202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007203$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007204
7205
drh71eb93e2001-09-28 01:34:43 +00007206
a.rottmann84e63352003-03-24 09:42:16 +00007207
drh71eb93e2001-09-28 01:34:43 +00007208hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007209if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007210 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007212$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007213 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007214 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7216 touch conftest.a
7217 ln conftest.a conftest.b 2>&5 || hard_links=no
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007220$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007221 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007223$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007224 need_locks=warn
7225 fi
7226else
7227 need_locks=no
7228fi
7229
mlcreech636a9952008-05-05 22:52:56 +00007230
7231
7232
7233
7234
drhf922ca42015-05-14 15:39:18 +00007235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007236$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007237
7238 runpath_var=
7239 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007240 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 archive_cmds=
7242 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007243 compiler_needs_object=no
7244 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 hardcode_automatic=no
7248 hardcode_direct=no
7249 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 hardcode_libdir_flag_spec=
7251 hardcode_libdir_flag_spec_ld=
7252 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 hardcode_minus_L=no
7254 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007255 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007256 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 module_cmds=
7258 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007259 old_archive_from_new_cmds=
7260 old_archive_from_expsyms_cmds=
7261 thread_safe_flag_spec=
7262 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 # include_expsyms should be a list of space-separated symbols to be *always*
7264 # included in the symbol list
7265 include_expsyms=
7266 # exclude_expsyms can be an extended regexp of symbols to exclude
7267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272 # platforms (ab)use it in PIC code, but their linkers get confused if
7273 # the symbol is explicitly referenced. Since portable code cannot
7274 # rely on this symbol name, it's probably fine to never include it in
7275 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007276 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007277 extract_expsyms_cmds=
7278
7279 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007280 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7282 # When not using gcc, we currently assume that we are using
7283 # Microsoft Visual C++.
7284 if test "$GCC" != yes; then
7285 with_gnu_ld=no
7286 fi
7287 ;;
vapier7f19c022007-02-17 14:46:31 +00007288 interix*)
7289 # we just hope/assume this is gcc and not c89 (= MSVC++)
7290 with_gnu_ld=yes
7291 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007292 openbsd*)
7293 with_gnu_ld=no
7294 ;;
7295 esac
7296
7297 ld_shlibs=yes
7298 if test "$with_gnu_ld" = yes; then
7299 # If archive_cmds runs LD, not CC, wlarc should be empty
7300 wlarc='${wl}'
7301
vapier7f19c022007-02-17 14:46:31 +00007302 # Set some defaults for GNU ld with shared library support. These
7303 # are reset later if shared libraries are not supported. Putting them
7304 # here allows them to be overridden if necessary.
7305 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007307 export_dynamic_flag_spec='${wl}--export-dynamic'
7308 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007309 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7310 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7311 else
7312 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007313 fi
7314 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007315 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007316 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7317 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7318 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7319 *\ 2.11.*) ;; # other 2.11 versions
7320 *) supports_anon_versioning=yes ;;
7321 esac
7322
a.rottmann9bc8b932004-02-29 15:18:31 +00007323 # See if GNU ld supports shared libraries.
7324 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007325 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007326 # On AIX/PPC, the GNU linker is very broken
7327 if test "$host_cpu" != ia64; then
7328 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007329 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007330
7331*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7332*** to be unable to reliably create shared libraries on AIX.
7333*** Therefore, libtool is disabling shared libraries support. If you
7334*** really care for shared libraries, you may want to modify your PATH
7335*** so that a non-GNU linker is found, and then restart.
7336
mlcreech636a9952008-05-05 22:52:56 +00007337_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007338 fi
7339 ;;
7340
7341 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007342 case $host_cpu in
7343 powerpc)
7344 # see comment about AmigaOS4 .so support
7345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7346 archive_expsym_cmds=''
7347 ;;
7348 m68k)
7349 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)'
7350 hardcode_libdir_flag_spec='-L$libdir'
7351 hardcode_minus_L=yes
7352 ;;
7353 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007354 ;;
7355
7356 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007358 allow_undefined_flag=unsupported
7359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7360 # support --undefined. This deserves some investigation. FIXME
7361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7362 else
7363 ld_shlibs=no
7364 fi
7365 ;;
7366
vapier6acb2cf2009-01-28 04:46:28 +00007367 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007369 # as there is no search path for DLLs.
7370 hardcode_libdir_flag_spec='-L$libdir'
7371 allow_undefined_flag=unsupported
7372 always_export_symbols=no
7373 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007374 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 +00007375
mlcreech636a9952008-05-05 22:52:56 +00007376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007377 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 +00007378 # If the export-symbols file already is a .def file (1st line
7379 # is EXPORTS), use it as is; otherwise, prepend...
7380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7381 cp $export_symbols $output_objdir/$soname.def;
7382 else
7383 echo EXPORTS > $output_objdir/$soname.def;
7384 cat $export_symbols >> $output_objdir/$soname.def;
7385 fi~
vapier7f19c022007-02-17 14:46:31 +00007386 $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 +00007387 else
7388 ld_shlibs=no
7389 fi
7390 ;;
7391
mlcreech636a9952008-05-05 22:52:56 +00007392 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007393 hardcode_direct=no
7394 hardcode_shlibpath_var=no
7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec='${wl}-E'
7397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7398 # Instead, shared libraries are loaded at an image base (0x10000000 by
7399 # default) and relocated if they conflict, which is a slow very memory
7400 # consuming and fragmenting process. To avoid this, we pick a random,
7401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7404 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'
7405 ;;
7406
mlcreech636a9952008-05-05 22:52:56 +00007407 gnu* | linux* | tpf* | k*bsd*-gnu)
7408 tmp_diet=no
7409 if test "$host_os" = linux-dietlibc; then
7410 case $cc_basename in
7411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7412 esac
7413 fi
7414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7415 && test "$tmp_diet" = no
7416 then
vapier7f19c022007-02-17 14:46:31 +00007417 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007418 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007419 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007420 pgcc*) # Portland Group C compiler
7421 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 +00007422 tmp_addflag=' $pic_flag'
7423 ;;
7424 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007425 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 +00007426 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007428 tmp_addflag=' -i_dynamic' ;;
7429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7430 tmp_addflag=' -i_dynamic -nofor_main' ;;
7431 ifc* | ifort*) # Intel Fortran compiler
7432 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007433 lf95*) # Lahey Fortran 8.1
7434 whole_archive_flag_spec=
7435 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007436 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7437 tmp_sharedflag='-qmkshrobj'
7438 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007439 esac
mlcreech636a9952008-05-05 22:52:56 +00007440 case `$CC -V 2>&1 | sed 5q` in
7441 *Sun\ C*) # Sun C 5.9
7442 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'
7443 compiler_needs_object=yes
7444 tmp_sharedflag='-G' ;;
7445 *Sun\ F*) # Sun Fortran 8.3
7446 tmp_sharedflag='-G' ;;
7447 esac
7448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007449
mlcreech636a9952008-05-05 22:52:56 +00007450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7455 fi
7456
7457 case $cc_basename in
7458 xlf*)
7459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7461 hardcode_libdir_flag_spec=
7462 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7463 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7464 if test "x$supports_anon_versioning" = xyes; then
7465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7467 echo "local: *; };" >> $output_objdir/$libname.ver~
7468 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7469 fi
7470 ;;
7471 esac
vapier7f19c022007-02-17 14:46:31 +00007472 else
mlcreech636a9952008-05-05 22:52:56 +00007473 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007474 fi
7475 ;;
7476
7477 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7480 wlarc=
7481 else
7482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7484 fi
7485 ;;
7486
vapier7f19c022007-02-17 14:46:31 +00007487 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007489 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007490 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007491
7492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7493*** create shared libraries on Solaris systems. Therefore, libtool
7494*** is disabling shared libraries support. We urge you to upgrade GNU
7495*** binutils to release 2.9.1 or newer. Another option is to modify
7496*** your PATH or compiler configuration so that the native linker is
7497*** used, and then restart.
7498
mlcreech636a9952008-05-05 22:52:56 +00007499_LT_EOF
7500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7503 else
7504 ld_shlibs=no
7505 fi
7506 ;;
7507
vapier7f19c022007-02-17 14:46:31 +00007508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7509 case `$LD -v 2>&1` in
7510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7511 ld_shlibs=no
7512 cat <<_LT_EOF 1>&2
7513
7514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7515*** reliably create shared libraries on SCO systems. Therefore, libtool
7516*** is disabling shared libraries support. We urge you to upgrade GNU
7517*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7518*** your PATH or compiler configuration so that the native linker is
7519*** used, and then restart.
7520
7521_LT_EOF
7522 ;;
7523 *)
mlcreech636a9952008-05-05 22:52:56 +00007524 # For security reasons, it is highly recommended that you always
7525 # use absolute paths for naming shared libraries, and exclude the
7526 # DT_RUNPATH tag from executables and libraries. But doing so
7527 # requires that you compile everything twice, which is a pain.
7528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7531 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 +00007532 else
7533 ld_shlibs=no
7534 fi
7535 ;;
7536 esac
7537 ;;
7538
a.rottmann9bc8b932004-02-29 15:18:31 +00007539 sunos4*)
7540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7541 wlarc=
7542 hardcode_direct=yes
7543 hardcode_shlibpath_var=no
7544 ;;
7545
a.rottmann9bc8b932004-02-29 15:18:31 +00007546 *)
mlcreech636a9952008-05-05 22:52:56 +00007547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7549 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7550 else
7551 ld_shlibs=no
7552 fi
7553 ;;
7554 esac
7555
vapier7f19c022007-02-17 14:46:31 +00007556 if test "$ld_shlibs" = no; then
7557 runpath_var=
7558 hardcode_libdir_flag_spec=
7559 export_dynamic_flag_spec=
7560 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 fi
7562 else
7563 # PORTME fill in a description of your system's linker (not GNU ld)
7564 case $host_os in
7565 aix3*)
7566 allow_undefined_flag=unsupported
7567 always_export_symbols=yes
7568 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'
7569 # Note: this linker hardcodes the directories in LIBPATH if there
7570 # are no directories specified by -L.
7571 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007573 # Neither direct hardcoding nor static linking is supported with a
7574 # broken collect2.
7575 hardcode_direct=unsupported
7576 fi
7577 ;;
7578
mlcreech636a9952008-05-05 22:52:56 +00007579 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007580 if test "$host_cpu" = ia64; then
7581 # On IA64, the linker does run time linking by default, so we don't
7582 # have to do anything special.
7583 aix_use_runtimelinking=no
7584 exp_sym_flag='-Bexport'
7585 no_entry_flag=""
7586 else
7587 # If we're using GNU nm, then we don't want the "-C" option.
7588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007589 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7590 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 +00007591 else
mlcreech636a9952008-05-05 22:52:56 +00007592 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 +00007593 fi
7594 aix_use_runtimelinking=no
7595
7596 # Test if we are trying to use run time linking or normal
7597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7598 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007600 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7602 aix_use_runtimelinking=yes
7603 break
7604 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007605 done
vapier7f19c022007-02-17 14:46:31 +00007606 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007607 esac
7608
7609 exp_sym_flag='-bexport'
7610 no_entry_flag='-bnoentry'
7611 fi
7612
7613 # When large executables or shared objects are built, AIX ld can
7614 # have problems creating the table of contents. If linking a library
7615 # or program results in "error TOC overflow" add -mminimal-toc to
7616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7618
7619 archive_cmds=''
7620 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007621 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 hardcode_libdir_separator=':'
7623 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007624 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007625
7626 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007627 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 # We only want to do this on AIX 4.2 and lower, the check
7629 # below for broken collect2 doesn't work under 4.3+
7630 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007631 if test -f "$collect2name" &&
7632 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007633 then
mlcreech636a9952008-05-05 22:52:56 +00007634 # We have reworked collect2
7635 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007636 else
mlcreech636a9952008-05-05 22:52:56 +00007637 # We have old collect2
7638 hardcode_direct=unsupported
7639 # It fails to find uninstalled libraries when the uninstalled
7640 # path is not listed in the libpath. Setting hardcode_minus_L
7641 # to unsupported forces relinking
7642 hardcode_minus_L=yes
7643 hardcode_libdir_flag_spec='-L$libdir'
7644 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 fi
vapier7f19c022007-02-17 14:46:31 +00007646 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 esac
7648 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007649 if test "$aix_use_runtimelinking" = yes; then
7650 shared_flag="$shared_flag "'${wl}-G'
7651 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 else
7653 # not using gcc
7654 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7656 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007657 shared_flag='-G'
7658 else
vapier7f19c022007-02-17 14:46:31 +00007659 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007660 shared_flag='${wl}-G'
7661 else
7662 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007663 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007664 fi
7665 fi
7666
vapier6acb2cf2009-01-28 04:46:28 +00007667 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007668 # It seems that -bexpall does not export symbols beginning with
7669 # underscore (_), so it is better to generate a list of symbols to export.
7670 always_export_symbols=yes
7671 if test "$aix_use_runtimelinking" = yes; then
7672 # Warning - without using the other runtime loading flags (-brtl),
7673 # -berok will link without error, but may produce a broken library.
7674 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007675 # Determine the default libpath from the value encoded in an
7676 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007678/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007679
a.rottmann84e63352003-03-24 09:42:16 +00007680int
7681main ()
7682{
a.rottmann9bc8b932004-02-29 15:18:31 +00007683
a.rottmann84e63352003-03-24 09:42:16 +00007684 ;
7685 return 0;
7686}
7687_ACEOF
drhf922ca42015-05-14 15:39:18 +00007688if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007689
mlcreech636a9952008-05-05 22:52:56 +00007690lt_aix_libpath_sed='
7691 /Import File Strings/,/^$/ {
7692 /^0/ {
7693 s/^0 *\(.*\)$/\1/
7694 p
7695 }
7696 }'
7697aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007698# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007699if test -z "$aix_libpath"; then
7700 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7701fi
a.rottmann84e63352003-03-24 09:42:16 +00007702fi
drhf922ca42015-05-14 15:39:18 +00007703rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007705if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007706
mlcreech636a9952008-05-05 22:52:56 +00007707 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7708 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"
7709 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007710 if test "$host_cpu" = ia64; then
7711 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7712 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007713 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 +00007714 else
mlcreech636a9952008-05-05 22:52:56 +00007715 # Determine the default libpath from the value encoded in an
7716 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007718/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007719
a.rottmann9bc8b932004-02-29 15:18:31 +00007720int
7721main ()
7722{
a.rottmann84e63352003-03-24 09:42:16 +00007723
a.rottmann9bc8b932004-02-29 15:18:31 +00007724 ;
7725 return 0;
7726}
7727_ACEOF
drhf922ca42015-05-14 15:39:18 +00007728if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007729
mlcreech636a9952008-05-05 22:52:56 +00007730lt_aix_libpath_sed='
7731 /Import File Strings/,/^$/ {
7732 /^0/ {
7733 s/^0 *\(.*\)$/\1/
7734 p
7735 }
7736 }'
7737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007738# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007739if test -z "$aix_libpath"; then
7740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7741fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007742fi
drhf922ca42015-05-14 15:39:18 +00007743rm -f core conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007746
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7748 # Warning - without using the other run time loading flags,
7749 # -berok will link without error, but may produce a broken library.
7750 no_undefined_flag=' ${wl}-bernotok'
7751 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007752 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007753 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007754 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007755 # This is similar to how AIX traditionally builds its shared libraries.
7756 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 +00007757 fi
7758 fi
a.rottmann84e63352003-03-24 09:42:16 +00007759 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007760
7761 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007762 case $host_cpu in
7763 powerpc)
7764 # see comment about AmigaOS4 .so support
7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7766 archive_expsym_cmds=''
7767 ;;
7768 m68k)
7769 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)'
7770 hardcode_libdir_flag_spec='-L$libdir'
7771 hardcode_minus_L=yes
7772 ;;
7773 esac
a.rottmann84e63352003-03-24 09:42:16 +00007774 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007775
vapier7f19c022007-02-17 14:46:31 +00007776 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007777 export_dynamic_flag_spec=-rdynamic
7778 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007779
vapier6acb2cf2009-01-28 04:46:28 +00007780 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 # When not using gcc, we currently assume that we are using
7782 # Microsoft Visual C++.
7783 # hardcode_libdir_flag_spec is actually meaningless, as there is
7784 # no search path for DLLs.
7785 hardcode_libdir_flag_spec=' '
7786 allow_undefined_flag=unsupported
7787 # Tell ltmain to make .lib files, not .a files.
7788 libext=lib
7789 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007790 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007791 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007792 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 +00007793 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007794 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007796 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007797 fix_srcfile_path='`cygpath -w "$srcfile"`'
7798 enable_shared_with_static_runtimes=yes
7799 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007800
a.rottmann9bc8b932004-02-29 15:18:31 +00007801 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007802
7803
7804 archive_cmds_need_lc=no
7805 hardcode_direct=no
7806 hardcode_automatic=yes
7807 hardcode_shlibpath_var=unsupported
7808 whole_archive_flag_spec=''
7809 link_all_deplibs=yes
7810 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007811 case $cc_basename in
7812 ifort*) _lt_dar_can_shared=yes ;;
7813 *) _lt_dar_can_shared=$GCC ;;
7814 esac
7815 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007816 output_verbose_link_cmd=echo
7817 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7818 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7819 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}"
7820 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}"
7821
7822 else
7823 ld_shlibs=no
7824 fi
7825
a.rottmann9bc8b932004-02-29 15:18:31 +00007826 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007827
a.rottmann9bc8b932004-02-29 15:18:31 +00007828 dgux*)
7829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7830 hardcode_libdir_flag_spec='-L$libdir'
7831 hardcode_shlibpath_var=no
7832 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007833
a.rottmann9bc8b932004-02-29 15:18:31 +00007834 freebsd1*)
7835 ld_shlibs=no
7836 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007837
a.rottmann9bc8b932004-02-29 15:18:31 +00007838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7839 # support. Future versions do this automatically, but an explicit c++rt0.o
7840 # does not break anything, and helps significantly (at the cost of a little
7841 # extra space).
7842 freebsd2.2*)
7843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7844 hardcode_libdir_flag_spec='-R$libdir'
7845 hardcode_direct=yes
7846 hardcode_shlibpath_var=no
7847 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007848
a.rottmann9bc8b932004-02-29 15:18:31 +00007849 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7850 freebsd2*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7852 hardcode_direct=yes
7853 hardcode_minus_L=yes
7854 hardcode_shlibpath_var=no
7855 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007856
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007858 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007859 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7860 hardcode_libdir_flag_spec='-R$libdir'
7861 hardcode_direct=yes
7862 hardcode_shlibpath_var=no
7863 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007864
a.rottmann9bc8b932004-02-29 15:18:31 +00007865 hpux9*)
7866 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007867 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 +00007868 else
mlcreech636a9952008-05-05 22:52:56 +00007869 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 +00007870 fi
7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872 hardcode_libdir_separator=:
7873 hardcode_direct=yes
7874
7875 # hardcode_minus_L: Not really in the search PATH,
7876 # but as the default location of the library.
7877 hardcode_minus_L=yes
7878 export_dynamic_flag_spec='${wl}-E'
7879 ;;
7880
vapier7f19c022007-02-17 14:46:31 +00007881 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007882 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007883 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7884 else
7885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7886 fi
7887 if test "$with_gnu_ld" = no; then
7888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007889 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007890 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007891 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007892 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007893 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007894 # hardcode_minus_L: Not really in the search PATH,
7895 # but as the default location of the library.
7896 hardcode_minus_L=yes
7897 fi
7898 ;;
7899
7900 hpux11*)
7901 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7902 case $host_cpu in
7903 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007904 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 ;;
vapier7f19c022007-02-17 14:46:31 +00007906 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007907 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007908 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007909 *)
7910 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7911 ;;
7912 esac
7913 else
vapier7f19c022007-02-17 14:46:31 +00007914 case $host_cpu in
7915 hppa*64*)
7916 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7917 ;;
7918 ia64*)
7919 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 ;;
7921 *)
vapier7f19c022007-02-17 14:46:31 +00007922 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 +00007923 ;;
7924 esac
7925 fi
7926 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7928 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007929
vapier7f19c022007-02-17 14:46:31 +00007930 case $host_cpu in
7931 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007932 hardcode_direct=no
7933 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007934 ;;
7935 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007937 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007938 export_dynamic_flag_spec='${wl}-E'
7939
7940 # hardcode_minus_L: Not really in the search PATH,
7941 # but as the default location of the library.
7942 hardcode_minus_L=yes
7943 ;;
7944 esac
7945 fi
7946 ;;
7947
7948 irix5* | irix6* | nonstopux*)
7949 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007950 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'
7951 # Try to use the -exported_symbol ld option, if it does not
7952 # work, assume that -exports_file does not work either and
7953 # implicitly export all symbols.
7954 save_LDFLAGS="$LDFLAGS"
7955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007958int foo(void) {}
7959_ACEOF
drhf922ca42015-05-14 15:39:18 +00007960if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007961 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'
7962
mlcreech636a9952008-05-05 22:52:56 +00007963fi
drhf922ca42015-05-14 15:39:18 +00007964rm -f core conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007966 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007967 else
mlcreech636a9952008-05-05 22:52:56 +00007968 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'
7969 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 +00007970 fi
mlcreech636a9952008-05-05 22:52:56 +00007971 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7973 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007974 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007975 link_all_deplibs=yes
7976 ;;
7977
vapier7f19c022007-02-17 14:46:31 +00007978 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007979 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7981 else
7982 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7983 fi
7984 hardcode_libdir_flag_spec='-R$libdir'
7985 hardcode_direct=yes
7986 hardcode_shlibpath_var=no
7987 ;;
7988
7989 newsos6)
7990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7991 hardcode_direct=yes
7992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993 hardcode_libdir_separator=:
7994 hardcode_shlibpath_var=no
7995 ;;
7996
mlcreech636a9952008-05-05 22:52:56 +00007997 *nto* | *qnx*)
7998 ;;
7999
a.rottmann9bc8b932004-02-29 15:18:31 +00008000 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008001 if test -f /usr/libexec/ld.so; then
8002 hardcode_direct=yes
8003 hardcode_shlibpath_var=no
8004 hardcode_direct_absolute=yes
8005 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8007 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8008 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8009 export_dynamic_flag_spec='${wl}-E'
8010 else
8011 case $host_os in
8012 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8014 hardcode_libdir_flag_spec='-R$libdir'
8015 ;;
8016 *)
8017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8018 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8019 ;;
8020 esac
8021 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008022 else
mlcreech636a9952008-05-05 22:52:56 +00008023 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008024 fi
8025 ;;
8026
8027 os2*)
8028 hardcode_libdir_flag_spec='-L$libdir'
8029 hardcode_minus_L=yes
8030 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008031 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'
8032 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008033 ;;
8034
8035 osf3*)
8036 if test "$GCC" = yes; then
8037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008038 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 +00008039 else
8040 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008041 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 +00008042 fi
mlcreech636a9952008-05-05 22:52:56 +00008043 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8045 hardcode_libdir_separator=:
8046 ;;
8047
8048 osf4* | osf5*) # as osf3* with the addition of -msym flag
8049 if test "$GCC" = yes; then
8050 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008051 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 +00008052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053 else
8054 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008055 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'
8056 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~
8057 $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 +00008058
8059 # Both c and cxx compiler support -rpath directly
8060 hardcode_libdir_flag_spec='-rpath $libdir'
8061 fi
mlcreech636a9952008-05-05 22:52:56 +00008062 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008063 hardcode_libdir_separator=:
8064 ;;
8065
a.rottmann9bc8b932004-02-29 15:18:31 +00008066 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008067 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008068 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008069 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008070 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8072 $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 +00008073 else
mlcreech636a9952008-05-05 22:52:56 +00008074 case `$CC -V 2>&1` in
8075 *"Compilers 5.0"*)
8076 wlarc=''
8077 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8079 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8080 ;;
8081 *)
8082 wlarc='${wl}'
8083 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8084 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8085 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8086 ;;
8087 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008088 fi
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_shlibpath_var=no
8091 case $host_os in
8092 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008093 *)
mlcreech636a9952008-05-05 22:52:56 +00008094 # The compiler driver will combine and reorder linker options,
8095 # but understands `-z linker_flag'. GCC discards it without `$wl',
8096 # but is careful enough not to reorder.
8097 # Supported since Solaris 2.6 (maybe 2.5.1?)
8098 if test "$GCC" = yes; then
8099 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8100 else
8101 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8102 fi
8103 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008104 esac
8105 link_all_deplibs=yes
8106 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008107
a.rottmann9bc8b932004-02-29 15:18:31 +00008108 sunos4*)
8109 if test "x$host_vendor" = xsequent; then
8110 # Use $CC to link under sequent, because it throws in some extra .o
8111 # files that make .init and .fini sections work.
8112 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8113 else
8114 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8115 fi
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 hardcode_direct=yes
8118 hardcode_minus_L=yes
8119 hardcode_shlibpath_var=no
8120 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008121
a.rottmann9bc8b932004-02-29 15:18:31 +00008122 sysv4)
8123 case $host_vendor in
8124 sni)
8125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8126 hardcode_direct=yes # is this really true???
8127 ;;
8128 siemens)
8129 ## LD is ld it makes a PLAMLIB
8130 ## CC just makes a GrossModule.
8131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8132 reload_cmds='$CC -r -o $output$reload_objs'
8133 hardcode_direct=no
8134 ;;
8135 motorola)
8136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8137 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8138 ;;
8139 esac
8140 runpath_var='LD_RUN_PATH'
8141 hardcode_shlibpath_var=no
8142 ;;
8143
8144 sysv4.3*)
8145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8146 hardcode_shlibpath_var=no
8147 export_dynamic_flag_spec='-Bexport'
8148 ;;
8149
8150 sysv4*MP*)
8151 if test -d /usr/nec; then
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_shlibpath_var=no
8154 runpath_var=LD_RUN_PATH
8155 hardcode_runpath_var=yes
8156 ld_shlibs=yes
8157 fi
8158 ;;
8159
mlcreech636a9952008-05-05 22:52:56 +00008160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008161 no_undefined_flag='${wl}-z,text'
8162 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008163 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008164 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008165
a.rottmann9bc8b932004-02-29 15:18:31 +00008166 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 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 +00008169 else
vapier7f19c022007-02-17 14:46:31 +00008170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8171 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 +00008172 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008173 ;;
8174
vapier7f19c022007-02-17 14:46:31 +00008175 sysv5* | sco3.2v5* | sco5v6*)
8176 # Note: We can NOT use -z defs as we might desire, because we do not
8177 # link with -lc, and that would cause any symbols used from libc to
8178 # always be unresolved, which means just about no library would
8179 # ever link correctly. If we're not using GNU ld we use -z text
8180 # though, which does catch some bad symbols but isn't as heavy-handed
8181 # as -z defs.
8182 no_undefined_flag='${wl}-z,text'
8183 allow_undefined_flag='${wl}-z,nodefs'
8184 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008185 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008186 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008187 hardcode_libdir_separator=':'
8188 link_all_deplibs=yes
8189 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008190 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008191
8192 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008195 else
mlcreech636a9952008-05-05 22:52:56 +00008196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008198 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008199 ;;
8200
8201 uts4*)
8202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8203 hardcode_libdir_flag_spec='-L$libdir'
8204 hardcode_shlibpath_var=no
8205 ;;
8206
8207 *)
8208 ld_shlibs=no
8209 ;;
8210 esac
mlcreech636a9952008-05-05 22:52:56 +00008211
8212 if test x$host_vendor = xsni; then
8213 case $host in
8214 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8215 export_dynamic_flag_spec='${wl}-Blargedynsym'
8216 ;;
8217 esac
8218 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008219 fi
8220
drhf922ca42015-05-14 15:39:18 +00008221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008222$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008223test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008224
mlcreech636a9952008-05-05 22:52:56 +00008225with_gnu_ld=$with_gnu_ld
8226
8227
danielk197733a14782008-08-04 14:50:05 +00008228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
a.rottmann9bc8b932004-02-29 15:18:31 +00008241#
8242# Do we need to explicitly link libc?
8243#
8244case "x$archive_cmds_need_lc" in
8245x|xyes)
8246 # Assume -lc should be added
8247 archive_cmds_need_lc=yes
8248
8249 if test "$enable_shared" = yes && test "$GCC" = yes; then
8250 case $archive_cmds in
8251 *'~'*)
8252 # FIXME: we may have to deal with multi-command sequences.
8253 ;;
8254 '$CC '*)
8255 # Test whether the compiler implicitly links with -lc since on some
8256 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8257 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008259$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008260 $RM conftest*
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008262
drhf922ca42015-05-14 15:39:18 +00008263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008264 (eval $ac_compile) 2>&5
8265 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008268 soname=conftest
8269 lib=conftest
8270 libobjs=conftest.$ac_objext
8271 deplibs=
8272 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008273 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008274 compiler_flags=-v
8275 linker_flags=-v
8276 verstring=
8277 output_objdir=.
8278 libname=conftest
8279 lt_save_allow_undefined_flag=$allow_undefined_flag
8280 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008282 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8285 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008286 then
8287 archive_cmds_need_lc=no
8288 else
8289 archive_cmds_need_lc=yes
8290 fi
8291 allow_undefined_flag=$lt_save_allow_undefined_flag
8292 else
8293 cat conftest.err 1>&5
8294 fi
mlcreech636a9952008-05-05 22:52:56 +00008295 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008297$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008298 ;;
8299 esac
drh71eb93e2001-09-28 01:34:43 +00008300 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008301 ;;
8302esac
drh71eb93e2001-09-28 01:34:43 +00008303
mlcreech636a9952008-05-05 22:52:56 +00008304
danielk197733a14782008-08-04 14:50:05 +00008305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
drhf922ca42015-05-14 15:39:18 +00008460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008461$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008462
8463if test "$GCC" = yes; then
8464 case $host_os in
8465 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8466 *) lt_awk_arg="/^libraries:/" ;;
8467 esac
8468 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8469 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8470 # if the path contains ";" then we assume it to be the separator
8471 # otherwise default to the standard path separator (i.e. ":") - it is
8472 # assumed that no part of a normal pathname contains ";" but that should
8473 # okay in the real world where ";" in dirpaths is itself problematic.
8474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8475 else
8476 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8477 fi
8478 # Ok, now we have the path, separated by spaces, we can step through it
8479 # and add multilib dir if necessary.
8480 lt_tmp_lt_search_path_spec=
8481 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8482 for lt_sys_path in $lt_search_path_spec; do
8483 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8485 else
8486 test -d "$lt_sys_path" && \
8487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8488 fi
8489 done
8490 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8491BEGIN {RS=" "; FS="/|\n";} {
8492 lt_foo="";
8493 lt_count=0;
8494 for (lt_i = NF; lt_i > 0; lt_i--) {
8495 if ($lt_i != "" && $lt_i != ".") {
8496 if ($lt_i == "..") {
8497 lt_count++;
8498 } else {
8499 if (lt_count == 0) {
8500 lt_foo="/" $lt_i lt_foo;
8501 } else {
8502 lt_count--;
8503 }
8504 }
8505 }
8506 }
8507 if (lt_foo != "") { lt_freq[lt_foo]++; }
8508 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8509}'`
8510 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8511else
8512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8513fi
drh71eb93e2001-09-28 01:34:43 +00008514library_names_spec=
8515libname_spec='lib$name'
8516soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008517shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008518postinstall_cmds=
8519postuninstall_cmds=
8520finish_cmds=
8521finish_eval=
8522shlibpath_var=
8523shlibpath_overrides_runpath=unknown
8524version_type=none
8525dynamic_linker="$host_os ld.so"
8526sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008527need_lib_prefix=unknown
8528hardcode_into_libs=no
8529
8530# when you set need_version to no, make sure it does not cause -set_version
8531# flags to be left without arguments
8532need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008533
8534case $host_os in
8535aix3*)
8536 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008538 shlibpath_var=LIBPATH
8539
a.rottmann9bc8b932004-02-29 15:18:31 +00008540 # AIX 3 has no versioning support, so we append a major version to the name.
8541 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008542 ;;
8543
mlcreech636a9952008-05-05 22:52:56 +00008544aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008545 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008546 need_lib_prefix=no
8547 need_version=no
8548 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008549 if test "$host_cpu" = ia64; then
8550 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008552 shlibpath_var=LD_LIBRARY_PATH
8553 else
8554 # With GCC up to 2.95.x, collect2 would create an import file
8555 # for dependence libraries. The import file would start with
8556 # the line `#! .'. This would cause the generated library to
8557 # depend on `.', always an invalid library. This was fixed in
8558 # development snapshots of GCC prior to 3.0.
8559 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008560 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8562 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008564 :
8565 else
8566 can_build_shared=no
8567 fi
8568 ;;
drh71eb93e2001-09-28 01:34:43 +00008569 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8571 # soname into executable. Probably we can add versioning support to
8572 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008573 if test "$aix_use_runtimelinking" = yes; then
8574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8575 # instead of lib<name>.a to let people know that these are not
8576 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008578 else
8579 # We preserve .a as extension for shared libraries through AIX4.2
8580 # and later when we are not doing run time linking.
8581 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008582 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008583 fi
8584 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008585 fi
8586 ;;
8587
8588amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008589 case $host_cpu in
8590 powerpc)
8591 # Since July 2007 AmigaOS4 officially supports .so libraries.
8592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 ;;
8595 m68k)
8596 library_names_spec='$libname.ixlibrary $libname.a'
8597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8598 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'
8599 ;;
8600 esac
drh71eb93e2001-09-28 01:34:43 +00008601 ;;
8602
8603beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008604 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008605 dynamic_linker="$host_os ld.so"
8606 shlibpath_var=LIBRARY_PATH
8607 ;;
8608
vapier7f19c022007-02-17 14:46:31 +00008609bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008610 version_type=linux
8611 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8613 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8615 shlibpath_var=LD_LIBRARY_PATH
8616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8618 # the default ld.so.conf also contains /usr/contrib/lib and
8619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8620 # libtool to hard-code these into programs
8621 ;;
8622
vapier6acb2cf2009-01-28 04:46:28 +00008623cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008624 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008625 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008626 need_version=no
8627 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008628
drh71eb93e2001-09-28 01:34:43 +00008629 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008631 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8633 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008635 dldir=$destdir/`dirname \$dlpath`~
8636 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008637 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008638 chmod a+x \$dldir/$dlname~
8639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8641 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008643 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008644 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008645 shlibpath_overrides_runpath=yes
8646
8647 case $host_os in
8648 cygwin*)
8649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8652 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008653 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008654 # MinGW DLLs use traditional 'lib' prefix
8655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008656 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8657 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008658 # It is most probably a Windows format PATH printed by
8659 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8660 # path with ; separators, and with drive letters. We can handle the
8661 # drive letters (cygwin fileutils understands them), so leave them,
8662 # especially as we might pass files found there to a mingw objdump,
8663 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008665 else
mlcreech636a9952008-05-05 22:52:56 +00008666 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008667 fi
8668 ;;
8669 pw32*)
8670 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008671 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 +00008672 ;;
8673 esac
drh71eb93e2001-09-28 01:34:43 +00008674 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008675
drh71eb93e2001-09-28 01:34:43 +00008676 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008678 ;;
8679 esac
8680 dynamic_linker='Win32 ld.exe'
8681 # FIXME: first we should search . and the directory the executable is in
8682 shlibpath_var=PATH
8683 ;;
8684
8685darwin* | rhapsody*)
8686 dynamic_linker="$host_os dyld"
8687 version_type=darwin
8688 need_lib_prefix=no
8689 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008690 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008691 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008692 shlibpath_overrides_runpath=yes
8693 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008695
8696 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008697 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8698 ;;
8699
8700dgux*)
8701 version_type=linux
8702 need_lib_prefix=no
8703 need_version=no
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8705 soname_spec='${libname}${release}${shared_ext}$major'
8706 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008707 ;;
8708
a.rottmann84e63352003-03-24 09:42:16 +00008709freebsd1*)
8710 dynamic_linker=no
8711 ;;
8712
vapier7f19c022007-02-17 14:46:31 +00008713freebsd* | dragonfly*)
8714 # DragonFly does not have aout. When/if they implement a new
8715 # versioning mechanism, adjust this.
8716 if test -x /usr/bin/objformat; then
8717 objformat=`/usr/bin/objformat`
8718 else
8719 case $host_os in
8720 freebsd[123]*) objformat=aout ;;
8721 *) objformat=elf ;;
8722 esac
8723 fi
8724 # Handle Gentoo/FreeBSD as it was Linux
8725 case $host_vendor in
8726 gentoo)
8727 version_type=linux ;;
8728 *)
8729 version_type=freebsd-$objformat ;;
8730 esac
8731
drh71eb93e2001-09-28 01:34:43 +00008732 case $version_type in
8733 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008735 need_version=no
8736 need_lib_prefix=no
8737 ;;
8738 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008740 need_version=yes
8741 ;;
vapier7f19c022007-02-17 14:46:31 +00008742 linux)
8743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8744 soname_spec='${libname}${release}${shared_ext}$major'
8745 need_lib_prefix=no
8746 need_version=no
8747 ;;
drh71eb93e2001-09-28 01:34:43 +00008748 esac
8749 shlibpath_var=LD_LIBRARY_PATH
8750 case $host_os in
8751 freebsd2*)
8752 shlibpath_overrides_runpath=yes
8753 ;;
vapier7f19c022007-02-17 14:46:31 +00008754 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008755 shlibpath_overrides_runpath=yes
8756 hardcode_into_libs=yes
8757 ;;
vapier7f19c022007-02-17 14:46:31 +00008758 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8759 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008760 shlibpath_overrides_runpath=no
8761 hardcode_into_libs=yes
8762 ;;
mlcreech636a9952008-05-05 22:52:56 +00008763 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008764 shlibpath_overrides_runpath=yes
8765 hardcode_into_libs=yes
8766 ;;
drh71eb93e2001-09-28 01:34:43 +00008767 esac
8768 ;;
8769
8770gnu*)
8771 version_type=linux
8772 need_lib_prefix=no
8773 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008776 shlibpath_var=LD_LIBRARY_PATH
8777 hardcode_into_libs=yes
8778 ;;
8779
8780hpux9* | hpux10* | hpux11*)
8781 # Give a soname corresponding to the major version so that dld.sl refuses to
8782 # link against other versions.
8783 version_type=sunos
8784 need_lib_prefix=no
8785 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008786 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008787 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008788 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 hardcode_into_libs=yes
8790 dynamic_linker="$host_os dld.so"
8791 shlibpath_var=LD_LIBRARY_PATH
8792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 if test "X$HPUX_IA64_MODE" = X32; then
8796 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8797 else
8798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8799 fi
8800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8801 ;;
mlcreech636a9952008-05-05 22:52:56 +00008802 hppa*64*)
8803 shrext_cmds='.sl'
8804 hardcode_into_libs=yes
8805 dynamic_linker="$host_os dld.sl"
8806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8809 soname_spec='${libname}${release}${shared_ext}$major'
8810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8812 ;;
8813 *)
vapier7f19c022007-02-17 14:46:31 +00008814 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008815 dynamic_linker="$host_os dld.sl"
8816 shlibpath_var=SHLIB_PATH
8817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 ;;
8821 esac
drh71eb93e2001-09-28 01:34:43 +00008822 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8823 postinstall_cmds='chmod 555 $lib'
8824 ;;
8825
mlcreech636a9952008-05-05 22:52:56 +00008826interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008827 version_type=linux
8828 need_lib_prefix=no
8829 need_version=no
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8833 shlibpath_var=LD_LIBRARY_PATH
8834 shlibpath_overrides_runpath=no
8835 hardcode_into_libs=yes
8836 ;;
8837
a.rottmann84e63352003-03-24 09:42:16 +00008838irix5* | irix6* | nonstopux*)
8839 case $host_os in
8840 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008841 *)
8842 if test "$lt_cv_prog_gnu_ld" = yes; then
8843 version_type=linux
8844 else
8845 version_type=irix
8846 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008847 esac
drh71eb93e2001-09-28 01:34:43 +00008848 need_lib_prefix=no
8849 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008850 soname_spec='${libname}${release}${shared_ext}$major'
8851 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 +00008852 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008853 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008854 libsuff= shlibsuff=
8855 ;;
8856 *)
8857 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008858 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8859 libsuff= shlibsuff= libmagic=32-bit;;
8860 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8861 libsuff=32 shlibsuff=N32 libmagic=N32;;
8862 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8863 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008864 *) libsuff= shlibsuff= libmagic=never-match;;
8865 esac
8866 ;;
8867 esac
8868 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8869 shlibpath_overrides_runpath=no
8870 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8871 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008872 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008873 ;;
8874
8875# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008876linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008877 dynamic_linker=no
8878 ;;
8879
8880# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008881linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008882 version_type=linux
8883 need_lib_prefix=no
8884 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008890 # Some binutils ld are patched to set DT_RUNPATH
8891 save_LDFLAGS=$LDFLAGS
8892 save_libdir=$libdir
8893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008896/* end confdefs.h. */
8897
8898int
8899main ()
8900{
8901
8902 ;
8903 return 0;
8904}
8905_ACEOF
drhf922ca42015-05-14 15:39:18 +00008906if ac_fn_c_try_link "$LINENO"; then :
8907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008908 shlibpath_overrides_runpath=yes
8909fi
mlcreech636a9952008-05-05 22:52:56 +00008910fi
drhf922ca42015-05-14 15:39:18 +00008911rm -f core conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008913 LDFLAGS=$save_LDFLAGS
8914 libdir=$save_libdir
8915
drh71eb93e2001-09-28 01:34:43 +00008916 # This implies no fast_install, which is unacceptable.
8917 # Some rework will be needed to allow for fast_install
8918 # before this can be enabled.
8919 hardcode_into_libs=yes
8920
a.rottmann9bc8b932004-02-29 15:18:31 +00008921 # Append ld.so.conf contents to the search path
8922 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008923 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 +00008924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008925 fi
8926
drh71eb93e2001-09-28 01:34:43 +00008927 # We used to test for /lib/ld.so.1 and disable shared libraries on
8928 # powerpc, because MkLinux only supported shared libraries with the
8929 # GNU dynamic linker. Since this was broken with cross compilers,
8930 # most powerpc-linux boxes support dynamic linking these days and
8931 # people can always --disable-shared, the test was removed, and we
8932 # assume the GNU/Linux dynamic linker is in use.
8933 dynamic_linker='GNU/Linux ld.so'
8934 ;;
8935
8936netbsd*)
8937 version_type=sunos
8938 need_lib_prefix=no
8939 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8943 dynamic_linker='NetBSD (a.out) ld.so'
8944 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008947 dynamic_linker='NetBSD ld.elf_so'
8948 fi
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 hardcode_into_libs=yes
8952 ;;
8953
8954newsos6)
8955 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 ;;
8960
mlcreech636a9952008-05-05 22:52:56 +00008961*nto* | *qnx*)
8962 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008963 need_lib_prefix=no
8964 need_version=no
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8966 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008967 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008968 shlibpath_overrides_runpath=no
8969 hardcode_into_libs=yes
8970 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008971 ;;
8972
drh71eb93e2001-09-28 01:34:43 +00008973openbsd*)
8974 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008975 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008976 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8978 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8980 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008981 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008985 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 +00008986 case $host_os in
8987 openbsd2.[89] | openbsd2.[89].*)
8988 shlibpath_overrides_runpath=no
8989 ;;
8990 *)
8991 shlibpath_overrides_runpath=yes
8992 ;;
8993 esac
a.rottmann84e63352003-03-24 09:42:16 +00008994 else
8995 shlibpath_overrides_runpath=yes
8996 fi
drh71eb93e2001-09-28 01:34:43 +00008997 ;;
8998
8999os2*)
9000 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009001 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009002 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009003 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009004 dynamic_linker='OS/2 ld.exe'
9005 shlibpath_var=LIBPATH
9006 ;;
9007
9008osf3* | osf4* | osf5*)
9009 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009010 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009011 need_version=no
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009014 shlibpath_var=LD_LIBRARY_PATH
9015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9017 ;;
9018
mlcreech636a9952008-05-05 22:52:56 +00009019rdos*)
9020 dynamic_linker=no
9021 ;;
9022
drh71eb93e2001-09-28 01:34:43 +00009023solaris*)
9024 version_type=linux
9025 need_lib_prefix=no
9026 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9028 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009029 shlibpath_var=LD_LIBRARY_PATH
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9032 # ldd complains unless libraries are executable
9033 postinstall_cmds='chmod +x $lib'
9034 ;;
9035
9036sunos4*)
9037 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9042 if test "$with_gnu_ld" = yes; then
9043 need_lib_prefix=no
9044 fi
9045 need_version=yes
9046 ;;
9047
vapier7f19c022007-02-17 14:46:31 +00009048sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009049 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009052 shlibpath_var=LD_LIBRARY_PATH
9053 case $host_vendor in
9054 sni)
9055 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009056 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009057 runpath_var=LD_RUN_PATH
9058 ;;
9059 siemens)
9060 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009061 ;;
9062 motorola)
9063 need_lib_prefix=no
9064 need_version=no
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9067 ;;
9068 esac
9069 ;;
9070
9071sysv4*MP*)
9072 if test -d /usr/nec ;then
9073 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9075 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009076 shlibpath_var=LD_LIBRARY_PATH
9077 fi
9078 ;;
9079
vapier7f19c022007-02-17 14:46:31 +00009080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9081 version_type=freebsd-elf
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009087 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009088 hardcode_into_libs=yes
9089 if test "$with_gnu_ld" = yes; then
9090 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009091 else
9092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009093 case $host_os in
9094 sco3.2v5*)
9095 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9096 ;;
9097 esac
9098 fi
9099 sys_lib_dlsearch_path_spec='/usr/lib'
9100 ;;
9101
mlcreech636a9952008-05-05 22:52:56 +00009102tpf*)
9103 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9104 version_type=linux
9105 need_lib_prefix=no
9106 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=no
9110 hardcode_into_libs=yes
9111 ;;
9112
a.rottmann9bc8b932004-02-29 15:18:31 +00009113uts4*)
9114 version_type=linux
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 shlibpath_var=LD_LIBRARY_PATH
9118 ;;
9119
drh71eb93e2001-09-28 01:34:43 +00009120*)
9121 dynamic_linker=no
9122 ;;
9123esac
drhf922ca42015-05-14 15:39:18 +00009124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009125$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009126test "$dynamic_linker" = no && can_build_shared=no
9127
vapier7f19c022007-02-17 14:46:31 +00009128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9129if test "$GCC" = yes; then
9130 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9131fi
9132
mlcreech636a9952008-05-05 22:52:56 +00009133if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9134 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9135fi
9136if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9137 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9138fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
drhf922ca42015-05-14 15:39:18 +00009226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009228hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009229if test -n "$hardcode_libdir_flag_spec" ||
9230 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009231 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009232
mlcreech636a9952008-05-05 22:52:56 +00009233 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009234 if test "$hardcode_direct" != no &&
9235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9236 # have to relink, otherwise we might link with an installed library
9237 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009239 test "$hardcode_minus_L" != no; then
9240 # Linking always hardcodes the temporary library directory.
9241 hardcode_action=relink
9242 else
9243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9244 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009245 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009246else
9247 # We cannot hardcode anything, or else we can only hardcode existing
9248 # directories.
9249 hardcode_action=unsupported
9250fi
drhf922ca42015-05-14 15:39:18 +00009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009252$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009253
mlcreech636a9952008-05-05 22:52:56 +00009254if test "$hardcode_action" = relink ||
9255 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009256 # Fast installation is not supported
9257 enable_fast_install=no
9258elif test "$shlibpath_overrides_runpath" = yes ||
9259 test "$enable_shared" = no; then
9260 # Fast installation is not necessary
9261 enable_fast_install=needless
9262fi
9263
a.rottmann84e63352003-03-24 09:42:16 +00009264
mlcreech636a9952008-05-05 22:52:56 +00009265
9266
9267
9268
9269 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009270 enable_dlopen=unknown
9271 enable_dlopen_self=unknown
9272 enable_dlopen_self_static=unknown
9273else
9274 lt_cv_dlopen=no
9275 lt_cv_dlopen_libs=
9276
9277 case $host_os in
9278 beos*)
9279 lt_cv_dlopen="load_add_on"
9280 lt_cv_dlopen_libs=
9281 lt_cv_dlopen_self=yes
9282 ;;
9283
vapier6acb2cf2009-01-28 04:46:28 +00009284 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009285 lt_cv_dlopen="LoadLibrary"
9286 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009287 ;;
drh71eb93e2001-09-28 01:34:43 +00009288
a.rottmann9bc8b932004-02-29 15:18:31 +00009289 cygwin*)
9290 lt_cv_dlopen="dlopen"
9291 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009292 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009293
9294 darwin*)
9295 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009297$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009298if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009299 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009300else
9301 ac_check_lib_save_LIBS=$LIBS
9302LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009304/* end confdefs.h. */
9305
drh8b727472009-01-19 18:18:40 +00009306/* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009309#ifdef __cplusplus
9310extern "C"
9311#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009312char dlopen ();
9313int
9314main ()
9315{
drh8b727472009-01-19 18:18:40 +00009316return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009317 ;
9318 return 0;
9319}
9320_ACEOF
drhf922ca42015-05-14 15:39:18 +00009321if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009322 ac_cv_lib_dl_dlopen=yes
9323else
drhf922ca42015-05-14 15:39:18 +00009324 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009325fi
drhf922ca42015-05-14 15:39:18 +00009326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009328LIBS=$ac_check_lib_save_LIBS
9329fi
drhf922ca42015-05-14 15:39:18 +00009330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009332if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9334else
9335
9336 lt_cv_dlopen="dyld"
9337 lt_cv_dlopen_libs=
9338 lt_cv_dlopen_self=yes
9339
9340fi
9341
mlcreech636a9952008-05-05 22:52:56 +00009342 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009343
drh71eb93e2001-09-28 01:34:43 +00009344 *)
drhf922ca42015-05-14 15:39:18 +00009345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9346if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009347 lt_cv_dlopen="shl_load"
9348else
drhf922ca42015-05-14 15:39:18 +00009349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009350$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009351if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009352 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009353else
9354 ac_check_lib_save_LIBS=$LIBS
9355LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009357/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009358
drh8b727472009-01-19 18:18:40 +00009359/* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009362#ifdef __cplusplus
9363extern "C"
9364#endif
drh71eb93e2001-09-28 01:34:43 +00009365char shl_load ();
9366int
9367main ()
9368{
drh8b727472009-01-19 18:18:40 +00009369return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009370 ;
9371 return 0;
9372}
9373_ACEOF
drhf922ca42015-05-14 15:39:18 +00009374if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009375 ac_cv_lib_dld_shl_load=yes
9376else
drhf922ca42015-05-14 15:39:18 +00009377 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009378fi
drhf922ca42015-05-14 15:39:18 +00009379rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009381LIBS=$ac_check_lib_save_LIBS
9382fi
drhf922ca42015-05-14 15:39:18 +00009383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009384$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009385if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009387else
drhf922ca42015-05-14 15:39:18 +00009388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9389if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009390 lt_cv_dlopen="dlopen"
9391else
drhf922ca42015-05-14 15:39:18 +00009392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009393$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009394if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009395 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009396else
9397 ac_check_lib_save_LIBS=$LIBS
9398LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009400/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009401
drh8b727472009-01-19 18:18:40 +00009402/* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009405#ifdef __cplusplus
9406extern "C"
9407#endif
drh71eb93e2001-09-28 01:34:43 +00009408char dlopen ();
9409int
9410main ()
9411{
drh8b727472009-01-19 18:18:40 +00009412return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009413 ;
9414 return 0;
9415}
9416_ACEOF
drhf922ca42015-05-14 15:39:18 +00009417if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009418 ac_cv_lib_dl_dlopen=yes
9419else
drhf922ca42015-05-14 15:39:18 +00009420 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009421fi
drhf922ca42015-05-14 15:39:18 +00009422rm -f core conftest.err conftest.$ac_objext \
9423 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009424LIBS=$ac_check_lib_save_LIBS
9425fi
drhf922ca42015-05-14 15:39:18 +00009426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9430else
drhf922ca42015-05-14 15:39:18 +00009431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009432$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009433if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009434 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009435else
9436 ac_check_lib_save_LIBS=$LIBS
9437LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009439/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009440
drh8b727472009-01-19 18:18:40 +00009441/* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009444#ifdef __cplusplus
9445extern "C"
9446#endif
drh71eb93e2001-09-28 01:34:43 +00009447char dlopen ();
9448int
9449main ()
9450{
drh8b727472009-01-19 18:18:40 +00009451return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009452 ;
9453 return 0;
9454}
9455_ACEOF
drhf922ca42015-05-14 15:39:18 +00009456if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009457 ac_cv_lib_svld_dlopen=yes
9458else
drhf922ca42015-05-14 15:39:18 +00009459 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009460fi
drhf922ca42015-05-14 15:39:18 +00009461rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009463LIBS=$ac_check_lib_save_LIBS
9464fi
drhf922ca42015-05-14 15:39:18 +00009465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009466$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009467if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009469else
drhf922ca42015-05-14 15:39:18 +00009470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009471$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009472if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009473 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009474else
9475 ac_check_lib_save_LIBS=$LIBS
9476LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009478/* end confdefs.h. */
9479
drh8b727472009-01-19 18:18:40 +00009480/* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009483#ifdef __cplusplus
9484extern "C"
9485#endif
a.rottmann84e63352003-03-24 09:42:16 +00009486char dld_link ();
9487int
9488main ()
9489{
drh8b727472009-01-19 18:18:40 +00009490return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009491 ;
9492 return 0;
9493}
9494_ACEOF
drhf922ca42015-05-14 15:39:18 +00009495if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009496 ac_cv_lib_dld_dld_link=yes
9497else
drhf922ca42015-05-14 15:39:18 +00009498 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009499fi
drhf922ca42015-05-14 15:39:18 +00009500rm -f core conftest.err conftest.$ac_objext \
9501 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009502LIBS=$ac_check_lib_save_LIBS
9503fi
drhf922ca42015-05-14 15:39:18 +00009504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009505$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009506if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009508fi
9509
drh71eb93e2001-09-28 01:34:43 +00009510
9511fi
9512
drh71eb93e2001-09-28 01:34:43 +00009513
9514fi
9515
a.rottmann84e63352003-03-24 09:42:16 +00009516
9517fi
9518
9519
9520fi
9521
9522
drh71eb93e2001-09-28 01:34:43 +00009523fi
9524
9525 ;;
9526 esac
9527
9528 if test "x$lt_cv_dlopen" != xno; then
9529 enable_dlopen=yes
9530 else
9531 enable_dlopen=no
9532 fi
9533
9534 case $lt_cv_dlopen in
9535 dlopen)
9536 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009538
9539 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009541
9542 save_LIBS="$LIBS"
9543 LIBS="$lt_cv_dlopen_libs $LIBS"
9544
drhf922ca42015-05-14 15:39:18 +00009545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009546$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009547if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009548 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009549else
9550 if test "$cross_compiling" = yes; then :
9551 lt_cv_dlopen_self=cross
9552else
a.rottmann9bc8b932004-02-29 15:18:31 +00009553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009554 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009555 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009556#line 9556 "configure"
drh71eb93e2001-09-28 01:34:43 +00009557#include "confdefs.h"
9558
9559#if HAVE_DLFCN_H
9560#include <dlfcn.h>
9561#endif
9562
9563#include <stdio.h>
9564
9565#ifdef RTLD_GLOBAL
9566# define LT_DLGLOBAL RTLD_GLOBAL
9567#else
9568# ifdef DL_GLOBAL
9569# define LT_DLGLOBAL DL_GLOBAL
9570# else
9571# define LT_DLGLOBAL 0
9572# endif
9573#endif
9574
9575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9576 find out it does not work in some platform. */
9577#ifndef LT_DLLAZY_OR_NOW
9578# ifdef RTLD_LAZY
9579# define LT_DLLAZY_OR_NOW RTLD_LAZY
9580# else
9581# ifdef DL_LAZY
9582# define LT_DLLAZY_OR_NOW DL_LAZY
9583# else
9584# ifdef RTLD_NOW
9585# define LT_DLLAZY_OR_NOW RTLD_NOW
9586# else
9587# ifdef DL_NOW
9588# define LT_DLLAZY_OR_NOW DL_NOW
9589# else
9590# define LT_DLLAZY_OR_NOW 0
9591# endif
9592# endif
9593# endif
9594# endif
9595#endif
9596
drh71eb93e2001-09-28 01:34:43 +00009597void fnord() { int i=42;}
9598int main ()
9599{
9600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9601 int status = $lt_dlunknown;
9602
9603 if (self)
9604 {
9605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9606 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9607 /* dlclose (self); */
9608 }
vapier7f19c022007-02-17 14:46:31 +00009609 else
9610 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009611
vapier6acb2cf2009-01-28 04:46:28 +00009612 return status;
drh71eb93e2001-09-28 01:34:43 +00009613}
mlcreech636a9952008-05-05 22:52:56 +00009614_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009616 (eval $ac_link) 2>&5
9617 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009620 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009621 lt_status=$?
9622 case x$lt_status in
9623 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9624 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009625 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009626 esac
9627 else :
9628 # compilation failed
9629 lt_cv_dlopen_self=no
9630 fi
9631fi
9632rm -fr conftest*
9633
a.rottmann84e63352003-03-24 09:42:16 +00009634
drh71eb93e2001-09-28 01:34:43 +00009635fi
drhf922ca42015-05-14 15:39:18 +00009636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009637$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009638
9639 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009640 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009642$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009643if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009644 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009645else
9646 if test "$cross_compiling" = yes; then :
9647 lt_cv_dlopen_self_static=cross
9648else
a.rottmann9bc8b932004-02-29 15:18:31 +00009649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009650 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009651 cat > conftest.$ac_ext <<_LT_EOF
drhe2ce8c42020-12-07 21:19:17 +00009652#line 9652 "configure"
drh71eb93e2001-09-28 01:34:43 +00009653#include "confdefs.h"
9654
9655#if HAVE_DLFCN_H
9656#include <dlfcn.h>
9657#endif
9658
9659#include <stdio.h>
9660
9661#ifdef RTLD_GLOBAL
9662# define LT_DLGLOBAL RTLD_GLOBAL
9663#else
9664# ifdef DL_GLOBAL
9665# define LT_DLGLOBAL DL_GLOBAL
9666# else
9667# define LT_DLGLOBAL 0
9668# endif
9669#endif
9670
9671/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9672 find out it does not work in some platform. */
9673#ifndef LT_DLLAZY_OR_NOW
9674# ifdef RTLD_LAZY
9675# define LT_DLLAZY_OR_NOW RTLD_LAZY
9676# else
9677# ifdef DL_LAZY
9678# define LT_DLLAZY_OR_NOW DL_LAZY
9679# else
9680# ifdef RTLD_NOW
9681# define LT_DLLAZY_OR_NOW RTLD_NOW
9682# else
9683# ifdef DL_NOW
9684# define LT_DLLAZY_OR_NOW DL_NOW
9685# else
9686# define LT_DLLAZY_OR_NOW 0
9687# endif
9688# endif
9689# endif
9690# endif
9691#endif
9692
drh71eb93e2001-09-28 01:34:43 +00009693void fnord() { int i=42;}
9694int main ()
9695{
9696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9697 int status = $lt_dlunknown;
9698
9699 if (self)
9700 {
9701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9703 /* dlclose (self); */
9704 }
vapier7f19c022007-02-17 14:46:31 +00009705 else
9706 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009707
vapier6acb2cf2009-01-28 04:46:28 +00009708 return status;
drh71eb93e2001-09-28 01:34:43 +00009709}
mlcreech636a9952008-05-05 22:52:56 +00009710_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009712 (eval $ac_link) 2>&5
9713 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009716 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009717 lt_status=$?
9718 case x$lt_status in
9719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009721 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009722 esac
9723 else :
9724 # compilation failed
9725 lt_cv_dlopen_self_static=no
9726 fi
9727fi
9728rm -fr conftest*
9729
a.rottmann84e63352003-03-24 09:42:16 +00009730
drh71eb93e2001-09-28 01:34:43 +00009731fi
drhf922ca42015-05-14 15:39:18 +00009732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009733$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009734 fi
9735
9736 CPPFLAGS="$save_CPPFLAGS"
9737 LDFLAGS="$save_LDFLAGS"
9738 LIBS="$save_LIBS"
9739 ;;
9740 esac
9741
9742 case $lt_cv_dlopen_self in
9743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9744 *) enable_dlopen_self=unknown ;;
9745 esac
9746
9747 case $lt_cv_dlopen_self_static in
9748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9749 *) enable_dlopen_self_static=unknown ;;
9750 esac
9751fi
9752
drh71eb93e2001-09-28 01:34:43 +00009753
drh71eb93e2001-09-28 01:34:43 +00009754
a.rottmann9bc8b932004-02-29 15:18:31 +00009755
a.rottmann9bc8b932004-02-29 15:18:31 +00009756
mlcreech636a9952008-05-05 22:52:56 +00009757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769striplib=
9770old_striplib=
drhf922ca42015-05-14 15:39:18 +00009771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009772$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009773if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9774 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9775 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009777$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009778else
9779# FIXME - insert some real tests, host_os isn't really good enough
9780 case $host_os in
9781 darwin*)
9782 if test -n "$STRIP" ; then
9783 striplib="$STRIP -x"
9784 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009786$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009787 else
drhf922ca42015-05-14 15:39:18 +00009788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009789$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009790 fi
a.rottmann84e63352003-03-24 09:42:16 +00009791 ;;
mlcreech636a9952008-05-05 22:52:56 +00009792 *)
drhf922ca42015-05-14 15:39:18 +00009793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009794$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009795 ;;
9796 esac
mlcreech636a9952008-05-05 22:52:56 +00009797fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009798
a.rottmann9bc8b932004-02-29 15:18:31 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
a.rottmann84e63352003-03-24 09:42:16 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
a.rottmann9bc8b932004-02-29 15:18:31 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
drh71eb93e2001-09-28 01:34:43 +00009807
drh71eb93e2001-09-28 01:34:43 +00009808
drh71eb93e2001-09-28 01:34:43 +00009809
mlcreech636a9952008-05-05 22:52:56 +00009810 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009812$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009814$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009815
drhf922ca42015-05-14 15:39:18 +00009816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009817$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009818 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009819
mlcreech636a9952008-05-05 22:52:56 +00009820 # On AIX, shared libraries and static libraries use the same namespace, and
9821 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009822 case $host_os in
9823 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009824 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009825 if test -n "$RANLIB"; then
9826 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9827 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009828 fi
9829 ;;
9830
mlcreech636a9952008-05-05 22:52:56 +00009831 aix[4-9]*)
9832 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9833 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009834 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009835 ;;
9836 esac
drhf922ca42015-05-14 15:39:18 +00009837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009838$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009839
drhf922ca42015-05-14 15:39:18 +00009840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009841$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009842 # Make sure either enable_shared or enable_static is yes.
9843 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009845$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
vapier7f19c022007-02-17 14:46:31 +00009850fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009851ac_ext=c
9852ac_cpp='$CPP $CPPFLAGS'
9853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9855ac_compiler_gnu=$ac_cv_c_compiler_gnu
9856
9857CC="$lt_save_CC"
9858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
9861
a.rottmann9bc8b932004-02-29 15:18:31 +00009862
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
a.rottmann9bc8b932004-02-29 15:18:31 +00009864
a.rottmann9bc8b932004-02-29 15:18:31 +00009865
a.rottmann9bc8b932004-02-29 15:18:31 +00009866
a.rottmann9bc8b932004-02-29 15:18:31 +00009867
vapier7f19c022007-02-17 14:46:31 +00009868
a.rottmann9bc8b932004-02-29 15:18:31 +00009869
9870
drh8b727472009-01-19 18:18:40 +00009871 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009872
vapier7f19c022007-02-17 14:46:31 +00009873
9874
vapier7f19c022007-02-17 14:46:31 +00009875
mlcreech636a9952008-05-05 22:52:56 +00009876# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009877
9878
drh71eb93e2001-09-28 01:34:43 +00009879# Find a good install program. We prefer a C program (faster),
9880# so one script is as good as another. But avoid the broken or
9881# incompatible versions:
9882# SysV /etc/install, /usr/sbin/install
9883# SunOS /usr/etc/install
9884# IRIX /sbin/install
9885# AIX /bin/install
9886# AmigaOS /C/install, which installs bootblocks on floppy discs
9887# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9888# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9889# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009890# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009891# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009892# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009894$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009895if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009896if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009897 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009898else
a.rottmann84e63352003-03-24 09:42:16 +00009899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009904 # Account for people who put trailing slashes in PATH elements.
9905case $as_dir/ in #((
9906 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009909 /usr/ucb/* ) ;;
9910 *)
9911 # OSF1 and SCO ODT 3.0 have their own names for install.
9912 # Don't use installbsd from OSF since it installs stuff as root
9913 # by default.
9914 for ac_prog in ginstall scoinst install; do
9915 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009916 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009917 if test $ac_prog = install &&
9918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9919 # AIX install. It has an incompatible calling convention.
9920 :
9921 elif test $ac_prog = install &&
9922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9923 # program-specific install script used by HP pwplus--don't use.
9924 :
9925 else
drh8b727472009-01-19 18:18:40 +00009926 rm -rf conftest.one conftest.two conftest.dir
9927 echo one > conftest.one
9928 echo two > conftest.two
9929 mkdir conftest.dir
9930 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9931 test -s conftest.one && test -s conftest.two &&
9932 test -s conftest.dir/conftest.one &&
9933 test -s conftest.dir/conftest.two
9934 then
9935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9936 break 3
9937 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009938 fi
9939 fi
drh71eb93e2001-09-28 01:34:43 +00009940 done
a.rottmann84e63352003-03-24 09:42:16 +00009941 done
9942 ;;
9943esac
a.rottmann84e63352003-03-24 09:42:16 +00009944
drhf922ca42015-05-14 15:39:18 +00009945 done
drh8b727472009-01-19 18:18:40 +00009946IFS=$as_save_IFS
9947
9948rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009949
9950fi
9951 if test "${ac_cv_path_install+set}" = set; then
9952 INSTALL=$ac_cv_path_install
9953 else
drh8b727472009-01-19 18:18:40 +00009954 # As a last resort, use the slow shell script. Don't cache a
9955 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009956 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009957 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009958 INSTALL=$ac_install_sh
9959 fi
9960fi
drhf922ca42015-05-14 15:39:18 +00009961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009962$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009963
9964# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9965# It thinks the first close brace ends the variable substitution.
9966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9967
9968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9969
9970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9971
a.rottmann84e63352003-03-24 09:42:16 +00009972
drh75897232000-05-29 14:26:00 +00009973#########
mlcreech636a9952008-05-05 22:52:56 +00009974# Enable large file support (if special flags are necessary)
9975#
drh8b727472009-01-19 18:18:40 +00009976# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009977if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009978 enableval=$enable_largefile;
9979fi
mlcreech636a9952008-05-05 22:52:56 +00009980
9981if test "$enable_largefile" != no; then
9982
drhf922ca42015-05-14 15:39:18 +00009983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009984$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009985if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009986 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009987else
mlcreech636a9952008-05-05 22:52:56 +00009988 ac_cv_sys_largefile_CC=no
9989 if test "$GCC" != yes; then
9990 ac_save_CC=$CC
9991 while :; do
drh8b727472009-01-19 18:18:40 +00009992 # IRIX 6.2 and later do not support large files by default,
9993 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009995/* end confdefs.h. */
9996#include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010001#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10004 ? 1 : -1];
10005int
10006main ()
10007{
10008
10009 ;
10010 return 0;
10011}
10012_ACEOF
drhf922ca42015-05-14 15:39:18 +000010013 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010014 break
mlcreech636a9952008-05-05 22:52:56 +000010015fi
drh8b727472009-01-19 18:18:40 +000010016rm -f core conftest.err conftest.$ac_objext
10017 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010018 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010019 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010020fi
drh8b727472009-01-19 18:18:40 +000010021rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010022 break
10023 done
10024 CC=$ac_save_CC
10025 rm -f conftest.$ac_ext
10026 fi
10027fi
drhf922ca42015-05-14 15:39:18 +000010028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010029$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010030 if test "$ac_cv_sys_largefile_CC" != no; then
10031 CC=$CC$ac_cv_sys_largefile_CC
10032 fi
10033
drhf922ca42015-05-14 15:39:18 +000010034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010035$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010036if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010037 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010038else
10039 while :; do
drhf922ca42015-05-14 15:39:18 +000010040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010041/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010042#include <sys/types.h>
10043 /* Check that off_t can represent 2**63 - 1 correctly.
10044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10045 since some C++ compilers masquerading as C compilers
10046 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010047#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10049 && LARGE_OFF_T % 2147483647 == 1)
10050 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010051int
10052main ()
10053{
mlcreech636a9952008-05-05 22:52:56 +000010054
mlcreechb87057f2008-03-06 07:19:20 +000010055 ;
10056 return 0;
10057}
10058_ACEOF
drhf922ca42015-05-14 15:39:18 +000010059if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010060 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010061fi
drh8b727472009-01-19 18:18:40 +000010062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010064/* end confdefs.h. */
10065#define _FILE_OFFSET_BITS 64
10066#include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069 since some C++ compilers masquerading as C compilers
10070 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073 && LARGE_OFF_T % 2147483647 == 1)
10074 ? 1 : -1];
10075int
10076main ()
10077{
10078
10079 ;
10080 return 0;
10081}
10082_ACEOF
drhf922ca42015-05-14 15:39:18 +000010083if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010084 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010085fi
drh8b727472009-01-19 18:18:40 +000010086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010088 break
10089done
10090fi
drhf922ca42015-05-14 15:39:18 +000010091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010092$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10093case $ac_cv_sys_file_offset_bits in #(
10094 no | unknown) ;;
10095 *)
mlcreech636a9952008-05-05 22:52:56 +000010096cat >>confdefs.h <<_ACEOF
10097#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10098_ACEOF
drh8b727472009-01-19 18:18:40 +000010099;;
10100esac
10101rm -rf conftest*
10102 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010104$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010105if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010106 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010107else
10108 while :; do
drhf922ca42015-05-14 15:39:18 +000010109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010110/* end confdefs.h. */
10111#include <sys/types.h>
10112 /* Check that off_t can represent 2**63 - 1 correctly.
10113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10114 since some C++ compilers masquerading as C compilers
10115 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10118 && LARGE_OFF_T % 2147483647 == 1)
10119 ? 1 : -1];
10120int
10121main ()
10122{
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
drhf922ca42015-05-14 15:39:18 +000010128if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010129 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010130fi
drh8b727472009-01-19 18:18:40 +000010131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010133/* end confdefs.h. */
10134#define _LARGE_FILES 1
10135#include <sys/types.h>
10136 /* Check that off_t can represent 2**63 - 1 correctly.
10137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10138 since some C++ compilers masquerading as C compilers
10139 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10142 && LARGE_OFF_T % 2147483647 == 1)
10143 ? 1 : -1];
10144int
10145main ()
10146{
10147
10148 ;
10149 return 0;
10150}
10151_ACEOF
drhf922ca42015-05-14 15:39:18 +000010152if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010153 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010154fi
drh8b727472009-01-19 18:18:40 +000010155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010157 break
10158done
10159fi
drhf922ca42015-05-14 15:39:18 +000010160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010161$as_echo "$ac_cv_sys_large_files" >&6; }
10162case $ac_cv_sys_large_files in #(
10163 no | unknown) ;;
10164 *)
mlcreech636a9952008-05-05 22:52:56 +000010165cat >>confdefs.h <<_ACEOF
10166#define _LARGE_FILES $ac_cv_sys_large_files
10167_ACEOF
drh8b727472009-01-19 18:18:40 +000010168;;
10169esac
10170rm -rf conftest*
10171 fi
drhf922ca42015-05-14 15:39:18 +000010172
10173
mlcreech636a9952008-05-05 22:52:56 +000010174fi
10175
10176
10177#########
10178# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010179ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10180if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010181
10182cat >>confdefs.h <<_ACEOF
10183#define HAVE_INT8_T 1
10184_ACEOF
10185
10186
10187fi
drhf922ca42015-05-14 15:39:18 +000010188ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10189if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010190
10191cat >>confdefs.h <<_ACEOF
10192#define HAVE_INT16_T 1
10193_ACEOF
10194
10195
10196fi
drhf922ca42015-05-14 15:39:18 +000010197ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10198if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010199
10200cat >>confdefs.h <<_ACEOF
10201#define HAVE_INT32_T 1
10202_ACEOF
10203
10204
10205fi
drhf922ca42015-05-14 15:39:18 +000010206ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10207if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010208
10209cat >>confdefs.h <<_ACEOF
10210#define HAVE_INT64_T 1
10211_ACEOF
10212
10213
10214fi
drhf922ca42015-05-14 15:39:18 +000010215ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10216if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010217
10218cat >>confdefs.h <<_ACEOF
10219#define HAVE_INTPTR_T 1
10220_ACEOF
10221
10222
10223fi
drhf922ca42015-05-14 15:39:18 +000010224ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10225if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010226
10227cat >>confdefs.h <<_ACEOF
10228#define HAVE_UINT8_T 1
10229_ACEOF
10230
10231
10232fi
drhf922ca42015-05-14 15:39:18 +000010233ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10234if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010235
10236cat >>confdefs.h <<_ACEOF
10237#define HAVE_UINT16_T 1
10238_ACEOF
10239
10240
10241fi
drhf922ca42015-05-14 15:39:18 +000010242ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10243if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010244
10245cat >>confdefs.h <<_ACEOF
10246#define HAVE_UINT32_T 1
10247_ACEOF
10248
10249
10250fi
drhf922ca42015-05-14 15:39:18 +000010251ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10252if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010253
10254cat >>confdefs.h <<_ACEOF
10255#define HAVE_UINT64_T 1
10256_ACEOF
10257
10258
10259fi
drhf922ca42015-05-14 15:39:18 +000010260ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10261if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010262
10263cat >>confdefs.h <<_ACEOF
10264#define HAVE_UINTPTR_T 1
10265_ACEOF
10266
10267
10268fi
mlcreechb87057f2008-03-06 07:19:20 +000010269
10270
10271#########
10272# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010273for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010274do :
10275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10276ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10277if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010278 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010279#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010280_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010281
mlcreechb87057f2008-03-06 07:19:20 +000010282fi
10283
10284done
10285
10286
10287#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010288# Figure out whether or not we have these functions
10289#
drhe32a2562016-03-04 02:38:00 +000010290for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
drhf922ca42015-05-14 15:39:18 +000010291do :
10292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010295 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010297_ACEOF
10298
10299fi
10300done
10301
10302
mlcreechab1c47b2008-03-09 02:51:10 +000010303#########
mlcreechf3868112008-03-11 18:03:30 +000010304# By default, we use the amalgamation (this may be changed below...)
10305#
10306USE_AMALGAMATION=1
10307
10308#########
mlcreechab1c47b2008-03-09 02:51:10 +000010309# See whether we can run specific tclsh versions known to work well;
10310# if not, then we fall back to plain tclsh.
10311# TODO: try other versions before falling back?
10312#
drh0b11bcb2017-09-22 00:24:44 +000010313for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010314do
10315 # Extract the first word of "$ac_prog", so it can be a program name with args.
10316set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010318$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010319if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010320 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010321else
10322 if test -n "$TCLSH_CMD"; then
10323 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10324else
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010330 for ac_exec_ext in '' $ac_executable_extensions; do
10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010332 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010334 break 2
10335 fi
10336done
drhf922ca42015-05-14 15:39:18 +000010337 done
drh8b727472009-01-19 18:18:40 +000010338IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010339
10340fi
10341fi
10342TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10343if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010345$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010346else
drhf922ca42015-05-14 15:39:18 +000010347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010348$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010349fi
10350
drh8b727472009-01-19 18:18:40 +000010351
mlcreechab1c47b2008-03-09 02:51:10 +000010352 test -n "$TCLSH_CMD" && break
10353done
mlcreechf3868112008-03-11 18:03:30 +000010354test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010355
mlcreechf3868112008-03-11 18:03:30 +000010356if test "$TCLSH_CMD" = "none"; then
10357 # If we can't find a local tclsh, then building the amalgamation will fail.
10358 # We act as though --disable-amalgamation has been used.
10359 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10360 USE_AMALGAMATION=0
10361 TCLSH_CMD="tclsh"
10362fi
mlcreechab1c47b2008-03-09 02:51:10 +000010363
10364
mlcreech5b0a9eb2008-03-09 01:38:09 +000010365
vapier6acb2cf2009-01-28 04:46:28 +000010366if test "x${TCLLIBDIR+set}" != "xset" ; then
10367 TCLLIBDIR='$(libdir)'
10368 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
drhd9cc5322021-01-12 14:23:03 +000010369 if test -d $i ; then
10370 TCLLIBDIR=$i
10371 break
10372 fi
vapier6acb2cf2009-01-28 04:46:28 +000010373 done
10374 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10375fi
10376
10377
mlcreech5b0a9eb2008-03-09 01:38:09 +000010378#########
drh75897232000-05-29 14:26:00 +000010379# Set up an appropriate program prefix
10380#
10381if test "$program_prefix" = "NONE"; then
10382 program_prefix=""
10383fi
10384
a.rottmann84e63352003-03-24 09:42:16 +000010385
drh4b2266a2004-11-27 15:52:16 +000010386VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010387{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010388$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010389
10390RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010391{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010392$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010393
drh26d0e2a2005-07-06 13:51:27 +000010394
drh75897232000-05-29 14:26:00 +000010395#########
drh75897232000-05-29 14:26:00 +000010396# Locate a compiler for the build machine. This compiler should
10397# generate command-line programs that run on the build machine.
10398#
vapier7f19c022007-02-17 14:46:31 +000010399if test x"$cross_compiling" = xno; then
10400 BUILD_CC=$CC
10401 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010402else
vapier7f19c022007-02-17 14:46:31 +000010403 if test "${BUILD_CC+set}" != set; then
10404 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010405do
10406 # Extract the first word of "$ac_prog", so it can be a program name with args.
10407set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010409$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010410if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010411 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010412else
vapier7f19c022007-02-17 14:46:31 +000010413 if test -n "$BUILD_CC"; then
10414 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010415else
a.rottmann84e63352003-03-24 09:42:16 +000010416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in $PATH
10418do
10419 IFS=$as_save_IFS
10420 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010421 for ac_exec_ext in '' $ac_executable_extensions; do
10422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010423 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010425 break 2
10426 fi
10427done
drhf922ca42015-05-14 15:39:18 +000010428 done
drh8b727472009-01-19 18:18:40 +000010429IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010430
drh71eb93e2001-09-28 01:34:43 +000010431fi
10432fi
vapier7f19c022007-02-17 14:46:31 +000010433BUILD_CC=$ac_cv_prog_BUILD_CC
10434if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010436$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010437else
drhf922ca42015-05-14 15:39:18 +000010438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010439$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010440fi
drh75897232000-05-29 14:26:00 +000010441
drh8b727472009-01-19 18:18:40 +000010442
vapier7f19c022007-02-17 14:46:31 +000010443 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010444done
drh75897232000-05-29 14:26:00 +000010445
vapier7f19c022007-02-17 14:46:31 +000010446 fi
10447 if test "${BUILD_CFLAGS+set}" != set; then
10448 BUILD_CFLAGS="-g"
10449 fi
drh71eb93e2001-09-28 01:34:43 +000010450fi
10451
a.rottmann84e63352003-03-24 09:42:16 +000010452
drh297ecf12001-04-05 15:57:13 +000010453##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010454# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010455#
drh8b727472009-01-19 18:18:40 +000010456# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010457if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010458 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010459fi
10460
drhf922ca42015-05-14 15:39:18 +000010461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010462$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010463if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010464 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010466$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010467else
drh5a3032b2007-09-03 16:12:09 +000010468 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010470$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010471fi
10472
a.rottmann964dbb12004-02-26 19:47:42 +000010473
drh5a3032b2007-09-03 16:12:09 +000010474if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10476$as_echo_n "checking for library containing pthread_create... " >&6; }
10477if ${ac_cv_search_pthread_create+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479else
10480 ac_func_search_save_LIBS=$LIBS
10481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482/* end confdefs.h. */
10483
10484/* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487#ifdef __cplusplus
10488extern "C"
10489#endif
10490char pthread_create ();
10491int
10492main ()
10493{
10494return pthread_create ();
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499for ac_lib in '' pthread; do
10500 if test -z "$ac_lib"; then
10501 ac_res="none required"
10502 else
10503 ac_res=-l$ac_lib
10504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10505 fi
10506 if ac_fn_c_try_link "$LINENO"; then :
10507 ac_cv_search_pthread_create=$ac_res
10508fi
10509rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext
10511 if ${ac_cv_search_pthread_create+:} false; then :
10512 break
10513fi
10514done
10515if ${ac_cv_search_pthread_create+:} false; then :
10516
10517else
10518 ac_cv_search_pthread_create=no
10519fi
10520rm conftest.$ac_ext
10521LIBS=$ac_func_search_save_LIBS
10522fi
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10524$as_echo "$ac_cv_search_pthread_create" >&6; }
10525ac_res=$ac_cv_search_pthread_create
10526if test "$ac_res" != no; then :
10527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10528
10529fi
10530
drh13c808a2016-01-13 21:23:48 +000010531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10532$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10533if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010534 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010535else
mlcreechc658b0f2008-03-09 02:20:11 +000010536 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010538/* end confdefs.h. */
10539
drh8b727472009-01-19 18:18:40 +000010540/* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010543#ifdef __cplusplus
10544extern "C"
10545#endif
drh13c808a2016-01-13 21:23:48 +000010546char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010547int
10548main ()
10549{
drh13c808a2016-01-13 21:23:48 +000010550return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010551 ;
10552 return 0;
10553}
10554_ACEOF
drh8b727472009-01-19 18:18:40 +000010555for ac_lib in '' pthread; do
10556 if test -z "$ac_lib"; then
10557 ac_res="none required"
10558 else
10559 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010561 fi
drhf922ca42015-05-14 15:39:18 +000010562 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010563 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010564fi
drhf922ca42015-05-14 15:39:18 +000010565rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010567 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010568 break
drh866108f2008-05-13 00:57:21 +000010569fi
drh8b727472009-01-19 18:18:40 +000010570done
drh13c808a2016-01-13 21:23:48 +000010571if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010572
drh8b727472009-01-19 18:18:40 +000010573else
drh13c808a2016-01-13 21:23:48 +000010574 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010575fi
10576rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010577LIBS=$ac_func_search_save_LIBS
10578fi
drh13c808a2016-01-13 21:23:48 +000010579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10580$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10581ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010582if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010584
dougcurrie65623c72004-09-20 14:57:23 +000010585fi
10586
mlcreechc658b0f2008-03-09 02:20:11 +000010587fi
dougcurrie65623c72004-09-20 14:57:23 +000010588
xdong28f79f72003-09-23 00:35:21 +000010589##########
10590# Do we want to support release
10591#
drh8b727472009-01-19 18:18:40 +000010592# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010593if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010594 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010595else
10596 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010597fi
10598
drhf922ca42015-05-14 15:39:18 +000010599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010600$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010601if test "$enable_releasemode" = "no"; then
10602 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010604$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010605else
drh0b47d342007-11-27 14:50:06 +000010606 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010608$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010609fi
paulb0208cc2003-04-13 18:26:49 +000010610
a.rottmann964dbb12004-02-26 19:47:42 +000010611
paulb0208cc2003-04-13 18:26:49 +000010612##########
10613# Do we want temporary databases in memory
10614#
drh8b727472009-01-19 18:18:40 +000010615# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010616if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010617 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010618else
drh54414bb2005-10-10 00:05:50 +000010619 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010620fi
10621
drhf922ca42015-05-14 15:39:18 +000010622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010623$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010624case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010625 never )
paul2dc96f92003-04-20 11:46:34 +000010626 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010628$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010629 ;;
10630 no )
paul2dc96f92003-04-20 11:46:34 +000010631 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010633$as_echo "no" >&6; }
10634 ;;
10635 yes )
10636 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010638$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010639 ;;
10640 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010641 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010643$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010644 ;;
paulb0208cc2003-04-13 18:26:49 +000010645 * )
drh54414bb2005-10-10 00:05:50 +000010646 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010648$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010649 ;;
10650esac
10651
10652
10653
drh75897232000-05-29 14:26:00 +000010654###########
10655# Lots of things are different if we are compiling for Windows using
10656# the CYGWIN environment. So check for that special case and handle
10657# things accordingly.
10658#
drhf922ca42015-05-14 15:39:18 +000010659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010660$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010661if test "$config_BUILD_EXEEXT" = ".exe"; then
10662 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010664$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010665else
drhf922ca42015-05-14 15:39:18 +000010666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010667$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010668fi
10669if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010670
10671case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010672 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010673 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010674esac
drh75897232000-05-29 14:26:00 +000010675
drh75897232000-05-29 14:26:00 +000010676fi
10677if test "$CYGWIN" = "yes"; then
10678 BUILD_EXEEXT=.exe
10679else
dougcurrie6194a5f2003-12-19 20:09:51 +000010680 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010681fi
vapier7f19c022007-02-17 14:46:31 +000010682if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010683 TARGET_EXEEXT=$BUILD_EXEEXT
10684else
10685 TARGET_EXEEXT=$config_TARGET_EXEEXT
10686fi
10687if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010688 SQLITE_OS_UNIX=0
10689 SQLITE_OS_WIN=1
10690 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010691else
danielk197729bafea2008-06-26 10:41:19 +000010692 SQLITE_OS_UNIX=1
10693 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010694 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010695fi
drh75897232000-05-29 14:26:00 +000010696
a.rottmann84e63352003-03-24 09:42:16 +000010697
10698
10699
10700
10701
drh75897232000-05-29 14:26:00 +000010702##########
drh7b5717e2004-11-25 13:50:01 +000010703# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010704#
drh7b5717e2004-11-25 13:50:01 +000010705# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10706# macros in the in the tcl.m4 file of the standard TCL distribution.
10707# Those macros could not be used directly since we have to make some
10708# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010709#
drh8b727472009-01-19 18:18:40 +000010710# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010711if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010712 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010713else
drh7b5717e2004-11-25 13:50:01 +000010714 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010715fi
10716
drh7b5717e2004-11-25 13:50:01 +000010717if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010718
drh8b727472009-01-19 18:18:40 +000010719# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010720if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010721 withval=$with_tcl; with_tclconfig=${withval}
10722fi
10723
drhf922ca42015-05-14 15:39:18 +000010724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010725$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010726 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010727 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010728else
a.rottmann84e63352003-03-24 09:42:16 +000010729
drh7b5717e2004-11-25 13:50:01 +000010730 # First check to see if --with-tcl was specified.
10731 if test x"${with_tclconfig}" != x ; then
10732 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10733 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10734 else
drhf922ca42015-05-14 15:39:18 +000010735 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010736 fi
10737 fi
vapier6acb2cf2009-01-28 04:46:28 +000010738
10739 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010740 if test x"${ac_cv_c_tclconfig}" = x ; then
10741 if test x"$cross_compiling" = xno; then
10742 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10743 do
10744 if test -f "$i/tclConfig.sh" ; then
10745 ac_cv_c_tclconfig="$i"
10746 break
10747 fi
10748 done
10749 fi
vapier6acb2cf2009-01-28 04:46:28 +000010750 fi
10751
drhf960a642015-05-30 22:57:49 +000010752 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10753 # So try again after applying corrections.
10754 if test x"${ac_cv_c_tclconfig}" = x ; then
10755 if test x"$cross_compiling" = xno; then
10756 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10757 do
10758 if test -f "$i/tclConfig.sh" ; then
10759 ac_cv_c_tclconfig="$i"
10760 break
10761 fi
10762 done
10763 fi
10764 fi
10765
drh68314742016-05-23 00:10:58 +000010766 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10767 # in a strange place.
10768 if test x"${ac_cv_c_tclconfig}" = x ; then
10769 if test x"$cross_compiling" = xno; then
10770 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10771 do
10772 if test -f "$i/tclConfig.sh" ; then
10773 ac_cv_c_tclconfig="$i"
10774 break
10775 fi
10776 done
10777 fi
10778 fi
10779
drh7b5717e2004-11-25 13:50:01 +000010780 # then check for a private Tcl installation
10781 if test x"${ac_cv_c_tclconfig}" = x ; then
10782 for i in \
10783 ../tcl \
10784 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10787 ../../tcl \
10788 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10789 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10791 ../../../tcl \
10792 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10793 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10795 do
10796 if test -f "$i/unix/tclConfig.sh" ; then
10797 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10798 break
10799 fi
10800 done
10801 fi
10802
10803 # check in a few common install locations
10804 if test x"${ac_cv_c_tclconfig}" = x ; then
10805 for i in \
10806 `ls -d ${libdir} 2>/dev/null` \
10807 `ls -d /usr/local/lib 2>/dev/null` \
10808 `ls -d /usr/contrib/lib 2>/dev/null` \
10809 `ls -d /usr/lib 2>/dev/null`
10810 do
10811 if test -f "$i/tclConfig.sh" ; then
10812 ac_cv_c_tclconfig=`(cd $i; pwd)`
10813 break
10814 fi
10815 done
10816 fi
10817
10818 # check in a few other private locations
10819 if test x"${ac_cv_c_tclconfig}" = x ; then
10820 for i in \
10821 ${srcdir}/../tcl \
10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10825 do
10826 if test -f "$i/unix/tclConfig.sh" ; then
10827 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10828 break
10829 fi
10830 done
10831 fi
10832
drh75897232000-05-29 14:26:00 +000010833fi
10834
drh7b5717e2004-11-25 13:50:01 +000010835
10836 if test x"${ac_cv_c_tclconfig}" = x ; then
10837 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010843$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010844 else
10845 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010847$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010848
drhf922ca42015-05-14 15:39:18 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010850$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010851 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010853$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010854 . $TCL_BIN_DIR/tclConfig.sh
10855 else
drhf922ca42015-05-14 15:39:18 +000010856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010857$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010858 fi
drh7b5717e2004-11-25 13:50:01 +000010859
10860 #
10861 # If the TCL_BIN_DIR is the build directory (not the install directory),
10862 # then set the common variable name to the value of the build variables.
10863 # For example, the variable TCL_LIB_SPEC will be set to the value
10864 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10865 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10866 # installed and uninstalled version of Tcl.
10867 #
10868
mlcreechab1c47b2008-03-09 02:51:10 +000010869 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010870 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10871 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10872 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10873 fi
10874
10875 #
10876 # eval is required to do the TCL_DBGX substitution
10877 #
10878
10879 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10880 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10881 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10882
10883 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10884 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10885 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
drhd881ce82015-03-31 17:01:52 +000010899
drh7b5717e2004-11-25 13:50:01 +000010900 fi
drh75897232000-05-29 14:26:00 +000010901fi
drh7b5717e2004-11-25 13:50:01 +000010902if test "${use_tcl}" = "no" ; then
10903 HAVE_TCL=""
10904else
10905 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010906fi
drh75897232000-05-29 14:26:00 +000010907
a.rottmann84e63352003-03-24 09:42:16 +000010908
drh75897232000-05-29 14:26:00 +000010909##########
10910# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010911# that use "readline()" library.
10912#
vapier7f19c022007-02-17 14:46:31 +000010913TARGET_READLINE_LIBS=""
10914TARGET_READLINE_INC=""
10915TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010916TARGET_HAVE_EDITLINE=0
10917# Check whether --enable-editline was given.
10918if test "${enable_editline+set}" = set; then :
10919 enableval=$enable_editline; with_editline=$enableval
10920else
10921 with_editline=auto
10922fi
10923
drh8b727472009-01-19 18:18:40 +000010924# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010925if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010926 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010927else
vapier7f19c022007-02-17 14:46:31 +000010928 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010929fi
10930
vapier7f19c022007-02-17 14:46:31 +000010931
drhe44b8352015-10-30 14:25:57 +000010932if test x"$with_editline" != xno; then
10933 sLIBS=$LIBS
10934 LIBS=""
10935 TARGET_HAVE_EDITLINE=1
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10937$as_echo_n "checking for library containing readline... " >&6; }
10938if ${ac_cv_search_readline+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940else
10941 ac_func_search_save_LIBS=$LIBS
10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h. */
10944
10945/* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10948#ifdef __cplusplus
10949extern "C"
10950#endif
10951char readline ();
10952int
10953main ()
10954{
10955return readline ();
10956 ;
10957 return 0;
10958}
10959_ACEOF
10960for ac_lib in '' edit; do
10961 if test -z "$ac_lib"; then
10962 ac_res="none required"
10963 else
10964 ac_res=-l$ac_lib
10965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10966 fi
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_search_readline=$ac_res
10969fi
10970rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext
10972 if ${ac_cv_search_readline+:} false; then :
10973 break
10974fi
10975done
10976if ${ac_cv_search_readline+:} false; then :
10977
10978else
10979 ac_cv_search_readline=no
10980fi
10981rm conftest.$ac_ext
10982LIBS=$ac_func_search_save_LIBS
10983fi
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10985$as_echo "$ac_cv_search_readline" >&6; }
10986ac_res=$ac_cv_search_readline
10987if test "$ac_res" != no; then :
10988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10989 with_readline=no
10990else
10991 TARGET_HAVE_EDITLINE=0
10992fi
10993
10994 TARGET_READLINE_LIBS=$LIBS
10995 LIBS=$sLIBS
10996fi
vapier7f19c022007-02-17 14:46:31 +000010997if test x"$with_readline" != xno; then
10998 found="yes"
10999
11000
drh8b727472009-01-19 18:18:40 +000011001# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011002if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011003 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011004else
11005 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011006fi
11007
vapier7f19c022007-02-17 14:46:31 +000011008 if test "x$with_readline_lib" = xauto; then
11009 save_LIBS="$LIBS"
11010 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011012$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011013if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011014 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011015else
drh71eb93e2001-09-28 01:34:43 +000011016 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011018/* end confdefs.h. */
11019
drh8b727472009-01-19 18:18:40 +000011020/* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011023#ifdef __cplusplus
11024extern "C"
11025#endif
paul38372372003-04-22 08:04:49 +000011026char tgetent ();
11027int
11028main ()
11029{
drh8b727472009-01-19 18:18:40 +000011030return tgetent ();
paul38372372003-04-22 08:04:49 +000011031 ;
11032 return 0;
11033}
11034_ACEOF
drh8b727472009-01-19 18:18:40 +000011035for ac_lib in '' readline ncurses curses termcap; do
11036 if test -z "$ac_lib"; then
11037 ac_res="none required"
11038 else
11039 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011041 fi
drhf922ca42015-05-14 15:39:18 +000011042 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011043 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011044fi
drhf922ca42015-05-14 15:39:18 +000011045rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext
11047 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011048 break
drh866108f2008-05-13 00:57:21 +000011049fi
drh8b727472009-01-19 18:18:40 +000011050done
drhf922ca42015-05-14 15:39:18 +000011051if ${ac_cv_search_tgetent+:} false; then :
11052
drh8b727472009-01-19 18:18:40 +000011053else
11054 ac_cv_search_tgetent=no
11055fi
11056rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011057LIBS=$ac_func_search_save_LIBS
11058fi
drhf922ca42015-05-14 15:39:18 +000011059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011060$as_echo "$ac_cv_search_tgetent" >&6; }
11061ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011062if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011064 term_LIBS="$LIBS"
11065else
11066 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011067fi
11068
drhf922ca42015-05-14 15:39:18 +000011069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011070$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011071if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011072 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011073else
11074 ac_check_lib_save_LIBS=$LIBS
11075LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011077/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011078
drh8b727472009-01-19 18:18:40 +000011079/* Override any GCC internal prototype to avoid an error.
11080 Use char because int might match the return type of a GCC
11081 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011082#ifdef __cplusplus
11083extern "C"
11084#endif
drh71eb93e2001-09-28 01:34:43 +000011085char readline ();
11086int
11087main ()
11088{
drh8b727472009-01-19 18:18:40 +000011089return readline ();
drh71eb93e2001-09-28 01:34:43 +000011090 ;
11091 return 0;
11092}
11093_ACEOF
drhf922ca42015-05-14 15:39:18 +000011094if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011095 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011096else
drhf922ca42015-05-14 15:39:18 +000011097 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011098fi
drhf922ca42015-05-14 15:39:18 +000011099rm -f core conftest.err conftest.$ac_objext \
11100 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011101LIBS=$ac_check_lib_save_LIBS
11102fi
drhf922ca42015-05-14 15:39:18 +000011103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011104$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011105if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011106 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011107else
vapier7f19c022007-02-17 14:46:31 +000011108 found="no"
11109fi
drhf1878b42006-01-23 18:06:52 +000011110
vapier7f19c022007-02-17 14:46:31 +000011111 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11112 LIBS="$save_LIBS"
11113 else
11114 TARGET_READLINE_LIBS="$with_readline_lib"
11115 fi
11116
11117
drh8b727472009-01-19 18:18:40 +000011118# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011119if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011120 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011121else
vapier7f19c022007-02-17 14:46:31 +000011122 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011123fi
11124
vapier7f19c022007-02-17 14:46:31 +000011125 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011126 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11127if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011128 found="yes"
11129else
drh75897232000-05-29 14:26:00 +000011130
vapier7f19c022007-02-17 14:46:31 +000011131 found="no"
11132 if test "$cross_compiling" != yes; then
11133 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11134 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011135 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011137$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011138if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011139 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011140else
11141 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011142 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011143if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011144 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011145else
drh71eb93e2001-09-28 01:34:43 +000011146 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011147fi
11148fi
drhf922ca42015-05-14 15:39:18 +000011149eval ac_res=\$$as_ac_File
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011151$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011152if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011153 found=yes
drh75897232000-05-29 14:26:00 +000011154fi
11155
vapier7f19c022007-02-17 14:46:31 +000011156 if test "$found" = "yes"; then
11157 TARGET_READLINE_INC="-I$dir/$subdir"
11158 break
11159 fi
11160 done
11161 test "$found" = "yes" && break
11162 done
11163 fi
11164
11165fi
11166
11167
11168 else
11169 TARGET_READLINE_INC="$with_readline_inc"
11170 fi
11171
11172 if test x"$found" = xno; then
11173 TARGET_READLINE_LIBS=""
11174 TARGET_READLINE_INC=""
11175 TARGET_HAVE_READLINE=0
11176 else
11177 TARGET_HAVE_READLINE=1
11178 fi
11179fi
11180
11181
11182
11183
11184
drhe44b8352015-10-30 14:25:57 +000011185
vapier7f19c022007-02-17 14:46:31 +000011186##########
11187# Figure out what C libraries are required to compile programs
11188# that use "fdatasync()" function.
11189#
drhf922ca42015-05-14 15:39:18 +000011190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011191$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011192if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011193 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011194else
vapier7f19c022007-02-17 14:46:31 +000011195 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011197/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011198
drh8b727472009-01-19 18:18:40 +000011199/* Override any GCC internal prototype to avoid an error.
11200 Use char because int might match the return type of a GCC
11201 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011202#ifdef __cplusplus
11203extern "C"
11204#endif
11205char fdatasync ();
11206int
11207main ()
11208{
drh8b727472009-01-19 18:18:40 +000011209return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011210 ;
11211 return 0;
11212}
11213_ACEOF
drh8b727472009-01-19 18:18:40 +000011214for ac_lib in '' rt; do
11215 if test -z "$ac_lib"; then
11216 ac_res="none required"
11217 else
11218 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011220 fi
drhf922ca42015-05-14 15:39:18 +000011221 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011222 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011223fi
drhf922ca42015-05-14 15:39:18 +000011224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext
11226 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011227 break
drh866108f2008-05-13 00:57:21 +000011228fi
drh8b727472009-01-19 18:18:40 +000011229done
drhf922ca42015-05-14 15:39:18 +000011230if ${ac_cv_search_fdatasync+:} false; then :
11231
drh8b727472009-01-19 18:18:40 +000011232else
11233 ac_cv_search_fdatasync=no
11234fi
11235rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011236LIBS=$ac_func_search_save_LIBS
11237fi
drhf922ca42015-05-14 15:39:18 +000011238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011239$as_echo "$ac_cv_search_fdatasync" >&6; }
11240ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011241if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011243
vapier7f19c022007-02-17 14:46:31 +000011244fi
11245
a.rottmann84e63352003-03-24 09:42:16 +000011246
drh75897232000-05-29 14:26:00 +000011247#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011248# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011249# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011250if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011251 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011252fi
11253
drh8fa622d2018-06-11 19:47:14 +000011254if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011255 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011256else
11257 TARGET_DEBUG="-DNDEBUG"
11258fi
11259
11260
11261#########
mlcreech94984912008-03-04 19:03:08 +000011262# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011263# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011264if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011265 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011266fi
11267
danb13d5c22020-07-07 19:24:34 +000011268if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011269 USE_AMALGAMATION=0
11270fi
11271
11272
11273#########
drh56c93112017-11-24 16:55:48 +000011274# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11275for ac_header in zlib.h
11276do :
11277 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11278if test "x$ac_cv_header_zlib_h" = xyes; then :
11279 cat >>confdefs.h <<_ACEOF
11280#define HAVE_ZLIB_H 1
11281_ACEOF
11282
11283fi
11284
11285done
11286
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11288$as_echo_n "checking for library containing deflate... " >&6; }
11289if ${ac_cv_search_deflate+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291else
11292 ac_func_search_save_LIBS=$LIBS
11293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294/* end confdefs.h. */
11295
11296/* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299#ifdef __cplusplus
11300extern "C"
11301#endif
11302char deflate ();
11303int
11304main ()
11305{
11306return deflate ();
11307 ;
11308 return 0;
11309}
11310_ACEOF
11311for ac_lib in '' z; do
11312 if test -z "$ac_lib"; then
11313 ac_res="none required"
11314 else
11315 ac_res=-l$ac_lib
11316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11317 fi
11318 if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_search_deflate=$ac_res
11320fi
11321rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext
11323 if ${ac_cv_search_deflate+:} false; then :
11324 break
11325fi
11326done
11327if ${ac_cv_search_deflate+:} false; then :
11328
11329else
11330 ac_cv_search_deflate=no
11331fi
11332rm conftest.$ac_ext
11333LIBS=$ac_func_search_save_LIBS
11334fi
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11336$as_echo "$ac_cv_search_deflate" >&6; }
11337ac_res=$ac_cv_search_deflate
11338if test "$ac_res" != no; then :
11339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11340 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11341else
11342 HAVE_ZLIB=""
11343fi
11344
11345
11346
11347#########
mlcreecha4edab02008-03-06 04:14:17 +000011348# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011349# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011350if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011351 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011352else
drh8fa622d2018-06-11 19:47:14 +000011353 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011354fi
11355
drh8fa622d2018-06-11 19:47:14 +000011356if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011357 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011359$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011360if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011361 $as_echo_n "(cached) " >&6
11362else
11363 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011365/* end confdefs.h. */
11366
11367/* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370#ifdef __cplusplus
11371extern "C"
11372#endif
11373char dlopen ();
11374int
11375main ()
11376{
11377return dlopen ();
11378 ;
11379 return 0;
11380}
11381_ACEOF
11382for ac_lib in '' dl; do
11383 if test -z "$ac_lib"; then
11384 ac_res="none required"
11385 else
11386 ac_res=-l$ac_lib
11387 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11388 fi
drhf922ca42015-05-14 15:39:18 +000011389 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011390 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011391fi
drhf922ca42015-05-14 15:39:18 +000011392rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext
11394 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011395 break
11396fi
11397done
drhf922ca42015-05-14 15:39:18 +000011398if ${ac_cv_search_dlopen+:} false; then :
11399
drhdbe4b882011-06-20 18:00:17 +000011400else
11401 ac_cv_search_dlopen=no
11402fi
11403rm conftest.$ac_ext
11404LIBS=$ac_func_search_save_LIBS
11405fi
drhf922ca42015-05-14 15:39:18 +000011406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011407$as_echo "$ac_cv_search_dlopen" >&6; }
11408ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011409if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11411
11412fi
11413
mlcreecha4edab02008-03-06 04:14:17 +000011414else
shanefbedede2008-07-22 05:05:01 +000011415 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011416fi
11417
drhc530b9c2016-07-25 11:27:22 +000011418##########
drhf6e904b2020-12-07 17:15:32 +000011419# Do we want to support math functions
11420#
drhe2ce8c42020-12-07 21:19:17 +000011421# Check whether --enable-math was given.
11422if test "${enable_math+set}" = set; then :
11423 enableval=$enable_math;
drhf6e904b2020-12-07 17:15:32 +000011424fi
11425
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11427$as_echo_n "checking whether to support math functions... " >&6; }
11428if test "$enable_math" = "no"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
11431else
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433$as_echo "yes" >&6; }
11434 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11436$as_echo_n "checking for library containing ceil... " >&6; }
11437if ${ac_cv_search_ceil+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439else
11440 ac_func_search_save_LIBS=$LIBS
11441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442/* end confdefs.h. */
11443
11444/* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
11447#ifdef __cplusplus
11448extern "C"
11449#endif
11450char ceil ();
11451int
11452main ()
11453{
11454return ceil ();
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459for ac_lib in '' m; do
11460 if test -z "$ac_lib"; then
11461 ac_res="none required"
11462 else
11463 ac_res=-l$ac_lib
11464 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11465 fi
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_search_ceil=$ac_res
11468fi
11469rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext
11471 if ${ac_cv_search_ceil+:} false; then :
11472 break
11473fi
11474done
11475if ${ac_cv_search_ceil+:} false; then :
11476
11477else
11478 ac_cv_search_ceil=no
11479fi
11480rm conftest.$ac_ext
11481LIBS=$ac_func_search_save_LIBS
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11484$as_echo "$ac_cv_search_ceil" >&6; }
11485ac_res=$ac_cv_search_ceil
11486if test "$ac_res" != no; then :
11487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11488
11489fi
11490
11491fi
11492
11493##########
drhc530b9c2016-07-25 11:27:22 +000011494# Do we want to support memsys3 and/or memsys5
11495#
drhc530b9c2016-07-25 11:27:22 +000011496# Check whether --enable-memsys5 was given.
11497if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011498 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011499fi
11500
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11502$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011503if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011504 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506$as_echo "yes" >&6; }
11507else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
11510fi
drh5d513ba2016-07-25 11:57:21 +000011511# Check whether --enable-memsys3 was given.
11512if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011513 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011514fi
11515
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11517$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11518if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011519 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521$as_echo "yes" >&6; }
11522else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; }
11525fi
drhc530b9c2016-07-25 11:27:22 +000011526
drh29368ea2019-12-28 13:17:11 +000011527########
11528# The --enable-extensions argument is short-hand to enable
11529# multiple extensions.
11530# Check whether --enable-all was given.
11531if test "${enable_all+set}" = set; then :
11532 enableval=$enable_all;
11533fi
11534
11535
mlcreechaac7b932008-04-01 02:45:22 +000011536#########
drhce1d9f52015-10-09 12:48:33 +000011537# See whether we should enable Full Text Search extensions
11538# Check whether --enable-fts3 was given.
11539if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011540 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011541fi
11542
11543if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011544 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011545fi
11546# Check whether --enable-fts4 was given.
11547if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011548 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011549fi
11550
drh29368ea2019-12-28 13:17:11 +000011551if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011552 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11554$as_echo_n "checking for library containing log... " >&6; }
11555if ${ac_cv_search_log+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557else
11558 ac_func_search_save_LIBS=$LIBS
11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560/* end confdefs.h. */
11561
11562/* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565#ifdef __cplusplus
11566extern "C"
11567#endif
11568char log ();
11569int
11570main ()
11571{
11572return log ();
11573 ;
11574 return 0;
11575}
11576_ACEOF
11577for ac_lib in '' m; do
11578 if test -z "$ac_lib"; then
11579 ac_res="none required"
11580 else
11581 ac_res=-l$ac_lib
11582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11583 fi
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_search_log=$ac_res
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext
11589 if ${ac_cv_search_log+:} false; then :
11590 break
11591fi
11592done
11593if ${ac_cv_search_log+:} false; then :
11594
11595else
11596 ac_cv_search_log=no
11597fi
11598rm conftest.$ac_ext
11599LIBS=$ac_func_search_save_LIBS
11600fi
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11602$as_echo "$ac_cv_search_log" >&6; }
11603ac_res=$ac_cv_search_log
11604if test "$ac_res" != no; then :
11605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11606
11607fi
11608
11609fi
11610# Check whether --enable-fts5 was given.
11611if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011612 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011613fi
11614
drh29368ea2019-12-28 13:17:11 +000011615if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011616 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11618$as_echo_n "checking for library containing log... " >&6; }
11619if ${ac_cv_search_log+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621else
11622 ac_func_search_save_LIBS=$LIBS
11623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624/* end confdefs.h. */
11625
11626/* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629#ifdef __cplusplus
11630extern "C"
11631#endif
11632char log ();
11633int
11634main ()
11635{
11636return log ();
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641for ac_lib in '' m; do
11642 if test -z "$ac_lib"; then
11643 ac_res="none required"
11644 else
11645 ac_res=-l$ac_lib
11646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11647 fi
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_search_log=$ac_res
11650fi
11651rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext
11653 if ${ac_cv_search_log+:} false; then :
11654 break
11655fi
11656done
11657if ${ac_cv_search_log+:} false; then :
11658
11659else
11660 ac_cv_search_log=no
11661fi
11662rm conftest.$ac_ext
11663LIBS=$ac_func_search_save_LIBS
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11666$as_echo "$ac_cv_search_log" >&6; }
11667ac_res=$ac_cv_search_log
11668if test "$ac_res" != no; then :
11669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11670
11671fi
11672
11673fi
11674
11675#########
11676# See whether we should enable JSON1
11677# Check whether --enable-json1 was given.
11678if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011679 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011680fi
11681
drh29368ea2019-12-28 13:17:11 +000011682if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011683 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011684fi
11685
11686#########
drh83bebdd2017-08-28 17:00:12 +000011687# See whether we should enable the LIMIT clause on UPDATE and DELETE
11688# statements.
11689# Check whether --enable-update-limit was given.
11690if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011691 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011692fi
11693
drhb13c3a32020-06-15 14:38:57 +000011694if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011695 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11696fi
11697
11698#########
drh748b8fd2018-05-25 19:22:47 +000011699# See whether we should enable GEOPOLY
11700# Check whether --enable-geopoly was given.
11701if test "${enable_geopoly+set}" = set; then :
11702 enableval=$enable_geopoly; enable_geopoly=yes
11703else
11704 enable_geopoly=no
11705fi
11706
drh29368ea2019-12-28 13:17:11 +000011707if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011708 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11709 enable_rtree=yes
11710fi
11711
11712#########
drhce1d9f52015-10-09 12:48:33 +000011713# See whether we should enable RTREE
11714# Check whether --enable-rtree was given.
11715if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011716 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011717fi
11718
11719if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011720 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011721fi
11722
11723#########
drh5e18d402016-05-03 13:14:18 +000011724# See whether we should enable the SESSION extension
11725# Check whether --enable-session was given.
11726if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011727 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011728fi
11729
drh29368ea2019-12-28 13:17:11 +000011730if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011731 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11732 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011733fi
11734
11735#########
drh8c9ed052017-05-29 17:43:06 +000011736# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011737for option in $CFLAGS $CPPFLAGS
11738do
11739 case $option in
danielk197733a14782008-08-04 14:50:05 +000011740 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011741 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011742 esac
11743done
11744
11745
danielk197733a14782008-08-04 14:50:05 +000011746
shaneb1cd7302008-10-22 18:27:31 +000011747# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011748ac_temp_CFLAGS=""
11749for option in $CFLAGS
11750do
11751 case $option in
11752 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011753 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011754 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011755 esac
11756done
11757CFLAGS=$ac_temp_CFLAGS
11758
11759
shaneb1cd7302008-10-22 18:27:31 +000011760# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011761ac_temp_CPPFLAGS=""
11762for option in $CPPFLAGS
11763do
11764 case $option in
11765 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011766 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011767 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011768 esac
11769done
11770CPPFLAGS=$ac_temp_CPPFLAGS
11771
danielk197733a14782008-08-04 14:50:05 +000011772
drh8b727472009-01-19 18:18:40 +000011773# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011774ac_temp_BUILD_CFLAGS=""
11775for option in $BUILD_CFLAGS
11776do
11777 case $option in
11778 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011779 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011780 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011781 esac
11782done
11783BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11784
11785
11786#########
11787# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011788# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011789if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011790 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011791fi
11792
mlcreechaac7b932008-04-01 02:45:22 +000011793if test "${use_gcov}" = "yes" ; then
11794 USE_GCOV=1
11795else
11796 USE_GCOV=0
11797fi
11798
11799
danielk197733a14782008-08-04 14:50:05 +000011800
drh2dfbbca2000-07-28 14:32:48 +000011801#########
mlcreechb87057f2008-03-06 07:19:20 +000011802# Output the config header
drh8b727472009-01-19 18:18:40 +000011803ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011804
11805
11806#########
drh75897232000-05-29 14:26:00 +000011807# Generate the output files.
11808#
mlcreechdf59c7c2008-03-06 07:51:15 +000011809
drh8b727472009-01-19 18:18:40 +000011810ac_config_files="$ac_config_files Makefile sqlite3.pc"
11811
drh71eb93e2001-09-28 01:34:43 +000011812cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011813# This file is a shell script that caches the results of configure
11814# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011815# scripts and configure runs, see configure's option --config-cache.
11816# It is not useful on other systems. If it contains results you don't
11817# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011818#
drh71eb93e2001-09-28 01:34:43 +000011819# config.status only pays attention to the cache file if you give it
11820# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011821#
a.rottmann84e63352003-03-24 09:42:16 +000011822# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011823# loading this file, other *unset* `ac_cv_foo' will be assigned the
11824# following values.
11825
11826_ACEOF
11827
drh75897232000-05-29 14:26:00 +000011828# The following way of writing the cache mishandles newlines in values,
11829# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011830# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011831# Ultrix sh set writes to stderr and can't be redirected directly,
11832# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011833(
11834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11835 eval ac_val=\$$ac_var
11836 case $ac_val in #(
11837 *${as_nl}*)
11838 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11840$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011841 esac
11842 case $ac_var in #(
11843 _ | IFS | as_nl) ;; #(
11844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011845 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011846 esac ;;
11847 esac
11848 done
11849
drh71eb93e2001-09-28 01:34:43 +000011850 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11852 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011853 # `set' does not quote correctly, so add quotes: double-quote
11854 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011855 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011856 "s/'/'\\\\''/g;
11857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011858 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011859 *)
11860 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011862 ;;
drh8b727472009-01-19 18:18:40 +000011863 esac |
11864 sort
11865) |
drh71eb93e2001-09-28 01:34:43 +000011866 sed '
drh8b727472009-01-19 18:18:40 +000011867 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011868 t clear
drh8b727472009-01-19 18:18:40 +000011869 :clear
drh71eb93e2001-09-28 01:34:43 +000011870 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11871 t end
drh8b727472009-01-19 18:18:40 +000011872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11873 :end' >>confcache
11874if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11875 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011876 if test "x$cache_file" != "x/dev/null"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011878$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011879 if test ! -f "$cache_file" || test -h "$cache_file"; then
11880 cat confcache >"$cache_file"
11881 else
11882 case $cache_file in #(
11883 */* | ?:*)
11884 mv -f confcache "$cache_file"$$ &&
11885 mv -f "$cache_file"$$ "$cache_file" ;; #(
11886 *)
11887 mv -f confcache "$cache_file" ;;
11888 esac
11889 fi
11890 fi
drh75897232000-05-29 14:26:00 +000011891 else
drhf922ca42015-05-14 15:39:18 +000011892 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011893$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011894 fi
11895fi
11896rm -f confcache
11897
drh75897232000-05-29 14:26:00 +000011898test "x$prefix" = xNONE && prefix=$ac_default_prefix
11899# Let make expand exec_prefix.
11900test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11901
mlcreechb87057f2008-03-06 07:19:20 +000011902DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011903
11904ac_libobjs=
11905ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011906U=
a.rottmann84e63352003-03-24 09:42:16 +000011907for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11908 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11910 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11912 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011915done
11916LIBOBJS=$ac_libobjs
11917
11918LTLIBOBJS=$ac_ltlibobjs
11919
11920
11921
drhf922ca42015-05-14 15:39:18 +000011922: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011923ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011924ac_clean_files_save=$ac_clean_files
11925ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011926{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011927$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011928as_write_fail=0
11929cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011930#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011931# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011932# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011933# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011934# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011935
drh71eb93e2001-09-28 01:34:43 +000011936debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011937ac_cs_recheck=false
11938ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011939
drhf922ca42015-05-14 15:39:18 +000011940SHELL=\${CONFIG_SHELL-$SHELL}
11941export SHELL
11942_ASEOF
11943cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11944## -------------------- ##
11945## M4sh Initialization. ##
11946## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011947
drh8b727472009-01-19 18:18:40 +000011948# Be more Bourne compatible
11949DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011951 emulate sh
11952 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011954 # is contrary to our usage. Disable this feature.
11955 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011956 setopt NO_GLOB_SUBST
11957else
drhf922ca42015-05-14 15:39:18 +000011958 case `(set -o) 2>/dev/null` in #(
11959 *posix*) :
11960 set -o posix ;; #(
11961 *) :
11962 ;;
drh8b727472009-01-19 18:18:40 +000011963esac
a.rottmann84e63352003-03-24 09:42:16 +000011964fi
drh8b727472009-01-19 18:18:40 +000011965
11966
drh8b727472009-01-19 18:18:40 +000011967as_nl='
11968'
11969export as_nl
11970# Printing a long string crashes Solaris 7 /usr/bin/printf.
11971as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011974# Prefer a ksh shell builtin over an external printf program on Solaris,
11975# but without wasting forks for bash or zsh.
11976if test -z "$BASH_VERSION$ZSH_VERSION" \
11977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11978 as_echo='print -r --'
11979 as_echo_n='print -rn --'
11980elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011981 as_echo='printf %s\n'
11982 as_echo_n='printf %s'
11983else
11984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11985 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11986 as_echo_n='/usr/ucb/echo -n'
11987 else
11988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11989 as_echo_n_body='eval
11990 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011991 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011992 *"$as_nl"*)
11993 expr "X$arg" : "X\\(.*\\)$as_nl";
11994 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11995 esac;
11996 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11997 '
11998 export as_echo_n_body
11999 as_echo_n='sh -c $as_echo_n_body as_echo'
12000 fi
12001 export as_echo_body
12002 as_echo='sh -c $as_echo_body as_echo'
12003fi
12004
12005# The user is always right.
12006if test "${PATH_SEPARATOR+set}" != set; then
12007 PATH_SEPARATOR=:
12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12010 PATH_SEPARATOR=';'
12011 }
12012fi
a.rottmann84e63352003-03-24 09:42:16 +000012013
mlcreech94984912008-03-04 19:03:08 +000012014
drh8b727472009-01-19 18:18:40 +000012015# IFS
12016# We need space, tab and new line, in precisely that order. Quoting is
12017# there to prevent editors from complaining about space-tab.
12018# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12019# splitting by setting IFS to empty value.)
12020IFS=" "" $as_nl"
12021
12022# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000012023as_myself=
12024case $0 in #((
drh8b727472009-01-19 18:18:40 +000012025 *[\\/]* ) as_myself=$0 ;;
12026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027for as_dir in $PATH
12028do
12029 IFS=$as_save_IFS
12030 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000012031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12032 done
drh8b727472009-01-19 18:18:40 +000012033IFS=$as_save_IFS
12034
12035 ;;
12036esac
12037# We did not find ourselves, most probably we were run as `sh COMMAND'
12038# in which case we are not to be found in the path.
12039if test "x$as_myself" = x; then
12040 as_myself=$0
12041fi
12042if test ! -f "$as_myself"; then
12043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000012044 exit 1
drh8b727472009-01-19 18:18:40 +000012045fi
12046
drhf922ca42015-05-14 15:39:18 +000012047# Unset variables that we do not need and which cause bugs (e.g. in
12048# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12049# suppresses any "Segmentation fault" message there. '((' could
12050# trigger a bug in pdksh 5.2.14.
12051for as_var in BASH_ENV ENV MAIL MAILPATH
12052do eval test x\${$as_var+set} = xset \
12053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000012054done
mlcreech94984912008-03-04 19:03:08 +000012055PS1='$ '
12056PS2='> '
12057PS4='+ '
12058
12059# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000012060LC_ALL=C
12061export LC_ALL
12062LANGUAGE=C
12063export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000012064
drhf922ca42015-05-14 15:39:18 +000012065# CDPATH.
12066(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12067
12068
12069# as_fn_error STATUS ERROR [LINENO LOG_FD]
12070# ----------------------------------------
12071# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12072# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12073# script with STATUS, using 1 if that was 0.
12074as_fn_error ()
12075{
12076 as_status=$1; test $as_status -eq 0 && as_status=1
12077 if test "$4"; then
12078 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12080 fi
12081 $as_echo "$as_me: error: $2" >&2
12082 as_fn_exit $as_status
12083} # as_fn_error
12084
12085
12086# as_fn_set_status STATUS
12087# -----------------------
12088# Set $? to STATUS, without forking.
12089as_fn_set_status ()
12090{
12091 return $1
12092} # as_fn_set_status
12093
12094# as_fn_exit STATUS
12095# -----------------
12096# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12097as_fn_exit ()
12098{
12099 set +e
12100 as_fn_set_status $1
12101 exit $1
12102} # as_fn_exit
12103
12104# as_fn_unset VAR
12105# ---------------
12106# Portably unset VAR.
12107as_fn_unset ()
12108{
12109 { eval $1=; unset $1;}
12110}
12111as_unset=as_fn_unset
12112# as_fn_append VAR VALUE
12113# ----------------------
12114# Append the text in VALUE to the end of the definition contained in VAR. Take
12115# advantage of any shell optimizations that allow amortized linear growth over
12116# repeated appends, instead of the typical quadratic growth present in naive
12117# implementations.
12118if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12119 eval 'as_fn_append ()
12120 {
12121 eval $1+=\$2
12122 }'
12123else
12124 as_fn_append ()
12125 {
12126 eval $1=\$$1\$2
12127 }
12128fi # as_fn_append
12129
12130# as_fn_arith ARG...
12131# ------------------
12132# Perform arithmetic evaluation on the ARGs, and store the result in the
12133# global $as_val. Take advantage of shells that can avoid forks. The arguments
12134# must be portable across $(()) and expr.
12135if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12136 eval 'as_fn_arith ()
12137 {
12138 as_val=$(( $* ))
12139 }'
12140else
12141 as_fn_arith ()
12142 {
12143 as_val=`expr "$@" || test $? -eq 1`
12144 }
12145fi # as_fn_arith
12146
12147
drh8b727472009-01-19 18:18:40 +000012148if expr a : '\(a\)' >/dev/null 2>&1 &&
12149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012150 as_expr=expr
12151else
12152 as_expr=false
12153fi
12154
drh8b727472009-01-19 18:18:40 +000012155if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012156 as_basename=basename
12157else
12158 as_basename=false
12159fi
12160
drhf922ca42015-05-14 15:39:18 +000012161if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12162 as_dirname=dirname
12163else
12164 as_dirname=false
12165fi
mlcreech94984912008-03-04 19:03:08 +000012166
drh8b727472009-01-19 18:18:40 +000012167as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12169 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12171$as_echo X/"$0" |
12172 sed '/^.*\/\([^/][^/]*\)\/*$/{
12173 s//\1/
12174 q
12175 }
12176 /^X\/\(\/\/\)$/{
12177 s//\1/
12178 q
12179 }
12180 /^X\/\(\/\).*/{
12181 s//\1/
12182 q
12183 }
12184 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012185
drhf922ca42015-05-14 15:39:18 +000012186# Avoid depending upon Character Ranges.
12187as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12188as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12189as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12190as_cr_digits='0123456789'
12191as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012192
drh8b727472009-01-19 18:18:40 +000012193ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012194case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012195-n*)
drhf922ca42015-05-14 15:39:18 +000012196 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012197 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012198 xy) ECHO_C='\c';;
12199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12200 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012201 esac;;
12202*)
12203 ECHO_N='-n';;
12204esac
drh71eb93e2001-09-28 01:34:43 +000012205
12206rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012207if test -d conf$$.dir; then
12208 rm -f conf$$.dir/conf$$.file
12209else
12210 rm -f conf$$.dir
12211 mkdir conf$$.dir 2>/dev/null
12212fi
12213if (echo >conf$$.file) 2>/dev/null; then
12214 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012215 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012216 # ... but there are two gotchas:
12217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012219 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012221 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012222 elif ln conf$$.file conf$$ 2>/dev/null; then
12223 as_ln_s=ln
12224 else
drhf922ca42015-05-14 15:39:18 +000012225 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012226 fi
drh71eb93e2001-09-28 01:34:43 +000012227else
drhf922ca42015-05-14 15:39:18 +000012228 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012229fi
drh8b727472009-01-19 18:18:40 +000012230rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12231rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012232
drhf922ca42015-05-14 15:39:18 +000012233
12234# as_fn_mkdir_p
12235# -------------
12236# Create "$as_dir" as a directory, including parents if necessary.
12237as_fn_mkdir_p ()
12238{
12239
12240 case $as_dir in #(
12241 -*) as_dir=./$as_dir;;
12242 esac
12243 test -d "$as_dir" || eval $as_mkdir_p || {
12244 as_dirs=
12245 while :; do
12246 case $as_dir in #(
12247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12248 *) as_qdir=$as_dir;;
12249 esac
12250 as_dirs="'$as_qdir' $as_dirs"
12251 as_dir=`$as_dirname -- "$as_dir" ||
12252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12253 X"$as_dir" : 'X\(//\)[^/]' \| \
12254 X"$as_dir" : 'X\(//\)$' \| \
12255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12256$as_echo X"$as_dir" |
12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\(\/\/\)[^/].*/{
12262 s//\1/
12263 q
12264 }
12265 /^X\(\/\/\)$/{
12266 s//\1/
12267 q
12268 }
12269 /^X\(\/\).*/{
12270 s//\1/
12271 q
12272 }
12273 s/.*/./; q'`
12274 test -d "$as_dir" && break
12275 done
12276 test -z "$as_dirs" || eval "mkdir $as_dirs"
12277 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12278
12279
12280} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012281if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012282 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012283else
a.rottmann964dbb12004-02-26 19:47:42 +000012284 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012285 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012286fi
12287
drhf922ca42015-05-14 15:39:18 +000012288
12289# as_fn_executable_p FILE
12290# -----------------------
12291# Test if FILE is an executable regular file.
12292as_fn_executable_p ()
12293{
12294 test -f "$1" && test -x "$1"
12295} # as_fn_executable_p
12296as_test_x='test -x'
12297as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012298
12299# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012301
12302# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012304
drh71eb93e2001-09-28 01:34:43 +000012305
drh71eb93e2001-09-28 01:34:43 +000012306exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012307## ----------------------------------- ##
12308## Main body of $CONFIG_STATUS script. ##
12309## ----------------------------------- ##
12310_ASEOF
12311test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012312
drhf922ca42015-05-14 15:39:18 +000012313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12314# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012315# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012316# values after options handling.
12317ac_log="
drh636f5052020-12-02 00:22:09 +000012318This file was extended by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +000012319generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012320
12321 CONFIG_FILES = $CONFIG_FILES
12322 CONFIG_HEADERS = $CONFIG_HEADERS
12323 CONFIG_LINKS = $CONFIG_LINKS
12324 CONFIG_COMMANDS = $CONFIG_COMMANDS
12325 $ $0 $@
12326
drh8b727472009-01-19 18:18:40 +000012327on `(hostname || uname -n) 2>/dev/null | sed 1q`
12328"
12329
drh71eb93e2001-09-28 01:34:43 +000012330_ACEOF
12331
drhf922ca42015-05-14 15:39:18 +000012332case $ac_config_files in *"
12333"*) set x $ac_config_files; shift; ac_config_files=$*;;
12334esac
12335
12336case $ac_config_headers in *"
12337"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12338esac
12339
12340
drh8b727472009-01-19 18:18:40 +000012341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012342# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012343config_files="$ac_config_files"
12344config_headers="$ac_config_headers"
12345config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012346
drh8b727472009-01-19 18:18:40 +000012347_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012348
drh8b727472009-01-19 18:18:40 +000012349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012350ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012351\`$as_me' instantiates files and other configuration actions
12352from templates according to the current configuration. Unless the files
12353and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012354
drhf922ca42015-05-14 15:39:18 +000012355Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012356
12357 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012358 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012359 --config print configuration, then exit
12360 -q, --quiet, --silent
12361 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012362 -d, --debug don't remove temporary files
12363 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012364 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012365 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012366 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012367 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012368
12369Configuration files:
12370$config_files
12371
mlcreechb87057f2008-03-06 07:19:20 +000012372Configuration headers:
12373$config_headers
12374
mlcreech636a9952008-05-05 22:52:56 +000012375Configuration commands:
12376$config_commands
12377
drhf922ca42015-05-14 15:39:18 +000012378Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012379
mlcreech94984912008-03-04 19:03:08 +000012380_ACEOF
drh8b727472009-01-19 18:18:40 +000012381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012382ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012383ac_cs_version="\\
drh636f5052020-12-02 00:22:09 +000012384sqlite config.status 3.35.0
drhf922ca42015-05-14 15:39:18 +000012385configured by $0, generated by GNU Autoconf 2.69,
12386 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012387
drhf922ca42015-05-14 15:39:18 +000012388Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012389This config.status script is free software; the Free Software Foundation
12390gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012391
12392ac_pwd='$ac_pwd'
12393srcdir='$srcdir'
12394INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012395test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012396_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012397
drh8b727472009-01-19 18:18:40 +000012398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12399# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012400ac_need_defaults=:
12401while test $# != 0
12402do
12403 case $1 in
drhf922ca42015-05-14 15:39:18 +000012404 --*=?*)
drh8b727472009-01-19 18:18:40 +000012405 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012407 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012408 ;;
drhf922ca42015-05-14 15:39:18 +000012409 --*=)
12410 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12411 ac_optarg=
12412 ac_shift=:
12413 ;;
drh8b727472009-01-19 18:18:40 +000012414 *)
a.rottmann84e63352003-03-24 09:42:16 +000012415 ac_option=$1
12416 ac_optarg=$2
12417 ac_shift=shift
12418 ;;
drh75897232000-05-29 14:26:00 +000012419 esac
12420
a.rottmann84e63352003-03-24 09:42:16 +000012421 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012422 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012424 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12426 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012427 --config | --confi | --conf | --con | --co | --c )
12428 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012429 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012430 debug=: ;;
12431 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012432 $ac_shift
drh8b727472009-01-19 18:18:40 +000012433 case $ac_optarg in
12434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012435 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012436 esac
drhf922ca42015-05-14 15:39:18 +000012437 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012438 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012439 --header | --heade | --head | --hea )
12440 $ac_shift
drh8b727472009-01-19 18:18:40 +000012441 case $ac_optarg in
12442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12443 esac
drhf922ca42015-05-14 15:39:18 +000012444 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012445 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012446 --he | --h)
12447 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012448 as_fn_error $? "ambiguous option: \`$1'
12449Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012450 --help | --hel | -h )
12451 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12453 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12454 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012455
drh71eb93e2001-09-28 01:34:43 +000012456 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012457 -*) as_fn_error $? "unrecognized option: \`$1'
12458Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012459
drhf922ca42015-05-14 15:39:18 +000012460 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012461 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012462
12463 esac
12464 shift
12465done
12466
a.rottmann84e63352003-03-24 09:42:16 +000012467ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012468
a.rottmann84e63352003-03-24 09:42:16 +000012469if $ac_cs_silent; then
12470 exec 6>/dev/null
12471 ac_configure_extra_args="$ac_configure_extra_args --silent"
12472fi
drh71eb93e2001-09-28 01:34:43 +000012473
12474_ACEOF
drh8b727472009-01-19 18:18:40 +000012475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012476if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012477 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012478 shift
12479 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12480 CONFIG_SHELL='$SHELL'
12481 export CONFIG_SHELL
12482 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012483fi
drh71eb93e2001-09-28 01:34:43 +000012484
a.rottmann84e63352003-03-24 09:42:16 +000012485_ACEOF
drh8b727472009-01-19 18:18:40 +000012486cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487exec 5>>config.log
12488{
12489 echo
12490 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12491## Running $as_me. ##
12492_ASBOX
12493 $as_echo "$ac_log"
12494} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012495
drh8b727472009-01-19 18:18:40 +000012496_ACEOF
12497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012498#
drh8b727472009-01-19 18:18:40 +000012499# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012500#
12501
12502
12503# The HP-UX ksh and POSIX shell print the target directory to stdout
12504# if CDPATH is set.
12505(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12506
12507sed_quote_subst='$sed_quote_subst'
12508double_quote_subst='$double_quote_subst'
12509delay_variable_subst='$delay_variable_subst'
12510macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12511macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12512enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12513enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12514pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12515enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12516host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12517host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12518host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12519build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12520build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12521build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12522SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12523Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12524GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12525EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12526FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12527LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12528NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12529LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12530max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12531ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12532exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12533lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12534lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12535lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12536reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12537reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012538OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012539deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12540file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12541AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12542AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12543STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12544RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12545old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12546old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12547old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12548CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12549CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12550compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12551GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12552lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12553lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12554lt_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"`'
12555lt_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"`'
12556objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12557SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12558ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12559MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12560lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12561lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12562lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12563lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12564lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12565need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12566DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12567NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12568LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12569OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12570OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12571libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12572shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12573extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12574archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12575enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12576export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12577whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12578compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12579old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12580old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12581archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12582archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12583module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12584module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12585with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12586allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12587no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12588hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12589hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12590hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12591hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12592hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12593hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12594hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12595hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12596inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12597link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12598fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12599always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12600export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12601exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12602include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12603prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12604file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12605variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12606need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12607need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12608version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12609runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12610shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12611shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12612libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12613library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12614soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12615postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12616postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12617finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12618finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12619hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12620sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12621sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12622hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12623enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12624enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12625enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12626old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12627striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12628
12629LTCC='$LTCC'
12630LTCFLAGS='$LTCFLAGS'
12631compiler='$compiler_DEFAULT'
12632
12633# Quote evaled strings.
12634for var in SED \
12635GREP \
12636EGREP \
12637FGREP \
12638LD \
12639NM \
12640LN_S \
12641lt_SP2NL \
12642lt_NL2SP \
12643reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012644OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012645deplibs_check_method \
12646file_magic_cmd \
12647AR \
12648AR_FLAGS \
12649STRIP \
12650RANLIB \
12651CC \
12652CFLAGS \
12653compiler \
12654lt_cv_sys_global_symbol_pipe \
12655lt_cv_sys_global_symbol_to_cdecl \
12656lt_cv_sys_global_symbol_to_c_name_address \
12657lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12658SHELL \
12659ECHO \
12660lt_prog_compiler_no_builtin_flag \
12661lt_prog_compiler_wl \
12662lt_prog_compiler_pic \
12663lt_prog_compiler_static \
12664lt_cv_prog_compiler_c_o \
12665need_locks \
12666DSYMUTIL \
12667NMEDIT \
12668LIPO \
12669OTOOL \
12670OTOOL64 \
12671shrext_cmds \
12672export_dynamic_flag_spec \
12673whole_archive_flag_spec \
12674compiler_needs_object \
12675with_gnu_ld \
12676allow_undefined_flag \
12677no_undefined_flag \
12678hardcode_libdir_flag_spec \
12679hardcode_libdir_flag_spec_ld \
12680hardcode_libdir_separator \
12681fix_srcfile_path \
12682exclude_expsyms \
12683include_expsyms \
12684file_list_spec \
12685variables_saved_for_relink \
12686libname_spec \
12687library_names_spec \
12688soname_spec \
12689finish_eval \
12690old_striplib \
12691striplib; do
12692 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12693 *[\\\\\\\`\\"\\\$]*)
12694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12695 ;;
12696 *)
12697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12698 ;;
12699 esac
12700done
12701
12702# Double-quote double-evaled strings.
12703for var in reload_cmds \
12704old_postinstall_cmds \
12705old_postuninstall_cmds \
12706old_archive_cmds \
12707extract_expsyms_cmds \
12708old_archive_from_new_cmds \
12709old_archive_from_expsyms_cmds \
12710archive_cmds \
12711archive_expsym_cmds \
12712module_cmds \
12713module_expsym_cmds \
12714export_symbols_cmds \
12715prelink_cmds \
12716postinstall_cmds \
12717postuninstall_cmds \
12718finish_cmds \
12719sys_lib_search_path_spec \
12720sys_lib_dlsearch_path_spec; do
12721 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12722 *[\\\\\\\`\\"\\\$]*)
12723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12724 ;;
12725 *)
12726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12727 ;;
12728 esac
12729done
12730
12731# Fix-up fallback echo if it was mangled by the above quoting rules.
12732case \$lt_ECHO in
12733*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12734 ;;
12735esac
12736
12737ac_aux_dir='$ac_aux_dir'
12738xsi_shell='$xsi_shell'
12739lt_shell_append='$lt_shell_append'
12740
12741# See if we are running on zsh, and set the options which allow our
12742# commands through without removal of \ escapes INIT.
12743if test -n "\${ZSH_VERSION+set}" ; then
12744 setopt NO_GLOB_SUBST
12745fi
12746
12747
12748 PACKAGE='$PACKAGE'
12749 VERSION='$VERSION'
12750 TIMESTAMP='$TIMESTAMP'
12751 RM='$RM'
12752 ofile='$ofile'
12753
12754
12755
12756
mlcreech94984912008-03-04 19:03:08 +000012757_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012758
drh8b727472009-01-19 18:18:40 +000012759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012760
drh8b727472009-01-19 18:18:40 +000012761# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012762for ac_config_target in $ac_config_targets
12763do
drh8b727472009-01-19 18:18:40 +000012764 case $ac_config_target in
12765 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12766 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12767 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12768 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12769
drhf922ca42015-05-14 15:39:18 +000012770 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012771 esac
12772done
12773
drh8b727472009-01-19 18:18:40 +000012774
drh71eb93e2001-09-28 01:34:43 +000012775# If the user did not use the arguments to specify the items to instantiate,
12776# then the envvar interface is used. Set only those that are not.
12777# We use the long form for the default assignment because of an extremely
12778# bizarre bug on SunOS 4.1.3.
12779if $ac_need_defaults; then
12780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012783fi
12784
a.rottmann84e63352003-03-24 09:42:16 +000012785# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012786# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012787# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012788# Hook for its removal unless debugging.
12789# Note that there is a small window in which the directory will not be cleaned:
12790# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012791$debug ||
12792{
drhf922ca42015-05-14 15:39:18 +000012793 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012794 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012795 : "${ac_tmp:=$tmp}"
12796 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012797' 0
drhf922ca42015-05-14 15:39:18 +000012798 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012799}
drh71eb93e2001-09-28 01:34:43 +000012800# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012801
drh71eb93e2001-09-28 01:34:43 +000012802{
drh8b727472009-01-19 18:18:40 +000012803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012804 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012805} ||
12806{
drh8b727472009-01-19 18:18:40 +000012807 tmp=./conf$$-$RANDOM
12808 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012809} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12810ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012811
drh8b727472009-01-19 18:18:40 +000012812# Set up the scripts for CONFIG_FILES section.
12813# No need to generate them if there are no CONFIG_FILES.
12814# This happens for instance with `./config.status config.h'.
12815if test -n "$CONFIG_FILES"; then
12816
12817
drhf922ca42015-05-14 15:39:18 +000012818ac_cr=`echo X | tr X '\015'`
12819# On cygwin, bash can eat \r inside `` if the user requested igncr.
12820# But we know of no other shell where ac_cr would be empty at this
12821# point, so we can use a bashism as a fallback.
12822if test "x$ac_cr" = x; then
12823 eval ac_cr=\$\'\\r\'
12824fi
drh8b727472009-01-19 18:18:40 +000012825ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12826if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012827 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012828else
12829 ac_cs_awk_cr=$ac_cr
12830fi
12831
drhf922ca42015-05-14 15:39:18 +000012832echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012833_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012834
mlcreech94984912008-03-04 19:03:08 +000012835
drh8b727472009-01-19 18:18:40 +000012836{
12837 echo "cat >conf$$subs.awk <<_ACEOF" &&
12838 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12839 echo "_ACEOF"
12840} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12842ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012843ac_delim='%!_!# '
12844for ac_last_try in false false false false false :; do
12845 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012847
drhf922ca42015-05-14 15:39:18 +000012848 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12849 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012850 break
12851 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012853 else
12854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012855 fi
drh8b727472009-01-19 18:18:40 +000012856done
12857rm -f conf$$subs.sh
12858
12859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012860cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012861_ACEOF
12862sed -n '
12863h
12864s/^/S["/; s/!.*/"]=/
12865p
12866g
12867s/^[^!]*!//
12868:repl
12869t repl
12870s/'"$ac_delim"'$//
12871t delim
12872:nl
12873h
drhf922ca42015-05-14 15:39:18 +000012874s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012875t more1
12876s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12877p
12878n
12879b repl
12880:more1
12881s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12882p
12883g
12884s/.\{148\}//
12885t nl
12886:delim
12887h
drhf922ca42015-05-14 15:39:18 +000012888s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012889t more2
12890s/["\\]/\\&/g; s/^/"/; s/$/"/
12891p
12892b
12893:more2
12894s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12895p
12896g
12897s/.\{148\}//
12898t delim
12899' <conf$$subs.awk | sed '
12900/^[^""]/{
12901 N
12902 s/\n//
12903}
12904' >>$CONFIG_STATUS || ac_write_fail=1
12905rm -f conf$$subs.awk
12906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907_ACAWK
drhf922ca42015-05-14 15:39:18 +000012908cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012909 for (key in S) S_is_set[key] = 1
12910 FS = ""
12911
12912}
12913{
12914 line = $ 0
12915 nfields = split(line, field, "@")
12916 substed = 0
12917 len = length(field[1])
12918 for (i = 2; i < nfields; i++) {
12919 key = field[i]
12920 keylen = length(key)
12921 if (S_is_set[key]) {
12922 value = S[key]
12923 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12924 len += length(value) + length(field[++i])
12925 substed = 1
12926 } else
12927 len += 1 + keylen
12928 }
12929
12930 print line
12931}
12932
12933_ACAWK
12934_ACEOF
12935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12936if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12938else
12939 cat
drhf922ca42015-05-14 15:39:18 +000012940fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12941 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012942_ACEOF
12943
drhf922ca42015-05-14 15:39:18 +000012944# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12945# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012946# trailing colons and then remove the whole line if VPATH becomes empty
12947# (actually we leave an empty line to preserve line numbers).
12948if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012949 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12950h
12951s///
12952s/^/:/
12953s/[ ]*$/:/
12954s/:\$(srcdir):/:/g
12955s/:\${srcdir}:/:/g
12956s/:@srcdir@:/:/g
12957s/^:*//
drh8b727472009-01-19 18:18:40 +000012958s/:*$//
drhf922ca42015-05-14 15:39:18 +000012959x
12960s/\(=[ ]*\).*/\1/
12961G
12962s/\n//
drh8b727472009-01-19 18:18:40 +000012963s/^[^=]*=[ ]*$//
12964}'
12965fi
12966
12967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012968fi # test -n "$CONFIG_FILES"
12969
drh8b727472009-01-19 18:18:40 +000012970# Set up the scripts for CONFIG_HEADERS section.
12971# No need to generate them if there are no CONFIG_HEADERS.
12972# This happens for instance with `./config.status Makefile'.
12973if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012974cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012975BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012976_ACEOF
drh8b727472009-01-19 18:18:40 +000012977
12978# Transform confdefs.h into an awk script `defines.awk', embedded as
12979# here-document in config.status, that substitutes the proper values into
12980# config.h.in to produce config.h.
12981
12982# Create a delimiter string that does not exist in confdefs.h, to ease
12983# handling of long lines.
12984ac_delim='%!_!# '
12985for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012986 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12987 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012988 break
12989 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012990 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012991 else
12992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12993 fi
12994done
12995
12996# For the awk script, D is an array of macro values keyed by name,
12997# likewise P contains macro parameters if any. Preserve backslash
12998# newline sequences.
12999
13000ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13001sed -n '
13002s/.\{148\}/&'"$ac_delim"'/g
13003t rset
13004:rset
13005s/^[ ]*#[ ]*define[ ][ ]*/ /
13006t def
13007d
13008:def
13009s/\\$//
13010t bsnl
13011s/["\\]/\\&/g
13012s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13013D["\1"]=" \3"/p
13014s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13015d
13016:bsnl
13017s/["\\]/\\&/g
13018s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13019D["\1"]=" \3\\\\\\n"\\/p
13020t cont
13021s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13022t cont
13023d
13024:cont
13025n
13026s/.\{148\}/&'"$ac_delim"'/g
13027t clear
13028:clear
13029s/\\$//
13030t bsnlc
13031s/["\\]/\\&/g; s/^/"/; s/$/"/p
13032d
13033:bsnlc
13034s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13035b cont
13036' <confdefs.h | sed '
13037s/'"$ac_delim"'/"\\\
13038"/g' >>$CONFIG_STATUS || ac_write_fail=1
13039
13040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13041 for (key in D) D_is_set[key] = 1
13042 FS = ""
13043}
13044/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13045 line = \$ 0
13046 split(line, arg, " ")
13047 if (arg[1] == "#") {
13048 defundef = arg[2]
13049 mac1 = arg[3]
13050 } else {
13051 defundef = substr(arg[1], 2)
13052 mac1 = arg[2]
13053 }
13054 split(mac1, mac2, "(") #)
13055 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000013056 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000013057 if (D_is_set[macro]) {
13058 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000013059 print prefix "define", macro P[macro] D[macro]
13060 next
13061 } else {
13062 # Replace #undef with comments. This is necessary, for example,
13063 # in the case of _POSIX_SOURCE, which is predefined and required
13064 # on some systems where configure will not decide to define it.
13065 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000013066 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000013067 next
13068 }
13069 }
13070}
13071{ print }
13072_ACAWK
13073_ACEOF
13074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013075 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013076fi # test -n "$CONFIG_HEADERS"
13077
13078
13079eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13080shift
13081for ac_tag
13082do
13083 case $ac_tag in
13084 :[FHLC]) ac_mode=$ac_tag; continue;;
13085 esac
13086 case $ac_mode$ac_tag in
13087 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013088 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013089 :[FH]-) ac_tag=-:-;;
13090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13091 esac
13092 ac_save_IFS=$IFS
13093 IFS=:
13094 set x $ac_tag
13095 IFS=$ac_save_IFS
13096 shift
13097 ac_file=$1
13098 shift
13099
13100 case $ac_mode in
13101 :L) ac_source=$1;;
13102 :[FH])
13103 ac_file_inputs=
13104 for ac_f
13105 do
13106 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013107 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013108 *) # Look for the file first in the build tree, then in the source tree
13109 # (if the path is not absolute). The absolute path cannot be DOS-style,
13110 # because $ac_f cannot contain `:'.
13111 test -f "$ac_f" ||
13112 case $ac_f in
13113 [\\/$]*) false;;
13114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13115 esac ||
drhf922ca42015-05-14 15:39:18 +000013116 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013117 esac
13118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013119 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013120 done
13121
13122 # Let's still pretend it is `configure' which instantiates (i.e., don't
13123 # use $as_me), people would be surprised to read:
13124 # /* config.h. Generated by config.status. */
13125 configure_input='Generated from '`
13126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13127 `' by configure.'
13128 if test x"$ac_file" != x-; then
13129 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013131$as_echo "$as_me: creating $ac_file" >&6;}
13132 fi
13133 # Neutralize special characters interpreted by sed in replacement strings.
13134 case $configure_input in #(
13135 *\&* | *\|* | *\\* )
13136 ac_sed_conf_input=`$as_echo "$configure_input" |
13137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13138 *) ac_sed_conf_input=$configure_input;;
13139 esac
13140
13141 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013142 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013144 esac
13145 ;;
drh71eb93e2001-09-28 01:34:43 +000013146 esac
13147
drh8b727472009-01-19 18:18:40 +000013148 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013149$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013150 X"$ac_file" : 'X\(//\)[^/]' \| \
13151 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13153$as_echo X"$ac_file" |
13154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13155 s//\1/
13156 q
13157 }
13158 /^X\(\/\/\)[^/].*/{
13159 s//\1/
13160 q
13161 }
13162 /^X\(\/\/\)$/{
13163 s//\1/
13164 q
13165 }
13166 /^X\(\/\).*/{
13167 s//\1/
13168 q
13169 }
13170 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013171 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013172 ac_builddir=.
13173
drh8b727472009-01-19 18:18:40 +000013174case "$ac_dir" in
13175.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13176*)
13177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13178 # A ".." for each directory in $ac_dir_suffix.
13179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13180 case $ac_top_builddir_sub in
13181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13183 esac ;;
13184esac
13185ac_abs_top_builddir=$ac_pwd
13186ac_abs_builddir=$ac_pwd$ac_dir_suffix
13187# for backward compatibility:
13188ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013189
13190case $srcdir in
drh8b727472009-01-19 18:18:40 +000013191 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013192 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013193 ac_top_srcdir=$ac_top_builddir_sub
13194 ac_abs_top_srcdir=$ac_pwd ;;
13195 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013196 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013197 ac_top_srcdir=$srcdir
13198 ac_abs_top_srcdir=$srcdir ;;
13199 *) # Relative name.
13200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13201 ac_top_srcdir=$ac_top_build_prefix$srcdir
13202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013203esac
drh8b727472009-01-19 18:18:40 +000013204ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013205
a.rottmann84e63352003-03-24 09:42:16 +000013206
drh8b727472009-01-19 18:18:40 +000013207 case $ac_mode in
13208 :F)
13209 #
13210 # CONFIG_FILE
13211 #
drh75897232000-05-29 14:26:00 +000013212
drh71eb93e2001-09-28 01:34:43 +000013213 case $INSTALL in
13214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013215 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013216 esac
mlcreech94984912008-03-04 19:03:08 +000013217_ACEOF
drh8b727472009-01-19 18:18:40 +000013218
13219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13220# If the template does not know about datarootdir, expand it.
13221# FIXME: This hack should be removed a few years after 2.60.
13222ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013223ac_sed_dataroot='
13224/datarootdir/ {
13225 p
13226 q
13227}
13228/@datadir@/p
13229/@docdir@/p
13230/@infodir@/p
13231/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013232/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013233case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13234*datarootdir*) ac_datarootdir_seen=yes;;
13235*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013237$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13238_ACEOF
13239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13240 ac_datarootdir_hack='
13241 s&@datadir@&$datadir&g
13242 s&@docdir@&$docdir&g
13243 s&@infodir@&$infodir&g
13244 s&@localedir@&$localedir&g
13245 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013246 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013247esac
13248_ACEOF
13249
13250# Neutralize VPATH when `$srcdir' = `.'.
13251# Shell code in configure.ac might set extrasub.
13252# FIXME: do we really want to maintain this feature?
13253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013255$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013256_ACEOF
drh8b727472009-01-19 18:18:40 +000013257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013258:t
13259/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013260s|@configure_input@|$ac_sed_conf_input|;t t
13261s&@top_builddir@&$ac_top_builddir_sub&;t t
13262s&@top_build_prefix@&$ac_top_build_prefix&;t t
13263s&@srcdir@&$ac_srcdir&;t t
13264s&@abs_srcdir@&$ac_abs_srcdir&;t t
13265s&@top_srcdir@&$ac_top_srcdir&;t t
13266s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13267s&@builddir@&$ac_builddir&;t t
13268s&@abs_builddir@&$ac_abs_builddir&;t t
13269s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13270s&@INSTALL@&$ac_INSTALL&;t t
13271$ac_datarootdir_hack
13272"
drhf922ca42015-05-14 15:39:18 +000013273eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13274 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013275
drh8b727472009-01-19 18:18:40 +000013276test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013277 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13278 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13279 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13281which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013282$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013283which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013284
drhf922ca42015-05-14 15:39:18 +000013285 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013286 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013287 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13288 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013289 esac \
drhf922ca42015-05-14 15:39:18 +000013290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013291 ;;
13292 :H)
13293 #
13294 # CONFIG_HEADER
13295 #
drh866108f2008-05-13 00:57:21 +000013296 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013297 {
13298 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013299 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13300 } >"$ac_tmp/config.h" \
13301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13302 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013304$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013305 else
drh8b727472009-01-19 18:18:40 +000013306 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013307 mv "$ac_tmp/config.h" "$ac_file" \
13308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013309 fi
13310 else
drh8b727472009-01-19 18:18:40 +000013311 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013312 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13313 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013314 fi
drh8b727472009-01-19 18:18:40 +000013315 ;;
drh866108f2008-05-13 00:57:21 +000013316
drhf922ca42015-05-14 15:39:18 +000013317 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013318$as_echo "$as_me: executing $ac_file commands" >&6;}
13319 ;;
13320 esac
drh866108f2008-05-13 00:57:21 +000013321
13322
drh8b727472009-01-19 18:18:40 +000013323 case $ac_file$ac_mode in
13324 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013325
13326 # See if we are running on zsh, and set the options which allow our
13327 # commands through without removal of \ escapes.
13328 if test -n "${ZSH_VERSION+set}" ; then
13329 setopt NO_GLOB_SUBST
13330 fi
13331
13332 cfgfile="${ofile}T"
13333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13334 $RM "$cfgfile"
13335
13336 cat <<_LT_EOF >> "$cfgfile"
13337#! $SHELL
13338
13339# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13340# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13341# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13342# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13343#
13344# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13345# 2006, 2007, 2008 Free Software Foundation, Inc.
13346# Written by Gordon Matzigkeit, 1996
13347#
13348# This file is part of GNU Libtool.
13349#
13350# GNU Libtool is free software; you can redistribute it and/or
13351# modify it under the terms of the GNU General Public License as
13352# published by the Free Software Foundation; either version 2 of
13353# the License, or (at your option) any later version.
13354#
13355# As a special exception to the GNU General Public License,
13356# if you distribute this file as part of a program or library that
13357# is built using GNU Libtool, you may include this file under the
13358# same distribution terms that you use for the rest of that program.
13359#
13360# GNU Libtool is distributed in the hope that it will be useful,
13361# but WITHOUT ANY WARRANTY; without even the implied warranty of
13362# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13363# GNU General Public License for more details.
13364#
13365# You should have received a copy of the GNU General Public License
13366# along with GNU Libtool; see the file COPYING. If not, a copy
13367# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13368# obtained by writing to the Free Software Foundation, Inc.,
13369# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13370
13371
13372# The names of the tagged configurations supported by this script.
13373available_tags=""
13374
13375# ### BEGIN LIBTOOL CONFIG
13376
13377# Which release of libtool.m4 was used?
13378macro_version=$macro_version
13379macro_revision=$macro_revision
13380
13381# Whether or not to build shared libraries.
13382build_libtool_libs=$enable_shared
13383
13384# Whether or not to build static libraries.
13385build_old_libs=$enable_static
13386
13387# What type of objects to build.
13388pic_mode=$pic_mode
13389
13390# Whether or not to optimize for fast installation.
13391fast_install=$enable_fast_install
13392
13393# The host system.
13394host_alias=$host_alias
13395host=$host
13396host_os=$host_os
13397
13398# The build system.
13399build_alias=$build_alias
13400build=$build
13401build_os=$build_os
13402
13403# A sed program that does not truncate output.
13404SED=$lt_SED
13405
13406# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13407Xsed="\$SED -e 1s/^X//"
13408
13409# A grep program that handles long lines.
13410GREP=$lt_GREP
13411
13412# An ERE matcher.
13413EGREP=$lt_EGREP
13414
13415# A literal string matcher.
13416FGREP=$lt_FGREP
13417
13418# A BSD- or MS-compatible name lister.
13419NM=$lt_NM
13420
13421# Whether we need soft or hard links.
13422LN_S=$lt_LN_S
13423
13424# What is the maximum length of a command?
13425max_cmd_len=$max_cmd_len
13426
13427# Object file suffix (normally "o").
13428objext=$ac_objext
13429
13430# Executable file suffix (normally "").
13431exeext=$exeext
13432
13433# whether the shell understands "unset".
13434lt_unset=$lt_unset
13435
13436# turn spaces into newlines.
13437SP2NL=$lt_lt_SP2NL
13438
13439# turn newlines into spaces.
13440NL2SP=$lt_lt_NL2SP
13441
13442# How to create reloadable object files.
13443reload_flag=$lt_reload_flag
13444reload_cmds=$lt_reload_cmds
13445
vapier6acb2cf2009-01-28 04:46:28 +000013446# An object symbol dumper.
13447OBJDUMP=$lt_OBJDUMP
13448
mlcreech636a9952008-05-05 22:52:56 +000013449# Method to check whether dependent libraries are shared objects.
13450deplibs_check_method=$lt_deplibs_check_method
13451
13452# Command to use when deplibs_check_method == "file_magic".
13453file_magic_cmd=$lt_file_magic_cmd
13454
13455# The archiver.
13456AR=$lt_AR
13457AR_FLAGS=$lt_AR_FLAGS
13458
13459# A symbol stripping program.
13460STRIP=$lt_STRIP
13461
13462# Commands used to install an old-style archive.
13463RANLIB=$lt_RANLIB
13464old_postinstall_cmds=$lt_old_postinstall_cmds
13465old_postuninstall_cmds=$lt_old_postuninstall_cmds
13466
13467# A C compiler.
13468LTCC=$lt_CC
13469
13470# LTCC compiler flags.
13471LTCFLAGS=$lt_CFLAGS
13472
13473# Take the output of nm and produce a listing of raw symbols and C names.
13474global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13475
13476# Transform the output of nm in a proper C declaration.
13477global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13478
13479# Transform the output of nm in a C name address pair.
13480global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13481
13482# Transform the output of nm in a C name address pair when lib prefix is needed.
13483global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13484
13485# The name of the directory that contains temporary libtool files.
13486objdir=$objdir
13487
13488# Shell to use when invoking shell scripts.
13489SHELL=$lt_SHELL
13490
13491# An echo program that does not interpret backslashes.
13492ECHO=$lt_ECHO
13493
13494# Used to examine libraries when file_magic_cmd begins with "file".
13495MAGIC_CMD=$MAGIC_CMD
13496
13497# Must we lock files when doing compilation?
13498need_locks=$lt_need_locks
13499
13500# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13501DSYMUTIL=$lt_DSYMUTIL
13502
13503# Tool to change global to local symbols on Mac OS X.
13504NMEDIT=$lt_NMEDIT
13505
13506# Tool to manipulate fat objects and archives on Mac OS X.
13507LIPO=$lt_LIPO
13508
13509# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13510OTOOL=$lt_OTOOL
13511
13512# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13513OTOOL64=$lt_OTOOL64
13514
13515# Old archive suffix (normally "a").
13516libext=$libext
13517
13518# Shared library suffix (normally ".so").
13519shrext_cmds=$lt_shrext_cmds
13520
13521# The commands to extract the exported symbol list from a shared archive.
13522extract_expsyms_cmds=$lt_extract_expsyms_cmds
13523
13524# Variables whose values should be saved in libtool wrapper scripts and
13525# restored at link time.
13526variables_saved_for_relink=$lt_variables_saved_for_relink
13527
13528# Do we need the "lib" prefix for modules?
13529need_lib_prefix=$need_lib_prefix
13530
13531# Do we need a version for libraries?
13532need_version=$need_version
13533
13534# Library versioning type.
13535version_type=$version_type
13536
13537# Shared library runtime path variable.
13538runpath_var=$runpath_var
13539
13540# Shared library path variable.
13541shlibpath_var=$shlibpath_var
13542
13543# Is shlibpath searched before the hard-coded library search path?
13544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13545
13546# Format of library name prefix.
13547libname_spec=$lt_libname_spec
13548
13549# List of archive names. First name is the real one, the rest are links.
13550# The last name is the one that the linker finds with -lNAME
13551library_names_spec=$lt_library_names_spec
13552
13553# The coded name of the library, if different from the real name.
13554soname_spec=$lt_soname_spec
13555
13556# Command to use after installation of a shared archive.
13557postinstall_cmds=$lt_postinstall_cmds
13558
13559# Command to use after uninstallation of a shared archive.
13560postuninstall_cmds=$lt_postuninstall_cmds
13561
13562# Commands used to finish a libtool library installation in a directory.
13563finish_cmds=$lt_finish_cmds
13564
13565# As "finish_cmds", except a single script fragment to be evaled but
13566# not shown.
13567finish_eval=$lt_finish_eval
13568
13569# Whether we should hardcode library paths into libraries.
13570hardcode_into_libs=$hardcode_into_libs
13571
13572# Compile-time system search path for libraries.
13573sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13574
13575# Run-time system search path for libraries.
13576sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13577
13578# Whether dlopen is supported.
13579dlopen_support=$enable_dlopen
13580
13581# Whether dlopen of programs is supported.
13582dlopen_self=$enable_dlopen_self
13583
13584# Whether dlopen of statically linked programs is supported.
13585dlopen_self_static=$enable_dlopen_self_static
13586
13587# Commands to strip libraries.
13588old_striplib=$lt_old_striplib
13589striplib=$lt_striplib
13590
13591
13592# The linker used to build libraries.
13593LD=$lt_LD
13594
13595# Commands used to build an old-style archive.
13596old_archive_cmds=$lt_old_archive_cmds
13597
13598# A language specific compiler.
13599CC=$lt_compiler
13600
13601# Is the compiler the GNU compiler?
13602with_gcc=$GCC
13603
13604# Compiler flag to turn off builtin functions.
13605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13606
13607# How to pass a linker flag through the compiler.
13608wl=$lt_lt_prog_compiler_wl
13609
13610# Additional compiler flags for building library objects.
13611pic_flag=$lt_lt_prog_compiler_pic
13612
13613# Compiler flag to prevent dynamic linking.
13614link_static_flag=$lt_lt_prog_compiler_static
13615
13616# Does compiler simultaneously support -c and -o options?
13617compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13618
13619# Whether or not to add -lc for building shared libraries.
13620build_libtool_need_lc=$archive_cmds_need_lc
13621
13622# Whether or not to disallow shared libs when runtime libs are static.
13623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13624
13625# Compiler flag to allow reflexive dlopens.
13626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13627
13628# Compiler flag to generate shared objects directly from archives.
13629whole_archive_flag_spec=$lt_whole_archive_flag_spec
13630
13631# Whether the compiler copes with passing no objects directly.
13632compiler_needs_object=$lt_compiler_needs_object
13633
13634# Create an old-style archive from a shared archive.
13635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13636
13637# Create a temporary old-style archive to link instead of a shared archive.
13638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13639
13640# Commands used to build a shared archive.
13641archive_cmds=$lt_archive_cmds
13642archive_expsym_cmds=$lt_archive_expsym_cmds
13643
13644# Commands used to build a loadable module if different from building
13645# a shared archive.
13646module_cmds=$lt_module_cmds
13647module_expsym_cmds=$lt_module_expsym_cmds
13648
13649# Whether we are building with GNU ld or not.
13650with_gnu_ld=$lt_with_gnu_ld
13651
13652# Flag that allows shared libraries with undefined symbols to be built.
13653allow_undefined_flag=$lt_allow_undefined_flag
13654
13655# Flag that enforces no undefined symbols.
13656no_undefined_flag=$lt_no_undefined_flag
13657
13658# Flag to hardcode \$libdir into a binary during linking.
13659# This must work even if \$libdir does not exist
13660hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13661
13662# If ld is used when linking, flag to hardcode \$libdir into a binary
13663# during linking. This must work even if \$libdir does not exist.
13664hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13665
13666# Whether we need a single "-rpath" flag with a separated argument.
13667hardcode_libdir_separator=$lt_hardcode_libdir_separator
13668
13669# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13670# DIR into the resulting binary.
13671hardcode_direct=$hardcode_direct
13672
13673# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13674# DIR into the resulting binary and the resulting library dependency is
13675# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13676# library is relocated.
13677hardcode_direct_absolute=$hardcode_direct_absolute
13678
13679# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13680# into the resulting binary.
13681hardcode_minus_L=$hardcode_minus_L
13682
13683# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13684# into the resulting binary.
13685hardcode_shlibpath_var=$hardcode_shlibpath_var
13686
13687# Set to "yes" if building a shared library automatically hardcodes DIR
13688# into the library and all subsequent libraries and executables linked
13689# against it.
13690hardcode_automatic=$hardcode_automatic
13691
13692# Set to yes if linker adds runtime paths of dependent libraries
13693# to runtime path list.
13694inherit_rpath=$inherit_rpath
13695
13696# Whether libtool must link a program against all its dependency libraries.
13697link_all_deplibs=$link_all_deplibs
13698
13699# Fix the shell variable \$srcfile for the compiler.
13700fix_srcfile_path=$lt_fix_srcfile_path
13701
13702# Set to "yes" if exported symbols are required.
13703always_export_symbols=$always_export_symbols
13704
13705# The commands to list exported symbols.
13706export_symbols_cmds=$lt_export_symbols_cmds
13707
13708# Symbols that should not be listed in the preloaded symbols.
13709exclude_expsyms=$lt_exclude_expsyms
13710
13711# Symbols that must always be exported.
13712include_expsyms=$lt_include_expsyms
13713
13714# Commands necessary for linking programs (against libraries) with templates.
13715prelink_cmds=$lt_prelink_cmds
13716
13717# Specify filename containing input files.
13718file_list_spec=$lt_file_list_spec
13719
13720# How to hardcode a shared library path into an executable.
13721hardcode_action=$hardcode_action
13722
13723# ### END LIBTOOL CONFIG
13724
13725_LT_EOF
13726
13727 case $host_os in
13728 aix3*)
13729 cat <<\_LT_EOF >> "$cfgfile"
13730# AIX sometimes has problems with the GCC collect2 program. For some
13731# reason, if we set the COLLECT_NAMES environment variable, the problems
13732# vanish in a puff of smoke.
13733if test "X${COLLECT_NAMES+set}" != Xset; then
13734 COLLECT_NAMES=
13735 export COLLECT_NAMES
13736fi
13737_LT_EOF
13738 ;;
13739 esac
13740
13741
13742ltmain="$ac_aux_dir/ltmain.sh"
13743
13744
13745 # We use sed instead of cat because bash on DJGPP gets confused if
13746 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13747 # text mode, it properly converts lines to CR/LF. This bash problem
13748 # is reportedly fixed, but why not run on old versions too?
13749 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13750 || (rm -f "$cfgfile"; exit 1)
13751
13752 case $xsi_shell in
13753 yes)
13754 cat << \_LT_EOF >> "$cfgfile"
13755
13756# func_dirname file append nondir_replacement
13757# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13758# otherwise set result to NONDIR_REPLACEMENT.
13759func_dirname ()
13760{
13761 case ${1} in
13762 */*) func_dirname_result="${1%/*}${2}" ;;
13763 * ) func_dirname_result="${3}" ;;
13764 esac
13765}
13766
13767# func_basename file
13768func_basename ()
13769{
13770 func_basename_result="${1##*/}"
13771}
13772
13773# func_dirname_and_basename file append nondir_replacement
13774# perform func_basename and func_dirname in a single function
13775# call:
13776# dirname: Compute the dirname of FILE. If nonempty,
13777# add APPEND to the result, otherwise set result
13778# to NONDIR_REPLACEMENT.
13779# value returned in "$func_dirname_result"
13780# basename: Compute filename of FILE.
13781# value retuned in "$func_basename_result"
13782# Implementation must be kept synchronized with func_dirname
13783# and func_basename. For efficiency, we do not delegate to
13784# those functions but instead duplicate the functionality here.
13785func_dirname_and_basename ()
13786{
13787 case ${1} in
13788 */*) func_dirname_result="${1%/*}${2}" ;;
13789 * ) func_dirname_result="${3}" ;;
13790 esac
13791 func_basename_result="${1##*/}"
13792}
13793
13794# func_stripname prefix suffix name
13795# strip PREFIX and SUFFIX off of NAME.
13796# PREFIX and SUFFIX must not contain globbing or regex special
13797# characters, hashes, percent signs, but SUFFIX may contain a leading
13798# dot (in which case that matches only a dot).
13799func_stripname ()
13800{
13801 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13802 # positional parameters, so assign one to ordinary parameter first.
13803 func_stripname_result=${3}
13804 func_stripname_result=${func_stripname_result#"${1}"}
13805 func_stripname_result=${func_stripname_result%"${2}"}
13806}
13807
13808# func_opt_split
13809func_opt_split ()
13810{
13811 func_opt_split_opt=${1%%=*}
13812 func_opt_split_arg=${1#*=}
13813}
13814
13815# func_lo2o object
13816func_lo2o ()
13817{
13818 case ${1} in
13819 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13820 *) func_lo2o_result=${1} ;;
13821 esac
13822}
13823
13824# func_xform libobj-or-source
13825func_xform ()
13826{
13827 func_xform_result=${1%.*}.lo
13828}
13829
13830# func_arith arithmetic-term...
13831func_arith ()
13832{
13833 func_arith_result=$(( $* ))
13834}
13835
13836# func_len string
13837# STRING may not start with a hyphen.
13838func_len ()
13839{
13840 func_len_result=${#1}
13841}
13842
13843_LT_EOF
13844 ;;
13845 *) # Bourne compatible functions.
13846 cat << \_LT_EOF >> "$cfgfile"
13847
13848# func_dirname file append nondir_replacement
13849# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13850# otherwise set result to NONDIR_REPLACEMENT.
13851func_dirname ()
13852{
13853 # Extract subdirectory from the argument.
13854 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13855 if test "X$func_dirname_result" = "X${1}"; then
13856 func_dirname_result="${3}"
13857 else
13858 func_dirname_result="$func_dirname_result${2}"
13859 fi
13860}
13861
13862# func_basename file
13863func_basename ()
13864{
13865 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13866}
13867
13868
13869# func_stripname prefix suffix name
13870# strip PREFIX and SUFFIX off of NAME.
13871# PREFIX and SUFFIX must not contain globbing or regex special
13872# characters, hashes, percent signs, but SUFFIX may contain a leading
13873# dot (in which case that matches only a dot).
13874# func_strip_suffix prefix name
13875func_stripname ()
13876{
13877 case ${2} in
13878 .*) func_stripname_result=`$ECHO "X${3}" \
13879 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13880 *) func_stripname_result=`$ECHO "X${3}" \
13881 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13882 esac
13883}
13884
13885# sed scripts:
13886my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13887my_sed_long_arg='1s/^-[^=]*=//'
13888
13889# func_opt_split
13890func_opt_split ()
13891{
13892 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13893 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13894}
13895
13896# func_lo2o object
13897func_lo2o ()
13898{
13899 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13900}
13901
13902# func_xform libobj-or-source
13903func_xform ()
13904{
13905 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13906}
13907
13908# func_arith arithmetic-term...
13909func_arith ()
13910{
13911 func_arith_result=`expr "$@"`
13912}
13913
13914# func_len string
13915# STRING may not start with a hyphen.
13916func_len ()
13917{
13918 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13919}
13920
13921_LT_EOF
13922esac
13923
13924case $lt_shell_append in
13925 yes)
13926 cat << \_LT_EOF >> "$cfgfile"
13927
13928# func_append var value
13929# Append VALUE to the end of shell variable VAR.
13930func_append ()
13931{
13932 eval "$1+=\$2"
13933}
13934_LT_EOF
13935 ;;
13936 *)
13937 cat << \_LT_EOF >> "$cfgfile"
13938
13939# func_append var value
13940# Append VALUE to the end of shell variable VAR.
13941func_append ()
13942{
13943 eval "$1=\$$1\$2"
13944}
13945
13946_LT_EOF
13947 ;;
13948 esac
13949
13950
13951 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13952 || (rm -f "$cfgfile"; exit 1)
13953
13954 mv -f "$cfgfile" "$ofile" ||
13955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13956 chmod +x "$ofile"
13957
13958 ;;
mlcreech94984912008-03-04 19:03:08 +000013959
drh8b727472009-01-19 18:18:40 +000013960 esac
13961done # for ac_tag
13962
drh71eb93e2001-09-28 01:34:43 +000013963
drhf922ca42015-05-14 15:39:18 +000013964as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013965_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013966ac_clean_files=$ac_clean_files_save
13967
drh8b727472009-01-19 18:18:40 +000013968test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013969 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013970
a.rottmann84e63352003-03-24 09:42:16 +000013971
drh71eb93e2001-09-28 01:34:43 +000013972# configure is writing to config.log, and then calls config.status.
13973# config.status does its own redirection, appending to config.log.
13974# Unfortunately, on DOS this fails, as config.log is still kept open
13975# by configure, so config.status won't be able to write to it; its
13976# output is simply discarded. So we exec the FD to /dev/null,
13977# effectively closing config.log, so it can be properly (re)opened and
13978# appended to by config.status. When coming back to configure, we
13979# need to make the FD available again.
13980if test "$no_create" != yes; then
13981 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013982 ac_config_status_args=
13983 test "$silent" = yes &&
13984 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013985 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013987 exec 5>>config.log
13988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13989 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013990 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013991fi
drh8b727472009-01-19 18:18:40 +000013992if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13994$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013995fi
drh63a49ce2017-01-02 19:10:14 +000013996