blob: 5a313189b1ae94eebd595cabdf086ca1e575bf4f [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
drhc530b9c2016-07-25 11:27:22 +0000906enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000907enable_memsys3
drh29368ea2019-12-28 13:17:11 +0000908enable_all
drhce1d9f52015-10-09 12:48:33 +0000909enable_fts3
910enable_fts4
911enable_fts5
912enable_json1
drh83bebdd2017-08-28 17:00:12 +0000913enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000914enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000915enable_rtree
drh5e18d402016-05-03 13:14:18 +0000916enable_session
drh8b727472009-01-19 18:18:40 +0000917enable_gcov
918'
919 ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000927CPP
928TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000929
drh75897232000-05-29 14:26:00 +0000930
931# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000932ac_init_help=
933ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000934ac_unrecognized_opts=
935ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000936# The variables have the same names as the options, with
937# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000938cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000939exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000940no_create=
drh75897232000-05-29 14:26:00 +0000941no_recursion=
942prefix=NONE
943program_prefix=NONE
944program_suffix=NONE
945program_transform_name=s,x,x,
946silent=
947site=
948srcdir=
drh75897232000-05-29 14:26:00 +0000949verbose=
950x_includes=NONE
951x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000952
953# Installation directory options.
954# These are left unexpanded so users can "make install exec_prefix=/foo"
955# and all the variables that are supposed to be based on exec_prefix
956# by default will actually change.
957# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000958# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000959bindir='${exec_prefix}/bin'
960sbindir='${exec_prefix}/sbin'
961libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000962datarootdir='${prefix}/share'
963datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000964sysconfdir='${prefix}/etc'
965sharedstatedir='${prefix}/com'
966localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000967includedir='${prefix}/include'
968oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970infodir='${datarootdir}/info'
971htmldir='${docdir}'
972dvidir='${docdir}'
973pdfdir='${docdir}'
974psdir='${docdir}'
975libdir='${exec_prefix}/lib'
976localedir='${datarootdir}/locale'
977mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000978
drh75897232000-05-29 14:26:00 +0000979ac_prev=
drh8b727472009-01-19 18:18:40 +0000980ac_dashdash=
drh75897232000-05-29 14:26:00 +0000981for ac_option
982do
drh75897232000-05-29 14:26:00 +0000983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000985 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000986 ac_prev=
987 continue
988 fi
989
drh8b727472009-01-19 18:18:40 +0000990 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000994 esac
drh75897232000-05-29 14:26:00 +0000995
996 # Accept the important Cygnus configure options, so we can diagnose typos.
997
drh8b727472009-01-19 18:18:40 +0000998 case $ac_dashdash$ac_option in
999 --)
1000 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001001
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001005 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001008 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001010 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001017 cache_file=$ac_optarg ;;
1018
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001021
drh8b727472009-01-19 18:18:40 +00001022 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001023 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001025 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001026
drh8b727472009-01-19 18:18:40 +00001027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1033
drh75897232000-05-29 14:26:00 +00001034 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001036 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001038 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"enable_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1049
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1054
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001059
1060 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001062 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001064 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"enable_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001073 esac
drh8b727472009-01-19 18:18:40 +00001074 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001083 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
drh71eb93e2001-09-28 01:34:43 +00001089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001097 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001098 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001099 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001100
drh8b727472009-01-19 18:18:40 +00001101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
drh75897232000-05-29 14:26:00 +00001107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001112 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001117 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001122 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
drh8b727472009-01-19 18:18:40 +00001131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
drh75897232000-05-29 14:26:00 +00001136 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001137 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001141 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001146 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001153 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001167 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001172 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001203 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001204
drh8b727472009-01-19 18:18:40 +00001205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
drh75897232000-05-29 14:26:00 +00001215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001223 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001234 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001239 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001244 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001251 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001254 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001256 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
drh71eb93e2001-09-28 01:34:43 +00001261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001263
1264 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001266 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001268 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273"with_$ac_useropt"
1274"*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001277 esac
drh8b727472009-01-19 18:18:40 +00001278 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001279
1280 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001282 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001284 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001305 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001312 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001313
drhf922ca42015-05-14 15:39:18 +00001314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001316 ;;
1317
drh71eb93e2001-09-28 01:34:43 +00001318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
drh8b727472009-01-19 18:18:40 +00001325 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001326 export $ac_envvar ;;
1327
drh75897232000-05-29 14:26:00 +00001328 *)
drh71eb93e2001-09-28 01:34:43 +00001329 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001341 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001342fi
1343
drh8b727472009-01-19 18:18:40 +00001344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
drhf922ca42015-05-14 15:39:18 +00001347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001349 esac
drh8b727472009-01-19 18:18:40 +00001350fi
drh866108f2008-05-13 00:57:21 +00001351
drh8b727472009-01-19 18:18:40 +00001352# Check all directory arguments for consistency.
1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001356 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001357do
drh8b727472009-01-19 18:18:40 +00001358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001360 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001364 esac
drh8b727472009-01-19 18:18:40 +00001365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
drhf922ca42015-05-14 15:39:18 +00001370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001371done
drh75897232000-05-29 14:26:00 +00001372
drh71eb93e2001-09-28 01:34:43 +00001373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001375# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001376build=$build_alias
1377host=$host_alias
1378target=$target_alias
drh75897232000-05-29 14:26:00 +00001379
a.rottmann84e63352003-03-24 09:42:16 +00001380# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001393
a.rottmann84e63352003-03-24 09:42:16 +00001394
drh8b727472009-01-19 18:18:40 +00001395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001398 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001400 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001401
1402
drh75897232000-05-29 14:26:00 +00001403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001430 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001431 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
drh8b727472009-01-19 18:18:40 +00001437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001440fi
drh8b727472009-01-19 18:18:40 +00001441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001444 pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
drh75897232000-05-29 14:26:00 +00001461
drh71eb93e2001-09-28 01:34:43 +00001462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001468 cat <<_ACEOF
drh636f5052020-12-02 00:22:09 +00001469\`configure' configures sqlite 3.35.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001483 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
drh71eb93e2001-09-28 01:34:43 +00001489Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001491 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001493 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001522_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001523
a.rottmann84e63352003-03-24 09:42:16 +00001524 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001530fi
1531
1532if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001533 case $ac_init_help in
drh636f5052020-12-02 00:22:09 +00001534 short | recursive ) echo "Configuration of sqlite 3.35.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001535 esac
a.rottmann84e63352003-03-24 09:42:16 +00001536 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001537
1538Optional Features:
drh8b727472009-01-19 18:18:40 +00001539 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001546 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001547 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001548 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001549 --enable-releasemode Support libtool link to release mode
1550 --enable-tempstore Use an in-ram database for temporary tables
1551 (never,no,yes,always)
1552 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001553 --enable-editline enable BSD editline support
1554 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001555 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001556 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001557 separately
drh05c7e0b2015-01-10 14:27:17 +00001558 --disable-load-extension
1559 Disable loading of external extensions
drhf6e904b2020-12-07 17:15:32 +00001560 --disable-math Disable math functions
drhc530b9c2016-07-25 11:27:22 +00001561 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001562 --enable-memsys3 Enable MEMSYS3
drh29368ea2019-12-28 13:17:11 +00001563 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
drhce1d9f52015-10-09 12:48:33 +00001564 --enable-fts3 Enable the FTS3 extension
1565 --enable-fts4 Enable the FTS4 extension
1566 --enable-fts5 Enable the FTS5 extension
1567 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001568 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001569 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001570 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001571 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001572 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001573
1574Optional Packages:
1575 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1576 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001577 --with-pic try to use only PIC/non-PIC objects [default=use
1578 both]
mlcreech636a9952008-05-05 22:52:56 +00001579 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001580 --with-tcl=DIR directory containing tcl configuration
1581 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001582 --with-readline-lib specify readline library
1583 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001584
1585Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001590 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001591 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001592 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001593 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001594 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001595
1596Use these variables to override the choices made by `configure' or to help
1597it to find libraries and programs with nonstandard names/locations.
1598
drhf922ca42015-05-14 15:39:18 +00001599Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001600_ACEOF
drh8b727472009-01-19 18:18:40 +00001601ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001602fi
1603
1604if test "$ac_init_help" = "recursive"; then
1605 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001606 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001607 test -d "$ac_dir" ||
1608 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609 continue
a.rottmann84e63352003-03-24 09:42:16 +00001610 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001611
drh8b727472009-01-19 18:18:40 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
1615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001627
a.rottmann84e63352003-03-24 09:42:16 +00001628case $srcdir in
drh8b727472009-01-19 18:18:40 +00001629 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001630 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001641esac
drh8b727472009-01-19 18:18:40 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001643
drh8b727472009-01-19 18:18:40 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001652 else
drh8b727472009-01-19 18:18:40 +00001653 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001656 done
1657fi
1658
drh8b727472009-01-19 18:18:40 +00001659test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001660if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001661 cat <<\_ACEOF
drh636f5052020-12-02 00:22:09 +00001662sqlite configure 3.35.0
drhf922ca42015-05-14 15:39:18 +00001663generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001664
drhf922ca42015-05-14 15:39:18 +00001665Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001666This configure script is free software; the Free Software Foundation
1667gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001668_ACEOF
drh8b727472009-01-19 18:18:40 +00001669 exit
drh71eb93e2001-09-28 01:34:43 +00001670fi
drhf922ca42015-05-14 15:39:18 +00001671
1672## ------------------------ ##
1673## Autoconf initialization. ##
1674## ------------------------ ##
1675
1676# ac_fn_c_try_compile LINENO
1677# --------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_c_try_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 test -x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_link
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1771else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h. */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778 eval "$3=yes"
1779else
1780 eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_cpp LINENO
1792# ----------------------
1793# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_cpp ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801esac
1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803$as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } > conftest.i && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817else
1818 $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822fi
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_cpp
1827
1828# ac_fn_c_try_run LINENO
1829# ----------------------
1830# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1831# that executables *can* be run.
1832ac_fn_c_try_run ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { { ac_try="$ac_link"
1836case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1846 { { case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_try") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; }; }; then :
1856 ac_retval=0
1857else
1858 $as_echo "$as_me: program exited with status $ac_status" >&5
1859 $as_echo "$as_me: failed program was:" >&5
1860sed 's/^/| /' conftest.$ac_ext >&5
1861
1862 ac_retval=$ac_status
1863fi
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1867
1868} # ac_fn_c_try_run
1869
1870# ac_fn_c_check_func LINENO FUNC VAR
1871# ----------------------------------
1872# Tests whether FUNC exists, setting the cache variable VAR accordingly
1873ac_fn_c_check_func ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880else
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882/* end confdefs.h. */
1883/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1885#define $2 innocuous_$2
1886
1887/* System header to define __stub macros and hopefully few prototypes,
1888 which can conflict with char $2 (); below.
1889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890 <limits.h> exists even on freestanding compilers. */
1891
1892#ifdef __STDC__
1893# include <limits.h>
1894#else
1895# include <assert.h>
1896#endif
1897
1898#undef $2
1899
1900/* Override any GCC internal prototype to avoid an error.
1901 Use char because int might match the return type of a GCC
1902 builtin and then its argument prototype would still apply. */
1903#ifdef __cplusplus
1904extern "C"
1905#endif
1906char $2 ();
1907/* The GNU C library defines this for functions which it implements
1908 to always fail with ENOSYS. Some functions are actually named
1909 something starting with __ and the normal name is an alias. */
1910#if defined __stub_$2 || defined __stub___$2
1911choke me
1912#endif
1913
1914int
1915main ()
1916{
1917return $2 ();
1918 ;
1919 return 0;
1920}
1921_ACEOF
1922if ac_fn_c_try_link "$LINENO"; then :
1923 eval "$3=yes"
1924else
1925 eval "$3=no"
1926fi
1927rm -f core conftest.err conftest.$ac_objext \
1928 conftest$ac_exeext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935} # ac_fn_c_check_func
1936
1937# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1938# -------------------------------------------
1939# Tests whether TYPE exists after having included INCLUDES, setting cache
1940# variable VAR accordingly.
1941ac_fn_c_check_type ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
1946if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948else
1949 eval "$3=no"
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$4
1953int
1954main ()
1955{
1956if (sizeof ($2))
1957 return 0;
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h. */
1965$4
1966int
1967main ()
1968{
1969if (sizeof (($2)))
1970 return 0;
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975if ac_fn_c_try_compile "$LINENO"; then :
1976
1977else
1978 eval "$3=yes"
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988
1989} # ac_fn_c_check_type
1990
1991# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1992# -------------------------------------------------------
1993# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1994# the include files in INCLUDES and setting the cache variable VAR
1995# accordingly.
1996ac_fn_c_check_header_mongrel ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if eval \${$3+:} false; then :
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001$as_echo_n "checking for $2... " >&6; }
2002if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2004fi
2005eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008else
2009 # Is the header compilable?
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2011$as_echo_n "checking $2 usability... " >&6; }
2012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015#include <$2>
2016_ACEOF
2017if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_header_compiler=yes
2019else
2020 ac_header_compiler=no
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2024$as_echo "$ac_header_compiler" >&6; }
2025
2026# Is the header present?
2027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2028$as_echo_n "checking $2 presence... " >&6; }
2029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031#include <$2>
2032_ACEOF
2033if ac_fn_c_try_cpp "$LINENO"; then :
2034 ac_header_preproc=yes
2035else
2036 ac_header_preproc=no
2037fi
2038rm -f conftest.err conftest.i conftest.$ac_ext
2039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2040$as_echo "$ac_header_preproc" >&6; }
2041
2042# So? What about this header?
2043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2044 yes:no: )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2046$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ;;
2050 no:yes:* )
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2052$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2054$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2056$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2058$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062esac
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067else
2068 eval "$3=\$ac_header_compiler"
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073fi
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075
2076} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002077cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002078This file contains any messages produced by compilers while
2079running configure, to aid debugging if configure makes a mistake.
2080
drh636f5052020-12-02 00:22:09 +00002081It was created by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +00002082generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002083
2084 $ $0 $@
2085
a.rottmann84e63352003-03-24 09:42:16 +00002086_ACEOF
drh8b727472009-01-19 18:18:40 +00002087exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002088{
2089cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002090## --------- ##
2091## Platform. ##
2092## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002093
2094hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2095uname -m = `(uname -m) 2>/dev/null || echo unknown`
2096uname -r = `(uname -r) 2>/dev/null || echo unknown`
2097uname -s = `(uname -s) 2>/dev/null || echo unknown`
2098uname -v = `(uname -v) 2>/dev/null || echo unknown`
2099
2100/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2101/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2102
2103/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2104/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2105/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002106/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002107/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2108/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2109/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110
drh71eb93e2001-09-28 01:34:43 +00002111_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002112
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002118 $as_echo "PATH: $as_dir"
2119 done
drh8b727472009-01-19 18:18:40 +00002120IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002121
drh71eb93e2001-09-28 01:34:43 +00002122} >&5
2123
a.rottmann84e63352003-03-24 09:42:16 +00002124cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002125
a.rottmann84e63352003-03-24 09:42:16 +00002126
2127## ----------- ##
2128## Core tests. ##
2129## ----------- ##
2130
2131_ACEOF
2132
drh71eb93e2001-09-28 01:34:43 +00002133
2134# Keep a trace of the command line.
2135# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002136# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002137# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002138# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002139ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002140ac_configure_args0=
2141ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002142ac_must_keep_next=false
2143for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002144do
a.rottmann84e63352003-03-24 09:42:16 +00002145 for ac_arg
2146 do
2147 case $ac_arg in
2148 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2150 | -silent | --silent | --silen | --sile | --sil)
2151 continue ;;
drh8b727472009-01-19 18:18:40 +00002152 *\'*)
2153 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002154 esac
2155 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002156 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002157 2)
drhf922ca42015-05-14 15:39:18 +00002158 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002159 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002160 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002161 else
a.rottmann964dbb12004-02-26 19:47:42 +00002162 case $ac_arg in
2163 *=* | --config-cache | -C | -disable-* | --disable-* \
2164 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2165 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2166 | -with-* | --with-* | -without-* | --without-* | --x)
2167 case "$ac_configure_args0 " in
2168 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2169 esac
2170 ;;
2171 -* ) ac_must_keep_next=true ;;
2172 esac
a.rottmann84e63352003-03-24 09:42:16 +00002173 fi
drhf922ca42015-05-14 15:39:18 +00002174 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002175 ;;
2176 esac
2177 done
drh71eb93e2001-09-28 01:34:43 +00002178done
drhf922ca42015-05-14 15:39:18 +00002179{ ac_configure_args0=; unset ac_configure_args0;}
2180{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002181
2182# When interrupted or exit'd, cleanup temporary files, and complete
2183# config.log. We remove comments because anyway the quotes in there
2184# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002185# WARNING: Use '\'' to represent an apostrophe within the trap.
2186# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002187trap 'exit_status=$?
2188 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002189 {
2190 echo
2191
drhf922ca42015-05-14 15:39:18 +00002192 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002193## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002194## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002195 echo
2196 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002197(
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002209 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002210 esac ;;
2211 esac
2212 done
drh71eb93e2001-09-28 01:34:43 +00002213 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002216 sed -n \
drh8b727472009-01-19 18:18:40 +00002217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
drh866108f2008-05-13 00:57:21 +00002220 *)
drh8b727472009-01-19 18:18:40 +00002221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002222 ;;
drh8b727472009-01-19 18:18:40 +00002223 esac |
2224 sort
2225)
a.rottmann84e63352003-03-24 09:42:16 +00002226 echo
2227
drhf922ca42015-05-14 15:39:18 +00002228 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002229## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002230## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002231 echo
2232 for ac_var in $ac_subst_vars
2233 do
drh8b727472009-01-19 18:18:40 +00002234 eval ac_val=\$$ac_var
2235 case $ac_val in
2236 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2237 esac
2238 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002239 done | sort
2240 echo
2241
2242 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002243 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002244## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002245## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002246 echo
2247 for ac_var in $ac_subst_files
2248 do
drh8b727472009-01-19 18:18:40 +00002249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002254 done | sort
2255 echo
2256 fi
2257
2258 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002259 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002260## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002261## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002262 echo
drh8b727472009-01-19 18:18:40 +00002263 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002264 echo
2265 fi
2266 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002267 $as_echo "$as_me: caught signal $ac_signal"
2268 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002269 } >&5
drh8b727472009-01-19 18:18:40 +00002270 rm -f core *.core core.conftest.* &&
2271 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002272 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002273' 0
drh71eb93e2001-09-28 01:34:43 +00002274for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002275 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002276done
2277ac_signal=0
2278
2279# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002280rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002281
drhf922ca42015-05-14 15:39:18 +00002282$as_echo "/* confdefs.h */" > confdefs.h
2283
a.rottmann84e63352003-03-24 09:42:16 +00002284# Predefined preprocessor variables.
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_NAME "$PACKAGE_NAME"
2288_ACEOF
2289
a.rottmann84e63352003-03-24 09:42:16 +00002290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2292_ACEOF
2293
a.rottmann84e63352003-03-24 09:42:16 +00002294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_VERSION "$PACKAGE_VERSION"
2296_ACEOF
2297
a.rottmann84e63352003-03-24 09:42:16 +00002298cat >>confdefs.h <<_ACEOF
2299#define PACKAGE_STRING "$PACKAGE_STRING"
2300_ACEOF
2301
dana9f39fd2011-08-12 16:34:42 +00002302cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002303#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002304_ACEOF
2305
drhf922ca42015-05-14 15:39:18 +00002306cat >>confdefs.h <<_ACEOF
2307#define PACKAGE_URL "$PACKAGE_URL"
2308_ACEOF
2309
a.rottmann84e63352003-03-24 09:42:16 +00002310
drh71eb93e2001-09-28 01:34:43 +00002311# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002312# Prefer an explicitly selected file to automatically selected ones.
2313ac_site_file1=NONE
2314ac_site_file2=NONE
2315if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002316 # We do not want a PATH search for config.site.
2317 case $CONFIG_SITE in #((
2318 -*) ac_site_file1=./$CONFIG_SITE;;
2319 */*) ac_site_file1=$CONFIG_SITE;;
2320 *) ac_site_file1=./$CONFIG_SITE;;
2321 esac
drh8b727472009-01-19 18:18:40 +00002322elif test "x$prefix" != xNONE; then
2323 ac_site_file1=$prefix/share/config.site
2324 ac_site_file2=$prefix/etc/config.site
2325else
2326 ac_site_file1=$ac_default_prefix/share/config.site
2327 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002328fi
drh8b727472009-01-19 18:18:40 +00002329for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2330do
2331 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002332 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002334$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002335 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002336 . "$ac_site_file" \
2337 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339as_fn_error $? "failed to load site script $ac_site_file
2340See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002341 fi
2342done
2343
2344if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002345 # Some versions of bash will fail to source /dev/null (special files
2346 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2347 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002349$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002350 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002351 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2352 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002353 esac
2354 fi
drh75897232000-05-29 14:26:00 +00002355else
drhf922ca42015-05-14 15:39:18 +00002356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002357$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002358 >$cache_file
2359fi
2360
2361# Check that the precious variables saved in the cache have kept the same
2362# value.
2363ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002364for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002365 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2366 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002367 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2368 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002369 case $ac_old_set,$ac_new_set in
2370 set,)
drhf922ca42015-05-14 15:39:18 +00002371 { $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 +00002372$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002373 ac_cache_corrupted=: ;;
2374 ,set)
drhf922ca42015-05-14 15:39:18 +00002375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002376$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002377 ac_cache_corrupted=: ;;
2378 ,);;
2379 *)
2380 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002381 # differences in whitespace do not lead to failure.
2382 ac_old_val_w=`echo x $ac_old_val`
2383 ac_new_val_w=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002386$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted=:
2388 else
drhf922ca42015-05-14 15:39:18 +00002389 { $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 +00002390$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\$ac_old_val
2392 fi
drhf922ca42015-05-14 15:39:18 +00002393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002394$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002396$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002397 fi;;
2398 esac
a.rottmann84e63352003-03-24 09:42:16 +00002399 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002400 if test "$ac_new_set" = set; then
2401 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002402 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002403 *) ac_arg=$ac_var=$ac_new_val ;;
2404 esac
2405 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002407 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002408 esac
2409 fi
2410done
2411if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002415$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002416 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002417fi
drhf922ca42015-05-14 15:39:18 +00002418## -------------------- ##
2419## Main body of script. ##
2420## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002421
drh75897232000-05-29 14:26:00 +00002422ac_ext=c
drh75897232000-05-29 14:26:00 +00002423ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002427
a.rottmann84e63352003-03-24 09:42:16 +00002428
2429
drh04446102009-06-15 00:04:06 +00002430sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002431if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002432as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002433 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2434 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002435please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002436fi
2437
drh75897232000-05-29 14:26:00 +00002438#########
drh71eb93e2001-09-28 01:34:43 +00002439# Programs needed
drh75897232000-05-29 14:26:00 +00002440#
mlcreech636a9952008-05-05 22:52:56 +00002441case `pwd` in
2442 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002444$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002445esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002446
mlcreech94984912008-03-04 19:03:08 +00002447
mlcreech636a9952008-05-05 22:52:56 +00002448
vapier6acb2cf2009-01-28 04:46:28 +00002449macro_version='2.2.6'
2450macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002451
mlcreech94984912008-03-04 19:03:08 +00002452
mlcreech94984912008-03-04 19:03:08 +00002453
a.rottmann9bc8b932004-02-29 15:18:31 +00002454
mlcreech636a9952008-05-05 22:52:56 +00002455
2456
2457
2458
2459
2460
2461
2462
2463
2464ltmain="$ac_aux_dir/ltmain.sh"
2465
drh71eb93e2001-09-28 01:34:43 +00002466ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002467for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002468 if test -f "$ac_dir/install-sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install-sh -c"
2471 break
2472 elif test -f "$ac_dir/install.sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install.sh -c"
2475 break
2476 elif test -f "$ac_dir/shtool"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/shtool install -c"
2479 break
2480 fi
drh71eb93e2001-09-28 01:34:43 +00002481done
2482if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002483 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002484fi
drh8b727472009-01-19 18:18:40 +00002485
2486# These three variables are undocumented and unsupported,
2487# and are intended to be withdrawn in a future Autoconf release.
2488# They can cause serious problems if a builder's source tree is in a directory
2489# whose full name contains unusual characters.
2490ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2491ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2492ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2493
drh71eb93e2001-09-28 01:34:43 +00002494
2495# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002498
drhf922ca42015-05-14 15:39:18 +00002499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002500$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002501if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002502 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002503else
drh8b727472009-01-19 18:18:40 +00002504 ac_build_alias=$build_alias
2505test "x$ac_build_alias" = x &&
2506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2507test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002509ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002511
2512fi
drhf922ca42015-05-14 15:39:18 +00002513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002514$as_echo "$ac_cv_build" >&6; }
2515case $ac_cv_build in
2516*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002517*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002518esac
drh71eb93e2001-09-28 01:34:43 +00002519build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002520ac_save_IFS=$IFS; IFS='-'
2521set x $ac_cv_build
2522shift
2523build_cpu=$1
2524build_vendor=$2
2525shift; shift
2526# Remember, the first character of IFS is used to create $*,
2527# except with old shells:
2528build_os=$*
2529IFS=$ac_save_IFS
2530case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002531
a.rottmann84e63352003-03-24 09:42:16 +00002532
drhf922ca42015-05-14 15:39:18 +00002533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002534$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002535if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002536 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002537else
drh8b727472009-01-19 18:18:40 +00002538 if test "x$host_alias" = x; then
2539 ac_cv_host=$ac_cv_build
2540else
2541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002543fi
drh71eb93e2001-09-28 01:34:43 +00002544
2545fi
drhf922ca42015-05-14 15:39:18 +00002546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002547$as_echo "$ac_cv_host" >&6; }
2548case $ac_cv_host in
2549*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002550*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002551esac
drh71eb93e2001-09-28 01:34:43 +00002552host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002553ac_save_IFS=$IFS; IFS='-'
2554set x $ac_cv_host
2555shift
2556host_cpu=$1
2557host_vendor=$2
2558shift; shift
2559# Remember, the first character of IFS is used to create $*,
2560# except with old shells:
2561host_os=$*
2562IFS=$ac_save_IFS
2563case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002564
a.rottmann84e63352003-03-24 09:42:16 +00002565
drh71eb93e2001-09-28 01:34:43 +00002566ac_ext=c
2567ac_cpp='$CPP $CPPFLAGS'
2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2573set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002575$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002576if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002577 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002578else
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
a.rottmann84e63352003-03-24 09:42:16 +00002582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002591 break 2
2592 fi
2593done
drhf922ca42015-05-14 15:39:18 +00002594 done
drh8b727472009-01-19 18:18:40 +00002595IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002596
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002602$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002603else
drhf922ca42015-05-14 15:39:18 +00002604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002605$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002606fi
2607
drh8b727472009-01-19 18:18:40 +00002608
drh71eb93e2001-09-28 01:34:43 +00002609fi
2610if test -z "$ac_cv_prog_CC"; then
2611 ac_ct_CC=$CC
2612 # Extract the first word of "gcc", so it can be a program name with args.
2613set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002615$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002616if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002617 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002618else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621else
a.rottmann84e63352003-03-24 09:42:16 +00002622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002629 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002631 break 2
2632 fi
2633done
drhf922ca42015-05-14 15:39:18 +00002634 done
drh8b727472009-01-19 18:18:40 +00002635IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002636
2637fi
2638fi
2639ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002642$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002643else
drhf922ca42015-05-14 15:39:18 +00002644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002645$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002646fi
2647
drh8b727472009-01-19 18:18:40 +00002648 if test "x$ac_ct_CC" = x; then
2649 CC=""
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652yes:)
drhf922ca42015-05-14 15:39:18 +00002653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002655ac_tool_warned=yes ;;
2656esac
2657 CC=$ac_ct_CC
2658 fi
drh71eb93e2001-09-28 01:34:43 +00002659else
2660 CC="$ac_cv_prog_CC"
2661fi
2662
2663if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002666set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002668$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002669if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002670 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002671else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674else
a.rottmann84e63352003-03-24 09:42:16 +00002675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002682 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002684 break 2
2685 fi
2686done
drhf922ca42015-05-14 15:39:18 +00002687 done
drh8b727472009-01-19 18:18:40 +00002688IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002689
2690fi
2691fi
2692CC=$ac_cv_prog_CC
2693if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002695$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002696else
drhf922ca42015-05-14 15:39:18 +00002697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002698$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002699fi
2700
drh8b727472009-01-19 18:18:40 +00002701
a.rottmann84e63352003-03-24 09:42:16 +00002702 fi
drh71eb93e2001-09-28 01:34:43 +00002703fi
2704if test -z "$CC"; then
2705 # Extract the first word of "cc", so it can be a program name with args.
2706set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002708$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002709if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002710 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002711else
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
2714else
2715 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2724 ac_prog_rejected=yes
2725 continue
2726 fi
2727 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002729 break 2
2730 fi
2731done
drhf922ca42015-05-14 15:39:18 +00002732 done
drh8b727472009-01-19 18:18:40 +00002733IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002734
2735if test $ac_prog_rejected = yes; then
2736 # We found a bogon in the path, so make sure we never use it.
2737 set dummy $ac_cv_prog_CC
2738 shift
2739 if test $# != 0; then
2740 # We chose a different compiler from the bogus one.
2741 # However, it has the same basename, so the bogon will be chosen
2742 # first if we set CC to just the basename; use the full file name.
2743 shift
a.rottmann84e63352003-03-24 09:42:16 +00002744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002745 fi
2746fi
2747fi
2748fi
2749CC=$ac_cv_prog_CC
2750if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002752$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002753else
drhf922ca42015-05-14 15:39:18 +00002754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002755$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002756fi
2757
drh8b727472009-01-19 18:18:40 +00002758
drh71eb93e2001-09-28 01:34:43 +00002759fi
2760if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002762 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002763 do
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002767$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002768if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002769 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
a.rottmann84e63352003-03-24 09:42:16 +00002774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002783 break 2
2784 fi
2785done
drhf922ca42015-05-14 15:39:18 +00002786 done
drh8b727472009-01-19 18:18:40 +00002787IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002788
2789fi
2790fi
2791CC=$ac_cv_prog_CC
2792if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002794$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002795else
drhf922ca42015-05-14 15:39:18 +00002796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002797$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002798fi
2799
drh8b727472009-01-19 18:18:40 +00002800
drh71eb93e2001-09-28 01:34:43 +00002801 test -n "$CC" && break
2802 done
2803fi
2804if test -z "$CC"; then
2805 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002806 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002807do
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002811$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002812if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002813 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002814else
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817else
a.rottmann84e63352003-03-24 09:42:16 +00002818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819for as_dir in $PATH
2820do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002825 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002827 break 2
2828 fi
2829done
drhf922ca42015-05-14 15:39:18 +00002830 done
drh8b727472009-01-19 18:18:40 +00002831IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002832
2833fi
2834fi
2835ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002838$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002839else
drhf922ca42015-05-14 15:39:18 +00002840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002841$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002842fi
2843
drh8b727472009-01-19 18:18:40 +00002844
drh71eb93e2001-09-28 01:34:43 +00002845 test -n "$ac_ct_CC" && break
2846done
2847
drh8b727472009-01-19 18:18:40 +00002848 if test "x$ac_ct_CC" = x; then
2849 CC=""
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852yes:)
drhf922ca42015-05-14 15:39:18 +00002853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002855ac_tool_warned=yes ;;
2856esac
2857 CC=$ac_ct_CC
2858 fi
drh71eb93e2001-09-28 01:34:43 +00002859fi
2860
2861fi
2862
a.rottmann84e63352003-03-24 09:42:16 +00002863
drhf922ca42015-05-14 15:39:18 +00002864test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866as_fn_error $? "no acceptable C compiler found in \$PATH
2867See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002868
2869# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002870$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002871set X $ac_compile
2872ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002873for ac_option in --version -v -V -qversion; do
2874 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002875case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878esac
drhf922ca42015-05-14 15:39:18 +00002879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2880$as_echo "$ac_try_echo"; } >&5
2881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002882 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002883 if test -s conftest.err; then
2884 sed '10a\
2885... rest of stderr output deleted ...
2886 10q' conftest.err >conftest.er1
2887 cat conftest.er1 >&5
2888 fi
2889 rm -f conftest.er1 conftest.err
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }
2892done
drh71eb93e2001-09-28 01:34:43 +00002893
drhf922ca42015-05-14 15:39:18 +00002894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002895/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002896
2897int
2898main ()
2899{
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002906ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002907# Try to create an executable without -o first, disregard a.out.
2908# It will help us diagnose broken compilers, and finding out an intuition
2909# of exeext.
drhf922ca42015-05-14 15:39:18 +00002910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2911$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002912ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002913
drh8b727472009-01-19 18:18:40 +00002914# The possible output files:
2915ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916
2917ac_rmfiles=
2918for ac_file in $ac_files
2919do
2920 case $ac_file in
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2923 esac
2924done
2925rm -f $ac_rmfiles
2926
drhf922ca42015-05-14 15:39:18 +00002927if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002928case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
drhf922ca42015-05-14 15:39:18 +00002932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2933$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002934 (eval "$ac_link_default") 2>&5
2935 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2937 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002938 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2939# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2940# in a Makefile. We should not override ac_cv_exeext if it was cached,
2941# so that the user can short-circuit this test for compilers unknown to
2942# Autoconf.
2943for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002944do
2945 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002946 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002948 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002949 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002950 # We found the default executable, but exeext='' is most
2951 # certainly right.
2952 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002953 *.* )
drhf922ca42015-05-14 15:39:18 +00002954 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002955 then :; else
2956 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957 fi
2958 # We set ac_cv_exeext here because the later test for it is not
2959 # safe: cross compilers may not add the suffix if given an `-o'
2960 # argument, so we may need to know it at that point already.
2961 # Even if this section looks crufty: it has the advantage of
2962 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002963 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002964 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002965 break;;
drh71eb93e2001-09-28 01:34:43 +00002966 esac
2967done
drh8b727472009-01-19 18:18:40 +00002968test "$ac_cv_exeext" = no && ac_cv_exeext=
2969
drh71eb93e2001-09-28 01:34:43 +00002970else
drh8b727472009-01-19 18:18:40 +00002971 ac_file=''
2972fi
drhf922ca42015-05-14 15:39:18 +00002973if test -z "$ac_file"; then :
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
2976$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002977sed 's/^/| /' conftest.$ac_ext >&5
2978
drhf922ca42015-05-14 15:39:18 +00002979{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981as_fn_error 77 "C compiler cannot create executables
2982See \`config.log' for more details" "$LINENO" 5; }
2983else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002985$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002986fi
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2988$as_echo_n "checking for C compiler default output file name... " >&6; }
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2990$as_echo "$ac_file" >&6; }
2991ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002992
drh8b727472009-01-19 18:18:40 +00002993rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002994ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002996$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002997if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002998case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001esac
drhf922ca42015-05-14 15:39:18 +00003002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003004 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003005 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003008 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3009# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3010# work properly (i.e., refer to `conftest.exe'), while it won't with
3011# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003012for ac_file in conftest.exe conftest conftest.*; do
3013 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003014 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003016 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003017 break;;
drh71eb93e2001-09-28 01:34:43 +00003018 * ) break;;
3019 esac
3020done
3021else
drhf922ca42015-05-14 15:39:18 +00003022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3025See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003026fi
drhf922ca42015-05-14 15:39:18 +00003027rm -f conftest conftest$ac_cv_exeext
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003029$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003030
3031rm -f conftest.$ac_ext
3032EXEEXT=$ac_cv_exeext
3033ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035/* end confdefs.h. */
3036#include <stdio.h>
3037int
3038main ()
3039{
3040FILE *f = fopen ("conftest.out", "w");
3041 return ferror (f) || fclose (f) != 0;
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047ac_clean_files="$ac_clean_files conftest.out"
3048# Check that the compiler produces executables we can run. If not, either
3049# the compiler is broken, or we cross compile.
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3051$as_echo_n "checking whether we are cross compiling... " >&6; }
3052if test "$cross_compiling" != yes; then
3053 { { ac_try="$ac_link"
3054case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_link") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 if { ac_try='./conftest$ac_cv_exeext'
3065 { { case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070$as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_try") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; }; then
3075 cross_compiling=no
3076 else
3077 if test "$cross_compiling" = maybe; then
3078 cross_compiling=yes
3079 else
3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082as_fn_error $? "cannot run C compiled programs.
3083If you meant to cross compile, use \`--host'.
3084See \`config.log' for more details" "$LINENO" 5; }
3085 fi
3086 fi
3087fi
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3089$as_echo "$cross_compiling" >&6; }
3090
3091rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3092ac_clean_files=$ac_clean_files_save
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003094$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003095if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003096 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003097else
drhf922ca42015-05-14 15:39:18 +00003098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003099/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003100
3101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003110if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003111case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
drhf922ca42015-05-14 15:39:18 +00003115eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003117 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003118 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003121 for ac_file in conftest.o conftest.obj conftest.*; do
3122 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003123 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003125 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3126 break;;
3127 esac
3128done
3129else
drh8b727472009-01-19 18:18:40 +00003130 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003131sed 's/^/| /' conftest.$ac_ext >&5
3132
drhf922ca42015-05-14 15:39:18 +00003133{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3135as_fn_error $? "cannot compute suffix of object files: cannot compile
3136See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003137fi
drh71eb93e2001-09-28 01:34:43 +00003138rm -f conftest.$ac_cv_objext conftest.$ac_ext
3139fi
drhf922ca42015-05-14 15:39:18 +00003140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003141$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003142OBJEXT=$ac_cv_objext
3143ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003145$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003146if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003147 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003148else
drhf922ca42015-05-14 15:39:18 +00003149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003150/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003151
3152int
3153main ()
3154{
3155#ifndef __GNUC__
3156 choke me
3157#endif
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
drhf922ca42015-05-14 15:39:18 +00003163if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003164 ac_compiler_gnu=yes
3165else
drhf922ca42015-05-14 15:39:18 +00003166 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003167fi
drh8b727472009-01-19 18:18:40 +00003168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003169ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170
3171fi
drhf922ca42015-05-14 15:39:18 +00003172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003173$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3174if test $ac_compiler_gnu = yes; then
3175 GCC=yes
3176else
3177 GCC=
3178fi
drh71eb93e2001-09-28 01:34:43 +00003179ac_test_CFLAGS=${CFLAGS+set}
3180ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003182$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003183if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003184 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003185else
drh8b727472009-01-19 18:18:40 +00003186 ac_save_c_werror_flag=$ac_c_werror_flag
3187 ac_c_werror_flag=yes
3188 ac_cv_prog_cc_g=no
3189 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003191/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
drhf922ca42015-05-14 15:39:18 +00003201if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003202 ac_cv_prog_cc_g=yes
3203else
drhf922ca42015-05-14 15:39:18 +00003204 CFLAGS=""
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
drhf922ca42015-05-14 15:39:18 +00003216if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003217
drhf922ca42015-05-14 15:39:18 +00003218else
3219 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003220 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003222/* end confdefs.h. */
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
drhf922ca42015-05-14 15:39:18 +00003232if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003233 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003234fi
drh8b727472009-01-19 18:18:40 +00003235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003236fi
drh8b727472009-01-19 18:18:40 +00003237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
drh8b727472009-01-19 18:18:40 +00003239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3241fi
drhf922ca42015-05-14 15:39:18 +00003242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003243$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003244if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3248 CFLAGS="-g -O2"
3249 else
3250 CFLAGS="-g"
3251 fi
3252else
3253 if test "$GCC" = yes; then
3254 CFLAGS="-O2"
3255 else
3256 CFLAGS=
3257 fi
3258fi
drhf922ca42015-05-14 15:39:18 +00003259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003260$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003261if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003262 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003263else
drh8b727472009-01-19 18:18:40 +00003264 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003265ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003267/* end confdefs.h. */
3268#include <stdarg.h>
3269#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003270struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
a.rottmann964dbb12004-02-26 19:47:42 +00003289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003293 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003296 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
drh8b727472009-01-19 18:18:40 +00003299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
a.rottmann84e63352003-03-24 09:42:16 +00003304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
drh8b727472009-01-19 18:18:40 +00003318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003320do
3321 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003322 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003323 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003324fi
drh8b727472009-01-19 18:18:40 +00003325rm -f core conftest.err conftest.$ac_objext
3326 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003327done
drh8b727472009-01-19 18:18:40 +00003328rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003329CC=$ac_save_CC
3330
3331fi
drh8b727472009-01-19 18:18:40 +00003332# AC_CACHE_VAL
3333case "x$ac_cv_prog_cc_c89" in
3334 x)
drhf922ca42015-05-14 15:39:18 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003336$as_echo "none needed" >&6; } ;;
3337 xno)
drhf922ca42015-05-14 15:39:18 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003339$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003340 *)
drh8b727472009-01-19 18:18:40 +00003341 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003344esac
drhf922ca42015-05-14 15:39:18 +00003345if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003346
drhf922ca42015-05-14 15:39:18 +00003347fi
a.rottmann84e63352003-03-24 09:42:16 +00003348
drh71eb93e2001-09-28 01:34:43 +00003349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
drhf922ca42015-05-14 15:39:18 +00003355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003356$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003357if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003358 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003359else
drh8b727472009-01-19 18:18:40 +00003360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3361 for ac_i in 1 2 3 4 5 6 7; do
3362 ac_script="$ac_script$as_nl$ac_script"
3363 done
3364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003365 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003366 if test -z "$SED"; then
3367 ac_path_SED_found=false
3368 # Loop through the user's path and test for each of PROGNAME-LIST
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003370for as_dir in $PATH
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003374 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003375 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003377 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003378# Check for GNU ac_path_SED and select it if it is found.
3379 # Check for GNU $ac_path_SED
3380case `"$ac_path_SED" --version 2>&1` in
3381*GNU*)
3382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3383*)
3384 ac_count=0
3385 $as_echo_n 0123456789 >"conftest.in"
3386 while :
3387 do
3388 cat "conftest.in" "conftest.in" >"conftest.tmp"
3389 mv "conftest.tmp" "conftest.in"
3390 cp "conftest.in" "conftest.nl"
3391 $as_echo '' >> "conftest.nl"
3392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003394 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003395 if test $ac_count -gt ${ac_path_SED_max-0}; then
3396 # Best one so far, save it but keep looking for a better one
3397 ac_cv_path_SED="$ac_path_SED"
3398 ac_path_SED_max=$ac_count
3399 fi
3400 # 10*(2^10) chars as input seems more than enough
3401 test $ac_count -gt 10 && break
3402 done
3403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3404esac
3405
3406 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003407 done
3408 done
drhf922ca42015-05-14 15:39:18 +00003409 done
mlcreech636a9952008-05-05 22:52:56 +00003410IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003411 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003412 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003413 fi
drh8b727472009-01-19 18:18:40 +00003414else
3415 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003416fi
drh866108f2008-05-13 00:57:21 +00003417
drh8b727472009-01-19 18:18:40 +00003418fi
drhf922ca42015-05-14 15:39:18 +00003419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003420$as_echo "$ac_cv_path_SED" >&6; }
3421 SED="$ac_cv_path_SED"
3422 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003423
mlcreech636a9952008-05-05 22:52:56 +00003424test -z "$SED" && SED=sed
3425Xsed="$SED -e 1s/^X//"
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
drhf922ca42015-05-14 15:39:18 +00003437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003438$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003439if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003440 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003441else
drh8b727472009-01-19 18:18:40 +00003442 if test -z "$GREP"; then
3443 ac_path_GREP_found=false
3444 # Loop through the user's path and test for each of PROGNAME-LIST
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3447do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003450 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003453 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003454# Check for GNU ac_path_GREP and select it if it is found.
3455 # Check for GNU $ac_path_GREP
3456case `"$ac_path_GREP" --version 2>&1` in
3457*GNU*)
3458 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3459*)
3460 ac_count=0
3461 $as_echo_n 0123456789 >"conftest.in"
3462 while :
3463 do
3464 cat "conftest.in" "conftest.in" >"conftest.tmp"
3465 mv "conftest.tmp" "conftest.in"
3466 cp "conftest.in" "conftest.nl"
3467 $as_echo 'GREP' >> "conftest.nl"
3468 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003470 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003471 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3472 # Best one so far, save it but keep looking for a better one
3473 ac_cv_path_GREP="$ac_path_GREP"
3474 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003475 fi
drh8b727472009-01-19 18:18:40 +00003476 # 10*(2^10) chars as input seems more than enough
3477 test $ac_count -gt 10 && break
3478 done
3479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3480esac
3481
3482 $ac_path_GREP_found && break 3
3483 done
3484 done
drhf922ca42015-05-14 15:39:18 +00003485 done
drh8b727472009-01-19 18:18:40 +00003486IFS=$as_save_IFS
3487 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003488 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003489 fi
3490else
3491 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003492fi
drh8b727472009-01-19 18:18:40 +00003493
3494fi
drhf922ca42015-05-14 15:39:18 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003496$as_echo "$ac_cv_path_GREP" >&6; }
3497 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003498
3499
drhf922ca42015-05-14 15:39:18 +00003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003501$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003502if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003503 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003504else
drh8b727472009-01-19 18:18:40 +00003505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3506 then ac_cv_path_EGREP="$GREP -E"
3507 else
3508 if test -z "$EGREP"; then
3509 ac_path_EGREP_found=false
3510 # Loop through the user's path and test for each of PROGNAME-LIST
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003516 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003519 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003520# Check for GNU ac_path_EGREP and select it if it is found.
3521 # Check for GNU $ac_path_EGREP
3522case `"$ac_path_EGREP" --version 2>&1` in
3523*GNU*)
3524 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3525*)
3526 ac_count=0
3527 $as_echo_n 0123456789 >"conftest.in"
3528 while :
3529 do
3530 cat "conftest.in" "conftest.in" >"conftest.tmp"
3531 mv "conftest.tmp" "conftest.in"
3532 cp "conftest.in" "conftest.nl"
3533 $as_echo 'EGREP' >> "conftest.nl"
3534 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003536 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003537 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3538 # Best one so far, save it but keep looking for a better one
3539 ac_cv_path_EGREP="$ac_path_EGREP"
3540 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003541 fi
drh8b727472009-01-19 18:18:40 +00003542 # 10*(2^10) chars as input seems more than enough
3543 test $ac_count -gt 10 && break
3544 done
3545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3546esac
3547
3548 $ac_path_EGREP_found && break 3
3549 done
3550 done
drhf922ca42015-05-14 15:39:18 +00003551 done
drh8b727472009-01-19 18:18:40 +00003552IFS=$as_save_IFS
3553 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003554 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003555 fi
3556else
3557 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003558fi
drh8b727472009-01-19 18:18:40 +00003559
3560 fi
3561fi
drhf922ca42015-05-14 15:39:18 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003563$as_echo "$ac_cv_path_EGREP" >&6; }
3564 EGREP="$ac_cv_path_EGREP"
3565
3566
drhf922ca42015-05-14 15:39:18 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003568$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003569if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003570 $as_echo_n "(cached) " >&6
3571else
3572 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3573 then ac_cv_path_FGREP="$GREP -F"
3574 else
3575 if test -z "$FGREP"; then
3576 ac_path_FGREP_found=false
3577 # Loop through the user's path and test for each of PROGNAME-LIST
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003583 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003586 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003587# Check for GNU ac_path_FGREP and select it if it is found.
3588 # Check for GNU $ac_path_FGREP
3589case `"$ac_path_FGREP" --version 2>&1` in
3590*GNU*)
3591 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3592*)
3593 ac_count=0
3594 $as_echo_n 0123456789 >"conftest.in"
3595 while :
3596 do
3597 cat "conftest.in" "conftest.in" >"conftest.tmp"
3598 mv "conftest.tmp" "conftest.in"
3599 cp "conftest.in" "conftest.nl"
3600 $as_echo 'FGREP' >> "conftest.nl"
3601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003603 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3605 # Best one so far, save it but keep looking for a better one
3606 ac_cv_path_FGREP="$ac_path_FGREP"
3607 ac_path_FGREP_max=$ac_count
3608 fi
3609 # 10*(2^10) chars as input seems more than enough
3610 test $ac_count -gt 10 && break
3611 done
3612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3613esac
3614
3615 $ac_path_FGREP_found && break 3
3616 done
3617 done
drhf922ca42015-05-14 15:39:18 +00003618 done
drh8b727472009-01-19 18:18:40 +00003619IFS=$as_save_IFS
3620 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003621 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003622 fi
3623else
3624 ac_cv_path_FGREP=$FGREP
3625fi
3626
3627 fi
3628fi
drhf922ca42015-05-14 15:39:18 +00003629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003630$as_echo "$ac_cv_path_FGREP" >&6; }
3631 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003632
3633
3634test -z "$GREP" && GREP=grep
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
a.rottmann9bc8b932004-02-29 15:18:31 +00003651
3652
a.rottmann84e63352003-03-24 09:42:16 +00003653
drh8b727472009-01-19 18:18:40 +00003654# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003655if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003657else
3658 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003659fi
3660
drh71eb93e2001-09-28 01:34:43 +00003661ac_prog=ld
3662if test "$GCC" = yes; then
3663 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003665$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003666 case $host in
3667 *-*-mingw*)
3668 # gcc leaves a trailing carriage return which upsets mingw
3669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3670 *)
3671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3672 esac
3673 case $ac_prog in
3674 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003675 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003676 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003677 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003681 done
3682 test -z "$LD" && LD="$ac_prog"
3683 ;;
3684 "")
3685 # If it fails, then pretend we aren't using GCC.
3686 ac_prog=ld
3687 ;;
3688 *)
3689 # If it is relative, then search for the first ld in PATH.
3690 with_gnu_ld=unknown
3691 ;;
3692 esac
3693elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003695$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003696else
drhf922ca42015-05-14 15:39:18 +00003697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003698$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003699fi
drhf922ca42015-05-14 15:39:18 +00003700if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003701 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003702else
3703 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003705 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003706 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003707 test -z "$ac_dir" && ac_dir=.
3708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3709 lt_cv_path_LD="$ac_dir/$ac_prog"
3710 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003711 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003712 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3714 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003715 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003716 ;;
3717 *)
drh71eb93e2001-09-28 01:34:43 +00003718 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003719 ;;
3720 esac
drh71eb93e2001-09-28 01:34:43 +00003721 fi
3722 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003723 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003724else
3725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3726fi
3727fi
3728
3729LD="$lt_cv_path_LD"
3730if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003732$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003733else
drhf922ca42015-05-14 15:39:18 +00003734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003735$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003736fi
drhf922ca42015-05-14 15:39:18 +00003737test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003739$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003740if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003741 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003742else
vapier7f19c022007-02-17 14:46:31 +00003743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003744case `$LD -v 2>&1 </dev/null` in
3745*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003746 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003747 ;;
3748*)
drh71eb93e2001-09-28 01:34:43 +00003749 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003750 ;;
3751esac
drh71eb93e2001-09-28 01:34:43 +00003752fi
drhf922ca42015-05-14 15:39:18 +00003753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003754$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003755with_gnu_ld=$lt_cv_prog_gnu_ld
3756
a.rottmann84e63352003-03-24 09:42:16 +00003757
drh71eb93e2001-09-28 01:34:43 +00003758
mlcreech636a9952008-05-05 22:52:56 +00003759
3760
3761
3762
3763
3764
drhf922ca42015-05-14 15:39:18 +00003765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003766$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003767if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003768 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003769else
3770 if test -n "$NM"; then
3771 # Let the user override the test.
3772 lt_cv_path_NM="$NM"
3773else
vapier7f19c022007-02-17 14:46:31 +00003774 lt_nm_to_check="${ac_tool_prefix}nm"
3775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3776 lt_nm_to_check="$lt_nm_to_check nm"
3777 fi
3778 for lt_tmp_nm in $lt_nm_to_check; do
3779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3780 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3781 IFS="$lt_save_ifs"
3782 test -z "$ac_dir" && ac_dir=.
3783 tmp_nm="$ac_dir/$lt_tmp_nm"
3784 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3785 # Check to see if the nm accepts a BSD-compat flag.
3786 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3787 # nm: unknown option "B" ignored
3788 # Tru64's nm complains that /dev/null is an invalid object file
3789 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3790 */dev/null* | *'Invalid file or object type'*)
3791 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003792 break
3793 ;;
3794 *)
vapier7f19c022007-02-17 14:46:31 +00003795 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3796 */dev/null*)
3797 lt_cv_path_NM="$tmp_nm -p"
3798 break
3799 ;;
3800 *)
3801 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3802 continue # so that we can try to find one that supports BSD flags
3803 ;;
3804 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003805 ;;
3806 esac
vapier7f19c022007-02-17 14:46:31 +00003807 fi
3808 done
3809 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003810 done
mlcreech636a9952008-05-05 22:52:56 +00003811 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003812fi
3813fi
drhf922ca42015-05-14 15:39:18 +00003814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003815$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003816if test "$lt_cv_path_NM" != "no"; then
3817 NM="$lt_cv_path_NM"
3818else
3819 # Didn't find any BSD compatible name lister, look for dumpbin.
3820 if test -n "$ac_tool_prefix"; then
3821 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3822 do
3823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003826$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003827if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003828 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003829else
3830 if test -n "$DUMPBIN"; then
3831 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3832else
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003840 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003842 break 2
3843 fi
3844done
drhf922ca42015-05-14 15:39:18 +00003845 done
drh8b727472009-01-19 18:18:40 +00003846IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003847
mlcreech636a9952008-05-05 22:52:56 +00003848fi
3849fi
3850DUMPBIN=$ac_cv_prog_DUMPBIN
3851if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003853$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003854else
drhf922ca42015-05-14 15:39:18 +00003855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003856$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003857fi
3858
drh8b727472009-01-19 18:18:40 +00003859
mlcreech636a9952008-05-05 22:52:56 +00003860 test -n "$DUMPBIN" && break
3861 done
3862fi
3863if test -z "$DUMPBIN"; then
3864 ac_ct_DUMPBIN=$DUMPBIN
3865 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3866do
3867 # Extract the first word of "$ac_prog", so it can be a program name with args.
3868set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003870$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003871if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003872 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003873else
3874 if test -n "$ac_ct_DUMPBIN"; then
3875 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003884 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003886 break 2
3887 fi
3888done
drhf922ca42015-05-14 15:39:18 +00003889 done
drh8b727472009-01-19 18:18:40 +00003890IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003891
3892fi
3893fi
3894ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3895if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003897$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003898else
drhf922ca42015-05-14 15:39:18 +00003899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003900$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003901fi
3902
drh8b727472009-01-19 18:18:40 +00003903
mlcreech636a9952008-05-05 22:52:56 +00003904 test -n "$ac_ct_DUMPBIN" && break
3905done
3906
drh8b727472009-01-19 18:18:40 +00003907 if test "x$ac_ct_DUMPBIN" = x; then
3908 DUMPBIN=":"
3909 else
3910 case $cross_compiling:$ac_tool_warned in
3911yes:)
drhf922ca42015-05-14 15:39:18 +00003912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003914ac_tool_warned=yes ;;
3915esac
3916 DUMPBIN=$ac_ct_DUMPBIN
3917 fi
mlcreech636a9952008-05-05 22:52:56 +00003918fi
3919
3920
3921 if test "$DUMPBIN" != ":"; then
3922 NM="$DUMPBIN"
3923 fi
3924fi
3925test -z "$NM" && NM=nm
3926
3927
3928
3929
3930
3931
drhf922ca42015-05-14 15:39:18 +00003932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003933$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003934if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003935 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003936else
3937 lt_cv_nm_interface="BSD nm"
3938 echo "int some_variable = 0;" > conftest.$ac_ext
drhf6e904b2020-12-07 17:15:32 +00003939 (eval echo "\"\$as_me:3939: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003940 (eval "$ac_compile" 2>conftest.err)
3941 cat conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00003942 (eval echo "\"\$as_me:3942: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003943 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3944 cat conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00003945 (eval echo "\"\$as_me:3945: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003946 cat conftest.out >&5
3947 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3948 lt_cv_nm_interface="MS dumpbin"
3949 fi
3950 rm -f conftest*
3951fi
drhf922ca42015-05-14 15:39:18 +00003952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003953$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003954
drhf922ca42015-05-14 15:39:18 +00003955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003957LN_S=$as_ln_s
3958if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003960$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003961else
drhf922ca42015-05-14 15:39:18 +00003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003963$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003964fi
3965
mlcreech636a9952008-05-05 22:52:56 +00003966# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003968$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003969if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003970 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003971else
3972 i=0
3973 teststring="ABCD"
3974
3975 case $build_os in
3976 msdosdjgpp*)
3977 # On DJGPP, this test can blow up pretty badly due to problems in libc
3978 # (any single argument exceeding 2000 bytes causes a buffer overrun
3979 # during glob expansion). Even if it were fixed, the result of this
3980 # check would be larger than it should be.
3981 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3982 ;;
3983
3984 gnu*)
3985 # Under GNU Hurd, this test is not required because there is
3986 # no limit to the length of command line arguments.
3987 # Libtool will interpret -1 as no limit whatsoever
3988 lt_cv_sys_max_cmd_len=-1;
3989 ;;
3990
vapier6acb2cf2009-01-28 04:46:28 +00003991 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003992 # On Win9x/ME, this test blows up -- it succeeds, but takes
3993 # about 5 minutes as the teststring grows exponentially.
3994 # Worse, since 9x/ME are not pre-emptively multitasking,
3995 # you end up with a "frozen" computer, even though with patience
3996 # the test eventually succeeds (with a max line length of 256k).
3997 # Instead, let's just punt: use the minimum linelength reported by
3998 # all of the supported platforms: 8192 (on NT/2K/XP).
3999 lt_cv_sys_max_cmd_len=8192;
4000 ;;
4001
4002 amigaos*)
4003 # On AmigaOS with pdksh, this test takes hours, literally.
4004 # So we just punt and use a minimum line length of 8192.
4005 lt_cv_sys_max_cmd_len=8192;
4006 ;;
4007
4008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4009 # This has been around since 386BSD, at least. Likely further.
4010 if test -x /sbin/sysctl; then
4011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4012 elif test -x /usr/sbin/sysctl; then
4013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4014 else
4015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4016 fi
4017 # And add a safety zone
4018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4020 ;;
4021
4022 interix*)
4023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4024 lt_cv_sys_max_cmd_len=196608
4025 ;;
4026
4027 osf*)
4028 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4029 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4030 # nice to cause kernel panics so lets avoid the loop below.
4031 # First set a reasonable default.
4032 lt_cv_sys_max_cmd_len=16384
4033 #
4034 if test -x /sbin/sysconfig; then
4035 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4036 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4037 esac
4038 fi
4039 ;;
4040 sco3.2v5*)
4041 lt_cv_sys_max_cmd_len=102400
4042 ;;
4043 sysv5* | sco5v6* | sysv4.2uw2*)
4044 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4045 if test -n "$kargmax"; then
4046 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4047 else
4048 lt_cv_sys_max_cmd_len=32768
4049 fi
4050 ;;
4051 *)
4052 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4053 if test -n "$lt_cv_sys_max_cmd_len"; then
4054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4056 else
4057 # Make teststring a little bigger before we do anything with it.
4058 # a 1K string should be a reasonable start.
4059 for i in 1 2 3 4 5 6 7 8 ; do
4060 teststring=$teststring$teststring
4061 done
4062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4063 # If test is not a shell built-in, we'll probably end up computing a
4064 # maximum length that is only half of the actual maximum length, but
4065 # we can't tell.
4066 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4067 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4068 test $i != 17 # 1/2 MB should be enough
4069 do
4070 i=`expr $i + 1`
4071 teststring=$teststring$teststring
4072 done
4073 # Only check the string length outside the loop.
4074 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4075 teststring=
4076 # Add a significant safety factor because C++ compilers can tack on
4077 # massive amounts of additional arguments before passing them to the
4078 # linker. It appears as though 1/2 is a usable value.
4079 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4080 fi
4081 ;;
4082 esac
4083
4084fi
4085
4086if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004088$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004089else
drhf922ca42015-05-14 15:39:18 +00004090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004091$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004092fi
4093max_cmd_len=$lt_cv_sys_max_cmd_len
4094
4095
4096
4097
4098
4099
4100: ${CP="cp -f"}
4101: ${MV="mv -f"}
4102: ${RM="rm -f"}
4103
drhf922ca42015-05-14 15:39:18 +00004104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004105$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004106# Try some XSI features
4107xsi_shell=no
4108( _lt_dummy="a/b/c"
4109 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4110 = c,a/b,, \
4111 && eval 'test $(( 1 + 1 )) -eq 2 \
4112 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4113 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004115$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004116
4117
drhf922ca42015-05-14 15:39:18 +00004118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004119$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004120lt_shell_append=no
4121( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4122 >/dev/null 2>&1 \
4123 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004125$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004126
4127
4128if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4129 lt_unset=unset
4130else
4131 lt_unset=false
4132fi
4133
4134
4135
4136
4137
4138# test EBCDIC or ASCII
4139case `echo X|tr X '\101'` in
4140 A) # ASCII based system
4141 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4142 lt_SP2NL='tr \040 \012'
4143 lt_NL2SP='tr \015\012 \040\040'
4144 ;;
4145 *) # EBCDIC based system
4146 lt_SP2NL='tr \100 \n'
4147 lt_NL2SP='tr \r\n \100\100'
4148 ;;
4149esac
4150
4151
4152
4153
4154
4155
4156
4157
4158
drhf922ca42015-05-14 15:39:18 +00004159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004160$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004161if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004162 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004163else
4164 lt_cv_ld_reload_flag='-r'
4165fi
drhf922ca42015-05-14 15:39:18 +00004166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004167$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004168reload_flag=$lt_cv_ld_reload_flag
4169case $reload_flag in
4170"" | " "*) ;;
4171*) reload_flag=" $reload_flag" ;;
4172esac
4173reload_cmds='$LD$reload_flag -o $output$reload_objs'
4174case $host_os in
4175 darwin*)
4176 if test "$GCC" = yes; then
4177 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4178 else
4179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4180 fi
4181 ;;
4182esac
4183
4184
4185
4186
4187
4188
4189
4190
4191
vapier6acb2cf2009-01-28 04:46:28 +00004192if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4194set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004196$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004197if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004198 $as_echo_n "(cached) " >&6
4199else
4200 if test -n "$OBJDUMP"; then
4201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004210 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004212 break 2
4213 fi
4214done
drhf922ca42015-05-14 15:39:18 +00004215 done
vapier6acb2cf2009-01-28 04:46:28 +00004216IFS=$as_save_IFS
4217
4218fi
4219fi
4220OBJDUMP=$ac_cv_prog_OBJDUMP
4221if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004223$as_echo "$OBJDUMP" >&6; }
4224else
drhf922ca42015-05-14 15:39:18 +00004225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004226$as_echo "no" >&6; }
4227fi
4228
4229
4230fi
4231if test -z "$ac_cv_prog_OBJDUMP"; then
4232 ac_ct_OBJDUMP=$OBJDUMP
4233 # Extract the first word of "objdump", so it can be a program name with args.
4234set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004236$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004237if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004238 $as_echo_n "(cached) " >&6
4239else
4240 if test -n "$ac_ct_OBJDUMP"; then
4241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004250 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004252 break 2
4253 fi
4254done
drhf922ca42015-05-14 15:39:18 +00004255 done
vapier6acb2cf2009-01-28 04:46:28 +00004256IFS=$as_save_IFS
4257
4258fi
4259fi
4260ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4261if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004263$as_echo "$ac_ct_OBJDUMP" >&6; }
4264else
drhf922ca42015-05-14 15:39:18 +00004265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004266$as_echo "no" >&6; }
4267fi
4268
4269 if test "x$ac_ct_OBJDUMP" = x; then
4270 OBJDUMP="false"
4271 else
4272 case $cross_compiling:$ac_tool_warned in
4273yes:)
drhf922ca42015-05-14 15:39:18 +00004274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004276ac_tool_warned=yes ;;
4277esac
4278 OBJDUMP=$ac_ct_OBJDUMP
4279 fi
4280else
4281 OBJDUMP="$ac_cv_prog_OBJDUMP"
4282fi
4283
4284test -z "$OBJDUMP" && OBJDUMP=objdump
4285
4286
4287
4288
4289
4290
4291
4292
mlcreech636a9952008-05-05 22:52:56 +00004293
drhf922ca42015-05-14 15:39:18 +00004294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004295$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004296if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004297 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004298else
4299 lt_cv_file_magic_cmd='$MAGIC_CMD'
4300lt_cv_file_magic_test_file=
4301lt_cv_deplibs_check_method='unknown'
4302# Need to set the preceding variable on all platforms that support
4303# interlibrary dependencies.
4304# 'none' -- dependencies not supported.
4305# `unknown' -- same as none, but documents that we really don't know.
4306# 'pass_all' -- all dependencies passed with no checks.
4307# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004308# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004309# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004310# If you have `file' or equivalent on your system and you're not sure
4311# whether `pass_all' will *always* work, you probably want this one.
4312
4313case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004314aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318beos*)
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
vapier7f19c022007-02-17 14:46:31 +00004322bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4324 lt_cv_file_magic_cmd='/usr/bin/file -L'
4325 lt_cv_file_magic_test_file=/shlib/libc.so
4326 ;;
4327
a.rottmann9bc8b932004-02-29 15:18:31 +00004328cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004329 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004330 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004331 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004332 ;;
4333
4334mingw* | pw32*)
4335 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004336 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4337 # unless we find 'file', for example because we are cross-compiling.
4338 if ( file / ) >/dev/null 2>&1; then
4339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4340 lt_cv_file_magic_cmd='func_win32_libid'
4341 else
4342 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4343 lt_cv_file_magic_cmd='$OBJDUMP -f'
4344 fi
drh71eb93e2001-09-28 01:34:43 +00004345 ;;
4346
vapier6acb2cf2009-01-28 04:46:28 +00004347cegcc)
4348 # use the weaker test based on 'objdump'. See mingw*.
4349 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4350 lt_cv_file_magic_cmd='$OBJDUMP -f'
4351 ;;
4352
drh71eb93e2001-09-28 01:34:43 +00004353darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004354 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004355 ;;
4356
mlcreech636a9952008-05-05 22:52:56 +00004357freebsd* | dragonfly*)
4358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004359 case $host_cpu in
4360 i*86 )
4361 # Not sure whether the presence of OpenBSD here was a mistake.
4362 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004363 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 +00004364 lt_cv_file_magic_cmd=/usr/bin/file
4365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4366 ;;
4367 esac
4368 else
4369 lt_cv_deplibs_check_method=pass_all
4370 fi
4371 ;;
4372
4373gnu*)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376
a.rottmann9bc8b932004-02-29 15:18:31 +00004377hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004378 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004379 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004380 ia64*)
4381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4382 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4383 ;;
4384 hppa*64*)
4385 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]'
4386 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4387 ;;
4388 *)
4389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4390 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4391 ;;
4392 esac
drh71eb93e2001-09-28 01:34:43 +00004393 ;;
4394
mlcreech636a9952008-05-05 22:52:56 +00004395interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004396 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4398 ;;
4399
a.rottmann84e63352003-03-24 09:42:16 +00004400irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004401 case $LD in
4402 *-32|*"-32 ") libmagic=32-bit;;
4403 *-n32|*"-n32 ") libmagic=N32;;
4404 *-64|*"-64 ") libmagic=64-bit;;
4405 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004406 esac
drh71eb93e2001-09-28 01:34:43 +00004407 lt_cv_deplibs_check_method=pass_all
4408 ;;
4409
4410# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004411linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004412 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004413 ;;
4414
vapier7f19c022007-02-17 14:46:31 +00004415netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004416 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004418 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004420 fi
4421 ;;
4422
4423newos6*)
4424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4425 lt_cv_file_magic_cmd=/usr/bin/file
4426 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4427 ;;
4428
mlcreech636a9952008-05-05 22:52:56 +00004429*nto* | *qnx*)
4430 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004431 ;;
4432
a.rottmann84e63352003-03-24 09:42:16 +00004433openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004436 else
vapier7f19c022007-02-17 14:46:31 +00004437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004438 fi
drh71eb93e2001-09-28 01:34:43 +00004439 ;;
4440
4441osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004442 lt_cv_deplibs_check_method=pass_all
4443 ;;
4444
mlcreech636a9952008-05-05 22:52:56 +00004445rdos*)
4446 lt_cv_deplibs_check_method=pass_all
4447 ;;
4448
drh71eb93e2001-09-28 01:34:43 +00004449solaris*)
4450 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004451 ;;
4452
mlcreech636a9952008-05-05 22:52:56 +00004453sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4454 lt_cv_deplibs_check_method=pass_all
4455 ;;
4456
vapier7f19c022007-02-17 14:46:31 +00004457sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004458 case $host_vendor in
4459 motorola)
4460 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]'
4461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4462 ;;
4463 ncr)
4464 lt_cv_deplibs_check_method=pass_all
4465 ;;
4466 sequent)
4467 lt_cv_file_magic_cmd='/bin/file'
4468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4469 ;;
4470 sni)
4471 lt_cv_file_magic_cmd='/bin/file'
4472 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4473 lt_cv_file_magic_test_file=/lib/libc.so
4474 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004475 siemens)
4476 lt_cv_deplibs_check_method=pass_all
4477 ;;
vapier7f19c022007-02-17 14:46:31 +00004478 pc)
4479 lt_cv_deplibs_check_method=pass_all
4480 ;;
drh71eb93e2001-09-28 01:34:43 +00004481 esac
4482 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004483
mlcreech636a9952008-05-05 22:52:56 +00004484tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004485 lt_cv_deplibs_check_method=pass_all
4486 ;;
drh71eb93e2001-09-28 01:34:43 +00004487esac
4488
4489fi
drhf922ca42015-05-14 15:39:18 +00004490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004491$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004492file_magic_cmd=$lt_cv_file_magic_cmd
4493deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004494test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004495
drh71eb93e2001-09-28 01:34:43 +00004496
drh71eb93e2001-09-28 01:34:43 +00004497
drh71eb93e2001-09-28 01:34:43 +00004498
mlcreech636a9952008-05-05 22:52:56 +00004499
4500
4501
4502
4503
4504
4505
4506
4507if test -n "$ac_tool_prefix"; then
4508 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4509set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004511$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004512if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004513 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004514else
4515 if test -n "$AR"; then
4516 ac_cv_prog_AR="$AR" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004525 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004527 break 2
4528 fi
4529done
drhf922ca42015-05-14 15:39:18 +00004530 done
drh8b727472009-01-19 18:18:40 +00004531IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004532
4533fi
4534fi
4535AR=$ac_cv_prog_AR
4536if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004538$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004539else
drhf922ca42015-05-14 15:39:18 +00004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004541$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004542fi
4543
drh8b727472009-01-19 18:18:40 +00004544
mlcreech636a9952008-05-05 22:52:56 +00004545fi
4546if test -z "$ac_cv_prog_AR"; then
4547 ac_ct_AR=$AR
4548 # Extract the first word of "ar", so it can be a program name with args.
4549set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004551$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004552if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004553 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004554else
4555 if test -n "$ac_ct_AR"; then
4556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4557else
4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559for as_dir in $PATH
4560do
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004565 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004567 break 2
4568 fi
4569done
drhf922ca42015-05-14 15:39:18 +00004570 done
drh8b727472009-01-19 18:18:40 +00004571IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004572
4573fi
4574fi
4575ac_ct_AR=$ac_cv_prog_ac_ct_AR
4576if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004578$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004579else
drhf922ca42015-05-14 15:39:18 +00004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004581$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004582fi
4583
drh8b727472009-01-19 18:18:40 +00004584 if test "x$ac_ct_AR" = x; then
4585 AR="false"
4586 else
4587 case $cross_compiling:$ac_tool_warned in
4588yes:)
drhf922ca42015-05-14 15:39:18 +00004589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004591ac_tool_warned=yes ;;
4592esac
4593 AR=$ac_ct_AR
4594 fi
mlcreech636a9952008-05-05 22:52:56 +00004595else
4596 AR="$ac_cv_prog_AR"
4597fi
4598
4599test -z "$AR" && AR=ar
4600test -z "$AR_FLAGS" && AR_FLAGS=cru
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4614set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004616$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004617if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004618 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004619else
4620 if test -n "$STRIP"; then
4621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004632 break 2
4633 fi
4634done
drhf922ca42015-05-14 15:39:18 +00004635 done
drh8b727472009-01-19 18:18:40 +00004636IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004637
4638fi
4639fi
4640STRIP=$ac_cv_prog_STRIP
4641if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004643$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004644else
drhf922ca42015-05-14 15:39:18 +00004645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004646$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004647fi
4648
drh8b727472009-01-19 18:18:40 +00004649
mlcreech636a9952008-05-05 22:52:56 +00004650fi
4651if test -z "$ac_cv_prog_STRIP"; then
4652 ac_ct_STRIP=$STRIP
4653 # Extract the first word of "strip", so it can be a program name with args.
4654set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004656$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004657if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004658 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004659else
4660 if test -n "$ac_ct_STRIP"; then
4661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004670 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004672 break 2
4673 fi
4674done
drhf922ca42015-05-14 15:39:18 +00004675 done
drh8b727472009-01-19 18:18:40 +00004676IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004677
4678fi
4679fi
4680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4681if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004683$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004684else
drhf922ca42015-05-14 15:39:18 +00004685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004686$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004687fi
4688
drh8b727472009-01-19 18:18:40 +00004689 if test "x$ac_ct_STRIP" = x; then
4690 STRIP=":"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
drhf922ca42015-05-14 15:39:18 +00004694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004696ac_tool_warned=yes ;;
4697esac
4698 STRIP=$ac_ct_STRIP
4699 fi
mlcreech636a9952008-05-05 22:52:56 +00004700else
4701 STRIP="$ac_cv_prog_STRIP"
4702fi
4703
4704test -z "$STRIP" && STRIP=:
4705
4706
4707
4708
4709
4710
4711if test -n "$ac_tool_prefix"; then
4712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004715$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004716if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004717 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004718else
4719 if test -n "$RANLIB"; then
4720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004731 break 2
4732 fi
4733done
drhf922ca42015-05-14 15:39:18 +00004734 done
drh8b727472009-01-19 18:18:40 +00004735IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004736
4737fi
4738fi
4739RANLIB=$ac_cv_prog_RANLIB
4740if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004742$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004743else
drhf922ca42015-05-14 15:39:18 +00004744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004745$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004746fi
4747
drh8b727472009-01-19 18:18:40 +00004748
mlcreech636a9952008-05-05 22:52:56 +00004749fi
4750if test -z "$ac_cv_prog_RANLIB"; then
4751 ac_ct_RANLIB=$RANLIB
4752 # Extract the first word of "ranlib", so it can be a program name with args.
4753set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004755$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004756if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004757 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004758else
4759 if test -n "$ac_ct_RANLIB"; then
4760 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4761else
4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004769 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004771 break 2
4772 fi
4773done
drhf922ca42015-05-14 15:39:18 +00004774 done
drh8b727472009-01-19 18:18:40 +00004775IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004776
4777fi
4778fi
4779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4780if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004782$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004783else
drhf922ca42015-05-14 15:39:18 +00004784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004785$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004786fi
4787
drh8b727472009-01-19 18:18:40 +00004788 if test "x$ac_ct_RANLIB" = x; then
4789 RANLIB=":"
4790 else
4791 case $cross_compiling:$ac_tool_warned in
4792yes:)
drhf922ca42015-05-14 15:39:18 +00004793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004795ac_tool_warned=yes ;;
4796esac
4797 RANLIB=$ac_ct_RANLIB
4798 fi
mlcreech636a9952008-05-05 22:52:56 +00004799else
4800 RANLIB="$ac_cv_prog_RANLIB"
4801fi
4802
4803test -z "$RANLIB" && RANLIB=:
4804
4805
4806
4807
4808
4809
4810# Determine commands to create old-style static archives.
4811old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4812old_postinstall_cmds='chmod 644 $oldlib'
4813old_postuninstall_cmds=
4814
4815if test -n "$RANLIB"; then
4816 case $host_os in
4817 openbsd*)
4818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4819 ;;
4820 *)
4821 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4822 ;;
4823 esac
4824 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4825fi
4826
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
a.rottmann9bc8b932004-02-29 15:18:31 +00004860# If no C compiler was specified, use CC.
4861LTCC=${LTCC-"$CC"}
4862
vapier7f19c022007-02-17 14:46:31 +00004863# If no C compiler flags were specified, use CFLAGS.
4864LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4865
a.rottmann9bc8b932004-02-29 15:18:31 +00004866# Allow CC to be a program name with arguments.
4867compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004868
drh71eb93e2001-09-28 01:34:43 +00004869
mlcreech636a9952008-05-05 22:52:56 +00004870# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004872$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004873if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004874 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004875else
4876
4877# These are sane defaults that work on at least a few old systems.
4878# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4879
4880# Character class describing NM global symbol codes.
4881symcode='[BCDEGRST]'
4882
4883# Regexp to match symbols that can be accessed directly from C.
4884sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4885
4886# Define system-specific variables.
4887case $host_os in
4888aix*)
4889 symcode='[BCDT]'
4890 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004891cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004892 symcode='[ABCDGISTW]'
4893 ;;
4894hpux*)
4895 if test "$host_cpu" = ia64; then
4896 symcode='[ABCDEGRST]'
4897 fi
4898 ;;
4899irix* | nonstopux*)
4900 symcode='[BCDEGRST]'
4901 ;;
4902osf*)
4903 symcode='[BCDEGQRST]'
4904 ;;
4905solaris*)
4906 symcode='[BDRT]'
4907 ;;
4908sco3.2v5*)
4909 symcode='[DT]'
4910 ;;
4911sysv4.2uw2*)
4912 symcode='[DT]'
4913 ;;
4914sysv5* | sco5v6* | unixware* | OpenUNIX*)
4915 symcode='[ABDT]'
4916 ;;
4917sysv4)
4918 symcode='[DFNSTU]'
4919 ;;
4920esac
4921
4922# If we're using GNU nm, then use its standard symbol codes.
4923case `$NM -V 2>&1` in
4924*GNU* | *'with BFD'*)
4925 symcode='[ABCDGIRSTW]' ;;
4926esac
4927
4928# Transform an extracted symbol line into a proper C declaration.
4929# Some systems (esp. on ia64) link data and code symbols differently,
4930# so use this general approach.
4931lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4932
4933# Transform an extracted symbol line into symbol name and symbol address
4934lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4935lt_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'"
4936
4937# Handle CRLF in mingw tool chain
4938opt_cr=
4939case $build_os in
4940mingw*)
4941 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4942 ;;
4943esac
4944
4945# Try without a prefix underscore, then with it.
4946for ac_symprfx in "" "_"; do
4947
4948 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4949 symxfrm="\\1 $ac_symprfx\\2 \\2"
4950
4951 # Write the raw and C identifiers.
4952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4953 # Fake it for dumpbin and say T for any non-static function
4954 # and D for any global variable.
4955 # Also find C++ and __fastcall symbols from MSVC++,
4956 # which start with @ or ?.
4957 lt_cv_sys_global_symbol_pipe="$AWK '"\
4958" {last_section=section; section=\$ 3};"\
4959" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4960" \$ 0!~/External *\|/{next};"\
4961" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4962" {if(hide[section]) next};"\
4963" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4964" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4965" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4966" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4967" ' prfx=^$ac_symprfx"
4968 else
4969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4970 fi
4971
4972 # Check to see that the pipe works correctly.
4973 pipe_works=no
4974
4975 rm -f conftest*
4976 cat > conftest.$ac_ext <<_LT_EOF
4977#ifdef __cplusplus
4978extern "C" {
4979#endif
4980char nm_test_var;
4981void nm_test_func(void);
4982void nm_test_func(void){}
4983#ifdef __cplusplus
4984}
4985#endif
4986int main(){nm_test_var='a';nm_test_func();return(0);}
4987_LT_EOF
4988
drhf922ca42015-05-14 15:39:18 +00004989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004990 (eval $ac_compile) 2>&5
4991 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004994 # Now try to grab the symbols.
4995 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004996 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 +00004997 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4998 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005001 # Try sorting and uniquifying the output.
5002 if sort "$nlist" | uniq > "$nlist"T; then
5003 mv -f "$nlist"T "$nlist"
5004 else
5005 rm -f "$nlist"T
5006 fi
5007
5008 # Make sure that we snagged all the symbols we need.
5009 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5010 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5011 cat <<_LT_EOF > conftest.$ac_ext
5012#ifdef __cplusplus
5013extern "C" {
5014#endif
5015
5016_LT_EOF
5017 # Now generate the symbol file.
5018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5019
5020 cat <<_LT_EOF >> conftest.$ac_ext
5021
5022/* The mapping between symbol names and symbols. */
5023const struct {
5024 const char *name;
5025 void *address;
5026}
5027lt__PROGRAM__LTX_preloaded_symbols[] =
5028{
5029 { "@PROGRAM@", (void *) 0 },
5030_LT_EOF
5031 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5032 cat <<\_LT_EOF >> conftest.$ac_ext
5033 {0, (void *) 0}
5034};
5035
5036/* This works around a problem in FreeBSD linker */
5037#ifdef FREEBSD_WORKAROUND
5038static const void *lt_preloaded_setup() {
5039 return lt__PROGRAM__LTX_preloaded_symbols;
5040}
5041#endif
5042
5043#ifdef __cplusplus
5044}
5045#endif
5046_LT_EOF
5047 # Now try linking the two files.
5048 mv conftest.$ac_objext conftstm.$ac_objext
5049 lt_save_LIBS="$LIBS"
5050 lt_save_CFLAGS="$CFLAGS"
5051 LIBS="conftstm.$ac_objext"
5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005054 (eval $ac_link) 2>&5
5055 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005058 pipe_works=yes
5059 fi
5060 LIBS="$lt_save_LIBS"
5061 CFLAGS="$lt_save_CFLAGS"
5062 else
5063 echo "cannot find nm_test_func in $nlist" >&5
5064 fi
5065 else
5066 echo "cannot find nm_test_var in $nlist" >&5
5067 fi
5068 else
5069 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5070 fi
5071 else
5072 echo "$progname: failed program was:" >&5
5073 cat conftest.$ac_ext >&5
5074 fi
5075 rm -rf conftest* conftst*
5076
5077 # Do not use the global_symbol_pipe unless it works.
5078 if test "$pipe_works" = yes; then
5079 break
5080 else
5081 lt_cv_sys_global_symbol_pipe=
5082 fi
5083done
5084
5085fi
5086
5087if test -z "$lt_cv_sys_global_symbol_pipe"; then
5088 lt_cv_sys_global_symbol_to_cdecl=
5089fi
5090if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005092$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005093else
drhf922ca42015-05-14 15:39:18 +00005094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005095$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005096fi
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
drh8b727472009-01-19 18:18:40 +00005120# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005121if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005122 enableval=$enable_libtool_lock;
5123fi
drh71eb93e2001-09-28 01:34:43 +00005124
a.rottmann9bc8b932004-02-29 15:18:31 +00005125test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005126
a.rottmann9bc8b932004-02-29 15:18:31 +00005127# Some flags need to be propagated to the compiler or linker for good
5128# libtool support.
5129case $host in
5130ia64-*-hpux*)
5131 # Find out which ABI we are using.
5132 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005134 (eval $ac_compile) 2>&5
5135 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5137 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005138 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005139 *ELF-32*)
5140 HPUX_IA64_MODE="32"
5141 ;;
5142 *ELF-64*)
5143 HPUX_IA64_MODE="64"
5144 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005145 esac
5146 fi
5147 rm -rf conftest*
5148 ;;
5149*-*-irix6*)
5150 # Find out which ABI we are using.
drhf6e904b2020-12-07 17:15:32 +00005151 echo '#line 5151 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005153 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005154 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5156 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005157 if test "$lt_cv_prog_gnu_ld" = yes; then
5158 case `/usr/bin/file conftest.$ac_objext` in
5159 *32-bit*)
5160 LD="${LD-ld} -melf32bsmip"
5161 ;;
5162 *N32*)
5163 LD="${LD-ld} -melf32bmipn32"
5164 ;;
5165 *64-bit*)
5166 LD="${LD-ld} -melf64bmip"
5167 ;;
5168 esac
5169 else
5170 case `/usr/bin/file conftest.$ac_objext` in
5171 *32-bit*)
5172 LD="${LD-ld} -32"
5173 ;;
5174 *N32*)
5175 LD="${LD-ld} -n32"
5176 ;;
5177 *64-bit*)
5178 LD="${LD-ld} -64"
5179 ;;
5180 esac
5181 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005182 fi
5183 rm -rf conftest*
5184 ;;
drh71eb93e2001-09-28 01:34:43 +00005185
mlcreech636a9952008-05-05 22:52:56 +00005186x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5187s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005188 # Find out which ABI we are using.
5189 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005191 (eval $ac_compile) 2>&5
5192 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005195 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005196 *32-bit*)
5197 case $host in
5198 x86_64-*kfreebsd*-gnu)
5199 LD="${LD-ld} -m elf_i386_fbsd"
5200 ;;
5201 x86_64-*linux*)
5202 LD="${LD-ld} -m elf_i386"
5203 ;;
5204 ppc64-*linux*|powerpc64-*linux*)
5205 LD="${LD-ld} -m elf32ppclinux"
5206 ;;
5207 s390x-*linux*)
5208 LD="${LD-ld} -m elf_s390"
5209 ;;
5210 sparc64-*linux*)
5211 LD="${LD-ld} -m elf32_sparc"
5212 ;;
5213 esac
5214 ;;
5215 *64-bit*)
5216 case $host in
5217 x86_64-*kfreebsd*-gnu)
5218 LD="${LD-ld} -m elf_x86_64_fbsd"
5219 ;;
5220 x86_64-*linux*)
5221 LD="${LD-ld} -m elf_x86_64"
5222 ;;
5223 ppc*-*linux*|powerpc*-*linux*)
5224 LD="${LD-ld} -m elf64ppc"
5225 ;;
5226 s390*-*linux*|s390*-*tpf*)
5227 LD="${LD-ld} -m elf64_s390"
5228 ;;
5229 sparc*-*linux*)
5230 LD="${LD-ld} -m elf64_sparc"
5231 ;;
5232 esac
5233 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005234 esac
5235 fi
5236 rm -rf conftest*
5237 ;;
drh71eb93e2001-09-28 01:34:43 +00005238
a.rottmann9bc8b932004-02-29 15:18:31 +00005239*-*-sco3.2v5*)
5240 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5241 SAVE_CFLAGS="$CFLAGS"
5242 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005244$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005245if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005246 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005247else
5248 ac_ext=c
5249ac_cpp='$CPP $CPPFLAGS'
5250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005253
drhf922ca42015-05-14 15:39:18 +00005254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005255/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005256
a.rottmann9bc8b932004-02-29 15:18:31 +00005257int
5258main ()
drh71eb93e2001-09-28 01:34:43 +00005259{
drh71eb93e2001-09-28 01:34:43 +00005260
a.rottmann9bc8b932004-02-29 15:18:31 +00005261 ;
5262 return 0;
drh71eb93e2001-09-28 01:34:43 +00005263}
a.rottmann9bc8b932004-02-29 15:18:31 +00005264_ACEOF
drhf922ca42015-05-14 15:39:18 +00005265if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005266 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005267else
drhf922ca42015-05-14 15:39:18 +00005268 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005269fi
drhf922ca42015-05-14 15:39:18 +00005270rm -f core conftest.err conftest.$ac_objext \
5271 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005272 ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
drh71eb93e2001-09-28 01:34:43 +00005278fi
drhf922ca42015-05-14 15:39:18 +00005279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005280$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005281 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5282 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5283 CFLAGS="$SAVE_CFLAGS"
5284 fi
5285 ;;
vapier7f19c022007-02-17 14:46:31 +00005286sparc*-*solaris*)
5287 # Find out which ABI we are using.
5288 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005290 (eval $ac_compile) 2>&5
5291 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5293 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005294 case `/usr/bin/file conftest.o` in
5295 *64-bit*)
5296 case $lt_cv_prog_gnu_ld in
5297 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005298 *)
5299 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5300 LD="${LD-ld} -64"
5301 fi
5302 ;;
vapier7f19c022007-02-17 14:46:31 +00005303 esac
5304 ;;
5305 esac
5306 fi
5307 rm -rf conftest*
5308 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005309esac
5310
5311need_locks="$enable_libtool_lock"
5312
drh71eb93e2001-09-28 01:34:43 +00005313
mlcreech636a9952008-05-05 22:52:56 +00005314 case $host_os in
5315 rhapsody* | darwin*)
5316 if test -n "$ac_tool_prefix"; then
5317 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5318set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005320$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005321if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005322 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005323else
5324 if test -n "$DSYMUTIL"; then
5325 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005334 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005336 break 2
5337 fi
5338done
drhf922ca42015-05-14 15:39:18 +00005339 done
drh8b727472009-01-19 18:18:40 +00005340IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005341
5342fi
5343fi
5344DSYMUTIL=$ac_cv_prog_DSYMUTIL
5345if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005347$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005348else
drhf922ca42015-05-14 15:39:18 +00005349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005350$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005351fi
5352
drh8b727472009-01-19 18:18:40 +00005353
mlcreech636a9952008-05-05 22:52:56 +00005354fi
5355if test -z "$ac_cv_prog_DSYMUTIL"; then
5356 ac_ct_DSYMUTIL=$DSYMUTIL
5357 # Extract the first word of "dsymutil", so it can be a program name with args.
5358set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005360$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005361if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005362 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005363else
5364 if test -n "$ac_ct_DSYMUTIL"; then
5365 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5366else
5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005374 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005376 break 2
5377 fi
5378done
drhf922ca42015-05-14 15:39:18 +00005379 done
drh8b727472009-01-19 18:18:40 +00005380IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005381
5382fi
5383fi
5384ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5385if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005387$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005388else
drhf922ca42015-05-14 15:39:18 +00005389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005390$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005391fi
5392
drh8b727472009-01-19 18:18:40 +00005393 if test "x$ac_ct_DSYMUTIL" = x; then
5394 DSYMUTIL=":"
5395 else
5396 case $cross_compiling:$ac_tool_warned in
5397yes:)
drhf922ca42015-05-14 15:39:18 +00005398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005400ac_tool_warned=yes ;;
5401esac
5402 DSYMUTIL=$ac_ct_DSYMUTIL
5403 fi
mlcreech636a9952008-05-05 22:52:56 +00005404else
5405 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5406fi
5407
5408 if test -n "$ac_tool_prefix"; then
5409 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5410set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005412$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005413if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005414 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005415else
5416 if test -n "$NMEDIT"; then
5417 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005426 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005428 break 2
5429 fi
5430done
drhf922ca42015-05-14 15:39:18 +00005431 done
drh8b727472009-01-19 18:18:40 +00005432IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005433
5434fi
5435fi
5436NMEDIT=$ac_cv_prog_NMEDIT
5437if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005439$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005440else
drhf922ca42015-05-14 15:39:18 +00005441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005442$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005443fi
5444
drh8b727472009-01-19 18:18:40 +00005445
mlcreech636a9952008-05-05 22:52:56 +00005446fi
5447if test -z "$ac_cv_prog_NMEDIT"; then
5448 ac_ct_NMEDIT=$NMEDIT
5449 # Extract the first word of "nmedit", so it can be a program name with args.
5450set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005452$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005453if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005454 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005455else
5456 if test -n "$ac_ct_NMEDIT"; then
5457 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5458else
5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005466 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005468 break 2
5469 fi
5470done
drhf922ca42015-05-14 15:39:18 +00005471 done
drh8b727472009-01-19 18:18:40 +00005472IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005473
5474fi
5475fi
5476ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5477if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005479$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005480else
drhf922ca42015-05-14 15:39:18 +00005481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005482$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005483fi
5484
drh8b727472009-01-19 18:18:40 +00005485 if test "x$ac_ct_NMEDIT" = x; then
5486 NMEDIT=":"
5487 else
5488 case $cross_compiling:$ac_tool_warned in
5489yes:)
drhf922ca42015-05-14 15:39:18 +00005490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005492ac_tool_warned=yes ;;
5493esac
5494 NMEDIT=$ac_ct_NMEDIT
5495 fi
mlcreech636a9952008-05-05 22:52:56 +00005496else
5497 NMEDIT="$ac_cv_prog_NMEDIT"
5498fi
5499
5500 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5502set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005504$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005505if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005506 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005507else
5508 if test -n "$LIPO"; then
5509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5510else
5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512for as_dir in $PATH
5513do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005518 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005520 break 2
5521 fi
5522done
drhf922ca42015-05-14 15:39:18 +00005523 done
drh8b727472009-01-19 18:18:40 +00005524IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005525
5526fi
5527fi
5528LIPO=$ac_cv_prog_LIPO
5529if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005531$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005532else
drhf922ca42015-05-14 15:39:18 +00005533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005534$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005535fi
5536
drh8b727472009-01-19 18:18:40 +00005537
mlcreech636a9952008-05-05 22:52:56 +00005538fi
5539if test -z "$ac_cv_prog_LIPO"; then
5540 ac_ct_LIPO=$LIPO
5541 # Extract the first word of "lipo", so it can be a program name with args.
5542set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005544$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005545if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005546 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005547else
5548 if test -n "$ac_ct_LIPO"; then
5549 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005558 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005560 break 2
5561 fi
5562done
drhf922ca42015-05-14 15:39:18 +00005563 done
drh8b727472009-01-19 18:18:40 +00005564IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005565
5566fi
5567fi
5568ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5569if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005571$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005572else
drhf922ca42015-05-14 15:39:18 +00005573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005574$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005575fi
5576
drh8b727472009-01-19 18:18:40 +00005577 if test "x$ac_ct_LIPO" = x; then
5578 LIPO=":"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581yes:)
drhf922ca42015-05-14 15:39:18 +00005582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005584ac_tool_warned=yes ;;
5585esac
5586 LIPO=$ac_ct_LIPO
5587 fi
mlcreech636a9952008-05-05 22:52:56 +00005588else
5589 LIPO="$ac_cv_prog_LIPO"
5590fi
5591
5592 if test -n "$ac_tool_prefix"; then
5593 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5594set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005596$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005597if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005598 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005599else
5600 if test -n "$OTOOL"; then
5601 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5602else
5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604for as_dir in $PATH
5605do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005610 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005612 break 2
5613 fi
5614done
drhf922ca42015-05-14 15:39:18 +00005615 done
drh8b727472009-01-19 18:18:40 +00005616IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005617
5618fi
5619fi
5620OTOOL=$ac_cv_prog_OTOOL
5621if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005623$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005624else
drhf922ca42015-05-14 15:39:18 +00005625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005626$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005627fi
5628
drh8b727472009-01-19 18:18:40 +00005629
mlcreech636a9952008-05-05 22:52:56 +00005630fi
5631if test -z "$ac_cv_prog_OTOOL"; then
5632 ac_ct_OTOOL=$OTOOL
5633 # Extract the first word of "otool", so it can be a program name with args.
5634set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005636$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005637if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005638 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005639else
5640 if test -n "$ac_ct_OTOOL"; then
5641 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5642else
5643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644for as_dir in $PATH
5645do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005650 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005652 break 2
5653 fi
5654done
drhf922ca42015-05-14 15:39:18 +00005655 done
drh8b727472009-01-19 18:18:40 +00005656IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005657
5658fi
5659fi
5660ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5661if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005663$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005664else
drhf922ca42015-05-14 15:39:18 +00005665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005666$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005667fi
5668
drh8b727472009-01-19 18:18:40 +00005669 if test "x$ac_ct_OTOOL" = x; then
5670 OTOOL=":"
5671 else
5672 case $cross_compiling:$ac_tool_warned in
5673yes:)
drhf922ca42015-05-14 15:39:18 +00005674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005676ac_tool_warned=yes ;;
5677esac
5678 OTOOL=$ac_ct_OTOOL
5679 fi
mlcreech636a9952008-05-05 22:52:56 +00005680else
5681 OTOOL="$ac_cv_prog_OTOOL"
5682fi
5683
5684 if test -n "$ac_tool_prefix"; then
5685 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5686set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005688$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005689if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005690 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005691else
5692 if test -n "$OTOOL64"; then
5693 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005702 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005704 break 2
5705 fi
5706done
drhf922ca42015-05-14 15:39:18 +00005707 done
drh8b727472009-01-19 18:18:40 +00005708IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005709
5710fi
5711fi
5712OTOOL64=$ac_cv_prog_OTOOL64
5713if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005715$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005716else
drhf922ca42015-05-14 15:39:18 +00005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005718$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005719fi
5720
drh8b727472009-01-19 18:18:40 +00005721
mlcreech636a9952008-05-05 22:52:56 +00005722fi
5723if test -z "$ac_cv_prog_OTOOL64"; then
5724 ac_ct_OTOOL64=$OTOOL64
5725 # Extract the first word of "otool64", so it can be a program name with args.
5726set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005728$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005729if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005730 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005731else
5732 if test -n "$ac_ct_OTOOL64"; then
5733 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5734else
5735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736for as_dir in $PATH
5737do
5738 IFS=$as_save_IFS
5739 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005742 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005744 break 2
5745 fi
5746done
drhf922ca42015-05-14 15:39:18 +00005747 done
drh8b727472009-01-19 18:18:40 +00005748IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005749
5750fi
5751fi
5752ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5753if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005755$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005756else
drhf922ca42015-05-14 15:39:18 +00005757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005758$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005759fi
5760
drh8b727472009-01-19 18:18:40 +00005761 if test "x$ac_ct_OTOOL64" = x; then
5762 OTOOL64=":"
5763 else
5764 case $cross_compiling:$ac_tool_warned in
5765yes:)
drhf922ca42015-05-14 15:39:18 +00005766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005768ac_tool_warned=yes ;;
5769esac
5770 OTOOL64=$ac_ct_OTOOL64
5771 fi
mlcreech636a9952008-05-05 22:52:56 +00005772else
5773 OTOOL64="$ac_cv_prog_OTOOL64"
5774fi
5775
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
drhf922ca42015-05-14 15:39:18 +00005802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005803$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005804if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005805 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005806else
5807 lt_cv_apple_cc_single_mod=no
5808 if test -z "${LT_MULTI_MODULE}"; then
5809 # By default we will add the -single_module flag. You can override
5810 # by either setting the environment variable LT_MULTI_MODULE
5811 # non-empty at configure time, or by adding -multi_module to the
5812 # link flags.
5813 rm -rf libconftest.dylib*
5814 echo "int foo(void){return 1;}" > conftest.c
5815 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5816-dynamiclib -Wl,-single_module conftest.c" >&5
5817 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5818 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5819 _lt_result=$?
5820 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5821 lt_cv_apple_cc_single_mod=yes
5822 else
5823 cat conftest.err >&5
5824 fi
5825 rm -rf libconftest.dylib*
5826 rm -f conftest.*
5827 fi
5828fi
drhf922ca42015-05-14 15:39:18 +00005829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005830$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005832$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005833if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005834 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005835else
5836 lt_cv_ld_exported_symbols_list=no
5837 save_LDFLAGS=$LDFLAGS
5838 echo "_main" > conftest.sym
5839 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005841/* end confdefs.h. */
5842
5843int
5844main ()
5845{
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
drhf922ca42015-05-14 15:39:18 +00005851if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005852 lt_cv_ld_exported_symbols_list=yes
5853else
drhf922ca42015-05-14 15:39:18 +00005854 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005855fi
drhf922ca42015-05-14 15:39:18 +00005856rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005858 LDFLAGS="$save_LDFLAGS"
5859
5860fi
drhf922ca42015-05-14 15:39:18 +00005861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005862$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005863 case $host_os in
5864 rhapsody* | darwin1.[012])
5865 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5866 darwin1.*)
5867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5868 darwin*) # darwin 5.x on
5869 # if running on 10.5 or later, the deployment target defaults
5870 # to the OS version, if on x86, and 10.4, the deployment
5871 # target defaults to 10.4. Don't you love it?
5872 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5873 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5875 10.[012]*)
5876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5877 10.*)
5878 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5879 esac
5880 ;;
5881 esac
5882 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5883 _lt_dar_single_mod='$single_module'
5884 fi
5885 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5886 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5887 else
5888 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5889 fi
5890 if test "$DSYMUTIL" != ":"; then
5891 _lt_dsymutil='~$DSYMUTIL $lib || :'
5892 else
5893 _lt_dsymutil=
5894 fi
5895 ;;
5896 esac
5897
a.rottmann84e63352003-03-24 09:42:16 +00005898ac_ext=c
5899ac_cpp='$CPP $CPPFLAGS'
5900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005904$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005905# On Suns, sometimes $CPP names a directory.
5906if test -n "$CPP" && test -d "$CPP"; then
5907 CPP=
5908fi
5909if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005910 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005911 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005912else
a.rottmann84e63352003-03-24 09:42:16 +00005913 # Double quotes because CPP needs to be expanded
5914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5915 do
5916 ac_preproc_ok=false
5917for ac_c_preproc_warn_flag in '' yes
5918do
5919 # Use a header file that comes with gcc, so configuring glibc
5920 # with a fresh cross-compiler works.
5921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5922 # <limits.h> exists even on freestanding compilers.
5923 # On the NeXT, cc -E runs the code through the compiler's parser,
5924 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005926/* end confdefs.h. */
5927#ifdef __STDC__
5928# include <limits.h>
5929#else
5930# include <assert.h>
5931#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005932 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005933_ACEOF
drhf922ca42015-05-14 15:39:18 +00005934if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005935
drhf922ca42015-05-14 15:39:18 +00005936else
a.rottmann84e63352003-03-24 09:42:16 +00005937 # Broken: fails on valid input.
5938continue
5939fi
drhf922ca42015-05-14 15:39:18 +00005940rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005941
drh8b727472009-01-19 18:18:40 +00005942 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005943 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005945/* end confdefs.h. */
5946#include <ac_nonexistent.h>
5947_ACEOF
drhf922ca42015-05-14 15:39:18 +00005948if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005949 # Broken: success on invalid input.
5950continue
5951else
a.rottmann84e63352003-03-24 09:42:16 +00005952 # Passes both tests.
5953ac_preproc_ok=:
5954break
5955fi
drhf922ca42015-05-14 15:39:18 +00005956rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005957
5958done
5959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005960rm -f conftest.i conftest.err conftest.$ac_ext
5961if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005962 break
5963fi
5964
5965 done
5966 ac_cv_prog_CPP=$CPP
5967
5968fi
5969 CPP=$ac_cv_prog_CPP
5970else
5971 ac_cv_prog_CPP=$CPP
5972fi
drhf922ca42015-05-14 15:39:18 +00005973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005974$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005975ac_preproc_ok=false
5976for ac_c_preproc_warn_flag in '' yes
5977do
5978 # Use a header file that comes with gcc, so configuring glibc
5979 # with a fresh cross-compiler works.
5980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5981 # <limits.h> exists even on freestanding compilers.
5982 # On the NeXT, cc -E runs the code through the compiler's parser,
5983 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005985/* end confdefs.h. */
5986#ifdef __STDC__
5987# include <limits.h>
5988#else
5989# include <assert.h>
5990#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005991 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005992_ACEOF
drhf922ca42015-05-14 15:39:18 +00005993if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005994
drhf922ca42015-05-14 15:39:18 +00005995else
a.rottmann84e63352003-03-24 09:42:16 +00005996 # Broken: fails on valid input.
5997continue
5998fi
drhf922ca42015-05-14 15:39:18 +00005999rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006000
drh8b727472009-01-19 18:18:40 +00006001 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006002 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006004/* end confdefs.h. */
6005#include <ac_nonexistent.h>
6006_ACEOF
drhf922ca42015-05-14 15:39:18 +00006007if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006008 # Broken: success on invalid input.
6009continue
6010else
a.rottmann84e63352003-03-24 09:42:16 +00006011 # Passes both tests.
6012ac_preproc_ok=:
6013break
6014fi
drhf922ca42015-05-14 15:39:18 +00006015rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006016
6017done
6018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006019rm -f conftest.i conftest.err conftest.$ac_ext
6020if $ac_preproc_ok; then :
6021
a.rottmann84e63352003-03-24 09:42:16 +00006022else
drhf922ca42015-05-14 15:39:18 +00006023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6025as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6026See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006027fi
6028
6029ac_ext=c
6030ac_cpp='$CPP $CPPFLAGS'
6031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035
drhf922ca42015-05-14 15:39:18 +00006036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006037$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006038if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006039 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006040else
drhf922ca42015-05-14 15:39:18 +00006041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006042/* end confdefs.h. */
6043#include <stdlib.h>
6044#include <stdarg.h>
6045#include <string.h>
6046#include <float.h>
6047
6048int
6049main ()
6050{
6051
6052 ;
6053 return 0;
6054}
6055_ACEOF
drhf922ca42015-05-14 15:39:18 +00006056if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006057 ac_cv_header_stdc=yes
6058else
drhf922ca42015-05-14 15:39:18 +00006059 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006060fi
drh8b727472009-01-19 18:18:40 +00006061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006062
6063if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006066/* end confdefs.h. */
6067#include <string.h>
6068
6069_ACEOF
6070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006071 $EGREP "memchr" >/dev/null 2>&1; then :
6072
a.rottmann84e63352003-03-24 09:42:16 +00006073else
6074 ac_cv_header_stdc=no
6075fi
6076rm -f conftest*
6077
6078fi
6079
6080if test $ac_cv_header_stdc = yes; then
6081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006083/* end confdefs.h. */
6084#include <stdlib.h>
6085
6086_ACEOF
6087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006088 $EGREP "free" >/dev/null 2>&1; then :
6089
a.rottmann84e63352003-03-24 09:42:16 +00006090else
6091 ac_cv_header_stdc=no
6092fi
6093rm -f conftest*
6094
6095fi
6096
6097if test $ac_cv_header_stdc = yes; then
6098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006099 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006100 :
6101else
drhf922ca42015-05-14 15:39:18 +00006102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006103/* end confdefs.h. */
6104#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006105#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006106#if ((' ' & 0x0FF) == 0x020)
6107# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6108# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6109#else
6110# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006111 (('a' <= (c) && (c) <= 'i') \
6112 || ('j' <= (c) && (c) <= 'r') \
6113 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006114# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6115#endif
6116
6117#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6118int
6119main ()
6120{
6121 int i;
6122 for (i = 0; i < 256; i++)
6123 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006124 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006125 return 2;
6126 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006127}
6128_ACEOF
drhf922ca42015-05-14 15:39:18 +00006129if ac_fn_c_try_run "$LINENO"; then :
6130
a.rottmann84e63352003-03-24 09:42:16 +00006131else
drhf922ca42015-05-14 15:39:18 +00006132 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006133fi
drhf922ca42015-05-14 15:39:18 +00006134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6135 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006136fi
6137
a.rottmann84e63352003-03-24 09:42:16 +00006138fi
6139fi
drhf922ca42015-05-14 15:39:18 +00006140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006141$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006142if test $ac_cv_header_stdc = yes; then
6143
drhf922ca42015-05-14 15:39:18 +00006144$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006145
6146fi
6147
6148# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006149for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006150 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006151do :
6152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6153ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6154"
6155if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006156 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006157#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006158_ACEOF
6159
6160fi
6161
6162done
6163
6164
a.rottmann84e63352003-03-24 09:42:16 +00006165for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006166do :
6167 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6168"
6169if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006170 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006171#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006172_ACEOF
6173
6174fi
6175
drh71eb93e2001-09-28 01:34:43 +00006176done
6177
drh71eb93e2001-09-28 01:34:43 +00006178
drh71eb93e2001-09-28 01:34:43 +00006179
mlcreech636a9952008-05-05 22:52:56 +00006180# Set options
mlcreech94984912008-03-04 19:03:08 +00006181
drh71eb93e2001-09-28 01:34:43 +00006182
drh71eb93e2001-09-28 01:34:43 +00006183
mlcreech636a9952008-05-05 22:52:56 +00006184 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006185
a.rottmann9bc8b932004-02-29 15:18:31 +00006186
mlcreech636a9952008-05-05 22:52:56 +00006187 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006188
a.rottmann9bc8b932004-02-29 15:18:31 +00006189
drh8b727472009-01-19 18:18:40 +00006190 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006191if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006192 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006193 case $enableval in
6194 yes) enable_shared=yes ;;
6195 no) enable_shared=no ;;
6196 *)
6197 enable_shared=no
6198 # Look at the argument we got. We use all the common list separators.
6199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6200 for pkg in $enableval; do
6201 IFS="$lt_save_ifs"
6202 if test "X$pkg" = "X$p"; then
6203 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006204 fi
mlcreech636a9952008-05-05 22:52:56 +00006205 done
6206 IFS="$lt_save_ifs"
6207 ;;
6208 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006209else
mlcreech636a9952008-05-05 22:52:56 +00006210 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006211fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006212
mlcreech636a9952008-05-05 22:52:56 +00006213
6214
6215
6216
6217
6218
6219
drh8b727472009-01-19 18:18:40 +00006220
6221 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006222if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006223 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006224 case $enableval in
6225 yes) enable_static=yes ;;
6226 no) enable_static=no ;;
6227 *)
6228 enable_static=no
6229 # Look at the argument we got. We use all the common list separators.
6230 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6231 for pkg in $enableval; do
6232 IFS="$lt_save_ifs"
6233 if test "X$pkg" = "X$p"; then
6234 enable_static=yes
6235 fi
6236 done
6237 IFS="$lt_save_ifs"
6238 ;;
6239 esac
6240else
6241 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006242fi
mlcreech636a9952008-05-05 22:52:56 +00006243
6244
6245
6246
6247
6248
6249
6250
6251
drh8b727472009-01-19 18:18:40 +00006252
6253# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006254if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006255 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006256else
6257 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006258fi
6259
mlcreech636a9952008-05-05 22:52:56 +00006260
6261test -z "$pic_mode" && pic_mode=default
6262
6263
6264
6265
6266
6267
6268
drh8b727472009-01-19 18:18:40 +00006269 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006270if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006271 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006272 case $enableval in
6273 yes) enable_fast_install=yes ;;
6274 no) enable_fast_install=no ;;
6275 *)
6276 enable_fast_install=no
6277 # Look at the argument we got. We use all the common list separators.
6278 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6279 for pkg in $enableval; do
6280 IFS="$lt_save_ifs"
6281 if test "X$pkg" = "X$p"; then
6282 enable_fast_install=yes
6283 fi
6284 done
6285 IFS="$lt_save_ifs"
6286 ;;
6287 esac
6288else
6289 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006290fi
6291
mlcreech636a9952008-05-05 22:52:56 +00006292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302# This can be used to rebuild libtool when needed
6303LIBTOOL_DEPS="$ltmain"
6304
6305# Always use our own libtool.
6306LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332test -z "$LN_S" && LN_S="ln -s"
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347if test -n "${ZSH_VERSION+set}" ; then
6348 setopt NO_GLOB_SUBST
6349fi
6350
drhf922ca42015-05-14 15:39:18 +00006351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006352$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006353if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006354 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006355else
6356 rm -f .libs 2>/dev/null
6357mkdir .libs 2>/dev/null
6358if test -d .libs; then
6359 lt_cv_objdir=.libs
6360else
6361 # MS-DOS does not allow filenames that begin with a dot.
6362 lt_cv_objdir=_libs
6363fi
6364rmdir .libs 2>/dev/null
6365fi
drhf922ca42015-05-14 15:39:18 +00006366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006367$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006368objdir=$lt_cv_objdir
6369
6370
6371
6372
6373
mlcreech636a9952008-05-05 22:52:56 +00006374cat >>confdefs.h <<_ACEOF
6375#define LT_OBJDIR "$lt_cv_objdir/"
6376_ACEOF
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
a.rottmann9bc8b932004-02-29 15:18:31 +00006394case $host_os in
6395aix3*)
6396 # AIX sometimes has problems with the GCC collect2 program. For some
6397 # reason, if we set the COLLECT_NAMES environment variable, the problems
6398 # vanish in a puff of smoke.
6399 if test "X${COLLECT_NAMES+set}" != Xset; then
6400 COLLECT_NAMES=
6401 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006402 fi
6403 ;;
6404esac
6405
a.rottmann9bc8b932004-02-29 15:18:31 +00006406# Sed substitution that helps us do robust quoting. It backslashifies
6407# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006408sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006409
6410# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006411double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006412
6413# Sed substitution to delay expansion of an escaped shell variable in a
6414# double_quote_subst'ed string.
6415delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6416
mlcreech636a9952008-05-05 22:52:56 +00006417# Sed substitution to delay expansion of an escaped single quote.
6418delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6419
a.rottmann9bc8b932004-02-29 15:18:31 +00006420# Sed substitution to avoid accidental globbing in evaled expressions
6421no_glob_subst='s/\*/\\\*/g'
6422
a.rottmann9bc8b932004-02-29 15:18:31 +00006423# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006424ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006425can_build_shared=yes
6426
vapier7f19c022007-02-17 14:46:31 +00006427# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006428# which needs '.lib').
6429libext=a
mlcreech636a9952008-05-05 22:52:56 +00006430
a.rottmann9bc8b932004-02-29 15:18:31 +00006431with_gnu_ld="$lt_cv_prog_gnu_ld"
6432
a.rottmann84e63352003-03-24 09:42:16 +00006433old_CC="$CC"
6434old_CFLAGS="$CFLAGS"
6435
6436# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006437test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006438test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006439test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006440test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006441test -z "$ac_objext" && ac_objext=o
6442
vapier7f19c022007-02-17 14:46:31 +00006443for cc_temp in $compiler""; do
6444 case $cc_temp in
6445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6447 \-*) ;;
6448 *) break;;
6449 esac
6450done
mlcreech636a9952008-05-05 22:52:56 +00006451cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006452
6453
a.rottmann9bc8b932004-02-29 15:18:31 +00006454# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006455test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006456case $deplibs_check_method in
6457file_magic*)
6458 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006460$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006461if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006462 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006463else
a.rottmann9bc8b932004-02-29 15:18:31 +00006464 case $MAGIC_CMD in
6465[\\/*] | ?:[\\/]*)
6466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6467 ;;
6468*)
6469 lt_save_MAGIC_CMD="$MAGIC_CMD"
6470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6471 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6472 for ac_dir in $ac_dummy; do
6473 IFS="$lt_save_ifs"
6474 test -z "$ac_dir" && ac_dir=.
6475 if test -f $ac_dir/${ac_tool_prefix}file; then
6476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6477 if test -n "$file_magic_test_file"; then
6478 case $deplibs_check_method in
6479 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6483 $EGREP "$file_magic_regex" > /dev/null; then
6484 :
6485 else
mlcreech636a9952008-05-05 22:52:56 +00006486 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006487
a.rottmann9bc8b932004-02-29 15:18:31 +00006488*** Warning: the command libtool uses to detect shared libraries,
6489*** $file_magic_cmd, produces output that libtool cannot recognize.
6490*** The result is that libtool may fail to recognize shared libraries
6491*** as such. This will affect the creation of libtool libraries that
6492*** depend on shared libraries, but programs linked with such libtool
6493*** libraries will work regardless of this problem. Nevertheless, you
6494*** may want to report the problem to your system manager and/or to
6495*** bug-libtool@gnu.org
6496
mlcreech636a9952008-05-05 22:52:56 +00006497_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006498 fi ;;
6499 esac
6500 fi
6501 break
6502 fi
6503 done
6504 IFS="$lt_save_ifs"
6505 MAGIC_CMD="$lt_save_MAGIC_CMD"
6506 ;;
6507esac
6508fi
6509
6510MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6511if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006513$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006514else
drhf922ca42015-05-14 15:39:18 +00006515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006516$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006517fi
6518
mlcreech636a9952008-05-05 22:52:56 +00006519
6520
6521
6522
a.rottmann9bc8b932004-02-29 15:18:31 +00006523if test -z "$lt_cv_path_MAGIC_CMD"; then
6524 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006526$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006527if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006528 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006529else
6530 case $MAGIC_CMD in
6531[\\/*] | ?:[\\/]*)
6532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6533 ;;
6534*)
6535 lt_save_MAGIC_CMD="$MAGIC_CMD"
6536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6537 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6538 for ac_dir in $ac_dummy; do
6539 IFS="$lt_save_ifs"
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f $ac_dir/file; then
6542 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6543 if test -n "$file_magic_test_file"; then
6544 case $deplibs_check_method in
6545 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6549 $EGREP "$file_magic_regex" > /dev/null; then
6550 :
6551 else
mlcreech636a9952008-05-05 22:52:56 +00006552 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006553
6554*** Warning: the command libtool uses to detect shared libraries,
6555*** $file_magic_cmd, produces output that libtool cannot recognize.
6556*** The result is that libtool may fail to recognize shared libraries
6557*** as such. This will affect the creation of libtool libraries that
6558*** depend on shared libraries, but programs linked with such libtool
6559*** libraries will work regardless of this problem. Nevertheless, you
6560*** may want to report the problem to your system manager and/or to
6561*** bug-libtool@gnu.org
6562
mlcreech636a9952008-05-05 22:52:56 +00006563_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006564 fi ;;
6565 esac
6566 fi
6567 break
6568 fi
6569 done
6570 IFS="$lt_save_ifs"
6571 MAGIC_CMD="$lt_save_MAGIC_CMD"
6572 ;;
6573esac
6574fi
6575
6576MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6577if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006579$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006580else
drhf922ca42015-05-14 15:39:18 +00006581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006582$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006583fi
6584
mlcreech636a9952008-05-05 22:52:56 +00006585
a.rottmann9bc8b932004-02-29 15:18:31 +00006586 else
6587 MAGIC_CMD=:
6588 fi
6589fi
6590
6591 fi
6592 ;;
6593esac
6594
a.rottmann9bc8b932004-02-29 15:18:31 +00006595# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006596
a.rottmann9bc8b932004-02-29 15:18:31 +00006597lt_save_CC="$CC"
6598ac_ext=c
6599ac_cpp='$CPP $CPPFLAGS'
6600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604
6605# Source file extension for C test sources.
6606ac_ext=c
6607
6608# Object file extension for compiled C test sources.
6609objext=o
6610objext=$objext
6611
6612# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006613lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006614
6615# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006616lt_simple_link_test_code='int main(){return(0);}'
6617
6618
6619
6620
6621
a.rottmann9bc8b932004-02-29 15:18:31 +00006622
6623
6624# If no C compiler was specified, use CC.
6625LTCC=${LTCC-"$CC"}
6626
vapier7f19c022007-02-17 14:46:31 +00006627# If no C compiler flags were specified, use CFLAGS.
6628LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6629
a.rottmann9bc8b932004-02-29 15:18:31 +00006630# Allow CC to be a program name with arguments.
6631compiler=$CC
6632
mlcreech636a9952008-05-05 22:52:56 +00006633# Save the default compiler, since it gets overwritten when the other
6634# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6635compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006636
vapier7f19c022007-02-17 14:46:31 +00006637# save warnings/boilerplate of simple test code
6638ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006639echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006640eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6641_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006642$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006643
vapier7f19c022007-02-17 14:46:31 +00006644ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006645echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006646eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006648$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006649
6650
mlcreech636a9952008-05-05 22:52:56 +00006651if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006652
6653lt_prog_compiler_no_builtin_flag=
6654
6655if test "$GCC" = yes; then
6656 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6657
drhf922ca42015-05-14 15:39:18 +00006658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006659$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006660if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006661 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006662else
6663 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006664 ac_outfile=conftest.$ac_objext
6665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006666 lt_compiler_flag="-fno-rtti -fno-exceptions"
6667 # Insert the option either (1) after the last *FLAGS variable, or
6668 # (2) before a word containing "conftest.", or (3) at the end.
6669 # Note that $ac_compile itself does not contain backslashes and begins
6670 # with a dollar sign (not a hyphen), so the echo should work correctly.
6671 # The option is referenced via a variable to avoid confusing sed.
6672 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6675 -e 's:$: $lt_compiler_flag:'`
drhf6e904b2020-12-07 17:15:32 +00006676 (eval echo "\"\$as_me:6676: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006677 (eval "$lt_compile" 2>conftest.err)
6678 ac_status=$?
6679 cat conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00006680 echo "$as_me:6680: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006681 if (exit $ac_status) && test -s "$ac_outfile"; then
6682 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006683 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006684 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006687 lt_cv_prog_compiler_rtti_exceptions=yes
6688 fi
6689 fi
mlcreech636a9952008-05-05 22:52:56 +00006690 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006691
6692fi
drhf922ca42015-05-14 15:39:18 +00006693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006694$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006695
6696if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6697 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6698else
6699 :
6700fi
6701
6702fi
6703
mlcreech636a9952008-05-05 22:52:56 +00006704
6705
6706
6707
6708
6709 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006710lt_prog_compiler_pic=
6711lt_prog_compiler_static=
6712
drhf922ca42015-05-14 15:39:18 +00006713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006714$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006715
drh71eb93e2001-09-28 01:34:43 +00006716 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006717 lt_prog_compiler_wl='-Wl,'
6718 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006719
6720 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006721 aix*)
6722 # All AIX code is PIC.
6723 if test "$host_cpu" = ia64; then
6724 # AIX 5 now supports IA64 processor
6725 lt_prog_compiler_static='-Bstatic'
6726 fi
drh71eb93e2001-09-28 01:34:43 +00006727 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006728
drh71eb93e2001-09-28 01:34:43 +00006729 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006730 case $host_cpu in
6731 powerpc)
6732 # see comment about AmigaOS4 .so support
6733 lt_prog_compiler_pic='-fPIC'
6734 ;;
6735 m68k)
6736 # FIXME: we need at least 68020 code to build shared libraries, but
6737 # adding the `-m68020' flag to GCC prevents building anything better,
6738 # like `-m68040'.
6739 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6740 ;;
6741 esac
drh71eb93e2001-09-28 01:34:43 +00006742 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006743
mlcreech636a9952008-05-05 22:52:56 +00006744 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006745 # PIC is the default for these OSes.
6746 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006747
vapier6acb2cf2009-01-28 04:46:28 +00006748 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006749 # This hack is so that the source file can tell whether it is being
6750 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006751 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6752 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006753 lt_prog_compiler_pic='-DDLL_EXPORT'
6754 ;;
6755
drh71eb93e2001-09-28 01:34:43 +00006756 darwin* | rhapsody*)
6757 # PIC is the default on this platform
6758 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006759 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006760 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006761
a.rottmann9bc8b932004-02-29 15:18:31 +00006762 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006763 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6764 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6765 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006766 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006767 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006768 # +Z the default
6769 ;;
6770 *)
6771 lt_prog_compiler_pic='-fPIC'
6772 ;;
6773 esac
6774 ;;
6775
mlcreech636a9952008-05-05 22:52:56 +00006776 interix[3-9]*)
6777 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6778 # Instead, we relocate shared libraries at runtime.
6779 ;;
6780
6781 msdosdjgpp*)
6782 # Just because we use GCC doesn't mean we suddenly get shared libraries
6783 # on systems that don't support them.
6784 lt_prog_compiler_can_build_shared=no
6785 enable_shared=no
6786 ;;
6787
6788 *nto* | *qnx*)
6789 # QNX uses GNU C++, but need to define -shared option too, otherwise
6790 # it will coredump.
6791 lt_prog_compiler_pic='-fPIC -shared'
6792 ;;
6793
6794 sysv4*MP*)
6795 if test -d /usr/nec; then
6796 lt_prog_compiler_pic=-Kconform_pic
6797 fi
6798 ;;
6799
drh71eb93e2001-09-28 01:34:43 +00006800 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006801 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006802 ;;
6803 esac
6804 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006805 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006806 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 aix*)
6808 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006809 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006810 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006812 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006814 fi
6815 ;;
6816
vapier6acb2cf2009-01-28 04:46:28 +00006817 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006818 # This hack is so that the source file can tell whether it is being
6819 # built for inclusion in a dll (and should export symbols for example).
6820 lt_prog_compiler_pic='-DDLL_EXPORT'
6821 ;;
6822
a.rottmann84e63352003-03-24 09:42:16 +00006823 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006824 lt_prog_compiler_wl='-Wl,'
6825 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6826 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006827 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006828 hppa*64*|ia64*)
6829 # +Z the default
6830 ;;
6831 *)
6832 lt_prog_compiler_pic='+Z'
6833 ;;
6834 esac
6835 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6836 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006837 ;;
6838
6839 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006840 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006841 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006842 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006843 ;;
6844
mlcreech636a9952008-05-05 22:52:56 +00006845 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006846 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006847 # old Intel for x86_64 which still supported -KPIC.
6848 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='-KPIC'
6851 lt_prog_compiler_static='-static'
6852 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006853 # icc used to be incompatible with GCC.
6854 # ICC 10 doesn't accept -KPIC any more.
6855 icc* | ifort*)
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-fPIC'
6858 lt_prog_compiler_static='-static'
6859 ;;
6860 # Lahey Fortran 8.1.
6861 lf95*)
6862 lt_prog_compiler_wl='-Wl,'
6863 lt_prog_compiler_pic='--shared'
6864 lt_prog_compiler_static='--static'
6865 ;;
vapier7f19c022007-02-17 14:46:31 +00006866 pgcc* | pgf77* | pgf90* | pgf95*)
6867 # Portland Group compilers (*not* the Pentium gcc compiler,
6868 # which looks to be a dead project)
6869 lt_prog_compiler_wl='-Wl,'
6870 lt_prog_compiler_pic='-fpic'
6871 lt_prog_compiler_static='-Bstatic'
6872 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006873 ccc*)
6874 lt_prog_compiler_wl='-Wl,'
6875 # All Alpha code is PIC.
6876 lt_prog_compiler_static='-non_shared'
6877 ;;
mlcreech636a9952008-05-05 22:52:56 +00006878 xl*)
6879 # IBM XL C 8.0/Fortran 10.1 on PPC
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_pic='-qpic'
6882 lt_prog_compiler_static='-qstaticlink'
6883 ;;
6884 *)
6885 case `$CC -V 2>&1 | sed 5q` in
6886 *Sun\ C*)
6887 # Sun C 5.9
6888 lt_prog_compiler_pic='-KPIC'
6889 lt_prog_compiler_static='-Bstatic'
6890 lt_prog_compiler_wl='-Wl,'
6891 ;;
6892 *Sun\ F*)
6893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_wl=''
6897 ;;
6898 esac
6899 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006900 esac
drh71eb93e2001-09-28 01:34:43 +00006901 ;;
6902
mlcreech636a9952008-05-05 22:52:56 +00006903 newsos6)
6904 lt_prog_compiler_pic='-KPIC'
6905 lt_prog_compiler_static='-Bstatic'
6906 ;;
6907
6908 *nto* | *qnx*)
6909 # QNX uses GNU C++, but need to define -shared option too, otherwise
6910 # it will coredump.
6911 lt_prog_compiler_pic='-fPIC -shared'
6912 ;;
6913
drh71eb93e2001-09-28 01:34:43 +00006914 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006916 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006917 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006918 ;;
6919
mlcreech636a9952008-05-05 22:52:56 +00006920 rdos*)
6921 lt_prog_compiler_static='-non_shared'
6922 ;;
6923
drh71eb93e2001-09-28 01:34:43 +00006924 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006925 lt_prog_compiler_pic='-KPIC'
6926 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006927 case $cc_basename in
6928 f77* | f90* | f95*)
6929 lt_prog_compiler_wl='-Qoption ld ';;
6930 *)
6931 lt_prog_compiler_wl='-Wl,';;
6932 esac
drh71eb93e2001-09-28 01:34:43 +00006933 ;;
6934
6935 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006936 lt_prog_compiler_wl='-Qoption ld '
6937 lt_prog_compiler_pic='-PIC'
6938 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006939 ;;
6940
vapier7f19c022007-02-17 14:46:31 +00006941 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006942 lt_prog_compiler_wl='-Wl,'
6943 lt_prog_compiler_pic='-KPIC'
6944 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006945 ;;
6946
6947 sysv4*MP*)
6948 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006949 lt_prog_compiler_pic='-Kconform_pic'
6950 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006951 fi
6952 ;;
6953
vapier7f19c022007-02-17 14:46:31 +00006954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6955 lt_prog_compiler_wl='-Wl,'
6956 lt_prog_compiler_pic='-KPIC'
6957 lt_prog_compiler_static='-Bstatic'
6958 ;;
6959
6960 unicos*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_can_build_shared=no
6963 ;;
6964
a.rottmann9bc8b932004-02-29 15:18:31 +00006965 uts4*)
6966 lt_prog_compiler_pic='-pic'
6967 lt_prog_compiler_static='-Bstatic'
6968 ;;
6969
drh71eb93e2001-09-28 01:34:43 +00006970 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006971 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006972 ;;
6973 esac
6974 fi
6975
mlcreech636a9952008-05-05 22:52:56 +00006976case $host_os in
6977 # For platforms which do not support PIC, -DPIC is meaningless:
6978 *djgpp*)
6979 lt_prog_compiler_pic=
6980 ;;
6981 *)
6982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6983 ;;
6984esac
drhf922ca42015-05-14 15:39:18 +00006985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006986$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006987
6988
6989
6990
6991
drh71eb93e2001-09-28 01:34:43 +00006992
a.rottmann9bc8b932004-02-29 15:18:31 +00006993#
6994# Check to make sure the PIC flag actually works.
6995#
6996if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006998$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006999if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007000 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007001else
mlcreech636a9952008-05-05 22:52:56 +00007002 lt_cv_prog_compiler_pic_works=no
7003 ac_outfile=conftest.$ac_objext
7004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7006 # Insert the option either (1) after the last *FLAGS variable, or
7007 # (2) before a word containing "conftest.", or (3) at the end.
7008 # Note that $ac_compile itself does not contain backslashes and begins
7009 # with a dollar sign (not a hyphen), so the echo should work correctly.
7010 # The option is referenced via a variable to avoid confusing sed.
7011 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7014 -e 's:$: $lt_compiler_flag:'`
drhf6e904b2020-12-07 17:15:32 +00007015 (eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007016 (eval "$lt_compile" 2>conftest.err)
7017 ac_status=$?
7018 cat conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00007019 echo "$as_me:7019: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007020 if (exit $ac_status) && test -s "$ac_outfile"; then
7021 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007022 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007026 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007027 fi
7028 fi
mlcreech636a9952008-05-05 22:52:56 +00007029 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007030
a.rottmann9bc8b932004-02-29 15:18:31 +00007031fi
drhf922ca42015-05-14 15:39:18 +00007032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007033$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007034
mlcreech636a9952008-05-05 22:52:56 +00007035if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007036 case $lt_prog_compiler_pic in
7037 "" | " "*) ;;
7038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7039 esac
drh71eb93e2001-09-28 01:34:43 +00007040else
a.rottmann9bc8b932004-02-29 15:18:31 +00007041 lt_prog_compiler_pic=
7042 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007043fi
7044
a.rottmann84e63352003-03-24 09:42:16 +00007045fi
mlcreech636a9952008-05-05 22:52:56 +00007046
7047
7048
7049
7050
a.rottmann84e63352003-03-24 09:42:16 +00007051
vapier7f19c022007-02-17 14:46:31 +00007052#
7053# Check to make sure the static flag actually works.
7054#
7055wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007057$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007058if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007059 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007060else
mlcreech636a9952008-05-05 22:52:56 +00007061 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007062 save_LDFLAGS="$LDFLAGS"
7063 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007064 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7066 # The linker can only warn and ignore the option if not recognized
7067 # So say no if there are warnings
7068 if test -s conftest.err; then
7069 # Append any errors to the config.log.
7070 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007071 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7073 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007074 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007075 fi
7076 else
mlcreech636a9952008-05-05 22:52:56 +00007077 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007078 fi
7079 fi
mlcreech636a9952008-05-05 22:52:56 +00007080 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007081 LDFLAGS="$save_LDFLAGS"
7082
7083fi
drhf922ca42015-05-14 15:39:18 +00007084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007085$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007086
mlcreech636a9952008-05-05 22:52:56 +00007087if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007088 :
7089else
7090 lt_prog_compiler_static=
7091fi
7092
7093
mlcreech636a9952008-05-05 22:52:56 +00007094
7095
7096
7097
7098
drhf922ca42015-05-14 15:39:18 +00007099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007100$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007101if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007102 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007103else
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007105 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007106 mkdir conftest
7107 cd conftest
7108 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007110
a.rottmann9bc8b932004-02-29 15:18:31 +00007111 lt_compiler_flag="-o out/conftest2.$ac_objext"
7112 # Insert the option either (1) after the last *FLAGS variable, or
7113 # (2) before a word containing "conftest.", or (3) at the end.
7114 # Note that $ac_compile itself does not contain backslashes and begins
7115 # with a dollar sign (not a hyphen), so the echo should work correctly.
7116 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7119 -e 's:$: $lt_compiler_flag:'`
drhf6e904b2020-12-07 17:15:32 +00007120 (eval echo "\"\$as_me:7120: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 (eval "$lt_compile" 2>out/conftest.err)
7122 ac_status=$?
7123 cat out/conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00007124 echo "$as_me:7124: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7126 then
7127 # The compiler can only warn and ignore the option if not recognized
7128 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007129 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007132 lt_cv_prog_compiler_c_o=yes
7133 fi
7134 fi
vapier7f19c022007-02-17 14:46:31 +00007135 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007136 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 # SGI C++ compiler will create directory out/ii_files/ for
7138 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7140 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007141 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007142 $RM -r conftest
7143 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007144
7145fi
drhf922ca42015-05-14 15:39:18 +00007146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007147$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007148
7149
7150
7151
7152
7153
drhf922ca42015-05-14 15:39:18 +00007154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007155$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007156if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007157 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007158else
7159 lt_cv_prog_compiler_c_o=no
7160 $RM -r conftest 2>/dev/null
7161 mkdir conftest
7162 cd conftest
7163 mkdir out
7164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7165
7166 lt_compiler_flag="-o out/conftest2.$ac_objext"
7167 # Insert the option either (1) after the last *FLAGS variable, or
7168 # (2) before a word containing "conftest.", or (3) at the end.
7169 # Note that $ac_compile itself does not contain backslashes and begins
7170 # with a dollar sign (not a hyphen), so the echo should work correctly.
7171 lt_compile=`echo "$ac_compile" | $SED \
7172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7174 -e 's:$: $lt_compiler_flag:'`
drhf6e904b2020-12-07 17:15:32 +00007175 (eval echo "\"\$as_me:7175: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007176 (eval "$lt_compile" 2>out/conftest.err)
7177 ac_status=$?
7178 cat out/conftest.err >&5
drhf6e904b2020-12-07 17:15:32 +00007179 echo "$as_me:7179: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7181 then
7182 # The compiler can only warn and ignore the option if not recognized
7183 # So say no if there are warnings
7184 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7187 lt_cv_prog_compiler_c_o=yes
7188 fi
7189 fi
7190 chmod u+w . 2>&5
7191 $RM conftest*
7192 # SGI C++ compiler will create directory out/ii_files/ for
7193 # template instantiation
7194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7195 $RM out/* && rmdir out
7196 cd ..
7197 $RM -r conftest
7198 $RM conftest*
7199
7200fi
drhf922ca42015-05-14 15:39:18 +00007201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007202$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007203
7204
drh71eb93e2001-09-28 01:34:43 +00007205
a.rottmann84e63352003-03-24 09:42:16 +00007206
drh71eb93e2001-09-28 01:34:43 +00007207hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007208if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007209 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007211$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007212 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007213 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7215 touch conftest.a
7216 ln conftest.a conftest.b 2>&5 || hard_links=no
7217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007219$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007220 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007221 { $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 +00007222$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007223 need_locks=warn
7224 fi
7225else
7226 need_locks=no
7227fi
7228
mlcreech636a9952008-05-05 22:52:56 +00007229
7230
7231
7232
7233
drhf922ca42015-05-14 15:39:18 +00007234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007235$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007236
7237 runpath_var=
7238 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007239 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007240 archive_cmds=
7241 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007242 compiler_needs_object=no
7243 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7246 hardcode_automatic=no
7247 hardcode_direct=no
7248 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 hardcode_libdir_flag_spec=
7250 hardcode_libdir_flag_spec_ld=
7251 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007252 hardcode_minus_L=no
7253 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007254 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007256 module_cmds=
7257 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007258 old_archive_from_new_cmds=
7259 old_archive_from_expsyms_cmds=
7260 thread_safe_flag_spec=
7261 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007262 # include_expsyms should be a list of space-separated symbols to be *always*
7263 # included in the symbol list
7264 include_expsyms=
7265 # exclude_expsyms can be an extended regexp of symbols to exclude
7266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7268 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007269 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7271 # platforms (ab)use it in PIC code, but their linkers get confused if
7272 # the symbol is explicitly referenced. Since portable code cannot
7273 # rely on this symbol name, it's probably fine to never include it in
7274 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007275 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 extract_expsyms_cmds=
7277
7278 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007279 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7281 # When not using gcc, we currently assume that we are using
7282 # Microsoft Visual C++.
7283 if test "$GCC" != yes; then
7284 with_gnu_ld=no
7285 fi
7286 ;;
vapier7f19c022007-02-17 14:46:31 +00007287 interix*)
7288 # we just hope/assume this is gcc and not c89 (= MSVC++)
7289 with_gnu_ld=yes
7290 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007291 openbsd*)
7292 with_gnu_ld=no
7293 ;;
7294 esac
7295
7296 ld_shlibs=yes
7297 if test "$with_gnu_ld" = yes; then
7298 # If archive_cmds runs LD, not CC, wlarc should be empty
7299 wlarc='${wl}'
7300
vapier7f19c022007-02-17 14:46:31 +00007301 # Set some defaults for GNU ld with shared library support. These
7302 # are reset later if shared libraries are not supported. Putting them
7303 # here allows them to be overridden if necessary.
7304 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007306 export_dynamic_flag_spec='${wl}--export-dynamic'
7307 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7309 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7310 else
7311 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007312 fi
7313 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007314 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7318 *\ 2.11.*) ;; # other 2.11 versions
7319 *) supports_anon_versioning=yes ;;
7320 esac
7321
a.rottmann9bc8b932004-02-29 15:18:31 +00007322 # See if GNU ld supports shared libraries.
7323 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007324 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007325 # On AIX/PPC, the GNU linker is very broken
7326 if test "$host_cpu" != ia64; then
7327 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007328 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007329
7330*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7331*** to be unable to reliably create shared libraries on AIX.
7332*** Therefore, libtool is disabling shared libraries support. If you
7333*** really care for shared libraries, you may want to modify your PATH
7334*** so that a non-GNU linker is found, and then restart.
7335
mlcreech636a9952008-05-05 22:52:56 +00007336_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007337 fi
7338 ;;
7339
7340 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007341 case $host_cpu in
7342 powerpc)
7343 # see comment about AmigaOS4 .so support
7344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7345 archive_expsym_cmds=''
7346 ;;
7347 m68k)
7348 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)'
7349 hardcode_libdir_flag_spec='-L$libdir'
7350 hardcode_minus_L=yes
7351 ;;
7352 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007353 ;;
7354
7355 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007357 allow_undefined_flag=unsupported
7358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7359 # support --undefined. This deserves some investigation. FIXME
7360 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7361 else
7362 ld_shlibs=no
7363 fi
7364 ;;
7365
vapier6acb2cf2009-01-28 04:46:28 +00007366 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007367 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007368 # as there is no search path for DLLs.
7369 hardcode_libdir_flag_spec='-L$libdir'
7370 allow_undefined_flag=unsupported
7371 always_export_symbols=no
7372 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007373 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 +00007374
mlcreech636a9952008-05-05 22:52:56 +00007375 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007376 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 +00007377 # If the export-symbols file already is a .def file (1st line
7378 # is EXPORTS), use it as is; otherwise, prepend...
7379 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7380 cp $export_symbols $output_objdir/$soname.def;
7381 else
7382 echo EXPORTS > $output_objdir/$soname.def;
7383 cat $export_symbols >> $output_objdir/$soname.def;
7384 fi~
vapier7f19c022007-02-17 14:46:31 +00007385 $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 +00007386 else
7387 ld_shlibs=no
7388 fi
7389 ;;
7390
mlcreech636a9952008-05-05 22:52:56 +00007391 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007392 hardcode_direct=no
7393 hardcode_shlibpath_var=no
7394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7395 export_dynamic_flag_spec='${wl}-E'
7396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7397 # Instead, shared libraries are loaded at an image base (0x10000000 by
7398 # default) and relocated if they conflict, which is a slow very memory
7399 # consuming and fragmenting process. To avoid this, we pick a random,
7400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7403 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'
7404 ;;
7405
mlcreech636a9952008-05-05 22:52:56 +00007406 gnu* | linux* | tpf* | k*bsd*-gnu)
7407 tmp_diet=no
7408 if test "$host_os" = linux-dietlibc; then
7409 case $cc_basename in
7410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7411 esac
7412 fi
7413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7414 && test "$tmp_diet" = no
7415 then
vapier7f19c022007-02-17 14:46:31 +00007416 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007417 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007418 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007419 pgcc*) # Portland Group C compiler
7420 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 +00007421 tmp_addflag=' $pic_flag'
7422 ;;
7423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007424 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 +00007425 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007427 tmp_addflag=' -i_dynamic' ;;
7428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7429 tmp_addflag=' -i_dynamic -nofor_main' ;;
7430 ifc* | ifort*) # Intel Fortran compiler
7431 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007432 lf95*) # Lahey Fortran 8.1
7433 whole_archive_flag_spec=
7434 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007435 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7436 tmp_sharedflag='-qmkshrobj'
7437 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007438 esac
mlcreech636a9952008-05-05 22:52:56 +00007439 case `$CC -V 2>&1 | sed 5q` in
7440 *Sun\ C*) # Sun C 5.9
7441 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'
7442 compiler_needs_object=yes
7443 tmp_sharedflag='-G' ;;
7444 *Sun\ F*) # Sun Fortran 8.3
7445 tmp_sharedflag='-G' ;;
7446 esac
7447 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007448
mlcreech636a9952008-05-05 22:52:56 +00007449 if test "x$supports_anon_versioning" = xyes; then
7450 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7451 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7452 echo "local: *; };" >> $output_objdir/$libname.ver~
7453 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7454 fi
7455
7456 case $cc_basename in
7457 xlf*)
7458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7460 hardcode_libdir_flag_spec=
7461 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7462 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7463 if test "x$supports_anon_versioning" = xyes; then
7464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7466 echo "local: *; };" >> $output_objdir/$libname.ver~
7467 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7468 fi
7469 ;;
7470 esac
vapier7f19c022007-02-17 14:46:31 +00007471 else
mlcreech636a9952008-05-05 22:52:56 +00007472 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007473 fi
7474 ;;
7475
7476 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7479 wlarc=
7480 else
7481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7483 fi
7484 ;;
7485
vapier7f19c022007-02-17 14:46:31 +00007486 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007488 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007489 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007490
7491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7492*** create shared libraries on Solaris systems. Therefore, libtool
7493*** is disabling shared libraries support. We urge you to upgrade GNU
7494*** binutils to release 2.9.1 or newer. Another option is to modify
7495*** your PATH or compiler configuration so that the native linker is
7496*** used, and then restart.
7497
mlcreech636a9952008-05-05 22:52:56 +00007498_LT_EOF
7499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7502 else
7503 ld_shlibs=no
7504 fi
7505 ;;
7506
vapier7f19c022007-02-17 14:46:31 +00007507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7508 case `$LD -v 2>&1` in
7509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7510 ld_shlibs=no
7511 cat <<_LT_EOF 1>&2
7512
7513*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7514*** reliably create shared libraries on SCO systems. Therefore, libtool
7515*** is disabling shared libraries support. We urge you to upgrade GNU
7516*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7517*** your PATH or compiler configuration so that the native linker is
7518*** used, and then restart.
7519
7520_LT_EOF
7521 ;;
7522 *)
mlcreech636a9952008-05-05 22:52:56 +00007523 # For security reasons, it is highly recommended that you always
7524 # use absolute paths for naming shared libraries, and exclude the
7525 # DT_RUNPATH tag from executables and libraries. But doing so
7526 # requires that you compile everything twice, which is a pain.
7527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7530 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 +00007531 else
7532 ld_shlibs=no
7533 fi
7534 ;;
7535 esac
7536 ;;
7537
a.rottmann9bc8b932004-02-29 15:18:31 +00007538 sunos4*)
7539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7540 wlarc=
7541 hardcode_direct=yes
7542 hardcode_shlibpath_var=no
7543 ;;
7544
a.rottmann9bc8b932004-02-29 15:18:31 +00007545 *)
mlcreech636a9952008-05-05 22:52:56 +00007546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7549 else
7550 ld_shlibs=no
7551 fi
7552 ;;
7553 esac
7554
vapier7f19c022007-02-17 14:46:31 +00007555 if test "$ld_shlibs" = no; then
7556 runpath_var=
7557 hardcode_libdir_flag_spec=
7558 export_dynamic_flag_spec=
7559 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007560 fi
7561 else
7562 # PORTME fill in a description of your system's linker (not GNU ld)
7563 case $host_os in
7564 aix3*)
7565 allow_undefined_flag=unsupported
7566 always_export_symbols=yes
7567 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'
7568 # Note: this linker hardcodes the directories in LIBPATH if there
7569 # are no directories specified by -L.
7570 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007572 # Neither direct hardcoding nor static linking is supported with a
7573 # broken collect2.
7574 hardcode_direct=unsupported
7575 fi
7576 ;;
7577
mlcreech636a9952008-05-05 22:52:56 +00007578 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007579 if test "$host_cpu" = ia64; then
7580 # On IA64, the linker does run time linking by default, so we don't
7581 # have to do anything special.
7582 aix_use_runtimelinking=no
7583 exp_sym_flag='-Bexport'
7584 no_entry_flag=""
7585 else
7586 # If we're using GNU nm, then we don't want the "-C" option.
7587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7589 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 +00007590 else
mlcreech636a9952008-05-05 22:52:56 +00007591 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 +00007592 fi
7593 aix_use_runtimelinking=no
7594
7595 # Test if we are trying to use run time linking or normal
7596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7597 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007599 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007600 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7601 aix_use_runtimelinking=yes
7602 break
7603 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007604 done
vapier7f19c022007-02-17 14:46:31 +00007605 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007606 esac
7607
7608 exp_sym_flag='-bexport'
7609 no_entry_flag='-bnoentry'
7610 fi
7611
7612 # When large executables or shared objects are built, AIX ld can
7613 # have problems creating the table of contents. If linking a library
7614 # or program results in "error TOC overflow" add -mminimal-toc to
7615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7617
7618 archive_cmds=''
7619 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007620 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007621 hardcode_libdir_separator=':'
7622 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007623 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007624
7625 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007626 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007627 # We only want to do this on AIX 4.2 and lower, the check
7628 # below for broken collect2 doesn't work under 4.3+
7629 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007630 if test -f "$collect2name" &&
7631 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007632 then
mlcreech636a9952008-05-05 22:52:56 +00007633 # We have reworked collect2
7634 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007635 else
mlcreech636a9952008-05-05 22:52:56 +00007636 # We have old collect2
7637 hardcode_direct=unsupported
7638 # It fails to find uninstalled libraries when the uninstalled
7639 # path is not listed in the libpath. Setting hardcode_minus_L
7640 # to unsupported forces relinking
7641 hardcode_minus_L=yes
7642 hardcode_libdir_flag_spec='-L$libdir'
7643 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 fi
vapier7f19c022007-02-17 14:46:31 +00007645 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 esac
7647 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007648 if test "$aix_use_runtimelinking" = yes; then
7649 shared_flag="$shared_flag "'${wl}-G'
7650 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 else
7652 # not using gcc
7653 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7655 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 shared_flag='-G'
7657 else
vapier7f19c022007-02-17 14:46:31 +00007658 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007659 shared_flag='${wl}-G'
7660 else
7661 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007662 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007663 fi
7664 fi
7665
vapier6acb2cf2009-01-28 04:46:28 +00007666 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007667 # It seems that -bexpall does not export symbols beginning with
7668 # underscore (_), so it is better to generate a list of symbols to export.
7669 always_export_symbols=yes
7670 if test "$aix_use_runtimelinking" = yes; then
7671 # Warning - without using the other runtime loading flags (-brtl),
7672 # -berok will link without error, but may produce a broken library.
7673 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007674 # Determine the default libpath from the value encoded in an
7675 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007677/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007678
a.rottmann84e63352003-03-24 09:42:16 +00007679int
7680main ()
7681{
a.rottmann9bc8b932004-02-29 15:18:31 +00007682
a.rottmann84e63352003-03-24 09:42:16 +00007683 ;
7684 return 0;
7685}
7686_ACEOF
drhf922ca42015-05-14 15:39:18 +00007687if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007688
mlcreech636a9952008-05-05 22:52:56 +00007689lt_aix_libpath_sed='
7690 /Import File Strings/,/^$/ {
7691 /^0/ {
7692 s/^0 *\(.*\)$/\1/
7693 p
7694 }
7695 }'
7696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007697# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007698if test -z "$aix_libpath"; then
7699 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7700fi
a.rottmann84e63352003-03-24 09:42:16 +00007701fi
drhf922ca42015-05-14 15:39:18 +00007702rm -f core conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007704if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007705
mlcreech636a9952008-05-05 22:52:56 +00007706 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7707 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"
7708 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007709 if test "$host_cpu" = ia64; then
7710 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7711 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007712 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 +00007713 else
mlcreech636a9952008-05-05 22:52:56 +00007714 # Determine the default libpath from the value encoded in an
7715 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007717/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007718
a.rottmann9bc8b932004-02-29 15:18:31 +00007719int
7720main ()
7721{
a.rottmann84e63352003-03-24 09:42:16 +00007722
a.rottmann9bc8b932004-02-29 15:18:31 +00007723 ;
7724 return 0;
7725}
7726_ACEOF
drhf922ca42015-05-14 15:39:18 +00007727if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007728
mlcreech636a9952008-05-05 22:52:56 +00007729lt_aix_libpath_sed='
7730 /Import File Strings/,/^$/ {
7731 /^0/ {
7732 s/^0 *\(.*\)$/\1/
7733 p
7734 }
7735 }'
7736aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007737# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007738if test -z "$aix_libpath"; then
7739 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7740fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007741fi
drhf922ca42015-05-14 15:39:18 +00007742rm -f core conftest.err conftest.$ac_objext \
7743 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007745
a.rottmann9bc8b932004-02-29 15:18:31 +00007746 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7747 # Warning - without using the other run time loading flags,
7748 # -berok will link without error, but may produce a broken library.
7749 no_undefined_flag=' ${wl}-bernotok'
7750 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007751 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007752 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007753 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007754 # This is similar to how AIX traditionally builds its shared libraries.
7755 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 +00007756 fi
7757 fi
a.rottmann84e63352003-03-24 09:42:16 +00007758 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007759
7760 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007761 case $host_cpu in
7762 powerpc)
7763 # see comment about AmigaOS4 .so support
7764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7765 archive_expsym_cmds=''
7766 ;;
7767 m68k)
7768 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)'
7769 hardcode_libdir_flag_spec='-L$libdir'
7770 hardcode_minus_L=yes
7771 ;;
7772 esac
a.rottmann84e63352003-03-24 09:42:16 +00007773 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007774
vapier7f19c022007-02-17 14:46:31 +00007775 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007776 export_dynamic_flag_spec=-rdynamic
7777 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007778
vapier6acb2cf2009-01-28 04:46:28 +00007779 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 # When not using gcc, we currently assume that we are using
7781 # Microsoft Visual C++.
7782 # hardcode_libdir_flag_spec is actually meaningless, as there is
7783 # no search path for DLLs.
7784 hardcode_libdir_flag_spec=' '
7785 allow_undefined_flag=unsupported
7786 # Tell ltmain to make .lib files, not .a files.
7787 libext=lib
7788 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007789 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007790 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007791 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 +00007792 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007793 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007795 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007796 fix_srcfile_path='`cygpath -w "$srcfile"`'
7797 enable_shared_with_static_runtimes=yes
7798 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007799
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007801
7802
7803 archive_cmds_need_lc=no
7804 hardcode_direct=no
7805 hardcode_automatic=yes
7806 hardcode_shlibpath_var=unsupported
7807 whole_archive_flag_spec=''
7808 link_all_deplibs=yes
7809 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007810 case $cc_basename in
7811 ifort*) _lt_dar_can_shared=yes ;;
7812 *) _lt_dar_can_shared=$GCC ;;
7813 esac
7814 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007815 output_verbose_link_cmd=echo
7816 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7817 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7818 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}"
7819 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}"
7820
7821 else
7822 ld_shlibs=no
7823 fi
7824
a.rottmann9bc8b932004-02-29 15:18:31 +00007825 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007826
a.rottmann9bc8b932004-02-29 15:18:31 +00007827 dgux*)
7828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7829 hardcode_libdir_flag_spec='-L$libdir'
7830 hardcode_shlibpath_var=no
7831 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007832
a.rottmann9bc8b932004-02-29 15:18:31 +00007833 freebsd1*)
7834 ld_shlibs=no
7835 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007836
a.rottmann9bc8b932004-02-29 15:18:31 +00007837 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7838 # support. Future versions do this automatically, but an explicit c++rt0.o
7839 # does not break anything, and helps significantly (at the cost of a little
7840 # extra space).
7841 freebsd2.2*)
7842 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7843 hardcode_libdir_flag_spec='-R$libdir'
7844 hardcode_direct=yes
7845 hardcode_shlibpath_var=no
7846 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007847
a.rottmann9bc8b932004-02-29 15:18:31 +00007848 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7849 freebsd2*)
7850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7851 hardcode_direct=yes
7852 hardcode_minus_L=yes
7853 hardcode_shlibpath_var=no
7854 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007855
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007857 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007858 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7859 hardcode_libdir_flag_spec='-R$libdir'
7860 hardcode_direct=yes
7861 hardcode_shlibpath_var=no
7862 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007863
a.rottmann9bc8b932004-02-29 15:18:31 +00007864 hpux9*)
7865 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007866 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 +00007867 else
mlcreech636a9952008-05-05 22:52:56 +00007868 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 +00007869 fi
7870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7871 hardcode_libdir_separator=:
7872 hardcode_direct=yes
7873
7874 # hardcode_minus_L: Not really in the search PATH,
7875 # but as the default location of the library.
7876 hardcode_minus_L=yes
7877 export_dynamic_flag_spec='${wl}-E'
7878 ;;
7879
vapier7f19c022007-02-17 14:46:31 +00007880 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007881 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007882 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7883 else
7884 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7885 fi
7886 if test "$with_gnu_ld" = no; then
7887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007888 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007889 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007890 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007891 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007892 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007893 # hardcode_minus_L: Not really in the search PATH,
7894 # but as the default location of the library.
7895 hardcode_minus_L=yes
7896 fi
7897 ;;
7898
7899 hpux11*)
7900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7901 case $host_cpu in
7902 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007903 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7904 ;;
vapier7f19c022007-02-17 14:46:31 +00007905 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007906 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007907 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 *)
7909 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7910 ;;
7911 esac
7912 else
vapier7f19c022007-02-17 14:46:31 +00007913 case $host_cpu in
7914 hppa*64*)
7915 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7916 ;;
7917 ia64*)
7918 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007919 ;;
7920 *)
vapier7f19c022007-02-17 14:46:31 +00007921 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 +00007922 ;;
7923 esac
7924 fi
7925 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7927 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007928
vapier7f19c022007-02-17 14:46:31 +00007929 case $host_cpu in
7930 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007931 hardcode_direct=no
7932 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007933 ;;
7934 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007935 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007936 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007937 export_dynamic_flag_spec='${wl}-E'
7938
7939 # hardcode_minus_L: Not really in the search PATH,
7940 # but as the default location of the library.
7941 hardcode_minus_L=yes
7942 ;;
7943 esac
7944 fi
7945 ;;
7946
7947 irix5* | irix6* | nonstopux*)
7948 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007949 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'
7950 # Try to use the -exported_symbol ld option, if it does not
7951 # work, assume that -exports_file does not work either and
7952 # implicitly export all symbols.
7953 save_LDFLAGS="$LDFLAGS"
7954 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007957int foo(void) {}
7958_ACEOF
drhf922ca42015-05-14 15:39:18 +00007959if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007960 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'
7961
mlcreech636a9952008-05-05 22:52:56 +00007962fi
drhf922ca42015-05-14 15:39:18 +00007963rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007965 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007966 else
mlcreech636a9952008-05-05 22:52:56 +00007967 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'
7968 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 +00007969 fi
mlcreech636a9952008-05-05 22:52:56 +00007970 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7972 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007973 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007974 link_all_deplibs=yes
7975 ;;
7976
vapier7f19c022007-02-17 14:46:31 +00007977 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7980 else
7981 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7982 fi
7983 hardcode_libdir_flag_spec='-R$libdir'
7984 hardcode_direct=yes
7985 hardcode_shlibpath_var=no
7986 ;;
7987
7988 newsos6)
7989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7990 hardcode_direct=yes
7991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7992 hardcode_libdir_separator=:
7993 hardcode_shlibpath_var=no
7994 ;;
7995
mlcreech636a9952008-05-05 22:52:56 +00007996 *nto* | *qnx*)
7997 ;;
7998
a.rottmann9bc8b932004-02-29 15:18:31 +00007999 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008000 if test -f /usr/libexec/ld.so; then
8001 hardcode_direct=yes
8002 hardcode_shlibpath_var=no
8003 hardcode_direct_absolute=yes
8004 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8006 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8008 export_dynamic_flag_spec='${wl}-E'
8009 else
8010 case $host_os in
8011 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8013 hardcode_libdir_flag_spec='-R$libdir'
8014 ;;
8015 *)
8016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8017 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8018 ;;
8019 esac
8020 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008021 else
mlcreech636a9952008-05-05 22:52:56 +00008022 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008023 fi
8024 ;;
8025
8026 os2*)
8027 hardcode_libdir_flag_spec='-L$libdir'
8028 hardcode_minus_L=yes
8029 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008030 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'
8031 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008032 ;;
8033
8034 osf3*)
8035 if test "$GCC" = yes; then
8036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008037 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 +00008038 else
8039 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008040 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 +00008041 fi
mlcreech636a9952008-05-05 22:52:56 +00008042 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008043 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8044 hardcode_libdir_separator=:
8045 ;;
8046
8047 osf4* | osf5*) # as osf3* with the addition of -msym flag
8048 if test "$GCC" = yes; then
8049 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008050 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 +00008051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052 else
8053 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008054 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'
8055 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~
8056 $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 +00008057
8058 # Both c and cxx compiler support -rpath directly
8059 hardcode_libdir_flag_spec='-rpath $libdir'
8060 fi
mlcreech636a9952008-05-05 22:52:56 +00008061 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008062 hardcode_libdir_separator=:
8063 ;;
8064
a.rottmann9bc8b932004-02-29 15:18:31 +00008065 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008066 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008067 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008068 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008069 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8071 $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 +00008072 else
mlcreech636a9952008-05-05 22:52:56 +00008073 case `$CC -V 2>&1` in
8074 *"Compilers 5.0"*)
8075 wlarc=''
8076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8079 ;;
8080 *)
8081 wlarc='${wl}'
8082 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8084 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8085 ;;
8086 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008087 fi
8088 hardcode_libdir_flag_spec='-R$libdir'
8089 hardcode_shlibpath_var=no
8090 case $host_os in
8091 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008092 *)
mlcreech636a9952008-05-05 22:52:56 +00008093 # The compiler driver will combine and reorder linker options,
8094 # but understands `-z linker_flag'. GCC discards it without `$wl',
8095 # but is careful enough not to reorder.
8096 # Supported since Solaris 2.6 (maybe 2.5.1?)
8097 if test "$GCC" = yes; then
8098 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8099 else
8100 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8101 fi
8102 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008103 esac
8104 link_all_deplibs=yes
8105 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008106
a.rottmann9bc8b932004-02-29 15:18:31 +00008107 sunos4*)
8108 if test "x$host_vendor" = xsequent; then
8109 # Use $CC to link under sequent, because it throws in some extra .o
8110 # files that make .init and .fini sections work.
8111 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8112 else
8113 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8114 fi
8115 hardcode_libdir_flag_spec='-L$libdir'
8116 hardcode_direct=yes
8117 hardcode_minus_L=yes
8118 hardcode_shlibpath_var=no
8119 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008120
a.rottmann9bc8b932004-02-29 15:18:31 +00008121 sysv4)
8122 case $host_vendor in
8123 sni)
8124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8125 hardcode_direct=yes # is this really true???
8126 ;;
8127 siemens)
8128 ## LD is ld it makes a PLAMLIB
8129 ## CC just makes a GrossModule.
8130 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8131 reload_cmds='$CC -r -o $output$reload_objs'
8132 hardcode_direct=no
8133 ;;
8134 motorola)
8135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8137 ;;
8138 esac
8139 runpath_var='LD_RUN_PATH'
8140 hardcode_shlibpath_var=no
8141 ;;
8142
8143 sysv4.3*)
8144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_shlibpath_var=no
8146 export_dynamic_flag_spec='-Bexport'
8147 ;;
8148
8149 sysv4*MP*)
8150 if test -d /usr/nec; then
8151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8152 hardcode_shlibpath_var=no
8153 runpath_var=LD_RUN_PATH
8154 hardcode_runpath_var=yes
8155 ld_shlibs=yes
8156 fi
8157 ;;
8158
mlcreech636a9952008-05-05 22:52:56 +00008159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008160 no_undefined_flag='${wl}-z,text'
8161 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008162 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008163 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008164
a.rottmann9bc8b932004-02-29 15:18:31 +00008165 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008166 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8167 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 +00008168 else
vapier7f19c022007-02-17 14:46:31 +00008169 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8170 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 +00008171 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008172 ;;
8173
vapier7f19c022007-02-17 14:46:31 +00008174 sysv5* | sco3.2v5* | sco5v6*)
8175 # Note: We can NOT use -z defs as we might desire, because we do not
8176 # link with -lc, and that would cause any symbols used from libc to
8177 # always be unresolved, which means just about no library would
8178 # ever link correctly. If we're not using GNU ld we use -z text
8179 # though, which does catch some bad symbols but isn't as heavy-handed
8180 # as -z defs.
8181 no_undefined_flag='${wl}-z,text'
8182 allow_undefined_flag='${wl}-z,nodefs'
8183 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008184 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008185 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008186 hardcode_libdir_separator=':'
8187 link_all_deplibs=yes
8188 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008189 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008190
8191 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008192 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8193 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008194 else
mlcreech636a9952008-05-05 22:52:56 +00008195 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008197 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008198 ;;
8199
8200 uts4*)
8201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8202 hardcode_libdir_flag_spec='-L$libdir'
8203 hardcode_shlibpath_var=no
8204 ;;
8205
8206 *)
8207 ld_shlibs=no
8208 ;;
8209 esac
mlcreech636a9952008-05-05 22:52:56 +00008210
8211 if test x$host_vendor = xsni; then
8212 case $host in
8213 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8214 export_dynamic_flag_spec='${wl}-Blargedynsym'
8215 ;;
8216 esac
8217 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008218 fi
8219
drhf922ca42015-05-14 15:39:18 +00008220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008221$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008222test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008223
mlcreech636a9952008-05-05 22:52:56 +00008224with_gnu_ld=$with_gnu_ld
8225
8226
danielk197733a14782008-08-04 14:50:05 +00008227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
a.rottmann9bc8b932004-02-29 15:18:31 +00008240#
8241# Do we need to explicitly link libc?
8242#
8243case "x$archive_cmds_need_lc" in
8244x|xyes)
8245 # Assume -lc should be added
8246 archive_cmds_need_lc=yes
8247
8248 if test "$enable_shared" = yes && test "$GCC" = yes; then
8249 case $archive_cmds in
8250 *'~'*)
8251 # FIXME: we may have to deal with multi-command sequences.
8252 ;;
8253 '$CC '*)
8254 # Test whether the compiler implicitly links with -lc since on some
8255 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8256 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008258$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008259 $RM conftest*
8260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008261
drhf922ca42015-05-14 15:39:18 +00008262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008263 (eval $ac_compile) 2>&5
8264 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008267 soname=conftest
8268 lib=conftest
8269 libobjs=conftest.$ac_objext
8270 deplibs=
8271 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008272 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008273 compiler_flags=-v
8274 linker_flags=-v
8275 verstring=
8276 output_objdir=.
8277 libname=conftest
8278 lt_save_allow_undefined_flag=$allow_undefined_flag
8279 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008280 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 +00008281 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008282 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8284 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008285 then
8286 archive_cmds_need_lc=no
8287 else
8288 archive_cmds_need_lc=yes
8289 fi
8290 allow_undefined_flag=$lt_save_allow_undefined_flag
8291 else
8292 cat conftest.err 1>&5
8293 fi
mlcreech636a9952008-05-05 22:52:56 +00008294 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008296$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008297 ;;
8298 esac
drh71eb93e2001-09-28 01:34:43 +00008299 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008300 ;;
8301esac
drh71eb93e2001-09-28 01:34:43 +00008302
mlcreech636a9952008-05-05 22:52:56 +00008303
danielk197733a14782008-08-04 14:50:05 +00008304
8305
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
drhf922ca42015-05-14 15:39:18 +00008459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008460$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008461
8462if test "$GCC" = yes; then
8463 case $host_os in
8464 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8465 *) lt_awk_arg="/^libraries:/" ;;
8466 esac
8467 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8468 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8469 # if the path contains ";" then we assume it to be the separator
8470 # otherwise default to the standard path separator (i.e. ":") - it is
8471 # assumed that no part of a normal pathname contains ";" but that should
8472 # okay in the real world where ";" in dirpaths is itself problematic.
8473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8474 else
8475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8476 fi
8477 # Ok, now we have the path, separated by spaces, we can step through it
8478 # and add multilib dir if necessary.
8479 lt_tmp_lt_search_path_spec=
8480 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8481 for lt_sys_path in $lt_search_path_spec; do
8482 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8484 else
8485 test -d "$lt_sys_path" && \
8486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8487 fi
8488 done
8489 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8490BEGIN {RS=" "; FS="/|\n";} {
8491 lt_foo="";
8492 lt_count=0;
8493 for (lt_i = NF; lt_i > 0; lt_i--) {
8494 if ($lt_i != "" && $lt_i != ".") {
8495 if ($lt_i == "..") {
8496 lt_count++;
8497 } else {
8498 if (lt_count == 0) {
8499 lt_foo="/" $lt_i lt_foo;
8500 } else {
8501 lt_count--;
8502 }
8503 }
8504 }
8505 }
8506 if (lt_foo != "") { lt_freq[lt_foo]++; }
8507 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8508}'`
8509 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8510else
8511 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8512fi
drh71eb93e2001-09-28 01:34:43 +00008513library_names_spec=
8514libname_spec='lib$name'
8515soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008516shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008517postinstall_cmds=
8518postuninstall_cmds=
8519finish_cmds=
8520finish_eval=
8521shlibpath_var=
8522shlibpath_overrides_runpath=unknown
8523version_type=none
8524dynamic_linker="$host_os ld.so"
8525sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008526need_lib_prefix=unknown
8527hardcode_into_libs=no
8528
8529# when you set need_version to no, make sure it does not cause -set_version
8530# flags to be left without arguments
8531need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008532
8533case $host_os in
8534aix3*)
8535 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008537 shlibpath_var=LIBPATH
8538
a.rottmann9bc8b932004-02-29 15:18:31 +00008539 # AIX 3 has no versioning support, so we append a major version to the name.
8540 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008541 ;;
8542
mlcreech636a9952008-05-05 22:52:56 +00008543aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008544 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008545 need_lib_prefix=no
8546 need_version=no
8547 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008548 if test "$host_cpu" = ia64; then
8549 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008550 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008551 shlibpath_var=LD_LIBRARY_PATH
8552 else
8553 # With GCC up to 2.95.x, collect2 would create an import file
8554 # for dependence libraries. The import file would start with
8555 # the line `#! .'. This would cause the generated library to
8556 # depend on `.', always an invalid library. This was fixed in
8557 # development snapshots of GCC prior to 3.0.
8558 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008559 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008560 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8561 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008562 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008563 :
8564 else
8565 can_build_shared=no
8566 fi
8567 ;;
drh71eb93e2001-09-28 01:34:43 +00008568 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008569 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8570 # soname into executable. Probably we can add versioning support to
8571 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008572 if test "$aix_use_runtimelinking" = yes; then
8573 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8574 # instead of lib<name>.a to let people know that these are not
8575 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008577 else
8578 # We preserve .a as extension for shared libraries through AIX4.2
8579 # and later when we are not doing run time linking.
8580 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008581 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008582 fi
8583 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008584 fi
8585 ;;
8586
8587amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008588 case $host_cpu in
8589 powerpc)
8590 # Since July 2007 AmigaOS4 officially supports .so libraries.
8591 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8593 ;;
8594 m68k)
8595 library_names_spec='$libname.ixlibrary $libname.a'
8596 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8597 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'
8598 ;;
8599 esac
drh71eb93e2001-09-28 01:34:43 +00008600 ;;
8601
8602beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008603 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008604 dynamic_linker="$host_os ld.so"
8605 shlibpath_var=LIBRARY_PATH
8606 ;;
8607
vapier7f19c022007-02-17 14:46:31 +00008608bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008609 version_type=linux
8610 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008613 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8614 shlibpath_var=LD_LIBRARY_PATH
8615 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8616 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8617 # the default ld.so.conf also contains /usr/contrib/lib and
8618 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8619 # libtool to hard-code these into programs
8620 ;;
8621
vapier6acb2cf2009-01-28 04:46:28 +00008622cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008623 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008624 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008625 need_version=no
8626 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008627
drh71eb93e2001-09-28 01:34:43 +00008628 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008629 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008630 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008631 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8632 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008633 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008634 dldir=$destdir/`dirname \$dlpath`~
8635 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008636 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008637 chmod a+x \$dldir/$dlname~
8638 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8639 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8640 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008642 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008643 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008644 shlibpath_overrides_runpath=yes
8645
8646 case $host_os in
8647 cygwin*)
8648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8649 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8651 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008652 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008653 # MinGW DLLs use traditional 'lib' prefix
8654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008655 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8656 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008657 # It is most probably a Windows format PATH printed by
8658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8659 # path with ; separators, and with drive letters. We can handle the
8660 # drive letters (cygwin fileutils understands them), so leave them,
8661 # especially as we might pass files found there to a mingw objdump,
8662 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008664 else
mlcreech636a9952008-05-05 22:52:56 +00008665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008666 fi
8667 ;;
8668 pw32*)
8669 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008670 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 +00008671 ;;
8672 esac
drh71eb93e2001-09-28 01:34:43 +00008673 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008674
drh71eb93e2001-09-28 01:34:43 +00008675 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008677 ;;
8678 esac
8679 dynamic_linker='Win32 ld.exe'
8680 # FIXME: first we should search . and the directory the executable is in
8681 shlibpath_var=PATH
8682 ;;
8683
8684darwin* | rhapsody*)
8685 dynamic_linker="$host_os dyld"
8686 version_type=darwin
8687 need_lib_prefix=no
8688 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008689 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008690 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008691 shlibpath_overrides_runpath=yes
8692 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008693 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008694
8695 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8697 ;;
8698
8699dgux*)
8700 version_type=linux
8701 need_lib_prefix=no
8702 need_version=no
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8704 soname_spec='${libname}${release}${shared_ext}$major'
8705 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008706 ;;
8707
a.rottmann84e63352003-03-24 09:42:16 +00008708freebsd1*)
8709 dynamic_linker=no
8710 ;;
8711
vapier7f19c022007-02-17 14:46:31 +00008712freebsd* | dragonfly*)
8713 # DragonFly does not have aout. When/if they implement a new
8714 # versioning mechanism, adjust this.
8715 if test -x /usr/bin/objformat; then
8716 objformat=`/usr/bin/objformat`
8717 else
8718 case $host_os in
8719 freebsd[123]*) objformat=aout ;;
8720 *) objformat=elf ;;
8721 esac
8722 fi
8723 # Handle Gentoo/FreeBSD as it was Linux
8724 case $host_vendor in
8725 gentoo)
8726 version_type=linux ;;
8727 *)
8728 version_type=freebsd-$objformat ;;
8729 esac
8730
drh71eb93e2001-09-28 01:34:43 +00008731 case $version_type in
8732 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008734 need_version=no
8735 need_lib_prefix=no
8736 ;;
8737 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008739 need_version=yes
8740 ;;
vapier7f19c022007-02-17 14:46:31 +00008741 linux)
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 need_lib_prefix=no
8745 need_version=no
8746 ;;
drh71eb93e2001-09-28 01:34:43 +00008747 esac
8748 shlibpath_var=LD_LIBRARY_PATH
8749 case $host_os in
8750 freebsd2*)
8751 shlibpath_overrides_runpath=yes
8752 ;;
vapier7f19c022007-02-17 14:46:31 +00008753 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008754 shlibpath_overrides_runpath=yes
8755 hardcode_into_libs=yes
8756 ;;
vapier7f19c022007-02-17 14:46:31 +00008757 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8758 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008759 shlibpath_overrides_runpath=no
8760 hardcode_into_libs=yes
8761 ;;
mlcreech636a9952008-05-05 22:52:56 +00008762 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008763 shlibpath_overrides_runpath=yes
8764 hardcode_into_libs=yes
8765 ;;
drh71eb93e2001-09-28 01:34:43 +00008766 esac
8767 ;;
8768
8769gnu*)
8770 version_type=linux
8771 need_lib_prefix=no
8772 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8774 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008775 shlibpath_var=LD_LIBRARY_PATH
8776 hardcode_into_libs=yes
8777 ;;
8778
8779hpux9* | hpux10* | hpux11*)
8780 # Give a soname corresponding to the major version so that dld.sl refuses to
8781 # link against other versions.
8782 version_type=sunos
8783 need_lib_prefix=no
8784 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008785 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008786 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008787 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008788 hardcode_into_libs=yes
8789 dynamic_linker="$host_os dld.so"
8790 shlibpath_var=LD_LIBRARY_PATH
8791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 if test "X$HPUX_IA64_MODE" = X32; then
8795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8796 else
8797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8798 fi
8799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8800 ;;
mlcreech636a9952008-05-05 22:52:56 +00008801 hppa*64*)
8802 shrext_cmds='.sl'
8803 hardcode_into_libs=yes
8804 dynamic_linker="$host_os dld.sl"
8805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8811 ;;
8812 *)
vapier7f19c022007-02-17 14:46:31 +00008813 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008814 dynamic_linker="$host_os dld.sl"
8815 shlibpath_var=SHLIB_PATH
8816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8818 soname_spec='${libname}${release}${shared_ext}$major'
8819 ;;
8820 esac
drh71eb93e2001-09-28 01:34:43 +00008821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8822 postinstall_cmds='chmod 555 $lib'
8823 ;;
8824
mlcreech636a9952008-05-05 22:52:56 +00008825interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008826 version_type=linux
8827 need_lib_prefix=no
8828 need_version=no
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8832 shlibpath_var=LD_LIBRARY_PATH
8833 shlibpath_overrides_runpath=no
8834 hardcode_into_libs=yes
8835 ;;
8836
a.rottmann84e63352003-03-24 09:42:16 +00008837irix5* | irix6* | nonstopux*)
8838 case $host_os in
8839 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008840 *)
8841 if test "$lt_cv_prog_gnu_ld" = yes; then
8842 version_type=linux
8843 else
8844 version_type=irix
8845 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008846 esac
drh71eb93e2001-09-28 01:34:43 +00008847 need_lib_prefix=no
8848 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008849 soname_spec='${libname}${release}${shared_ext}$major'
8850 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 +00008851 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008852 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008853 libsuff= shlibsuff=
8854 ;;
8855 *)
8856 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008857 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8858 libsuff= shlibsuff= libmagic=32-bit;;
8859 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8860 libsuff=32 shlibsuff=N32 libmagic=N32;;
8861 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8862 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008863 *) libsuff= shlibsuff= libmagic=never-match;;
8864 esac
8865 ;;
8866 esac
8867 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8868 shlibpath_overrides_runpath=no
8869 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8870 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008871 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008872 ;;
8873
8874# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008875linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008876 dynamic_linker=no
8877 ;;
8878
8879# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008880linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008881 version_type=linux
8882 need_lib_prefix=no
8883 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8887 shlibpath_var=LD_LIBRARY_PATH
8888 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008889 # Some binutils ld are patched to set DT_RUNPATH
8890 save_LDFLAGS=$LDFLAGS
8891 save_libdir=$libdir
8892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008895/* end confdefs.h. */
8896
8897int
8898main ()
8899{
8900
8901 ;
8902 return 0;
8903}
8904_ACEOF
drhf922ca42015-05-14 15:39:18 +00008905if ac_fn_c_try_link "$LINENO"; then :
8906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008907 shlibpath_overrides_runpath=yes
8908fi
mlcreech636a9952008-05-05 22:52:56 +00008909fi
drhf922ca42015-05-14 15:39:18 +00008910rm -f core conftest.err conftest.$ac_objext \
8911 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008912 LDFLAGS=$save_LDFLAGS
8913 libdir=$save_libdir
8914
drh71eb93e2001-09-28 01:34:43 +00008915 # This implies no fast_install, which is unacceptable.
8916 # Some rework will be needed to allow for fast_install
8917 # before this can be enabled.
8918 hardcode_into_libs=yes
8919
a.rottmann9bc8b932004-02-29 15:18:31 +00008920 # Append ld.so.conf contents to the search path
8921 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008922 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 +00008923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008924 fi
8925
drh71eb93e2001-09-28 01:34:43 +00008926 # We used to test for /lib/ld.so.1 and disable shared libraries on
8927 # powerpc, because MkLinux only supported shared libraries with the
8928 # GNU dynamic linker. Since this was broken with cross compilers,
8929 # most powerpc-linux boxes support dynamic linking these days and
8930 # people can always --disable-shared, the test was removed, and we
8931 # assume the GNU/Linux dynamic linker is in use.
8932 dynamic_linker='GNU/Linux ld.so'
8933 ;;
8934
8935netbsd*)
8936 version_type=sunos
8937 need_lib_prefix=no
8938 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8942 dynamic_linker='NetBSD (a.out) ld.so'
8943 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008946 dynamic_linker='NetBSD ld.elf_so'
8947 fi
8948 shlibpath_var=LD_LIBRARY_PATH
8949 shlibpath_overrides_runpath=yes
8950 hardcode_into_libs=yes
8951 ;;
8952
8953newsos6)
8954 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=yes
8958 ;;
8959
mlcreech636a9952008-05-05 22:52:56 +00008960*nto* | *qnx*)
8961 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008962 need_lib_prefix=no
8963 need_version=no
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008966 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008967 shlibpath_overrides_runpath=no
8968 hardcode_into_libs=yes
8969 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008970 ;;
8971
drh71eb93e2001-09-28 01:34:43 +00008972openbsd*)
8973 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008974 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008975 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8977 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8979 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008980 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8983 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008984 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 +00008985 case $host_os in
8986 openbsd2.[89] | openbsd2.[89].*)
8987 shlibpath_overrides_runpath=no
8988 ;;
8989 *)
8990 shlibpath_overrides_runpath=yes
8991 ;;
8992 esac
a.rottmann84e63352003-03-24 09:42:16 +00008993 else
8994 shlibpath_overrides_runpath=yes
8995 fi
drh71eb93e2001-09-28 01:34:43 +00008996 ;;
8997
8998os2*)
8999 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009000 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009001 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009002 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009003 dynamic_linker='OS/2 ld.exe'
9004 shlibpath_var=LIBPATH
9005 ;;
9006
9007osf3* | osf4* | osf5*)
9008 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009009 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009010 need_version=no
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009013 shlibpath_var=LD_LIBRARY_PATH
9014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9016 ;;
9017
mlcreech636a9952008-05-05 22:52:56 +00009018rdos*)
9019 dynamic_linker=no
9020 ;;
9021
drh71eb93e2001-09-28 01:34:43 +00009022solaris*)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9031 # ldd complains unless libraries are executable
9032 postinstall_cmds='chmod +x $lib'
9033 ;;
9034
9035sunos4*)
9036 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 if test "$with_gnu_ld" = yes; then
9042 need_lib_prefix=no
9043 fi
9044 need_version=yes
9045 ;;
9046
vapier7f19c022007-02-17 14:46:31 +00009047sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009048 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009051 shlibpath_var=LD_LIBRARY_PATH
9052 case $host_vendor in
9053 sni)
9054 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009055 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009056 runpath_var=LD_RUN_PATH
9057 ;;
9058 siemens)
9059 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009060 ;;
9061 motorola)
9062 need_lib_prefix=no
9063 need_version=no
9064 shlibpath_overrides_runpath=no
9065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9066 ;;
9067 esac
9068 ;;
9069
9070sysv4*MP*)
9071 if test -d /usr/nec ;then
9072 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9074 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009075 shlibpath_var=LD_LIBRARY_PATH
9076 fi
9077 ;;
9078
vapier7f19c022007-02-17 14:46:31 +00009079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9080 version_type=freebsd-elf
9081 need_lib_prefix=no
9082 need_version=no
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009086 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009087 hardcode_into_libs=yes
9088 if test "$with_gnu_ld" = yes; then
9089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009090 else
9091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009092 case $host_os in
9093 sco3.2v5*)
9094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9095 ;;
9096 esac
9097 fi
9098 sys_lib_dlsearch_path_spec='/usr/lib'
9099 ;;
9100
mlcreech636a9952008-05-05 22:52:56 +00009101tpf*)
9102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9103 version_type=linux
9104 need_lib_prefix=no
9105 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=no
9109 hardcode_into_libs=yes
9110 ;;
9111
a.rottmann9bc8b932004-02-29 15:18:31 +00009112uts4*)
9113 version_type=linux
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 ;;
9118
drh71eb93e2001-09-28 01:34:43 +00009119*)
9120 dynamic_linker=no
9121 ;;
9122esac
drhf922ca42015-05-14 15:39:18 +00009123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009124$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009125test "$dynamic_linker" = no && can_build_shared=no
9126
vapier7f19c022007-02-17 14:46:31 +00009127variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9128if test "$GCC" = yes; then
9129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9130fi
9131
mlcreech636a9952008-05-05 22:52:56 +00009132if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9134fi
9135if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9137fi
9138
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
drhf922ca42015-05-14 15:39:18 +00009225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009226$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009227hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009228if test -n "$hardcode_libdir_flag_spec" ||
9229 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009230 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009231
mlcreech636a9952008-05-05 22:52:56 +00009232 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009233 if test "$hardcode_direct" != no &&
9234 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9235 # have to relink, otherwise we might link with an installed library
9236 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009237 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009238 test "$hardcode_minus_L" != no; then
9239 # Linking always hardcodes the temporary library directory.
9240 hardcode_action=relink
9241 else
9242 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9243 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009244 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009245else
9246 # We cannot hardcode anything, or else we can only hardcode existing
9247 # directories.
9248 hardcode_action=unsupported
9249fi
drhf922ca42015-05-14 15:39:18 +00009250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009251$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009252
mlcreech636a9952008-05-05 22:52:56 +00009253if test "$hardcode_action" = relink ||
9254 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009255 # Fast installation is not supported
9256 enable_fast_install=no
9257elif test "$shlibpath_overrides_runpath" = yes ||
9258 test "$enable_shared" = no; then
9259 # Fast installation is not necessary
9260 enable_fast_install=needless
9261fi
9262
a.rottmann84e63352003-03-24 09:42:16 +00009263
mlcreech636a9952008-05-05 22:52:56 +00009264
9265
9266
9267
9268 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009269 enable_dlopen=unknown
9270 enable_dlopen_self=unknown
9271 enable_dlopen_self_static=unknown
9272else
9273 lt_cv_dlopen=no
9274 lt_cv_dlopen_libs=
9275
9276 case $host_os in
9277 beos*)
9278 lt_cv_dlopen="load_add_on"
9279 lt_cv_dlopen_libs=
9280 lt_cv_dlopen_self=yes
9281 ;;
9282
vapier6acb2cf2009-01-28 04:46:28 +00009283 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009284 lt_cv_dlopen="LoadLibrary"
9285 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009286 ;;
drh71eb93e2001-09-28 01:34:43 +00009287
a.rottmann9bc8b932004-02-29 15:18:31 +00009288 cygwin*)
9289 lt_cv_dlopen="dlopen"
9290 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009291 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009292
9293 darwin*)
9294 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009296$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009297if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009298 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009299else
9300 ac_check_lib_save_LIBS=$LIBS
9301LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009303/* end confdefs.h. */
9304
drh8b727472009-01-19 18:18:40 +00009305/* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009308#ifdef __cplusplus
9309extern "C"
9310#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009311char dlopen ();
9312int
9313main ()
9314{
drh8b727472009-01-19 18:18:40 +00009315return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009316 ;
9317 return 0;
9318}
9319_ACEOF
drhf922ca42015-05-14 15:39:18 +00009320if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009321 ac_cv_lib_dl_dlopen=yes
9322else
drhf922ca42015-05-14 15:39:18 +00009323 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009324fi
drhf922ca42015-05-14 15:39:18 +00009325rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009327LIBS=$ac_check_lib_save_LIBS
9328fi
drhf922ca42015-05-14 15:39:18 +00009329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009330$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009331if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9333else
9334
9335 lt_cv_dlopen="dyld"
9336 lt_cv_dlopen_libs=
9337 lt_cv_dlopen_self=yes
9338
9339fi
9340
mlcreech636a9952008-05-05 22:52:56 +00009341 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009342
drh71eb93e2001-09-28 01:34:43 +00009343 *)
drhf922ca42015-05-14 15:39:18 +00009344 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9345if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009346 lt_cv_dlopen="shl_load"
9347else
drhf922ca42015-05-14 15:39:18 +00009348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009349$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009350if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009351 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009352else
9353 ac_check_lib_save_LIBS=$LIBS
9354LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009356/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009357
drh8b727472009-01-19 18:18:40 +00009358/* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009361#ifdef __cplusplus
9362extern "C"
9363#endif
drh71eb93e2001-09-28 01:34:43 +00009364char shl_load ();
9365int
9366main ()
9367{
drh8b727472009-01-19 18:18:40 +00009368return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009369 ;
9370 return 0;
9371}
9372_ACEOF
drhf922ca42015-05-14 15:39:18 +00009373if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009374 ac_cv_lib_dld_shl_load=yes
9375else
drhf922ca42015-05-14 15:39:18 +00009376 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009377fi
drhf922ca42015-05-14 15:39:18 +00009378rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009380LIBS=$ac_check_lib_save_LIBS
9381fi
drhf922ca42015-05-14 15:39:18 +00009382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009383$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009384if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009385 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009386else
drhf922ca42015-05-14 15:39:18 +00009387 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9388if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009389 lt_cv_dlopen="dlopen"
9390else
drhf922ca42015-05-14 15:39:18 +00009391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009392$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009393if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009394 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009395else
9396 ac_check_lib_save_LIBS=$LIBS
9397LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009399/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009400
drh8b727472009-01-19 18:18:40 +00009401/* Override any GCC internal prototype to avoid an error.
9402 Use char because int might match the return type of a GCC
9403 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009404#ifdef __cplusplus
9405extern "C"
9406#endif
drh71eb93e2001-09-28 01:34:43 +00009407char dlopen ();
9408int
9409main ()
9410{
drh8b727472009-01-19 18:18:40 +00009411return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009412 ;
9413 return 0;
9414}
9415_ACEOF
drhf922ca42015-05-14 15:39:18 +00009416if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009417 ac_cv_lib_dl_dlopen=yes
9418else
drhf922ca42015-05-14 15:39:18 +00009419 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009420fi
drhf922ca42015-05-14 15:39:18 +00009421rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009423LIBS=$ac_check_lib_save_LIBS
9424fi
drhf922ca42015-05-14 15:39:18 +00009425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009426$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009427if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009428 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9429else
drhf922ca42015-05-14 15:39:18 +00009430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009431$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009432if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009433 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009434else
9435 ac_check_lib_save_LIBS=$LIBS
9436LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009438/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009439
drh8b727472009-01-19 18:18:40 +00009440/* Override any GCC internal prototype to avoid an error.
9441 Use char because int might match the return type of a GCC
9442 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009443#ifdef __cplusplus
9444extern "C"
9445#endif
drh71eb93e2001-09-28 01:34:43 +00009446char dlopen ();
9447int
9448main ()
9449{
drh8b727472009-01-19 18:18:40 +00009450return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009451 ;
9452 return 0;
9453}
9454_ACEOF
drhf922ca42015-05-14 15:39:18 +00009455if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009456 ac_cv_lib_svld_dlopen=yes
9457else
drhf922ca42015-05-14 15:39:18 +00009458 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009459fi
drhf922ca42015-05-14 15:39:18 +00009460rm -f core conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009462LIBS=$ac_check_lib_save_LIBS
9463fi
drhf922ca42015-05-14 15:39:18 +00009464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009465$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009466if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009467 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009468else
drhf922ca42015-05-14 15:39:18 +00009469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009470$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009471if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009472 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009473else
9474 ac_check_lib_save_LIBS=$LIBS
9475LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009477/* end confdefs.h. */
9478
drh8b727472009-01-19 18:18:40 +00009479/* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009482#ifdef __cplusplus
9483extern "C"
9484#endif
a.rottmann84e63352003-03-24 09:42:16 +00009485char dld_link ();
9486int
9487main ()
9488{
drh8b727472009-01-19 18:18:40 +00009489return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009490 ;
9491 return 0;
9492}
9493_ACEOF
drhf922ca42015-05-14 15:39:18 +00009494if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009495 ac_cv_lib_dld_dld_link=yes
9496else
drhf922ca42015-05-14 15:39:18 +00009497 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009498fi
drhf922ca42015-05-14 15:39:18 +00009499rm -f core conftest.err conftest.$ac_objext \
9500 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009501LIBS=$ac_check_lib_save_LIBS
9502fi
drhf922ca42015-05-14 15:39:18 +00009503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009504$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009505if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009506 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009507fi
9508
drh71eb93e2001-09-28 01:34:43 +00009509
9510fi
9511
drh71eb93e2001-09-28 01:34:43 +00009512
9513fi
9514
a.rottmann84e63352003-03-24 09:42:16 +00009515
9516fi
9517
9518
9519fi
9520
9521
drh71eb93e2001-09-28 01:34:43 +00009522fi
9523
9524 ;;
9525 esac
9526
9527 if test "x$lt_cv_dlopen" != xno; then
9528 enable_dlopen=yes
9529 else
9530 enable_dlopen=no
9531 fi
9532
9533 case $lt_cv_dlopen in
9534 dlopen)
9535 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009536 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009537
9538 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009539 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009540
9541 save_LIBS="$LIBS"
9542 LIBS="$lt_cv_dlopen_libs $LIBS"
9543
drhf922ca42015-05-14 15:39:18 +00009544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009545$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009546if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009547 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009548else
9549 if test "$cross_compiling" = yes; then :
9550 lt_cv_dlopen_self=cross
9551else
a.rottmann9bc8b932004-02-29 15:18:31 +00009552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009553 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009554 cat > conftest.$ac_ext <<_LT_EOF
drhf6e904b2020-12-07 17:15:32 +00009555#line 9555 "configure"
drh71eb93e2001-09-28 01:34:43 +00009556#include "confdefs.h"
9557
9558#if HAVE_DLFCN_H
9559#include <dlfcn.h>
9560#endif
9561
9562#include <stdio.h>
9563
9564#ifdef RTLD_GLOBAL
9565# define LT_DLGLOBAL RTLD_GLOBAL
9566#else
9567# ifdef DL_GLOBAL
9568# define LT_DLGLOBAL DL_GLOBAL
9569# else
9570# define LT_DLGLOBAL 0
9571# endif
9572#endif
9573
9574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9575 find out it does not work in some platform. */
9576#ifndef LT_DLLAZY_OR_NOW
9577# ifdef RTLD_LAZY
9578# define LT_DLLAZY_OR_NOW RTLD_LAZY
9579# else
9580# ifdef DL_LAZY
9581# define LT_DLLAZY_OR_NOW DL_LAZY
9582# else
9583# ifdef RTLD_NOW
9584# define LT_DLLAZY_OR_NOW RTLD_NOW
9585# else
9586# ifdef DL_NOW
9587# define LT_DLLAZY_OR_NOW DL_NOW
9588# else
9589# define LT_DLLAZY_OR_NOW 0
9590# endif
9591# endif
9592# endif
9593# endif
9594#endif
9595
drh71eb93e2001-09-28 01:34:43 +00009596void fnord() { int i=42;}
9597int main ()
9598{
9599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9600 int status = $lt_dlunknown;
9601
9602 if (self)
9603 {
9604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9606 /* dlclose (self); */
9607 }
vapier7f19c022007-02-17 14:46:31 +00009608 else
9609 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009610
vapier6acb2cf2009-01-28 04:46:28 +00009611 return status;
drh71eb93e2001-09-28 01:34:43 +00009612}
mlcreech636a9952008-05-05 22:52:56 +00009613_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009615 (eval $ac_link) 2>&5
9616 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9618 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009619 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009620 lt_status=$?
9621 case x$lt_status in
9622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009624 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009625 esac
9626 else :
9627 # compilation failed
9628 lt_cv_dlopen_self=no
9629 fi
9630fi
9631rm -fr conftest*
9632
a.rottmann84e63352003-03-24 09:42:16 +00009633
drh71eb93e2001-09-28 01:34:43 +00009634fi
drhf922ca42015-05-14 15:39:18 +00009635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009636$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009637
9638 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009641$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009642if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009643 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009644else
9645 if test "$cross_compiling" = yes; then :
9646 lt_cv_dlopen_self_static=cross
9647else
a.rottmann9bc8b932004-02-29 15:18:31 +00009648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009649 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009650 cat > conftest.$ac_ext <<_LT_EOF
drhf6e904b2020-12-07 17:15:32 +00009651#line 9651 "configure"
drh71eb93e2001-09-28 01:34:43 +00009652#include "confdefs.h"
9653
9654#if HAVE_DLFCN_H
9655#include <dlfcn.h>
9656#endif
9657
9658#include <stdio.h>
9659
9660#ifdef RTLD_GLOBAL
9661# define LT_DLGLOBAL RTLD_GLOBAL
9662#else
9663# ifdef DL_GLOBAL
9664# define LT_DLGLOBAL DL_GLOBAL
9665# else
9666# define LT_DLGLOBAL 0
9667# endif
9668#endif
9669
9670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9671 find out it does not work in some platform. */
9672#ifndef LT_DLLAZY_OR_NOW
9673# ifdef RTLD_LAZY
9674# define LT_DLLAZY_OR_NOW RTLD_LAZY
9675# else
9676# ifdef DL_LAZY
9677# define LT_DLLAZY_OR_NOW DL_LAZY
9678# else
9679# ifdef RTLD_NOW
9680# define LT_DLLAZY_OR_NOW RTLD_NOW
9681# else
9682# ifdef DL_NOW
9683# define LT_DLLAZY_OR_NOW DL_NOW
9684# else
9685# define LT_DLLAZY_OR_NOW 0
9686# endif
9687# endif
9688# endif
9689# endif
9690#endif
9691
drh71eb93e2001-09-28 01:34:43 +00009692void fnord() { int i=42;}
9693int main ()
9694{
9695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9696 int status = $lt_dlunknown;
9697
9698 if (self)
9699 {
9700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9701 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9702 /* dlclose (self); */
9703 }
vapier7f19c022007-02-17 14:46:31 +00009704 else
9705 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009706
vapier6acb2cf2009-01-28 04:46:28 +00009707 return status;
drh71eb93e2001-09-28 01:34:43 +00009708}
mlcreech636a9952008-05-05 22:52:56 +00009709_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009711 (eval $ac_link) 2>&5
9712 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9714 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009715 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009716 lt_status=$?
9717 case x$lt_status in
9718 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9719 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009720 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009721 esac
9722 else :
9723 # compilation failed
9724 lt_cv_dlopen_self_static=no
9725 fi
9726fi
9727rm -fr conftest*
9728
a.rottmann84e63352003-03-24 09:42:16 +00009729
drh71eb93e2001-09-28 01:34:43 +00009730fi
drhf922ca42015-05-14 15:39:18 +00009731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009732$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009733 fi
9734
9735 CPPFLAGS="$save_CPPFLAGS"
9736 LDFLAGS="$save_LDFLAGS"
9737 LIBS="$save_LIBS"
9738 ;;
9739 esac
9740
9741 case $lt_cv_dlopen_self in
9742 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9743 *) enable_dlopen_self=unknown ;;
9744 esac
9745
9746 case $lt_cv_dlopen_self_static in
9747 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9748 *) enable_dlopen_self_static=unknown ;;
9749 esac
9750fi
9751
drh71eb93e2001-09-28 01:34:43 +00009752
drh71eb93e2001-09-28 01:34:43 +00009753
a.rottmann9bc8b932004-02-29 15:18:31 +00009754
a.rottmann9bc8b932004-02-29 15:18:31 +00009755
mlcreech636a9952008-05-05 22:52:56 +00009756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768striplib=
9769old_striplib=
drhf922ca42015-05-14 15:39:18 +00009770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009771$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009772if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9773 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9774 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009776$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009777else
9778# FIXME - insert some real tests, host_os isn't really good enough
9779 case $host_os in
9780 darwin*)
9781 if test -n "$STRIP" ; then
9782 striplib="$STRIP -x"
9783 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009785$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009786 else
drhf922ca42015-05-14 15:39:18 +00009787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009788$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009789 fi
a.rottmann84e63352003-03-24 09:42:16 +00009790 ;;
mlcreech636a9952008-05-05 22:52:56 +00009791 *)
drhf922ca42015-05-14 15:39:18 +00009792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009793$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009794 ;;
9795 esac
mlcreech636a9952008-05-05 22:52:56 +00009796fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009797
a.rottmann9bc8b932004-02-29 15:18:31 +00009798
drh71eb93e2001-09-28 01:34:43 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
a.rottmann84e63352003-03-24 09:42:16 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
a.rottmann9bc8b932004-02-29 15:18:31 +00009804
drh71eb93e2001-09-28 01:34:43 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
drh71eb93e2001-09-28 01:34:43 +00009807
drh71eb93e2001-09-28 01:34:43 +00009808
mlcreech636a9952008-05-05 22:52:56 +00009809 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009811$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009813$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009814
drhf922ca42015-05-14 15:39:18 +00009815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009816$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009817 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009818
mlcreech636a9952008-05-05 22:52:56 +00009819 # On AIX, shared libraries and static libraries use the same namespace, and
9820 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009821 case $host_os in
9822 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009823 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009824 if test -n "$RANLIB"; then
9825 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9826 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009827 fi
9828 ;;
9829
mlcreech636a9952008-05-05 22:52:56 +00009830 aix[4-9]*)
9831 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9832 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009833 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009834 ;;
9835 esac
drhf922ca42015-05-14 15:39:18 +00009836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009837$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009838
drhf922ca42015-05-14 15:39:18 +00009839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009840$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009841 # Make sure either enable_shared or enable_static is yes.
9842 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009844$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
vapier7f19c022007-02-17 14:46:31 +00009849fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009850ac_ext=c
9851ac_cpp='$CPP $CPPFLAGS'
9852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854ac_compiler_gnu=$ac_cv_c_compiler_gnu
9855
9856CC="$lt_save_CC"
9857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
9860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
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
vapier7f19c022007-02-17 14:46:31 +00009867
a.rottmann9bc8b932004-02-29 15:18:31 +00009868
9869
drh8b727472009-01-19 18:18:40 +00009870 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009871
vapier7f19c022007-02-17 14:46:31 +00009872
9873
vapier7f19c022007-02-17 14:46:31 +00009874
mlcreech636a9952008-05-05 22:52:56 +00009875# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009876
9877
drh71eb93e2001-09-28 01:34:43 +00009878# Find a good install program. We prefer a C program (faster),
9879# so one script is as good as another. But avoid the broken or
9880# incompatible versions:
9881# SysV /etc/install, /usr/sbin/install
9882# SunOS /usr/etc/install
9883# IRIX /sbin/install
9884# AIX /bin/install
9885# AmigaOS /C/install, which installs bootblocks on floppy discs
9886# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9887# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9888# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009889# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009890# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009891# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009893$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009894if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009895if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009896 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009897else
a.rottmann84e63352003-03-24 09:42:16 +00009898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899for as_dir in $PATH
9900do
9901 IFS=$as_save_IFS
9902 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009903 # Account for people who put trailing slashes in PATH elements.
9904case $as_dir/ in #((
9905 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009906 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009907 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009908 /usr/ucb/* ) ;;
9909 *)
9910 # OSF1 and SCO ODT 3.0 have their own names for install.
9911 # Don't use installbsd from OSF since it installs stuff as root
9912 # by default.
9913 for ac_prog in ginstall scoinst install; do
9914 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009915 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009916 if test $ac_prog = install &&
9917 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9918 # AIX install. It has an incompatible calling convention.
9919 :
9920 elif test $ac_prog = install &&
9921 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9922 # program-specific install script used by HP pwplus--don't use.
9923 :
9924 else
drh8b727472009-01-19 18:18:40 +00009925 rm -rf conftest.one conftest.two conftest.dir
9926 echo one > conftest.one
9927 echo two > conftest.two
9928 mkdir conftest.dir
9929 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9930 test -s conftest.one && test -s conftest.two &&
9931 test -s conftest.dir/conftest.one &&
9932 test -s conftest.dir/conftest.two
9933 then
9934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9935 break 3
9936 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009937 fi
9938 fi
drh71eb93e2001-09-28 01:34:43 +00009939 done
a.rottmann84e63352003-03-24 09:42:16 +00009940 done
9941 ;;
9942esac
a.rottmann84e63352003-03-24 09:42:16 +00009943
drhf922ca42015-05-14 15:39:18 +00009944 done
drh8b727472009-01-19 18:18:40 +00009945IFS=$as_save_IFS
9946
9947rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009948
9949fi
9950 if test "${ac_cv_path_install+set}" = set; then
9951 INSTALL=$ac_cv_path_install
9952 else
drh8b727472009-01-19 18:18:40 +00009953 # As a last resort, use the slow shell script. Don't cache a
9954 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009955 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009956 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009957 INSTALL=$ac_install_sh
9958 fi
9959fi
drhf922ca42015-05-14 15:39:18 +00009960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009961$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009962
9963# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9964# It thinks the first close brace ends the variable substitution.
9965test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9966
9967test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9968
9969test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9970
a.rottmann84e63352003-03-24 09:42:16 +00009971
drh75897232000-05-29 14:26:00 +00009972#########
mlcreech636a9952008-05-05 22:52:56 +00009973# Enable large file support (if special flags are necessary)
9974#
drh8b727472009-01-19 18:18:40 +00009975# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009976if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009977 enableval=$enable_largefile;
9978fi
mlcreech636a9952008-05-05 22:52:56 +00009979
9980if test "$enable_largefile" != no; then
9981
drhf922ca42015-05-14 15:39:18 +00009982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009983$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009984if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009985 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009986else
mlcreech636a9952008-05-05 22:52:56 +00009987 ac_cv_sys_largefile_CC=no
9988 if test "$GCC" != yes; then
9989 ac_save_CC=$CC
9990 while :; do
drh8b727472009-01-19 18:18:40 +00009991 # IRIX 6.2 and later do not support large files by default,
9992 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009994/* end confdefs.h. */
9995#include <sys/types.h>
9996 /* Check that off_t can represent 2**63 - 1 correctly.
9997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9998 since some C++ compilers masquerading as C compilers
9999 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010000#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10002 && LARGE_OFF_T % 2147483647 == 1)
10003 ? 1 : -1];
10004int
10005main ()
10006{
10007
10008 ;
10009 return 0;
10010}
10011_ACEOF
drhf922ca42015-05-14 15:39:18 +000010012 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010013 break
mlcreech636a9952008-05-05 22:52:56 +000010014fi
drh8b727472009-01-19 18:18:40 +000010015rm -f core conftest.err conftest.$ac_objext
10016 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010017 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010018 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010019fi
drh8b727472009-01-19 18:18:40 +000010020rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010021 break
10022 done
10023 CC=$ac_save_CC
10024 rm -f conftest.$ac_ext
10025 fi
10026fi
drhf922ca42015-05-14 15:39:18 +000010027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010028$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010029 if test "$ac_cv_sys_largefile_CC" != no; then
10030 CC=$CC$ac_cv_sys_largefile_CC
10031 fi
10032
drhf922ca42015-05-14 15:39:18 +000010033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010034$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010035if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010036 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010037else
10038 while :; do
drhf922ca42015-05-14 15:39:18 +000010039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010040/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010041#include <sys/types.h>
10042 /* Check that off_t can represent 2**63 - 1 correctly.
10043 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10044 since some C++ compilers masquerading as C compilers
10045 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010046#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010047 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10048 && LARGE_OFF_T % 2147483647 == 1)
10049 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010050int
10051main ()
10052{
mlcreech636a9952008-05-05 22:52:56 +000010053
mlcreechb87057f2008-03-06 07:19:20 +000010054 ;
10055 return 0;
10056}
10057_ACEOF
drhf922ca42015-05-14 15:39:18 +000010058if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010059 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010060fi
drh8b727472009-01-19 18:18:40 +000010061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010063/* end confdefs.h. */
10064#define _FILE_OFFSET_BITS 64
10065#include <sys/types.h>
10066 /* Check that off_t can represent 2**63 - 1 correctly.
10067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10068 since some C++ compilers masquerading as C compilers
10069 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010070#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10072 && LARGE_OFF_T % 2147483647 == 1)
10073 ? 1 : -1];
10074int
10075main ()
10076{
10077
10078 ;
10079 return 0;
10080}
10081_ACEOF
drhf922ca42015-05-14 15:39:18 +000010082if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010083 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010084fi
drh8b727472009-01-19 18:18:40 +000010085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10086 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010087 break
10088done
10089fi
drhf922ca42015-05-14 15:39:18 +000010090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010091$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10092case $ac_cv_sys_file_offset_bits in #(
10093 no | unknown) ;;
10094 *)
mlcreech636a9952008-05-05 22:52:56 +000010095cat >>confdefs.h <<_ACEOF
10096#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10097_ACEOF
drh8b727472009-01-19 18:18:40 +000010098;;
10099esac
10100rm -rf conftest*
10101 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010103$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010104if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010105 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010106else
10107 while :; do
drhf922ca42015-05-14 15:39:18 +000010108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010109/* end confdefs.h. */
10110#include <sys/types.h>
10111 /* Check that off_t can represent 2**63 - 1 correctly.
10112 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10113 since some C++ compilers masquerading as C compilers
10114 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010115#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010116 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10117 && LARGE_OFF_T % 2147483647 == 1)
10118 ? 1 : -1];
10119int
10120main ()
10121{
10122
10123 ;
10124 return 0;
10125}
10126_ACEOF
drhf922ca42015-05-14 15:39:18 +000010127if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010128 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010129fi
drh8b727472009-01-19 18:18:40 +000010130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010132/* end confdefs.h. */
10133#define _LARGE_FILES 1
10134#include <sys/types.h>
10135 /* Check that off_t can represent 2**63 - 1 correctly.
10136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10137 since some C++ compilers masquerading as C compilers
10138 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010139#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10141 && LARGE_OFF_T % 2147483647 == 1)
10142 ? 1 : -1];
10143int
10144main ()
10145{
10146
10147 ;
10148 return 0;
10149}
10150_ACEOF
drhf922ca42015-05-14 15:39:18 +000010151if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010152 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010153fi
drh8b727472009-01-19 18:18:40 +000010154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010156 break
10157done
10158fi
drhf922ca42015-05-14 15:39:18 +000010159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010160$as_echo "$ac_cv_sys_large_files" >&6; }
10161case $ac_cv_sys_large_files in #(
10162 no | unknown) ;;
10163 *)
mlcreech636a9952008-05-05 22:52:56 +000010164cat >>confdefs.h <<_ACEOF
10165#define _LARGE_FILES $ac_cv_sys_large_files
10166_ACEOF
drh8b727472009-01-19 18:18:40 +000010167;;
10168esac
10169rm -rf conftest*
10170 fi
drhf922ca42015-05-14 15:39:18 +000010171
10172
mlcreech636a9952008-05-05 22:52:56 +000010173fi
10174
10175
10176#########
10177# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010178ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10179if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010180
10181cat >>confdefs.h <<_ACEOF
10182#define HAVE_INT8_T 1
10183_ACEOF
10184
10185
10186fi
drhf922ca42015-05-14 15:39:18 +000010187ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10188if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010189
10190cat >>confdefs.h <<_ACEOF
10191#define HAVE_INT16_T 1
10192_ACEOF
10193
10194
10195fi
drhf922ca42015-05-14 15:39:18 +000010196ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10197if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010198
10199cat >>confdefs.h <<_ACEOF
10200#define HAVE_INT32_T 1
10201_ACEOF
10202
10203
10204fi
drhf922ca42015-05-14 15:39:18 +000010205ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10206if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010207
10208cat >>confdefs.h <<_ACEOF
10209#define HAVE_INT64_T 1
10210_ACEOF
10211
10212
10213fi
drhf922ca42015-05-14 15:39:18 +000010214ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10215if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010216
10217cat >>confdefs.h <<_ACEOF
10218#define HAVE_INTPTR_T 1
10219_ACEOF
10220
10221
10222fi
drhf922ca42015-05-14 15:39:18 +000010223ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10224if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010225
10226cat >>confdefs.h <<_ACEOF
10227#define HAVE_UINT8_T 1
10228_ACEOF
10229
10230
10231fi
drhf922ca42015-05-14 15:39:18 +000010232ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10233if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010234
10235cat >>confdefs.h <<_ACEOF
10236#define HAVE_UINT16_T 1
10237_ACEOF
10238
10239
10240fi
drhf922ca42015-05-14 15:39:18 +000010241ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10242if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010243
10244cat >>confdefs.h <<_ACEOF
10245#define HAVE_UINT32_T 1
10246_ACEOF
10247
10248
10249fi
drhf922ca42015-05-14 15:39:18 +000010250ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10251if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010252
10253cat >>confdefs.h <<_ACEOF
10254#define HAVE_UINT64_T 1
10255_ACEOF
10256
10257
10258fi
drhf922ca42015-05-14 15:39:18 +000010259ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10260if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010261
10262cat >>confdefs.h <<_ACEOF
10263#define HAVE_UINTPTR_T 1
10264_ACEOF
10265
10266
10267fi
mlcreechb87057f2008-03-06 07:19:20 +000010268
10269
10270#########
10271# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010272for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010273do :
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010277 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010279_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010280
mlcreechb87057f2008-03-06 07:19:20 +000010281fi
10282
10283done
10284
10285
10286#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010287# Figure out whether or not we have these functions
10288#
drhe32a2562016-03-04 02:38:00 +000010289for 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 +000010290do :
10291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10292ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10293if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010294 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010296_ACEOF
10297
10298fi
10299done
10300
10301
mlcreechab1c47b2008-03-09 02:51:10 +000010302#########
mlcreechf3868112008-03-11 18:03:30 +000010303# By default, we use the amalgamation (this may be changed below...)
10304#
10305USE_AMALGAMATION=1
10306
10307#########
mlcreechab1c47b2008-03-09 02:51:10 +000010308# See whether we can run specific tclsh versions known to work well;
10309# if not, then we fall back to plain tclsh.
10310# TODO: try other versions before falling back?
10311#
drh0b11bcb2017-09-22 00:24:44 +000010312for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010313do
10314 # Extract the first word of "$ac_prog", so it can be a program name with args.
10315set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010317$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010318if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010319 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010320else
10321 if test -n "$TCLSH_CMD"; then
10322 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010331 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010333 break 2
10334 fi
10335done
drhf922ca42015-05-14 15:39:18 +000010336 done
drh8b727472009-01-19 18:18:40 +000010337IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010338
10339fi
10340fi
10341TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10342if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010344$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010345else
drhf922ca42015-05-14 15:39:18 +000010346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010347$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010348fi
10349
drh8b727472009-01-19 18:18:40 +000010350
mlcreechab1c47b2008-03-09 02:51:10 +000010351 test -n "$TCLSH_CMD" && break
10352done
mlcreechf3868112008-03-11 18:03:30 +000010353test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010354
mlcreechf3868112008-03-11 18:03:30 +000010355if test "$TCLSH_CMD" = "none"; then
10356 # If we can't find a local tclsh, then building the amalgamation will fail.
10357 # We act as though --disable-amalgamation has been used.
10358 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10359 USE_AMALGAMATION=0
10360 TCLSH_CMD="tclsh"
10361fi
mlcreechab1c47b2008-03-09 02:51:10 +000010362
10363
mlcreech5b0a9eb2008-03-09 01:38:09 +000010364
vapier6acb2cf2009-01-28 04:46:28 +000010365if test "x${TCLLIBDIR+set}" != "xset" ; then
10366 TCLLIBDIR='$(libdir)'
10367 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10368 TCLLIBDIR=$i
10369 break
10370 done
10371 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10372fi
10373
10374
mlcreech5b0a9eb2008-03-09 01:38:09 +000010375#########
drh75897232000-05-29 14:26:00 +000010376# Set up an appropriate program prefix
10377#
10378if test "$program_prefix" = "NONE"; then
10379 program_prefix=""
10380fi
10381
a.rottmann84e63352003-03-24 09:42:16 +000010382
drh4b2266a2004-11-27 15:52:16 +000010383VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010385$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010386
10387RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010388{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010389$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010390
drh26d0e2a2005-07-06 13:51:27 +000010391
drh75897232000-05-29 14:26:00 +000010392#########
drh75897232000-05-29 14:26:00 +000010393# Locate a compiler for the build machine. This compiler should
10394# generate command-line programs that run on the build machine.
10395#
vapier7f19c022007-02-17 14:46:31 +000010396if test x"$cross_compiling" = xno; then
10397 BUILD_CC=$CC
10398 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010399else
vapier7f19c022007-02-17 14:46:31 +000010400 if test "${BUILD_CC+set}" != set; then
10401 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010402do
10403 # Extract the first word of "$ac_prog", so it can be a program name with args.
10404set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010406$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010407if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010408 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010409else
vapier7f19c022007-02-17 14:46:31 +000010410 if test -n "$BUILD_CC"; then
10411 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010412else
a.rottmann84e63352003-03-24 09:42:16 +000010413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10414for as_dir in $PATH
10415do
10416 IFS=$as_save_IFS
10417 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010418 for ac_exec_ext in '' $ac_executable_extensions; do
10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010420 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010422 break 2
10423 fi
10424done
drhf922ca42015-05-14 15:39:18 +000010425 done
drh8b727472009-01-19 18:18:40 +000010426IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010427
drh71eb93e2001-09-28 01:34:43 +000010428fi
10429fi
vapier7f19c022007-02-17 14:46:31 +000010430BUILD_CC=$ac_cv_prog_BUILD_CC
10431if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010433$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010434else
drhf922ca42015-05-14 15:39:18 +000010435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010436$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010437fi
drh75897232000-05-29 14:26:00 +000010438
drh8b727472009-01-19 18:18:40 +000010439
vapier7f19c022007-02-17 14:46:31 +000010440 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010441done
drh75897232000-05-29 14:26:00 +000010442
vapier7f19c022007-02-17 14:46:31 +000010443 fi
10444 if test "${BUILD_CFLAGS+set}" != set; then
10445 BUILD_CFLAGS="-g"
10446 fi
drh71eb93e2001-09-28 01:34:43 +000010447fi
10448
a.rottmann84e63352003-03-24 09:42:16 +000010449
drh297ecf12001-04-05 15:57:13 +000010450##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010451# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010452#
drh8b727472009-01-19 18:18:40 +000010453# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010454if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010455 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010456fi
10457
drhf922ca42015-05-14 15:39:18 +000010458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010459$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010460if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010461 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010463$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010464else
drh5a3032b2007-09-03 16:12:09 +000010465 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010467$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010468fi
10469
a.rottmann964dbb12004-02-26 19:47:42 +000010470
drh5a3032b2007-09-03 16:12:09 +000010471if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10473$as_echo_n "checking for library containing pthread_create... " >&6; }
10474if ${ac_cv_search_pthread_create+:} false; then :
10475 $as_echo_n "(cached) " >&6
10476else
10477 ac_func_search_save_LIBS=$LIBS
10478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479/* end confdefs.h. */
10480
10481/* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
10484#ifdef __cplusplus
10485extern "C"
10486#endif
10487char pthread_create ();
10488int
10489main ()
10490{
10491return pthread_create ();
10492 ;
10493 return 0;
10494}
10495_ACEOF
10496for ac_lib in '' pthread; do
10497 if test -z "$ac_lib"; then
10498 ac_res="none required"
10499 else
10500 ac_res=-l$ac_lib
10501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10502 fi
10503 if ac_fn_c_try_link "$LINENO"; then :
10504 ac_cv_search_pthread_create=$ac_res
10505fi
10506rm -f core conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext
10508 if ${ac_cv_search_pthread_create+:} false; then :
10509 break
10510fi
10511done
10512if ${ac_cv_search_pthread_create+:} false; then :
10513
10514else
10515 ac_cv_search_pthread_create=no
10516fi
10517rm conftest.$ac_ext
10518LIBS=$ac_func_search_save_LIBS
10519fi
10520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10521$as_echo "$ac_cv_search_pthread_create" >&6; }
10522ac_res=$ac_cv_search_pthread_create
10523if test "$ac_res" != no; then :
10524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10525
10526fi
10527
drh13c808a2016-01-13 21:23:48 +000010528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10529$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10530if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010531 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010532else
mlcreechc658b0f2008-03-09 02:20:11 +000010533 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010535/* end confdefs.h. */
10536
drh8b727472009-01-19 18:18:40 +000010537/* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010540#ifdef __cplusplus
10541extern "C"
10542#endif
drh13c808a2016-01-13 21:23:48 +000010543char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010544int
10545main ()
10546{
drh13c808a2016-01-13 21:23:48 +000010547return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010548 ;
10549 return 0;
10550}
10551_ACEOF
drh8b727472009-01-19 18:18:40 +000010552for ac_lib in '' pthread; do
10553 if test -z "$ac_lib"; then
10554 ac_res="none required"
10555 else
10556 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010558 fi
drhf922ca42015-05-14 15:39:18 +000010559 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010560 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010561fi
drhf922ca42015-05-14 15:39:18 +000010562rm -f core conftest.err conftest.$ac_objext \
10563 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010564 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010565 break
drh866108f2008-05-13 00:57:21 +000010566fi
drh8b727472009-01-19 18:18:40 +000010567done
drh13c808a2016-01-13 21:23:48 +000010568if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010569
drh8b727472009-01-19 18:18:40 +000010570else
drh13c808a2016-01-13 21:23:48 +000010571 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010572fi
10573rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010574LIBS=$ac_func_search_save_LIBS
10575fi
drh13c808a2016-01-13 21:23:48 +000010576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10577$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10578ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010579if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010581
dougcurrie65623c72004-09-20 14:57:23 +000010582fi
10583
mlcreechc658b0f2008-03-09 02:20:11 +000010584fi
dougcurrie65623c72004-09-20 14:57:23 +000010585
xdong28f79f72003-09-23 00:35:21 +000010586##########
10587# Do we want to support release
10588#
drh8b727472009-01-19 18:18:40 +000010589# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010590if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010591 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010592else
10593 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010594fi
10595
drhf922ca42015-05-14 15:39:18 +000010596{ $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 +000010597$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010598if test "$enable_releasemode" = "no"; then
10599 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010601$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010602else
drh0b47d342007-11-27 14:50:06 +000010603 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010605$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010606fi
paulb0208cc2003-04-13 18:26:49 +000010607
a.rottmann964dbb12004-02-26 19:47:42 +000010608
paulb0208cc2003-04-13 18:26:49 +000010609##########
10610# Do we want temporary databases in memory
10611#
drh8b727472009-01-19 18:18:40 +000010612# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010613if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010614 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010615else
drh54414bb2005-10-10 00:05:50 +000010616 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010617fi
10618
drhf922ca42015-05-14 15:39:18 +000010619{ $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 +000010620$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010621case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010622 never )
paul2dc96f92003-04-20 11:46:34 +000010623 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010625$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010626 ;;
10627 no )
paul2dc96f92003-04-20 11:46:34 +000010628 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010630$as_echo "no" >&6; }
10631 ;;
10632 yes )
10633 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010635$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010636 ;;
10637 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010638 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010640$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010641 ;;
paulb0208cc2003-04-13 18:26:49 +000010642 * )
drh54414bb2005-10-10 00:05:50 +000010643 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010645$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010646 ;;
10647esac
10648
10649
10650
drh75897232000-05-29 14:26:00 +000010651###########
10652# Lots of things are different if we are compiling for Windows using
10653# the CYGWIN environment. So check for that special case and handle
10654# things accordingly.
10655#
drhf922ca42015-05-14 15:39:18 +000010656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010657$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010658if test "$config_BUILD_EXEEXT" = ".exe"; then
10659 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010662else
drhf922ca42015-05-14 15:39:18 +000010663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010664$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010665fi
10666if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010667
10668case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010669 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010670 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010671esac
drh75897232000-05-29 14:26:00 +000010672
drh75897232000-05-29 14:26:00 +000010673fi
10674if test "$CYGWIN" = "yes"; then
10675 BUILD_EXEEXT=.exe
10676else
dougcurrie6194a5f2003-12-19 20:09:51 +000010677 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010678fi
vapier7f19c022007-02-17 14:46:31 +000010679if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010680 TARGET_EXEEXT=$BUILD_EXEEXT
10681else
10682 TARGET_EXEEXT=$config_TARGET_EXEEXT
10683fi
10684if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010685 SQLITE_OS_UNIX=0
10686 SQLITE_OS_WIN=1
10687 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010688else
danielk197729bafea2008-06-26 10:41:19 +000010689 SQLITE_OS_UNIX=1
10690 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010691 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010692fi
drh75897232000-05-29 14:26:00 +000010693
a.rottmann84e63352003-03-24 09:42:16 +000010694
10695
10696
10697
10698
drh75897232000-05-29 14:26:00 +000010699##########
drh7b5717e2004-11-25 13:50:01 +000010700# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010701#
drh7b5717e2004-11-25 13:50:01 +000010702# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10703# macros in the in the tcl.m4 file of the standard TCL distribution.
10704# Those macros could not be used directly since we have to make some
10705# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010706#
drh8b727472009-01-19 18:18:40 +000010707# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010708if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010709 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010710else
drh7b5717e2004-11-25 13:50:01 +000010711 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010712fi
10713
drh7b5717e2004-11-25 13:50:01 +000010714if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010715
drh8b727472009-01-19 18:18:40 +000010716# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010717if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010718 withval=$with_tcl; with_tclconfig=${withval}
10719fi
10720
drhf922ca42015-05-14 15:39:18 +000010721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010722$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010723 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010724 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010725else
a.rottmann84e63352003-03-24 09:42:16 +000010726
drh7b5717e2004-11-25 13:50:01 +000010727 # First check to see if --with-tcl was specified.
10728 if test x"${with_tclconfig}" != x ; then
10729 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10730 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10731 else
drhf922ca42015-05-14 15:39:18 +000010732 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010733 fi
10734 fi
vapier6acb2cf2009-01-28 04:46:28 +000010735
10736 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010737 if test x"${ac_cv_c_tclconfig}" = x ; then
10738 if test x"$cross_compiling" = xno; then
10739 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10740 do
10741 if test -f "$i/tclConfig.sh" ; then
10742 ac_cv_c_tclconfig="$i"
10743 break
10744 fi
10745 done
10746 fi
vapier6acb2cf2009-01-28 04:46:28 +000010747 fi
10748
drhf960a642015-05-30 22:57:49 +000010749 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10750 # So try again after applying corrections.
10751 if test x"${ac_cv_c_tclconfig}" = x ; then
10752 if test x"$cross_compiling" = xno; then
10753 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10754 do
10755 if test -f "$i/tclConfig.sh" ; then
10756 ac_cv_c_tclconfig="$i"
10757 break
10758 fi
10759 done
10760 fi
10761 fi
10762
drh68314742016-05-23 00:10:58 +000010763 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10764 # in a strange place.
10765 if test x"${ac_cv_c_tclconfig}" = x ; then
10766 if test x"$cross_compiling" = xno; then
10767 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10768 do
10769 if test -f "$i/tclConfig.sh" ; then
10770 ac_cv_c_tclconfig="$i"
10771 break
10772 fi
10773 done
10774 fi
10775 fi
10776
drh7b5717e2004-11-25 13:50:01 +000010777 # then check for a private Tcl installation
10778 if test x"${ac_cv_c_tclconfig}" = x ; then
10779 for i in \
10780 ../tcl \
10781 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10782 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10783 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10784 ../../tcl \
10785 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10786 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10787 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10788 ../../../tcl \
10789 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10790 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10791 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10792 do
10793 if test -f "$i/unix/tclConfig.sh" ; then
10794 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10795 break
10796 fi
10797 done
10798 fi
10799
10800 # check in a few common install locations
10801 if test x"${ac_cv_c_tclconfig}" = x ; then
10802 for i in \
10803 `ls -d ${libdir} 2>/dev/null` \
10804 `ls -d /usr/local/lib 2>/dev/null` \
10805 `ls -d /usr/contrib/lib 2>/dev/null` \
10806 `ls -d /usr/lib 2>/dev/null`
10807 do
10808 if test -f "$i/tclConfig.sh" ; then
10809 ac_cv_c_tclconfig=`(cd $i; pwd)`
10810 break
10811 fi
10812 done
10813 fi
10814
10815 # check in a few other private locations
10816 if test x"${ac_cv_c_tclconfig}" = x ; then
10817 for i in \
10818 ${srcdir}/../tcl \
10819 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10820 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10821 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10822 do
10823 if test -f "$i/unix/tclConfig.sh" ; then
10824 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10825 break
10826 fi
10827 done
10828 fi
10829
drh75897232000-05-29 14:26:00 +000010830fi
10831
drh7b5717e2004-11-25 13:50:01 +000010832
10833 if test x"${ac_cv_c_tclconfig}" = x ; then
10834 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010836$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010838$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010840$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010841 else
10842 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010844$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010845
drhf922ca42015-05-14 15:39:18 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010847$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010848 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010850$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010851 . $TCL_BIN_DIR/tclConfig.sh
10852 else
drhf922ca42015-05-14 15:39:18 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010854$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010855 fi
drh7b5717e2004-11-25 13:50:01 +000010856
10857 #
10858 # If the TCL_BIN_DIR is the build directory (not the install directory),
10859 # then set the common variable name to the value of the build variables.
10860 # For example, the variable TCL_LIB_SPEC will be set to the value
10861 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10862 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10863 # installed and uninstalled version of Tcl.
10864 #
10865
mlcreechab1c47b2008-03-09 02:51:10 +000010866 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010867 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10868 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10869 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10870 fi
10871
10872 #
10873 # eval is required to do the TCL_DBGX substitution
10874 #
10875
10876 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10877 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10878 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10879
10880 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10881 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10882 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
drhd881ce82015-03-31 17:01:52 +000010896
drh7b5717e2004-11-25 13:50:01 +000010897 fi
drh75897232000-05-29 14:26:00 +000010898fi
drh7b5717e2004-11-25 13:50:01 +000010899if test "${use_tcl}" = "no" ; then
10900 HAVE_TCL=""
10901else
10902 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010903fi
drh75897232000-05-29 14:26:00 +000010904
a.rottmann84e63352003-03-24 09:42:16 +000010905
drh75897232000-05-29 14:26:00 +000010906##########
10907# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010908# that use "readline()" library.
10909#
vapier7f19c022007-02-17 14:46:31 +000010910TARGET_READLINE_LIBS=""
10911TARGET_READLINE_INC=""
10912TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010913TARGET_HAVE_EDITLINE=0
10914# Check whether --enable-editline was given.
10915if test "${enable_editline+set}" = set; then :
10916 enableval=$enable_editline; with_editline=$enableval
10917else
10918 with_editline=auto
10919fi
10920
drh8b727472009-01-19 18:18:40 +000010921# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010922if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010923 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010924else
vapier7f19c022007-02-17 14:46:31 +000010925 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010926fi
10927
vapier7f19c022007-02-17 14:46:31 +000010928
drhe44b8352015-10-30 14:25:57 +000010929if test x"$with_editline" != xno; then
10930 sLIBS=$LIBS
10931 LIBS=""
10932 TARGET_HAVE_EDITLINE=1
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10934$as_echo_n "checking for library containing readline... " >&6; }
10935if ${ac_cv_search_readline+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937else
10938 ac_func_search_save_LIBS=$LIBS
10939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h. */
10941
10942/* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945#ifdef __cplusplus
10946extern "C"
10947#endif
10948char readline ();
10949int
10950main ()
10951{
10952return readline ();
10953 ;
10954 return 0;
10955}
10956_ACEOF
10957for ac_lib in '' edit; do
10958 if test -z "$ac_lib"; then
10959 ac_res="none required"
10960 else
10961 ac_res=-l$ac_lib
10962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10963 fi
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_search_readline=$ac_res
10966fi
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext
10969 if ${ac_cv_search_readline+:} false; then :
10970 break
10971fi
10972done
10973if ${ac_cv_search_readline+:} false; then :
10974
10975else
10976 ac_cv_search_readline=no
10977fi
10978rm conftest.$ac_ext
10979LIBS=$ac_func_search_save_LIBS
10980fi
10981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10982$as_echo "$ac_cv_search_readline" >&6; }
10983ac_res=$ac_cv_search_readline
10984if test "$ac_res" != no; then :
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10986 with_readline=no
10987else
10988 TARGET_HAVE_EDITLINE=0
10989fi
10990
10991 TARGET_READLINE_LIBS=$LIBS
10992 LIBS=$sLIBS
10993fi
vapier7f19c022007-02-17 14:46:31 +000010994if test x"$with_readline" != xno; then
10995 found="yes"
10996
10997
drh8b727472009-01-19 18:18:40 +000010998# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010999if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011000 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011001else
11002 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011003fi
11004
vapier7f19c022007-02-17 14:46:31 +000011005 if test "x$with_readline_lib" = xauto; then
11006 save_LIBS="$LIBS"
11007 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011009$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011010if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011011 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011012else
drh71eb93e2001-09-28 01:34:43 +000011013 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011015/* end confdefs.h. */
11016
drh8b727472009-01-19 18:18:40 +000011017/* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011020#ifdef __cplusplus
11021extern "C"
11022#endif
paul38372372003-04-22 08:04:49 +000011023char tgetent ();
11024int
11025main ()
11026{
drh8b727472009-01-19 18:18:40 +000011027return tgetent ();
paul38372372003-04-22 08:04:49 +000011028 ;
11029 return 0;
11030}
11031_ACEOF
drh8b727472009-01-19 18:18:40 +000011032for ac_lib in '' readline ncurses curses termcap; do
11033 if test -z "$ac_lib"; then
11034 ac_res="none required"
11035 else
11036 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011038 fi
drhf922ca42015-05-14 15:39:18 +000011039 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011040 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011041fi
drhf922ca42015-05-14 15:39:18 +000011042rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext
11044 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011045 break
drh866108f2008-05-13 00:57:21 +000011046fi
drh8b727472009-01-19 18:18:40 +000011047done
drhf922ca42015-05-14 15:39:18 +000011048if ${ac_cv_search_tgetent+:} false; then :
11049
drh8b727472009-01-19 18:18:40 +000011050else
11051 ac_cv_search_tgetent=no
11052fi
11053rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011054LIBS=$ac_func_search_save_LIBS
11055fi
drhf922ca42015-05-14 15:39:18 +000011056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011057$as_echo "$ac_cv_search_tgetent" >&6; }
11058ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011059if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011061 term_LIBS="$LIBS"
11062else
11063 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011064fi
11065
drhf922ca42015-05-14 15:39:18 +000011066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011067$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011068if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011069 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011070else
11071 ac_check_lib_save_LIBS=$LIBS
11072LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011074/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011075
drh8b727472009-01-19 18:18:40 +000011076/* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011079#ifdef __cplusplus
11080extern "C"
11081#endif
drh71eb93e2001-09-28 01:34:43 +000011082char readline ();
11083int
11084main ()
11085{
drh8b727472009-01-19 18:18:40 +000011086return readline ();
drh71eb93e2001-09-28 01:34:43 +000011087 ;
11088 return 0;
11089}
11090_ACEOF
drhf922ca42015-05-14 15:39:18 +000011091if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011092 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011093else
drhf922ca42015-05-14 15:39:18 +000011094 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011095fi
drhf922ca42015-05-14 15:39:18 +000011096rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011098LIBS=$ac_check_lib_save_LIBS
11099fi
drhf922ca42015-05-14 15:39:18 +000011100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011101$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011102if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011103 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011104else
vapier7f19c022007-02-17 14:46:31 +000011105 found="no"
11106fi
drhf1878b42006-01-23 18:06:52 +000011107
vapier7f19c022007-02-17 14:46:31 +000011108 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11109 LIBS="$save_LIBS"
11110 else
11111 TARGET_READLINE_LIBS="$with_readline_lib"
11112 fi
11113
11114
drh8b727472009-01-19 18:18:40 +000011115# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011116if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011117 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011118else
vapier7f19c022007-02-17 14:46:31 +000011119 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011120fi
11121
vapier7f19c022007-02-17 14:46:31 +000011122 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011123 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11124if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011125 found="yes"
11126else
drh75897232000-05-29 14:26:00 +000011127
vapier7f19c022007-02-17 14:46:31 +000011128 found="no"
11129 if test "$cross_compiling" != yes; then
11130 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11131 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011132 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011134$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011135if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011136 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011137else
11138 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011139 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011140if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011141 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011142else
drh71eb93e2001-09-28 01:34:43 +000011143 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011144fi
11145fi
drhf922ca42015-05-14 15:39:18 +000011146eval ac_res=\$$as_ac_File
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011148$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011149if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011150 found=yes
drh75897232000-05-29 14:26:00 +000011151fi
11152
vapier7f19c022007-02-17 14:46:31 +000011153 if test "$found" = "yes"; then
11154 TARGET_READLINE_INC="-I$dir/$subdir"
11155 break
11156 fi
11157 done
11158 test "$found" = "yes" && break
11159 done
11160 fi
11161
11162fi
11163
11164
11165 else
11166 TARGET_READLINE_INC="$with_readline_inc"
11167 fi
11168
11169 if test x"$found" = xno; then
11170 TARGET_READLINE_LIBS=""
11171 TARGET_READLINE_INC=""
11172 TARGET_HAVE_READLINE=0
11173 else
11174 TARGET_HAVE_READLINE=1
11175 fi
11176fi
11177
11178
11179
11180
11181
drhe44b8352015-10-30 14:25:57 +000011182
vapier7f19c022007-02-17 14:46:31 +000011183##########
11184# Figure out what C libraries are required to compile programs
11185# that use "fdatasync()" function.
11186#
drhf922ca42015-05-14 15:39:18 +000011187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011188$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011189if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011190 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011191else
vapier7f19c022007-02-17 14:46:31 +000011192 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011194/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011195
drh8b727472009-01-19 18:18:40 +000011196/* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011199#ifdef __cplusplus
11200extern "C"
11201#endif
11202char fdatasync ();
11203int
11204main ()
11205{
drh8b727472009-01-19 18:18:40 +000011206return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011207 ;
11208 return 0;
11209}
11210_ACEOF
drh8b727472009-01-19 18:18:40 +000011211for ac_lib in '' rt; do
11212 if test -z "$ac_lib"; then
11213 ac_res="none required"
11214 else
11215 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011217 fi
drhf922ca42015-05-14 15:39:18 +000011218 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011219 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011220fi
drhf922ca42015-05-14 15:39:18 +000011221rm -f core conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext
11223 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011224 break
drh866108f2008-05-13 00:57:21 +000011225fi
drh8b727472009-01-19 18:18:40 +000011226done
drhf922ca42015-05-14 15:39:18 +000011227if ${ac_cv_search_fdatasync+:} false; then :
11228
drh8b727472009-01-19 18:18:40 +000011229else
11230 ac_cv_search_fdatasync=no
11231fi
11232rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011233LIBS=$ac_func_search_save_LIBS
11234fi
drhf922ca42015-05-14 15:39:18 +000011235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011236$as_echo "$ac_cv_search_fdatasync" >&6; }
11237ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011238if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011240
vapier7f19c022007-02-17 14:46:31 +000011241fi
11242
a.rottmann84e63352003-03-24 09:42:16 +000011243
drh75897232000-05-29 14:26:00 +000011244#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011245# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011246# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011247if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011248 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011249fi
11250
drh8fa622d2018-06-11 19:47:14 +000011251if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011252 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011253else
11254 TARGET_DEBUG="-DNDEBUG"
11255fi
11256
11257
11258#########
mlcreech94984912008-03-04 19:03:08 +000011259# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011260# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011261if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011262 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011263fi
11264
danb13d5c22020-07-07 19:24:34 +000011265if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011266 USE_AMALGAMATION=0
11267fi
11268
11269
11270#########
drh56c93112017-11-24 16:55:48 +000011271# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11272for ac_header in zlib.h
11273do :
11274 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11275if test "x$ac_cv_header_zlib_h" = xyes; then :
11276 cat >>confdefs.h <<_ACEOF
11277#define HAVE_ZLIB_H 1
11278_ACEOF
11279
11280fi
11281
11282done
11283
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11285$as_echo_n "checking for library containing deflate... " >&6; }
11286if ${ac_cv_search_deflate+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288else
11289 ac_func_search_save_LIBS=$LIBS
11290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291/* end confdefs.h. */
11292
11293/* Override any GCC internal prototype to avoid an error.
11294 Use char because int might match the return type of a GCC
11295 builtin and then its argument prototype would still apply. */
11296#ifdef __cplusplus
11297extern "C"
11298#endif
11299char deflate ();
11300int
11301main ()
11302{
11303return deflate ();
11304 ;
11305 return 0;
11306}
11307_ACEOF
11308for ac_lib in '' z; do
11309 if test -z "$ac_lib"; then
11310 ac_res="none required"
11311 else
11312 ac_res=-l$ac_lib
11313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11314 fi
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 ac_cv_search_deflate=$ac_res
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext
11320 if ${ac_cv_search_deflate+:} false; then :
11321 break
11322fi
11323done
11324if ${ac_cv_search_deflate+:} false; then :
11325
11326else
11327 ac_cv_search_deflate=no
11328fi
11329rm conftest.$ac_ext
11330LIBS=$ac_func_search_save_LIBS
11331fi
11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11333$as_echo "$ac_cv_search_deflate" >&6; }
11334ac_res=$ac_cv_search_deflate
11335if test "$ac_res" != no; then :
11336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11337 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11338else
11339 HAVE_ZLIB=""
11340fi
11341
11342
11343
11344#########
mlcreecha4edab02008-03-06 04:14:17 +000011345# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011346# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011347if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011348 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011349else
drh8fa622d2018-06-11 19:47:14 +000011350 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011351fi
11352
drh8fa622d2018-06-11 19:47:14 +000011353if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011354 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011356$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011357if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011358 $as_echo_n "(cached) " >&6
11359else
11360 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011362/* end confdefs.h. */
11363
11364/* Override any GCC internal prototype to avoid an error.
11365 Use char because int might match the return type of a GCC
11366 builtin and then its argument prototype would still apply. */
11367#ifdef __cplusplus
11368extern "C"
11369#endif
11370char dlopen ();
11371int
11372main ()
11373{
11374return dlopen ();
11375 ;
11376 return 0;
11377}
11378_ACEOF
11379for ac_lib in '' dl; do
11380 if test -z "$ac_lib"; then
11381 ac_res="none required"
11382 else
11383 ac_res=-l$ac_lib
11384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11385 fi
drhf922ca42015-05-14 15:39:18 +000011386 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011387 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011388fi
drhf922ca42015-05-14 15:39:18 +000011389rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext
11391 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011392 break
11393fi
11394done
drhf922ca42015-05-14 15:39:18 +000011395if ${ac_cv_search_dlopen+:} false; then :
11396
drhdbe4b882011-06-20 18:00:17 +000011397else
11398 ac_cv_search_dlopen=no
11399fi
11400rm conftest.$ac_ext
11401LIBS=$ac_func_search_save_LIBS
11402fi
drhf922ca42015-05-14 15:39:18 +000011403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011404$as_echo "$ac_cv_search_dlopen" >&6; }
11405ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011406if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11408
11409fi
11410
mlcreecha4edab02008-03-06 04:14:17 +000011411else
shanefbedede2008-07-22 05:05:01 +000011412 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011413fi
11414
drhc530b9c2016-07-25 11:27:22 +000011415##########
drhf6e904b2020-12-07 17:15:32 +000011416# Do we want to support math functions
11417#
11418# Check whether --enable-threadsafe was given.
11419if test "${enable_threadsafe+set}" = set; then :
11420 enableval=$enable_threadsafe;
11421fi
11422
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11424$as_echo_n "checking whether to support math functions... " >&6; }
11425if test "$enable_math" = "no"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
11428else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11430$as_echo "yes" >&6; }
11431 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11433$as_echo_n "checking for library containing ceil... " >&6; }
11434if ${ac_cv_search_ceil+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436else
11437 ac_func_search_save_LIBS=$LIBS
11438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h. */
11440
11441/* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444#ifdef __cplusplus
11445extern "C"
11446#endif
11447char ceil ();
11448int
11449main ()
11450{
11451return ceil ();
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456for ac_lib in '' m; do
11457 if test -z "$ac_lib"; then
11458 ac_res="none required"
11459 else
11460 ac_res=-l$ac_lib
11461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11462 fi
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 ac_cv_search_ceil=$ac_res
11465fi
11466rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext
11468 if ${ac_cv_search_ceil+:} false; then :
11469 break
11470fi
11471done
11472if ${ac_cv_search_ceil+:} false; then :
11473
11474else
11475 ac_cv_search_ceil=no
11476fi
11477rm conftest.$ac_ext
11478LIBS=$ac_func_search_save_LIBS
11479fi
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11481$as_echo "$ac_cv_search_ceil" >&6; }
11482ac_res=$ac_cv_search_ceil
11483if test "$ac_res" != no; then :
11484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11485
11486fi
11487
11488fi
11489
11490##########
drhc530b9c2016-07-25 11:27:22 +000011491# Do we want to support memsys3 and/or memsys5
11492#
drhc530b9c2016-07-25 11:27:22 +000011493# Check whether --enable-memsys5 was given.
11494if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011495 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011496fi
11497
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11499$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011500if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011501 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503$as_echo "yes" >&6; }
11504else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506$as_echo "no" >&6; }
11507fi
drh5d513ba2016-07-25 11:57:21 +000011508# Check whether --enable-memsys3 was given.
11509if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011510 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011511fi
11512
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11514$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11515if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011516 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518$as_echo "yes" >&6; }
11519else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11521$as_echo "no" >&6; }
11522fi
drhc530b9c2016-07-25 11:27:22 +000011523
drh29368ea2019-12-28 13:17:11 +000011524########
11525# The --enable-extensions argument is short-hand to enable
11526# multiple extensions.
11527# Check whether --enable-all was given.
11528if test "${enable_all+set}" = set; then :
11529 enableval=$enable_all;
11530fi
11531
11532
mlcreechaac7b932008-04-01 02:45:22 +000011533#########
drhce1d9f52015-10-09 12:48:33 +000011534# See whether we should enable Full Text Search extensions
11535# Check whether --enable-fts3 was given.
11536if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011537 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011538fi
11539
11540if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011541 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011542fi
11543# Check whether --enable-fts4 was given.
11544if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011545 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011546fi
11547
drh29368ea2019-12-28 13:17:11 +000011548if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011549 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11551$as_echo_n "checking for library containing log... " >&6; }
11552if ${ac_cv_search_log+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554else
11555 ac_func_search_save_LIBS=$LIBS
11556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h. */
11558
11559/* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562#ifdef __cplusplus
11563extern "C"
11564#endif
11565char log ();
11566int
11567main ()
11568{
11569return log ();
11570 ;
11571 return 0;
11572}
11573_ACEOF
11574for ac_lib in '' m; do
11575 if test -z "$ac_lib"; then
11576 ac_res="none required"
11577 else
11578 ac_res=-l$ac_lib
11579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11580 fi
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 ac_cv_search_log=$ac_res
11583fi
11584rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext
11586 if ${ac_cv_search_log+:} false; then :
11587 break
11588fi
11589done
11590if ${ac_cv_search_log+:} false; then :
11591
11592else
11593 ac_cv_search_log=no
11594fi
11595rm conftest.$ac_ext
11596LIBS=$ac_func_search_save_LIBS
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11599$as_echo "$ac_cv_search_log" >&6; }
11600ac_res=$ac_cv_search_log
11601if test "$ac_res" != no; then :
11602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11603
11604fi
11605
11606fi
11607# Check whether --enable-fts5 was given.
11608if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011609 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011610fi
11611
drh29368ea2019-12-28 13:17:11 +000011612if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011613 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11615$as_echo_n "checking for library containing log... " >&6; }
11616if ${ac_cv_search_log+:} false; then :
11617 $as_echo_n "(cached) " >&6
11618else
11619 ac_func_search_save_LIBS=$LIBS
11620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h. */
11622
11623/* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626#ifdef __cplusplus
11627extern "C"
11628#endif
11629char log ();
11630int
11631main ()
11632{
11633return log ();
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638for ac_lib in '' m; do
11639 if test -z "$ac_lib"; then
11640 ac_res="none required"
11641 else
11642 ac_res=-l$ac_lib
11643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11644 fi
11645 if ac_fn_c_try_link "$LINENO"; then :
11646 ac_cv_search_log=$ac_res
11647fi
11648rm -f core conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext
11650 if ${ac_cv_search_log+:} false; then :
11651 break
11652fi
11653done
11654if ${ac_cv_search_log+:} false; then :
11655
11656else
11657 ac_cv_search_log=no
11658fi
11659rm conftest.$ac_ext
11660LIBS=$ac_func_search_save_LIBS
11661fi
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11663$as_echo "$ac_cv_search_log" >&6; }
11664ac_res=$ac_cv_search_log
11665if test "$ac_res" != no; then :
11666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11667
11668fi
11669
11670fi
11671
11672#########
11673# See whether we should enable JSON1
11674# Check whether --enable-json1 was given.
11675if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011676 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011677fi
11678
drh29368ea2019-12-28 13:17:11 +000011679if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011680 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011681fi
11682
11683#########
drh83bebdd2017-08-28 17:00:12 +000011684# See whether we should enable the LIMIT clause on UPDATE and DELETE
11685# statements.
11686# Check whether --enable-update-limit was given.
11687if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011688 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011689fi
11690
drhb13c3a32020-06-15 14:38:57 +000011691if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011692 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11693fi
11694
11695#########
drh748b8fd2018-05-25 19:22:47 +000011696# See whether we should enable GEOPOLY
11697# Check whether --enable-geopoly was given.
11698if test "${enable_geopoly+set}" = set; then :
11699 enableval=$enable_geopoly; enable_geopoly=yes
11700else
11701 enable_geopoly=no
11702fi
11703
drh29368ea2019-12-28 13:17:11 +000011704if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011705 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11706 enable_rtree=yes
11707fi
11708
11709#########
drhce1d9f52015-10-09 12:48:33 +000011710# See whether we should enable RTREE
11711# Check whether --enable-rtree was given.
11712if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011713 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011714fi
11715
11716if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011717 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011718fi
11719
11720#########
drh5e18d402016-05-03 13:14:18 +000011721# See whether we should enable the SESSION extension
11722# Check whether --enable-session was given.
11723if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011724 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011725fi
11726
drh29368ea2019-12-28 13:17:11 +000011727if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011728 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11729 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011730fi
11731
11732#########
drh8c9ed052017-05-29 17:43:06 +000011733# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011734for option in $CFLAGS $CPPFLAGS
11735do
11736 case $option in
danielk197733a14782008-08-04 14:50:05 +000011737 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011738 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011739 esac
11740done
11741
11742
danielk197733a14782008-08-04 14:50:05 +000011743
shaneb1cd7302008-10-22 18:27:31 +000011744# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011745ac_temp_CFLAGS=""
11746for option in $CFLAGS
11747do
11748 case $option in
11749 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011750 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011751 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011752 esac
11753done
11754CFLAGS=$ac_temp_CFLAGS
11755
11756
shaneb1cd7302008-10-22 18:27:31 +000011757# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011758ac_temp_CPPFLAGS=""
11759for option in $CPPFLAGS
11760do
11761 case $option in
11762 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011763 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011764 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011765 esac
11766done
11767CPPFLAGS=$ac_temp_CPPFLAGS
11768
danielk197733a14782008-08-04 14:50:05 +000011769
drh8b727472009-01-19 18:18:40 +000011770# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011771ac_temp_BUILD_CFLAGS=""
11772for option in $BUILD_CFLAGS
11773do
11774 case $option in
11775 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011776 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011777 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011778 esac
11779done
11780BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11781
11782
11783#########
11784# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011785# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011786if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011787 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011788fi
11789
mlcreechaac7b932008-04-01 02:45:22 +000011790if test "${use_gcov}" = "yes" ; then
11791 USE_GCOV=1
11792else
11793 USE_GCOV=0
11794fi
11795
11796
danielk197733a14782008-08-04 14:50:05 +000011797
drh2dfbbca2000-07-28 14:32:48 +000011798#########
mlcreechb87057f2008-03-06 07:19:20 +000011799# Output the config header
drh8b727472009-01-19 18:18:40 +000011800ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011801
11802
11803#########
drh75897232000-05-29 14:26:00 +000011804# Generate the output files.
11805#
mlcreechdf59c7c2008-03-06 07:51:15 +000011806
drh8b727472009-01-19 18:18:40 +000011807ac_config_files="$ac_config_files Makefile sqlite3.pc"
11808
drh71eb93e2001-09-28 01:34:43 +000011809cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011810# This file is a shell script that caches the results of configure
11811# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011812# scripts and configure runs, see configure's option --config-cache.
11813# It is not useful on other systems. If it contains results you don't
11814# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011815#
drh71eb93e2001-09-28 01:34:43 +000011816# config.status only pays attention to the cache file if you give it
11817# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011818#
a.rottmann84e63352003-03-24 09:42:16 +000011819# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011820# loading this file, other *unset* `ac_cv_foo' will be assigned the
11821# following values.
11822
11823_ACEOF
11824
drh75897232000-05-29 14:26:00 +000011825# The following way of writing the cache mishandles newlines in values,
11826# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011827# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011828# Ultrix sh set writes to stderr and can't be redirected directly,
11829# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011830(
11831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11832 eval ac_val=\$$ac_var
11833 case $ac_val in #(
11834 *${as_nl}*)
11835 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011836 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011838 esac
11839 case $ac_var in #(
11840 _ | IFS | as_nl) ;; #(
11841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011842 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011843 esac ;;
11844 esac
11845 done
11846
drh71eb93e2001-09-28 01:34:43 +000011847 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011848 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11849 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011850 # `set' does not quote correctly, so add quotes: double-quote
11851 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011852 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011853 "s/'/'\\\\''/g;
11854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011855 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011856 *)
11857 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011859 ;;
drh8b727472009-01-19 18:18:40 +000011860 esac |
11861 sort
11862) |
drh71eb93e2001-09-28 01:34:43 +000011863 sed '
drh8b727472009-01-19 18:18:40 +000011864 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011865 t clear
drh8b727472009-01-19 18:18:40 +000011866 :clear
drh71eb93e2001-09-28 01:34:43 +000011867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11868 t end
drh8b727472009-01-19 18:18:40 +000011869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11870 :end' >>confcache
11871if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11872 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011873 if test "x$cache_file" != "x/dev/null"; then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011875$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011876 if test ! -f "$cache_file" || test -h "$cache_file"; then
11877 cat confcache >"$cache_file"
11878 else
11879 case $cache_file in #(
11880 */* | ?:*)
11881 mv -f confcache "$cache_file"$$ &&
11882 mv -f "$cache_file"$$ "$cache_file" ;; #(
11883 *)
11884 mv -f confcache "$cache_file" ;;
11885 esac
11886 fi
11887 fi
drh75897232000-05-29 14:26:00 +000011888 else
drhf922ca42015-05-14 15:39:18 +000011889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011890$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011891 fi
11892fi
11893rm -f confcache
11894
drh75897232000-05-29 14:26:00 +000011895test "x$prefix" = xNONE && prefix=$ac_default_prefix
11896# Let make expand exec_prefix.
11897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11898
mlcreechb87057f2008-03-06 07:19:20 +000011899DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011900
11901ac_libobjs=
11902ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011903U=
a.rottmann84e63352003-03-24 09:42:16 +000011904for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11905 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11909 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011912done
11913LIBOBJS=$ac_libobjs
11914
11915LTLIBOBJS=$ac_ltlibobjs
11916
11917
11918
drhf922ca42015-05-14 15:39:18 +000011919: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011920ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011921ac_clean_files_save=$ac_clean_files
11922ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011923{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011924$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011925as_write_fail=0
11926cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011927#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011928# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011929# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011930# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011931# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011932
drh71eb93e2001-09-28 01:34:43 +000011933debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011934ac_cs_recheck=false
11935ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011936
drhf922ca42015-05-14 15:39:18 +000011937SHELL=\${CONFIG_SHELL-$SHELL}
11938export SHELL
11939_ASEOF
11940cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11941## -------------------- ##
11942## M4sh Initialization. ##
11943## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011944
drh8b727472009-01-19 18:18:40 +000011945# Be more Bourne compatible
11946DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011947if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011948 emulate sh
11949 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011950 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011951 # is contrary to our usage. Disable this feature.
11952 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011953 setopt NO_GLOB_SUBST
11954else
drhf922ca42015-05-14 15:39:18 +000011955 case `(set -o) 2>/dev/null` in #(
11956 *posix*) :
11957 set -o posix ;; #(
11958 *) :
11959 ;;
drh8b727472009-01-19 18:18:40 +000011960esac
a.rottmann84e63352003-03-24 09:42:16 +000011961fi
drh8b727472009-01-19 18:18:40 +000011962
11963
drh8b727472009-01-19 18:18:40 +000011964as_nl='
11965'
11966export as_nl
11967# Printing a long string crashes Solaris 7 /usr/bin/printf.
11968as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11969as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11970as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011971# Prefer a ksh shell builtin over an external printf program on Solaris,
11972# but without wasting forks for bash or zsh.
11973if test -z "$BASH_VERSION$ZSH_VERSION" \
11974 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11975 as_echo='print -r --'
11976 as_echo_n='print -rn --'
11977elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011978 as_echo='printf %s\n'
11979 as_echo_n='printf %s'
11980else
11981 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11982 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11983 as_echo_n='/usr/ucb/echo -n'
11984 else
11985 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11986 as_echo_n_body='eval
11987 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011988 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011989 *"$as_nl"*)
11990 expr "X$arg" : "X\\(.*\\)$as_nl";
11991 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11992 esac;
11993 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11994 '
11995 export as_echo_n_body
11996 as_echo_n='sh -c $as_echo_n_body as_echo'
11997 fi
11998 export as_echo_body
11999 as_echo='sh -c $as_echo_body as_echo'
12000fi
12001
12002# The user is always right.
12003if test "${PATH_SEPARATOR+set}" != set; then
12004 PATH_SEPARATOR=:
12005 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12006 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12007 PATH_SEPARATOR=';'
12008 }
12009fi
a.rottmann84e63352003-03-24 09:42:16 +000012010
mlcreech94984912008-03-04 19:03:08 +000012011
drh8b727472009-01-19 18:18:40 +000012012# IFS
12013# We need space, tab and new line, in precisely that order. Quoting is
12014# there to prevent editors from complaining about space-tab.
12015# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12016# splitting by setting IFS to empty value.)
12017IFS=" "" $as_nl"
12018
12019# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000012020as_myself=
12021case $0 in #((
drh8b727472009-01-19 18:18:40 +000012022 *[\\/]* ) as_myself=$0 ;;
12023 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000012028 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12029 done
drh8b727472009-01-19 18:18:40 +000012030IFS=$as_save_IFS
12031
12032 ;;
12033esac
12034# We did not find ourselves, most probably we were run as `sh COMMAND'
12035# in which case we are not to be found in the path.
12036if test "x$as_myself" = x; then
12037 as_myself=$0
12038fi
12039if test ! -f "$as_myself"; then
12040 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000012041 exit 1
drh8b727472009-01-19 18:18:40 +000012042fi
12043
drhf922ca42015-05-14 15:39:18 +000012044# Unset variables that we do not need and which cause bugs (e.g. in
12045# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12046# suppresses any "Segmentation fault" message there. '((' could
12047# trigger a bug in pdksh 5.2.14.
12048for as_var in BASH_ENV ENV MAIL MAILPATH
12049do eval test x\${$as_var+set} = xset \
12050 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000012051done
mlcreech94984912008-03-04 19:03:08 +000012052PS1='$ '
12053PS2='> '
12054PS4='+ '
12055
12056# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000012057LC_ALL=C
12058export LC_ALL
12059LANGUAGE=C
12060export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000012061
drhf922ca42015-05-14 15:39:18 +000012062# CDPATH.
12063(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12064
12065
12066# as_fn_error STATUS ERROR [LINENO LOG_FD]
12067# ----------------------------------------
12068# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12069# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12070# script with STATUS, using 1 if that was 0.
12071as_fn_error ()
12072{
12073 as_status=$1; test $as_status -eq 0 && as_status=1
12074 if test "$4"; then
12075 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12076 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12077 fi
12078 $as_echo "$as_me: error: $2" >&2
12079 as_fn_exit $as_status
12080} # as_fn_error
12081
12082
12083# as_fn_set_status STATUS
12084# -----------------------
12085# Set $? to STATUS, without forking.
12086as_fn_set_status ()
12087{
12088 return $1
12089} # as_fn_set_status
12090
12091# as_fn_exit STATUS
12092# -----------------
12093# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12094as_fn_exit ()
12095{
12096 set +e
12097 as_fn_set_status $1
12098 exit $1
12099} # as_fn_exit
12100
12101# as_fn_unset VAR
12102# ---------------
12103# Portably unset VAR.
12104as_fn_unset ()
12105{
12106 { eval $1=; unset $1;}
12107}
12108as_unset=as_fn_unset
12109# as_fn_append VAR VALUE
12110# ----------------------
12111# Append the text in VALUE to the end of the definition contained in VAR. Take
12112# advantage of any shell optimizations that allow amortized linear growth over
12113# repeated appends, instead of the typical quadratic growth present in naive
12114# implementations.
12115if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12116 eval 'as_fn_append ()
12117 {
12118 eval $1+=\$2
12119 }'
12120else
12121 as_fn_append ()
12122 {
12123 eval $1=\$$1\$2
12124 }
12125fi # as_fn_append
12126
12127# as_fn_arith ARG...
12128# ------------------
12129# Perform arithmetic evaluation on the ARGs, and store the result in the
12130# global $as_val. Take advantage of shells that can avoid forks. The arguments
12131# must be portable across $(()) and expr.
12132if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12133 eval 'as_fn_arith ()
12134 {
12135 as_val=$(( $* ))
12136 }'
12137else
12138 as_fn_arith ()
12139 {
12140 as_val=`expr "$@" || test $? -eq 1`
12141 }
12142fi # as_fn_arith
12143
12144
drh8b727472009-01-19 18:18:40 +000012145if expr a : '\(a\)' >/dev/null 2>&1 &&
12146 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012147 as_expr=expr
12148else
12149 as_expr=false
12150fi
12151
drh8b727472009-01-19 18:18:40 +000012152if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012153 as_basename=basename
12154else
12155 as_basename=false
12156fi
12157
drhf922ca42015-05-14 15:39:18 +000012158if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12159 as_dirname=dirname
12160else
12161 as_dirname=false
12162fi
mlcreech94984912008-03-04 19:03:08 +000012163
drh8b727472009-01-19 18:18:40 +000012164as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012165$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12166 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012167 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12168$as_echo X/"$0" |
12169 sed '/^.*\/\([^/][^/]*\)\/*$/{
12170 s//\1/
12171 q
12172 }
12173 /^X\/\(\/\/\)$/{
12174 s//\1/
12175 q
12176 }
12177 /^X\/\(\/\).*/{
12178 s//\1/
12179 q
12180 }
12181 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012182
drhf922ca42015-05-14 15:39:18 +000012183# Avoid depending upon Character Ranges.
12184as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12185as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12186as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12187as_cr_digits='0123456789'
12188as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012189
drh8b727472009-01-19 18:18:40 +000012190ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012191case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012192-n*)
drhf922ca42015-05-14 15:39:18 +000012193 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012194 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012195 xy) ECHO_C='\c';;
12196 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12197 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012198 esac;;
12199*)
12200 ECHO_N='-n';;
12201esac
drh71eb93e2001-09-28 01:34:43 +000012202
12203rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012204if test -d conf$$.dir; then
12205 rm -f conf$$.dir/conf$$.file
12206else
12207 rm -f conf$$.dir
12208 mkdir conf$$.dir 2>/dev/null
12209fi
12210if (echo >conf$$.file) 2>/dev/null; then
12211 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012212 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012213 # ... but there are two gotchas:
12214 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12215 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012216 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012217 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012218 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012219 elif ln conf$$.file conf$$ 2>/dev/null; then
12220 as_ln_s=ln
12221 else
drhf922ca42015-05-14 15:39:18 +000012222 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012223 fi
drh71eb93e2001-09-28 01:34:43 +000012224else
drhf922ca42015-05-14 15:39:18 +000012225 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012226fi
drh8b727472009-01-19 18:18:40 +000012227rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12228rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012229
drhf922ca42015-05-14 15:39:18 +000012230
12231# as_fn_mkdir_p
12232# -------------
12233# Create "$as_dir" as a directory, including parents if necessary.
12234as_fn_mkdir_p ()
12235{
12236
12237 case $as_dir in #(
12238 -*) as_dir=./$as_dir;;
12239 esac
12240 test -d "$as_dir" || eval $as_mkdir_p || {
12241 as_dirs=
12242 while :; do
12243 case $as_dir in #(
12244 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12245 *) as_qdir=$as_dir;;
12246 esac
12247 as_dirs="'$as_qdir' $as_dirs"
12248 as_dir=`$as_dirname -- "$as_dir" ||
12249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12250 X"$as_dir" : 'X\(//\)[^/]' \| \
12251 X"$as_dir" : 'X\(//\)$' \| \
12252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12253$as_echo X"$as_dir" |
12254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12255 s//\1/
12256 q
12257 }
12258 /^X\(\/\/\)[^/].*/{
12259 s//\1/
12260 q
12261 }
12262 /^X\(\/\/\)$/{
12263 s//\1/
12264 q
12265 }
12266 /^X\(\/\).*/{
12267 s//\1/
12268 q
12269 }
12270 s/.*/./; q'`
12271 test -d "$as_dir" && break
12272 done
12273 test -z "$as_dirs" || eval "mkdir $as_dirs"
12274 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12275
12276
12277} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012278if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012279 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012280else
a.rottmann964dbb12004-02-26 19:47:42 +000012281 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012282 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012283fi
12284
drhf922ca42015-05-14 15:39:18 +000012285
12286# as_fn_executable_p FILE
12287# -----------------------
12288# Test if FILE is an executable regular file.
12289as_fn_executable_p ()
12290{
12291 test -f "$1" && test -x "$1"
12292} # as_fn_executable_p
12293as_test_x='test -x'
12294as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012295
12296# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012297as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012298
12299# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012300as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012301
drh71eb93e2001-09-28 01:34:43 +000012302
drh71eb93e2001-09-28 01:34:43 +000012303exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012304## ----------------------------------- ##
12305## Main body of $CONFIG_STATUS script. ##
12306## ----------------------------------- ##
12307_ASEOF
12308test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012309
drhf922ca42015-05-14 15:39:18 +000012310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12311# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012312# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012313# values after options handling.
12314ac_log="
drh636f5052020-12-02 00:22:09 +000012315This file was extended by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +000012316generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012317
12318 CONFIG_FILES = $CONFIG_FILES
12319 CONFIG_HEADERS = $CONFIG_HEADERS
12320 CONFIG_LINKS = $CONFIG_LINKS
12321 CONFIG_COMMANDS = $CONFIG_COMMANDS
12322 $ $0 $@
12323
drh8b727472009-01-19 18:18:40 +000012324on `(hostname || uname -n) 2>/dev/null | sed 1q`
12325"
12326
drh71eb93e2001-09-28 01:34:43 +000012327_ACEOF
12328
drhf922ca42015-05-14 15:39:18 +000012329case $ac_config_files in *"
12330"*) set x $ac_config_files; shift; ac_config_files=$*;;
12331esac
12332
12333case $ac_config_headers in *"
12334"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12335esac
12336
12337
drh8b727472009-01-19 18:18:40 +000012338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012339# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012340config_files="$ac_config_files"
12341config_headers="$ac_config_headers"
12342config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012343
drh8b727472009-01-19 18:18:40 +000012344_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012345
drh8b727472009-01-19 18:18:40 +000012346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012347ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012348\`$as_me' instantiates files and other configuration actions
12349from templates according to the current configuration. Unless the files
12350and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012351
drhf922ca42015-05-14 15:39:18 +000012352Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012353
12354 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012355 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012356 --config print configuration, then exit
12357 -q, --quiet, --silent
12358 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012359 -d, --debug don't remove temporary files
12360 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012361 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012362 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012363 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012364 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012365
12366Configuration files:
12367$config_files
12368
mlcreechb87057f2008-03-06 07:19:20 +000012369Configuration headers:
12370$config_headers
12371
mlcreech636a9952008-05-05 22:52:56 +000012372Configuration commands:
12373$config_commands
12374
drhf922ca42015-05-14 15:39:18 +000012375Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012376
mlcreech94984912008-03-04 19:03:08 +000012377_ACEOF
drh8b727472009-01-19 18:18:40 +000012378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012379ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012380ac_cs_version="\\
drh636f5052020-12-02 00:22:09 +000012381sqlite config.status 3.35.0
drhf922ca42015-05-14 15:39:18 +000012382configured by $0, generated by GNU Autoconf 2.69,
12383 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012384
drhf922ca42015-05-14 15:39:18 +000012385Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012386This config.status script is free software; the Free Software Foundation
12387gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012388
12389ac_pwd='$ac_pwd'
12390srcdir='$srcdir'
12391INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012392test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012393_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012394
drh8b727472009-01-19 18:18:40 +000012395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12396# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012397ac_need_defaults=:
12398while test $# != 0
12399do
12400 case $1 in
drhf922ca42015-05-14 15:39:18 +000012401 --*=?*)
drh8b727472009-01-19 18:18:40 +000012402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012404 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012405 ;;
drhf922ca42015-05-14 15:39:18 +000012406 --*=)
12407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12408 ac_optarg=
12409 ac_shift=:
12410 ;;
drh8b727472009-01-19 18:18:40 +000012411 *)
a.rottmann84e63352003-03-24 09:42:16 +000012412 ac_option=$1
12413 ac_optarg=$2
12414 ac_shift=shift
12415 ;;
drh75897232000-05-29 14:26:00 +000012416 esac
12417
a.rottmann84e63352003-03-24 09:42:16 +000012418 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012419 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012421 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12423 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012424 --config | --confi | --conf | --con | --co | --c )
12425 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012426 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012427 debug=: ;;
12428 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012429 $ac_shift
drh8b727472009-01-19 18:18:40 +000012430 case $ac_optarg in
12431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012432 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012433 esac
drhf922ca42015-05-14 15:39:18 +000012434 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012435 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012436 --header | --heade | --head | --hea )
12437 $ac_shift
drh8b727472009-01-19 18:18:40 +000012438 case $ac_optarg in
12439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12440 esac
drhf922ca42015-05-14 15:39:18 +000012441 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012442 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012443 --he | --h)
12444 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012445 as_fn_error $? "ambiguous option: \`$1'
12446Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012447 --help | --hel | -h )
12448 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012449 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12450 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12451 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012452
drh71eb93e2001-09-28 01:34:43 +000012453 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012454 -*) as_fn_error $? "unrecognized option: \`$1'
12455Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012456
drhf922ca42015-05-14 15:39:18 +000012457 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012458 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012459
12460 esac
12461 shift
12462done
12463
a.rottmann84e63352003-03-24 09:42:16 +000012464ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012465
a.rottmann84e63352003-03-24 09:42:16 +000012466if $ac_cs_silent; then
12467 exec 6>/dev/null
12468 ac_configure_extra_args="$ac_configure_extra_args --silent"
12469fi
drh71eb93e2001-09-28 01:34:43 +000012470
12471_ACEOF
drh8b727472009-01-19 18:18:40 +000012472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012473if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012474 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012475 shift
12476 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12477 CONFIG_SHELL='$SHELL'
12478 export CONFIG_SHELL
12479 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012480fi
drh71eb93e2001-09-28 01:34:43 +000012481
a.rottmann84e63352003-03-24 09:42:16 +000012482_ACEOF
drh8b727472009-01-19 18:18:40 +000012483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12484exec 5>>config.log
12485{
12486 echo
12487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12488## Running $as_me. ##
12489_ASBOX
12490 $as_echo "$ac_log"
12491} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012492
drh8b727472009-01-19 18:18:40 +000012493_ACEOF
12494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012495#
drh8b727472009-01-19 18:18:40 +000012496# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012497#
12498
12499
12500# The HP-UX ksh and POSIX shell print the target directory to stdout
12501# if CDPATH is set.
12502(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12503
12504sed_quote_subst='$sed_quote_subst'
12505double_quote_subst='$double_quote_subst'
12506delay_variable_subst='$delay_variable_subst'
12507macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12508macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12509enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12510enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12511pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12512enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12513host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12514host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12515host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12516build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12517build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12518build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12519SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12520Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12521GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12522EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12523FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12524LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12525NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12526LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12527max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12528ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12529exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12530lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12531lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12532lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12533reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12534reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012535OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012536deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12537file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12538AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12539AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12540STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12541RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12542old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12543old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12544old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12546CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12547compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12548GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12549lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12550lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12551lt_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"`'
12552lt_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"`'
12553objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12554SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12555ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12556MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12557lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12558lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12559lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12560lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12561lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12562need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12563DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12564NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12565LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12566OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12567OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12568libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12569shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12570extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12571archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12572enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12573export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12574whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12575compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12576old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12577old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12578archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12579archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12580module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12581module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12582with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12583allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12584no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12585hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12586hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12587hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12588hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12589hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12590hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12591hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12592hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12593inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12594link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12595fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12596always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12597export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12598exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12599include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12600prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12601file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12602variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12603need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12604need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12605version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12606runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12607shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12608shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12609libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12610library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12611soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12612postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12613postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12614finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12615finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12616hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12617sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12618sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12619hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12620enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12621enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12622enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12623old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12624striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12625
12626LTCC='$LTCC'
12627LTCFLAGS='$LTCFLAGS'
12628compiler='$compiler_DEFAULT'
12629
12630# Quote evaled strings.
12631for var in SED \
12632GREP \
12633EGREP \
12634FGREP \
12635LD \
12636NM \
12637LN_S \
12638lt_SP2NL \
12639lt_NL2SP \
12640reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012641OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012642deplibs_check_method \
12643file_magic_cmd \
12644AR \
12645AR_FLAGS \
12646STRIP \
12647RANLIB \
12648CC \
12649CFLAGS \
12650compiler \
12651lt_cv_sys_global_symbol_pipe \
12652lt_cv_sys_global_symbol_to_cdecl \
12653lt_cv_sys_global_symbol_to_c_name_address \
12654lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12655SHELL \
12656ECHO \
12657lt_prog_compiler_no_builtin_flag \
12658lt_prog_compiler_wl \
12659lt_prog_compiler_pic \
12660lt_prog_compiler_static \
12661lt_cv_prog_compiler_c_o \
12662need_locks \
12663DSYMUTIL \
12664NMEDIT \
12665LIPO \
12666OTOOL \
12667OTOOL64 \
12668shrext_cmds \
12669export_dynamic_flag_spec \
12670whole_archive_flag_spec \
12671compiler_needs_object \
12672with_gnu_ld \
12673allow_undefined_flag \
12674no_undefined_flag \
12675hardcode_libdir_flag_spec \
12676hardcode_libdir_flag_spec_ld \
12677hardcode_libdir_separator \
12678fix_srcfile_path \
12679exclude_expsyms \
12680include_expsyms \
12681file_list_spec \
12682variables_saved_for_relink \
12683libname_spec \
12684library_names_spec \
12685soname_spec \
12686finish_eval \
12687old_striplib \
12688striplib; do
12689 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12690 *[\\\\\\\`\\"\\\$]*)
12691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12692 ;;
12693 *)
12694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12695 ;;
12696 esac
12697done
12698
12699# Double-quote double-evaled strings.
12700for var in reload_cmds \
12701old_postinstall_cmds \
12702old_postuninstall_cmds \
12703old_archive_cmds \
12704extract_expsyms_cmds \
12705old_archive_from_new_cmds \
12706old_archive_from_expsyms_cmds \
12707archive_cmds \
12708archive_expsym_cmds \
12709module_cmds \
12710module_expsym_cmds \
12711export_symbols_cmds \
12712prelink_cmds \
12713postinstall_cmds \
12714postuninstall_cmds \
12715finish_cmds \
12716sys_lib_search_path_spec \
12717sys_lib_dlsearch_path_spec; do
12718 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12719 *[\\\\\\\`\\"\\\$]*)
12720 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12721 ;;
12722 *)
12723 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12724 ;;
12725 esac
12726done
12727
12728# Fix-up fallback echo if it was mangled by the above quoting rules.
12729case \$lt_ECHO in
12730*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12731 ;;
12732esac
12733
12734ac_aux_dir='$ac_aux_dir'
12735xsi_shell='$xsi_shell'
12736lt_shell_append='$lt_shell_append'
12737
12738# See if we are running on zsh, and set the options which allow our
12739# commands through without removal of \ escapes INIT.
12740if test -n "\${ZSH_VERSION+set}" ; then
12741 setopt NO_GLOB_SUBST
12742fi
12743
12744
12745 PACKAGE='$PACKAGE'
12746 VERSION='$VERSION'
12747 TIMESTAMP='$TIMESTAMP'
12748 RM='$RM'
12749 ofile='$ofile'
12750
12751
12752
12753
mlcreech94984912008-03-04 19:03:08 +000012754_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012755
drh8b727472009-01-19 18:18:40 +000012756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012757
drh8b727472009-01-19 18:18:40 +000012758# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012759for ac_config_target in $ac_config_targets
12760do
drh8b727472009-01-19 18:18:40 +000012761 case $ac_config_target in
12762 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12763 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12764 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12765 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12766
drhf922ca42015-05-14 15:39:18 +000012767 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012768 esac
12769done
12770
drh8b727472009-01-19 18:18:40 +000012771
drh71eb93e2001-09-28 01:34:43 +000012772# If the user did not use the arguments to specify the items to instantiate,
12773# then the envvar interface is used. Set only those that are not.
12774# We use the long form for the default assignment because of an extremely
12775# bizarre bug on SunOS 4.1.3.
12776if $ac_need_defaults; then
12777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012780fi
12781
a.rottmann84e63352003-03-24 09:42:16 +000012782# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012783# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012784# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012785# Hook for its removal unless debugging.
12786# Note that there is a small window in which the directory will not be cleaned:
12787# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012788$debug ||
12789{
drhf922ca42015-05-14 15:39:18 +000012790 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012791 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012792 : "${ac_tmp:=$tmp}"
12793 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012794' 0
drhf922ca42015-05-14 15:39:18 +000012795 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012796}
drh71eb93e2001-09-28 01:34:43 +000012797# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012798
drh71eb93e2001-09-28 01:34:43 +000012799{
drh8b727472009-01-19 18:18:40 +000012800 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012801 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012802} ||
12803{
drh8b727472009-01-19 18:18:40 +000012804 tmp=./conf$$-$RANDOM
12805 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012806} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12807ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012808
drh8b727472009-01-19 18:18:40 +000012809# Set up the scripts for CONFIG_FILES section.
12810# No need to generate them if there are no CONFIG_FILES.
12811# This happens for instance with `./config.status config.h'.
12812if test -n "$CONFIG_FILES"; then
12813
12814
drhf922ca42015-05-14 15:39:18 +000012815ac_cr=`echo X | tr X '\015'`
12816# On cygwin, bash can eat \r inside `` if the user requested igncr.
12817# But we know of no other shell where ac_cr would be empty at this
12818# point, so we can use a bashism as a fallback.
12819if test "x$ac_cr" = x; then
12820 eval ac_cr=\$\'\\r\'
12821fi
drh8b727472009-01-19 18:18:40 +000012822ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12823if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012824 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012825else
12826 ac_cs_awk_cr=$ac_cr
12827fi
12828
drhf922ca42015-05-14 15:39:18 +000012829echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012830_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012831
mlcreech94984912008-03-04 19:03:08 +000012832
drh8b727472009-01-19 18:18:40 +000012833{
12834 echo "cat >conf$$subs.awk <<_ACEOF" &&
12835 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12836 echo "_ACEOF"
12837} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12839ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012840ac_delim='%!_!# '
12841for ac_last_try in false false false false false :; do
12842 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012844
drhf922ca42015-05-14 15:39:18 +000012845 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12846 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012847 break
12848 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012849 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012850 else
12851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012852 fi
drh8b727472009-01-19 18:18:40 +000012853done
12854rm -f conf$$subs.sh
12855
12856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012857cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012858_ACEOF
12859sed -n '
12860h
12861s/^/S["/; s/!.*/"]=/
12862p
12863g
12864s/^[^!]*!//
12865:repl
12866t repl
12867s/'"$ac_delim"'$//
12868t delim
12869:nl
12870h
drhf922ca42015-05-14 15:39:18 +000012871s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012872t more1
12873s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12874p
12875n
12876b repl
12877:more1
12878s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879p
12880g
12881s/.\{148\}//
12882t nl
12883:delim
12884h
drhf922ca42015-05-14 15:39:18 +000012885s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012886t more2
12887s/["\\]/\\&/g; s/^/"/; s/$/"/
12888p
12889b
12890:more2
12891s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12892p
12893g
12894s/.\{148\}//
12895t delim
12896' <conf$$subs.awk | sed '
12897/^[^""]/{
12898 N
12899 s/\n//
12900}
12901' >>$CONFIG_STATUS || ac_write_fail=1
12902rm -f conf$$subs.awk
12903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12904_ACAWK
drhf922ca42015-05-14 15:39:18 +000012905cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012906 for (key in S) S_is_set[key] = 1
12907 FS = ""
12908
12909}
12910{
12911 line = $ 0
12912 nfields = split(line, field, "@")
12913 substed = 0
12914 len = length(field[1])
12915 for (i = 2; i < nfields; i++) {
12916 key = field[i]
12917 keylen = length(key)
12918 if (S_is_set[key]) {
12919 value = S[key]
12920 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12921 len += length(value) + length(field[++i])
12922 substed = 1
12923 } else
12924 len += 1 + keylen
12925 }
12926
12927 print line
12928}
12929
12930_ACAWK
12931_ACEOF
12932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12933if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12934 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12935else
12936 cat
drhf922ca42015-05-14 15:39:18 +000012937fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12938 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012939_ACEOF
12940
drhf922ca42015-05-14 15:39:18 +000012941# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12942# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012943# trailing colons and then remove the whole line if VPATH becomes empty
12944# (actually we leave an empty line to preserve line numbers).
12945if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012946 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12947h
12948s///
12949s/^/:/
12950s/[ ]*$/:/
12951s/:\$(srcdir):/:/g
12952s/:\${srcdir}:/:/g
12953s/:@srcdir@:/:/g
12954s/^:*//
drh8b727472009-01-19 18:18:40 +000012955s/:*$//
drhf922ca42015-05-14 15:39:18 +000012956x
12957s/\(=[ ]*\).*/\1/
12958G
12959s/\n//
drh8b727472009-01-19 18:18:40 +000012960s/^[^=]*=[ ]*$//
12961}'
12962fi
12963
12964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012965fi # test -n "$CONFIG_FILES"
12966
drh8b727472009-01-19 18:18:40 +000012967# Set up the scripts for CONFIG_HEADERS section.
12968# No need to generate them if there are no CONFIG_HEADERS.
12969# This happens for instance with `./config.status Makefile'.
12970if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012971cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012972BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012973_ACEOF
drh8b727472009-01-19 18:18:40 +000012974
12975# Transform confdefs.h into an awk script `defines.awk', embedded as
12976# here-document in config.status, that substitutes the proper values into
12977# config.h.in to produce config.h.
12978
12979# Create a delimiter string that does not exist in confdefs.h, to ease
12980# handling of long lines.
12981ac_delim='%!_!# '
12982for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012983 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12984 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012985 break
12986 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012987 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012988 else
12989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12990 fi
12991done
12992
12993# For the awk script, D is an array of macro values keyed by name,
12994# likewise P contains macro parameters if any. Preserve backslash
12995# newline sequences.
12996
12997ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12998sed -n '
12999s/.\{148\}/&'"$ac_delim"'/g
13000t rset
13001:rset
13002s/^[ ]*#[ ]*define[ ][ ]*/ /
13003t def
13004d
13005:def
13006s/\\$//
13007t bsnl
13008s/["\\]/\\&/g
13009s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13010D["\1"]=" \3"/p
13011s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13012d
13013:bsnl
13014s/["\\]/\\&/g
13015s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13016D["\1"]=" \3\\\\\\n"\\/p
13017t cont
13018s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13019t cont
13020d
13021:cont
13022n
13023s/.\{148\}/&'"$ac_delim"'/g
13024t clear
13025:clear
13026s/\\$//
13027t bsnlc
13028s/["\\]/\\&/g; s/^/"/; s/$/"/p
13029d
13030:bsnlc
13031s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13032b cont
13033' <confdefs.h | sed '
13034s/'"$ac_delim"'/"\\\
13035"/g' >>$CONFIG_STATUS || ac_write_fail=1
13036
13037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13038 for (key in D) D_is_set[key] = 1
13039 FS = ""
13040}
13041/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13042 line = \$ 0
13043 split(line, arg, " ")
13044 if (arg[1] == "#") {
13045 defundef = arg[2]
13046 mac1 = arg[3]
13047 } else {
13048 defundef = substr(arg[1], 2)
13049 mac1 = arg[2]
13050 }
13051 split(mac1, mac2, "(") #)
13052 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000013053 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000013054 if (D_is_set[macro]) {
13055 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000013056 print prefix "define", macro P[macro] D[macro]
13057 next
13058 } else {
13059 # Replace #undef with comments. This is necessary, for example,
13060 # in the case of _POSIX_SOURCE, which is predefined and required
13061 # on some systems where configure will not decide to define it.
13062 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000013063 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000013064 next
13065 }
13066 }
13067}
13068{ print }
13069_ACAWK
13070_ACEOF
13071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013072 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013073fi # test -n "$CONFIG_HEADERS"
13074
13075
13076eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13077shift
13078for ac_tag
13079do
13080 case $ac_tag in
13081 :[FHLC]) ac_mode=$ac_tag; continue;;
13082 esac
13083 case $ac_mode$ac_tag in
13084 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013085 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013086 :[FH]-) ac_tag=-:-;;
13087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13088 esac
13089 ac_save_IFS=$IFS
13090 IFS=:
13091 set x $ac_tag
13092 IFS=$ac_save_IFS
13093 shift
13094 ac_file=$1
13095 shift
13096
13097 case $ac_mode in
13098 :L) ac_source=$1;;
13099 :[FH])
13100 ac_file_inputs=
13101 for ac_f
13102 do
13103 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013104 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013105 *) # Look for the file first in the build tree, then in the source tree
13106 # (if the path is not absolute). The absolute path cannot be DOS-style,
13107 # because $ac_f cannot contain `:'.
13108 test -f "$ac_f" ||
13109 case $ac_f in
13110 [\\/$]*) false;;
13111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13112 esac ||
drhf922ca42015-05-14 15:39:18 +000013113 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013114 esac
13115 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013116 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013117 done
13118
13119 # Let's still pretend it is `configure' which instantiates (i.e., don't
13120 # use $as_me), people would be surprised to read:
13121 # /* config.h. Generated by config.status. */
13122 configure_input='Generated from '`
13123 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13124 `' by configure.'
13125 if test x"$ac_file" != x-; then
13126 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013127 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013128$as_echo "$as_me: creating $ac_file" >&6;}
13129 fi
13130 # Neutralize special characters interpreted by sed in replacement strings.
13131 case $configure_input in #(
13132 *\&* | *\|* | *\\* )
13133 ac_sed_conf_input=`$as_echo "$configure_input" |
13134 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13135 *) ac_sed_conf_input=$configure_input;;
13136 esac
13137
13138 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013139 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013141 esac
13142 ;;
drh71eb93e2001-09-28 01:34:43 +000013143 esac
13144
drh8b727472009-01-19 18:18:40 +000013145 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013146$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013147 X"$ac_file" : 'X\(//\)[^/]' \| \
13148 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013149 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13150$as_echo X"$ac_file" |
13151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13152 s//\1/
13153 q
13154 }
13155 /^X\(\/\/\)[^/].*/{
13156 s//\1/
13157 q
13158 }
13159 /^X\(\/\/\)$/{
13160 s//\1/
13161 q
13162 }
13163 /^X\(\/\).*/{
13164 s//\1/
13165 q
13166 }
13167 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013168 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013169 ac_builddir=.
13170
drh8b727472009-01-19 18:18:40 +000013171case "$ac_dir" in
13172.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13173*)
13174 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13175 # A ".." for each directory in $ac_dir_suffix.
13176 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13177 case $ac_top_builddir_sub in
13178 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13179 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13180 esac ;;
13181esac
13182ac_abs_top_builddir=$ac_pwd
13183ac_abs_builddir=$ac_pwd$ac_dir_suffix
13184# for backward compatibility:
13185ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013186
13187case $srcdir in
drh8b727472009-01-19 18:18:40 +000013188 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013189 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013190 ac_top_srcdir=$ac_top_builddir_sub
13191 ac_abs_top_srcdir=$ac_pwd ;;
13192 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013193 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013194 ac_top_srcdir=$srcdir
13195 ac_abs_top_srcdir=$srcdir ;;
13196 *) # Relative name.
13197 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13198 ac_top_srcdir=$ac_top_build_prefix$srcdir
13199 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013200esac
drh8b727472009-01-19 18:18:40 +000013201ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013202
a.rottmann84e63352003-03-24 09:42:16 +000013203
drh8b727472009-01-19 18:18:40 +000013204 case $ac_mode in
13205 :F)
13206 #
13207 # CONFIG_FILE
13208 #
drh75897232000-05-29 14:26:00 +000013209
drh71eb93e2001-09-28 01:34:43 +000013210 case $INSTALL in
13211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013212 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013213 esac
mlcreech94984912008-03-04 19:03:08 +000013214_ACEOF
drh8b727472009-01-19 18:18:40 +000013215
13216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217# If the template does not know about datarootdir, expand it.
13218# FIXME: This hack should be removed a few years after 2.60.
13219ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013220ac_sed_dataroot='
13221/datarootdir/ {
13222 p
13223 q
13224}
13225/@datadir@/p
13226/@docdir@/p
13227/@infodir@/p
13228/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013229/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013230case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13231*datarootdir*) ac_datarootdir_seen=yes;;
13232*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013234$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13235_ACEOF
13236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13237 ac_datarootdir_hack='
13238 s&@datadir@&$datadir&g
13239 s&@docdir@&$docdir&g
13240 s&@infodir@&$infodir&g
13241 s&@localedir@&$localedir&g
13242 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013243 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013244esac
13245_ACEOF
13246
13247# Neutralize VPATH when `$srcdir' = `.'.
13248# Shell code in configure.ac might set extrasub.
13249# FIXME: do we really want to maintain this feature?
13250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13251ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013252$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013253_ACEOF
drh8b727472009-01-19 18:18:40 +000013254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013255:t
13256/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013257s|@configure_input@|$ac_sed_conf_input|;t t
13258s&@top_builddir@&$ac_top_builddir_sub&;t t
13259s&@top_build_prefix@&$ac_top_build_prefix&;t t
13260s&@srcdir@&$ac_srcdir&;t t
13261s&@abs_srcdir@&$ac_abs_srcdir&;t t
13262s&@top_srcdir@&$ac_top_srcdir&;t t
13263s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13264s&@builddir@&$ac_builddir&;t t
13265s&@abs_builddir@&$ac_abs_builddir&;t t
13266s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13267s&@INSTALL@&$ac_INSTALL&;t t
13268$ac_datarootdir_hack
13269"
drhf922ca42015-05-14 15:39:18 +000013270eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13271 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013272
drh8b727472009-01-19 18:18:40 +000013273test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013274 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13276 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13278which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013279$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013280which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013281
drhf922ca42015-05-14 15:39:18 +000013282 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013283 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013284 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13285 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013286 esac \
drhf922ca42015-05-14 15:39:18 +000013287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013288 ;;
13289 :H)
13290 #
13291 # CONFIG_HEADER
13292 #
drh866108f2008-05-13 00:57:21 +000013293 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013294 {
13295 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13297 } >"$ac_tmp/config.h" \
13298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13299 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013301$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013302 else
drh8b727472009-01-19 18:18:40 +000013303 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013304 mv "$ac_tmp/config.h" "$ac_file" \
13305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013306 fi
13307 else
drh8b727472009-01-19 18:18:40 +000013308 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13310 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013311 fi
drh8b727472009-01-19 18:18:40 +000013312 ;;
drh866108f2008-05-13 00:57:21 +000013313
drhf922ca42015-05-14 15:39:18 +000013314 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013315$as_echo "$as_me: executing $ac_file commands" >&6;}
13316 ;;
13317 esac
drh866108f2008-05-13 00:57:21 +000013318
13319
drh8b727472009-01-19 18:18:40 +000013320 case $ac_file$ac_mode in
13321 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013322
13323 # See if we are running on zsh, and set the options which allow our
13324 # commands through without removal of \ escapes.
13325 if test -n "${ZSH_VERSION+set}" ; then
13326 setopt NO_GLOB_SUBST
13327 fi
13328
13329 cfgfile="${ofile}T"
13330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13331 $RM "$cfgfile"
13332
13333 cat <<_LT_EOF >> "$cfgfile"
13334#! $SHELL
13335
13336# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13337# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13338# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13339# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13340#
13341# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13342# 2006, 2007, 2008 Free Software Foundation, Inc.
13343# Written by Gordon Matzigkeit, 1996
13344#
13345# This file is part of GNU Libtool.
13346#
13347# GNU Libtool is free software; you can redistribute it and/or
13348# modify it under the terms of the GNU General Public License as
13349# published by the Free Software Foundation; either version 2 of
13350# the License, or (at your option) any later version.
13351#
13352# As a special exception to the GNU General Public License,
13353# if you distribute this file as part of a program or library that
13354# is built using GNU Libtool, you may include this file under the
13355# same distribution terms that you use for the rest of that program.
13356#
13357# GNU Libtool is distributed in the hope that it will be useful,
13358# but WITHOUT ANY WARRANTY; without even the implied warranty of
13359# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13360# GNU General Public License for more details.
13361#
13362# You should have received a copy of the GNU General Public License
13363# along with GNU Libtool; see the file COPYING. If not, a copy
13364# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13365# obtained by writing to the Free Software Foundation, Inc.,
13366# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13367
13368
13369# The names of the tagged configurations supported by this script.
13370available_tags=""
13371
13372# ### BEGIN LIBTOOL CONFIG
13373
13374# Which release of libtool.m4 was used?
13375macro_version=$macro_version
13376macro_revision=$macro_revision
13377
13378# Whether or not to build shared libraries.
13379build_libtool_libs=$enable_shared
13380
13381# Whether or not to build static libraries.
13382build_old_libs=$enable_static
13383
13384# What type of objects to build.
13385pic_mode=$pic_mode
13386
13387# Whether or not to optimize for fast installation.
13388fast_install=$enable_fast_install
13389
13390# The host system.
13391host_alias=$host_alias
13392host=$host
13393host_os=$host_os
13394
13395# The build system.
13396build_alias=$build_alias
13397build=$build
13398build_os=$build_os
13399
13400# A sed program that does not truncate output.
13401SED=$lt_SED
13402
13403# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13404Xsed="\$SED -e 1s/^X//"
13405
13406# A grep program that handles long lines.
13407GREP=$lt_GREP
13408
13409# An ERE matcher.
13410EGREP=$lt_EGREP
13411
13412# A literal string matcher.
13413FGREP=$lt_FGREP
13414
13415# A BSD- or MS-compatible name lister.
13416NM=$lt_NM
13417
13418# Whether we need soft or hard links.
13419LN_S=$lt_LN_S
13420
13421# What is the maximum length of a command?
13422max_cmd_len=$max_cmd_len
13423
13424# Object file suffix (normally "o").
13425objext=$ac_objext
13426
13427# Executable file suffix (normally "").
13428exeext=$exeext
13429
13430# whether the shell understands "unset".
13431lt_unset=$lt_unset
13432
13433# turn spaces into newlines.
13434SP2NL=$lt_lt_SP2NL
13435
13436# turn newlines into spaces.
13437NL2SP=$lt_lt_NL2SP
13438
13439# How to create reloadable object files.
13440reload_flag=$lt_reload_flag
13441reload_cmds=$lt_reload_cmds
13442
vapier6acb2cf2009-01-28 04:46:28 +000013443# An object symbol dumper.
13444OBJDUMP=$lt_OBJDUMP
13445
mlcreech636a9952008-05-05 22:52:56 +000013446# Method to check whether dependent libraries are shared objects.
13447deplibs_check_method=$lt_deplibs_check_method
13448
13449# Command to use when deplibs_check_method == "file_magic".
13450file_magic_cmd=$lt_file_magic_cmd
13451
13452# The archiver.
13453AR=$lt_AR
13454AR_FLAGS=$lt_AR_FLAGS
13455
13456# A symbol stripping program.
13457STRIP=$lt_STRIP
13458
13459# Commands used to install an old-style archive.
13460RANLIB=$lt_RANLIB
13461old_postinstall_cmds=$lt_old_postinstall_cmds
13462old_postuninstall_cmds=$lt_old_postuninstall_cmds
13463
13464# A C compiler.
13465LTCC=$lt_CC
13466
13467# LTCC compiler flags.
13468LTCFLAGS=$lt_CFLAGS
13469
13470# Take the output of nm and produce a listing of raw symbols and C names.
13471global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13472
13473# Transform the output of nm in a proper C declaration.
13474global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13475
13476# Transform the output of nm in a C name address pair.
13477global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13478
13479# Transform the output of nm in a C name address pair when lib prefix is needed.
13480global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13481
13482# The name of the directory that contains temporary libtool files.
13483objdir=$objdir
13484
13485# Shell to use when invoking shell scripts.
13486SHELL=$lt_SHELL
13487
13488# An echo program that does not interpret backslashes.
13489ECHO=$lt_ECHO
13490
13491# Used to examine libraries when file_magic_cmd begins with "file".
13492MAGIC_CMD=$MAGIC_CMD
13493
13494# Must we lock files when doing compilation?
13495need_locks=$lt_need_locks
13496
13497# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13498DSYMUTIL=$lt_DSYMUTIL
13499
13500# Tool to change global to local symbols on Mac OS X.
13501NMEDIT=$lt_NMEDIT
13502
13503# Tool to manipulate fat objects and archives on Mac OS X.
13504LIPO=$lt_LIPO
13505
13506# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13507OTOOL=$lt_OTOOL
13508
13509# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13510OTOOL64=$lt_OTOOL64
13511
13512# Old archive suffix (normally "a").
13513libext=$libext
13514
13515# Shared library suffix (normally ".so").
13516shrext_cmds=$lt_shrext_cmds
13517
13518# The commands to extract the exported symbol list from a shared archive.
13519extract_expsyms_cmds=$lt_extract_expsyms_cmds
13520
13521# Variables whose values should be saved in libtool wrapper scripts and
13522# restored at link time.
13523variables_saved_for_relink=$lt_variables_saved_for_relink
13524
13525# Do we need the "lib" prefix for modules?
13526need_lib_prefix=$need_lib_prefix
13527
13528# Do we need a version for libraries?
13529need_version=$need_version
13530
13531# Library versioning type.
13532version_type=$version_type
13533
13534# Shared library runtime path variable.
13535runpath_var=$runpath_var
13536
13537# Shared library path variable.
13538shlibpath_var=$shlibpath_var
13539
13540# Is shlibpath searched before the hard-coded library search path?
13541shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13542
13543# Format of library name prefix.
13544libname_spec=$lt_libname_spec
13545
13546# List of archive names. First name is the real one, the rest are links.
13547# The last name is the one that the linker finds with -lNAME
13548library_names_spec=$lt_library_names_spec
13549
13550# The coded name of the library, if different from the real name.
13551soname_spec=$lt_soname_spec
13552
13553# Command to use after installation of a shared archive.
13554postinstall_cmds=$lt_postinstall_cmds
13555
13556# Command to use after uninstallation of a shared archive.
13557postuninstall_cmds=$lt_postuninstall_cmds
13558
13559# Commands used to finish a libtool library installation in a directory.
13560finish_cmds=$lt_finish_cmds
13561
13562# As "finish_cmds", except a single script fragment to be evaled but
13563# not shown.
13564finish_eval=$lt_finish_eval
13565
13566# Whether we should hardcode library paths into libraries.
13567hardcode_into_libs=$hardcode_into_libs
13568
13569# Compile-time system search path for libraries.
13570sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13571
13572# Run-time system search path for libraries.
13573sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13574
13575# Whether dlopen is supported.
13576dlopen_support=$enable_dlopen
13577
13578# Whether dlopen of programs is supported.
13579dlopen_self=$enable_dlopen_self
13580
13581# Whether dlopen of statically linked programs is supported.
13582dlopen_self_static=$enable_dlopen_self_static
13583
13584# Commands to strip libraries.
13585old_striplib=$lt_old_striplib
13586striplib=$lt_striplib
13587
13588
13589# The linker used to build libraries.
13590LD=$lt_LD
13591
13592# Commands used to build an old-style archive.
13593old_archive_cmds=$lt_old_archive_cmds
13594
13595# A language specific compiler.
13596CC=$lt_compiler
13597
13598# Is the compiler the GNU compiler?
13599with_gcc=$GCC
13600
13601# Compiler flag to turn off builtin functions.
13602no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13603
13604# How to pass a linker flag through the compiler.
13605wl=$lt_lt_prog_compiler_wl
13606
13607# Additional compiler flags for building library objects.
13608pic_flag=$lt_lt_prog_compiler_pic
13609
13610# Compiler flag to prevent dynamic linking.
13611link_static_flag=$lt_lt_prog_compiler_static
13612
13613# Does compiler simultaneously support -c and -o options?
13614compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13615
13616# Whether or not to add -lc for building shared libraries.
13617build_libtool_need_lc=$archive_cmds_need_lc
13618
13619# Whether or not to disallow shared libs when runtime libs are static.
13620allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13621
13622# Compiler flag to allow reflexive dlopens.
13623export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13624
13625# Compiler flag to generate shared objects directly from archives.
13626whole_archive_flag_spec=$lt_whole_archive_flag_spec
13627
13628# Whether the compiler copes with passing no objects directly.
13629compiler_needs_object=$lt_compiler_needs_object
13630
13631# Create an old-style archive from a shared archive.
13632old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13633
13634# Create a temporary old-style archive to link instead of a shared archive.
13635old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13636
13637# Commands used to build a shared archive.
13638archive_cmds=$lt_archive_cmds
13639archive_expsym_cmds=$lt_archive_expsym_cmds
13640
13641# Commands used to build a loadable module if different from building
13642# a shared archive.
13643module_cmds=$lt_module_cmds
13644module_expsym_cmds=$lt_module_expsym_cmds
13645
13646# Whether we are building with GNU ld or not.
13647with_gnu_ld=$lt_with_gnu_ld
13648
13649# Flag that allows shared libraries with undefined symbols to be built.
13650allow_undefined_flag=$lt_allow_undefined_flag
13651
13652# Flag that enforces no undefined symbols.
13653no_undefined_flag=$lt_no_undefined_flag
13654
13655# Flag to hardcode \$libdir into a binary during linking.
13656# This must work even if \$libdir does not exist
13657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13658
13659# If ld is used when linking, flag to hardcode \$libdir into a binary
13660# during linking. This must work even if \$libdir does not exist.
13661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13662
13663# Whether we need a single "-rpath" flag with a separated argument.
13664hardcode_libdir_separator=$lt_hardcode_libdir_separator
13665
13666# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13667# DIR into the resulting binary.
13668hardcode_direct=$hardcode_direct
13669
13670# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13671# DIR into the resulting binary and the resulting library dependency is
13672# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13673# library is relocated.
13674hardcode_direct_absolute=$hardcode_direct_absolute
13675
13676# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13677# into the resulting binary.
13678hardcode_minus_L=$hardcode_minus_L
13679
13680# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13681# into the resulting binary.
13682hardcode_shlibpath_var=$hardcode_shlibpath_var
13683
13684# Set to "yes" if building a shared library automatically hardcodes DIR
13685# into the library and all subsequent libraries and executables linked
13686# against it.
13687hardcode_automatic=$hardcode_automatic
13688
13689# Set to yes if linker adds runtime paths of dependent libraries
13690# to runtime path list.
13691inherit_rpath=$inherit_rpath
13692
13693# Whether libtool must link a program against all its dependency libraries.
13694link_all_deplibs=$link_all_deplibs
13695
13696# Fix the shell variable \$srcfile for the compiler.
13697fix_srcfile_path=$lt_fix_srcfile_path
13698
13699# Set to "yes" if exported symbols are required.
13700always_export_symbols=$always_export_symbols
13701
13702# The commands to list exported symbols.
13703export_symbols_cmds=$lt_export_symbols_cmds
13704
13705# Symbols that should not be listed in the preloaded symbols.
13706exclude_expsyms=$lt_exclude_expsyms
13707
13708# Symbols that must always be exported.
13709include_expsyms=$lt_include_expsyms
13710
13711# Commands necessary for linking programs (against libraries) with templates.
13712prelink_cmds=$lt_prelink_cmds
13713
13714# Specify filename containing input files.
13715file_list_spec=$lt_file_list_spec
13716
13717# How to hardcode a shared library path into an executable.
13718hardcode_action=$hardcode_action
13719
13720# ### END LIBTOOL CONFIG
13721
13722_LT_EOF
13723
13724 case $host_os in
13725 aix3*)
13726 cat <<\_LT_EOF >> "$cfgfile"
13727# AIX sometimes has problems with the GCC collect2 program. For some
13728# reason, if we set the COLLECT_NAMES environment variable, the problems
13729# vanish in a puff of smoke.
13730if test "X${COLLECT_NAMES+set}" != Xset; then
13731 COLLECT_NAMES=
13732 export COLLECT_NAMES
13733fi
13734_LT_EOF
13735 ;;
13736 esac
13737
13738
13739ltmain="$ac_aux_dir/ltmain.sh"
13740
13741
13742 # We use sed instead of cat because bash on DJGPP gets confused if
13743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13744 # text mode, it properly converts lines to CR/LF. This bash problem
13745 # is reportedly fixed, but why not run on old versions too?
13746 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13747 || (rm -f "$cfgfile"; exit 1)
13748
13749 case $xsi_shell in
13750 yes)
13751 cat << \_LT_EOF >> "$cfgfile"
13752
13753# func_dirname file append nondir_replacement
13754# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13755# otherwise set result to NONDIR_REPLACEMENT.
13756func_dirname ()
13757{
13758 case ${1} in
13759 */*) func_dirname_result="${1%/*}${2}" ;;
13760 * ) func_dirname_result="${3}" ;;
13761 esac
13762}
13763
13764# func_basename file
13765func_basename ()
13766{
13767 func_basename_result="${1##*/}"
13768}
13769
13770# func_dirname_and_basename file append nondir_replacement
13771# perform func_basename and func_dirname in a single function
13772# call:
13773# dirname: Compute the dirname of FILE. If nonempty,
13774# add APPEND to the result, otherwise set result
13775# to NONDIR_REPLACEMENT.
13776# value returned in "$func_dirname_result"
13777# basename: Compute filename of FILE.
13778# value retuned in "$func_basename_result"
13779# Implementation must be kept synchronized with func_dirname
13780# and func_basename. For efficiency, we do not delegate to
13781# those functions but instead duplicate the functionality here.
13782func_dirname_and_basename ()
13783{
13784 case ${1} in
13785 */*) func_dirname_result="${1%/*}${2}" ;;
13786 * ) func_dirname_result="${3}" ;;
13787 esac
13788 func_basename_result="${1##*/}"
13789}
13790
13791# func_stripname prefix suffix name
13792# strip PREFIX and SUFFIX off of NAME.
13793# PREFIX and SUFFIX must not contain globbing or regex special
13794# characters, hashes, percent signs, but SUFFIX may contain a leading
13795# dot (in which case that matches only a dot).
13796func_stripname ()
13797{
13798 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13799 # positional parameters, so assign one to ordinary parameter first.
13800 func_stripname_result=${3}
13801 func_stripname_result=${func_stripname_result#"${1}"}
13802 func_stripname_result=${func_stripname_result%"${2}"}
13803}
13804
13805# func_opt_split
13806func_opt_split ()
13807{
13808 func_opt_split_opt=${1%%=*}
13809 func_opt_split_arg=${1#*=}
13810}
13811
13812# func_lo2o object
13813func_lo2o ()
13814{
13815 case ${1} in
13816 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13817 *) func_lo2o_result=${1} ;;
13818 esac
13819}
13820
13821# func_xform libobj-or-source
13822func_xform ()
13823{
13824 func_xform_result=${1%.*}.lo
13825}
13826
13827# func_arith arithmetic-term...
13828func_arith ()
13829{
13830 func_arith_result=$(( $* ))
13831}
13832
13833# func_len string
13834# STRING may not start with a hyphen.
13835func_len ()
13836{
13837 func_len_result=${#1}
13838}
13839
13840_LT_EOF
13841 ;;
13842 *) # Bourne compatible functions.
13843 cat << \_LT_EOF >> "$cfgfile"
13844
13845# func_dirname file append nondir_replacement
13846# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13847# otherwise set result to NONDIR_REPLACEMENT.
13848func_dirname ()
13849{
13850 # Extract subdirectory from the argument.
13851 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13852 if test "X$func_dirname_result" = "X${1}"; then
13853 func_dirname_result="${3}"
13854 else
13855 func_dirname_result="$func_dirname_result${2}"
13856 fi
13857}
13858
13859# func_basename file
13860func_basename ()
13861{
13862 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13863}
13864
13865
13866# func_stripname prefix suffix name
13867# strip PREFIX and SUFFIX off of NAME.
13868# PREFIX and SUFFIX must not contain globbing or regex special
13869# characters, hashes, percent signs, but SUFFIX may contain a leading
13870# dot (in which case that matches only a dot).
13871# func_strip_suffix prefix name
13872func_stripname ()
13873{
13874 case ${2} in
13875 .*) func_stripname_result=`$ECHO "X${3}" \
13876 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13877 *) func_stripname_result=`$ECHO "X${3}" \
13878 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13879 esac
13880}
13881
13882# sed scripts:
13883my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13884my_sed_long_arg='1s/^-[^=]*=//'
13885
13886# func_opt_split
13887func_opt_split ()
13888{
13889 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13890 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13891}
13892
13893# func_lo2o object
13894func_lo2o ()
13895{
13896 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13897}
13898
13899# func_xform libobj-or-source
13900func_xform ()
13901{
13902 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13903}
13904
13905# func_arith arithmetic-term...
13906func_arith ()
13907{
13908 func_arith_result=`expr "$@"`
13909}
13910
13911# func_len string
13912# STRING may not start with a hyphen.
13913func_len ()
13914{
13915 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13916}
13917
13918_LT_EOF
13919esac
13920
13921case $lt_shell_append in
13922 yes)
13923 cat << \_LT_EOF >> "$cfgfile"
13924
13925# func_append var value
13926# Append VALUE to the end of shell variable VAR.
13927func_append ()
13928{
13929 eval "$1+=\$2"
13930}
13931_LT_EOF
13932 ;;
13933 *)
13934 cat << \_LT_EOF >> "$cfgfile"
13935
13936# func_append var value
13937# Append VALUE to the end of shell variable VAR.
13938func_append ()
13939{
13940 eval "$1=\$$1\$2"
13941}
13942
13943_LT_EOF
13944 ;;
13945 esac
13946
13947
13948 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13949 || (rm -f "$cfgfile"; exit 1)
13950
13951 mv -f "$cfgfile" "$ofile" ||
13952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13953 chmod +x "$ofile"
13954
13955 ;;
mlcreech94984912008-03-04 19:03:08 +000013956
drh8b727472009-01-19 18:18:40 +000013957 esac
13958done # for ac_tag
13959
drh71eb93e2001-09-28 01:34:43 +000013960
drhf922ca42015-05-14 15:39:18 +000013961as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013962_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013963ac_clean_files=$ac_clean_files_save
13964
drh8b727472009-01-19 18:18:40 +000013965test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013966 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013967
a.rottmann84e63352003-03-24 09:42:16 +000013968
drh71eb93e2001-09-28 01:34:43 +000013969# configure is writing to config.log, and then calls config.status.
13970# config.status does its own redirection, appending to config.log.
13971# Unfortunately, on DOS this fails, as config.log is still kept open
13972# by configure, so config.status won't be able to write to it; its
13973# output is simply discarded. So we exec the FD to /dev/null,
13974# effectively closing config.log, so it can be properly (re)opened and
13975# appended to by config.status. When coming back to configure, we
13976# need to make the FD available again.
13977if test "$no_create" != yes; then
13978 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013979 ac_config_status_args=
13980 test "$silent" = yes &&
13981 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013982 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013984 exec 5>>config.log
13985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13986 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013987 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013988fi
drh8b727472009-01-19 18:18:40 +000013989if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13991$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013992fi
drh63a49ce2017-01-02 19:10:14 +000013993