blob: b2cb4d1308fb01a1a07471734328e3532cfcba36 [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.
drh2fca7052016-01-11 12:52:55 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.11.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'
drh2fca7052016-01-11 12:52:55 +0000729PACKAGE_VERSION='3.11.0'
730PACKAGE_STRING='sqlite 3.11.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
775USE_AMALGAMATION
776TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000777TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000778TARGET_HAVE_READLINE
779TARGET_READLINE_INC
780TARGET_READLINE_LIBS
781HAVE_TCL
782TCL_SHLIB_SUFFIX
783TCL_STUB_LIB_SPEC
784TCL_STUB_LIB_FLAG
785TCL_STUB_LIB_FILE
786TCL_LIB_SPEC
787TCL_LIB_FLAG
788TCL_LIB_FILE
789TCL_INCLUDE_SPEC
790TCL_SRC_DIR
791TCL_BIN_DIR
792TCL_VERSION
793TARGET_EXEEXT
794SQLITE_OS_WIN
795SQLITE_OS_UNIX
796BUILD_EXEEXT
797TEMP_STORE
798ALLOWRELEASE
799SQLITE_THREADSAFE
800BUILD_CC
801VERSION_NUMBER
802RELEASE
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
drhce1d9f52015-10-09 12:48:33 +0000906enable_fts3
907enable_fts4
908enable_fts5
909enable_json1
910enable_rtree
drh8b727472009-01-19 18:18:40 +0000911enable_gcov
912'
913 ac_precious_vars='build_alias
914host_alias
915target_alias
916CC
917CFLAGS
918LDFLAGS
919LIBS
920CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000921CPP
922TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000923
drh75897232000-05-29 14:26:00 +0000924
925# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000926ac_init_help=
927ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000928ac_unrecognized_opts=
929ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000930# The variables have the same names as the options, with
931# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000932cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000933exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000934no_create=
drh75897232000-05-29 14:26:00 +0000935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
drh75897232000-05-29 14:26:00 +0000943verbose=
944x_includes=NONE
945x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000952# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000961includedir='${prefix}/include'
962oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000972
drh75897232000-05-29 14:26:00 +0000973ac_prev=
drh8b727472009-01-19 18:18:40 +0000974ac_dashdash=
drh75897232000-05-29 14:26:00 +0000975for ac_option
976do
drh75897232000-05-29 14:26:00 +0000977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000979 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000980 ac_prev=
981 continue
982 fi
983
drh8b727472009-01-19 18:18:40 +0000984 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000988 esac
drh75897232000-05-29 14:26:00 +0000989
990 # Accept the important Cygnus configure options, so we can diagnose typos.
991
drh8b727472009-01-19 18:18:40 +0000992 case $ac_dashdash$ac_option in
993 --)
994 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000995
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000999 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001000
1001 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001002 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001004 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001005
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001011 cache_file=$ac_optarg ;;
1012
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001015
drh8b727472009-01-19 18:18:40 +00001016 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001017 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001019 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001020
drh8b727472009-01-19 18:18:40 +00001021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1027
drh75897232000-05-29 14:26:00 +00001028 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001030 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001032 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"enable_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=no ;;
1043
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1048
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001053
1054 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001056 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001058 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063"enable_$ac_useropt"
1064"*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001067 esac
drh8b727472009-01-19 18:18:40 +00001068 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001069
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001077 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001078
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1082
drh71eb93e2001-09-28 01:34:43 +00001083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001089
1090 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001091 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001092 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001093 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001094
drh8b727472009-01-19 18:18:40 +00001095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1100
drh75897232000-05-29 14:26:00 +00001101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001106 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001107
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001111 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001112
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001116 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001117
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001123 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001124
drh8b727472009-01-19 18:18:40 +00001125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1129
drh75897232000-05-29 14:26:00 +00001130 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001131 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001135 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001136
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001140 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001141
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1145
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001147 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001148 no_create=yes ;;
1149
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1153
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001161 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001162
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001166 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001167
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001173 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001174
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001180 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001181
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001197 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001198
drh8b727472009-01-19 18:18:40 +00001199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1203
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1208
drh75897232000-05-29 14:26:00 +00001209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1212
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001217 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001218
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001228 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001229
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001233 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001234
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001238 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001239
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001245 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001246
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001248 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001250 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1254
drh71eb93e2001-09-28 01:34:43 +00001255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001257
1258 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001260 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001262 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001271 esac
drh8b727472009-01-19 18:18:40 +00001272 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001273
1274 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001276 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001278 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283"with_$ac_useropt"
1284"*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001299 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001306 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001307
drhf922ca42015-05-14 15:39:18 +00001308 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001310 ;;
1311
drh71eb93e2001-09-28 01:34:43 +00001312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001315 case $ac_envvar in #(
1316 '' | [0-9]* | *[!_$as_cr_alnum]* )
1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 esac
drh8b727472009-01-19 18:18:40 +00001319 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001320 export $ac_envvar ;;
1321
drh75897232000-05-29 14:26:00 +00001322 *)
drh71eb93e2001-09-28 01:34:43 +00001323 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001328 ;;
1329
1330 esac
1331done
1332
1333if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001335 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001336fi
1337
drh8b727472009-01-19 18:18:40 +00001338if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
drhf922ca42015-05-14 15:39:18 +00001341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001343 esac
drh8b727472009-01-19 18:18:40 +00001344fi
drh866108f2008-05-13 00:57:21 +00001345
drh8b727472009-01-19 18:18:40 +00001346# Check all directory arguments for consistency.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001351do
drh8b727472009-01-19 18:18:40 +00001352 eval ac_val=\$$ac_var
1353 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001354 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001355 */ )
1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001358 esac
drh8b727472009-01-19 18:18:40 +00001359 # Be sure to have absolute directory names.
1360 case $ac_val in
1361 [\\/$]* | ?:[\\/]* ) continue;;
1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 esac
drhf922ca42015-05-14 15:39:18 +00001364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001365done
drh75897232000-05-29 14:26:00 +00001366
drh71eb93e2001-09-28 01:34:43 +00001367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001369# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001370build=$build_alias
1371host=$host_alias
1372target=$target_alias
drh75897232000-05-29 14:26:00 +00001373
a.rottmann84e63352003-03-24 09:42:16 +00001374# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001375if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1380 fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001387
a.rottmann84e63352003-03-24 09:42:16 +00001388
drh8b727472009-01-19 18:18:40 +00001389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001392 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001394 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001395
1396
drh75897232000-05-29 14:26:00 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$as_myself" ||
1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406$as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001424 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
drh8b727472009-01-19 18:18:40 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001434fi
drh8b727472009-01-19 18:18:40 +00001435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
drh75897232000-05-29 14:26:00 +00001455
drh71eb93e2001-09-28 01:34:43 +00001456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001462 cat <<_ACEOF
drh2fca7052016-01-11 12:52:55 +00001463\`configure' configures sqlite 3.11.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001477 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
drh71eb93e2001-09-28 01:34:43 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001485 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001487 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001516_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001517
a.rottmann84e63352003-03-24 09:42:16 +00001518 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001524fi
1525
1526if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001527 case $ac_init_help in
drh2fca7052016-01-11 12:52:55 +00001528 short | recursive ) echo "Configuration of sqlite 3.11.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001529 esac
a.rottmann84e63352003-03-24 09:42:16 +00001530 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001531
1532Optional Features:
drh8b727472009-01-19 18:18:40 +00001533 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001540 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001541 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001542 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001543 --enable-releasemode Support libtool link to release mode
1544 --enable-tempstore Use an in-ram database for temporary tables
1545 (never,no,yes,always)
1546 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001547 --enable-editline enable BSD editline support
1548 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001549 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001550 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001551 separately
drh05c7e0b2015-01-10 14:27:17 +00001552 --disable-load-extension
1553 Disable loading of external extensions
drhce1d9f52015-10-09 12:48:33 +00001554 --enable-fts3 Enable the FTS3 extension
1555 --enable-fts4 Enable the FTS4 extension
1556 --enable-fts5 Enable the FTS5 extension
1557 --enable-json1 Enable the JSON1 extension
1558 --enable-rtree Enable the RTREE extension
mlcreechaac7b932008-04-01 02:45:22 +00001559 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001564 --with-pic try to use only PIC/non-PIC objects [default=use
1565 both]
mlcreech636a9952008-05-05 22:52:56 +00001566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001567 --with-tcl=DIR directory containing tcl configuration
1568 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001569 --with-readline-lib specify readline library
1570 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001571
1572Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001577 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001579 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001580 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001581 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
drhf922ca42015-05-14 15:39:18 +00001586Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001587_ACEOF
drh8b727472009-01-19 18:18:40 +00001588ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596 continue
a.rottmann84e63352003-03-24 09:42:16 +00001597 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001598
drh8b727472009-01-19 18:18:40 +00001599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001614
a.rottmann84e63352003-03-24 09:42:16 +00001615case $srcdir in
drh8b727472009-01-19 18:18:40 +00001616 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001617 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001621 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001628esac
drh8b727472009-01-19 18:18:40 +00001629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001630
drh8b727472009-01-19 18:18:40 +00001631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001639 else
drh8b727472009-01-19 18:18:40 +00001640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001643 done
1644fi
1645
drh8b727472009-01-19 18:18:40 +00001646test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001647if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001648 cat <<\_ACEOF
drh2fca7052016-01-11 12:52:55 +00001649sqlite configure 3.11.0
drhf922ca42015-05-14 15:39:18 +00001650generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001651
drhf922ca42015-05-14 15:39:18 +00001652Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001655_ACEOF
drh8b727472009-01-19 18:18:40 +00001656 exit
drh71eb93e2001-09-28 01:34:43 +00001657fi
drhf922ca42015-05-14 15:39:18 +00001658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext conftest$ac_exeext
1708 if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && {
1724 test -z "$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 } && test -s conftest$ac_exeext && {
1727 test "$cross_compiling" = yes ||
1728 test -x conftest$ac_exeext
1729 }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=1
1736fi
1737 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739 # interfere with the next link command; also delete a directory that is
1740 # left behind by Apple's compiler. We do this before executing the actions.
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1748# -------------------------------------------------------
1749# Tests whether HEADER exists and can be compiled using the include files in
1750# INCLUDES, setting the cache variable VAR accordingly.
1751ac_fn_c_check_header_compile ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1758else
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760/* end confdefs.h. */
1761$4
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_compile "$LINENO"; then :
1765 eval "$3=yes"
1766else
1767 eval "$3=no"
1768fi
1769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770fi
1771eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773$as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775
1776} # ac_fn_c_check_header_compile
1777
1778# ac_fn_c_try_cpp LINENO
1779# ----------------------
1780# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_cpp ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_cpp conftest.$ac_ext"
1785case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } > conftest.i && {
1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 }; then :
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_cpp
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911else
1912 eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925# -------------------------------------------
1926# Tests whether TYPE exists after having included INCLUDES, setting cache
1927# variable VAR accordingly.
1928ac_fn_c_check_type ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935else
1936 eval "$3=no"
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939$4
1940int
1941main ()
1942{
1943if (sizeof ($2))
1944 return 0;
1945 ;
1946 return 0;
1947}
1948_ACEOF
1949if ac_fn_c_try_compile "$LINENO"; then :
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
1964else
1965 eval "$3=yes"
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976} # ac_fn_c_check_type
1977
1978# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979# -------------------------------------------------------
1980# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981# the include files in INCLUDES and setting the cache variable VAR
1982# accordingly.
1983ac_fn_c_check_header_mongrel ()
1984{
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991fi
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995else
1996 # Is the header compilable?
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998$as_echo_n "checking $2 usability... " >&6; }
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_header_compiler=yes
2006else
2007 ac_header_compiler=no
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011$as_echo "$ac_header_compiler" >&6; }
2012
2013# Is the header present?
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015$as_echo_n "checking $2 presence... " >&6; }
2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_cpp "$LINENO"; then :
2021 ac_header_preproc=yes
2022else
2023 ac_header_preproc=no
2024fi
2025rm -f conftest.err conftest.i conftest.$ac_ext
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027$as_echo "$ac_header_preproc" >&6; }
2028
2029# So? What about this header?
2030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031 yes:no: )
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036 ;;
2037 no:yes:* )
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2041$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2045$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 ;;
2049esac
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051$as_echo_n "checking for $2... " >&6; }
2052if eval \${$3+:} false; then :
2053 $as_echo_n "(cached) " >&6
2054else
2055 eval "$3=\$ac_header_compiler"
2056fi
2057eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060fi
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062
2063} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002064cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002065This file contains any messages produced by compilers while
2066running configure, to aid debugging if configure makes a mistake.
2067
drh2fca7052016-01-11 12:52:55 +00002068It was created by sqlite $as_me 3.11.0, which was
drhf922ca42015-05-14 15:39:18 +00002069generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002070
2071 $ $0 $@
2072
a.rottmann84e63352003-03-24 09:42:16 +00002073_ACEOF
drh8b727472009-01-19 18:18:40 +00002074exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002075{
2076cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002077## --------- ##
2078## Platform. ##
2079## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002080
2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2089
2090/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2091/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002093/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002094/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2095/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2096/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2097
drh71eb93e2001-09-28 01:34:43 +00002098_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002099
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002105 $as_echo "PATH: $as_dir"
2106 done
drh8b727472009-01-19 18:18:40 +00002107IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002108
drh71eb93e2001-09-28 01:34:43 +00002109} >&5
2110
a.rottmann84e63352003-03-24 09:42:16 +00002111cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002112
a.rottmann84e63352003-03-24 09:42:16 +00002113
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2117
2118_ACEOF
2119
drh71eb93e2001-09-28 01:34:43 +00002120
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002123# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002124# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002125# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002126ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002127ac_configure_args0=
2128ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002129ac_must_keep_next=false
2130for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002131do
a.rottmann84e63352003-03-24 09:42:16 +00002132 for ac_arg
2133 do
2134 case $ac_arg in
2135 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137 | -silent | --silent | --silen | --sile | --sil)
2138 continue ;;
drh8b727472009-01-19 18:18:40 +00002139 *\'*)
2140 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002141 esac
2142 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002143 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002144 2)
drhf922ca42015-05-14 15:39:18 +00002145 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002146 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002147 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002148 else
a.rottmann964dbb12004-02-26 19:47:42 +00002149 case $ac_arg in
2150 *=* | --config-cache | -C | -disable-* | --disable-* \
2151 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153 | -with-* | --with-* | -without-* | --without-* | --x)
2154 case "$ac_configure_args0 " in
2155 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156 esac
2157 ;;
2158 -* ) ac_must_keep_next=true ;;
2159 esac
a.rottmann84e63352003-03-24 09:42:16 +00002160 fi
drhf922ca42015-05-14 15:39:18 +00002161 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002162 ;;
2163 esac
2164 done
drh71eb93e2001-09-28 01:34:43 +00002165done
drhf922ca42015-05-14 15:39:18 +00002166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002168
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log. We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002174trap 'exit_status=$?
2175 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002176 {
2177 echo
2178
drhf922ca42015-05-14 15:39:18 +00002179 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002180## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002181## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002182 echo
2183 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002184(
2185 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2186 eval ac_val=\$$ac_var
2187 case $ac_val in #(
2188 *${as_nl}*)
2189 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002190 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2191$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002192 esac
2193 case $ac_var in #(
2194 _ | IFS | as_nl) ;; #(
2195 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002196 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002197 esac ;;
2198 esac
2199 done
drh71eb93e2001-09-28 01:34:43 +00002200 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002201 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2202 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002203 sed -n \
drh8b727472009-01-19 18:18:40 +00002204 "s/'\''/'\''\\\\'\'''\''/g;
2205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2206 ;; #(
drh866108f2008-05-13 00:57:21 +00002207 *)
drh8b727472009-01-19 18:18:40 +00002208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002209 ;;
drh8b727472009-01-19 18:18:40 +00002210 esac |
2211 sort
2212)
a.rottmann84e63352003-03-24 09:42:16 +00002213 echo
2214
drhf922ca42015-05-14 15:39:18 +00002215 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002216## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002217## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002218 echo
2219 for ac_var in $ac_subst_vars
2220 do
drh8b727472009-01-19 18:18:40 +00002221 eval ac_val=\$$ac_var
2222 case $ac_val in
2223 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 esac
2225 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002226 done | sort
2227 echo
2228
2229 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002230 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002231## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002232## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002233 echo
2234 for ac_var in $ac_subst_files
2235 do
drh8b727472009-01-19 18:18:40 +00002236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002241 done | sort
2242 echo
2243 fi
2244
2245 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002246 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002247## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002248## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002249 echo
drh8b727472009-01-19 18:18:40 +00002250 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002251 echo
2252 fi
2253 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002254 $as_echo "$as_me: caught signal $ac_signal"
2255 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002256 } >&5
drh8b727472009-01-19 18:18:40 +00002257 rm -f core *.core core.conftest.* &&
2258 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002259 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002260' 0
drh71eb93e2001-09-28 01:34:43 +00002261for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002262 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002263done
2264ac_signal=0
2265
2266# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002267rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002268
drhf922ca42015-05-14 15:39:18 +00002269$as_echo "/* confdefs.h */" > confdefs.h
2270
a.rottmann84e63352003-03-24 09:42:16 +00002271# Predefined preprocessor variables.
2272
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_NAME "$PACKAGE_NAME"
2275_ACEOF
2276
a.rottmann84e63352003-03-24 09:42:16 +00002277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2279_ACEOF
2280
a.rottmann84e63352003-03-24 09:42:16 +00002281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_VERSION "$PACKAGE_VERSION"
2283_ACEOF
2284
a.rottmann84e63352003-03-24 09:42:16 +00002285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_STRING "$PACKAGE_STRING"
2287_ACEOF
2288
dana9f39fd2011-08-12 16:34:42 +00002289cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002290#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002291_ACEOF
2292
drhf922ca42015-05-14 15:39:18 +00002293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_URL "$PACKAGE_URL"
2295_ACEOF
2296
a.rottmann84e63352003-03-24 09:42:16 +00002297
drh71eb93e2001-09-28 01:34:43 +00002298# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002299# Prefer an explicitly selected file to automatically selected ones.
2300ac_site_file1=NONE
2301ac_site_file2=NONE
2302if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002303 # We do not want a PATH search for config.site.
2304 case $CONFIG_SITE in #((
2305 -*) ac_site_file1=./$CONFIG_SITE;;
2306 */*) ac_site_file1=$CONFIG_SITE;;
2307 *) ac_site_file1=./$CONFIG_SITE;;
2308 esac
drh8b727472009-01-19 18:18:40 +00002309elif test "x$prefix" != xNONE; then
2310 ac_site_file1=$prefix/share/config.site
2311 ac_site_file2=$prefix/etc/config.site
2312else
2313 ac_site_file1=$ac_default_prefix/share/config.site
2314 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002315fi
drh8b727472009-01-19 18:18:40 +00002316for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2317do
2318 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002319 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002321$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002322 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002323 . "$ac_site_file" \
2324 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2326as_fn_error $? "failed to load site script $ac_site_file
2327See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002328 fi
2329done
2330
2331if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002332 # Some versions of bash will fail to source /dev/null (special files
2333 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2334 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002336$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002337 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002338 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2339 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002340 esac
2341 fi
drh75897232000-05-29 14:26:00 +00002342else
drhf922ca42015-05-14 15:39:18 +00002343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002344$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002345 >$cache_file
2346fi
2347
2348# Check that the precious variables saved in the cache have kept the same
2349# value.
2350ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002351for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2353 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2355 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002356 case $ac_old_set,$ac_new_set in
2357 set,)
drhf922ca42015-05-14 15:39:18 +00002358 { $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 +00002359$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002360 ac_cache_corrupted=: ;;
2361 ,set)
drhf922ca42015-05-14 15:39:18 +00002362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002363$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002364 ac_cache_corrupted=: ;;
2365 ,);;
2366 *)
2367 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002368 # differences in whitespace do not lead to failure.
2369 ac_old_val_w=`echo x $ac_old_val`
2370 ac_new_val_w=`echo x $ac_new_val`
2371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002373$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2374 ac_cache_corrupted=:
2375 else
drhf922ca42015-05-14 15:39:18 +00002376 { $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 +00002377$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2378 eval $ac_var=\$ac_old_val
2379 fi
drhf922ca42015-05-14 15:39:18 +00002380 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002381$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002382 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002383$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002384 fi;;
2385 esac
a.rottmann84e63352003-03-24 09:42:16 +00002386 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002387 if test "$ac_new_set" = set; then
2388 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002389 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002390 *) ac_arg=$ac_var=$ac_new_val ;;
2391 esac
2392 case " $ac_configure_args " in
2393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002395 esac
2396 fi
2397done
2398if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002402$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002403 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002404fi
drhf922ca42015-05-14 15:39:18 +00002405## -------------------- ##
2406## Main body of script. ##
2407## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002408
drh75897232000-05-29 14:26:00 +00002409ac_ext=c
drh75897232000-05-29 14:26:00 +00002410ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002414
a.rottmann84e63352003-03-24 09:42:16 +00002415
2416
drh04446102009-06-15 00:04:06 +00002417sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002418if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002419as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002420 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2421 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002422please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002423fi
2424
drh75897232000-05-29 14:26:00 +00002425#########
drh71eb93e2001-09-28 01:34:43 +00002426# Programs needed
drh75897232000-05-29 14:26:00 +00002427#
mlcreech636a9952008-05-05 22:52:56 +00002428case `pwd` in
2429 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002431$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002432esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002433
mlcreech94984912008-03-04 19:03:08 +00002434
mlcreech636a9952008-05-05 22:52:56 +00002435
vapier6acb2cf2009-01-28 04:46:28 +00002436macro_version='2.2.6'
2437macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002438
mlcreech94984912008-03-04 19:03:08 +00002439
mlcreech94984912008-03-04 19:03:08 +00002440
a.rottmann9bc8b932004-02-29 15:18:31 +00002441
mlcreech636a9952008-05-05 22:52:56 +00002442
2443
2444
2445
2446
2447
2448
2449
2450
2451ltmain="$ac_aux_dir/ltmain.sh"
2452
drh71eb93e2001-09-28 01:34:43 +00002453ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002454for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002455 if test -f "$ac_dir/install-sh"; then
2456 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/install-sh -c"
2458 break
2459 elif test -f "$ac_dir/install.sh"; then
2460 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install.sh -c"
2462 break
2463 elif test -f "$ac_dir/shtool"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/shtool install -c"
2466 break
2467 fi
drh71eb93e2001-09-28 01:34:43 +00002468done
2469if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002470 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002471fi
drh8b727472009-01-19 18:18:40 +00002472
2473# These three variables are undocumented and unsupported,
2474# and are intended to be withdrawn in a future Autoconf release.
2475# They can cause serious problems if a builder's source tree is in a directory
2476# whose full name contains unusual characters.
2477ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2478ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2479ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2480
drh71eb93e2001-09-28 01:34:43 +00002481
2482# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002483$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002484 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002485
drhf922ca42015-05-14 15:39:18 +00002486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002487$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002488if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002489 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002490else
drh8b727472009-01-19 18:18:40 +00002491 ac_build_alias=$build_alias
2492test "x$ac_build_alias" = x &&
2493 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2494test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002495 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002496ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002497 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002498
2499fi
drhf922ca42015-05-14 15:39:18 +00002500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002501$as_echo "$ac_cv_build" >&6; }
2502case $ac_cv_build in
2503*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002504*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002505esac
drh71eb93e2001-09-28 01:34:43 +00002506build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002507ac_save_IFS=$IFS; IFS='-'
2508set x $ac_cv_build
2509shift
2510build_cpu=$1
2511build_vendor=$2
2512shift; shift
2513# Remember, the first character of IFS is used to create $*,
2514# except with old shells:
2515build_os=$*
2516IFS=$ac_save_IFS
2517case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002518
a.rottmann84e63352003-03-24 09:42:16 +00002519
drhf922ca42015-05-14 15:39:18 +00002520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002521$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002522if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002523 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002524else
drh8b727472009-01-19 18:18:40 +00002525 if test "x$host_alias" = x; then
2526 ac_cv_host=$ac_cv_build
2527else
2528 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002530fi
drh71eb93e2001-09-28 01:34:43 +00002531
2532fi
drhf922ca42015-05-14 15:39:18 +00002533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002534$as_echo "$ac_cv_host" >&6; }
2535case $ac_cv_host in
2536*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002537*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002538esac
drh71eb93e2001-09-28 01:34:43 +00002539host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002540ac_save_IFS=$IFS; IFS='-'
2541set x $ac_cv_host
2542shift
2543host_cpu=$1
2544host_vendor=$2
2545shift; shift
2546# Remember, the first character of IFS is used to create $*,
2547# except with old shells:
2548host_os=$*
2549IFS=$ac_save_IFS
2550case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002551
a.rottmann84e63352003-03-24 09:42:16 +00002552
drh71eb93e2001-09-28 01:34:43 +00002553ac_ext=c
2554ac_cpp='$CPP $CPPFLAGS'
2555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557ac_compiler_gnu=$ac_cv_c_compiler_gnu
2558if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002562$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002563if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002564 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
a.rottmann84e63352003-03-24 09:42:16 +00002569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002576 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002578 break 2
2579 fi
2580done
drhf922ca42015-05-14 15:39:18 +00002581 done
drh8b727472009-01-19 18:18:40 +00002582IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002583
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002589$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002590else
drhf922ca42015-05-14 15:39:18 +00002591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002592$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002593fi
2594
drh8b727472009-01-19 18:18:40 +00002595
drh71eb93e2001-09-28 01:34:43 +00002596fi
2597if test -z "$ac_cv_prog_CC"; then
2598 ac_ct_CC=$CC
2599 # Extract the first word of "gcc", so it can be a program name with args.
2600set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002602$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002603if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002604 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002605else
2606 if test -n "$ac_ct_CC"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608else
a.rottmann84e63352003-03-24 09:42:16 +00002609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002616 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002618 break 2
2619 fi
2620done
drhf922ca42015-05-14 15:39:18 +00002621 done
drh8b727472009-01-19 18:18:40 +00002622IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002623
2624fi
2625fi
2626ac_ct_CC=$ac_cv_prog_ac_ct_CC
2627if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002629$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002630else
drhf922ca42015-05-14 15:39:18 +00002631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002632$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002633fi
2634
drh8b727472009-01-19 18:18:40 +00002635 if test "x$ac_ct_CC" = x; then
2636 CC=""
2637 else
2638 case $cross_compiling:$ac_tool_warned in
2639yes:)
drhf922ca42015-05-14 15:39:18 +00002640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002642ac_tool_warned=yes ;;
2643esac
2644 CC=$ac_ct_CC
2645 fi
drh71eb93e2001-09-28 01:34:43 +00002646else
2647 CC="$ac_cv_prog_CC"
2648fi
2649
2650if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002651 if test -n "$ac_tool_prefix"; then
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002653set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002655$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002656if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002657 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002658else
2659 if test -n "$CC"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test.
2661else
a.rottmann84e63352003-03-24 09:42:16 +00002662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663for as_dir in $PATH
2664do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002669 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002671 break 2
2672 fi
2673done
drhf922ca42015-05-14 15:39:18 +00002674 done
drh8b727472009-01-19 18:18:40 +00002675IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002676
2677fi
2678fi
2679CC=$ac_cv_prog_CC
2680if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002682$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002683else
drhf922ca42015-05-14 15:39:18 +00002684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002685$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002686fi
2687
drh8b727472009-01-19 18:18:40 +00002688
a.rottmann84e63352003-03-24 09:42:16 +00002689 fi
drh71eb93e2001-09-28 01:34:43 +00002690fi
2691if test -z "$CC"; then
2692 # Extract the first word of "cc", so it can be a program name with args.
2693set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002695$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002696if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002697 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002698else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2711 ac_prog_rejected=yes
2712 continue
2713 fi
2714 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002716 break 2
2717 fi
2718done
drhf922ca42015-05-14 15:39:18 +00002719 done
drh8b727472009-01-19 18:18:40 +00002720IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002721
2722if test $ac_prog_rejected = yes; then
2723 # We found a bogon in the path, so make sure we never use it.
2724 set dummy $ac_cv_prog_CC
2725 shift
2726 if test $# != 0; then
2727 # We chose a different compiler from the bogus one.
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2730 shift
a.rottmann84e63352003-03-24 09:42:16 +00002731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002732 fi
2733fi
2734fi
2735fi
2736CC=$ac_cv_prog_CC
2737if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002739$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002740else
drhf922ca42015-05-14 15:39:18 +00002741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002742$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002743fi
2744
drh8b727472009-01-19 18:18:40 +00002745
drh71eb93e2001-09-28 01:34:43 +00002746fi
2747if test -z "$CC"; then
2748 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002749 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002750 do
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002754$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002755if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002756 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002757else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760else
a.rottmann84e63352003-03-24 09:42:16 +00002761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002770 break 2
2771 fi
2772done
drhf922ca42015-05-14 15:39:18 +00002773 done
drh8b727472009-01-19 18:18:40 +00002774IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002775
2776fi
2777fi
2778CC=$ac_cv_prog_CC
2779if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002781$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002782else
drhf922ca42015-05-14 15:39:18 +00002783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002784$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002785fi
2786
drh8b727472009-01-19 18:18:40 +00002787
drh71eb93e2001-09-28 01:34:43 +00002788 test -n "$CC" && break
2789 done
2790fi
2791if test -z "$CC"; then
2792 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002793 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002794do
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002798$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002799if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002800 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002801else
2802 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804else
a.rottmann84e63352003-03-24 09:42:16 +00002805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806for as_dir in $PATH
2807do
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002812 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002814 break 2
2815 fi
2816done
drhf922ca42015-05-14 15:39:18 +00002817 done
drh8b727472009-01-19 18:18:40 +00002818IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002819
2820fi
2821fi
2822ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002825$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002826else
drhf922ca42015-05-14 15:39:18 +00002827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002828$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002829fi
2830
drh8b727472009-01-19 18:18:40 +00002831
drh71eb93e2001-09-28 01:34:43 +00002832 test -n "$ac_ct_CC" && break
2833done
2834
drh8b727472009-01-19 18:18:40 +00002835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839yes:)
drhf922ca42015-05-14 15:39:18 +00002840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002842ac_tool_warned=yes ;;
2843esac
2844 CC=$ac_ct_CC
2845 fi
drh71eb93e2001-09-28 01:34:43 +00002846fi
2847
2848fi
2849
a.rottmann84e63352003-03-24 09:42:16 +00002850
drhf922ca42015-05-14 15:39:18 +00002851test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853as_fn_error $? "no acceptable C compiler found in \$PATH
2854See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002855
2856# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002857$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002858set X $ac_compile
2859ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002860for ac_option in --version -v -V -qversion; do
2861 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
drhf922ca42015-05-14 15:39:18 +00002866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002869 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002870 if test -s conftest.err; then
2871 sed '10a\
2872... rest of stderr output deleted ...
2873 10q' conftest.err >conftest.er1
2874 cat conftest.er1 >&5
2875 fi
2876 rm -f conftest.er1 conftest.err
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }
2879done
drh71eb93e2001-09-28 01:34:43 +00002880
drhf922ca42015-05-14 15:39:18 +00002881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002882/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002883
2884int
2885main ()
2886{
2887
2888 ;
2889 return 0;
2890}
2891_ACEOF
2892ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002893ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002894# Try to create an executable without -o first, disregard a.out.
2895# It will help us diagnose broken compilers, and finding out an intuition
2896# of exeext.
drhf922ca42015-05-14 15:39:18 +00002897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2898$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002899ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002900
drh8b727472009-01-19 18:18:40 +00002901# The possible output files:
2902ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2903
2904ac_rmfiles=
2905for ac_file in $ac_files
2906do
2907 case $ac_file in
2908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2909 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2910 esac
2911done
2912rm -f $ac_rmfiles
2913
drhf922ca42015-05-14 15:39:18 +00002914if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
drhf922ca42015-05-14 15:39:18 +00002919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002921 (eval "$ac_link_default") 2>&5
2922 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002925 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927# in a Makefile. We should not override ac_cv_exeext if it was cached,
2928# so that the user can short-circuit this test for compilers unknown to
2929# Autoconf.
2930for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002931do
2932 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002933 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002935 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002936 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002937 # We found the default executable, but exeext='' is most
2938 # certainly right.
2939 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002940 *.* )
drhf922ca42015-05-14 15:39:18 +00002941 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002942 then :; else
2943 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944 fi
2945 # We set ac_cv_exeext here because the later test for it is not
2946 # safe: cross compilers may not add the suffix if given an `-o'
2947 # argument, so we may need to know it at that point already.
2948 # Even if this section looks crufty: it has the advantage of
2949 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002950 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002951 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002952 break;;
drh71eb93e2001-09-28 01:34:43 +00002953 esac
2954done
drh8b727472009-01-19 18:18:40 +00002955test "$ac_cv_exeext" = no && ac_cv_exeext=
2956
drh71eb93e2001-09-28 01:34:43 +00002957else
drh8b727472009-01-19 18:18:40 +00002958 ac_file=''
2959fi
drhf922ca42015-05-14 15:39:18 +00002960if test -z "$ac_file"; then :
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002964sed 's/^/| /' conftest.$ac_ext >&5
2965
drhf922ca42015-05-14 15:39:18 +00002966{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968as_fn_error 77 "C compiler cannot create executables
2969See \`config.log' for more details" "$LINENO" 5; }
2970else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002972$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002973fi
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2975$as_echo_n "checking for C compiler default output file name... " >&6; }
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2977$as_echo "$ac_file" >&6; }
2978ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002979
drh8b727472009-01-19 18:18:40 +00002980rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002981ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002983$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002984if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002985case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2988esac
drhf922ca42015-05-14 15:39:18 +00002989eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2990$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002991 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002992 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2996# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2997# work properly (i.e., refer to `conftest.exe'), while it won't with
2998# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002999for ac_file in conftest.exe conftest conftest.*; do
3000 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003001 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003003 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003004 break;;
drh71eb93e2001-09-28 01:34:43 +00003005 * ) break;;
3006 esac
3007done
3008else
drhf922ca42015-05-14 15:39:18 +00003009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3012See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003013fi
drhf922ca42015-05-14 15:39:18 +00003014rm -f conftest conftest$ac_cv_exeext
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003016$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003017
3018rm -f conftest.$ac_ext
3019EXEEXT=$ac_cv_exeext
3020ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022/* end confdefs.h. */
3023#include <stdio.h>
3024int
3025main ()
3026{
3027FILE *f = fopen ("conftest.out", "w");
3028 return ferror (f) || fclose (f) != 0;
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034ac_clean_files="$ac_clean_files conftest.out"
3035# Check that the compiler produces executables we can run. If not, either
3036# the compiler is broken, or we cross compile.
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3038$as_echo_n "checking whether we are cross compiling... " >&6; }
3039if test "$cross_compiling" != yes; then
3040 { { ac_try="$ac_link"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046$as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_link") 2>&5
3048 ac_status=$?
3049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050 test $ac_status = 0; }
3051 if { ac_try='./conftest$ac_cv_exeext'
3052 { { case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057$as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_try") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }; }; then
3062 cross_compiling=no
3063 else
3064 if test "$cross_compiling" = maybe; then
3065 cross_compiling=yes
3066 else
3067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069as_fn_error $? "cannot run C compiled programs.
3070If you meant to cross compile, use \`--host'.
3071See \`config.log' for more details" "$LINENO" 5; }
3072 fi
3073 fi
3074fi
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3076$as_echo "$cross_compiling" >&6; }
3077
3078rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3079ac_clean_files=$ac_clean_files_save
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003081$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003082if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003083 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003084else
drhf922ca42015-05-14 15:39:18 +00003085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003086/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003087
3088int
3089main ()
3090{
3091
3092 ;
3093 return 0;
3094}
3095_ACEOF
3096rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003097if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
drhf922ca42015-05-14 15:39:18 +00003102eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003104 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003105 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003110 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115done
3116else
drh8b727472009-01-19 18:18:40 +00003117 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003118sed 's/^/| /' conftest.$ac_ext >&5
3119
drhf922ca42015-05-14 15:39:18 +00003120{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122as_fn_error $? "cannot compute suffix of object files: cannot compile
3123See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003124fi
drh71eb93e2001-09-28 01:34:43 +00003125rm -f conftest.$ac_cv_objext conftest.$ac_ext
3126fi
drhf922ca42015-05-14 15:39:18 +00003127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003128$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003129OBJEXT=$ac_cv_objext
3130ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003133if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003134 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003135else
drhf922ca42015-05-14 15:39:18 +00003136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003137/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003138
3139int
3140main ()
3141{
3142#ifndef __GNUC__
3143 choke me
3144#endif
3145
3146 ;
3147 return 0;
3148}
3149_ACEOF
drhf922ca42015-05-14 15:39:18 +00003150if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003151 ac_compiler_gnu=yes
3152else
drhf922ca42015-05-14 15:39:18 +00003153 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003154fi
drh8b727472009-01-19 18:18:40 +00003155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003156ac_cv_c_compiler_gnu=$ac_compiler_gnu
3157
3158fi
drhf922ca42015-05-14 15:39:18 +00003159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3161if test $ac_compiler_gnu = yes; then
3162 GCC=yes
3163else
3164 GCC=
3165fi
drh71eb93e2001-09-28 01:34:43 +00003166ac_test_CFLAGS=${CFLAGS+set}
3167ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003169$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003170if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003171 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003172else
drh8b727472009-01-19 18:18:40 +00003173 ac_save_c_werror_flag=$ac_c_werror_flag
3174 ac_c_werror_flag=yes
3175 ac_cv_prog_cc_g=no
3176 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003178/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
drhf922ca42015-05-14 15:39:18 +00003188if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003189 ac_cv_prog_cc_g=yes
3190else
drhf922ca42015-05-14 15:39:18 +00003191 CFLAGS=""
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003193/* end confdefs.h. */
3194
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
drhf922ca42015-05-14 15:39:18 +00003203if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003204
drhf922ca42015-05-14 15:39:18 +00003205else
3206 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003207 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003209/* end confdefs.h. */
3210
3211int
3212main ()
3213{
3214
3215 ;
3216 return 0;
3217}
3218_ACEOF
drhf922ca42015-05-14 15:39:18 +00003219if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003220 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003221fi
drh8b727472009-01-19 18:18:40 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003223fi
drh8b727472009-01-19 18:18:40 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
drh8b727472009-01-19 18:18:40 +00003226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 ac_c_werror_flag=$ac_save_c_werror_flag
3228fi
drhf922ca42015-05-14 15:39:18 +00003229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003230$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003231if test "$ac_test_CFLAGS" = set; then
3232 CFLAGS=$ac_save_CFLAGS
3233elif test $ac_cv_prog_cc_g = yes; then
3234 if test "$GCC" = yes; then
3235 CFLAGS="-g -O2"
3236 else
3237 CFLAGS="-g"
3238 fi
3239else
3240 if test "$GCC" = yes; then
3241 CFLAGS="-O2"
3242 else
3243 CFLAGS=
3244 fi
3245fi
drhf922ca42015-05-14 15:39:18 +00003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003248if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003249 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003250else
drh8b727472009-01-19 18:18:40 +00003251 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003252ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003254/* end confdefs.h. */
3255#include <stdarg.h>
3256#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003257struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003258/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3259struct buf { int x; };
3260FILE * (*rcsopen) (struct buf *, struct stat *, int);
3261static char *e (p, i)
3262 char **p;
3263 int i;
3264{
3265 return p[i];
3266}
3267static char *f (char * (*g) (char **, int), char **p, ...)
3268{
3269 char *s;
3270 va_list v;
3271 va_start (v,p);
3272 s = g (p, va_arg (v,int));
3273 va_end (v);
3274 return s;
3275}
a.rottmann964dbb12004-02-26 19:47:42 +00003276
3277/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3278 function prototypes and stuff, but not '\xHH' hex character constants.
3279 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003280 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3282 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003283 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003284int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3285
drh8b727472009-01-19 18:18:40 +00003286/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3287 inside strings and character constants. */
3288#define FOO(x) 'x'
3289int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3290
a.rottmann84e63352003-03-24 09:42:16 +00003291int test (int i, double x);
3292struct s1 {int (*f) (int a);};
3293struct s2 {int (*f) (double a);};
3294int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295int argc;
3296char **argv;
3297int
3298main ()
3299{
3300return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3301 ;
3302 return 0;
3303}
3304_ACEOF
drh8b727472009-01-19 18:18:40 +00003305for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3306 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003307do
3308 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003309 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003310 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003311fi
drh8b727472009-01-19 18:18:40 +00003312rm -f core conftest.err conftest.$ac_objext
3313 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003314done
drh8b727472009-01-19 18:18:40 +00003315rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003316CC=$ac_save_CC
3317
3318fi
drh8b727472009-01-19 18:18:40 +00003319# AC_CACHE_VAL
3320case "x$ac_cv_prog_cc_c89" in
3321 x)
drhf922ca42015-05-14 15:39:18 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003323$as_echo "none needed" >&6; } ;;
3324 xno)
drhf922ca42015-05-14 15:39:18 +00003325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003326$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003327 *)
drh8b727472009-01-19 18:18:40 +00003328 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003330$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003331esac
drhf922ca42015-05-14 15:39:18 +00003332if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003333
drhf922ca42015-05-14 15:39:18 +00003334fi
a.rottmann84e63352003-03-24 09:42:16 +00003335
drh71eb93e2001-09-28 01:34:43 +00003336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341
drhf922ca42015-05-14 15:39:18 +00003342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003344if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003345 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003346else
drh8b727472009-01-19 18:18:40 +00003347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3348 for ac_i in 1 2 3 4 5 6 7; do
3349 ac_script="$ac_script$as_nl$ac_script"
3350 done
3351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003352 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003353 if test -z "$SED"; then
3354 ac_path_SED_found=false
3355 # Loop through the user's path and test for each of PROGNAME-LIST
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003357for as_dir in $PATH
3358do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003361 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003362 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003364 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003365# Check for GNU ac_path_SED and select it if it is found.
3366 # Check for GNU $ac_path_SED
3367case `"$ac_path_SED" --version 2>&1` in
3368*GNU*)
3369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3370*)
3371 ac_count=0
3372 $as_echo_n 0123456789 >"conftest.in"
3373 while :
3374 do
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo '' >> "conftest.nl"
3379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003381 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003382 if test $ac_count -gt ${ac_path_SED_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_SED="$ac_path_SED"
3385 ac_path_SED_max=$ac_count
3386 fi
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3389 done
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3391esac
3392
3393 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003394 done
3395 done
drhf922ca42015-05-14 15:39:18 +00003396 done
mlcreech636a9952008-05-05 22:52:56 +00003397IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003398 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003399 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003400 fi
drh8b727472009-01-19 18:18:40 +00003401else
3402 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003403fi
drh866108f2008-05-13 00:57:21 +00003404
drh8b727472009-01-19 18:18:40 +00003405fi
drhf922ca42015-05-14 15:39:18 +00003406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003407$as_echo "$ac_cv_path_SED" >&6; }
3408 SED="$ac_cv_path_SED"
3409 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003410
mlcreech636a9952008-05-05 22:52:56 +00003411test -z "$SED" && SED=sed
3412Xsed="$SED -e 1s/^X//"
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
drhf922ca42015-05-14 15:39:18 +00003424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003425$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003426if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003427 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003428else
drh8b727472009-01-19 18:18:40 +00003429 if test -z "$GREP"; then
3430 ac_path_GREP_found=false
3431 # Loop through the user's path and test for each of PROGNAME-LIST
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3434do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003437 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003440 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003441# Check for GNU ac_path_GREP and select it if it is found.
3442 # Check for GNU $ac_path_GREP
3443case `"$ac_path_GREP" --version 2>&1` in
3444*GNU*)
3445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3446*)
3447 ac_count=0
3448 $as_echo_n 0123456789 >"conftest.in"
3449 while :
3450 do
3451 cat "conftest.in" "conftest.in" >"conftest.tmp"
3452 mv "conftest.tmp" "conftest.in"
3453 cp "conftest.in" "conftest.nl"
3454 $as_echo 'GREP' >> "conftest.nl"
3455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003457 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3459 # Best one so far, save it but keep looking for a better one
3460 ac_cv_path_GREP="$ac_path_GREP"
3461 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003462 fi
drh8b727472009-01-19 18:18:40 +00003463 # 10*(2^10) chars as input seems more than enough
3464 test $ac_count -gt 10 && break
3465 done
3466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3467esac
3468
3469 $ac_path_GREP_found && break 3
3470 done
3471 done
drhf922ca42015-05-14 15:39:18 +00003472 done
drh8b727472009-01-19 18:18:40 +00003473IFS=$as_save_IFS
3474 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003475 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003476 fi
3477else
3478 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003479fi
drh8b727472009-01-19 18:18:40 +00003480
3481fi
drhf922ca42015-05-14 15:39:18 +00003482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003483$as_echo "$ac_cv_path_GREP" >&6; }
3484 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003485
3486
drhf922ca42015-05-14 15:39:18 +00003487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003488$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003489if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003490 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003491else
drh8b727472009-01-19 18:18:40 +00003492 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3493 then ac_cv_path_EGREP="$GREP -E"
3494 else
3495 if test -z "$EGREP"; then
3496 ac_path_EGREP_found=false
3497 # Loop through the user's path and test for each of PROGNAME-LIST
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3500do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003503 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003506 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003507# Check for GNU ac_path_EGREP and select it if it is found.
3508 # Check for GNU $ac_path_EGREP
3509case `"$ac_path_EGREP" --version 2>&1` in
3510*GNU*)
3511 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3512*)
3513 ac_count=0
3514 $as_echo_n 0123456789 >"conftest.in"
3515 while :
3516 do
3517 cat "conftest.in" "conftest.in" >"conftest.tmp"
3518 mv "conftest.tmp" "conftest.in"
3519 cp "conftest.in" "conftest.nl"
3520 $as_echo 'EGREP' >> "conftest.nl"
3521 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003523 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003524 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3525 # Best one so far, save it but keep looking for a better one
3526 ac_cv_path_EGREP="$ac_path_EGREP"
3527 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003528 fi
drh8b727472009-01-19 18:18:40 +00003529 # 10*(2^10) chars as input seems more than enough
3530 test $ac_count -gt 10 && break
3531 done
3532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3533esac
3534
3535 $ac_path_EGREP_found && break 3
3536 done
3537 done
drhf922ca42015-05-14 15:39:18 +00003538 done
drh8b727472009-01-19 18:18:40 +00003539IFS=$as_save_IFS
3540 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003541 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003542 fi
3543else
3544 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003545fi
drh8b727472009-01-19 18:18:40 +00003546
3547 fi
3548fi
drhf922ca42015-05-14 15:39:18 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003550$as_echo "$ac_cv_path_EGREP" >&6; }
3551 EGREP="$ac_cv_path_EGREP"
3552
3553
drhf922ca42015-05-14 15:39:18 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003555$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003556if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003557 $as_echo_n "(cached) " >&6
3558else
3559 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3560 then ac_cv_path_FGREP="$GREP -F"
3561 else
3562 if test -z "$FGREP"; then
3563 ac_path_FGREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003570 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003573 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003574# Check for GNU ac_path_FGREP and select it if it is found.
3575 # Check for GNU $ac_path_FGREP
3576case `"$ac_path_FGREP" --version 2>&1` in
3577*GNU*)
3578 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3579*)
3580 ac_count=0
3581 $as_echo_n 0123456789 >"conftest.in"
3582 while :
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'FGREP' >> "conftest.nl"
3588 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003590 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003591 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_FGREP="$ac_path_FGREP"
3594 ac_path_FGREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600esac
3601
3602 $ac_path_FGREP_found && break 3
3603 done
3604 done
drhf922ca42015-05-14 15:39:18 +00003605 done
drh8b727472009-01-19 18:18:40 +00003606IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003608 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003609 fi
3610else
3611 ac_cv_path_FGREP=$FGREP
3612fi
3613
3614 fi
3615fi
drhf922ca42015-05-14 15:39:18 +00003616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003617$as_echo "$ac_cv_path_FGREP" >&6; }
3618 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003619
3620
3621test -z "$GREP" && GREP=grep
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
a.rottmann9bc8b932004-02-29 15:18:31 +00003638
3639
a.rottmann84e63352003-03-24 09:42:16 +00003640
drh8b727472009-01-19 18:18:40 +00003641# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003642if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003644else
3645 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003646fi
3647
drh71eb93e2001-09-28 01:34:43 +00003648ac_prog=ld
3649if test "$GCC" = yes; then
3650 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003652$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003653 case $host in
3654 *-*-mingw*)
3655 # gcc leaves a trailing carriage return which upsets mingw
3656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3657 *)
3658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3659 esac
3660 case $ac_prog in
3661 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003662 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003663 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003664 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3667 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003668 done
3669 test -z "$LD" && LD="$ac_prog"
3670 ;;
3671 "")
3672 # If it fails, then pretend we aren't using GCC.
3673 ac_prog=ld
3674 ;;
3675 *)
3676 # If it is relative, then search for the first ld in PATH.
3677 with_gnu_ld=unknown
3678 ;;
3679 esac
3680elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003682$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003683else
drhf922ca42015-05-14 15:39:18 +00003684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003685$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003686fi
drhf922ca42015-05-14 15:39:18 +00003687if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003688 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003689else
3690 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003692 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003693 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003694 test -z "$ac_dir" && ac_dir=.
3695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696 lt_cv_path_LD="$ac_dir/$ac_prog"
3697 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003698 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003699 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3701 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003702 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003703 ;;
3704 *)
drh71eb93e2001-09-28 01:34:43 +00003705 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003706 ;;
3707 esac
drh71eb93e2001-09-28 01:34:43 +00003708 fi
3709 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003710 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003711else
3712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3713fi
3714fi
3715
3716LD="$lt_cv_path_LD"
3717if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003719$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003720else
drhf922ca42015-05-14 15:39:18 +00003721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003722$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003723fi
drhf922ca42015-05-14 15:39:18 +00003724test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003726$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003727if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003728 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003729else
vapier7f19c022007-02-17 14:46:31 +00003730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003731case `$LD -v 2>&1 </dev/null` in
3732*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003733 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003734 ;;
3735*)
drh71eb93e2001-09-28 01:34:43 +00003736 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003737 ;;
3738esac
drh71eb93e2001-09-28 01:34:43 +00003739fi
drhf922ca42015-05-14 15:39:18 +00003740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003741$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003742with_gnu_ld=$lt_cv_prog_gnu_ld
3743
a.rottmann84e63352003-03-24 09:42:16 +00003744
drh71eb93e2001-09-28 01:34:43 +00003745
mlcreech636a9952008-05-05 22:52:56 +00003746
3747
3748
3749
3750
3751
drhf922ca42015-05-14 15:39:18 +00003752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003753$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003754if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003755 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003756else
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3759 lt_cv_path_NM="$NM"
3760else
vapier7f19c022007-02-17 14:46:31 +00003761 lt_nm_to_check="${ac_tool_prefix}nm"
3762 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3763 lt_nm_to_check="$lt_nm_to_check nm"
3764 fi
3765 for lt_tmp_nm in $lt_nm_to_check; do
3766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3767 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768 IFS="$lt_save_ifs"
3769 test -z "$ac_dir" && ac_dir=.
3770 tmp_nm="$ac_dir/$lt_tmp_nm"
3771 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3772 # Check to see if the nm accepts a BSD-compat flag.
3773 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3774 # nm: unknown option "B" ignored
3775 # Tru64's nm complains that /dev/null is an invalid object file
3776 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3777 */dev/null* | *'Invalid file or object type'*)
3778 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003779 break
3780 ;;
3781 *)
vapier7f19c022007-02-17 14:46:31 +00003782 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3783 */dev/null*)
3784 lt_cv_path_NM="$tmp_nm -p"
3785 break
3786 ;;
3787 *)
3788 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3789 continue # so that we can try to find one that supports BSD flags
3790 ;;
3791 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003792 ;;
3793 esac
vapier7f19c022007-02-17 14:46:31 +00003794 fi
3795 done
3796 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003797 done
mlcreech636a9952008-05-05 22:52:56 +00003798 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003799fi
3800fi
drhf922ca42015-05-14 15:39:18 +00003801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003802$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003803if test "$lt_cv_path_NM" != "no"; then
3804 NM="$lt_cv_path_NM"
3805else
3806 # Didn't find any BSD compatible name lister, look for dumpbin.
3807 if test -n "$ac_tool_prefix"; then
3808 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3809 do
3810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003813$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003814if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003815 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003816else
3817 if test -n "$DUMPBIN"; then
3818 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003827 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003829 break 2
3830 fi
3831done
drhf922ca42015-05-14 15:39:18 +00003832 done
drh8b727472009-01-19 18:18:40 +00003833IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003834
mlcreech636a9952008-05-05 22:52:56 +00003835fi
3836fi
3837DUMPBIN=$ac_cv_prog_DUMPBIN
3838if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003840$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003841else
drhf922ca42015-05-14 15:39:18 +00003842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003843$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003844fi
3845
drh8b727472009-01-19 18:18:40 +00003846
mlcreech636a9952008-05-05 22:52:56 +00003847 test -n "$DUMPBIN" && break
3848 done
3849fi
3850if test -z "$DUMPBIN"; then
3851 ac_ct_DUMPBIN=$DUMPBIN
3852 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3853do
3854 # Extract the first word of "$ac_prog", so it can be a program name with args.
3855set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003857$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003858if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003859 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003860else
3861 if test -n "$ac_ct_DUMPBIN"; then
3862 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003871 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003873 break 2
3874 fi
3875done
drhf922ca42015-05-14 15:39:18 +00003876 done
drh8b727472009-01-19 18:18:40 +00003877IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003878
3879fi
3880fi
3881ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3882if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003884$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003885else
drhf922ca42015-05-14 15:39:18 +00003886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003887$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003888fi
3889
drh8b727472009-01-19 18:18:40 +00003890
mlcreech636a9952008-05-05 22:52:56 +00003891 test -n "$ac_ct_DUMPBIN" && break
3892done
3893
drh8b727472009-01-19 18:18:40 +00003894 if test "x$ac_ct_DUMPBIN" = x; then
3895 DUMPBIN=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898yes:)
drhf922ca42015-05-14 15:39:18 +00003899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003901ac_tool_warned=yes ;;
3902esac
3903 DUMPBIN=$ac_ct_DUMPBIN
3904 fi
mlcreech636a9952008-05-05 22:52:56 +00003905fi
3906
3907
3908 if test "$DUMPBIN" != ":"; then
3909 NM="$DUMPBIN"
3910 fi
3911fi
3912test -z "$NM" && NM=nm
3913
3914
3915
3916
3917
3918
drhf922ca42015-05-14 15:39:18 +00003919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003920$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003921if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003922 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003923else
3924 lt_cv_nm_interface="BSD nm"
3925 echo "int some_variable = 0;" > conftest.$ac_ext
drhe44b8352015-10-30 14:25:57 +00003926 (eval echo "\"\$as_me:3926: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003927 (eval "$ac_compile" 2>conftest.err)
3928 cat conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00003929 (eval echo "\"\$as_me:3929: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003930 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3931 cat conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00003932 (eval echo "\"\$as_me:3932: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003933 cat conftest.out >&5
3934 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3935 lt_cv_nm_interface="MS dumpbin"
3936 fi
3937 rm -f conftest*
3938fi
drhf922ca42015-05-14 15:39:18 +00003939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003940$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003941
drhf922ca42015-05-14 15:39:18 +00003942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003943$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003944LN_S=$as_ln_s
3945if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003947$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003948else
drhf922ca42015-05-14 15:39:18 +00003949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003950$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003951fi
3952
mlcreech636a9952008-05-05 22:52:56 +00003953# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003955$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003956if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003957 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003958else
3959 i=0
3960 teststring="ABCD"
3961
3962 case $build_os in
3963 msdosdjgpp*)
3964 # On DJGPP, this test can blow up pretty badly due to problems in libc
3965 # (any single argument exceeding 2000 bytes causes a buffer overrun
3966 # during glob expansion). Even if it were fixed, the result of this
3967 # check would be larger than it should be.
3968 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3969 ;;
3970
3971 gnu*)
3972 # Under GNU Hurd, this test is not required because there is
3973 # no limit to the length of command line arguments.
3974 # Libtool will interpret -1 as no limit whatsoever
3975 lt_cv_sys_max_cmd_len=-1;
3976 ;;
3977
vapier6acb2cf2009-01-28 04:46:28 +00003978 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003979 # On Win9x/ME, this test blows up -- it succeeds, but takes
3980 # about 5 minutes as the teststring grows exponentially.
3981 # Worse, since 9x/ME are not pre-emptively multitasking,
3982 # you end up with a "frozen" computer, even though with patience
3983 # the test eventually succeeds (with a max line length of 256k).
3984 # Instead, let's just punt: use the minimum linelength reported by
3985 # all of the supported platforms: 8192 (on NT/2K/XP).
3986 lt_cv_sys_max_cmd_len=8192;
3987 ;;
3988
3989 amigaos*)
3990 # On AmigaOS with pdksh, this test takes hours, literally.
3991 # So we just punt and use a minimum line length of 8192.
3992 lt_cv_sys_max_cmd_len=8192;
3993 ;;
3994
3995 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3996 # This has been around since 386BSD, at least. Likely further.
3997 if test -x /sbin/sysctl; then
3998 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3999 elif test -x /usr/sbin/sysctl; then
4000 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4001 else
4002 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4003 fi
4004 # And add a safety zone
4005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4007 ;;
4008
4009 interix*)
4010 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4011 lt_cv_sys_max_cmd_len=196608
4012 ;;
4013
4014 osf*)
4015 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4016 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4017 # nice to cause kernel panics so lets avoid the loop below.
4018 # First set a reasonable default.
4019 lt_cv_sys_max_cmd_len=16384
4020 #
4021 if test -x /sbin/sysconfig; then
4022 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4023 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4024 esac
4025 fi
4026 ;;
4027 sco3.2v5*)
4028 lt_cv_sys_max_cmd_len=102400
4029 ;;
4030 sysv5* | sco5v6* | sysv4.2uw2*)
4031 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4032 if test -n "$kargmax"; then
4033 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4034 else
4035 lt_cv_sys_max_cmd_len=32768
4036 fi
4037 ;;
4038 *)
4039 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4040 if test -n "$lt_cv_sys_max_cmd_len"; then
4041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4043 else
4044 # Make teststring a little bigger before we do anything with it.
4045 # a 1K string should be a reasonable start.
4046 for i in 1 2 3 4 5 6 7 8 ; do
4047 teststring=$teststring$teststring
4048 done
4049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4050 # If test is not a shell built-in, we'll probably end up computing a
4051 # maximum length that is only half of the actual maximum length, but
4052 # we can't tell.
4053 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4054 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4055 test $i != 17 # 1/2 MB should be enough
4056 do
4057 i=`expr $i + 1`
4058 teststring=$teststring$teststring
4059 done
4060 # Only check the string length outside the loop.
4061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4062 teststring=
4063 # Add a significant safety factor because C++ compilers can tack on
4064 # massive amounts of additional arguments before passing them to the
4065 # linker. It appears as though 1/2 is a usable value.
4066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4067 fi
4068 ;;
4069 esac
4070
4071fi
4072
4073if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004075$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004076else
drhf922ca42015-05-14 15:39:18 +00004077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004078$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004079fi
4080max_cmd_len=$lt_cv_sys_max_cmd_len
4081
4082
4083
4084
4085
4086
4087: ${CP="cp -f"}
4088: ${MV="mv -f"}
4089: ${RM="rm -f"}
4090
drhf922ca42015-05-14 15:39:18 +00004091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004092$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004093# Try some XSI features
4094xsi_shell=no
4095( _lt_dummy="a/b/c"
4096 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4097 = c,a/b,, \
4098 && eval 'test $(( 1 + 1 )) -eq 2 \
4099 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4100 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004102$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004103
4104
drhf922ca42015-05-14 15:39:18 +00004105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004106$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004107lt_shell_append=no
4108( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4109 >/dev/null 2>&1 \
4110 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004112$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004113
4114
4115if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4116 lt_unset=unset
4117else
4118 lt_unset=false
4119fi
4120
4121
4122
4123
4124
4125# test EBCDIC or ASCII
4126case `echo X|tr X '\101'` in
4127 A) # ASCII based system
4128 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4129 lt_SP2NL='tr \040 \012'
4130 lt_NL2SP='tr \015\012 \040\040'
4131 ;;
4132 *) # EBCDIC based system
4133 lt_SP2NL='tr \100 \n'
4134 lt_NL2SP='tr \r\n \100\100'
4135 ;;
4136esac
4137
4138
4139
4140
4141
4142
4143
4144
4145
drhf922ca42015-05-14 15:39:18 +00004146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004147$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004148if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004149 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004150else
4151 lt_cv_ld_reload_flag='-r'
4152fi
drhf922ca42015-05-14 15:39:18 +00004153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004154$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004155reload_flag=$lt_cv_ld_reload_flag
4156case $reload_flag in
4157"" | " "*) ;;
4158*) reload_flag=" $reload_flag" ;;
4159esac
4160reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161case $host_os in
4162 darwin*)
4163 if test "$GCC" = yes; then
4164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4165 else
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167 fi
4168 ;;
4169esac
4170
4171
4172
4173
4174
4175
4176
4177
4178
vapier6acb2cf2009-01-28 04:46:28 +00004179if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4181set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004183$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004184if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004185 $as_echo_n "(cached) " >&6
4186else
4187 if test -n "$OBJDUMP"; then
4188 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4189else
4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191for as_dir in $PATH
4192do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004197 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004199 break 2
4200 fi
4201done
drhf922ca42015-05-14 15:39:18 +00004202 done
vapier6acb2cf2009-01-28 04:46:28 +00004203IFS=$as_save_IFS
4204
4205fi
4206fi
4207OBJDUMP=$ac_cv_prog_OBJDUMP
4208if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004210$as_echo "$OBJDUMP" >&6; }
4211else
drhf922ca42015-05-14 15:39:18 +00004212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004213$as_echo "no" >&6; }
4214fi
4215
4216
4217fi
4218if test -z "$ac_cv_prog_OBJDUMP"; then
4219 ac_ct_OBJDUMP=$OBJDUMP
4220 # Extract the first word of "objdump", so it can be a program name with args.
4221set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004223$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004224if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004225 $as_echo_n "(cached) " >&6
4226else
4227 if test -n "$ac_ct_OBJDUMP"; then
4228 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004237 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004239 break 2
4240 fi
4241done
drhf922ca42015-05-14 15:39:18 +00004242 done
vapier6acb2cf2009-01-28 04:46:28 +00004243IFS=$as_save_IFS
4244
4245fi
4246fi
4247ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4248if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004250$as_echo "$ac_ct_OBJDUMP" >&6; }
4251else
drhf922ca42015-05-14 15:39:18 +00004252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004253$as_echo "no" >&6; }
4254fi
4255
4256 if test "x$ac_ct_OBJDUMP" = x; then
4257 OBJDUMP="false"
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260yes:)
drhf922ca42015-05-14 15:39:18 +00004261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004263ac_tool_warned=yes ;;
4264esac
4265 OBJDUMP=$ac_ct_OBJDUMP
4266 fi
4267else
4268 OBJDUMP="$ac_cv_prog_OBJDUMP"
4269fi
4270
4271test -z "$OBJDUMP" && OBJDUMP=objdump
4272
4273
4274
4275
4276
4277
4278
4279
mlcreech636a9952008-05-05 22:52:56 +00004280
drhf922ca42015-05-14 15:39:18 +00004281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004282$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004283if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004284 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004285else
4286 lt_cv_file_magic_cmd='$MAGIC_CMD'
4287lt_cv_file_magic_test_file=
4288lt_cv_deplibs_check_method='unknown'
4289# Need to set the preceding variable on all platforms that support
4290# interlibrary dependencies.
4291# 'none' -- dependencies not supported.
4292# `unknown' -- same as none, but documents that we really don't know.
4293# 'pass_all' -- all dependencies passed with no checks.
4294# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004295# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004296# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004297# If you have `file' or equivalent on your system and you're not sure
4298# whether `pass_all' will *always* work, you probably want this one.
4299
4300case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004301aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305beos*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
vapier7f19c022007-02-17 14:46:31 +00004309bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4311 lt_cv_file_magic_cmd='/usr/bin/file -L'
4312 lt_cv_file_magic_test_file=/shlib/libc.so
4313 ;;
4314
a.rottmann9bc8b932004-02-29 15:18:31 +00004315cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004316 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004317 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004318 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004319 ;;
4320
4321mingw* | pw32*)
4322 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004323 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4324 # unless we find 'file', for example because we are cross-compiling.
4325 if ( file / ) >/dev/null 2>&1; then
4326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327 lt_cv_file_magic_cmd='func_win32_libid'
4328 else
4329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4330 lt_cv_file_magic_cmd='$OBJDUMP -f'
4331 fi
drh71eb93e2001-09-28 01:34:43 +00004332 ;;
4333
vapier6acb2cf2009-01-28 04:46:28 +00004334cegcc)
4335 # use the weaker test based on 'objdump'. See mingw*.
4336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4337 lt_cv_file_magic_cmd='$OBJDUMP -f'
4338 ;;
4339
drh71eb93e2001-09-28 01:34:43 +00004340darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004341 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004342 ;;
4343
mlcreech636a9952008-05-05 22:52:56 +00004344freebsd* | dragonfly*)
4345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004346 case $host_cpu in
4347 i*86 )
4348 # Not sure whether the presence of OpenBSD here was a mistake.
4349 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004350 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 +00004351 lt_cv_file_magic_cmd=/usr/bin/file
4352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4353 ;;
4354 esac
4355 else
4356 lt_cv_deplibs_check_method=pass_all
4357 fi
4358 ;;
4359
4360gnu*)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
a.rottmann9bc8b932004-02-29 15:18:31 +00004364hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004365 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004366 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004367 ia64*)
4368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4369 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4370 ;;
4371 hppa*64*)
4372 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]'
4373 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374 ;;
4375 *)
4376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4377 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4378 ;;
4379 esac
drh71eb93e2001-09-28 01:34:43 +00004380 ;;
4381
mlcreech636a9952008-05-05 22:52:56 +00004382interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004383 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385 ;;
4386
a.rottmann84e63352003-03-24 09:42:16 +00004387irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004388 case $LD in
4389 *-32|*"-32 ") libmagic=32-bit;;
4390 *-n32|*"-n32 ") libmagic=N32;;
4391 *-64|*"-64 ") libmagic=64-bit;;
4392 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004393 esac
drh71eb93e2001-09-28 01:34:43 +00004394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
4397# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004398linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004399 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004400 ;;
4401
vapier7f19c022007-02-17 14:46:31 +00004402netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004405 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004407 fi
4408 ;;
4409
4410newos6*)
4411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4412 lt_cv_file_magic_cmd=/usr/bin/file
4413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414 ;;
4415
mlcreech636a9952008-05-05 22:52:56 +00004416*nto* | *qnx*)
4417 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004418 ;;
4419
a.rottmann84e63352003-03-24 09:42:16 +00004420openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004423 else
vapier7f19c022007-02-17 14:46:31 +00004424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004425 fi
drh71eb93e2001-09-28 01:34:43 +00004426 ;;
4427
4428osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431
mlcreech636a9952008-05-05 22:52:56 +00004432rdos*)
4433 lt_cv_deplibs_check_method=pass_all
4434 ;;
4435
drh71eb93e2001-09-28 01:34:43 +00004436solaris*)
4437 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004438 ;;
4439
mlcreech636a9952008-05-05 22:52:56 +00004440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
vapier7f19c022007-02-17 14:46:31 +00004444sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004445 case $host_vendor in
4446 motorola)
4447 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]'
4448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4449 ;;
4450 ncr)
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
4453 sequent)
4454 lt_cv_file_magic_cmd='/bin/file'
4455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4456 ;;
4457 sni)
4458 lt_cv_file_magic_cmd='/bin/file'
4459 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4460 lt_cv_file_magic_test_file=/lib/libc.so
4461 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004462 siemens)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
vapier7f19c022007-02-17 14:46:31 +00004465 pc)
4466 lt_cv_deplibs_check_method=pass_all
4467 ;;
drh71eb93e2001-09-28 01:34:43 +00004468 esac
4469 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004470
mlcreech636a9952008-05-05 22:52:56 +00004471tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004472 lt_cv_deplibs_check_method=pass_all
4473 ;;
drh71eb93e2001-09-28 01:34:43 +00004474esac
4475
4476fi
drhf922ca42015-05-14 15:39:18 +00004477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004478$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004479file_magic_cmd=$lt_cv_file_magic_cmd
4480deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004481test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004482
drh71eb93e2001-09-28 01:34:43 +00004483
drh71eb93e2001-09-28 01:34:43 +00004484
drh71eb93e2001-09-28 01:34:43 +00004485
mlcreech636a9952008-05-05 22:52:56 +00004486
4487
4488
4489
4490
4491
4492
4493
4494if test -n "$ac_tool_prefix"; then
4495 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4496set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004498$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004499if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004500 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004501else
4502 if test -n "$AR"; then
4503 ac_cv_prog_AR="$AR" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004512 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004514 break 2
4515 fi
4516done
drhf922ca42015-05-14 15:39:18 +00004517 done
drh8b727472009-01-19 18:18:40 +00004518IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004519
4520fi
4521fi
4522AR=$ac_cv_prog_AR
4523if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004525$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004526else
drhf922ca42015-05-14 15:39:18 +00004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004528$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004529fi
4530
drh8b727472009-01-19 18:18:40 +00004531
mlcreech636a9952008-05-05 22:52:56 +00004532fi
4533if test -z "$ac_cv_prog_AR"; then
4534 ac_ct_AR=$AR
4535 # Extract the first word of "ar", so it can be a program name with args.
4536set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004538$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004539if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004540 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004541else
4542 if test -n "$ac_ct_AR"; then
4543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004552 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004554 break 2
4555 fi
4556done
drhf922ca42015-05-14 15:39:18 +00004557 done
drh8b727472009-01-19 18:18:40 +00004558IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004559
4560fi
4561fi
4562ac_ct_AR=$ac_cv_prog_ac_ct_AR
4563if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004565$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004566else
drhf922ca42015-05-14 15:39:18 +00004567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004568$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004569fi
4570
drh8b727472009-01-19 18:18:40 +00004571 if test "x$ac_ct_AR" = x; then
4572 AR="false"
4573 else
4574 case $cross_compiling:$ac_tool_warned in
4575yes:)
drhf922ca42015-05-14 15:39:18 +00004576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004578ac_tool_warned=yes ;;
4579esac
4580 AR=$ac_ct_AR
4581 fi
mlcreech636a9952008-05-05 22:52:56 +00004582else
4583 AR="$ac_cv_prog_AR"
4584fi
4585
4586test -z "$AR" && AR=ar
4587test -z "$AR_FLAGS" && AR_FLAGS=cru
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4601set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004603$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004604if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004605 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004606else
4607 if test -n "$STRIP"; then
4608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004619 break 2
4620 fi
4621done
drhf922ca42015-05-14 15:39:18 +00004622 done
drh8b727472009-01-19 18:18:40 +00004623IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004624
4625fi
4626fi
4627STRIP=$ac_cv_prog_STRIP
4628if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004630$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004631else
drhf922ca42015-05-14 15:39:18 +00004632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004633$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004634fi
4635
drh8b727472009-01-19 18:18:40 +00004636
mlcreech636a9952008-05-05 22:52:56 +00004637fi
4638if test -z "$ac_cv_prog_STRIP"; then
4639 ac_ct_STRIP=$STRIP
4640 # Extract the first word of "strip", so it can be a program name with args.
4641set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004643$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004644if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004645 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004646else
4647 if test -n "$ac_ct_STRIP"; then
4648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004657 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004659 break 2
4660 fi
4661done
drhf922ca42015-05-14 15:39:18 +00004662 done
drh8b727472009-01-19 18:18:40 +00004663IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004664
4665fi
4666fi
4667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4668if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004670$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004671else
drhf922ca42015-05-14 15:39:18 +00004672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004673$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004674fi
4675
drh8b727472009-01-19 18:18:40 +00004676 if test "x$ac_ct_STRIP" = x; then
4677 STRIP=":"
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680yes:)
drhf922ca42015-05-14 15:39:18 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004683ac_tool_warned=yes ;;
4684esac
4685 STRIP=$ac_ct_STRIP
4686 fi
mlcreech636a9952008-05-05 22:52:56 +00004687else
4688 STRIP="$ac_cv_prog_STRIP"
4689fi
4690
4691test -z "$STRIP" && STRIP=:
4692
4693
4694
4695
4696
4697
4698if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4700set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004702$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004703if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004704 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004705else
4706 if test -n "$RANLIB"; then
4707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4708else
4709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004718 break 2
4719 fi
4720done
drhf922ca42015-05-14 15:39:18 +00004721 done
drh8b727472009-01-19 18:18:40 +00004722IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004723
4724fi
4725fi
4726RANLIB=$ac_cv_prog_RANLIB
4727if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004729$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004730else
drhf922ca42015-05-14 15:39:18 +00004731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004732$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004733fi
4734
drh8b727472009-01-19 18:18:40 +00004735
mlcreech636a9952008-05-05 22:52:56 +00004736fi
4737if test -z "$ac_cv_prog_RANLIB"; then
4738 ac_ct_RANLIB=$RANLIB
4739 # Extract the first word of "ranlib", so it can be a program name with args.
4740set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004742$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004743if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004744 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004745else
4746 if test -n "$ac_ct_RANLIB"; then
4747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004756 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004758 break 2
4759 fi
4760done
drhf922ca42015-05-14 15:39:18 +00004761 done
drh8b727472009-01-19 18:18:40 +00004762IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004763
4764fi
4765fi
4766ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4767if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004769$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004770else
drhf922ca42015-05-14 15:39:18 +00004771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004772$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004773fi
4774
drh8b727472009-01-19 18:18:40 +00004775 if test "x$ac_ct_RANLIB" = x; then
4776 RANLIB=":"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779yes:)
drhf922ca42015-05-14 15:39:18 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004782ac_tool_warned=yes ;;
4783esac
4784 RANLIB=$ac_ct_RANLIB
4785 fi
mlcreech636a9952008-05-05 22:52:56 +00004786else
4787 RANLIB="$ac_cv_prog_RANLIB"
4788fi
4789
4790test -z "$RANLIB" && RANLIB=:
4791
4792
4793
4794
4795
4796
4797# Determine commands to create old-style static archives.
4798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4799old_postinstall_cmds='chmod 644 $oldlib'
4800old_postuninstall_cmds=
4801
4802if test -n "$RANLIB"; then
4803 case $host_os in
4804 openbsd*)
4805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4806 ;;
4807 *)
4808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4809 ;;
4810 esac
4811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4812fi
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
a.rottmann9bc8b932004-02-29 15:18:31 +00004847# If no C compiler was specified, use CC.
4848LTCC=${LTCC-"$CC"}
4849
vapier7f19c022007-02-17 14:46:31 +00004850# If no C compiler flags were specified, use CFLAGS.
4851LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4852
a.rottmann9bc8b932004-02-29 15:18:31 +00004853# Allow CC to be a program name with arguments.
4854compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004855
drh71eb93e2001-09-28 01:34:43 +00004856
mlcreech636a9952008-05-05 22:52:56 +00004857# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004859$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004860if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004861 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004862else
4863
4864# These are sane defaults that work on at least a few old systems.
4865# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4866
4867# Character class describing NM global symbol codes.
4868symcode='[BCDEGRST]'
4869
4870# Regexp to match symbols that can be accessed directly from C.
4871sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4872
4873# Define system-specific variables.
4874case $host_os in
4875aix*)
4876 symcode='[BCDT]'
4877 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004878cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004879 symcode='[ABCDGISTW]'
4880 ;;
4881hpux*)
4882 if test "$host_cpu" = ia64; then
4883 symcode='[ABCDEGRST]'
4884 fi
4885 ;;
4886irix* | nonstopux*)
4887 symcode='[BCDEGRST]'
4888 ;;
4889osf*)
4890 symcode='[BCDEGQRST]'
4891 ;;
4892solaris*)
4893 symcode='[BDRT]'
4894 ;;
4895sco3.2v5*)
4896 symcode='[DT]'
4897 ;;
4898sysv4.2uw2*)
4899 symcode='[DT]'
4900 ;;
4901sysv5* | sco5v6* | unixware* | OpenUNIX*)
4902 symcode='[ABDT]'
4903 ;;
4904sysv4)
4905 symcode='[DFNSTU]'
4906 ;;
4907esac
4908
4909# If we're using GNU nm, then use its standard symbol codes.
4910case `$NM -V 2>&1` in
4911*GNU* | *'with BFD'*)
4912 symcode='[ABCDGIRSTW]' ;;
4913esac
4914
4915# Transform an extracted symbol line into a proper C declaration.
4916# Some systems (esp. on ia64) link data and code symbols differently,
4917# so use this general approach.
4918lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4919
4920# Transform an extracted symbol line into symbol name and symbol address
4921lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4922lt_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'"
4923
4924# Handle CRLF in mingw tool chain
4925opt_cr=
4926case $build_os in
4927mingw*)
4928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4929 ;;
4930esac
4931
4932# Try without a prefix underscore, then with it.
4933for ac_symprfx in "" "_"; do
4934
4935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4936 symxfrm="\\1 $ac_symprfx\\2 \\2"
4937
4938 # Write the raw and C identifiers.
4939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4940 # Fake it for dumpbin and say T for any non-static function
4941 # and D for any global variable.
4942 # Also find C++ and __fastcall symbols from MSVC++,
4943 # which start with @ or ?.
4944 lt_cv_sys_global_symbol_pipe="$AWK '"\
4945" {last_section=section; section=\$ 3};"\
4946" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4947" \$ 0!~/External *\|/{next};"\
4948" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4949" {if(hide[section]) next};"\
4950" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4951" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4952" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4953" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4954" ' prfx=^$ac_symprfx"
4955 else
4956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4957 fi
4958
4959 # Check to see that the pipe works correctly.
4960 pipe_works=no
4961
4962 rm -f conftest*
4963 cat > conftest.$ac_ext <<_LT_EOF
4964#ifdef __cplusplus
4965extern "C" {
4966#endif
4967char nm_test_var;
4968void nm_test_func(void);
4969void nm_test_func(void){}
4970#ifdef __cplusplus
4971}
4972#endif
4973int main(){nm_test_var='a';nm_test_func();return(0);}
4974_LT_EOF
4975
drhf922ca42015-05-14 15:39:18 +00004976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004977 (eval $ac_compile) 2>&5
4978 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004981 # Now try to grab the symbols.
4982 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004983 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 +00004984 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4985 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004988 # Try sorting and uniquifying the output.
4989 if sort "$nlist" | uniq > "$nlist"T; then
4990 mv -f "$nlist"T "$nlist"
4991 else
4992 rm -f "$nlist"T
4993 fi
4994
4995 # Make sure that we snagged all the symbols we need.
4996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4998 cat <<_LT_EOF > conftest.$ac_ext
4999#ifdef __cplusplus
5000extern "C" {
5001#endif
5002
5003_LT_EOF
5004 # Now generate the symbol file.
5005 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5006
5007 cat <<_LT_EOF >> conftest.$ac_ext
5008
5009/* The mapping between symbol names and symbols. */
5010const struct {
5011 const char *name;
5012 void *address;
5013}
5014lt__PROGRAM__LTX_preloaded_symbols[] =
5015{
5016 { "@PROGRAM@", (void *) 0 },
5017_LT_EOF
5018 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5019 cat <<\_LT_EOF >> conftest.$ac_ext
5020 {0, (void *) 0}
5021};
5022
5023/* This works around a problem in FreeBSD linker */
5024#ifdef FREEBSD_WORKAROUND
5025static const void *lt_preloaded_setup() {
5026 return lt__PROGRAM__LTX_preloaded_symbols;
5027}
5028#endif
5029
5030#ifdef __cplusplus
5031}
5032#endif
5033_LT_EOF
5034 # Now try linking the two files.
5035 mv conftest.$ac_objext conftstm.$ac_objext
5036 lt_save_LIBS="$LIBS"
5037 lt_save_CFLAGS="$CFLAGS"
5038 LIBS="conftstm.$ac_objext"
5039 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005041 (eval $ac_link) 2>&5
5042 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005045 pipe_works=yes
5046 fi
5047 LIBS="$lt_save_LIBS"
5048 CFLAGS="$lt_save_CFLAGS"
5049 else
5050 echo "cannot find nm_test_func in $nlist" >&5
5051 fi
5052 else
5053 echo "cannot find nm_test_var in $nlist" >&5
5054 fi
5055 else
5056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5057 fi
5058 else
5059 echo "$progname: failed program was:" >&5
5060 cat conftest.$ac_ext >&5
5061 fi
5062 rm -rf conftest* conftst*
5063
5064 # Do not use the global_symbol_pipe unless it works.
5065 if test "$pipe_works" = yes; then
5066 break
5067 else
5068 lt_cv_sys_global_symbol_pipe=
5069 fi
5070done
5071
5072fi
5073
5074if test -z "$lt_cv_sys_global_symbol_pipe"; then
5075 lt_cv_sys_global_symbol_to_cdecl=
5076fi
5077if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005079$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005080else
drhf922ca42015-05-14 15:39:18 +00005081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005082$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005083fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
drh8b727472009-01-19 18:18:40 +00005107# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005108if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005109 enableval=$enable_libtool_lock;
5110fi
drh71eb93e2001-09-28 01:34:43 +00005111
a.rottmann9bc8b932004-02-29 15:18:31 +00005112test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005113
a.rottmann9bc8b932004-02-29 15:18:31 +00005114# Some flags need to be propagated to the compiler or linker for good
5115# libtool support.
5116case $host in
5117ia64-*-hpux*)
5118 # Find out which ABI we are using.
5119 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005121 (eval $ac_compile) 2>&5
5122 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005125 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005126 *ELF-32*)
5127 HPUX_IA64_MODE="32"
5128 ;;
5129 *ELF-64*)
5130 HPUX_IA64_MODE="64"
5131 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005132 esac
5133 fi
5134 rm -rf conftest*
5135 ;;
5136*-*-irix6*)
5137 # Find out which ABI we are using.
drhe44b8352015-10-30 14:25:57 +00005138 echo '#line 5138 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005140 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005141 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005144 if test "$lt_cv_prog_gnu_ld" = yes; then
5145 case `/usr/bin/file conftest.$ac_objext` in
5146 *32-bit*)
5147 LD="${LD-ld} -melf32bsmip"
5148 ;;
5149 *N32*)
5150 LD="${LD-ld} -melf32bmipn32"
5151 ;;
5152 *64-bit*)
5153 LD="${LD-ld} -melf64bmip"
5154 ;;
5155 esac
5156 else
5157 case `/usr/bin/file conftest.$ac_objext` in
5158 *32-bit*)
5159 LD="${LD-ld} -32"
5160 ;;
5161 *N32*)
5162 LD="${LD-ld} -n32"
5163 ;;
5164 *64-bit*)
5165 LD="${LD-ld} -64"
5166 ;;
5167 esac
5168 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005169 fi
5170 rm -rf conftest*
5171 ;;
drh71eb93e2001-09-28 01:34:43 +00005172
mlcreech636a9952008-05-05 22:52:56 +00005173x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5174s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005175 # Find out which ABI we are using.
5176 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005178 (eval $ac_compile) 2>&5
5179 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005182 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005183 *32-bit*)
5184 case $host in
5185 x86_64-*kfreebsd*-gnu)
5186 LD="${LD-ld} -m elf_i386_fbsd"
5187 ;;
5188 x86_64-*linux*)
5189 LD="${LD-ld} -m elf_i386"
5190 ;;
5191 ppc64-*linux*|powerpc64-*linux*)
5192 LD="${LD-ld} -m elf32ppclinux"
5193 ;;
5194 s390x-*linux*)
5195 LD="${LD-ld} -m elf_s390"
5196 ;;
5197 sparc64-*linux*)
5198 LD="${LD-ld} -m elf32_sparc"
5199 ;;
5200 esac
5201 ;;
5202 *64-bit*)
5203 case $host in
5204 x86_64-*kfreebsd*-gnu)
5205 LD="${LD-ld} -m elf_x86_64_fbsd"
5206 ;;
5207 x86_64-*linux*)
5208 LD="${LD-ld} -m elf_x86_64"
5209 ;;
5210 ppc*-*linux*|powerpc*-*linux*)
5211 LD="${LD-ld} -m elf64ppc"
5212 ;;
5213 s390*-*linux*|s390*-*tpf*)
5214 LD="${LD-ld} -m elf64_s390"
5215 ;;
5216 sparc*-*linux*)
5217 LD="${LD-ld} -m elf64_sparc"
5218 ;;
5219 esac
5220 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005221 esac
5222 fi
5223 rm -rf conftest*
5224 ;;
drh71eb93e2001-09-28 01:34:43 +00005225
a.rottmann9bc8b932004-02-29 15:18:31 +00005226*-*-sco3.2v5*)
5227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5228 SAVE_CFLAGS="$CFLAGS"
5229 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005231$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005232if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005233 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005234else
5235 ac_ext=c
5236ac_cpp='$CPP $CPPFLAGS'
5237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005240
drhf922ca42015-05-14 15:39:18 +00005241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005242/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005243
a.rottmann9bc8b932004-02-29 15:18:31 +00005244int
5245main ()
drh71eb93e2001-09-28 01:34:43 +00005246{
drh71eb93e2001-09-28 01:34:43 +00005247
a.rottmann9bc8b932004-02-29 15:18:31 +00005248 ;
5249 return 0;
drh71eb93e2001-09-28 01:34:43 +00005250}
a.rottmann9bc8b932004-02-29 15:18:31 +00005251_ACEOF
drhf922ca42015-05-14 15:39:18 +00005252if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005253 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005254else
drhf922ca42015-05-14 15:39:18 +00005255 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005256fi
drhf922ca42015-05-14 15:39:18 +00005257rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005259 ac_ext=c
5260ac_cpp='$CPP $CPPFLAGS'
5261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
drh71eb93e2001-09-28 01:34:43 +00005265fi
drhf922ca42015-05-14 15:39:18 +00005266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005267$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5270 CFLAGS="$SAVE_CFLAGS"
5271 fi
5272 ;;
vapier7f19c022007-02-17 14:46:31 +00005273sparc*-*solaris*)
5274 # Find out which ABI we are using.
5275 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005277 (eval $ac_compile) 2>&5
5278 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5280 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005281 case `/usr/bin/file conftest.o` in
5282 *64-bit*)
5283 case $lt_cv_prog_gnu_ld in
5284 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005285 *)
5286 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5287 LD="${LD-ld} -64"
5288 fi
5289 ;;
vapier7f19c022007-02-17 14:46:31 +00005290 esac
5291 ;;
5292 esac
5293 fi
5294 rm -rf conftest*
5295 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005296esac
5297
5298need_locks="$enable_libtool_lock"
5299
drh71eb93e2001-09-28 01:34:43 +00005300
mlcreech636a9952008-05-05 22:52:56 +00005301 case $host_os in
5302 rhapsody* | darwin*)
5303 if test -n "$ac_tool_prefix"; then
5304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5305set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005307$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005308if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005309 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005310else
5311 if test -n "$DSYMUTIL"; then
5312 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005321 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005323 break 2
5324 fi
5325done
drhf922ca42015-05-14 15:39:18 +00005326 done
drh8b727472009-01-19 18:18:40 +00005327IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005328
5329fi
5330fi
5331DSYMUTIL=$ac_cv_prog_DSYMUTIL
5332if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005334$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005335else
drhf922ca42015-05-14 15:39:18 +00005336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005337$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005338fi
5339
drh8b727472009-01-19 18:18:40 +00005340
mlcreech636a9952008-05-05 22:52:56 +00005341fi
5342if test -z "$ac_cv_prog_DSYMUTIL"; then
5343 ac_ct_DSYMUTIL=$DSYMUTIL
5344 # Extract the first word of "dsymutil", so it can be a program name with args.
5345set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005347$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005348if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005349 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005350else
5351 if test -n "$ac_ct_DSYMUTIL"; then
5352 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005361 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005363 break 2
5364 fi
5365done
drhf922ca42015-05-14 15:39:18 +00005366 done
drh8b727472009-01-19 18:18:40 +00005367IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005368
5369fi
5370fi
5371ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5372if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005374$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005375else
drhf922ca42015-05-14 15:39:18 +00005376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005377$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005378fi
5379
drh8b727472009-01-19 18:18:40 +00005380 if test "x$ac_ct_DSYMUTIL" = x; then
5381 DSYMUTIL=":"
5382 else
5383 case $cross_compiling:$ac_tool_warned in
5384yes:)
drhf922ca42015-05-14 15:39:18 +00005385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005387ac_tool_warned=yes ;;
5388esac
5389 DSYMUTIL=$ac_ct_DSYMUTIL
5390 fi
mlcreech636a9952008-05-05 22:52:56 +00005391else
5392 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5393fi
5394
5395 if test -n "$ac_tool_prefix"; then
5396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5397set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005399$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005400if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005401 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005402else
5403 if test -n "$NMEDIT"; then
5404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5405else
5406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407for as_dir in $PATH
5408do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005415 break 2
5416 fi
5417done
drhf922ca42015-05-14 15:39:18 +00005418 done
drh8b727472009-01-19 18:18:40 +00005419IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005420
5421fi
5422fi
5423NMEDIT=$ac_cv_prog_NMEDIT
5424if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005426$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005427else
drhf922ca42015-05-14 15:39:18 +00005428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005429$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005430fi
5431
drh8b727472009-01-19 18:18:40 +00005432
mlcreech636a9952008-05-05 22:52:56 +00005433fi
5434if test -z "$ac_cv_prog_NMEDIT"; then
5435 ac_ct_NMEDIT=$NMEDIT
5436 # Extract the first word of "nmedit", so it can be a program name with args.
5437set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005439$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005440if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005441 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005442else
5443 if test -n "$ac_ct_NMEDIT"; then
5444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5445else
5446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447for as_dir in $PATH
5448do
5449 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005453 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005455 break 2
5456 fi
5457done
drhf922ca42015-05-14 15:39:18 +00005458 done
drh8b727472009-01-19 18:18:40 +00005459IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005460
5461fi
5462fi
5463ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5464if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005466$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005467else
drhf922ca42015-05-14 15:39:18 +00005468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005469$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005470fi
5471
drh8b727472009-01-19 18:18:40 +00005472 if test "x$ac_ct_NMEDIT" = x; then
5473 NMEDIT=":"
5474 else
5475 case $cross_compiling:$ac_tool_warned in
5476yes:)
drhf922ca42015-05-14 15:39:18 +00005477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005479ac_tool_warned=yes ;;
5480esac
5481 NMEDIT=$ac_ct_NMEDIT
5482 fi
mlcreech636a9952008-05-05 22:52:56 +00005483else
5484 NMEDIT="$ac_cv_prog_NMEDIT"
5485fi
5486
5487 if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5489set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005491$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005492if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005493 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005494else
5495 if test -n "$LIPO"; then
5496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005507 break 2
5508 fi
5509done
drhf922ca42015-05-14 15:39:18 +00005510 done
drh8b727472009-01-19 18:18:40 +00005511IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005512
5513fi
5514fi
5515LIPO=$ac_cv_prog_LIPO
5516if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005518$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005519else
drhf922ca42015-05-14 15:39:18 +00005520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005521$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005522fi
5523
drh8b727472009-01-19 18:18:40 +00005524
mlcreech636a9952008-05-05 22:52:56 +00005525fi
5526if test -z "$ac_cv_prog_LIPO"; then
5527 ac_ct_LIPO=$LIPO
5528 # Extract the first word of "lipo", so it can be a program name with args.
5529set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005531$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005532if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005533 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005534else
5535 if test -n "$ac_ct_LIPO"; then
5536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005545 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005547 break 2
5548 fi
5549done
drhf922ca42015-05-14 15:39:18 +00005550 done
drh8b727472009-01-19 18:18:40 +00005551IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005552
5553fi
5554fi
5555ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5556if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005558$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005559else
drhf922ca42015-05-14 15:39:18 +00005560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005561$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005562fi
5563
drh8b727472009-01-19 18:18:40 +00005564 if test "x$ac_ct_LIPO" = x; then
5565 LIPO=":"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568yes:)
drhf922ca42015-05-14 15:39:18 +00005569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005571ac_tool_warned=yes ;;
5572esac
5573 LIPO=$ac_ct_LIPO
5574 fi
mlcreech636a9952008-05-05 22:52:56 +00005575else
5576 LIPO="$ac_cv_prog_LIPO"
5577fi
5578
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5581set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005583$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005584if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005585 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005586else
5587 if test -n "$OTOOL"; then
5588 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005599 break 2
5600 fi
5601done
drhf922ca42015-05-14 15:39:18 +00005602 done
drh8b727472009-01-19 18:18:40 +00005603IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005604
5605fi
5606fi
5607OTOOL=$ac_cv_prog_OTOOL
5608if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005610$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005611else
drhf922ca42015-05-14 15:39:18 +00005612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005613$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005614fi
5615
drh8b727472009-01-19 18:18:40 +00005616
mlcreech636a9952008-05-05 22:52:56 +00005617fi
5618if test -z "$ac_cv_prog_OTOOL"; then
5619 ac_ct_OTOOL=$OTOOL
5620 # Extract the first word of "otool", so it can be a program name with args.
5621set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005623$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005624if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005625 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005626else
5627 if test -n "$ac_ct_OTOOL"; then
5628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005637 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005639 break 2
5640 fi
5641done
drhf922ca42015-05-14 15:39:18 +00005642 done
drh8b727472009-01-19 18:18:40 +00005643IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005644
5645fi
5646fi
5647ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5648if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005650$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005651else
drhf922ca42015-05-14 15:39:18 +00005652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005653$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005654fi
5655
drh8b727472009-01-19 18:18:40 +00005656 if test "x$ac_ct_OTOOL" = x; then
5657 OTOOL=":"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660yes:)
drhf922ca42015-05-14 15:39:18 +00005661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005663ac_tool_warned=yes ;;
5664esac
5665 OTOOL=$ac_ct_OTOOL
5666 fi
mlcreech636a9952008-05-05 22:52:56 +00005667else
5668 OTOOL="$ac_cv_prog_OTOOL"
5669fi
5670
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005675$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005676if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005677 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005678else
5679 if test -n "$OTOOL64"; then
5680 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005689 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005691 break 2
5692 fi
5693done
drhf922ca42015-05-14 15:39:18 +00005694 done
drh8b727472009-01-19 18:18:40 +00005695IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005696
5697fi
5698fi
5699OTOOL64=$ac_cv_prog_OTOOL64
5700if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005702$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005703else
drhf922ca42015-05-14 15:39:18 +00005704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005705$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005706fi
5707
drh8b727472009-01-19 18:18:40 +00005708
mlcreech636a9952008-05-05 22:52:56 +00005709fi
5710if test -z "$ac_cv_prog_OTOOL64"; then
5711 ac_ct_OTOOL64=$OTOOL64
5712 # Extract the first word of "otool64", so it can be a program name with args.
5713set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005715$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005716if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005717 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005718else
5719 if test -n "$ac_ct_OTOOL64"; then
5720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5721else
5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723for as_dir in $PATH
5724do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005729 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005731 break 2
5732 fi
5733done
drhf922ca42015-05-14 15:39:18 +00005734 done
drh8b727472009-01-19 18:18:40 +00005735IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005736
5737fi
5738fi
5739ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5740if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005742$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005743else
drhf922ca42015-05-14 15:39:18 +00005744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005745$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005746fi
5747
drh8b727472009-01-19 18:18:40 +00005748 if test "x$ac_ct_OTOOL64" = x; then
5749 OTOOL64=":"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752yes:)
drhf922ca42015-05-14 15:39:18 +00005753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005755ac_tool_warned=yes ;;
5756esac
5757 OTOOL64=$ac_ct_OTOOL64
5758 fi
mlcreech636a9952008-05-05 22:52:56 +00005759else
5760 OTOOL64="$ac_cv_prog_OTOOL64"
5761fi
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
drhf922ca42015-05-14 15:39:18 +00005789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005790$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005791if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005792 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005793else
5794 lt_cv_apple_cc_single_mod=no
5795 if test -z "${LT_MULTI_MODULE}"; then
5796 # By default we will add the -single_module flag. You can override
5797 # by either setting the environment variable LT_MULTI_MODULE
5798 # non-empty at configure time, or by adding -multi_module to the
5799 # link flags.
5800 rm -rf libconftest.dylib*
5801 echo "int foo(void){return 1;}" > conftest.c
5802 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5803-dynamiclib -Wl,-single_module conftest.c" >&5
5804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5805 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5806 _lt_result=$?
5807 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5808 lt_cv_apple_cc_single_mod=yes
5809 else
5810 cat conftest.err >&5
5811 fi
5812 rm -rf libconftest.dylib*
5813 rm -f conftest.*
5814 fi
5815fi
drhf922ca42015-05-14 15:39:18 +00005816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005817$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005819$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005820if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005821 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005822else
5823 lt_cv_ld_exported_symbols_list=no
5824 save_LDFLAGS=$LDFLAGS
5825 echo "_main" > conftest.sym
5826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005828/* end confdefs.h. */
5829
5830int
5831main ()
5832{
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
drhf922ca42015-05-14 15:39:18 +00005838if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005839 lt_cv_ld_exported_symbols_list=yes
5840else
drhf922ca42015-05-14 15:39:18 +00005841 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005842fi
drhf922ca42015-05-14 15:39:18 +00005843rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005845 LDFLAGS="$save_LDFLAGS"
5846
5847fi
drhf922ca42015-05-14 15:39:18 +00005848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005849$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005850 case $host_os in
5851 rhapsody* | darwin1.[012])
5852 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5853 darwin1.*)
5854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5855 darwin*) # darwin 5.x on
5856 # if running on 10.5 or later, the deployment target defaults
5857 # to the OS version, if on x86, and 10.4, the deployment
5858 # target defaults to 10.4. Don't you love it?
5859 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5860 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5861 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5862 10.[012]*)
5863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5864 10.*)
5865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5866 esac
5867 ;;
5868 esac
5869 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5870 _lt_dar_single_mod='$single_module'
5871 fi
5872 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5873 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5874 else
5875 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5876 fi
5877 if test "$DSYMUTIL" != ":"; then
5878 _lt_dsymutil='~$DSYMUTIL $lib || :'
5879 else
5880 _lt_dsymutil=
5881 fi
5882 ;;
5883 esac
5884
a.rottmann84e63352003-03-24 09:42:16 +00005885ac_ext=c
5886ac_cpp='$CPP $CPPFLAGS'
5887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005891$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005892# On Suns, sometimes $CPP names a directory.
5893if test -n "$CPP" && test -d "$CPP"; then
5894 CPP=
5895fi
5896if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005897 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005898 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005899else
a.rottmann84e63352003-03-24 09:42:16 +00005900 # Double quotes because CPP needs to be expanded
5901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5902 do
5903 ac_preproc_ok=false
5904for ac_c_preproc_warn_flag in '' yes
5905do
5906 # Use a header file that comes with gcc, so configuring glibc
5907 # with a fresh cross-compiler works.
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 # <limits.h> exists even on freestanding compilers.
5910 # On the NeXT, cc -E runs the code through the compiler's parser,
5911 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005913/* end confdefs.h. */
5914#ifdef __STDC__
5915# include <limits.h>
5916#else
5917# include <assert.h>
5918#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005919 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005920_ACEOF
drhf922ca42015-05-14 15:39:18 +00005921if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005922
drhf922ca42015-05-14 15:39:18 +00005923else
a.rottmann84e63352003-03-24 09:42:16 +00005924 # Broken: fails on valid input.
5925continue
5926fi
drhf922ca42015-05-14 15:39:18 +00005927rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005928
drh8b727472009-01-19 18:18:40 +00005929 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005930 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005932/* end confdefs.h. */
5933#include <ac_nonexistent.h>
5934_ACEOF
drhf922ca42015-05-14 15:39:18 +00005935if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005936 # Broken: success on invalid input.
5937continue
5938else
a.rottmann84e63352003-03-24 09:42:16 +00005939 # Passes both tests.
5940ac_preproc_ok=:
5941break
5942fi
drhf922ca42015-05-14 15:39:18 +00005943rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005944
5945done
5946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005947rm -f conftest.i conftest.err conftest.$ac_ext
5948if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005949 break
5950fi
5951
5952 done
5953 ac_cv_prog_CPP=$CPP
5954
5955fi
5956 CPP=$ac_cv_prog_CPP
5957else
5958 ac_cv_prog_CPP=$CPP
5959fi
drhf922ca42015-05-14 15:39:18 +00005960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005961$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005962ac_preproc_ok=false
5963for ac_c_preproc_warn_flag in '' yes
5964do
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005972/* end confdefs.h. */
5973#ifdef __STDC__
5974# include <limits.h>
5975#else
5976# include <assert.h>
5977#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005978 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005979_ACEOF
drhf922ca42015-05-14 15:39:18 +00005980if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005981
drhf922ca42015-05-14 15:39:18 +00005982else
a.rottmann84e63352003-03-24 09:42:16 +00005983 # Broken: fails on valid input.
5984continue
5985fi
drhf922ca42015-05-14 15:39:18 +00005986rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005987
drh8b727472009-01-19 18:18:40 +00005988 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005989 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005991/* end confdefs.h. */
5992#include <ac_nonexistent.h>
5993_ACEOF
drhf922ca42015-05-14 15:39:18 +00005994if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005995 # Broken: success on invalid input.
5996continue
5997else
a.rottmann84e63352003-03-24 09:42:16 +00005998 # Passes both tests.
5999ac_preproc_ok=:
6000break
6001fi
drhf922ca42015-05-14 15:39:18 +00006002rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006003
6004done
6005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006006rm -f conftest.i conftest.err conftest.$ac_ext
6007if $ac_preproc_ok; then :
6008
a.rottmann84e63352003-03-24 09:42:16 +00006009else
drhf922ca42015-05-14 15:39:18 +00006010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6013See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006014fi
6015
6016ac_ext=c
6017ac_cpp='$CPP $CPPFLAGS'
6018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
drhf922ca42015-05-14 15:39:18 +00006023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006024$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006025if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006026 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006027else
drhf922ca42015-05-14 15:39:18 +00006028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006029/* end confdefs.h. */
6030#include <stdlib.h>
6031#include <stdarg.h>
6032#include <string.h>
6033#include <float.h>
6034
6035int
6036main ()
6037{
6038
6039 ;
6040 return 0;
6041}
6042_ACEOF
drhf922ca42015-05-14 15:39:18 +00006043if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006044 ac_cv_header_stdc=yes
6045else
drhf922ca42015-05-14 15:39:18 +00006046 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006047fi
drh8b727472009-01-19 18:18:40 +00006048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006049
6050if test $ac_cv_header_stdc = yes; then
6051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006053/* end confdefs.h. */
6054#include <string.h>
6055
6056_ACEOF
6057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006058 $EGREP "memchr" >/dev/null 2>&1; then :
6059
a.rottmann84e63352003-03-24 09:42:16 +00006060else
6061 ac_cv_header_stdc=no
6062fi
6063rm -f conftest*
6064
6065fi
6066
6067if test $ac_cv_header_stdc = yes; then
6068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006070/* end confdefs.h. */
6071#include <stdlib.h>
6072
6073_ACEOF
6074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006075 $EGREP "free" >/dev/null 2>&1; then :
6076
a.rottmann84e63352003-03-24 09:42:16 +00006077else
6078 ac_cv_header_stdc=no
6079fi
6080rm -f conftest*
6081
6082fi
6083
6084if test $ac_cv_header_stdc = yes; then
6085 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006086 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006087 :
6088else
drhf922ca42015-05-14 15:39:18 +00006089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006090/* end confdefs.h. */
6091#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006092#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006093#if ((' ' & 0x0FF) == 0x020)
6094# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6095# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6096#else
6097# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006098 (('a' <= (c) && (c) <= 'i') \
6099 || ('j' <= (c) && (c) <= 'r') \
6100 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006101# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6102#endif
6103
6104#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6105int
6106main ()
6107{
6108 int i;
6109 for (i = 0; i < 256; i++)
6110 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006111 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006112 return 2;
6113 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006114}
6115_ACEOF
drhf922ca42015-05-14 15:39:18 +00006116if ac_fn_c_try_run "$LINENO"; then :
6117
a.rottmann84e63352003-03-24 09:42:16 +00006118else
drhf922ca42015-05-14 15:39:18 +00006119 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006120fi
drhf922ca42015-05-14 15:39:18 +00006121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6122 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006123fi
6124
a.rottmann84e63352003-03-24 09:42:16 +00006125fi
6126fi
drhf922ca42015-05-14 15:39:18 +00006127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006128$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006129if test $ac_cv_header_stdc = yes; then
6130
drhf922ca42015-05-14 15:39:18 +00006131$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006132
6133fi
6134
6135# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006136for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006137 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006138do :
6139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6140ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6141"
6142if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006143 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006144#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006145_ACEOF
6146
6147fi
6148
6149done
6150
6151
a.rottmann84e63352003-03-24 09:42:16 +00006152for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006153do :
6154 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6155"
6156if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006157 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006158#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006159_ACEOF
6160
6161fi
6162
drh71eb93e2001-09-28 01:34:43 +00006163done
6164
drh71eb93e2001-09-28 01:34:43 +00006165
drh71eb93e2001-09-28 01:34:43 +00006166
mlcreech636a9952008-05-05 22:52:56 +00006167# Set options
mlcreech94984912008-03-04 19:03:08 +00006168
drh71eb93e2001-09-28 01:34:43 +00006169
drh71eb93e2001-09-28 01:34:43 +00006170
mlcreech636a9952008-05-05 22:52:56 +00006171 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006172
a.rottmann9bc8b932004-02-29 15:18:31 +00006173
mlcreech636a9952008-05-05 22:52:56 +00006174 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006175
a.rottmann9bc8b932004-02-29 15:18:31 +00006176
drh8b727472009-01-19 18:18:40 +00006177 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006178if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006179 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006180 case $enableval in
6181 yes) enable_shared=yes ;;
6182 no) enable_shared=no ;;
6183 *)
6184 enable_shared=no
6185 # Look at the argument we got. We use all the common list separators.
6186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6187 for pkg in $enableval; do
6188 IFS="$lt_save_ifs"
6189 if test "X$pkg" = "X$p"; then
6190 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006191 fi
mlcreech636a9952008-05-05 22:52:56 +00006192 done
6193 IFS="$lt_save_ifs"
6194 ;;
6195 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006196else
mlcreech636a9952008-05-05 22:52:56 +00006197 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006198fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006199
mlcreech636a9952008-05-05 22:52:56 +00006200
6201
6202
6203
6204
6205
6206
drh8b727472009-01-19 18:18:40 +00006207
6208 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006209if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006210 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006211 case $enableval in
6212 yes) enable_static=yes ;;
6213 no) enable_static=no ;;
6214 *)
6215 enable_static=no
6216 # Look at the argument we got. We use all the common list separators.
6217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6218 for pkg in $enableval; do
6219 IFS="$lt_save_ifs"
6220 if test "X$pkg" = "X$p"; then
6221 enable_static=yes
6222 fi
6223 done
6224 IFS="$lt_save_ifs"
6225 ;;
6226 esac
6227else
6228 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006229fi
mlcreech636a9952008-05-05 22:52:56 +00006230
6231
6232
6233
6234
6235
6236
6237
6238
drh8b727472009-01-19 18:18:40 +00006239
6240# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006241if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006242 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006243else
6244 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006245fi
6246
mlcreech636a9952008-05-05 22:52:56 +00006247
6248test -z "$pic_mode" && pic_mode=default
6249
6250
6251
6252
6253
6254
6255
drh8b727472009-01-19 18:18:40 +00006256 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006257if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006258 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006259 case $enableval in
6260 yes) enable_fast_install=yes ;;
6261 no) enable_fast_install=no ;;
6262 *)
6263 enable_fast_install=no
6264 # Look at the argument we got. We use all the common list separators.
6265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6266 for pkg in $enableval; do
6267 IFS="$lt_save_ifs"
6268 if test "X$pkg" = "X$p"; then
6269 enable_fast_install=yes
6270 fi
6271 done
6272 IFS="$lt_save_ifs"
6273 ;;
6274 esac
6275else
6276 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006277fi
6278
mlcreech636a9952008-05-05 22:52:56 +00006279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289# This can be used to rebuild libtool when needed
6290LIBTOOL_DEPS="$ltmain"
6291
6292# Always use our own libtool.
6293LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319test -z "$LN_S" && LN_S="ln -s"
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334if test -n "${ZSH_VERSION+set}" ; then
6335 setopt NO_GLOB_SUBST
6336fi
6337
drhf922ca42015-05-14 15:39:18 +00006338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006339$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006340if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006341 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006342else
6343 rm -f .libs 2>/dev/null
6344mkdir .libs 2>/dev/null
6345if test -d .libs; then
6346 lt_cv_objdir=.libs
6347else
6348 # MS-DOS does not allow filenames that begin with a dot.
6349 lt_cv_objdir=_libs
6350fi
6351rmdir .libs 2>/dev/null
6352fi
drhf922ca42015-05-14 15:39:18 +00006353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006354$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006355objdir=$lt_cv_objdir
6356
6357
6358
6359
6360
mlcreech636a9952008-05-05 22:52:56 +00006361cat >>confdefs.h <<_ACEOF
6362#define LT_OBJDIR "$lt_cv_objdir/"
6363_ACEOF
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
a.rottmann9bc8b932004-02-29 15:18:31 +00006381case $host_os in
6382aix3*)
6383 # AIX sometimes has problems with the GCC collect2 program. For some
6384 # reason, if we set the COLLECT_NAMES environment variable, the problems
6385 # vanish in a puff of smoke.
6386 if test "X${COLLECT_NAMES+set}" != Xset; then
6387 COLLECT_NAMES=
6388 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006389 fi
6390 ;;
6391esac
6392
a.rottmann9bc8b932004-02-29 15:18:31 +00006393# Sed substitution that helps us do robust quoting. It backslashifies
6394# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006395sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006396
6397# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006398double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006399
6400# Sed substitution to delay expansion of an escaped shell variable in a
6401# double_quote_subst'ed string.
6402delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6403
mlcreech636a9952008-05-05 22:52:56 +00006404# Sed substitution to delay expansion of an escaped single quote.
6405delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407# Sed substitution to avoid accidental globbing in evaled expressions
6408no_glob_subst='s/\*/\\\*/g'
6409
a.rottmann9bc8b932004-02-29 15:18:31 +00006410# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006411ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006412can_build_shared=yes
6413
vapier7f19c022007-02-17 14:46:31 +00006414# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006415# which needs '.lib').
6416libext=a
mlcreech636a9952008-05-05 22:52:56 +00006417
a.rottmann9bc8b932004-02-29 15:18:31 +00006418with_gnu_ld="$lt_cv_prog_gnu_ld"
6419
a.rottmann84e63352003-03-24 09:42:16 +00006420old_CC="$CC"
6421old_CFLAGS="$CFLAGS"
6422
6423# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006424test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006425test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006426test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006427test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006428test -z "$ac_objext" && ac_objext=o
6429
vapier7f19c022007-02-17 14:46:31 +00006430for cc_temp in $compiler""; do
6431 case $cc_temp in
6432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6434 \-*) ;;
6435 *) break;;
6436 esac
6437done
mlcreech636a9952008-05-05 22:52:56 +00006438cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006439
6440
a.rottmann9bc8b932004-02-29 15:18:31 +00006441# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006442test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006443case $deplibs_check_method in
6444file_magic*)
6445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006447$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006448if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006449 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006450else
a.rottmann9bc8b932004-02-29 15:18:31 +00006451 case $MAGIC_CMD in
6452[\\/*] | ?:[\\/]*)
6453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6454 ;;
6455*)
6456 lt_save_MAGIC_CMD="$MAGIC_CMD"
6457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6459 for ac_dir in $ac_dummy; do
6460 IFS="$lt_save_ifs"
6461 test -z "$ac_dir" && ac_dir=.
6462 if test -f $ac_dir/${ac_tool_prefix}file; then
6463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6464 if test -n "$file_magic_test_file"; then
6465 case $deplibs_check_method in
6466 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6470 $EGREP "$file_magic_regex" > /dev/null; then
6471 :
6472 else
mlcreech636a9952008-05-05 22:52:56 +00006473 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006474
a.rottmann9bc8b932004-02-29 15:18:31 +00006475*** Warning: the command libtool uses to detect shared libraries,
6476*** $file_magic_cmd, produces output that libtool cannot recognize.
6477*** The result is that libtool may fail to recognize shared libraries
6478*** as such. This will affect the creation of libtool libraries that
6479*** depend on shared libraries, but programs linked with such libtool
6480*** libraries will work regardless of this problem. Nevertheless, you
6481*** may want to report the problem to your system manager and/or to
6482*** bug-libtool@gnu.org
6483
mlcreech636a9952008-05-05 22:52:56 +00006484_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006485 fi ;;
6486 esac
6487 fi
6488 break
6489 fi
6490 done
6491 IFS="$lt_save_ifs"
6492 MAGIC_CMD="$lt_save_MAGIC_CMD"
6493 ;;
6494esac
6495fi
6496
6497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006500$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006501else
drhf922ca42015-05-14 15:39:18 +00006502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006503$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006504fi
6505
mlcreech636a9952008-05-05 22:52:56 +00006506
6507
6508
6509
a.rottmann9bc8b932004-02-29 15:18:31 +00006510if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006513$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006514if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006515 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006516else
6517 case $MAGIC_CMD in
6518[\\/*] | ?:[\\/]*)
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6520 ;;
6521*)
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 case $deplibs_check_method in
6532 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 $EGREP "$file_magic_regex" > /dev/null; then
6537 :
6538 else
mlcreech636a9952008-05-05 22:52:56 +00006539 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006540
6541*** Warning: the command libtool uses to detect shared libraries,
6542*** $file_magic_cmd, produces output that libtool cannot recognize.
6543*** The result is that libtool may fail to recognize shared libraries
6544*** as such. This will affect the creation of libtool libraries that
6545*** depend on shared libraries, but programs linked with such libtool
6546*** libraries will work regardless of this problem. Nevertheless, you
6547*** may want to report the problem to your system manager and/or to
6548*** bug-libtool@gnu.org
6549
mlcreech636a9952008-05-05 22:52:56 +00006550_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006551 fi ;;
6552 esac
6553 fi
6554 break
6555 fi
6556 done
6557 IFS="$lt_save_ifs"
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6559 ;;
6560esac
6561fi
6562
6563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006566$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006567else
drhf922ca42015-05-14 15:39:18 +00006568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006569$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006570fi
6571
mlcreech636a9952008-05-05 22:52:56 +00006572
a.rottmann9bc8b932004-02-29 15:18:31 +00006573 else
6574 MAGIC_CMD=:
6575 fi
6576fi
6577
6578 fi
6579 ;;
6580esac
6581
a.rottmann9bc8b932004-02-29 15:18:31 +00006582# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006583
a.rottmann9bc8b932004-02-29 15:18:31 +00006584lt_save_CC="$CC"
6585ac_ext=c
6586ac_cpp='$CPP $CPPFLAGS'
6587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6589ac_compiler_gnu=$ac_cv_c_compiler_gnu
6590
6591
6592# Source file extension for C test sources.
6593ac_ext=c
6594
6595# Object file extension for compiled C test sources.
6596objext=o
6597objext=$objext
6598
6599# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006600lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006601
6602# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006603lt_simple_link_test_code='int main(){return(0);}'
6604
6605
6606
6607
6608
a.rottmann9bc8b932004-02-29 15:18:31 +00006609
6610
6611# If no C compiler was specified, use CC.
6612LTCC=${LTCC-"$CC"}
6613
vapier7f19c022007-02-17 14:46:31 +00006614# If no C compiler flags were specified, use CFLAGS.
6615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6616
a.rottmann9bc8b932004-02-29 15:18:31 +00006617# Allow CC to be a program name with arguments.
6618compiler=$CC
6619
mlcreech636a9952008-05-05 22:52:56 +00006620# Save the default compiler, since it gets overwritten when the other
6621# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6622compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006623
vapier7f19c022007-02-17 14:46:31 +00006624# save warnings/boilerplate of simple test code
6625ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006626echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6628_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006629$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006630
vapier7f19c022007-02-17 14:46:31 +00006631ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006632echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6634_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006635$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006636
6637
mlcreech636a9952008-05-05 22:52:56 +00006638if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006639
6640lt_prog_compiler_no_builtin_flag=
6641
6642if test "$GCC" = yes; then
6643 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6644
drhf922ca42015-05-14 15:39:18 +00006645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006646$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006647if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006648 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006649else
6650 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006651 ac_outfile=conftest.$ac_objext
6652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006653 lt_compiler_flag="-fno-rtti -fno-exceptions"
6654 # Insert the option either (1) after the last *FLAGS variable, or
6655 # (2) before a word containing "conftest.", or (3) at the end.
6656 # Note that $ac_compile itself does not contain backslashes and begins
6657 # with a dollar sign (not a hyphen), so the echo should work correctly.
6658 # The option is referenced via a variable to avoid confusing sed.
6659 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6662 -e 's:$: $lt_compiler_flag:'`
drhe44b8352015-10-30 14:25:57 +00006663 (eval echo "\"\$as_me:6663: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006664 (eval "$lt_compile" 2>conftest.err)
6665 ac_status=$?
6666 cat conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00006667 echo "$as_me:6667: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006668 if (exit $ac_status) && test -s "$ac_outfile"; then
6669 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006670 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006674 lt_cv_prog_compiler_rtti_exceptions=yes
6675 fi
6676 fi
mlcreech636a9952008-05-05 22:52:56 +00006677 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006678
6679fi
drhf922ca42015-05-14 15:39:18 +00006680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006681$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006682
6683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6685else
6686 :
6687fi
6688
6689fi
6690
mlcreech636a9952008-05-05 22:52:56 +00006691
6692
6693
6694
6695
6696 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006697lt_prog_compiler_pic=
6698lt_prog_compiler_static=
6699
drhf922ca42015-05-14 15:39:18 +00006700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006701$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006702
drh71eb93e2001-09-28 01:34:43 +00006703 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006704 lt_prog_compiler_wl='-Wl,'
6705 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006706
6707 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006708 aix*)
6709 # All AIX code is PIC.
6710 if test "$host_cpu" = ia64; then
6711 # AIX 5 now supports IA64 processor
6712 lt_prog_compiler_static='-Bstatic'
6713 fi
drh71eb93e2001-09-28 01:34:43 +00006714 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006715
drh71eb93e2001-09-28 01:34:43 +00006716 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006717 case $host_cpu in
6718 powerpc)
6719 # see comment about AmigaOS4 .so support
6720 lt_prog_compiler_pic='-fPIC'
6721 ;;
6722 m68k)
6723 # FIXME: we need at least 68020 code to build shared libraries, but
6724 # adding the `-m68020' flag to GCC prevents building anything better,
6725 # like `-m68040'.
6726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6727 ;;
6728 esac
drh71eb93e2001-09-28 01:34:43 +00006729 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006730
mlcreech636a9952008-05-05 22:52:56 +00006731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006732 # PIC is the default for these OSes.
6733 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006734
vapier6acb2cf2009-01-28 04:46:28 +00006735 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006736 # This hack is so that the source file can tell whether it is being
6737 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6739 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006740 lt_prog_compiler_pic='-DDLL_EXPORT'
6741 ;;
6742
drh71eb93e2001-09-28 01:34:43 +00006743 darwin* | rhapsody*)
6744 # PIC is the default on this platform
6745 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006746 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006747 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006748
a.rottmann9bc8b932004-02-29 15:18:31 +00006749 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6752 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006753 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006754 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 # +Z the default
6756 ;;
6757 *)
6758 lt_prog_compiler_pic='-fPIC'
6759 ;;
6760 esac
6761 ;;
6762
mlcreech636a9952008-05-05 22:52:56 +00006763 interix[3-9]*)
6764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6765 # Instead, we relocate shared libraries at runtime.
6766 ;;
6767
6768 msdosdjgpp*)
6769 # Just because we use GCC doesn't mean we suddenly get shared libraries
6770 # on systems that don't support them.
6771 lt_prog_compiler_can_build_shared=no
6772 enable_shared=no
6773 ;;
6774
6775 *nto* | *qnx*)
6776 # QNX uses GNU C++, but need to define -shared option too, otherwise
6777 # it will coredump.
6778 lt_prog_compiler_pic='-fPIC -shared'
6779 ;;
6780
6781 sysv4*MP*)
6782 if test -d /usr/nec; then
6783 lt_prog_compiler_pic=-Kconform_pic
6784 fi
6785 ;;
6786
drh71eb93e2001-09-28 01:34:43 +00006787 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006788 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006789 ;;
6790 esac
6791 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006792 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006793 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006794 aix*)
6795 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006796 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006797 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006798 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006799 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006801 fi
6802 ;;
6803
vapier6acb2cf2009-01-28 04:46:28 +00006804 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006805 # This hack is so that the source file can tell whether it is being
6806 # built for inclusion in a dll (and should export symbols for example).
6807 lt_prog_compiler_pic='-DDLL_EXPORT'
6808 ;;
6809
a.rottmann84e63352003-03-24 09:42:16 +00006810 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 lt_prog_compiler_wl='-Wl,'
6812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6813 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006814 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 hppa*64*|ia64*)
6816 # +Z the default
6817 ;;
6818 *)
6819 lt_prog_compiler_pic='+Z'
6820 ;;
6821 esac
6822 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6823 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006824 ;;
6825
6826 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006827 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006828 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006829 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006830 ;;
6831
mlcreech636a9952008-05-05 22:52:56 +00006832 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006833 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006834 # old Intel for x86_64 which still supported -KPIC.
6835 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-KPIC'
6838 lt_prog_compiler_static='-static'
6839 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006840 # icc used to be incompatible with GCC.
6841 # ICC 10 doesn't accept -KPIC any more.
6842 icc* | ifort*)
6843 lt_prog_compiler_wl='-Wl,'
6844 lt_prog_compiler_pic='-fPIC'
6845 lt_prog_compiler_static='-static'
6846 ;;
6847 # Lahey Fortran 8.1.
6848 lf95*)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='--shared'
6851 lt_prog_compiler_static='--static'
6852 ;;
vapier7f19c022007-02-17 14:46:31 +00006853 pgcc* | pgf77* | pgf90* | pgf95*)
6854 # Portland Group compilers (*not* the Pentium gcc compiler,
6855 # which looks to be a dead project)
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-fpic'
6858 lt_prog_compiler_static='-Bstatic'
6859 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006860 ccc*)
6861 lt_prog_compiler_wl='-Wl,'
6862 # All Alpha code is PIC.
6863 lt_prog_compiler_static='-non_shared'
6864 ;;
mlcreech636a9952008-05-05 22:52:56 +00006865 xl*)
6866 # IBM XL C 8.0/Fortran 10.1 on PPC
6867 lt_prog_compiler_wl='-Wl,'
6868 lt_prog_compiler_pic='-qpic'
6869 lt_prog_compiler_static='-qstaticlink'
6870 ;;
6871 *)
6872 case `$CC -V 2>&1 | sed 5q` in
6873 *Sun\ C*)
6874 # Sun C 5.9
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6877 lt_prog_compiler_wl='-Wl,'
6878 ;;
6879 *Sun\ F*)
6880 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6881 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic'
6883 lt_prog_compiler_wl=''
6884 ;;
6885 esac
6886 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006887 esac
drh71eb93e2001-09-28 01:34:43 +00006888 ;;
6889
mlcreech636a9952008-05-05 22:52:56 +00006890 newsos6)
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6893 ;;
6894
6895 *nto* | *qnx*)
6896 # QNX uses GNU C++, but need to define -shared option too, otherwise
6897 # it will coredump.
6898 lt_prog_compiler_pic='-fPIC -shared'
6899 ;;
6900
drh71eb93e2001-09-28 01:34:43 +00006901 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006903 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006904 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006905 ;;
6906
mlcreech636a9952008-05-05 22:52:56 +00006907 rdos*)
6908 lt_prog_compiler_static='-non_shared'
6909 ;;
6910
drh71eb93e2001-09-28 01:34:43 +00006911 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006914 case $cc_basename in
6915 f77* | f90* | f95*)
6916 lt_prog_compiler_wl='-Qoption ld ';;
6917 *)
6918 lt_prog_compiler_wl='-Wl,';;
6919 esac
drh71eb93e2001-09-28 01:34:43 +00006920 ;;
6921
6922 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006923 lt_prog_compiler_wl='-Qoption ld '
6924 lt_prog_compiler_pic='-PIC'
6925 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006926 ;;
6927
vapier7f19c022007-02-17 14:46:31 +00006928 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006929 lt_prog_compiler_wl='-Wl,'
6930 lt_prog_compiler_pic='-KPIC'
6931 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006932 ;;
6933
6934 sysv4*MP*)
6935 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006936 lt_prog_compiler_pic='-Kconform_pic'
6937 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006938 fi
6939 ;;
6940
vapier7f19c022007-02-17 14:46:31 +00006941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6942 lt_prog_compiler_wl='-Wl,'
6943 lt_prog_compiler_pic='-KPIC'
6944 lt_prog_compiler_static='-Bstatic'
6945 ;;
6946
6947 unicos*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_can_build_shared=no
6950 ;;
6951
a.rottmann9bc8b932004-02-29 15:18:31 +00006952 uts4*)
6953 lt_prog_compiler_pic='-pic'
6954 lt_prog_compiler_static='-Bstatic'
6955 ;;
6956
drh71eb93e2001-09-28 01:34:43 +00006957 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006958 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006959 ;;
6960 esac
6961 fi
6962
mlcreech636a9952008-05-05 22:52:56 +00006963case $host_os in
6964 # For platforms which do not support PIC, -DPIC is meaningless:
6965 *djgpp*)
6966 lt_prog_compiler_pic=
6967 ;;
6968 *)
6969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6970 ;;
6971esac
drhf922ca42015-05-14 15:39:18 +00006972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006973$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006974
6975
6976
6977
6978
drh71eb93e2001-09-28 01:34:43 +00006979
a.rottmann9bc8b932004-02-29 15:18:31 +00006980#
6981# Check to make sure the PIC flag actually works.
6982#
6983if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006985$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006986if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006987 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006988else
mlcreech636a9952008-05-05 22:52:56 +00006989 lt_cv_prog_compiler_pic_works=no
6990 ac_outfile=conftest.$ac_objext
6991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993 # Insert the option either (1) after the last *FLAGS variable, or
6994 # (2) before a word containing "conftest.", or (3) at the end.
6995 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 # The option is referenced via a variable to avoid confusing sed.
6998 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001 -e 's:$: $lt_compiler_flag:'`
drhe44b8352015-10-30 14:25:57 +00007002 (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007003 (eval "$lt_compile" 2>conftest.err)
7004 ac_status=$?
7005 cat conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00007006 echo "$as_me:7006: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007007 if (exit $ac_status) && test -s "$ac_outfile"; then
7008 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007009 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007013 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007014 fi
7015 fi
mlcreech636a9952008-05-05 22:52:56 +00007016 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007017
a.rottmann9bc8b932004-02-29 15:18:31 +00007018fi
drhf922ca42015-05-14 15:39:18 +00007019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007020$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007021
mlcreech636a9952008-05-05 22:52:56 +00007022if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007023 case $lt_prog_compiler_pic in
7024 "" | " "*) ;;
7025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026 esac
drh71eb93e2001-09-28 01:34:43 +00007027else
a.rottmann9bc8b932004-02-29 15:18:31 +00007028 lt_prog_compiler_pic=
7029 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007030fi
7031
a.rottmann84e63352003-03-24 09:42:16 +00007032fi
mlcreech636a9952008-05-05 22:52:56 +00007033
7034
7035
7036
7037
a.rottmann84e63352003-03-24 09:42:16 +00007038
vapier7f19c022007-02-17 14:46:31 +00007039#
7040# Check to make sure the static flag actually works.
7041#
7042wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007044$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007045if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007046 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007047else
mlcreech636a9952008-05-05 22:52:56 +00007048 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007049 save_LDFLAGS="$LDFLAGS"
7050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007051 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7053 # The linker can only warn and ignore the option if not recognized
7054 # So say no if there are warnings
7055 if test -s conftest.err; then
7056 # Append any errors to the config.log.
7057 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007058 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7060 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007061 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007062 fi
7063 else
mlcreech636a9952008-05-05 22:52:56 +00007064 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007065 fi
7066 fi
mlcreech636a9952008-05-05 22:52:56 +00007067 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007068 LDFLAGS="$save_LDFLAGS"
7069
7070fi
drhf922ca42015-05-14 15:39:18 +00007071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007072$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007073
mlcreech636a9952008-05-05 22:52:56 +00007074if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007075 :
7076else
7077 lt_prog_compiler_static=
7078fi
7079
7080
mlcreech636a9952008-05-05 22:52:56 +00007081
7082
7083
7084
7085
drhf922ca42015-05-14 15:39:18 +00007086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007087$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007088if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007089 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007090else
a.rottmann9bc8b932004-02-29 15:18:31 +00007091 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007092 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007093 mkdir conftest
7094 cd conftest
7095 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007097
a.rottmann9bc8b932004-02-29 15:18:31 +00007098 lt_compiler_flag="-o out/conftest2.$ac_objext"
7099 # Insert the option either (1) after the last *FLAGS variable, or
7100 # (2) before a word containing "conftest.", or (3) at the end.
7101 # Note that $ac_compile itself does not contain backslashes and begins
7102 # with a dollar sign (not a hyphen), so the echo should work correctly.
7103 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7106 -e 's:$: $lt_compiler_flag:'`
drhe44b8352015-10-30 14:25:57 +00007107 (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007108 (eval "$lt_compile" 2>out/conftest.err)
7109 ac_status=$?
7110 cat out/conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00007111 echo "$as_me:7111: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7113 then
7114 # The compiler can only warn and ignore the option if not recognized
7115 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007116 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 lt_cv_prog_compiler_c_o=yes
7120 fi
7121 fi
vapier7f19c022007-02-17 14:46:31 +00007122 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007123 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007124 # SGI C++ compiler will create directory out/ii_files/ for
7125 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7127 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007129 $RM -r conftest
7130 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007131
7132fi
drhf922ca42015-05-14 15:39:18 +00007133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007134$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007135
7136
7137
7138
7139
7140
drhf922ca42015-05-14 15:39:18 +00007141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007142$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007143if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007144 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007145else
7146 lt_cv_prog_compiler_c_o=no
7147 $RM -r conftest 2>/dev/null
7148 mkdir conftest
7149 cd conftest
7150 mkdir out
7151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7152
7153 lt_compiler_flag="-o out/conftest2.$ac_objext"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 lt_compile=`echo "$ac_compile" | $SED \
7159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161 -e 's:$: $lt_compiler_flag:'`
drhe44b8352015-10-30 14:25:57 +00007162 (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007163 (eval "$lt_compile" 2>out/conftest.err)
7164 ac_status=$?
7165 cat out/conftest.err >&5
drhe44b8352015-10-30 14:25:57 +00007166 echo "$as_me:7166: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7168 then
7169 # The compiler can only warn and ignore the option if not recognized
7170 # So say no if there are warnings
7171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7174 lt_cv_prog_compiler_c_o=yes
7175 fi
7176 fi
7177 chmod u+w . 2>&5
7178 $RM conftest*
7179 # SGI C++ compiler will create directory out/ii_files/ for
7180 # template instantiation
7181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7182 $RM out/* && rmdir out
7183 cd ..
7184 $RM -r conftest
7185 $RM conftest*
7186
7187fi
drhf922ca42015-05-14 15:39:18 +00007188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007189$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007190
7191
drh71eb93e2001-09-28 01:34:43 +00007192
a.rottmann84e63352003-03-24 09:42:16 +00007193
drh71eb93e2001-09-28 01:34:43 +00007194hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007195if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007196 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007198$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007199 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007200 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7202 touch conftest.a
7203 ln conftest.a conftest.b 2>&5 || hard_links=no
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007206$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007207 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007208 { $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 +00007209$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007210 need_locks=warn
7211 fi
7212else
7213 need_locks=no
7214fi
7215
mlcreech636a9952008-05-05 22:52:56 +00007216
7217
7218
7219
7220
drhf922ca42015-05-14 15:39:18 +00007221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007223
7224 runpath_var=
7225 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007226 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007227 archive_cmds=
7228 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007229 compiler_needs_object=no
7230 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007231 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7233 hardcode_automatic=no
7234 hardcode_direct=no
7235 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007236 hardcode_libdir_flag_spec=
7237 hardcode_libdir_flag_spec_ld=
7238 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007239 hardcode_minus_L=no
7240 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007241 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 module_cmds=
7244 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007245 old_archive_from_new_cmds=
7246 old_archive_from_expsyms_cmds=
7247 thread_safe_flag_spec=
7248 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 # include_expsyms should be a list of space-separated symbols to be *always*
7250 # included in the symbol list
7251 include_expsyms=
7252 # exclude_expsyms can be an extended regexp of symbols to exclude
7253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7255 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7258 # platforms (ab)use it in PIC code, but their linkers get confused if
7259 # the symbol is explicitly referenced. Since portable code cannot
7260 # rely on this symbol name, it's probably fine to never include it in
7261 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007262 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 extract_expsyms_cmds=
7264
7265 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007266 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268 # When not using gcc, we currently assume that we are using
7269 # Microsoft Visual C++.
7270 if test "$GCC" != yes; then
7271 with_gnu_ld=no
7272 fi
7273 ;;
vapier7f19c022007-02-17 14:46:31 +00007274 interix*)
7275 # we just hope/assume this is gcc and not c89 (= MSVC++)
7276 with_gnu_ld=yes
7277 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007278 openbsd*)
7279 with_gnu_ld=no
7280 ;;
7281 esac
7282
7283 ld_shlibs=yes
7284 if test "$with_gnu_ld" = yes; then
7285 # If archive_cmds runs LD, not CC, wlarc should be empty
7286 wlarc='${wl}'
7287
vapier7f19c022007-02-17 14:46:31 +00007288 # Set some defaults for GNU ld with shared library support. These
7289 # are reset later if shared libraries are not supported. Putting them
7290 # here allows them to be overridden if necessary.
7291 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007293 export_dynamic_flag_spec='${wl}--export-dynamic'
7294 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7297 else
7298 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007299 fi
7300 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007301 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007302 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305 *\ 2.11.*) ;; # other 2.11 versions
7306 *) supports_anon_versioning=yes ;;
7307 esac
7308
a.rottmann9bc8b932004-02-29 15:18:31 +00007309 # See if GNU ld supports shared libraries.
7310 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007311 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007312 # On AIX/PPC, the GNU linker is very broken
7313 if test "$host_cpu" != ia64; then
7314 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007315 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007316
7317*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318*** to be unable to reliably create shared libraries on AIX.
7319*** Therefore, libtool is disabling shared libraries support. If you
7320*** really care for shared libraries, you may want to modify your PATH
7321*** so that a non-GNU linker is found, and then restart.
7322
mlcreech636a9952008-05-05 22:52:56 +00007323_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007324 fi
7325 ;;
7326
7327 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007328 case $host_cpu in
7329 powerpc)
7330 # see comment about AmigaOS4 .so support
7331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7332 archive_expsym_cmds=''
7333 ;;
7334 m68k)
7335 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)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338 ;;
7339 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007340 ;;
7341
7342 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007344 allow_undefined_flag=unsupported
7345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7346 # support --undefined. This deserves some investigation. FIXME
7347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7348 else
7349 ld_shlibs=no
7350 fi
7351 ;;
7352
vapier6acb2cf2009-01-28 04:46:28 +00007353 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007354 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007355 # as there is no search path for DLLs.
7356 hardcode_libdir_flag_spec='-L$libdir'
7357 allow_undefined_flag=unsupported
7358 always_export_symbols=no
7359 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007360 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 +00007361
mlcreech636a9952008-05-05 22:52:56 +00007362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007363 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 +00007364 # If the export-symbols file already is a .def file (1st line
7365 # is EXPORTS), use it as is; otherwise, prepend...
7366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7367 cp $export_symbols $output_objdir/$soname.def;
7368 else
7369 echo EXPORTS > $output_objdir/$soname.def;
7370 cat $export_symbols >> $output_objdir/$soname.def;
7371 fi~
vapier7f19c022007-02-17 14:46:31 +00007372 $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 +00007373 else
7374 ld_shlibs=no
7375 fi
7376 ;;
7377
mlcreech636a9952008-05-05 22:52:56 +00007378 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007379 hardcode_direct=no
7380 hardcode_shlibpath_var=no
7381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7382 export_dynamic_flag_spec='${wl}-E'
7383 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7384 # Instead, shared libraries are loaded at an image base (0x10000000 by
7385 # default) and relocated if they conflict, which is a slow very memory
7386 # consuming and fragmenting process. To avoid this, we pick a random,
7387 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7388 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7390 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'
7391 ;;
7392
mlcreech636a9952008-05-05 22:52:56 +00007393 gnu* | linux* | tpf* | k*bsd*-gnu)
7394 tmp_diet=no
7395 if test "$host_os" = linux-dietlibc; then
7396 case $cc_basename in
7397 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7398 esac
7399 fi
7400 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7401 && test "$tmp_diet" = no
7402 then
vapier7f19c022007-02-17 14:46:31 +00007403 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007404 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007405 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007406 pgcc*) # Portland Group C compiler
7407 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 +00007408 tmp_addflag=' $pic_flag'
7409 ;;
7410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007411 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 +00007412 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007414 tmp_addflag=' -i_dynamic' ;;
7415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7416 tmp_addflag=' -i_dynamic -nofor_main' ;;
7417 ifc* | ifort*) # Intel Fortran compiler
7418 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007419 lf95*) # Lahey Fortran 8.1
7420 whole_archive_flag_spec=
7421 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007422 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7423 tmp_sharedflag='-qmkshrobj'
7424 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007425 esac
mlcreech636a9952008-05-05 22:52:56 +00007426 case `$CC -V 2>&1 | sed 5q` in
7427 *Sun\ C*) # Sun C 5.9
7428 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'
7429 compiler_needs_object=yes
7430 tmp_sharedflag='-G' ;;
7431 *Sun\ F*) # Sun Fortran 8.3
7432 tmp_sharedflag='-G' ;;
7433 esac
7434 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007435
mlcreech636a9952008-05-05 22:52:56 +00007436 if test "x$supports_anon_versioning" = xyes; then
7437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7439 echo "local: *; };" >> $output_objdir/$libname.ver~
7440 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7441 fi
7442
7443 case $cc_basename in
7444 xlf*)
7445 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7446 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7447 hardcode_libdir_flag_spec=
7448 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7449 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7455 fi
7456 ;;
7457 esac
vapier7f19c022007-02-17 14:46:31 +00007458 else
mlcreech636a9952008-05-05 22:52:56 +00007459 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007460 fi
7461 ;;
7462
7463 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 wlarc=
7467 else
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470 fi
7471 ;;
7472
vapier7f19c022007-02-17 14:46:31 +00007473 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007475 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007476 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007477
7478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479*** create shared libraries on Solaris systems. Therefore, libtool
7480*** is disabling shared libraries support. We urge you to upgrade GNU
7481*** binutils to release 2.9.1 or newer. Another option is to modify
7482*** your PATH or compiler configuration so that the native linker is
7483*** used, and then restart.
7484
mlcreech636a9952008-05-05 22:52:56 +00007485_LT_EOF
7486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493
vapier7f19c022007-02-17 14:46:31 +00007494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495 case `$LD -v 2>&1` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7499
7500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501*** reliably create shared libraries on SCO systems. Therefore, libtool
7502*** is disabling shared libraries support. We urge you to upgrade GNU
7503*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7504*** your PATH or compiler configuration so that the native linker is
7505*** used, and then restart.
7506
7507_LT_EOF
7508 ;;
7509 *)
mlcreech636a9952008-05-05 22:52:56 +00007510 # For security reasons, it is highly recommended that you always
7511 # use absolute paths for naming shared libraries, and exclude the
7512 # DT_RUNPATH tag from executables and libraries. But doing so
7513 # requires that you compile everything twice, which is a pain.
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7517 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 +00007518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522 esac
7523 ;;
7524
a.rottmann9bc8b932004-02-29 15:18:31 +00007525 sunos4*)
7526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 wlarc=
7528 hardcode_direct=yes
7529 hardcode_shlibpath_var=no
7530 ;;
7531
a.rottmann9bc8b932004-02-29 15:18:31 +00007532 *)
mlcreech636a9952008-05-05 22:52:56 +00007533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536 else
7537 ld_shlibs=no
7538 fi
7539 ;;
7540 esac
7541
vapier7f19c022007-02-17 14:46:31 +00007542 if test "$ld_shlibs" = no; then
7543 runpath_var=
7544 hardcode_libdir_flag_spec=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007547 fi
7548 else
7549 # PORTME fill in a description of your system's linker (not GNU ld)
7550 case $host_os in
7551 aix3*)
7552 allow_undefined_flag=unsupported
7553 always_export_symbols=yes
7554 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'
7555 # Note: this linker hardcodes the directories in LIBPATH if there
7556 # are no directories specified by -L.
7557 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007559 # Neither direct hardcoding nor static linking is supported with a
7560 # broken collect2.
7561 hardcode_direct=unsupported
7562 fi
7563 ;;
7564
mlcreech636a9952008-05-05 22:52:56 +00007565 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007566 if test "$host_cpu" = ia64; then
7567 # On IA64, the linker does run time linking by default, so we don't
7568 # have to do anything special.
7569 aix_use_runtimelinking=no
7570 exp_sym_flag='-Bexport'
7571 no_entry_flag=""
7572 else
7573 # If we're using GNU nm, then we don't want the "-C" option.
7574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576 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 +00007577 else
mlcreech636a9952008-05-05 22:52:56 +00007578 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 +00007579 fi
7580 aix_use_runtimelinking=no
7581
7582 # Test if we are trying to use run time linking or normal
7583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007586 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588 aix_use_runtimelinking=yes
7589 break
7590 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007591 done
vapier7f19c022007-02-17 14:46:31 +00007592 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007593 esac
7594
7595 exp_sym_flag='-bexport'
7596 no_entry_flag='-bnoentry'
7597 fi
7598
7599 # When large executables or shared objects are built, AIX ld can
7600 # have problems creating the table of contents. If linking a library
7601 # or program results in "error TOC overflow" add -mminimal-toc to
7602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7604
7605 archive_cmds=''
7606 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007607 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007608 hardcode_libdir_separator=':'
7609 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007610 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007611
7612 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007613 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007614 # We only want to do this on AIX 4.2 and lower, the check
7615 # below for broken collect2 doesn't work under 4.3+
7616 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007617 if test -f "$collect2name" &&
7618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 then
mlcreech636a9952008-05-05 22:52:56 +00007620 # We have reworked collect2
7621 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007622 else
mlcreech636a9952008-05-05 22:52:56 +00007623 # We have old collect2
7624 hardcode_direct=unsupported
7625 # It fails to find uninstalled libraries when the uninstalled
7626 # path is not listed in the libpath. Setting hardcode_minus_L
7627 # to unsupported forces relinking
7628 hardcode_minus_L=yes
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 fi
vapier7f19c022007-02-17 14:46:31 +00007632 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007633 esac
7634 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007635 if test "$aix_use_runtimelinking" = yes; then
7636 shared_flag="$shared_flag "'${wl}-G'
7637 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007638 else
7639 # not using gcc
7640 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 shared_flag='-G'
7644 else
vapier7f19c022007-02-17 14:46:31 +00007645 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007646 shared_flag='${wl}-G'
7647 else
7648 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007649 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007650 fi
7651 fi
7652
vapier6acb2cf2009-01-28 04:46:28 +00007653 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007654 # It seems that -bexpall does not export symbols beginning with
7655 # underscore (_), so it is better to generate a list of symbols to export.
7656 always_export_symbols=yes
7657 if test "$aix_use_runtimelinking" = yes; then
7658 # Warning - without using the other runtime loading flags (-brtl),
7659 # -berok will link without error, but may produce a broken library.
7660 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007661 # Determine the default libpath from the value encoded in an
7662 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007664/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007665
a.rottmann84e63352003-03-24 09:42:16 +00007666int
7667main ()
7668{
a.rottmann9bc8b932004-02-29 15:18:31 +00007669
a.rottmann84e63352003-03-24 09:42:16 +00007670 ;
7671 return 0;
7672}
7673_ACEOF
drhf922ca42015-05-14 15:39:18 +00007674if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007675
mlcreech636a9952008-05-05 22:52:56 +00007676lt_aix_libpath_sed='
7677 /Import File Strings/,/^$/ {
7678 /^0/ {
7679 s/^0 *\(.*\)$/\1/
7680 p
7681 }
7682 }'
7683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007684# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007685if test -z "$aix_libpath"; then
7686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7687fi
a.rottmann84e63352003-03-24 09:42:16 +00007688fi
drhf922ca42015-05-14 15:39:18 +00007689rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007692
mlcreech636a9952008-05-05 22:52:56 +00007693 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7694 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"
7695 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007696 if test "$host_cpu" = ia64; then
7697 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7698 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007699 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 +00007700 else
mlcreech636a9952008-05-05 22:52:56 +00007701 # Determine the default libpath from the value encoded in an
7702 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007704/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007705
a.rottmann9bc8b932004-02-29 15:18:31 +00007706int
7707main ()
7708{
a.rottmann84e63352003-03-24 09:42:16 +00007709
a.rottmann9bc8b932004-02-29 15:18:31 +00007710 ;
7711 return 0;
7712}
7713_ACEOF
drhf922ca42015-05-14 15:39:18 +00007714if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007715
mlcreech636a9952008-05-05 22:52:56 +00007716lt_aix_libpath_sed='
7717 /Import File Strings/,/^$/ {
7718 /^0/ {
7719 s/^0 *\(.*\)$/\1/
7720 p
7721 }
7722 }'
7723aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007724# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007725if test -z "$aix_libpath"; then
7726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7727fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007728fi
drhf922ca42015-05-14 15:39:18 +00007729rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007732
a.rottmann9bc8b932004-02-29 15:18:31 +00007733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7734 # Warning - without using the other run time loading flags,
7735 # -berok will link without error, but may produce a broken library.
7736 no_undefined_flag=' ${wl}-bernotok'
7737 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007738 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007739 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007740 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007741 # This is similar to how AIX traditionally builds its shared libraries.
7742 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 +00007743 fi
7744 fi
a.rottmann84e63352003-03-24 09:42:16 +00007745 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007746
7747 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007748 case $host_cpu in
7749 powerpc)
7750 # see comment about AmigaOS4 .so support
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7752 archive_expsym_cmds=''
7753 ;;
7754 m68k)
7755 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)'
7756 hardcode_libdir_flag_spec='-L$libdir'
7757 hardcode_minus_L=yes
7758 ;;
7759 esac
a.rottmann84e63352003-03-24 09:42:16 +00007760 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007761
vapier7f19c022007-02-17 14:46:31 +00007762 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007763 export_dynamic_flag_spec=-rdynamic
7764 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007765
vapier6acb2cf2009-01-28 04:46:28 +00007766 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007767 # When not using gcc, we currently assume that we are using
7768 # Microsoft Visual C++.
7769 # hardcode_libdir_flag_spec is actually meaningless, as there is
7770 # no search path for DLLs.
7771 hardcode_libdir_flag_spec=' '
7772 allow_undefined_flag=unsupported
7773 # Tell ltmain to make .lib files, not .a files.
7774 libext=lib
7775 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007776 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007777 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007778 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 +00007779 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007780 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007782 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 fix_srcfile_path='`cygpath -w "$srcfile"`'
7784 enable_shared_with_static_runtimes=yes
7785 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007786
a.rottmann9bc8b932004-02-29 15:18:31 +00007787 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007788
7789
7790 archive_cmds_need_lc=no
7791 hardcode_direct=no
7792 hardcode_automatic=yes
7793 hardcode_shlibpath_var=unsupported
7794 whole_archive_flag_spec=''
7795 link_all_deplibs=yes
7796 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007797 case $cc_basename in
7798 ifort*) _lt_dar_can_shared=yes ;;
7799 *) _lt_dar_can_shared=$GCC ;;
7800 esac
7801 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007802 output_verbose_link_cmd=echo
7803 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7804 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7805 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}"
7806 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}"
7807
7808 else
7809 ld_shlibs=no
7810 fi
7811
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007813
a.rottmann9bc8b932004-02-29 15:18:31 +00007814 dgux*)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_libdir_flag_spec='-L$libdir'
7817 hardcode_shlibpath_var=no
7818 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007819
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 freebsd1*)
7821 ld_shlibs=no
7822 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007823
a.rottmann9bc8b932004-02-29 15:18:31 +00007824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7825 # support. Future versions do this automatically, but an explicit c++rt0.o
7826 # does not break anything, and helps significantly (at the cost of a little
7827 # extra space).
7828 freebsd2.2*)
7829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7830 hardcode_libdir_flag_spec='-R$libdir'
7831 hardcode_direct=yes
7832 hardcode_shlibpath_var=no
7833 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007834
a.rottmann9bc8b932004-02-29 15:18:31 +00007835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7836 freebsd2*)
7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_direct=yes
7839 hardcode_minus_L=yes
7840 hardcode_shlibpath_var=no
7841 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007842
a.rottmann9bc8b932004-02-29 15:18:31 +00007843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007844 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007845 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7846 hardcode_libdir_flag_spec='-R$libdir'
7847 hardcode_direct=yes
7848 hardcode_shlibpath_var=no
7849 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007850
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 hpux9*)
7852 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007853 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 +00007854 else
mlcreech636a9952008-05-05 22:52:56 +00007855 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 +00007856 fi
7857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7858 hardcode_libdir_separator=:
7859 hardcode_direct=yes
7860
7861 # hardcode_minus_L: Not really in the search PATH,
7862 # but as the default location of the library.
7863 hardcode_minus_L=yes
7864 export_dynamic_flag_spec='${wl}-E'
7865 ;;
7866
vapier7f19c022007-02-17 14:46:31 +00007867 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007869 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7870 else
7871 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7872 fi
7873 if test "$with_gnu_ld" = no; then
7874 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007875 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007876 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007877 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007878 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007879 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007880 # hardcode_minus_L: Not really in the search PATH,
7881 # but as the default location of the library.
7882 hardcode_minus_L=yes
7883 fi
7884 ;;
7885
7886 hpux11*)
7887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888 case $host_cpu in
7889 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007890 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7891 ;;
vapier7f19c022007-02-17 14:46:31 +00007892 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007894 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007895 *)
7896 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7897 ;;
7898 esac
7899 else
vapier7f19c022007-02-17 14:46:31 +00007900 case $host_cpu in
7901 hppa*64*)
7902 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7903 ;;
7904 ia64*)
7905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 ;;
7907 *)
vapier7f19c022007-02-17 14:46:31 +00007908 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 +00007909 ;;
7910 esac
7911 fi
7912 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7914 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007915
vapier7f19c022007-02-17 14:46:31 +00007916 case $host_cpu in
7917 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007918 hardcode_direct=no
7919 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007920 ;;
7921 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007923 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007924 export_dynamic_flag_spec='${wl}-E'
7925
7926 # hardcode_minus_L: Not really in the search PATH,
7927 # but as the default location of the library.
7928 hardcode_minus_L=yes
7929 ;;
7930 esac
7931 fi
7932 ;;
7933
7934 irix5* | irix6* | nonstopux*)
7935 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007936 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'
7937 # Try to use the -exported_symbol ld option, if it does not
7938 # work, assume that -exports_file does not work either and
7939 # implicitly export all symbols.
7940 save_LDFLAGS="$LDFLAGS"
7941 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007944int foo(void) {}
7945_ACEOF
drhf922ca42015-05-14 15:39:18 +00007946if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007947 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'
7948
mlcreech636a9952008-05-05 22:52:56 +00007949fi
drhf922ca42015-05-14 15:39:18 +00007950rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007952 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007953 else
mlcreech636a9952008-05-05 22:52:56 +00007954 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'
7955 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 +00007956 fi
mlcreech636a9952008-05-05 22:52:56 +00007957 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007960 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007961 link_all_deplibs=yes
7962 ;;
7963
vapier7f19c022007-02-17 14:46:31 +00007964 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7967 else
7968 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7969 fi
7970 hardcode_libdir_flag_spec='-R$libdir'
7971 hardcode_direct=yes
7972 hardcode_shlibpath_var=no
7973 ;;
7974
7975 newsos6)
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_direct=yes
7978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979 hardcode_libdir_separator=:
7980 hardcode_shlibpath_var=no
7981 ;;
7982
mlcreech636a9952008-05-05 22:52:56 +00007983 *nto* | *qnx*)
7984 ;;
7985
a.rottmann9bc8b932004-02-29 15:18:31 +00007986 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007987 if test -f /usr/libexec/ld.so; then
7988 hardcode_direct=yes
7989 hardcode_shlibpath_var=no
7990 hardcode_direct_absolute=yes
7991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7993 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7995 export_dynamic_flag_spec='${wl}-E'
7996 else
7997 case $host_os in
7998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8000 hardcode_libdir_flag_spec='-R$libdir'
8001 ;;
8002 *)
8003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8005 ;;
8006 esac
8007 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008008 else
mlcreech636a9952008-05-05 22:52:56 +00008009 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 fi
8011 ;;
8012
8013 os2*)
8014 hardcode_libdir_flag_spec='-L$libdir'
8015 hardcode_minus_L=yes
8016 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008017 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'
8018 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 ;;
8020
8021 osf3*)
8022 if test "$GCC" = yes; then
8023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008024 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 +00008025 else
8026 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008027 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 +00008028 fi
mlcreech636a9952008-05-05 22:52:56 +00008029 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8031 hardcode_libdir_separator=:
8032 ;;
8033
8034 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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 +00008038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039 else
8040 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008041 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8042 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~
8043 $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 +00008044
8045 # Both c and cxx compiler support -rpath directly
8046 hardcode_libdir_flag_spec='-rpath $libdir'
8047 fi
mlcreech636a9952008-05-05 22:52:56 +00008048 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008049 hardcode_libdir_separator=:
8050 ;;
8051
a.rottmann9bc8b932004-02-29 15:18:31 +00008052 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008053 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008054 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008055 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008056 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8058 $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 +00008059 else
mlcreech636a9952008-05-05 22:52:56 +00008060 case `$CC -V 2>&1` in
8061 *"Compilers 5.0"*)
8062 wlarc=''
8063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8066 ;;
8067 *)
8068 wlarc='${wl}'
8069 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8072 ;;
8073 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008074 fi
8075 hardcode_libdir_flag_spec='-R$libdir'
8076 hardcode_shlibpath_var=no
8077 case $host_os in
8078 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008079 *)
mlcreech636a9952008-05-05 22:52:56 +00008080 # The compiler driver will combine and reorder linker options,
8081 # but understands `-z linker_flag'. GCC discards it without `$wl',
8082 # but is careful enough not to reorder.
8083 # Supported since Solaris 2.6 (maybe 2.5.1?)
8084 if test "$GCC" = yes; then
8085 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8086 else
8087 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8088 fi
8089 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008090 esac
8091 link_all_deplibs=yes
8092 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008093
a.rottmann9bc8b932004-02-29 15:18:31 +00008094 sunos4*)
8095 if test "x$host_vendor" = xsequent; then
8096 # Use $CC to link under sequent, because it throws in some extra .o
8097 # files that make .init and .fini sections work.
8098 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8099 else
8100 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8101 fi
8102 hardcode_libdir_flag_spec='-L$libdir'
8103 hardcode_direct=yes
8104 hardcode_minus_L=yes
8105 hardcode_shlibpath_var=no
8106 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008107
a.rottmann9bc8b932004-02-29 15:18:31 +00008108 sysv4)
8109 case $host_vendor in
8110 sni)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_direct=yes # is this really true???
8113 ;;
8114 siemens)
8115 ## LD is ld it makes a PLAMLIB
8116 ## CC just makes a GrossModule.
8117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8118 reload_cmds='$CC -r -o $output$reload_objs'
8119 hardcode_direct=no
8120 ;;
8121 motorola)
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8124 ;;
8125 esac
8126 runpath_var='LD_RUN_PATH'
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 sysv4.3*)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_shlibpath_var=no
8133 export_dynamic_flag_spec='-Bexport'
8134 ;;
8135
8136 sysv4*MP*)
8137 if test -d /usr/nec; then
8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_shlibpath_var=no
8140 runpath_var=LD_RUN_PATH
8141 hardcode_runpath_var=yes
8142 ld_shlibs=yes
8143 fi
8144 ;;
8145
mlcreech636a9952008-05-05 22:52:56 +00008146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008147 no_undefined_flag='${wl}-z,text'
8148 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008149 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008150 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008151
a.rottmann9bc8b932004-02-29 15:18:31 +00008152 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008153 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 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 +00008155 else
vapier7f19c022007-02-17 14:46:31 +00008156 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8157 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 +00008158 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008159 ;;
8160
vapier7f19c022007-02-17 14:46:31 +00008161 sysv5* | sco3.2v5* | sco5v6*)
8162 # Note: We can NOT use -z defs as we might desire, because we do not
8163 # link with -lc, and that would cause any symbols used from libc to
8164 # always be unresolved, which means just about no library would
8165 # ever link correctly. If we're not using GNU ld we use -z text
8166 # though, which does catch some bad symbols but isn't as heavy-handed
8167 # as -z defs.
8168 no_undefined_flag='${wl}-z,text'
8169 allow_undefined_flag='${wl}-z,nodefs'
8170 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008172 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008173 hardcode_libdir_separator=':'
8174 link_all_deplibs=yes
8175 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008176 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008177
8178 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008179 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008181 else
mlcreech636a9952008-05-05 22:52:56 +00008182 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8183 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008184 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008185 ;;
8186
8187 uts4*)
8188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_shlibpath_var=no
8191 ;;
8192
8193 *)
8194 ld_shlibs=no
8195 ;;
8196 esac
mlcreech636a9952008-05-05 22:52:56 +00008197
8198 if test x$host_vendor = xsni; then
8199 case $host in
8200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8201 export_dynamic_flag_spec='${wl}-Blargedynsym'
8202 ;;
8203 esac
8204 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008205 fi
8206
drhf922ca42015-05-14 15:39:18 +00008207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008208$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008209test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008210
mlcreech636a9952008-05-05 22:52:56 +00008211with_gnu_ld=$with_gnu_ld
8212
8213
danielk197733a14782008-08-04 14:50:05 +00008214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
a.rottmann9bc8b932004-02-29 15:18:31 +00008227#
8228# Do we need to explicitly link libc?
8229#
8230case "x$archive_cmds_need_lc" in
8231x|xyes)
8232 # Assume -lc should be added
8233 archive_cmds_need_lc=yes
8234
8235 if test "$enable_shared" = yes && test "$GCC" = yes; then
8236 case $archive_cmds in
8237 *'~'*)
8238 # FIXME: we may have to deal with multi-command sequences.
8239 ;;
8240 '$CC '*)
8241 # Test whether the compiler implicitly links with -lc since on some
8242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8243 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008245$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008246 $RM conftest*
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008248
drhf922ca42015-05-14 15:39:18 +00008249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008250 (eval $ac_compile) 2>&5
8251 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008254 soname=conftest
8255 lib=conftest
8256 libobjs=conftest.$ac_objext
8257 deplibs=
8258 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008259 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008260 compiler_flags=-v
8261 linker_flags=-v
8262 verstring=
8263 output_objdir=.
8264 libname=conftest
8265 lt_save_allow_undefined_flag=$allow_undefined_flag
8266 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008267 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 +00008268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 then
8273 archive_cmds_need_lc=no
8274 else
8275 archive_cmds_need_lc=yes
8276 fi
8277 allow_undefined_flag=$lt_save_allow_undefined_flag
8278 else
8279 cat conftest.err 1>&5
8280 fi
mlcreech636a9952008-05-05 22:52:56 +00008281 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008283$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008284 ;;
8285 esac
drh71eb93e2001-09-28 01:34:43 +00008286 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008287 ;;
8288esac
drh71eb93e2001-09-28 01:34:43 +00008289
mlcreech636a9952008-05-05 22:52:56 +00008290
danielk197733a14782008-08-04 14:50:05 +00008291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
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
drhf922ca42015-05-14 15:39:18 +00008446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008447$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008448
8449if test "$GCC" = yes; then
8450 case $host_os in
8451 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8452 *) lt_awk_arg="/^libraries:/" ;;
8453 esac
8454 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8455 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8456 # if the path contains ";" then we assume it to be the separator
8457 # otherwise default to the standard path separator (i.e. ":") - it is
8458 # assumed that no part of a normal pathname contains ";" but that should
8459 # okay in the real world where ";" in dirpaths is itself problematic.
8460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8461 else
8462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8463 fi
8464 # Ok, now we have the path, separated by spaces, we can step through it
8465 # and add multilib dir if necessary.
8466 lt_tmp_lt_search_path_spec=
8467 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8468 for lt_sys_path in $lt_search_path_spec; do
8469 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8471 else
8472 test -d "$lt_sys_path" && \
8473 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8474 fi
8475 done
8476 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8477BEGIN {RS=" "; FS="/|\n";} {
8478 lt_foo="";
8479 lt_count=0;
8480 for (lt_i = NF; lt_i > 0; lt_i--) {
8481 if ($lt_i != "" && $lt_i != ".") {
8482 if ($lt_i == "..") {
8483 lt_count++;
8484 } else {
8485 if (lt_count == 0) {
8486 lt_foo="/" $lt_i lt_foo;
8487 } else {
8488 lt_count--;
8489 }
8490 }
8491 }
8492 }
8493 if (lt_foo != "") { lt_freq[lt_foo]++; }
8494 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8495}'`
8496 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8497else
8498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8499fi
drh71eb93e2001-09-28 01:34:43 +00008500library_names_spec=
8501libname_spec='lib$name'
8502soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008503shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008504postinstall_cmds=
8505postuninstall_cmds=
8506finish_cmds=
8507finish_eval=
8508shlibpath_var=
8509shlibpath_overrides_runpath=unknown
8510version_type=none
8511dynamic_linker="$host_os ld.so"
8512sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008513need_lib_prefix=unknown
8514hardcode_into_libs=no
8515
8516# when you set need_version to no, make sure it does not cause -set_version
8517# flags to be left without arguments
8518need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008519
8520case $host_os in
8521aix3*)
8522 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008524 shlibpath_var=LIBPATH
8525
a.rottmann9bc8b932004-02-29 15:18:31 +00008526 # AIX 3 has no versioning support, so we append a major version to the name.
8527 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008528 ;;
8529
mlcreech636a9952008-05-05 22:52:56 +00008530aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008531 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008532 need_lib_prefix=no
8533 need_version=no
8534 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008535 if test "$host_cpu" = ia64; then
8536 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008538 shlibpath_var=LD_LIBRARY_PATH
8539 else
8540 # With GCC up to 2.95.x, collect2 would create an import file
8541 # for dependence libraries. The import file would start with
8542 # the line `#! .'. This would cause the generated library to
8543 # depend on `.', always an invalid library. This was fixed in
8544 # development snapshots of GCC prior to 3.0.
8545 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008546 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8548 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008549 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008550 :
8551 else
8552 can_build_shared=no
8553 fi
8554 ;;
drh71eb93e2001-09-28 01:34:43 +00008555 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008556 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8557 # soname into executable. Probably we can add versioning support to
8558 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008559 if test "$aix_use_runtimelinking" = yes; then
8560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561 # instead of lib<name>.a to let people know that these are not
8562 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008564 else
8565 # We preserve .a as extension for shared libraries through AIX4.2
8566 # and later when we are not doing run time linking.
8567 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008568 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008569 fi
8570 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008571 fi
8572 ;;
8573
8574amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008575 case $host_cpu in
8576 powerpc)
8577 # Since July 2007 AmigaOS4 officially supports .so libraries.
8578 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580 ;;
8581 m68k)
8582 library_names_spec='$libname.ixlibrary $libname.a'
8583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8584 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'
8585 ;;
8586 esac
drh71eb93e2001-09-28 01:34:43 +00008587 ;;
8588
8589beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008590 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008591 dynamic_linker="$host_os ld.so"
8592 shlibpath_var=LIBRARY_PATH
8593 ;;
8594
vapier7f19c022007-02-17 14:46:31 +00008595bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008596 version_type=linux
8597 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8604 # the default ld.so.conf also contains /usr/contrib/lib and
8605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8606 # libtool to hard-code these into programs
8607 ;;
8608
vapier6acb2cf2009-01-28 04:46:28 +00008609cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008610 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008611 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008612 need_version=no
8613 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008614
drh71eb93e2001-09-28 01:34:43 +00008615 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008616 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008617 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8619 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008621 dldir=$destdir/`dirname \$dlpath`~
8622 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008623 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008624 chmod a+x \$dldir/$dlname~
8625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8627 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008629 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008630 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008631 shlibpath_overrides_runpath=yes
8632
8633 case $host_os in
8634 cygwin*)
8635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8638 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008639 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008640 # MinGW DLLs use traditional 'lib' prefix
8641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008642 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008644 # It is most probably a Windows format PATH printed by
8645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8646 # path with ; separators, and with drive letters. We can handle the
8647 # drive letters (cygwin fileutils understands them), so leave them,
8648 # especially as we might pass files found there to a mingw objdump,
8649 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008651 else
mlcreech636a9952008-05-05 22:52:56 +00008652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008653 fi
8654 ;;
8655 pw32*)
8656 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008657 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 +00008658 ;;
8659 esac
drh71eb93e2001-09-28 01:34:43 +00008660 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008661
drh71eb93e2001-09-28 01:34:43 +00008662 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008664 ;;
8665 esac
8666 dynamic_linker='Win32 ld.exe'
8667 # FIXME: first we should search . and the directory the executable is in
8668 shlibpath_var=PATH
8669 ;;
8670
8671darwin* | rhapsody*)
8672 dynamic_linker="$host_os dyld"
8673 version_type=darwin
8674 need_lib_prefix=no
8675 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008676 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008677 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008678 shlibpath_overrides_runpath=yes
8679 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008681
8682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8684 ;;
8685
8686dgux*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008693 ;;
8694
a.rottmann84e63352003-03-24 09:42:16 +00008695freebsd1*)
8696 dynamic_linker=no
8697 ;;
8698
vapier7f19c022007-02-17 14:46:31 +00008699freebsd* | dragonfly*)
8700 # DragonFly does not have aout. When/if they implement a new
8701 # versioning mechanism, adjust this.
8702 if test -x /usr/bin/objformat; then
8703 objformat=`/usr/bin/objformat`
8704 else
8705 case $host_os in
8706 freebsd[123]*) objformat=aout ;;
8707 *) objformat=elf ;;
8708 esac
8709 fi
8710 # Handle Gentoo/FreeBSD as it was Linux
8711 case $host_vendor in
8712 gentoo)
8713 version_type=linux ;;
8714 *)
8715 version_type=freebsd-$objformat ;;
8716 esac
8717
drh71eb93e2001-09-28 01:34:43 +00008718 case $version_type in
8719 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008721 need_version=no
8722 need_lib_prefix=no
8723 ;;
8724 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008726 need_version=yes
8727 ;;
vapier7f19c022007-02-17 14:46:31 +00008728 linux)
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 need_lib_prefix=no
8732 need_version=no
8733 ;;
drh71eb93e2001-09-28 01:34:43 +00008734 esac
8735 shlibpath_var=LD_LIBRARY_PATH
8736 case $host_os in
8737 freebsd2*)
8738 shlibpath_overrides_runpath=yes
8739 ;;
vapier7f19c022007-02-17 14:46:31 +00008740 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008741 shlibpath_overrides_runpath=yes
8742 hardcode_into_libs=yes
8743 ;;
vapier7f19c022007-02-17 14:46:31 +00008744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008746 shlibpath_overrides_runpath=no
8747 hardcode_into_libs=yes
8748 ;;
mlcreech636a9952008-05-05 22:52:56 +00008749 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008750 shlibpath_overrides_runpath=yes
8751 hardcode_into_libs=yes
8752 ;;
drh71eb93e2001-09-28 01:34:43 +00008753 esac
8754 ;;
8755
8756gnu*)
8757 version_type=linux
8758 need_lib_prefix=no
8759 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8761 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008762 shlibpath_var=LD_LIBRARY_PATH
8763 hardcode_into_libs=yes
8764 ;;
8765
8766hpux9* | hpux10* | hpux11*)
8767 # Give a soname corresponding to the major version so that dld.sl refuses to
8768 # link against other versions.
8769 version_type=sunos
8770 need_lib_prefix=no
8771 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008772 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008773 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008774 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 hardcode_into_libs=yes
8776 dynamic_linker="$host_os dld.so"
8777 shlibpath_var=LD_LIBRARY_PATH
8778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 if test "X$HPUX_IA64_MODE" = X32; then
8782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8783 else
8784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8785 fi
8786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8787 ;;
mlcreech636a9952008-05-05 22:52:56 +00008788 hppa*64*)
8789 shrext_cmds='.sl'
8790 hardcode_into_libs=yes
8791 dynamic_linker="$host_os dld.sl"
8792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8795 soname_spec='${libname}${release}${shared_ext}$major'
8796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8798 ;;
8799 *)
vapier7f19c022007-02-17 14:46:31 +00008800 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008801 dynamic_linker="$host_os dld.sl"
8802 shlibpath_var=SHLIB_PATH
8803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 ;;
8807 esac
drh71eb93e2001-09-28 01:34:43 +00008808 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8809 postinstall_cmds='chmod 555 $lib'
8810 ;;
8811
mlcreech636a9952008-05-05 22:52:56 +00008812interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008813 version_type=linux
8814 need_lib_prefix=no
8815 need_version=no
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8819 shlibpath_var=LD_LIBRARY_PATH
8820 shlibpath_overrides_runpath=no
8821 hardcode_into_libs=yes
8822 ;;
8823
a.rottmann84e63352003-03-24 09:42:16 +00008824irix5* | irix6* | nonstopux*)
8825 case $host_os in
8826 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008827 *)
8828 if test "$lt_cv_prog_gnu_ld" = yes; then
8829 version_type=linux
8830 else
8831 version_type=irix
8832 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008833 esac
drh71eb93e2001-09-28 01:34:43 +00008834 need_lib_prefix=no
8835 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008836 soname_spec='${libname}${release}${shared_ext}$major'
8837 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 +00008838 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008839 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008840 libsuff= shlibsuff=
8841 ;;
8842 *)
8843 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8845 libsuff= shlibsuff= libmagic=32-bit;;
8846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8847 libsuff=32 shlibsuff=N32 libmagic=N32;;
8848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008850 *) libsuff= shlibsuff= libmagic=never-match;;
8851 esac
8852 ;;
8853 esac
8854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8855 shlibpath_overrides_runpath=no
8856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008858 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008859 ;;
8860
8861# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008862linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008863 dynamic_linker=no
8864 ;;
8865
8866# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008867linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008868 version_type=linux
8869 need_lib_prefix=no
8870 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008876 # Some binutils ld are patched to set DT_RUNPATH
8877 save_LDFLAGS=$LDFLAGS
8878 save_libdir=$libdir
8879 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8880 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008882/* end confdefs.h. */
8883
8884int
8885main ()
8886{
8887
8888 ;
8889 return 0;
8890}
8891_ACEOF
drhf922ca42015-05-14 15:39:18 +00008892if ac_fn_c_try_link "$LINENO"; then :
8893 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008894 shlibpath_overrides_runpath=yes
8895fi
mlcreech636a9952008-05-05 22:52:56 +00008896fi
drhf922ca42015-05-14 15:39:18 +00008897rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008899 LDFLAGS=$save_LDFLAGS
8900 libdir=$save_libdir
8901
drh71eb93e2001-09-28 01:34:43 +00008902 # This implies no fast_install, which is unacceptable.
8903 # Some rework will be needed to allow for fast_install
8904 # before this can be enabled.
8905 hardcode_into_libs=yes
8906
a.rottmann9bc8b932004-02-29 15:18:31 +00008907 # Append ld.so.conf contents to the search path
8908 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008909 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 +00008910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008911 fi
8912
drh71eb93e2001-09-28 01:34:43 +00008913 # We used to test for /lib/ld.so.1 and disable shared libraries on
8914 # powerpc, because MkLinux only supported shared libraries with the
8915 # GNU dynamic linker. Since this was broken with cross compilers,
8916 # most powerpc-linux boxes support dynamic linking these days and
8917 # people can always --disable-shared, the test was removed, and we
8918 # assume the GNU/Linux dynamic linker is in use.
8919 dynamic_linker='GNU/Linux ld.so'
8920 ;;
8921
8922netbsd*)
8923 version_type=sunos
8924 need_lib_prefix=no
8925 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8929 dynamic_linker='NetBSD (a.out) ld.so'
8930 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008933 dynamic_linker='NetBSD ld.elf_so'
8934 fi
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes
8937 hardcode_into_libs=yes
8938 ;;
8939
8940newsos6)
8941 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 ;;
8946
mlcreech636a9952008-05-05 22:52:56 +00008947*nto* | *qnx*)
8948 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008953 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008957 ;;
8958
drh71eb93e2001-09-28 01:34:43 +00008959openbsd*)
8960 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008961 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008962 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8964 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8966 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008967 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8970 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008971 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 +00008972 case $host_os in
8973 openbsd2.[89] | openbsd2.[89].*)
8974 shlibpath_overrides_runpath=no
8975 ;;
8976 *)
8977 shlibpath_overrides_runpath=yes
8978 ;;
8979 esac
a.rottmann84e63352003-03-24 09:42:16 +00008980 else
8981 shlibpath_overrides_runpath=yes
8982 fi
drh71eb93e2001-09-28 01:34:43 +00008983 ;;
8984
8985os2*)
8986 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008987 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008988 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008989 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008990 dynamic_linker='OS/2 ld.exe'
8991 shlibpath_var=LIBPATH
8992 ;;
8993
8994osf3* | osf4* | osf5*)
8995 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008996 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008997 need_version=no
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9003 ;;
9004
mlcreech636a9952008-05-05 22:52:56 +00009005rdos*)
9006 dynamic_linker=no
9007 ;;
9008
drh71eb93e2001-09-28 01:34:43 +00009009solaris*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9020 ;;
9021
9022sunos4*)
9023 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9029 need_lib_prefix=no
9030 fi
9031 need_version=yes
9032 ;;
9033
vapier7f19c022007-02-17 14:46:31 +00009034sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009035 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9040 sni)
9041 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009042 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009043 runpath_var=LD_RUN_PATH
9044 ;;
9045 siemens)
9046 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009047 ;;
9048 motorola)
9049 need_lib_prefix=no
9050 need_version=no
9051 shlibpath_overrides_runpath=no
9052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9053 ;;
9054 esac
9055 ;;
9056
9057sysv4*MP*)
9058 if test -d /usr/nec ;then
9059 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9061 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009062 shlibpath_var=LD_LIBRARY_PATH
9063 fi
9064 ;;
9065
vapier7f19c022007-02-17 14:46:31 +00009066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9067 version_type=freebsd-elf
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009073 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009077 else
9078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009079 case $host_os in
9080 sco3.2v5*)
9081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9082 ;;
9083 esac
9084 fi
9085 sys_lib_dlsearch_path_spec='/usr/lib'
9086 ;;
9087
mlcreech636a9952008-05-05 22:52:56 +00009088tpf*)
9089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 ;;
9098
a.rottmann9bc8b932004-02-29 15:18:31 +00009099uts4*)
9100 version_type=linux
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 ;;
9105
drh71eb93e2001-09-28 01:34:43 +00009106*)
9107 dynamic_linker=no
9108 ;;
9109esac
drhf922ca42015-05-14 15:39:18 +00009110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009111$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009112test "$dynamic_linker" = no && can_build_shared=no
9113
vapier7f19c022007-02-17 14:46:31 +00009114variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9115if test "$GCC" = yes; then
9116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9117fi
9118
mlcreech636a9952008-05-05 22:52:56 +00009119if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9121fi
9122if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9124fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
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
drhf922ca42015-05-14 15:39:18 +00009212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009213$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009214hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009215if test -n "$hardcode_libdir_flag_spec" ||
9216 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009217 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009218
mlcreech636a9952008-05-05 22:52:56 +00009219 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009220 if test "$hardcode_direct" != no &&
9221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9222 # have to relink, otherwise we might link with an installed library
9223 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009225 test "$hardcode_minus_L" != no; then
9226 # Linking always hardcodes the temporary library directory.
9227 hardcode_action=relink
9228 else
9229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9230 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009231 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009232else
9233 # We cannot hardcode anything, or else we can only hardcode existing
9234 # directories.
9235 hardcode_action=unsupported
9236fi
drhf922ca42015-05-14 15:39:18 +00009237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009238$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009239
mlcreech636a9952008-05-05 22:52:56 +00009240if test "$hardcode_action" = relink ||
9241 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009242 # Fast installation is not supported
9243 enable_fast_install=no
9244elif test "$shlibpath_overrides_runpath" = yes ||
9245 test "$enable_shared" = no; then
9246 # Fast installation is not necessary
9247 enable_fast_install=needless
9248fi
9249
a.rottmann84e63352003-03-24 09:42:16 +00009250
mlcreech636a9952008-05-05 22:52:56 +00009251
9252
9253
9254
9255 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009256 enable_dlopen=unknown
9257 enable_dlopen_self=unknown
9258 enable_dlopen_self_static=unknown
9259else
9260 lt_cv_dlopen=no
9261 lt_cv_dlopen_libs=
9262
9263 case $host_os in
9264 beos*)
9265 lt_cv_dlopen="load_add_on"
9266 lt_cv_dlopen_libs=
9267 lt_cv_dlopen_self=yes
9268 ;;
9269
vapier6acb2cf2009-01-28 04:46:28 +00009270 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009271 lt_cv_dlopen="LoadLibrary"
9272 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009273 ;;
drh71eb93e2001-09-28 01:34:43 +00009274
a.rottmann9bc8b932004-02-29 15:18:31 +00009275 cygwin*)
9276 lt_cv_dlopen="dlopen"
9277 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009278 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009279
9280 darwin*)
9281 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009283$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009284if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009285 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009286else
9287 ac_check_lib_save_LIBS=$LIBS
9288LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009290/* end confdefs.h. */
9291
drh8b727472009-01-19 18:18:40 +00009292/* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009295#ifdef __cplusplus
9296extern "C"
9297#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009298char dlopen ();
9299int
9300main ()
9301{
drh8b727472009-01-19 18:18:40 +00009302return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009303 ;
9304 return 0;
9305}
9306_ACEOF
drhf922ca42015-05-14 15:39:18 +00009307if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009308 ac_cv_lib_dl_dlopen=yes
9309else
drhf922ca42015-05-14 15:39:18 +00009310 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009311fi
drhf922ca42015-05-14 15:39:18 +00009312rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009314LIBS=$ac_check_lib_save_LIBS
9315fi
drhf922ca42015-05-14 15:39:18 +00009316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009317$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009318if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9320else
9321
9322 lt_cv_dlopen="dyld"
9323 lt_cv_dlopen_libs=
9324 lt_cv_dlopen_self=yes
9325
9326fi
9327
mlcreech636a9952008-05-05 22:52:56 +00009328 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009329
drh71eb93e2001-09-28 01:34:43 +00009330 *)
drhf922ca42015-05-14 15:39:18 +00009331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9332if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009333 lt_cv_dlopen="shl_load"
9334else
drhf922ca42015-05-14 15:39:18 +00009335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009336$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009337if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009338 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009339else
9340 ac_check_lib_save_LIBS=$LIBS
9341LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009343/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009344
drh8b727472009-01-19 18:18:40 +00009345/* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009348#ifdef __cplusplus
9349extern "C"
9350#endif
drh71eb93e2001-09-28 01:34:43 +00009351char shl_load ();
9352int
9353main ()
9354{
drh8b727472009-01-19 18:18:40 +00009355return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009356 ;
9357 return 0;
9358}
9359_ACEOF
drhf922ca42015-05-14 15:39:18 +00009360if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009361 ac_cv_lib_dld_shl_load=yes
9362else
drhf922ca42015-05-14 15:39:18 +00009363 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009364fi
drhf922ca42015-05-14 15:39:18 +00009365rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009367LIBS=$ac_check_lib_save_LIBS
9368fi
drhf922ca42015-05-14 15:39:18 +00009369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009370$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009371if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009373else
drhf922ca42015-05-14 15:39:18 +00009374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9375if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009376 lt_cv_dlopen="dlopen"
9377else
drhf922ca42015-05-14 15:39:18 +00009378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009379$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009380if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009381 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009382else
9383 ac_check_lib_save_LIBS=$LIBS
9384LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009386/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009387
drh8b727472009-01-19 18:18:40 +00009388/* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009391#ifdef __cplusplus
9392extern "C"
9393#endif
drh71eb93e2001-09-28 01:34:43 +00009394char dlopen ();
9395int
9396main ()
9397{
drh8b727472009-01-19 18:18:40 +00009398return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009399 ;
9400 return 0;
9401}
9402_ACEOF
drhf922ca42015-05-14 15:39:18 +00009403if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009404 ac_cv_lib_dl_dlopen=yes
9405else
drhf922ca42015-05-14 15:39:18 +00009406 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009407fi
drhf922ca42015-05-14 15:39:18 +00009408rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009410LIBS=$ac_check_lib_save_LIBS
9411fi
drhf922ca42015-05-14 15:39:18 +00009412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009413$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009414if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9416else
drhf922ca42015-05-14 15:39:18 +00009417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009418$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009419if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009420 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009421else
9422 ac_check_lib_save_LIBS=$LIBS
9423LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009425/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009426
drh8b727472009-01-19 18:18:40 +00009427/* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009430#ifdef __cplusplus
9431extern "C"
9432#endif
drh71eb93e2001-09-28 01:34:43 +00009433char dlopen ();
9434int
9435main ()
9436{
drh8b727472009-01-19 18:18:40 +00009437return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009438 ;
9439 return 0;
9440}
9441_ACEOF
drhf922ca42015-05-14 15:39:18 +00009442if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009443 ac_cv_lib_svld_dlopen=yes
9444else
drhf922ca42015-05-14 15:39:18 +00009445 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009446fi
drhf922ca42015-05-14 15:39:18 +00009447rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009449LIBS=$ac_check_lib_save_LIBS
9450fi
drhf922ca42015-05-14 15:39:18 +00009451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009452$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009453if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009455else
drhf922ca42015-05-14 15:39:18 +00009456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009457$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009458if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009459 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009460else
9461 ac_check_lib_save_LIBS=$LIBS
9462LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009464/* end confdefs.h. */
9465
drh8b727472009-01-19 18:18:40 +00009466/* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009469#ifdef __cplusplus
9470extern "C"
9471#endif
a.rottmann84e63352003-03-24 09:42:16 +00009472char dld_link ();
9473int
9474main ()
9475{
drh8b727472009-01-19 18:18:40 +00009476return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009477 ;
9478 return 0;
9479}
9480_ACEOF
drhf922ca42015-05-14 15:39:18 +00009481if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009482 ac_cv_lib_dld_dld_link=yes
9483else
drhf922ca42015-05-14 15:39:18 +00009484 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009485fi
drhf922ca42015-05-14 15:39:18 +00009486rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009488LIBS=$ac_check_lib_save_LIBS
9489fi
drhf922ca42015-05-14 15:39:18 +00009490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009491$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009492if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009494fi
9495
drh71eb93e2001-09-28 01:34:43 +00009496
9497fi
9498
drh71eb93e2001-09-28 01:34:43 +00009499
9500fi
9501
a.rottmann84e63352003-03-24 09:42:16 +00009502
9503fi
9504
9505
9506fi
9507
9508
drh71eb93e2001-09-28 01:34:43 +00009509fi
9510
9511 ;;
9512 esac
9513
9514 if test "x$lt_cv_dlopen" != xno; then
9515 enable_dlopen=yes
9516 else
9517 enable_dlopen=no
9518 fi
9519
9520 case $lt_cv_dlopen in
9521 dlopen)
9522 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009524
9525 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009527
9528 save_LIBS="$LIBS"
9529 LIBS="$lt_cv_dlopen_libs $LIBS"
9530
drhf922ca42015-05-14 15:39:18 +00009531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009532$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009533if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009534 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009535else
9536 if test "$cross_compiling" = yes; then :
9537 lt_cv_dlopen_self=cross
9538else
a.rottmann9bc8b932004-02-29 15:18:31 +00009539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009540 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009541 cat > conftest.$ac_ext <<_LT_EOF
drhe44b8352015-10-30 14:25:57 +00009542#line 9542 "configure"
drh71eb93e2001-09-28 01:34:43 +00009543#include "confdefs.h"
9544
9545#if HAVE_DLFCN_H
9546#include <dlfcn.h>
9547#endif
9548
9549#include <stdio.h>
9550
9551#ifdef RTLD_GLOBAL
9552# define LT_DLGLOBAL RTLD_GLOBAL
9553#else
9554# ifdef DL_GLOBAL
9555# define LT_DLGLOBAL DL_GLOBAL
9556# else
9557# define LT_DLGLOBAL 0
9558# endif
9559#endif
9560
9561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9562 find out it does not work in some platform. */
9563#ifndef LT_DLLAZY_OR_NOW
9564# ifdef RTLD_LAZY
9565# define LT_DLLAZY_OR_NOW RTLD_LAZY
9566# else
9567# ifdef DL_LAZY
9568# define LT_DLLAZY_OR_NOW DL_LAZY
9569# else
9570# ifdef RTLD_NOW
9571# define LT_DLLAZY_OR_NOW RTLD_NOW
9572# else
9573# ifdef DL_NOW
9574# define LT_DLLAZY_OR_NOW DL_NOW
9575# else
9576# define LT_DLLAZY_OR_NOW 0
9577# endif
9578# endif
9579# endif
9580# endif
9581#endif
9582
drh71eb93e2001-09-28 01:34:43 +00009583void fnord() { int i=42;}
9584int main ()
9585{
9586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9587 int status = $lt_dlunknown;
9588
9589 if (self)
9590 {
9591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9593 /* dlclose (self); */
9594 }
vapier7f19c022007-02-17 14:46:31 +00009595 else
9596 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009597
vapier6acb2cf2009-01-28 04:46:28 +00009598 return status;
drh71eb93e2001-09-28 01:34:43 +00009599}
mlcreech636a9952008-05-05 22:52:56 +00009600_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009602 (eval $ac_link) 2>&5
9603 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009606 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009607 lt_status=$?
9608 case x$lt_status in
9609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009611 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009612 esac
9613 else :
9614 # compilation failed
9615 lt_cv_dlopen_self=no
9616 fi
9617fi
9618rm -fr conftest*
9619
a.rottmann84e63352003-03-24 09:42:16 +00009620
drh71eb93e2001-09-28 01:34:43 +00009621fi
drhf922ca42015-05-14 15:39:18 +00009622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009623$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009624
9625 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009628$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009629if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009630 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009631else
9632 if test "$cross_compiling" = yes; then :
9633 lt_cv_dlopen_self_static=cross
9634else
a.rottmann9bc8b932004-02-29 15:18:31 +00009635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009636 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009637 cat > conftest.$ac_ext <<_LT_EOF
drhe44b8352015-10-30 14:25:57 +00009638#line 9638 "configure"
drh71eb93e2001-09-28 01:34:43 +00009639#include "confdefs.h"
9640
9641#if HAVE_DLFCN_H
9642#include <dlfcn.h>
9643#endif
9644
9645#include <stdio.h>
9646
9647#ifdef RTLD_GLOBAL
9648# define LT_DLGLOBAL RTLD_GLOBAL
9649#else
9650# ifdef DL_GLOBAL
9651# define LT_DLGLOBAL DL_GLOBAL
9652# else
9653# define LT_DLGLOBAL 0
9654# endif
9655#endif
9656
9657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9658 find out it does not work in some platform. */
9659#ifndef LT_DLLAZY_OR_NOW
9660# ifdef RTLD_LAZY
9661# define LT_DLLAZY_OR_NOW RTLD_LAZY
9662# else
9663# ifdef DL_LAZY
9664# define LT_DLLAZY_OR_NOW DL_LAZY
9665# else
9666# ifdef RTLD_NOW
9667# define LT_DLLAZY_OR_NOW RTLD_NOW
9668# else
9669# ifdef DL_NOW
9670# define LT_DLLAZY_OR_NOW DL_NOW
9671# else
9672# define LT_DLLAZY_OR_NOW 0
9673# endif
9674# endif
9675# endif
9676# endif
9677#endif
9678
drh71eb93e2001-09-28 01:34:43 +00009679void fnord() { int i=42;}
9680int main ()
9681{
9682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9683 int status = $lt_dlunknown;
9684
9685 if (self)
9686 {
9687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9689 /* dlclose (self); */
9690 }
vapier7f19c022007-02-17 14:46:31 +00009691 else
9692 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009693
vapier6acb2cf2009-01-28 04:46:28 +00009694 return status;
drh71eb93e2001-09-28 01:34:43 +00009695}
mlcreech636a9952008-05-05 22:52:56 +00009696_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009698 (eval $ac_link) 2>&5
9699 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009702 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009703 lt_status=$?
9704 case x$lt_status in
9705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009708 esac
9709 else :
9710 # compilation failed
9711 lt_cv_dlopen_self_static=no
9712 fi
9713fi
9714rm -fr conftest*
9715
a.rottmann84e63352003-03-24 09:42:16 +00009716
drh71eb93e2001-09-28 01:34:43 +00009717fi
drhf922ca42015-05-14 15:39:18 +00009718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009719$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009720 fi
9721
9722 CPPFLAGS="$save_CPPFLAGS"
9723 LDFLAGS="$save_LDFLAGS"
9724 LIBS="$save_LIBS"
9725 ;;
9726 esac
9727
9728 case $lt_cv_dlopen_self in
9729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9730 *) enable_dlopen_self=unknown ;;
9731 esac
9732
9733 case $lt_cv_dlopen_self_static in
9734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9735 *) enable_dlopen_self_static=unknown ;;
9736 esac
9737fi
9738
drh71eb93e2001-09-28 01:34:43 +00009739
drh71eb93e2001-09-28 01:34:43 +00009740
a.rottmann9bc8b932004-02-29 15:18:31 +00009741
a.rottmann9bc8b932004-02-29 15:18:31 +00009742
mlcreech636a9952008-05-05 22:52:56 +00009743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755striplib=
9756old_striplib=
drhf922ca42015-05-14 15:39:18 +00009757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009758$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009759if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009763$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009764else
9765# FIXME - insert some real tests, host_os isn't really good enough
9766 case $host_os in
9767 darwin*)
9768 if test -n "$STRIP" ; then
9769 striplib="$STRIP -x"
9770 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009772$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009773 else
drhf922ca42015-05-14 15:39:18 +00009774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009775$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009776 fi
a.rottmann84e63352003-03-24 09:42:16 +00009777 ;;
mlcreech636a9952008-05-05 22:52:56 +00009778 *)
drhf922ca42015-05-14 15:39:18 +00009779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009780$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009781 ;;
9782 esac
mlcreech636a9952008-05-05 22:52:56 +00009783fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009784
a.rottmann9bc8b932004-02-29 15:18:31 +00009785
drh71eb93e2001-09-28 01:34:43 +00009786
drh71eb93e2001-09-28 01:34:43 +00009787
a.rottmann84e63352003-03-24 09:42:16 +00009788
drh71eb93e2001-09-28 01:34:43 +00009789
drh71eb93e2001-09-28 01:34:43 +00009790
a.rottmann9bc8b932004-02-29 15:18:31 +00009791
drh71eb93e2001-09-28 01:34:43 +00009792
drh71eb93e2001-09-28 01:34:43 +00009793
drh71eb93e2001-09-28 01:34:43 +00009794
drh71eb93e2001-09-28 01:34:43 +00009795
mlcreech636a9952008-05-05 22:52:56 +00009796 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009798$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009800$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009801
drhf922ca42015-05-14 15:39:18 +00009802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009803$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009804 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009805
mlcreech636a9952008-05-05 22:52:56 +00009806 # On AIX, shared libraries and static libraries use the same namespace, and
9807 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009808 case $host_os in
9809 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009810 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009811 if test -n "$RANLIB"; then
9812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9813 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009814 fi
9815 ;;
9816
mlcreech636a9952008-05-05 22:52:56 +00009817 aix[4-9]*)
9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9819 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009820 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009821 ;;
9822 esac
drhf922ca42015-05-14 15:39:18 +00009823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009824$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009825
drhf922ca42015-05-14 15:39:18 +00009826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009827$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009828 # Make sure either enable_shared or enable_static is yes.
9829 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009831$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009832
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
a.rottmann9bc8b932004-02-29 15:18:31 +00009834
a.rottmann9bc8b932004-02-29 15:18:31 +00009835
vapier7f19c022007-02-17 14:46:31 +00009836fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009837ac_ext=c
9838ac_cpp='$CPP $CPPFLAGS'
9839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9841ac_compiler_gnu=$ac_cv_c_compiler_gnu
9842
9843CC="$lt_save_CC"
9844
a.rottmann9bc8b932004-02-29 15:18:31 +00009845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
9847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
a.rottmann9bc8b932004-02-29 15:18:31 +00009852
a.rottmann9bc8b932004-02-29 15:18:31 +00009853
vapier7f19c022007-02-17 14:46:31 +00009854
a.rottmann9bc8b932004-02-29 15:18:31 +00009855
9856
drh8b727472009-01-19 18:18:40 +00009857 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009858
vapier7f19c022007-02-17 14:46:31 +00009859
9860
vapier7f19c022007-02-17 14:46:31 +00009861
mlcreech636a9952008-05-05 22:52:56 +00009862# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
9864
drh71eb93e2001-09-28 01:34:43 +00009865# Find a good install program. We prefer a C program (faster),
9866# so one script is as good as another. But avoid the broken or
9867# incompatible versions:
9868# SysV /etc/install, /usr/sbin/install
9869# SunOS /usr/etc/install
9870# IRIX /sbin/install
9871# AIX /bin/install
9872# AmigaOS /C/install, which installs bootblocks on floppy discs
9873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009876# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009877# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009878# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009880$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009881if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009882if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009883 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009884else
a.rottmann84e63352003-03-24 09:42:16 +00009885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886for as_dir in $PATH
9887do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009890 # Account for people who put trailing slashes in PATH elements.
9891case $as_dir/ in #((
9892 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009895 /usr/ucb/* ) ;;
9896 *)
9897 # OSF1 and SCO ODT 3.0 have their own names for install.
9898 # Don't use installbsd from OSF since it installs stuff as root
9899 # by default.
9900 for ac_prog in ginstall scoinst install; do
9901 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009902 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009903 if test $ac_prog = install &&
9904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9905 # AIX install. It has an incompatible calling convention.
9906 :
9907 elif test $ac_prog = install &&
9908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9909 # program-specific install script used by HP pwplus--don't use.
9910 :
9911 else
drh8b727472009-01-19 18:18:40 +00009912 rm -rf conftest.one conftest.two conftest.dir
9913 echo one > conftest.one
9914 echo two > conftest.two
9915 mkdir conftest.dir
9916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9917 test -s conftest.one && test -s conftest.two &&
9918 test -s conftest.dir/conftest.one &&
9919 test -s conftest.dir/conftest.two
9920 then
9921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9922 break 3
9923 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009924 fi
9925 fi
drh71eb93e2001-09-28 01:34:43 +00009926 done
a.rottmann84e63352003-03-24 09:42:16 +00009927 done
9928 ;;
9929esac
a.rottmann84e63352003-03-24 09:42:16 +00009930
drhf922ca42015-05-14 15:39:18 +00009931 done
drh8b727472009-01-19 18:18:40 +00009932IFS=$as_save_IFS
9933
9934rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009935
9936fi
9937 if test "${ac_cv_path_install+set}" = set; then
9938 INSTALL=$ac_cv_path_install
9939 else
drh8b727472009-01-19 18:18:40 +00009940 # As a last resort, use the slow shell script. Don't cache a
9941 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009942 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009943 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009944 INSTALL=$ac_install_sh
9945 fi
9946fi
drhf922ca42015-05-14 15:39:18 +00009947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009948$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009949
9950# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9951# It thinks the first close brace ends the variable substitution.
9952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9953
9954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9955
9956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9957
a.rottmann84e63352003-03-24 09:42:16 +00009958
drh75897232000-05-29 14:26:00 +00009959#########
mlcreech636a9952008-05-05 22:52:56 +00009960# Enable large file support (if special flags are necessary)
9961#
drh8b727472009-01-19 18:18:40 +00009962# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009963if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009964 enableval=$enable_largefile;
9965fi
mlcreech636a9952008-05-05 22:52:56 +00009966
9967if test "$enable_largefile" != no; then
9968
drhf922ca42015-05-14 15:39:18 +00009969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009970$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009971if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009972 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009973else
mlcreech636a9952008-05-05 22:52:56 +00009974 ac_cv_sys_largefile_CC=no
9975 if test "$GCC" != yes; then
9976 ac_save_CC=$CC
9977 while :; do
drh8b727472009-01-19 18:18:40 +00009978 # IRIX 6.2 and later do not support large files by default,
9979 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009981/* end confdefs.h. */
9982#include <sys/types.h>
9983 /* Check that off_t can represent 2**63 - 1 correctly.
9984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9985 since some C++ compilers masquerading as C compilers
9986 incorrectly reject 9223372036854775807. */
9987#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9989 && LARGE_OFF_T % 2147483647 == 1)
9990 ? 1 : -1];
9991int
9992main ()
9993{
9994
9995 ;
9996 return 0;
9997}
9998_ACEOF
drhf922ca42015-05-14 15:39:18 +00009999 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010000 break
mlcreech636a9952008-05-05 22:52:56 +000010001fi
drh8b727472009-01-19 18:18:40 +000010002rm -f core conftest.err conftest.$ac_objext
10003 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010004 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010005 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010006fi
drh8b727472009-01-19 18:18:40 +000010007rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010008 break
10009 done
10010 CC=$ac_save_CC
10011 rm -f conftest.$ac_ext
10012 fi
10013fi
drhf922ca42015-05-14 15:39:18 +000010014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010015$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010016 if test "$ac_cv_sys_largefile_CC" != no; then
10017 CC=$CC$ac_cv_sys_largefile_CC
10018 fi
10019
drhf922ca42015-05-14 15:39:18 +000010020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010021$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010022if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010023 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010024else
10025 while :; do
drhf922ca42015-05-14 15:39:18 +000010026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010027/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010028#include <sys/types.h>
10029 /* Check that off_t can represent 2**63 - 1 correctly.
10030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10031 since some C++ compilers masquerading as C compilers
10032 incorrectly reject 9223372036854775807. */
10033#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10035 && LARGE_OFF_T % 2147483647 == 1)
10036 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010037int
10038main ()
10039{
mlcreech636a9952008-05-05 22:52:56 +000010040
mlcreechb87057f2008-03-06 07:19:20 +000010041 ;
10042 return 0;
10043}
10044_ACEOF
drhf922ca42015-05-14 15:39:18 +000010045if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010046 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010047fi
drh8b727472009-01-19 18:18:40 +000010048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010050/* end confdefs.h. */
10051#define _FILE_OFFSET_BITS 64
10052#include <sys/types.h>
10053 /* Check that off_t can represent 2**63 - 1 correctly.
10054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10055 since some C++ compilers masquerading as C compilers
10056 incorrectly reject 9223372036854775807. */
10057#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10059 && LARGE_OFF_T % 2147483647 == 1)
10060 ? 1 : -1];
10061int
10062main ()
10063{
10064
10065 ;
10066 return 0;
10067}
10068_ACEOF
drhf922ca42015-05-14 15:39:18 +000010069if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010070 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010071fi
drh8b727472009-01-19 18:18:40 +000010072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010074 break
10075done
10076fi
drhf922ca42015-05-14 15:39:18 +000010077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010078$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10079case $ac_cv_sys_file_offset_bits in #(
10080 no | unknown) ;;
10081 *)
mlcreech636a9952008-05-05 22:52:56 +000010082cat >>confdefs.h <<_ACEOF
10083#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10084_ACEOF
drh8b727472009-01-19 18:18:40 +000010085;;
10086esac
10087rm -rf conftest*
10088 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010090$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010091if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010092 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010093else
10094 while :; do
drhf922ca42015-05-14 15:39:18 +000010095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010096/* end confdefs.h. */
10097#include <sys/types.h>
10098 /* Check that off_t can represent 2**63 - 1 correctly.
10099 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10100 since some C++ compilers masquerading as C compilers
10101 incorrectly reject 9223372036854775807. */
10102#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10104 && LARGE_OFF_T % 2147483647 == 1)
10105 ? 1 : -1];
10106int
10107main ()
10108{
10109
10110 ;
10111 return 0;
10112}
10113_ACEOF
drhf922ca42015-05-14 15:39:18 +000010114if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010115 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010116fi
drh8b727472009-01-19 18:18:40 +000010117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010119/* end confdefs.h. */
10120#define _LARGE_FILES 1
10121#include <sys/types.h>
10122 /* Check that off_t can represent 2**63 - 1 correctly.
10123 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10124 since some C++ compilers masquerading as C compilers
10125 incorrectly reject 9223372036854775807. */
10126#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10128 && LARGE_OFF_T % 2147483647 == 1)
10129 ? 1 : -1];
10130int
10131main ()
10132{
10133
10134 ;
10135 return 0;
10136}
10137_ACEOF
drhf922ca42015-05-14 15:39:18 +000010138if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010139 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010140fi
drh8b727472009-01-19 18:18:40 +000010141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010143 break
10144done
10145fi
drhf922ca42015-05-14 15:39:18 +000010146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010147$as_echo "$ac_cv_sys_large_files" >&6; }
10148case $ac_cv_sys_large_files in #(
10149 no | unknown) ;;
10150 *)
mlcreech636a9952008-05-05 22:52:56 +000010151cat >>confdefs.h <<_ACEOF
10152#define _LARGE_FILES $ac_cv_sys_large_files
10153_ACEOF
drh8b727472009-01-19 18:18:40 +000010154;;
10155esac
10156rm -rf conftest*
10157 fi
drhf922ca42015-05-14 15:39:18 +000010158
10159
mlcreech636a9952008-05-05 22:52:56 +000010160fi
10161
10162
10163#########
10164# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010165ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10166if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010167
10168cat >>confdefs.h <<_ACEOF
10169#define HAVE_INT8_T 1
10170_ACEOF
10171
10172
10173fi
drhf922ca42015-05-14 15:39:18 +000010174ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10175if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010176
10177cat >>confdefs.h <<_ACEOF
10178#define HAVE_INT16_T 1
10179_ACEOF
10180
10181
10182fi
drhf922ca42015-05-14 15:39:18 +000010183ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10184if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010185
10186cat >>confdefs.h <<_ACEOF
10187#define HAVE_INT32_T 1
10188_ACEOF
10189
10190
10191fi
drhf922ca42015-05-14 15:39:18 +000010192ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10193if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010194
10195cat >>confdefs.h <<_ACEOF
10196#define HAVE_INT64_T 1
10197_ACEOF
10198
10199
10200fi
drhf922ca42015-05-14 15:39:18 +000010201ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10202if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010203
10204cat >>confdefs.h <<_ACEOF
10205#define HAVE_INTPTR_T 1
10206_ACEOF
10207
10208
10209fi
drhf922ca42015-05-14 15:39:18 +000010210ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10211if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010212
10213cat >>confdefs.h <<_ACEOF
10214#define HAVE_UINT8_T 1
10215_ACEOF
10216
10217
10218fi
drhf922ca42015-05-14 15:39:18 +000010219ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10220if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010221
10222cat >>confdefs.h <<_ACEOF
10223#define HAVE_UINT16_T 1
10224_ACEOF
10225
10226
10227fi
drhf922ca42015-05-14 15:39:18 +000010228ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10229if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010230
10231cat >>confdefs.h <<_ACEOF
10232#define HAVE_UINT32_T 1
10233_ACEOF
10234
10235
10236fi
drhf922ca42015-05-14 15:39:18 +000010237ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10238if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010239
10240cat >>confdefs.h <<_ACEOF
10241#define HAVE_UINT64_T 1
10242_ACEOF
10243
10244
10245fi
drhf922ca42015-05-14 15:39:18 +000010246ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10247if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010248
10249cat >>confdefs.h <<_ACEOF
10250#define HAVE_UINTPTR_T 1
10251_ACEOF
10252
10253
10254fi
mlcreechb87057f2008-03-06 07:19:20 +000010255
10256
10257#########
10258# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010259for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010260do :
10261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010264 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010266_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010267
mlcreechb87057f2008-03-06 07:19:20 +000010268fi
10269
10270done
10271
10272
10273#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010274# Figure out whether or not we have these functions
10275#
drh39311122015-01-15 17:38:35 +000010276for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drhf922ca42015-05-14 15:39:18 +000010277do :
10278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010281 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010282#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010283_ACEOF
10284
10285fi
10286done
10287
10288
mlcreechab1c47b2008-03-09 02:51:10 +000010289#########
mlcreechf3868112008-03-11 18:03:30 +000010290# By default, we use the amalgamation (this may be changed below...)
10291#
10292USE_AMALGAMATION=1
10293
10294#########
mlcreechab1c47b2008-03-09 02:51:10 +000010295# See whether we can run specific tclsh versions known to work well;
10296# if not, then we fall back to plain tclsh.
10297# TODO: try other versions before falling back?
10298#
mistachkinfe27b082013-08-28 18:06:26 +000010299for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010300do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010304$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010305if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010306 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010307else
10308 if test -n "$TCLSH_CMD"; then
10309 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10310else
10311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312for as_dir in $PATH
10313do
10314 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010318 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010320 break 2
10321 fi
10322done
drhf922ca42015-05-14 15:39:18 +000010323 done
drh8b727472009-01-19 18:18:40 +000010324IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010325
10326fi
10327fi
10328TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10329if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010331$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010332else
drhf922ca42015-05-14 15:39:18 +000010333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010334$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010335fi
10336
drh8b727472009-01-19 18:18:40 +000010337
mlcreechab1c47b2008-03-09 02:51:10 +000010338 test -n "$TCLSH_CMD" && break
10339done
mlcreechf3868112008-03-11 18:03:30 +000010340test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010341
mlcreechf3868112008-03-11 18:03:30 +000010342if test "$TCLSH_CMD" = "none"; then
10343 # If we can't find a local tclsh, then building the amalgamation will fail.
10344 # We act as though --disable-amalgamation has been used.
10345 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10346 USE_AMALGAMATION=0
10347 TCLSH_CMD="tclsh"
10348fi
mlcreechab1c47b2008-03-09 02:51:10 +000010349
10350
mlcreech5b0a9eb2008-03-09 01:38:09 +000010351
vapier6acb2cf2009-01-28 04:46:28 +000010352if test "x${TCLLIBDIR+set}" != "xset" ; then
10353 TCLLIBDIR='$(libdir)'
10354 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10355 TCLLIBDIR=$i
10356 break
10357 done
10358 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10359fi
10360
10361
mlcreech5b0a9eb2008-03-09 01:38:09 +000010362#########
drh75897232000-05-29 14:26:00 +000010363# Set up an appropriate program prefix
10364#
10365if test "$program_prefix" = "NONE"; then
10366 program_prefix=""
10367fi
10368
a.rottmann84e63352003-03-24 09:42:16 +000010369
drh4b2266a2004-11-27 15:52:16 +000010370VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010371{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010372$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010373
10374RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010375{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010376$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010377
vapier6acb2cf2009-01-28 04:46:28 +000010378VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010379 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010380 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010381{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010382$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010383
drh26d0e2a2005-07-06 13:51:27 +000010384
drh75897232000-05-29 14:26:00 +000010385#########
drh75897232000-05-29 14:26:00 +000010386# Locate a compiler for the build machine. This compiler should
10387# generate command-line programs that run on the build machine.
10388#
vapier7f19c022007-02-17 14:46:31 +000010389if test x"$cross_compiling" = xno; then
10390 BUILD_CC=$CC
10391 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010392else
vapier7f19c022007-02-17 14:46:31 +000010393 if test "${BUILD_CC+set}" != set; then
10394 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010395do
10396 # Extract the first word of "$ac_prog", so it can be a program name with args.
10397set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010399$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010400if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010401 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010402else
vapier7f19c022007-02-17 14:46:31 +000010403 if test -n "$BUILD_CC"; then
10404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010405else
a.rottmann84e63352003-03-24 09:42:16 +000010406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407for as_dir in $PATH
10408do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010413 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010415 break 2
10416 fi
10417done
drhf922ca42015-05-14 15:39:18 +000010418 done
drh8b727472009-01-19 18:18:40 +000010419IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010420
drh71eb93e2001-09-28 01:34:43 +000010421fi
10422fi
vapier7f19c022007-02-17 14:46:31 +000010423BUILD_CC=$ac_cv_prog_BUILD_CC
10424if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010426$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010427else
drhf922ca42015-05-14 15:39:18 +000010428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010429$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010430fi
drh75897232000-05-29 14:26:00 +000010431
drh8b727472009-01-19 18:18:40 +000010432
vapier7f19c022007-02-17 14:46:31 +000010433 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010434done
drh75897232000-05-29 14:26:00 +000010435
vapier7f19c022007-02-17 14:46:31 +000010436 fi
10437 if test "${BUILD_CFLAGS+set}" != set; then
10438 BUILD_CFLAGS="-g"
10439 fi
drh71eb93e2001-09-28 01:34:43 +000010440fi
10441
a.rottmann84e63352003-03-24 09:42:16 +000010442
drh297ecf12001-04-05 15:57:13 +000010443##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010444# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010445#
drh8b727472009-01-19 18:18:40 +000010446# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010447if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010448 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010449else
drh5a3032b2007-09-03 16:12:09 +000010450 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010451fi
10452
drhf922ca42015-05-14 15:39:18 +000010453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010454$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010455if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010456 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010458$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010459else
drh5a3032b2007-09-03 16:12:09 +000010460 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010462$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010463fi
10464
a.rottmann964dbb12004-02-26 19:47:42 +000010465
drh5a3032b2007-09-03 16:12:09 +000010466if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10468$as_echo_n "checking for library containing pthread_create... " >&6; }
10469if ${ac_cv_search_pthread_create+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471else
10472 ac_func_search_save_LIBS=$LIBS
10473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474/* end confdefs.h. */
10475
10476/* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */
10479#ifdef __cplusplus
10480extern "C"
10481#endif
10482char pthread_create ();
10483int
10484main ()
10485{
10486return pthread_create ();
10487 ;
10488 return 0;
10489}
10490_ACEOF
10491for ac_lib in '' pthread; do
10492 if test -z "$ac_lib"; then
10493 ac_res="none required"
10494 else
10495 ac_res=-l$ac_lib
10496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10497 fi
10498 if ac_fn_c_try_link "$LINENO"; then :
10499 ac_cv_search_pthread_create=$ac_res
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext
10503 if ${ac_cv_search_pthread_create+:} false; then :
10504 break
10505fi
10506done
10507if ${ac_cv_search_pthread_create+:} false; then :
10508
10509else
10510 ac_cv_search_pthread_create=no
10511fi
10512rm conftest.$ac_ext
10513LIBS=$ac_func_search_save_LIBS
10514fi
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10516$as_echo "$ac_cv_search_pthread_create" >&6; }
10517ac_res=$ac_cv_search_pthread_create
10518if test "$ac_res" != no; then :
10519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10520
10521fi
10522
drh13c808a2016-01-13 21:23:48 +000010523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10524$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10525if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010526 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010527else
mlcreechc658b0f2008-03-09 02:20:11 +000010528 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010530/* end confdefs.h. */
10531
drh8b727472009-01-19 18:18:40 +000010532/* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010535#ifdef __cplusplus
10536extern "C"
10537#endif
drh13c808a2016-01-13 21:23:48 +000010538char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010539int
10540main ()
10541{
drh13c808a2016-01-13 21:23:48 +000010542return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010543 ;
10544 return 0;
10545}
10546_ACEOF
drh8b727472009-01-19 18:18:40 +000010547for ac_lib in '' pthread; do
10548 if test -z "$ac_lib"; then
10549 ac_res="none required"
10550 else
10551 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010553 fi
drhf922ca42015-05-14 15:39:18 +000010554 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010555 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010556fi
drhf922ca42015-05-14 15:39:18 +000010557rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010559 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010560 break
drh866108f2008-05-13 00:57:21 +000010561fi
drh8b727472009-01-19 18:18:40 +000010562done
drh13c808a2016-01-13 21:23:48 +000010563if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010564
drh8b727472009-01-19 18:18:40 +000010565else
drh13c808a2016-01-13 21:23:48 +000010566 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010567fi
10568rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010569LIBS=$ac_func_search_save_LIBS
10570fi
drh13c808a2016-01-13 21:23:48 +000010571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10572$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10573ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010574if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010576
dougcurrie65623c72004-09-20 14:57:23 +000010577fi
10578
mlcreechc658b0f2008-03-09 02:20:11 +000010579fi
dougcurrie65623c72004-09-20 14:57:23 +000010580
xdong28f79f72003-09-23 00:35:21 +000010581##########
10582# Do we want to support release
10583#
drh8b727472009-01-19 18:18:40 +000010584# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010585if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010586 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010587else
10588 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010589fi
10590
drhf922ca42015-05-14 15:39:18 +000010591{ $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 +000010592$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010593if test "$enable_releasemode" = "no"; then
10594 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010596$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010597else
drh0b47d342007-11-27 14:50:06 +000010598 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010600$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010601fi
paulb0208cc2003-04-13 18:26:49 +000010602
a.rottmann964dbb12004-02-26 19:47:42 +000010603
paulb0208cc2003-04-13 18:26:49 +000010604##########
10605# Do we want temporary databases in memory
10606#
drh8b727472009-01-19 18:18:40 +000010607# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010608if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010609 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010610else
drh54414bb2005-10-10 00:05:50 +000010611 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010612fi
10613
drhf922ca42015-05-14 15:39:18 +000010614{ $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 +000010615$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010616case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010617 never )
paul2dc96f92003-04-20 11:46:34 +000010618 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010620$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010621 ;;
10622 no )
paul2dc96f92003-04-20 11:46:34 +000010623 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010625$as_echo "no" >&6; }
10626 ;;
10627 yes )
10628 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010630$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010631 ;;
10632 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010633 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010635$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010636 ;;
paulb0208cc2003-04-13 18:26:49 +000010637 * )
drh54414bb2005-10-10 00:05:50 +000010638 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010640$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010641 ;;
10642esac
10643
10644
10645
drh75897232000-05-29 14:26:00 +000010646###########
10647# Lots of things are different if we are compiling for Windows using
10648# the CYGWIN environment. So check for that special case and handle
10649# things accordingly.
10650#
drhf922ca42015-05-14 15:39:18 +000010651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010652$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010653if test "$config_BUILD_EXEEXT" = ".exe"; then
10654 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010656$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010657else
drhf922ca42015-05-14 15:39:18 +000010658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010659$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010660fi
10661if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010662
10663case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010664 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010665 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010666esac
drh75897232000-05-29 14:26:00 +000010667
drh75897232000-05-29 14:26:00 +000010668fi
10669if test "$CYGWIN" = "yes"; then
10670 BUILD_EXEEXT=.exe
10671else
dougcurrie6194a5f2003-12-19 20:09:51 +000010672 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010673fi
vapier7f19c022007-02-17 14:46:31 +000010674if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010675 TARGET_EXEEXT=$BUILD_EXEEXT
10676else
10677 TARGET_EXEEXT=$config_TARGET_EXEEXT
10678fi
10679if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010680 SQLITE_OS_UNIX=0
10681 SQLITE_OS_WIN=1
10682 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010683else
danielk197729bafea2008-06-26 10:41:19 +000010684 SQLITE_OS_UNIX=1
10685 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010686 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010687fi
drh75897232000-05-29 14:26:00 +000010688
a.rottmann84e63352003-03-24 09:42:16 +000010689
10690
10691
10692
10693
drh75897232000-05-29 14:26:00 +000010694##########
drh7b5717e2004-11-25 13:50:01 +000010695# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010696#
drh7b5717e2004-11-25 13:50:01 +000010697# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10698# macros in the in the tcl.m4 file of the standard TCL distribution.
10699# Those macros could not be used directly since we have to make some
10700# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010701#
drh8b727472009-01-19 18:18:40 +000010702# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010703if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010704 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010705else
drh7b5717e2004-11-25 13:50:01 +000010706 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010707fi
10708
drh7b5717e2004-11-25 13:50:01 +000010709if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010710
drh8b727472009-01-19 18:18:40 +000010711# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010712if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010713 withval=$with_tcl; with_tclconfig=${withval}
10714fi
10715
drhf922ca42015-05-14 15:39:18 +000010716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010717$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010718 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010719 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010720else
a.rottmann84e63352003-03-24 09:42:16 +000010721
drh7b5717e2004-11-25 13:50:01 +000010722 # First check to see if --with-tcl was specified.
10723 if test x"${with_tclconfig}" != x ; then
10724 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10725 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10726 else
drhf922ca42015-05-14 15:39:18 +000010727 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010728 fi
10729 fi
vapier6acb2cf2009-01-28 04:46:28 +000010730
10731 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010732 if test x"${ac_cv_c_tclconfig}" = x ; then
10733 if test x"$cross_compiling" = xno; then
10734 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10735 do
10736 if test -f "$i/tclConfig.sh" ; then
10737 ac_cv_c_tclconfig="$i"
10738 break
10739 fi
10740 done
10741 fi
vapier6acb2cf2009-01-28 04:46:28 +000010742 fi
10743
drhf960a642015-05-30 22:57:49 +000010744 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10745 # So try again after applying corrections.
10746 if test x"${ac_cv_c_tclconfig}" = x ; then
10747 if test x"$cross_compiling" = xno; then
10748 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10749 do
10750 if test -f "$i/tclConfig.sh" ; then
10751 ac_cv_c_tclconfig="$i"
10752 break
10753 fi
10754 done
10755 fi
10756 fi
10757
drh7b5717e2004-11-25 13:50:01 +000010758 # then check for a private Tcl installation
10759 if test x"${ac_cv_c_tclconfig}" = x ; then
10760 for i in \
10761 ../tcl \
10762 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10763 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10764 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10765 ../../tcl \
10766 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10767 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10768 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10769 ../../../tcl \
10770 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10771 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10772 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10773 do
10774 if test -f "$i/unix/tclConfig.sh" ; then
10775 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10776 break
10777 fi
10778 done
10779 fi
10780
10781 # check in a few common install locations
10782 if test x"${ac_cv_c_tclconfig}" = x ; then
10783 for i in \
10784 `ls -d ${libdir} 2>/dev/null` \
10785 `ls -d /usr/local/lib 2>/dev/null` \
10786 `ls -d /usr/contrib/lib 2>/dev/null` \
10787 `ls -d /usr/lib 2>/dev/null`
10788 do
10789 if test -f "$i/tclConfig.sh" ; then
10790 ac_cv_c_tclconfig=`(cd $i; pwd)`
10791 break
10792 fi
10793 done
10794 fi
10795
10796 # check in a few other private locations
10797 if test x"${ac_cv_c_tclconfig}" = x ; then
10798 for i in \
10799 ${srcdir}/../tcl \
10800 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10801 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10802 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10803 do
10804 if test -f "$i/unix/tclConfig.sh" ; then
10805 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10806 break
10807 fi
10808 done
10809 fi
10810
drh75897232000-05-29 14:26:00 +000010811fi
10812
drh7b5717e2004-11-25 13:50:01 +000010813
10814 if test x"${ac_cv_c_tclconfig}" = x ; then
10815 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010817$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010819$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010821$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010822 else
10823 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010825$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010826
drhf922ca42015-05-14 15:39:18 +000010827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010828$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010829 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010831$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010832 . $TCL_BIN_DIR/tclConfig.sh
10833 else
drhf922ca42015-05-14 15:39:18 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010835$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010836 fi
drh7b5717e2004-11-25 13:50:01 +000010837
10838 #
10839 # If the TCL_BIN_DIR is the build directory (not the install directory),
10840 # then set the common variable name to the value of the build variables.
10841 # For example, the variable TCL_LIB_SPEC will be set to the value
10842 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10843 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10844 # installed and uninstalled version of Tcl.
10845 #
10846
mlcreechab1c47b2008-03-09 02:51:10 +000010847 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010848 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10849 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10850 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10851 fi
10852
10853 #
10854 # eval is required to do the TCL_DBGX substitution
10855 #
10856
10857 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10858 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10859 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10860
10861 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10862 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10863 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
drhd881ce82015-03-31 17:01:52 +000010877
drh7b5717e2004-11-25 13:50:01 +000010878 fi
drh75897232000-05-29 14:26:00 +000010879fi
drh7b5717e2004-11-25 13:50:01 +000010880if test "${use_tcl}" = "no" ; then
10881 HAVE_TCL=""
10882else
10883 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010884fi
drh75897232000-05-29 14:26:00 +000010885
a.rottmann84e63352003-03-24 09:42:16 +000010886
drh75897232000-05-29 14:26:00 +000010887##########
10888# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010889# that use "readline()" library.
10890#
vapier7f19c022007-02-17 14:46:31 +000010891TARGET_READLINE_LIBS=""
10892TARGET_READLINE_INC=""
10893TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010894TARGET_HAVE_EDITLINE=0
10895# Check whether --enable-editline was given.
10896if test "${enable_editline+set}" = set; then :
10897 enableval=$enable_editline; with_editline=$enableval
10898else
10899 with_editline=auto
10900fi
10901
drh8b727472009-01-19 18:18:40 +000010902# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010903if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010904 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010905else
vapier7f19c022007-02-17 14:46:31 +000010906 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010907fi
10908
vapier7f19c022007-02-17 14:46:31 +000010909
drhe44b8352015-10-30 14:25:57 +000010910if test x"$with_editline" != xno; then
10911 sLIBS=$LIBS
10912 LIBS=""
10913 TARGET_HAVE_EDITLINE=1
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10915$as_echo_n "checking for library containing readline... " >&6; }
10916if ${ac_cv_search_readline+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918else
10919 ac_func_search_save_LIBS=$LIBS
10920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921/* end confdefs.h. */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char readline ();
10930int
10931main ()
10932{
10933return readline ();
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938for ac_lib in '' edit; do
10939 if test -z "$ac_lib"; then
10940 ac_res="none required"
10941 else
10942 ac_res=-l$ac_lib
10943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10944 fi
10945 if ac_fn_c_try_link "$LINENO"; then :
10946 ac_cv_search_readline=$ac_res
10947fi
10948rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext
10950 if ${ac_cv_search_readline+:} false; then :
10951 break
10952fi
10953done
10954if ${ac_cv_search_readline+:} false; then :
10955
10956else
10957 ac_cv_search_readline=no
10958fi
10959rm conftest.$ac_ext
10960LIBS=$ac_func_search_save_LIBS
10961fi
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10963$as_echo "$ac_cv_search_readline" >&6; }
10964ac_res=$ac_cv_search_readline
10965if test "$ac_res" != no; then :
10966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10967 with_readline=no
10968else
10969 TARGET_HAVE_EDITLINE=0
10970fi
10971
10972 TARGET_READLINE_LIBS=$LIBS
10973 LIBS=$sLIBS
10974fi
vapier7f19c022007-02-17 14:46:31 +000010975if test x"$with_readline" != xno; then
10976 found="yes"
10977
10978
drh8b727472009-01-19 18:18:40 +000010979# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010980if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010981 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010982else
10983 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010984fi
10985
vapier7f19c022007-02-17 14:46:31 +000010986 if test "x$with_readline_lib" = xauto; then
10987 save_LIBS="$LIBS"
10988 LIBS=""
drhf922ca42015-05-14 15:39:18 +000010989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010990$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010991if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010992 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010993else
drh71eb93e2001-09-28 01:34:43 +000010994 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010996/* end confdefs.h. */
10997
drh8b727472009-01-19 18:18:40 +000010998/* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011001#ifdef __cplusplus
11002extern "C"
11003#endif
paul38372372003-04-22 08:04:49 +000011004char tgetent ();
11005int
11006main ()
11007{
drh8b727472009-01-19 18:18:40 +000011008return tgetent ();
paul38372372003-04-22 08:04:49 +000011009 ;
11010 return 0;
11011}
11012_ACEOF
drh8b727472009-01-19 18:18:40 +000011013for ac_lib in '' readline ncurses curses termcap; do
11014 if test -z "$ac_lib"; then
11015 ac_res="none required"
11016 else
11017 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011019 fi
drhf922ca42015-05-14 15:39:18 +000011020 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011021 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011022fi
drhf922ca42015-05-14 15:39:18 +000011023rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext
11025 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011026 break
drh866108f2008-05-13 00:57:21 +000011027fi
drh8b727472009-01-19 18:18:40 +000011028done
drhf922ca42015-05-14 15:39:18 +000011029if ${ac_cv_search_tgetent+:} false; then :
11030
drh8b727472009-01-19 18:18:40 +000011031else
11032 ac_cv_search_tgetent=no
11033fi
11034rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011035LIBS=$ac_func_search_save_LIBS
11036fi
drhf922ca42015-05-14 15:39:18 +000011037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011038$as_echo "$ac_cv_search_tgetent" >&6; }
11039ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011040if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011042 term_LIBS="$LIBS"
11043else
11044 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011045fi
11046
drhf922ca42015-05-14 15:39:18 +000011047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011048$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011049if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011050 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011051else
11052 ac_check_lib_save_LIBS=$LIBS
11053LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011055/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011056
drh8b727472009-01-19 18:18:40 +000011057/* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011060#ifdef __cplusplus
11061extern "C"
11062#endif
drh71eb93e2001-09-28 01:34:43 +000011063char readline ();
11064int
11065main ()
11066{
drh8b727472009-01-19 18:18:40 +000011067return readline ();
drh71eb93e2001-09-28 01:34:43 +000011068 ;
11069 return 0;
11070}
11071_ACEOF
drhf922ca42015-05-14 15:39:18 +000011072if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011073 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011074else
drhf922ca42015-05-14 15:39:18 +000011075 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011076fi
drhf922ca42015-05-14 15:39:18 +000011077rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011079LIBS=$ac_check_lib_save_LIBS
11080fi
drhf922ca42015-05-14 15:39:18 +000011081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011082$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011083if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011084 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011085else
vapier7f19c022007-02-17 14:46:31 +000011086 found="no"
11087fi
drhf1878b42006-01-23 18:06:52 +000011088
vapier7f19c022007-02-17 14:46:31 +000011089 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11090 LIBS="$save_LIBS"
11091 else
11092 TARGET_READLINE_LIBS="$with_readline_lib"
11093 fi
11094
11095
drh8b727472009-01-19 18:18:40 +000011096# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011097if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011098 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011099else
vapier7f19c022007-02-17 14:46:31 +000011100 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011101fi
11102
vapier7f19c022007-02-17 14:46:31 +000011103 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011104 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11105if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011106 found="yes"
11107else
drh75897232000-05-29 14:26:00 +000011108
vapier7f19c022007-02-17 14:46:31 +000011109 found="no"
11110 if test "$cross_compiling" != yes; then
11111 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11112 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011113 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011115$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011116if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011117 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011118else
11119 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011120 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011121if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011122 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011123else
drh71eb93e2001-09-28 01:34:43 +000011124 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011125fi
11126fi
drhf922ca42015-05-14 15:39:18 +000011127eval ac_res=\$$as_ac_File
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011129$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011130if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011131 found=yes
drh75897232000-05-29 14:26:00 +000011132fi
11133
vapier7f19c022007-02-17 14:46:31 +000011134 if test "$found" = "yes"; then
11135 TARGET_READLINE_INC="-I$dir/$subdir"
11136 break
11137 fi
11138 done
11139 test "$found" = "yes" && break
11140 done
11141 fi
11142
11143fi
11144
11145
11146 else
11147 TARGET_READLINE_INC="$with_readline_inc"
11148 fi
11149
11150 if test x"$found" = xno; then
11151 TARGET_READLINE_LIBS=""
11152 TARGET_READLINE_INC=""
11153 TARGET_HAVE_READLINE=0
11154 else
11155 TARGET_HAVE_READLINE=1
11156 fi
11157fi
11158
11159
11160
11161
11162
drhe44b8352015-10-30 14:25:57 +000011163
vapier7f19c022007-02-17 14:46:31 +000011164##########
11165# Figure out what C libraries are required to compile programs
11166# that use "fdatasync()" function.
11167#
drhf922ca42015-05-14 15:39:18 +000011168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011169$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011170if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011171 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011172else
vapier7f19c022007-02-17 14:46:31 +000011173 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011175/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011176
drh8b727472009-01-19 18:18:40 +000011177/* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011180#ifdef __cplusplus
11181extern "C"
11182#endif
11183char fdatasync ();
11184int
11185main ()
11186{
drh8b727472009-01-19 18:18:40 +000011187return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011188 ;
11189 return 0;
11190}
11191_ACEOF
drh8b727472009-01-19 18:18:40 +000011192for ac_lib in '' rt; do
11193 if test -z "$ac_lib"; then
11194 ac_res="none required"
11195 else
11196 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011198 fi
drhf922ca42015-05-14 15:39:18 +000011199 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011200 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011201fi
drhf922ca42015-05-14 15:39:18 +000011202rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext
11204 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011205 break
drh866108f2008-05-13 00:57:21 +000011206fi
drh8b727472009-01-19 18:18:40 +000011207done
drhf922ca42015-05-14 15:39:18 +000011208if ${ac_cv_search_fdatasync+:} false; then :
11209
drh8b727472009-01-19 18:18:40 +000011210else
11211 ac_cv_search_fdatasync=no
11212fi
11213rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011214LIBS=$ac_func_search_save_LIBS
11215fi
drhf922ca42015-05-14 15:39:18 +000011216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011217$as_echo "$ac_cv_search_fdatasync" >&6; }
11218ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011219if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011221
vapier7f19c022007-02-17 14:46:31 +000011222fi
11223
a.rottmann84e63352003-03-24 09:42:16 +000011224
drh75897232000-05-29 14:26:00 +000011225#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011226# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011227# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011228if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011229 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011230else
11231 use_debug=no
drh8b727472009-01-19 18:18:40 +000011232fi
11233
tpoindex9d9f76c2005-01-03 21:28:56 +000011234if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011235 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011236else
11237 TARGET_DEBUG="-DNDEBUG"
11238fi
11239
11240
11241#########
mlcreech94984912008-03-04 19:03:08 +000011242# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011243# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011244if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011245 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011246else
11247 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011248fi
11249
mlcreechf3868112008-03-11 18:03:30 +000011250if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011251 USE_AMALGAMATION=0
11252fi
11253
11254
11255#########
mlcreecha4edab02008-03-06 04:14:17 +000011256# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011257# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011258if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011259 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011260else
drh05c7e0b2015-01-10 14:27:17 +000011261 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011262fi
11263
mlcreecha4edab02008-03-06 04:14:17 +000011264if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011265 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011267$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011268if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011269 $as_echo_n "(cached) " >&6
11270else
11271 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011273/* end confdefs.h. */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char dlopen ();
11282int
11283main ()
11284{
11285return dlopen ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290for ac_lib in '' dl; do
11291 if test -z "$ac_lib"; then
11292 ac_res="none required"
11293 else
11294 ac_res=-l$ac_lib
11295 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11296 fi
drhf922ca42015-05-14 15:39:18 +000011297 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011298 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011299fi
drhf922ca42015-05-14 15:39:18 +000011300rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext
11302 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011303 break
11304fi
11305done
drhf922ca42015-05-14 15:39:18 +000011306if ${ac_cv_search_dlopen+:} false; then :
11307
drhdbe4b882011-06-20 18:00:17 +000011308else
11309 ac_cv_search_dlopen=no
11310fi
11311rm conftest.$ac_ext
11312LIBS=$ac_func_search_save_LIBS
11313fi
drhf922ca42015-05-14 15:39:18 +000011314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011315$as_echo "$ac_cv_search_dlopen" >&6; }
11316ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011317if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11319
11320fi
11321
mlcreecha4edab02008-03-06 04:14:17 +000011322else
shanefbedede2008-07-22 05:05:01 +000011323 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011324fi
11325
mlcreechaac7b932008-04-01 02:45:22 +000011326#########
drhce1d9f52015-10-09 12:48:33 +000011327# See whether we should enable Full Text Search extensions
11328# Check whether --enable-fts3 was given.
11329if test "${enable_fts3+set}" = set; then :
11330 enableval=$enable_fts3; enable_fts3=yes
11331else
11332 enable_fts3=no
11333fi
11334
11335if test "${enable_fts3}" = "yes" ; then
11336 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11337fi
11338# Check whether --enable-fts4 was given.
11339if test "${enable_fts4+set}" = set; then :
11340 enableval=$enable_fts4; enable_fts4=yes
11341else
11342 enable_fts4=no
11343fi
11344
11345if test "${enable_fts4}" = "yes" ; then
11346 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11348$as_echo_n "checking for library containing log... " >&6; }
11349if ${ac_cv_search_log+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351else
11352 ac_func_search_save_LIBS=$LIBS
11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354/* end confdefs.h. */
11355
11356/* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11359#ifdef __cplusplus
11360extern "C"
11361#endif
11362char log ();
11363int
11364main ()
11365{
11366return log ();
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371for ac_lib in '' m; do
11372 if test -z "$ac_lib"; then
11373 ac_res="none required"
11374 else
11375 ac_res=-l$ac_lib
11376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11377 fi
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 ac_cv_search_log=$ac_res
11380fi
11381rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext
11383 if ${ac_cv_search_log+:} false; then :
11384 break
11385fi
11386done
11387if ${ac_cv_search_log+:} false; then :
11388
11389else
11390 ac_cv_search_log=no
11391fi
11392rm conftest.$ac_ext
11393LIBS=$ac_func_search_save_LIBS
11394fi
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11396$as_echo "$ac_cv_search_log" >&6; }
11397ac_res=$ac_cv_search_log
11398if test "$ac_res" != no; then :
11399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11400
11401fi
11402
11403fi
11404# Check whether --enable-fts5 was given.
11405if test "${enable_fts5+set}" = set; then :
11406 enableval=$enable_fts5; enable_fts5=yes
11407else
11408 enable_fts5=no
11409fi
11410
11411if test "${enable_fts5}" = "yes" ; then
11412 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11414$as_echo_n "checking for library containing log... " >&6; }
11415if ${ac_cv_search_log+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417else
11418 ac_func_search_save_LIBS=$LIBS
11419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420/* end confdefs.h. */
11421
11422/* Override any GCC internal prototype to avoid an error.
11423 Use char because int might match the return type of a GCC
11424 builtin and then its argument prototype would still apply. */
11425#ifdef __cplusplus
11426extern "C"
11427#endif
11428char log ();
11429int
11430main ()
11431{
11432return log ();
11433 ;
11434 return 0;
11435}
11436_ACEOF
11437for ac_lib in '' m; do
11438 if test -z "$ac_lib"; then
11439 ac_res="none required"
11440 else
11441 ac_res=-l$ac_lib
11442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11443 fi
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_search_log=$ac_res
11446fi
11447rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext
11449 if ${ac_cv_search_log+:} false; then :
11450 break
11451fi
11452done
11453if ${ac_cv_search_log+:} false; then :
11454
11455else
11456 ac_cv_search_log=no
11457fi
11458rm conftest.$ac_ext
11459LIBS=$ac_func_search_save_LIBS
11460fi
11461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11462$as_echo "$ac_cv_search_log" >&6; }
11463ac_res=$ac_cv_search_log
11464if test "$ac_res" != no; then :
11465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11466
11467fi
11468
11469fi
11470
11471#########
11472# See whether we should enable JSON1
11473# Check whether --enable-json1 was given.
11474if test "${enable_json1+set}" = set; then :
11475 enableval=$enable_json1; enable_json1=yes
11476else
11477 enable_json1=no
11478fi
11479
11480if test "${enable_json1}" = "yes" ; then
11481 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11482fi
11483
11484#########
11485# See whether we should enable RTREE
11486# Check whether --enable-rtree was given.
11487if test "${enable_rtree+set}" = set; then :
11488 enableval=$enable_rtree; enable_rtree=yes
11489else
11490 enable_rtree=no
11491fi
11492
11493if test "${enable_rtree}" = "yes" ; then
11494 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11495fi
11496
11497#########
shaneb1cd7302008-10-22 18:27:31 +000011498# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011499for option in $CFLAGS $CPPFLAGS
11500do
11501 case $option in
danielk197733a14782008-08-04 14:50:05 +000011502 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011503 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011504 esac
11505done
11506
11507
danielk197733a14782008-08-04 14:50:05 +000011508
shaneb1cd7302008-10-22 18:27:31 +000011509# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011510ac_temp_CFLAGS=""
11511for option in $CFLAGS
11512do
11513 case $option in
11514 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011515 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011516 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011517 esac
11518done
11519CFLAGS=$ac_temp_CFLAGS
11520
11521
shaneb1cd7302008-10-22 18:27:31 +000011522# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011523ac_temp_CPPFLAGS=""
11524for option in $CPPFLAGS
11525do
11526 case $option in
11527 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011528 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011529 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011530 esac
11531done
11532CPPFLAGS=$ac_temp_CPPFLAGS
11533
danielk197733a14782008-08-04 14:50:05 +000011534
drh8b727472009-01-19 18:18:40 +000011535# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011536ac_temp_BUILD_CFLAGS=""
11537for option in $BUILD_CFLAGS
11538do
11539 case $option in
11540 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011541 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011542 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011543 esac
11544done
11545BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11546
11547
11548#########
11549# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011550# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011551if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011552 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011553else
11554 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011555fi
11556
mlcreechaac7b932008-04-01 02:45:22 +000011557if test "${use_gcov}" = "yes" ; then
11558 USE_GCOV=1
11559else
11560 USE_GCOV=0
11561fi
11562
11563
danielk197733a14782008-08-04 14:50:05 +000011564
drh2dfbbca2000-07-28 14:32:48 +000011565#########
mlcreechb87057f2008-03-06 07:19:20 +000011566# Output the config header
drh8b727472009-01-19 18:18:40 +000011567ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011568
11569
11570#########
drh75897232000-05-29 14:26:00 +000011571# Generate the output files.
11572#
mlcreechdf59c7c2008-03-06 07:51:15 +000011573
drh8b727472009-01-19 18:18:40 +000011574ac_config_files="$ac_config_files Makefile sqlite3.pc"
11575
drh71eb93e2001-09-28 01:34:43 +000011576cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011577# This file is a shell script that caches the results of configure
11578# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011579# scripts and configure runs, see configure's option --config-cache.
11580# It is not useful on other systems. If it contains results you don't
11581# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011582#
drh71eb93e2001-09-28 01:34:43 +000011583# config.status only pays attention to the cache file if you give it
11584# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011585#
a.rottmann84e63352003-03-24 09:42:16 +000011586# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011587# loading this file, other *unset* `ac_cv_foo' will be assigned the
11588# following values.
11589
11590_ACEOF
11591
drh75897232000-05-29 14:26:00 +000011592# The following way of writing the cache mishandles newlines in values,
11593# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011594# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011595# Ultrix sh set writes to stderr and can't be redirected directly,
11596# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011597(
11598 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11599 eval ac_val=\$$ac_var
11600 case $ac_val in #(
11601 *${as_nl}*)
11602 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011603 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011605 esac
11606 case $ac_var in #(
11607 _ | IFS | as_nl) ;; #(
11608 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011609 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011610 esac ;;
11611 esac
11612 done
11613
drh71eb93e2001-09-28 01:34:43 +000011614 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011615 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11616 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011617 # `set' does not quote correctly, so add quotes: double-quote
11618 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011619 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011620 "s/'/'\\\\''/g;
11621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011622 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011623 *)
11624 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011626 ;;
drh8b727472009-01-19 18:18:40 +000011627 esac |
11628 sort
11629) |
drh71eb93e2001-09-28 01:34:43 +000011630 sed '
drh8b727472009-01-19 18:18:40 +000011631 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011632 t clear
drh8b727472009-01-19 18:18:40 +000011633 :clear
drh71eb93e2001-09-28 01:34:43 +000011634 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11635 t end
drh8b727472009-01-19 18:18:40 +000011636 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11637 :end' >>confcache
11638if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11639 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011640 if test "x$cache_file" != "x/dev/null"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011642$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011643 if test ! -f "$cache_file" || test -h "$cache_file"; then
11644 cat confcache >"$cache_file"
11645 else
11646 case $cache_file in #(
11647 */* | ?:*)
11648 mv -f confcache "$cache_file"$$ &&
11649 mv -f "$cache_file"$$ "$cache_file" ;; #(
11650 *)
11651 mv -f confcache "$cache_file" ;;
11652 esac
11653 fi
11654 fi
drh75897232000-05-29 14:26:00 +000011655 else
drhf922ca42015-05-14 15:39:18 +000011656 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011657$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011658 fi
11659fi
11660rm -f confcache
11661
drh75897232000-05-29 14:26:00 +000011662test "x$prefix" = xNONE && prefix=$ac_default_prefix
11663# Let make expand exec_prefix.
11664test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11665
mlcreechb87057f2008-03-06 07:19:20 +000011666DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011667
11668ac_libobjs=
11669ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011670U=
a.rottmann84e63352003-03-24 09:42:16 +000011671for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11672 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011673 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11674 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11675 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11676 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011677 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11678 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011679done
11680LIBOBJS=$ac_libobjs
11681
11682LTLIBOBJS=$ac_ltlibobjs
11683
11684
11685
drhf922ca42015-05-14 15:39:18 +000011686: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011687ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011688ac_clean_files_save=$ac_clean_files
11689ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011690{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011691$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011692as_write_fail=0
11693cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011694#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011695# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011696# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011697# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011698# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011699
drh71eb93e2001-09-28 01:34:43 +000011700debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011701ac_cs_recheck=false
11702ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011703
drhf922ca42015-05-14 15:39:18 +000011704SHELL=\${CONFIG_SHELL-$SHELL}
11705export SHELL
11706_ASEOF
11707cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11708## -------------------- ##
11709## M4sh Initialization. ##
11710## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011711
drh8b727472009-01-19 18:18:40 +000011712# Be more Bourne compatible
11713DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011714if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011715 emulate sh
11716 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011718 # is contrary to our usage. Disable this feature.
11719 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011720 setopt NO_GLOB_SUBST
11721else
drhf922ca42015-05-14 15:39:18 +000011722 case `(set -o) 2>/dev/null` in #(
11723 *posix*) :
11724 set -o posix ;; #(
11725 *) :
11726 ;;
drh8b727472009-01-19 18:18:40 +000011727esac
a.rottmann84e63352003-03-24 09:42:16 +000011728fi
drh8b727472009-01-19 18:18:40 +000011729
11730
drh8b727472009-01-19 18:18:40 +000011731as_nl='
11732'
11733export as_nl
11734# Printing a long string crashes Solaris 7 /usr/bin/printf.
11735as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11737as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011738# Prefer a ksh shell builtin over an external printf program on Solaris,
11739# but without wasting forks for bash or zsh.
11740if test -z "$BASH_VERSION$ZSH_VERSION" \
11741 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11742 as_echo='print -r --'
11743 as_echo_n='print -rn --'
11744elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011745 as_echo='printf %s\n'
11746 as_echo_n='printf %s'
11747else
11748 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11749 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11750 as_echo_n='/usr/ucb/echo -n'
11751 else
11752 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11753 as_echo_n_body='eval
11754 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011755 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011756 *"$as_nl"*)
11757 expr "X$arg" : "X\\(.*\\)$as_nl";
11758 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11759 esac;
11760 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11761 '
11762 export as_echo_n_body
11763 as_echo_n='sh -c $as_echo_n_body as_echo'
11764 fi
11765 export as_echo_body
11766 as_echo='sh -c $as_echo_body as_echo'
11767fi
11768
11769# The user is always right.
11770if test "${PATH_SEPARATOR+set}" != set; then
11771 PATH_SEPARATOR=:
11772 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11773 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11774 PATH_SEPARATOR=';'
11775 }
11776fi
a.rottmann84e63352003-03-24 09:42:16 +000011777
mlcreech94984912008-03-04 19:03:08 +000011778
drh8b727472009-01-19 18:18:40 +000011779# IFS
11780# We need space, tab and new line, in precisely that order. Quoting is
11781# there to prevent editors from complaining about space-tab.
11782# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11783# splitting by setting IFS to empty value.)
11784IFS=" "" $as_nl"
11785
11786# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011787as_myself=
11788case $0 in #((
drh8b727472009-01-19 18:18:40 +000011789 *[\\/]* ) as_myself=$0 ;;
11790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11796 done
drh8b727472009-01-19 18:18:40 +000011797IFS=$as_save_IFS
11798
11799 ;;
11800esac
11801# We did not find ourselves, most probably we were run as `sh COMMAND'
11802# in which case we are not to be found in the path.
11803if test "x$as_myself" = x; then
11804 as_myself=$0
11805fi
11806if test ! -f "$as_myself"; then
11807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011808 exit 1
drh8b727472009-01-19 18:18:40 +000011809fi
11810
drhf922ca42015-05-14 15:39:18 +000011811# Unset variables that we do not need and which cause bugs (e.g. in
11812# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11813# suppresses any "Segmentation fault" message there. '((' could
11814# trigger a bug in pdksh 5.2.14.
11815for as_var in BASH_ENV ENV MAIL MAILPATH
11816do eval test x\${$as_var+set} = xset \
11817 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011818done
mlcreech94984912008-03-04 19:03:08 +000011819PS1='$ '
11820PS2='> '
11821PS4='+ '
11822
11823# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011824LC_ALL=C
11825export LC_ALL
11826LANGUAGE=C
11827export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011828
drhf922ca42015-05-14 15:39:18 +000011829# CDPATH.
11830(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11831
11832
11833# as_fn_error STATUS ERROR [LINENO LOG_FD]
11834# ----------------------------------------
11835# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11836# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11837# script with STATUS, using 1 if that was 0.
11838as_fn_error ()
11839{
11840 as_status=$1; test $as_status -eq 0 && as_status=1
11841 if test "$4"; then
11842 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11844 fi
11845 $as_echo "$as_me: error: $2" >&2
11846 as_fn_exit $as_status
11847} # as_fn_error
11848
11849
11850# as_fn_set_status STATUS
11851# -----------------------
11852# Set $? to STATUS, without forking.
11853as_fn_set_status ()
11854{
11855 return $1
11856} # as_fn_set_status
11857
11858# as_fn_exit STATUS
11859# -----------------
11860# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11861as_fn_exit ()
11862{
11863 set +e
11864 as_fn_set_status $1
11865 exit $1
11866} # as_fn_exit
11867
11868# as_fn_unset VAR
11869# ---------------
11870# Portably unset VAR.
11871as_fn_unset ()
11872{
11873 { eval $1=; unset $1;}
11874}
11875as_unset=as_fn_unset
11876# as_fn_append VAR VALUE
11877# ----------------------
11878# Append the text in VALUE to the end of the definition contained in VAR. Take
11879# advantage of any shell optimizations that allow amortized linear growth over
11880# repeated appends, instead of the typical quadratic growth present in naive
11881# implementations.
11882if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11883 eval 'as_fn_append ()
11884 {
11885 eval $1+=\$2
11886 }'
11887else
11888 as_fn_append ()
11889 {
11890 eval $1=\$$1\$2
11891 }
11892fi # as_fn_append
11893
11894# as_fn_arith ARG...
11895# ------------------
11896# Perform arithmetic evaluation on the ARGs, and store the result in the
11897# global $as_val. Take advantage of shells that can avoid forks. The arguments
11898# must be portable across $(()) and expr.
11899if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11900 eval 'as_fn_arith ()
11901 {
11902 as_val=$(( $* ))
11903 }'
11904else
11905 as_fn_arith ()
11906 {
11907 as_val=`expr "$@" || test $? -eq 1`
11908 }
11909fi # as_fn_arith
11910
11911
drh8b727472009-01-19 18:18:40 +000011912if expr a : '\(a\)' >/dev/null 2>&1 &&
11913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011914 as_expr=expr
11915else
11916 as_expr=false
11917fi
11918
drh8b727472009-01-19 18:18:40 +000011919if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011920 as_basename=basename
11921else
11922 as_basename=false
11923fi
11924
drhf922ca42015-05-14 15:39:18 +000011925if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11926 as_dirname=dirname
11927else
11928 as_dirname=false
11929fi
mlcreech94984912008-03-04 19:03:08 +000011930
drh8b727472009-01-19 18:18:40 +000011931as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011932$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11933 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11935$as_echo X/"$0" |
11936 sed '/^.*\/\([^/][^/]*\)\/*$/{
11937 s//\1/
11938 q
11939 }
11940 /^X\/\(\/\/\)$/{
11941 s//\1/
11942 q
11943 }
11944 /^X\/\(\/\).*/{
11945 s//\1/
11946 q
11947 }
11948 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011949
drhf922ca42015-05-14 15:39:18 +000011950# Avoid depending upon Character Ranges.
11951as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11952as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11953as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11954as_cr_digits='0123456789'
11955as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011956
drh8b727472009-01-19 18:18:40 +000011957ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011958case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011959-n*)
drhf922ca42015-05-14 15:39:18 +000011960 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011961 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011962 xy) ECHO_C='\c';;
11963 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11964 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011965 esac;;
11966*)
11967 ECHO_N='-n';;
11968esac
drh71eb93e2001-09-28 01:34:43 +000011969
11970rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011971if test -d conf$$.dir; then
11972 rm -f conf$$.dir/conf$$.file
11973else
11974 rm -f conf$$.dir
11975 mkdir conf$$.dir 2>/dev/null
11976fi
11977if (echo >conf$$.file) 2>/dev/null; then
11978 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011979 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011980 # ... but there are two gotchas:
11981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000011983 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000011984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000011985 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000011986 elif ln conf$$.file conf$$ 2>/dev/null; then
11987 as_ln_s=ln
11988 else
drhf922ca42015-05-14 15:39:18 +000011989 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000011990 fi
drh71eb93e2001-09-28 01:34:43 +000011991else
drhf922ca42015-05-14 15:39:18 +000011992 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000011993fi
drh8b727472009-01-19 18:18:40 +000011994rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11995rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011996
drhf922ca42015-05-14 15:39:18 +000011997
11998# as_fn_mkdir_p
11999# -------------
12000# Create "$as_dir" as a directory, including parents if necessary.
12001as_fn_mkdir_p ()
12002{
12003
12004 case $as_dir in #(
12005 -*) as_dir=./$as_dir;;
12006 esac
12007 test -d "$as_dir" || eval $as_mkdir_p || {
12008 as_dirs=
12009 while :; do
12010 case $as_dir in #(
12011 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12012 *) as_qdir=$as_dir;;
12013 esac
12014 as_dirs="'$as_qdir' $as_dirs"
12015 as_dir=`$as_dirname -- "$as_dir" ||
12016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12017 X"$as_dir" : 'X\(//\)[^/]' \| \
12018 X"$as_dir" : 'X\(//\)$' \| \
12019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12020$as_echo X"$as_dir" |
12021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12022 s//\1/
12023 q
12024 }
12025 /^X\(\/\/\)[^/].*/{
12026 s//\1/
12027 q
12028 }
12029 /^X\(\/\/\)$/{
12030 s//\1/
12031 q
12032 }
12033 /^X\(\/\).*/{
12034 s//\1/
12035 q
12036 }
12037 s/.*/./; q'`
12038 test -d "$as_dir" && break
12039 done
12040 test -z "$as_dirs" || eval "mkdir $as_dirs"
12041 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12042
12043
12044} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012045if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012046 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012047else
a.rottmann964dbb12004-02-26 19:47:42 +000012048 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012049 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012050fi
12051
drhf922ca42015-05-14 15:39:18 +000012052
12053# as_fn_executable_p FILE
12054# -----------------------
12055# Test if FILE is an executable regular file.
12056as_fn_executable_p ()
12057{
12058 test -f "$1" && test -x "$1"
12059} # as_fn_executable_p
12060as_test_x='test -x'
12061as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012062
12063# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012064as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012065
12066# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012067as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012068
drh71eb93e2001-09-28 01:34:43 +000012069
drh71eb93e2001-09-28 01:34:43 +000012070exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012071## ----------------------------------- ##
12072## Main body of $CONFIG_STATUS script. ##
12073## ----------------------------------- ##
12074_ASEOF
12075test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012076
drhf922ca42015-05-14 15:39:18 +000012077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12078# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012079# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012080# values after options handling.
12081ac_log="
drh2fca7052016-01-11 12:52:55 +000012082This file was extended by sqlite $as_me 3.11.0, which was
drhf922ca42015-05-14 15:39:18 +000012083generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012084
12085 CONFIG_FILES = $CONFIG_FILES
12086 CONFIG_HEADERS = $CONFIG_HEADERS
12087 CONFIG_LINKS = $CONFIG_LINKS
12088 CONFIG_COMMANDS = $CONFIG_COMMANDS
12089 $ $0 $@
12090
drh8b727472009-01-19 18:18:40 +000012091on `(hostname || uname -n) 2>/dev/null | sed 1q`
12092"
12093
drh71eb93e2001-09-28 01:34:43 +000012094_ACEOF
12095
drhf922ca42015-05-14 15:39:18 +000012096case $ac_config_files in *"
12097"*) set x $ac_config_files; shift; ac_config_files=$*;;
12098esac
12099
12100case $ac_config_headers in *"
12101"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12102esac
12103
12104
drh8b727472009-01-19 18:18:40 +000012105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012106# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012107config_files="$ac_config_files"
12108config_headers="$ac_config_headers"
12109config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012110
drh8b727472009-01-19 18:18:40 +000012111_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012112
drh8b727472009-01-19 18:18:40 +000012113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012114ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012115\`$as_me' instantiates files and other configuration actions
12116from templates according to the current configuration. Unless the files
12117and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012118
drhf922ca42015-05-14 15:39:18 +000012119Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012120
12121 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012122 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012123 --config print configuration, then exit
12124 -q, --quiet, --silent
12125 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012126 -d, --debug don't remove temporary files
12127 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012128 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012129 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012130 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012131 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012132
12133Configuration files:
12134$config_files
12135
mlcreechb87057f2008-03-06 07:19:20 +000012136Configuration headers:
12137$config_headers
12138
mlcreech636a9952008-05-05 22:52:56 +000012139Configuration commands:
12140$config_commands
12141
drhf922ca42015-05-14 15:39:18 +000012142Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012143
mlcreech94984912008-03-04 19:03:08 +000012144_ACEOF
drh8b727472009-01-19 18:18:40 +000012145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012146ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012147ac_cs_version="\\
drh2fca7052016-01-11 12:52:55 +000012148sqlite config.status 3.11.0
drhf922ca42015-05-14 15:39:18 +000012149configured by $0, generated by GNU Autoconf 2.69,
12150 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012151
drhf922ca42015-05-14 15:39:18 +000012152Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012153This config.status script is free software; the Free Software Foundation
12154gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012155
12156ac_pwd='$ac_pwd'
12157srcdir='$srcdir'
12158INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012159test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012160_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012161
drh8b727472009-01-19 18:18:40 +000012162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012164ac_need_defaults=:
12165while test $# != 0
12166do
12167 case $1 in
drhf922ca42015-05-14 15:39:18 +000012168 --*=?*)
drh8b727472009-01-19 18:18:40 +000012169 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12170 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012171 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012172 ;;
drhf922ca42015-05-14 15:39:18 +000012173 --*=)
12174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12175 ac_optarg=
12176 ac_shift=:
12177 ;;
drh8b727472009-01-19 18:18:40 +000012178 *)
a.rottmann84e63352003-03-24 09:42:16 +000012179 ac_option=$1
12180 ac_optarg=$2
12181 ac_shift=shift
12182 ;;
drh75897232000-05-29 14:26:00 +000012183 esac
12184
a.rottmann84e63352003-03-24 09:42:16 +000012185 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012186 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012188 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012189 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12190 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012191 --config | --confi | --conf | --con | --co | --c )
12192 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012193 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012194 debug=: ;;
12195 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012196 $ac_shift
drh8b727472009-01-19 18:18:40 +000012197 case $ac_optarg in
12198 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012199 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012200 esac
drhf922ca42015-05-14 15:39:18 +000012201 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012202 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012203 --header | --heade | --head | --hea )
12204 $ac_shift
drh8b727472009-01-19 18:18:40 +000012205 case $ac_optarg in
12206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12207 esac
drhf922ca42015-05-14 15:39:18 +000012208 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012209 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012210 --he | --h)
12211 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012212 as_fn_error $? "ambiguous option: \`$1'
12213Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012214 --help | --hel | -h )
12215 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12217 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12218 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012219
drh71eb93e2001-09-28 01:34:43 +000012220 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012221 -*) as_fn_error $? "unrecognized option: \`$1'
12222Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012223
drhf922ca42015-05-14 15:39:18 +000012224 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012225 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012226
12227 esac
12228 shift
12229done
12230
a.rottmann84e63352003-03-24 09:42:16 +000012231ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012232
a.rottmann84e63352003-03-24 09:42:16 +000012233if $ac_cs_silent; then
12234 exec 6>/dev/null
12235 ac_configure_extra_args="$ac_configure_extra_args --silent"
12236fi
drh71eb93e2001-09-28 01:34:43 +000012237
12238_ACEOF
drh8b727472009-01-19 18:18:40 +000012239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012240if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012241 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012242 shift
12243 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12244 CONFIG_SHELL='$SHELL'
12245 export CONFIG_SHELL
12246 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012247fi
drh71eb93e2001-09-28 01:34:43 +000012248
a.rottmann84e63352003-03-24 09:42:16 +000012249_ACEOF
drh8b727472009-01-19 18:18:40 +000012250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251exec 5>>config.log
12252{
12253 echo
12254 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12255## Running $as_me. ##
12256_ASBOX
12257 $as_echo "$ac_log"
12258} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012259
drh8b727472009-01-19 18:18:40 +000012260_ACEOF
12261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012262#
drh8b727472009-01-19 18:18:40 +000012263# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012264#
12265
12266
12267# The HP-UX ksh and POSIX shell print the target directory to stdout
12268# if CDPATH is set.
12269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12270
12271sed_quote_subst='$sed_quote_subst'
12272double_quote_subst='$double_quote_subst'
12273delay_variable_subst='$delay_variable_subst'
12274macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12275macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12276enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12277enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12278pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12279enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12280host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12281host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12282host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12283build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12284build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12285build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12286SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12287Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12288GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12289EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12290FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12291LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12292NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12293LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12294max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12295ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12296exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12297lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12298lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12299lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12300reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12301reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012302OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012303deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12304file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12305AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12306AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12307STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12308RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12309old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12310old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12311old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12313CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12314compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12315GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12316lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12317lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12318lt_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"`'
12319lt_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"`'
12320objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12321SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12322ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12323MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12324lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12325lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12326lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12327lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12328lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12329need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12330DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12331NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12332LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12333OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12334OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12335libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12336shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12337extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12338archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12339enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12340export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12341whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12342compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12343old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12344old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12345archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12346archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12347module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12348module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12349with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12350allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12351no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12352hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12353hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12354hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12355hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12356hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12357hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12358hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12359hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12360inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12361link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12362fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12363always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12364export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12365exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12366include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12367prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12368file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12369variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12370need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12371need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12372version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12373runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12374shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12375shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12376libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12377library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12378soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12379postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12380postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12381finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12382finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12383hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12384sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12385sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12386hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12387enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12388enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12389enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12390old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12391striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12392
12393LTCC='$LTCC'
12394LTCFLAGS='$LTCFLAGS'
12395compiler='$compiler_DEFAULT'
12396
12397# Quote evaled strings.
12398for var in SED \
12399GREP \
12400EGREP \
12401FGREP \
12402LD \
12403NM \
12404LN_S \
12405lt_SP2NL \
12406lt_NL2SP \
12407reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012408OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012409deplibs_check_method \
12410file_magic_cmd \
12411AR \
12412AR_FLAGS \
12413STRIP \
12414RANLIB \
12415CC \
12416CFLAGS \
12417compiler \
12418lt_cv_sys_global_symbol_pipe \
12419lt_cv_sys_global_symbol_to_cdecl \
12420lt_cv_sys_global_symbol_to_c_name_address \
12421lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12422SHELL \
12423ECHO \
12424lt_prog_compiler_no_builtin_flag \
12425lt_prog_compiler_wl \
12426lt_prog_compiler_pic \
12427lt_prog_compiler_static \
12428lt_cv_prog_compiler_c_o \
12429need_locks \
12430DSYMUTIL \
12431NMEDIT \
12432LIPO \
12433OTOOL \
12434OTOOL64 \
12435shrext_cmds \
12436export_dynamic_flag_spec \
12437whole_archive_flag_spec \
12438compiler_needs_object \
12439with_gnu_ld \
12440allow_undefined_flag \
12441no_undefined_flag \
12442hardcode_libdir_flag_spec \
12443hardcode_libdir_flag_spec_ld \
12444hardcode_libdir_separator \
12445fix_srcfile_path \
12446exclude_expsyms \
12447include_expsyms \
12448file_list_spec \
12449variables_saved_for_relink \
12450libname_spec \
12451library_names_spec \
12452soname_spec \
12453finish_eval \
12454old_striplib \
12455striplib; do
12456 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12457 *[\\\\\\\`\\"\\\$]*)
12458 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12459 ;;
12460 *)
12461 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12462 ;;
12463 esac
12464done
12465
12466# Double-quote double-evaled strings.
12467for var in reload_cmds \
12468old_postinstall_cmds \
12469old_postuninstall_cmds \
12470old_archive_cmds \
12471extract_expsyms_cmds \
12472old_archive_from_new_cmds \
12473old_archive_from_expsyms_cmds \
12474archive_cmds \
12475archive_expsym_cmds \
12476module_cmds \
12477module_expsym_cmds \
12478export_symbols_cmds \
12479prelink_cmds \
12480postinstall_cmds \
12481postuninstall_cmds \
12482finish_cmds \
12483sys_lib_search_path_spec \
12484sys_lib_dlsearch_path_spec; do
12485 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12486 *[\\\\\\\`\\"\\\$]*)
12487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12488 ;;
12489 *)
12490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12491 ;;
12492 esac
12493done
12494
12495# Fix-up fallback echo if it was mangled by the above quoting rules.
12496case \$lt_ECHO in
12497*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12498 ;;
12499esac
12500
12501ac_aux_dir='$ac_aux_dir'
12502xsi_shell='$xsi_shell'
12503lt_shell_append='$lt_shell_append'
12504
12505# See if we are running on zsh, and set the options which allow our
12506# commands through without removal of \ escapes INIT.
12507if test -n "\${ZSH_VERSION+set}" ; then
12508 setopt NO_GLOB_SUBST
12509fi
12510
12511
12512 PACKAGE='$PACKAGE'
12513 VERSION='$VERSION'
12514 TIMESTAMP='$TIMESTAMP'
12515 RM='$RM'
12516 ofile='$ofile'
12517
12518
12519
12520
mlcreech94984912008-03-04 19:03:08 +000012521_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012522
drh8b727472009-01-19 18:18:40 +000012523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012524
drh8b727472009-01-19 18:18:40 +000012525# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012526for ac_config_target in $ac_config_targets
12527do
drh8b727472009-01-19 18:18:40 +000012528 case $ac_config_target in
12529 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12532 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12533
drhf922ca42015-05-14 15:39:18 +000012534 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012535 esac
12536done
12537
drh8b727472009-01-19 18:18:40 +000012538
drh71eb93e2001-09-28 01:34:43 +000012539# If the user did not use the arguments to specify the items to instantiate,
12540# then the envvar interface is used. Set only those that are not.
12541# We use the long form for the default assignment because of an extremely
12542# bizarre bug on SunOS 4.1.3.
12543if $ac_need_defaults; then
12544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012547fi
12548
a.rottmann84e63352003-03-24 09:42:16 +000012549# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012550# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012551# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012552# Hook for its removal unless debugging.
12553# Note that there is a small window in which the directory will not be cleaned:
12554# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012555$debug ||
12556{
drhf922ca42015-05-14 15:39:18 +000012557 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012558 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012559 : "${ac_tmp:=$tmp}"
12560 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012561' 0
drhf922ca42015-05-14 15:39:18 +000012562 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012563}
drh71eb93e2001-09-28 01:34:43 +000012564# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012565
drh71eb93e2001-09-28 01:34:43 +000012566{
drh8b727472009-01-19 18:18:40 +000012567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012568 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012569} ||
12570{
drh8b727472009-01-19 18:18:40 +000012571 tmp=./conf$$-$RANDOM
12572 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012573} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12574ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012575
drh8b727472009-01-19 18:18:40 +000012576# Set up the scripts for CONFIG_FILES section.
12577# No need to generate them if there are no CONFIG_FILES.
12578# This happens for instance with `./config.status config.h'.
12579if test -n "$CONFIG_FILES"; then
12580
12581
drhf922ca42015-05-14 15:39:18 +000012582ac_cr=`echo X | tr X '\015'`
12583# On cygwin, bash can eat \r inside `` if the user requested igncr.
12584# But we know of no other shell where ac_cr would be empty at this
12585# point, so we can use a bashism as a fallback.
12586if test "x$ac_cr" = x; then
12587 eval ac_cr=\$\'\\r\'
12588fi
drh8b727472009-01-19 18:18:40 +000012589ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12590if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012591 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012592else
12593 ac_cs_awk_cr=$ac_cr
12594fi
12595
drhf922ca42015-05-14 15:39:18 +000012596echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012597_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012598
mlcreech94984912008-03-04 19:03:08 +000012599
drh8b727472009-01-19 18:18:40 +000012600{
12601 echo "cat >conf$$subs.awk <<_ACEOF" &&
12602 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12603 echo "_ACEOF"
12604} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012605 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12606ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012607ac_delim='%!_!# '
12608for ac_last_try in false false false false false :; do
12609 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012610 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012611
drhf922ca42015-05-14 15:39:18 +000012612 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12613 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012614 break
12615 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012616 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012617 else
12618 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012619 fi
drh8b727472009-01-19 18:18:40 +000012620done
12621rm -f conf$$subs.sh
12622
12623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012624cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012625_ACEOF
12626sed -n '
12627h
12628s/^/S["/; s/!.*/"]=/
12629p
12630g
12631s/^[^!]*!//
12632:repl
12633t repl
12634s/'"$ac_delim"'$//
12635t delim
12636:nl
12637h
drhf922ca42015-05-14 15:39:18 +000012638s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012639t more1
12640s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12641p
12642n
12643b repl
12644:more1
12645s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12646p
12647g
12648s/.\{148\}//
12649t nl
12650:delim
12651h
drhf922ca42015-05-14 15:39:18 +000012652s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012653t more2
12654s/["\\]/\\&/g; s/^/"/; s/$/"/
12655p
12656b
12657:more2
12658s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12659p
12660g
12661s/.\{148\}//
12662t delim
12663' <conf$$subs.awk | sed '
12664/^[^""]/{
12665 N
12666 s/\n//
12667}
12668' >>$CONFIG_STATUS || ac_write_fail=1
12669rm -f conf$$subs.awk
12670cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12671_ACAWK
drhf922ca42015-05-14 15:39:18 +000012672cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012673 for (key in S) S_is_set[key] = 1
12674 FS = ""
12675
12676}
12677{
12678 line = $ 0
12679 nfields = split(line, field, "@")
12680 substed = 0
12681 len = length(field[1])
12682 for (i = 2; i < nfields; i++) {
12683 key = field[i]
12684 keylen = length(key)
12685 if (S_is_set[key]) {
12686 value = S[key]
12687 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12688 len += length(value) + length(field[++i])
12689 substed = 1
12690 } else
12691 len += 1 + keylen
12692 }
12693
12694 print line
12695}
12696
12697_ACAWK
12698_ACEOF
12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12701 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12702else
12703 cat
drhf922ca42015-05-14 15:39:18 +000012704fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12705 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012706_ACEOF
12707
drhf922ca42015-05-14 15:39:18 +000012708# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12709# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012710# trailing colons and then remove the whole line if VPATH becomes empty
12711# (actually we leave an empty line to preserve line numbers).
12712if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012713 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12714h
12715s///
12716s/^/:/
12717s/[ ]*$/:/
12718s/:\$(srcdir):/:/g
12719s/:\${srcdir}:/:/g
12720s/:@srcdir@:/:/g
12721s/^:*//
drh8b727472009-01-19 18:18:40 +000012722s/:*$//
drhf922ca42015-05-14 15:39:18 +000012723x
12724s/\(=[ ]*\).*/\1/
12725G
12726s/\n//
drh8b727472009-01-19 18:18:40 +000012727s/^[^=]*=[ ]*$//
12728}'
12729fi
12730
12731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012732fi # test -n "$CONFIG_FILES"
12733
drh8b727472009-01-19 18:18:40 +000012734# Set up the scripts for CONFIG_HEADERS section.
12735# No need to generate them if there are no CONFIG_HEADERS.
12736# This happens for instance with `./config.status Makefile'.
12737if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012738cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012739BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012740_ACEOF
drh8b727472009-01-19 18:18:40 +000012741
12742# Transform confdefs.h into an awk script `defines.awk', embedded as
12743# here-document in config.status, that substitutes the proper values into
12744# config.h.in to produce config.h.
12745
12746# Create a delimiter string that does not exist in confdefs.h, to ease
12747# handling of long lines.
12748ac_delim='%!_!# '
12749for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012750 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12751 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012752 break
12753 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012754 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012755 else
12756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12757 fi
12758done
12759
12760# For the awk script, D is an array of macro values keyed by name,
12761# likewise P contains macro parameters if any. Preserve backslash
12762# newline sequences.
12763
12764ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12765sed -n '
12766s/.\{148\}/&'"$ac_delim"'/g
12767t rset
12768:rset
12769s/^[ ]*#[ ]*define[ ][ ]*/ /
12770t def
12771d
12772:def
12773s/\\$//
12774t bsnl
12775s/["\\]/\\&/g
12776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12777D["\1"]=" \3"/p
12778s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12779d
12780:bsnl
12781s/["\\]/\\&/g
12782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12783D["\1"]=" \3\\\\\\n"\\/p
12784t cont
12785s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12786t cont
12787d
12788:cont
12789n
12790s/.\{148\}/&'"$ac_delim"'/g
12791t clear
12792:clear
12793s/\\$//
12794t bsnlc
12795s/["\\]/\\&/g; s/^/"/; s/$/"/p
12796d
12797:bsnlc
12798s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12799b cont
12800' <confdefs.h | sed '
12801s/'"$ac_delim"'/"\\\
12802"/g' >>$CONFIG_STATUS || ac_write_fail=1
12803
12804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12805 for (key in D) D_is_set[key] = 1
12806 FS = ""
12807}
12808/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12809 line = \$ 0
12810 split(line, arg, " ")
12811 if (arg[1] == "#") {
12812 defundef = arg[2]
12813 mac1 = arg[3]
12814 } else {
12815 defundef = substr(arg[1], 2)
12816 mac1 = arg[2]
12817 }
12818 split(mac1, mac2, "(") #)
12819 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012820 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012821 if (D_is_set[macro]) {
12822 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012823 print prefix "define", macro P[macro] D[macro]
12824 next
12825 } else {
12826 # Replace #undef with comments. This is necessary, for example,
12827 # in the case of _POSIX_SOURCE, which is predefined and required
12828 # on some systems where configure will not decide to define it.
12829 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012830 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012831 next
12832 }
12833 }
12834}
12835{ print }
12836_ACAWK
12837_ACEOF
12838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012839 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012840fi # test -n "$CONFIG_HEADERS"
12841
12842
12843eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12844shift
12845for ac_tag
12846do
12847 case $ac_tag in
12848 :[FHLC]) ac_mode=$ac_tag; continue;;
12849 esac
12850 case $ac_mode$ac_tag in
12851 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012852 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012853 :[FH]-) ac_tag=-:-;;
12854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12855 esac
12856 ac_save_IFS=$IFS
12857 IFS=:
12858 set x $ac_tag
12859 IFS=$ac_save_IFS
12860 shift
12861 ac_file=$1
12862 shift
12863
12864 case $ac_mode in
12865 :L) ac_source=$1;;
12866 :[FH])
12867 ac_file_inputs=
12868 for ac_f
12869 do
12870 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012871 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012872 *) # Look for the file first in the build tree, then in the source tree
12873 # (if the path is not absolute). The absolute path cannot be DOS-style,
12874 # because $ac_f cannot contain `:'.
12875 test -f "$ac_f" ||
12876 case $ac_f in
12877 [\\/$]*) false;;
12878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12879 esac ||
drhf922ca42015-05-14 15:39:18 +000012880 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012881 esac
12882 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012883 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012884 done
12885
12886 # Let's still pretend it is `configure' which instantiates (i.e., don't
12887 # use $as_me), people would be surprised to read:
12888 # /* config.h. Generated by config.status. */
12889 configure_input='Generated from '`
12890 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12891 `' by configure.'
12892 if test x"$ac_file" != x-; then
12893 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012895$as_echo "$as_me: creating $ac_file" >&6;}
12896 fi
12897 # Neutralize special characters interpreted by sed in replacement strings.
12898 case $configure_input in #(
12899 *\&* | *\|* | *\\* )
12900 ac_sed_conf_input=`$as_echo "$configure_input" |
12901 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12902 *) ac_sed_conf_input=$configure_input;;
12903 esac
12904
12905 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012906 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012908 esac
12909 ;;
drh71eb93e2001-09-28 01:34:43 +000012910 esac
12911
drh8b727472009-01-19 18:18:40 +000012912 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012913$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012914 X"$ac_file" : 'X\(//\)[^/]' \| \
12915 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012916 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12917$as_echo X"$ac_file" |
12918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12919 s//\1/
12920 q
12921 }
12922 /^X\(\/\/\)[^/].*/{
12923 s//\1/
12924 q
12925 }
12926 /^X\(\/\/\)$/{
12927 s//\1/
12928 q
12929 }
12930 /^X\(\/\).*/{
12931 s//\1/
12932 q
12933 }
12934 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012935 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012936 ac_builddir=.
12937
drh8b727472009-01-19 18:18:40 +000012938case "$ac_dir" in
12939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12940*)
12941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12942 # A ".." for each directory in $ac_dir_suffix.
12943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12944 case $ac_top_builddir_sub in
12945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12947 esac ;;
12948esac
12949ac_abs_top_builddir=$ac_pwd
12950ac_abs_builddir=$ac_pwd$ac_dir_suffix
12951# for backward compatibility:
12952ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012953
12954case $srcdir in
drh8b727472009-01-19 18:18:40 +000012955 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012956 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012957 ac_top_srcdir=$ac_top_builddir_sub
12958 ac_abs_top_srcdir=$ac_pwd ;;
12959 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012960 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012961 ac_top_srcdir=$srcdir
12962 ac_abs_top_srcdir=$srcdir ;;
12963 *) # Relative name.
12964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12965 ac_top_srcdir=$ac_top_build_prefix$srcdir
12966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012967esac
drh8b727472009-01-19 18:18:40 +000012968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012969
a.rottmann84e63352003-03-24 09:42:16 +000012970
drh8b727472009-01-19 18:18:40 +000012971 case $ac_mode in
12972 :F)
12973 #
12974 # CONFIG_FILE
12975 #
drh75897232000-05-29 14:26:00 +000012976
drh71eb93e2001-09-28 01:34:43 +000012977 case $INSTALL in
12978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012980 esac
mlcreech94984912008-03-04 19:03:08 +000012981_ACEOF
drh8b727472009-01-19 18:18:40 +000012982
12983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984# If the template does not know about datarootdir, expand it.
12985# FIXME: This hack should be removed a few years after 2.60.
12986ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012987ac_sed_dataroot='
12988/datarootdir/ {
12989 p
12990 q
12991}
12992/@datadir@/p
12993/@docdir@/p
12994/@infodir@/p
12995/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000012996/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012997case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12998*datarootdir*) ac_datarootdir_seen=yes;;
12999*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013001$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13002_ACEOF
13003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13004 ac_datarootdir_hack='
13005 s&@datadir@&$datadir&g
13006 s&@docdir@&$docdir&g
13007 s&@infodir@&$infodir&g
13008 s&@localedir@&$localedir&g
13009 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013010 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013011esac
13012_ACEOF
13013
13014# Neutralize VPATH when `$srcdir' = `.'.
13015# Shell code in configure.ac might set extrasub.
13016# FIXME: do we really want to maintain this feature?
13017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13018ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013019$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013020_ACEOF
drh8b727472009-01-19 18:18:40 +000013021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013022:t
13023/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013024s|@configure_input@|$ac_sed_conf_input|;t t
13025s&@top_builddir@&$ac_top_builddir_sub&;t t
13026s&@top_build_prefix@&$ac_top_build_prefix&;t t
13027s&@srcdir@&$ac_srcdir&;t t
13028s&@abs_srcdir@&$ac_abs_srcdir&;t t
13029s&@top_srcdir@&$ac_top_srcdir&;t t
13030s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13031s&@builddir@&$ac_builddir&;t t
13032s&@abs_builddir@&$ac_abs_builddir&;t t
13033s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13034s&@INSTALL@&$ac_INSTALL&;t t
13035$ac_datarootdir_hack
13036"
drhf922ca42015-05-14 15:39:18 +000013037eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13038 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013039
drh8b727472009-01-19 18:18:40 +000013040test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013041 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13042 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13043 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13045which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013046$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013047which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013048
drhf922ca42015-05-14 15:39:18 +000013049 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013050 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013051 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13052 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013053 esac \
drhf922ca42015-05-14 15:39:18 +000013054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013055 ;;
13056 :H)
13057 #
13058 # CONFIG_HEADER
13059 #
drh866108f2008-05-13 00:57:21 +000013060 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013061 {
13062 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13064 } >"$ac_tmp/config.h" \
13065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13066 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013068$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013069 else
drh8b727472009-01-19 18:18:40 +000013070 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013071 mv "$ac_tmp/config.h" "$ac_file" \
13072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013073 fi
13074 else
drh8b727472009-01-19 18:18:40 +000013075 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13077 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013078 fi
drh8b727472009-01-19 18:18:40 +000013079 ;;
drh866108f2008-05-13 00:57:21 +000013080
drhf922ca42015-05-14 15:39:18 +000013081 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013082$as_echo "$as_me: executing $ac_file commands" >&6;}
13083 ;;
13084 esac
drh866108f2008-05-13 00:57:21 +000013085
13086
drh8b727472009-01-19 18:18:40 +000013087 case $ac_file$ac_mode in
13088 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013089
13090 # See if we are running on zsh, and set the options which allow our
13091 # commands through without removal of \ escapes.
13092 if test -n "${ZSH_VERSION+set}" ; then
13093 setopt NO_GLOB_SUBST
13094 fi
13095
13096 cfgfile="${ofile}T"
13097 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13098 $RM "$cfgfile"
13099
13100 cat <<_LT_EOF >> "$cfgfile"
13101#! $SHELL
13102
13103# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13104# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13106# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13107#
13108# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13109# 2006, 2007, 2008 Free Software Foundation, Inc.
13110# Written by Gordon Matzigkeit, 1996
13111#
13112# This file is part of GNU Libtool.
13113#
13114# GNU Libtool is free software; you can redistribute it and/or
13115# modify it under the terms of the GNU General Public License as
13116# published by the Free Software Foundation; either version 2 of
13117# the License, or (at your option) any later version.
13118#
13119# As a special exception to the GNU General Public License,
13120# if you distribute this file as part of a program or library that
13121# is built using GNU Libtool, you may include this file under the
13122# same distribution terms that you use for the rest of that program.
13123#
13124# GNU Libtool is distributed in the hope that it will be useful,
13125# but WITHOUT ANY WARRANTY; without even the implied warranty of
13126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13127# GNU General Public License for more details.
13128#
13129# You should have received a copy of the GNU General Public License
13130# along with GNU Libtool; see the file COPYING. If not, a copy
13131# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13132# obtained by writing to the Free Software Foundation, Inc.,
13133# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13134
13135
13136# The names of the tagged configurations supported by this script.
13137available_tags=""
13138
13139# ### BEGIN LIBTOOL CONFIG
13140
13141# Which release of libtool.m4 was used?
13142macro_version=$macro_version
13143macro_revision=$macro_revision
13144
13145# Whether or not to build shared libraries.
13146build_libtool_libs=$enable_shared
13147
13148# Whether or not to build static libraries.
13149build_old_libs=$enable_static
13150
13151# What type of objects to build.
13152pic_mode=$pic_mode
13153
13154# Whether or not to optimize for fast installation.
13155fast_install=$enable_fast_install
13156
13157# The host system.
13158host_alias=$host_alias
13159host=$host
13160host_os=$host_os
13161
13162# The build system.
13163build_alias=$build_alias
13164build=$build
13165build_os=$build_os
13166
13167# A sed program that does not truncate output.
13168SED=$lt_SED
13169
13170# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13171Xsed="\$SED -e 1s/^X//"
13172
13173# A grep program that handles long lines.
13174GREP=$lt_GREP
13175
13176# An ERE matcher.
13177EGREP=$lt_EGREP
13178
13179# A literal string matcher.
13180FGREP=$lt_FGREP
13181
13182# A BSD- or MS-compatible name lister.
13183NM=$lt_NM
13184
13185# Whether we need soft or hard links.
13186LN_S=$lt_LN_S
13187
13188# What is the maximum length of a command?
13189max_cmd_len=$max_cmd_len
13190
13191# Object file suffix (normally "o").
13192objext=$ac_objext
13193
13194# Executable file suffix (normally "").
13195exeext=$exeext
13196
13197# whether the shell understands "unset".
13198lt_unset=$lt_unset
13199
13200# turn spaces into newlines.
13201SP2NL=$lt_lt_SP2NL
13202
13203# turn newlines into spaces.
13204NL2SP=$lt_lt_NL2SP
13205
13206# How to create reloadable object files.
13207reload_flag=$lt_reload_flag
13208reload_cmds=$lt_reload_cmds
13209
vapier6acb2cf2009-01-28 04:46:28 +000013210# An object symbol dumper.
13211OBJDUMP=$lt_OBJDUMP
13212
mlcreech636a9952008-05-05 22:52:56 +000013213# Method to check whether dependent libraries are shared objects.
13214deplibs_check_method=$lt_deplibs_check_method
13215
13216# Command to use when deplibs_check_method == "file_magic".
13217file_magic_cmd=$lt_file_magic_cmd
13218
13219# The archiver.
13220AR=$lt_AR
13221AR_FLAGS=$lt_AR_FLAGS
13222
13223# A symbol stripping program.
13224STRIP=$lt_STRIP
13225
13226# Commands used to install an old-style archive.
13227RANLIB=$lt_RANLIB
13228old_postinstall_cmds=$lt_old_postinstall_cmds
13229old_postuninstall_cmds=$lt_old_postuninstall_cmds
13230
13231# A C compiler.
13232LTCC=$lt_CC
13233
13234# LTCC compiler flags.
13235LTCFLAGS=$lt_CFLAGS
13236
13237# Take the output of nm and produce a listing of raw symbols and C names.
13238global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13239
13240# Transform the output of nm in a proper C declaration.
13241global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13242
13243# Transform the output of nm in a C name address pair.
13244global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13245
13246# Transform the output of nm in a C name address pair when lib prefix is needed.
13247global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13248
13249# The name of the directory that contains temporary libtool files.
13250objdir=$objdir
13251
13252# Shell to use when invoking shell scripts.
13253SHELL=$lt_SHELL
13254
13255# An echo program that does not interpret backslashes.
13256ECHO=$lt_ECHO
13257
13258# Used to examine libraries when file_magic_cmd begins with "file".
13259MAGIC_CMD=$MAGIC_CMD
13260
13261# Must we lock files when doing compilation?
13262need_locks=$lt_need_locks
13263
13264# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13265DSYMUTIL=$lt_DSYMUTIL
13266
13267# Tool to change global to local symbols on Mac OS X.
13268NMEDIT=$lt_NMEDIT
13269
13270# Tool to manipulate fat objects and archives on Mac OS X.
13271LIPO=$lt_LIPO
13272
13273# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13274OTOOL=$lt_OTOOL
13275
13276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13277OTOOL64=$lt_OTOOL64
13278
13279# Old archive suffix (normally "a").
13280libext=$libext
13281
13282# Shared library suffix (normally ".so").
13283shrext_cmds=$lt_shrext_cmds
13284
13285# The commands to extract the exported symbol list from a shared archive.
13286extract_expsyms_cmds=$lt_extract_expsyms_cmds
13287
13288# Variables whose values should be saved in libtool wrapper scripts and
13289# restored at link time.
13290variables_saved_for_relink=$lt_variables_saved_for_relink
13291
13292# Do we need the "lib" prefix for modules?
13293need_lib_prefix=$need_lib_prefix
13294
13295# Do we need a version for libraries?
13296need_version=$need_version
13297
13298# Library versioning type.
13299version_type=$version_type
13300
13301# Shared library runtime path variable.
13302runpath_var=$runpath_var
13303
13304# Shared library path variable.
13305shlibpath_var=$shlibpath_var
13306
13307# Is shlibpath searched before the hard-coded library search path?
13308shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13309
13310# Format of library name prefix.
13311libname_spec=$lt_libname_spec
13312
13313# List of archive names. First name is the real one, the rest are links.
13314# The last name is the one that the linker finds with -lNAME
13315library_names_spec=$lt_library_names_spec
13316
13317# The coded name of the library, if different from the real name.
13318soname_spec=$lt_soname_spec
13319
13320# Command to use after installation of a shared archive.
13321postinstall_cmds=$lt_postinstall_cmds
13322
13323# Command to use after uninstallation of a shared archive.
13324postuninstall_cmds=$lt_postuninstall_cmds
13325
13326# Commands used to finish a libtool library installation in a directory.
13327finish_cmds=$lt_finish_cmds
13328
13329# As "finish_cmds", except a single script fragment to be evaled but
13330# not shown.
13331finish_eval=$lt_finish_eval
13332
13333# Whether we should hardcode library paths into libraries.
13334hardcode_into_libs=$hardcode_into_libs
13335
13336# Compile-time system search path for libraries.
13337sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13338
13339# Run-time system search path for libraries.
13340sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13341
13342# Whether dlopen is supported.
13343dlopen_support=$enable_dlopen
13344
13345# Whether dlopen of programs is supported.
13346dlopen_self=$enable_dlopen_self
13347
13348# Whether dlopen of statically linked programs is supported.
13349dlopen_self_static=$enable_dlopen_self_static
13350
13351# Commands to strip libraries.
13352old_striplib=$lt_old_striplib
13353striplib=$lt_striplib
13354
13355
13356# The linker used to build libraries.
13357LD=$lt_LD
13358
13359# Commands used to build an old-style archive.
13360old_archive_cmds=$lt_old_archive_cmds
13361
13362# A language specific compiler.
13363CC=$lt_compiler
13364
13365# Is the compiler the GNU compiler?
13366with_gcc=$GCC
13367
13368# Compiler flag to turn off builtin functions.
13369no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13370
13371# How to pass a linker flag through the compiler.
13372wl=$lt_lt_prog_compiler_wl
13373
13374# Additional compiler flags for building library objects.
13375pic_flag=$lt_lt_prog_compiler_pic
13376
13377# Compiler flag to prevent dynamic linking.
13378link_static_flag=$lt_lt_prog_compiler_static
13379
13380# Does compiler simultaneously support -c and -o options?
13381compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13382
13383# Whether or not to add -lc for building shared libraries.
13384build_libtool_need_lc=$archive_cmds_need_lc
13385
13386# Whether or not to disallow shared libs when runtime libs are static.
13387allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13388
13389# Compiler flag to allow reflexive dlopens.
13390export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13391
13392# Compiler flag to generate shared objects directly from archives.
13393whole_archive_flag_spec=$lt_whole_archive_flag_spec
13394
13395# Whether the compiler copes with passing no objects directly.
13396compiler_needs_object=$lt_compiler_needs_object
13397
13398# Create an old-style archive from a shared archive.
13399old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13400
13401# Create a temporary old-style archive to link instead of a shared archive.
13402old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13403
13404# Commands used to build a shared archive.
13405archive_cmds=$lt_archive_cmds
13406archive_expsym_cmds=$lt_archive_expsym_cmds
13407
13408# Commands used to build a loadable module if different from building
13409# a shared archive.
13410module_cmds=$lt_module_cmds
13411module_expsym_cmds=$lt_module_expsym_cmds
13412
13413# Whether we are building with GNU ld or not.
13414with_gnu_ld=$lt_with_gnu_ld
13415
13416# Flag that allows shared libraries with undefined symbols to be built.
13417allow_undefined_flag=$lt_allow_undefined_flag
13418
13419# Flag that enforces no undefined symbols.
13420no_undefined_flag=$lt_no_undefined_flag
13421
13422# Flag to hardcode \$libdir into a binary during linking.
13423# This must work even if \$libdir does not exist
13424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13425
13426# If ld is used when linking, flag to hardcode \$libdir into a binary
13427# during linking. This must work even if \$libdir does not exist.
13428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13429
13430# Whether we need a single "-rpath" flag with a separated argument.
13431hardcode_libdir_separator=$lt_hardcode_libdir_separator
13432
13433# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13434# DIR into the resulting binary.
13435hardcode_direct=$hardcode_direct
13436
13437# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13438# DIR into the resulting binary and the resulting library dependency is
13439# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13440# library is relocated.
13441hardcode_direct_absolute=$hardcode_direct_absolute
13442
13443# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13444# into the resulting binary.
13445hardcode_minus_L=$hardcode_minus_L
13446
13447# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13448# into the resulting binary.
13449hardcode_shlibpath_var=$hardcode_shlibpath_var
13450
13451# Set to "yes" if building a shared library automatically hardcodes DIR
13452# into the library and all subsequent libraries and executables linked
13453# against it.
13454hardcode_automatic=$hardcode_automatic
13455
13456# Set to yes if linker adds runtime paths of dependent libraries
13457# to runtime path list.
13458inherit_rpath=$inherit_rpath
13459
13460# Whether libtool must link a program against all its dependency libraries.
13461link_all_deplibs=$link_all_deplibs
13462
13463# Fix the shell variable \$srcfile for the compiler.
13464fix_srcfile_path=$lt_fix_srcfile_path
13465
13466# Set to "yes" if exported symbols are required.
13467always_export_symbols=$always_export_symbols
13468
13469# The commands to list exported symbols.
13470export_symbols_cmds=$lt_export_symbols_cmds
13471
13472# Symbols that should not be listed in the preloaded symbols.
13473exclude_expsyms=$lt_exclude_expsyms
13474
13475# Symbols that must always be exported.
13476include_expsyms=$lt_include_expsyms
13477
13478# Commands necessary for linking programs (against libraries) with templates.
13479prelink_cmds=$lt_prelink_cmds
13480
13481# Specify filename containing input files.
13482file_list_spec=$lt_file_list_spec
13483
13484# How to hardcode a shared library path into an executable.
13485hardcode_action=$hardcode_action
13486
13487# ### END LIBTOOL CONFIG
13488
13489_LT_EOF
13490
13491 case $host_os in
13492 aix3*)
13493 cat <<\_LT_EOF >> "$cfgfile"
13494# AIX sometimes has problems with the GCC collect2 program. For some
13495# reason, if we set the COLLECT_NAMES environment variable, the problems
13496# vanish in a puff of smoke.
13497if test "X${COLLECT_NAMES+set}" != Xset; then
13498 COLLECT_NAMES=
13499 export COLLECT_NAMES
13500fi
13501_LT_EOF
13502 ;;
13503 esac
13504
13505
13506ltmain="$ac_aux_dir/ltmain.sh"
13507
13508
13509 # We use sed instead of cat because bash on DJGPP gets confused if
13510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13511 # text mode, it properly converts lines to CR/LF. This bash problem
13512 # is reportedly fixed, but why not run on old versions too?
13513 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13514 || (rm -f "$cfgfile"; exit 1)
13515
13516 case $xsi_shell in
13517 yes)
13518 cat << \_LT_EOF >> "$cfgfile"
13519
13520# func_dirname file append nondir_replacement
13521# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13522# otherwise set result to NONDIR_REPLACEMENT.
13523func_dirname ()
13524{
13525 case ${1} in
13526 */*) func_dirname_result="${1%/*}${2}" ;;
13527 * ) func_dirname_result="${3}" ;;
13528 esac
13529}
13530
13531# func_basename file
13532func_basename ()
13533{
13534 func_basename_result="${1##*/}"
13535}
13536
13537# func_dirname_and_basename file append nondir_replacement
13538# perform func_basename and func_dirname in a single function
13539# call:
13540# dirname: Compute the dirname of FILE. If nonempty,
13541# add APPEND to the result, otherwise set result
13542# to NONDIR_REPLACEMENT.
13543# value returned in "$func_dirname_result"
13544# basename: Compute filename of FILE.
13545# value retuned in "$func_basename_result"
13546# Implementation must be kept synchronized with func_dirname
13547# and func_basename. For efficiency, we do not delegate to
13548# those functions but instead duplicate the functionality here.
13549func_dirname_and_basename ()
13550{
13551 case ${1} in
13552 */*) func_dirname_result="${1%/*}${2}" ;;
13553 * ) func_dirname_result="${3}" ;;
13554 esac
13555 func_basename_result="${1##*/}"
13556}
13557
13558# func_stripname prefix suffix name
13559# strip PREFIX and SUFFIX off of NAME.
13560# PREFIX and SUFFIX must not contain globbing or regex special
13561# characters, hashes, percent signs, but SUFFIX may contain a leading
13562# dot (in which case that matches only a dot).
13563func_stripname ()
13564{
13565 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13566 # positional parameters, so assign one to ordinary parameter first.
13567 func_stripname_result=${3}
13568 func_stripname_result=${func_stripname_result#"${1}"}
13569 func_stripname_result=${func_stripname_result%"${2}"}
13570}
13571
13572# func_opt_split
13573func_opt_split ()
13574{
13575 func_opt_split_opt=${1%%=*}
13576 func_opt_split_arg=${1#*=}
13577}
13578
13579# func_lo2o object
13580func_lo2o ()
13581{
13582 case ${1} in
13583 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13584 *) func_lo2o_result=${1} ;;
13585 esac
13586}
13587
13588# func_xform libobj-or-source
13589func_xform ()
13590{
13591 func_xform_result=${1%.*}.lo
13592}
13593
13594# func_arith arithmetic-term...
13595func_arith ()
13596{
13597 func_arith_result=$(( $* ))
13598}
13599
13600# func_len string
13601# STRING may not start with a hyphen.
13602func_len ()
13603{
13604 func_len_result=${#1}
13605}
13606
13607_LT_EOF
13608 ;;
13609 *) # Bourne compatible functions.
13610 cat << \_LT_EOF >> "$cfgfile"
13611
13612# func_dirname file append nondir_replacement
13613# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13614# otherwise set result to NONDIR_REPLACEMENT.
13615func_dirname ()
13616{
13617 # Extract subdirectory from the argument.
13618 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13619 if test "X$func_dirname_result" = "X${1}"; then
13620 func_dirname_result="${3}"
13621 else
13622 func_dirname_result="$func_dirname_result${2}"
13623 fi
13624}
13625
13626# func_basename file
13627func_basename ()
13628{
13629 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13630}
13631
13632
13633# func_stripname prefix suffix name
13634# strip PREFIX and SUFFIX off of NAME.
13635# PREFIX and SUFFIX must not contain globbing or regex special
13636# characters, hashes, percent signs, but SUFFIX may contain a leading
13637# dot (in which case that matches only a dot).
13638# func_strip_suffix prefix name
13639func_stripname ()
13640{
13641 case ${2} in
13642 .*) func_stripname_result=`$ECHO "X${3}" \
13643 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13644 *) func_stripname_result=`$ECHO "X${3}" \
13645 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13646 esac
13647}
13648
13649# sed scripts:
13650my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13651my_sed_long_arg='1s/^-[^=]*=//'
13652
13653# func_opt_split
13654func_opt_split ()
13655{
13656 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13657 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13658}
13659
13660# func_lo2o object
13661func_lo2o ()
13662{
13663 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13664}
13665
13666# func_xform libobj-or-source
13667func_xform ()
13668{
13669 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13670}
13671
13672# func_arith arithmetic-term...
13673func_arith ()
13674{
13675 func_arith_result=`expr "$@"`
13676}
13677
13678# func_len string
13679# STRING may not start with a hyphen.
13680func_len ()
13681{
13682 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13683}
13684
13685_LT_EOF
13686esac
13687
13688case $lt_shell_append in
13689 yes)
13690 cat << \_LT_EOF >> "$cfgfile"
13691
13692# func_append var value
13693# Append VALUE to the end of shell variable VAR.
13694func_append ()
13695{
13696 eval "$1+=\$2"
13697}
13698_LT_EOF
13699 ;;
13700 *)
13701 cat << \_LT_EOF >> "$cfgfile"
13702
13703# func_append var value
13704# Append VALUE to the end of shell variable VAR.
13705func_append ()
13706{
13707 eval "$1=\$$1\$2"
13708}
13709
13710_LT_EOF
13711 ;;
13712 esac
13713
13714
13715 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13716 || (rm -f "$cfgfile"; exit 1)
13717
13718 mv -f "$cfgfile" "$ofile" ||
13719 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13720 chmod +x "$ofile"
13721
13722 ;;
mlcreech94984912008-03-04 19:03:08 +000013723
drh8b727472009-01-19 18:18:40 +000013724 esac
13725done # for ac_tag
13726
drh71eb93e2001-09-28 01:34:43 +000013727
drhf922ca42015-05-14 15:39:18 +000013728as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013729_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013730ac_clean_files=$ac_clean_files_save
13731
drh8b727472009-01-19 18:18:40 +000013732test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013734
a.rottmann84e63352003-03-24 09:42:16 +000013735
drh71eb93e2001-09-28 01:34:43 +000013736# configure is writing to config.log, and then calls config.status.
13737# config.status does its own redirection, appending to config.log.
13738# Unfortunately, on DOS this fails, as config.log is still kept open
13739# by configure, so config.status won't be able to write to it; its
13740# output is simply discarded. So we exec the FD to /dev/null,
13741# effectively closing config.log, so it can be properly (re)opened and
13742# appended to by config.status. When coming back to configure, we
13743# need to make the FD available again.
13744if test "$no_create" != yes; then
13745 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013746 ac_config_status_args=
13747 test "$silent" = yes &&
13748 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013749 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013751 exec 5>>config.log
13752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13753 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013754 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013755fi
drh8b727472009-01-19 18:18:40 +000013756if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13758$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013759fi
drhbc7a22d2009-10-13 22:47:13 +000013760