blob: 174f41ae24554fd484d4bb194bb90096a2d7a0f0 [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.
drhb4577642015-10-30 16:36:42 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.10.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'
drhb4577642015-10-30 16:36:42 +0000729PACKAGE_VERSION='3.10.0'
730PACKAGE_STRING='sqlite 3.10.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
drhb4577642015-10-30 16:36:42 +00001463\`configure' configures sqlite 3.10.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
drhb4577642015-10-30 16:36:42 +00001528 short | recursive ) echo "Configuration of sqlite 3.10.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
drhb4577642015-10-30 16:36:42 +00001649sqlite configure 3.10.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
drhb4577642015-10-30 16:36:42 +00002068It was created by sqlite $as_me 3.10.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
drhf922ca42015-05-14 15:39:18 +000010467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010468$as_echo_n "checking for library containing pthread_create... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010469if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010470 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010471else
mlcreechc658b0f2008-03-09 02:20:11 +000010472 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010474/* end confdefs.h. */
10475
drh8b727472009-01-19 18:18:40 +000010476/* 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. */
dougcurrie65623c72004-09-20 14:57:23 +000010479#ifdef __cplusplus
10480extern "C"
10481#endif
dougcurrie65623c72004-09-20 14:57:23 +000010482char pthread_create ();
10483int
10484main ()
10485{
drh8b727472009-01-19 18:18:40 +000010486return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010487 ;
10488 return 0;
10489}
10490_ACEOF
drh8b727472009-01-19 18:18:40 +000010491for 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
drh866108f2008-05-13 00:57:21 +000010496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010497 fi
drhf922ca42015-05-14 15:39:18 +000010498 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010499 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010500fi
drhf922ca42015-05-14 15:39:18 +000010501rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext
10503 if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010504 break
drh866108f2008-05-13 00:57:21 +000010505fi
drh8b727472009-01-19 18:18:40 +000010506done
drhf922ca42015-05-14 15:39:18 +000010507if ${ac_cv_search_pthread_create+:} false; then :
10508
drh8b727472009-01-19 18:18:40 +000010509else
10510 ac_cv_search_pthread_create=no
10511fi
10512rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010513LIBS=$ac_func_search_save_LIBS
10514fi
drhf922ca42015-05-14 15:39:18 +000010515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010516$as_echo "$ac_cv_search_pthread_create" >&6; }
10517ac_res=$ac_cv_search_pthread_create
drhf922ca42015-05-14 15:39:18 +000010518if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010520
dougcurrie65623c72004-09-20 14:57:23 +000010521fi
10522
mlcreechc658b0f2008-03-09 02:20:11 +000010523fi
dougcurrie65623c72004-09-20 14:57:23 +000010524
xdong28f79f72003-09-23 00:35:21 +000010525##########
10526# Do we want to support release
10527#
drh8b727472009-01-19 18:18:40 +000010528# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010529if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010530 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010531else
10532 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010533fi
10534
drhf922ca42015-05-14 15:39:18 +000010535{ $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 +000010536$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010537if test "$enable_releasemode" = "no"; then
10538 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010540$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010541else
drh0b47d342007-11-27 14:50:06 +000010542 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010544$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010545fi
paulb0208cc2003-04-13 18:26:49 +000010546
a.rottmann964dbb12004-02-26 19:47:42 +000010547
paulb0208cc2003-04-13 18:26:49 +000010548##########
10549# Do we want temporary databases in memory
10550#
drh8b727472009-01-19 18:18:40 +000010551# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010552if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010553 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010554else
drh54414bb2005-10-10 00:05:50 +000010555 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010556fi
10557
drhf922ca42015-05-14 15:39:18 +000010558{ $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 +000010559$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010560case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010561 never )
paul2dc96f92003-04-20 11:46:34 +000010562 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010564$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010565 ;;
10566 no )
paul2dc96f92003-04-20 11:46:34 +000010567 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010569$as_echo "no" >&6; }
10570 ;;
10571 yes )
10572 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010574$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010575 ;;
10576 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010577 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010579$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010580 ;;
paulb0208cc2003-04-13 18:26:49 +000010581 * )
drh54414bb2005-10-10 00:05:50 +000010582 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010584$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010585 ;;
10586esac
10587
10588
10589
drh75897232000-05-29 14:26:00 +000010590###########
10591# Lots of things are different if we are compiling for Windows using
10592# the CYGWIN environment. So check for that special case and handle
10593# things accordingly.
10594#
drhf922ca42015-05-14 15:39:18 +000010595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010596$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010597if test "$config_BUILD_EXEEXT" = ".exe"; then
10598 CYGWIN=yes
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; }
drh75897232000-05-29 14:26:00 +000010601else
drhf922ca42015-05-14 15:39:18 +000010602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010603$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010604fi
10605if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010606
10607case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010608 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010609 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010610esac
drh75897232000-05-29 14:26:00 +000010611
drh75897232000-05-29 14:26:00 +000010612fi
10613if test "$CYGWIN" = "yes"; then
10614 BUILD_EXEEXT=.exe
10615else
dougcurrie6194a5f2003-12-19 20:09:51 +000010616 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010617fi
vapier7f19c022007-02-17 14:46:31 +000010618if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010619 TARGET_EXEEXT=$BUILD_EXEEXT
10620else
10621 TARGET_EXEEXT=$config_TARGET_EXEEXT
10622fi
10623if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010624 SQLITE_OS_UNIX=0
10625 SQLITE_OS_WIN=1
10626 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010627else
danielk197729bafea2008-06-26 10:41:19 +000010628 SQLITE_OS_UNIX=1
10629 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010630 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010631fi
drh75897232000-05-29 14:26:00 +000010632
a.rottmann84e63352003-03-24 09:42:16 +000010633
10634
10635
10636
10637
drh75897232000-05-29 14:26:00 +000010638##########
drh7b5717e2004-11-25 13:50:01 +000010639# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010640#
drh7b5717e2004-11-25 13:50:01 +000010641# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10642# macros in the in the tcl.m4 file of the standard TCL distribution.
10643# Those macros could not be used directly since we have to make some
10644# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010645#
drh8b727472009-01-19 18:18:40 +000010646# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010647if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010648 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010649else
drh7b5717e2004-11-25 13:50:01 +000010650 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010651fi
10652
drh7b5717e2004-11-25 13:50:01 +000010653if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010654
drh8b727472009-01-19 18:18:40 +000010655# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010656if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010657 withval=$with_tcl; with_tclconfig=${withval}
10658fi
10659
drhf922ca42015-05-14 15:39:18 +000010660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010662 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010663 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010664else
a.rottmann84e63352003-03-24 09:42:16 +000010665
drh7b5717e2004-11-25 13:50:01 +000010666 # First check to see if --with-tcl was specified.
10667 if test x"${with_tclconfig}" != x ; then
10668 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10669 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10670 else
drhf922ca42015-05-14 15:39:18 +000010671 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010672 fi
10673 fi
vapier6acb2cf2009-01-28 04:46:28 +000010674
10675 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010676 if test x"${ac_cv_c_tclconfig}" = x ; then
10677 if test x"$cross_compiling" = xno; then
10678 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10679 do
10680 if test -f "$i/tclConfig.sh" ; then
10681 ac_cv_c_tclconfig="$i"
10682 break
10683 fi
10684 done
10685 fi
vapier6acb2cf2009-01-28 04:46:28 +000010686 fi
10687
drhf960a642015-05-30 22:57:49 +000010688 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10689 # So try again after applying corrections.
10690 if test x"${ac_cv_c_tclconfig}" = x ; then
10691 if test x"$cross_compiling" = xno; then
10692 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10693 do
10694 if test -f "$i/tclConfig.sh" ; then
10695 ac_cv_c_tclconfig="$i"
10696 break
10697 fi
10698 done
10699 fi
10700 fi
10701
drh7b5717e2004-11-25 13:50:01 +000010702 # then check for a private Tcl installation
10703 if test x"${ac_cv_c_tclconfig}" = x ; then
10704 for i in \
10705 ../tcl \
10706 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10707 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10708 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10709 ../../tcl \
10710 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10711 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10712 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10713 ../../../tcl \
10714 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10715 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10716 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10717 do
10718 if test -f "$i/unix/tclConfig.sh" ; then
10719 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10720 break
10721 fi
10722 done
10723 fi
10724
10725 # check in a few common install locations
10726 if test x"${ac_cv_c_tclconfig}" = x ; then
10727 for i in \
10728 `ls -d ${libdir} 2>/dev/null` \
10729 `ls -d /usr/local/lib 2>/dev/null` \
10730 `ls -d /usr/contrib/lib 2>/dev/null` \
10731 `ls -d /usr/lib 2>/dev/null`
10732 do
10733 if test -f "$i/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd $i; pwd)`
10735 break
10736 fi
10737 done
10738 fi
10739
10740 # check in a few other private locations
10741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 for i in \
10743 ${srcdir}/../tcl \
10744 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10745 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10746 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10747 do
10748 if test -f "$i/unix/tclConfig.sh" ; then
10749 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10750 break
10751 fi
10752 done
10753 fi
10754
drh75897232000-05-29 14:26:00 +000010755fi
10756
drh7b5717e2004-11-25 13:50:01 +000010757
10758 if test x"${ac_cv_c_tclconfig}" = x ; then
10759 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010761$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010763$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010765$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010766 else
10767 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010769$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010770
drhf922ca42015-05-14 15:39:18 +000010771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010772$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010773 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010775$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010776 . $TCL_BIN_DIR/tclConfig.sh
10777 else
drhf922ca42015-05-14 15:39:18 +000010778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010779$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010780 fi
drh7b5717e2004-11-25 13:50:01 +000010781
10782 #
10783 # If the TCL_BIN_DIR is the build directory (not the install directory),
10784 # then set the common variable name to the value of the build variables.
10785 # For example, the variable TCL_LIB_SPEC will be set to the value
10786 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10787 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10788 # installed and uninstalled version of Tcl.
10789 #
10790
mlcreechab1c47b2008-03-09 02:51:10 +000010791 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010792 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10793 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10794 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10795 fi
10796
10797 #
10798 # eval is required to do the TCL_DBGX substitution
10799 #
10800
10801 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10802 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10803 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10804
10805 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10806 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10807 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
drhd881ce82015-03-31 17:01:52 +000010821
drh7b5717e2004-11-25 13:50:01 +000010822 fi
drh75897232000-05-29 14:26:00 +000010823fi
drh7b5717e2004-11-25 13:50:01 +000010824if test "${use_tcl}" = "no" ; then
10825 HAVE_TCL=""
10826else
10827 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010828fi
drh75897232000-05-29 14:26:00 +000010829
a.rottmann84e63352003-03-24 09:42:16 +000010830
drh75897232000-05-29 14:26:00 +000010831##########
10832# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010833# that use "readline()" library.
10834#
vapier7f19c022007-02-17 14:46:31 +000010835TARGET_READLINE_LIBS=""
10836TARGET_READLINE_INC=""
10837TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010838TARGET_HAVE_EDITLINE=0
10839# Check whether --enable-editline was given.
10840if test "${enable_editline+set}" = set; then :
10841 enableval=$enable_editline; with_editline=$enableval
10842else
10843 with_editline=auto
10844fi
10845
drh8b727472009-01-19 18:18:40 +000010846# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010847if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010848 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010849else
vapier7f19c022007-02-17 14:46:31 +000010850 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010851fi
10852
vapier7f19c022007-02-17 14:46:31 +000010853
drhe44b8352015-10-30 14:25:57 +000010854if test x"$with_editline" != xno; then
10855 sLIBS=$LIBS
10856 LIBS=""
10857 TARGET_HAVE_EDITLINE=1
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10859$as_echo_n "checking for library containing readline... " >&6; }
10860if ${ac_cv_search_readline+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 ac_func_search_save_LIBS=$LIBS
10864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h. */
10866
10867/* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870#ifdef __cplusplus
10871extern "C"
10872#endif
10873char readline ();
10874int
10875main ()
10876{
10877return readline ();
10878 ;
10879 return 0;
10880}
10881_ACEOF
10882for ac_lib in '' edit; do
10883 if test -z "$ac_lib"; then
10884 ac_res="none required"
10885 else
10886 ac_res=-l$ac_lib
10887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10888 fi
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_search_readline=$ac_res
10891fi
10892rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext
10894 if ${ac_cv_search_readline+:} false; then :
10895 break
10896fi
10897done
10898if ${ac_cv_search_readline+:} false; then :
10899
10900else
10901 ac_cv_search_readline=no
10902fi
10903rm conftest.$ac_ext
10904LIBS=$ac_func_search_save_LIBS
10905fi
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10907$as_echo "$ac_cv_search_readline" >&6; }
10908ac_res=$ac_cv_search_readline
10909if test "$ac_res" != no; then :
10910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10911 with_readline=no
10912else
10913 TARGET_HAVE_EDITLINE=0
10914fi
10915
10916 TARGET_READLINE_LIBS=$LIBS
10917 LIBS=$sLIBS
10918fi
vapier7f19c022007-02-17 14:46:31 +000010919if test x"$with_readline" != xno; then
10920 found="yes"
10921
10922
drh8b727472009-01-19 18:18:40 +000010923# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010924if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010925 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010926else
10927 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010928fi
10929
vapier7f19c022007-02-17 14:46:31 +000010930 if test "x$with_readline_lib" = xauto; then
10931 save_LIBS="$LIBS"
10932 LIBS=""
drhf922ca42015-05-14 15:39:18 +000010933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010934$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010935if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010936 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010937else
drh71eb93e2001-09-28 01:34:43 +000010938 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010940/* end confdefs.h. */
10941
drh8b727472009-01-19 18:18:40 +000010942/* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010945#ifdef __cplusplus
10946extern "C"
10947#endif
paul38372372003-04-22 08:04:49 +000010948char tgetent ();
10949int
10950main ()
10951{
drh8b727472009-01-19 18:18:40 +000010952return tgetent ();
paul38372372003-04-22 08:04:49 +000010953 ;
10954 return 0;
10955}
10956_ACEOF
drh8b727472009-01-19 18:18:40 +000010957for ac_lib in '' readline ncurses curses termcap; do
10958 if test -z "$ac_lib"; then
10959 ac_res="none required"
10960 else
10961 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010963 fi
drhf922ca42015-05-14 15:39:18 +000010964 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010965 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010966fi
drhf922ca42015-05-14 15:39:18 +000010967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext
10969 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010970 break
drh866108f2008-05-13 00:57:21 +000010971fi
drh8b727472009-01-19 18:18:40 +000010972done
drhf922ca42015-05-14 15:39:18 +000010973if ${ac_cv_search_tgetent+:} false; then :
10974
drh8b727472009-01-19 18:18:40 +000010975else
10976 ac_cv_search_tgetent=no
10977fi
10978rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010979LIBS=$ac_func_search_save_LIBS
10980fi
drhf922ca42015-05-14 15:39:18 +000010981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010982$as_echo "$ac_cv_search_tgetent" >&6; }
10983ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000010984if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010986 term_LIBS="$LIBS"
10987else
10988 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010989fi
10990
drhf922ca42015-05-14 15:39:18 +000010991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010992$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010993if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000010994 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000010995else
10996 ac_check_lib_save_LIBS=$LIBS
10997LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000010998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010999/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011000
drh8b727472009-01-19 18:18:40 +000011001/* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011004#ifdef __cplusplus
11005extern "C"
11006#endif
drh71eb93e2001-09-28 01:34:43 +000011007char readline ();
11008int
11009main ()
11010{
drh8b727472009-01-19 18:18:40 +000011011return readline ();
drh71eb93e2001-09-28 01:34:43 +000011012 ;
11013 return 0;
11014}
11015_ACEOF
drhf922ca42015-05-14 15:39:18 +000011016if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011017 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011018else
drhf922ca42015-05-14 15:39:18 +000011019 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011020fi
drhf922ca42015-05-14 15:39:18 +000011021rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011023LIBS=$ac_check_lib_save_LIBS
11024fi
drhf922ca42015-05-14 15:39:18 +000011025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011026$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011027if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011028 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011029else
vapier7f19c022007-02-17 14:46:31 +000011030 found="no"
11031fi
drhf1878b42006-01-23 18:06:52 +000011032
vapier7f19c022007-02-17 14:46:31 +000011033 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11034 LIBS="$save_LIBS"
11035 else
11036 TARGET_READLINE_LIBS="$with_readline_lib"
11037 fi
11038
11039
drh8b727472009-01-19 18:18:40 +000011040# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011041if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011042 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011043else
vapier7f19c022007-02-17 14:46:31 +000011044 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011045fi
11046
vapier7f19c022007-02-17 14:46:31 +000011047 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011048 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11049if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011050 found="yes"
11051else
drh75897232000-05-29 14:26:00 +000011052
vapier7f19c022007-02-17 14:46:31 +000011053 found="no"
11054 if test "$cross_compiling" != yes; then
11055 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11056 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011057 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011059$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011060if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011061 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011062else
11063 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011064 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011065if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011066 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011067else
drh71eb93e2001-09-28 01:34:43 +000011068 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011069fi
11070fi
drhf922ca42015-05-14 15:39:18 +000011071eval ac_res=\$$as_ac_File
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011073$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011074if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011075 found=yes
drh75897232000-05-29 14:26:00 +000011076fi
11077
vapier7f19c022007-02-17 14:46:31 +000011078 if test "$found" = "yes"; then
11079 TARGET_READLINE_INC="-I$dir/$subdir"
11080 break
11081 fi
11082 done
11083 test "$found" = "yes" && break
11084 done
11085 fi
11086
11087fi
11088
11089
11090 else
11091 TARGET_READLINE_INC="$with_readline_inc"
11092 fi
11093
11094 if test x"$found" = xno; then
11095 TARGET_READLINE_LIBS=""
11096 TARGET_READLINE_INC=""
11097 TARGET_HAVE_READLINE=0
11098 else
11099 TARGET_HAVE_READLINE=1
11100 fi
11101fi
11102
11103
11104
11105
11106
drhe44b8352015-10-30 14:25:57 +000011107
vapier7f19c022007-02-17 14:46:31 +000011108##########
11109# Figure out what C libraries are required to compile programs
11110# that use "fdatasync()" function.
11111#
drhf922ca42015-05-14 15:39:18 +000011112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011113$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011114if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011115 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011116else
vapier7f19c022007-02-17 14:46:31 +000011117 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011119/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011120
drh8b727472009-01-19 18:18:40 +000011121/* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011124#ifdef __cplusplus
11125extern "C"
11126#endif
11127char fdatasync ();
11128int
11129main ()
11130{
drh8b727472009-01-19 18:18:40 +000011131return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011132 ;
11133 return 0;
11134}
11135_ACEOF
drh8b727472009-01-19 18:18:40 +000011136for ac_lib in '' rt; do
11137 if test -z "$ac_lib"; then
11138 ac_res="none required"
11139 else
11140 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011142 fi
drhf922ca42015-05-14 15:39:18 +000011143 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011144 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011145fi
drhf922ca42015-05-14 15:39:18 +000011146rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext
11148 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011149 break
drh866108f2008-05-13 00:57:21 +000011150fi
drh8b727472009-01-19 18:18:40 +000011151done
drhf922ca42015-05-14 15:39:18 +000011152if ${ac_cv_search_fdatasync+:} false; then :
11153
drh8b727472009-01-19 18:18:40 +000011154else
11155 ac_cv_search_fdatasync=no
11156fi
11157rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011158LIBS=$ac_func_search_save_LIBS
11159fi
drhf922ca42015-05-14 15:39:18 +000011160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011161$as_echo "$ac_cv_search_fdatasync" >&6; }
11162ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011163if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011165
vapier7f19c022007-02-17 14:46:31 +000011166fi
11167
a.rottmann84e63352003-03-24 09:42:16 +000011168
drh75897232000-05-29 14:26:00 +000011169#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011170# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011171# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011172if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011173 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011174else
11175 use_debug=no
drh8b727472009-01-19 18:18:40 +000011176fi
11177
tpoindex9d9f76c2005-01-03 21:28:56 +000011178if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011179 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011180else
11181 TARGET_DEBUG="-DNDEBUG"
11182fi
11183
11184
11185#########
mlcreech94984912008-03-04 19:03:08 +000011186# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011187# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011188if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011189 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011190else
11191 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011192fi
11193
mlcreechf3868112008-03-11 18:03:30 +000011194if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011195 USE_AMALGAMATION=0
11196fi
11197
11198
11199#########
mlcreecha4edab02008-03-06 04:14:17 +000011200# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011201# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011202if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011203 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011204else
drh05c7e0b2015-01-10 14:27:17 +000011205 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011206fi
11207
mlcreecha4edab02008-03-06 04:14:17 +000011208if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011209 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011211$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011212if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011213 $as_echo_n "(cached) " >&6
11214else
11215 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011217/* end confdefs.h. */
11218
11219/* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char dlopen ();
11226int
11227main ()
11228{
11229return dlopen ();
11230 ;
11231 return 0;
11232}
11233_ACEOF
11234for ac_lib in '' dl; do
11235 if test -z "$ac_lib"; then
11236 ac_res="none required"
11237 else
11238 ac_res=-l$ac_lib
11239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11240 fi
drhf922ca42015-05-14 15:39:18 +000011241 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011242 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011243fi
drhf922ca42015-05-14 15:39:18 +000011244rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext
11246 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011247 break
11248fi
11249done
drhf922ca42015-05-14 15:39:18 +000011250if ${ac_cv_search_dlopen+:} false; then :
11251
drhdbe4b882011-06-20 18:00:17 +000011252else
11253 ac_cv_search_dlopen=no
11254fi
11255rm conftest.$ac_ext
11256LIBS=$ac_func_search_save_LIBS
11257fi
drhf922ca42015-05-14 15:39:18 +000011258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011259$as_echo "$ac_cv_search_dlopen" >&6; }
11260ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011261if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11263
11264fi
11265
mlcreecha4edab02008-03-06 04:14:17 +000011266else
shanefbedede2008-07-22 05:05:01 +000011267 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011268fi
11269
mlcreechaac7b932008-04-01 02:45:22 +000011270#########
drhce1d9f52015-10-09 12:48:33 +000011271# See whether we should enable Full Text Search extensions
11272# Check whether --enable-fts3 was given.
11273if test "${enable_fts3+set}" = set; then :
11274 enableval=$enable_fts3; enable_fts3=yes
11275else
11276 enable_fts3=no
11277fi
11278
11279if test "${enable_fts3}" = "yes" ; then
11280 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11281fi
11282# Check whether --enable-fts4 was given.
11283if test "${enable_fts4+set}" = set; then :
11284 enableval=$enable_fts4; enable_fts4=yes
11285else
11286 enable_fts4=no
11287fi
11288
11289if test "${enable_fts4}" = "yes" ; then
11290 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11292$as_echo_n "checking for library containing log... " >&6; }
11293if ${ac_cv_search_log+:} false; then :
11294 $as_echo_n "(cached) " >&6
11295else
11296 ac_func_search_save_LIBS=$LIBS
11297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h. */
11299
11300/* Override any GCC internal prototype to avoid an error.
11301 Use char because int might match the return type of a GCC
11302 builtin and then its argument prototype would still apply. */
11303#ifdef __cplusplus
11304extern "C"
11305#endif
11306char log ();
11307int
11308main ()
11309{
11310return log ();
11311 ;
11312 return 0;
11313}
11314_ACEOF
11315for ac_lib in '' m; do
11316 if test -z "$ac_lib"; then
11317 ac_res="none required"
11318 else
11319 ac_res=-l$ac_lib
11320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11321 fi
11322 if ac_fn_c_try_link "$LINENO"; then :
11323 ac_cv_search_log=$ac_res
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext
11327 if ${ac_cv_search_log+:} false; then :
11328 break
11329fi
11330done
11331if ${ac_cv_search_log+:} false; then :
11332
11333else
11334 ac_cv_search_log=no
11335fi
11336rm conftest.$ac_ext
11337LIBS=$ac_func_search_save_LIBS
11338fi
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11340$as_echo "$ac_cv_search_log" >&6; }
11341ac_res=$ac_cv_search_log
11342if test "$ac_res" != no; then :
11343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11344
11345fi
11346
11347fi
11348# Check whether --enable-fts5 was given.
11349if test "${enable_fts5+set}" = set; then :
11350 enableval=$enable_fts5; enable_fts5=yes
11351else
11352 enable_fts5=no
11353fi
11354
11355if test "${enable_fts5}" = "yes" ; then
11356 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11358$as_echo_n "checking for library containing log... " >&6; }
11359if ${ac_cv_search_log+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361else
11362 ac_func_search_save_LIBS=$LIBS
11363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364/* end confdefs.h. */
11365
11366/* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11369#ifdef __cplusplus
11370extern "C"
11371#endif
11372char log ();
11373int
11374main ()
11375{
11376return log ();
11377 ;
11378 return 0;
11379}
11380_ACEOF
11381for ac_lib in '' m; do
11382 if test -z "$ac_lib"; then
11383 ac_res="none required"
11384 else
11385 ac_res=-l$ac_lib
11386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11387 fi
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 ac_cv_search_log=$ac_res
11390fi
11391rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext
11393 if ${ac_cv_search_log+:} false; then :
11394 break
11395fi
11396done
11397if ${ac_cv_search_log+:} false; then :
11398
11399else
11400 ac_cv_search_log=no
11401fi
11402rm conftest.$ac_ext
11403LIBS=$ac_func_search_save_LIBS
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11406$as_echo "$ac_cv_search_log" >&6; }
11407ac_res=$ac_cv_search_log
11408if test "$ac_res" != no; then :
11409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11410
11411fi
11412
11413fi
11414
11415#########
11416# See whether we should enable JSON1
11417# Check whether --enable-json1 was given.
11418if test "${enable_json1+set}" = set; then :
11419 enableval=$enable_json1; enable_json1=yes
11420else
11421 enable_json1=no
11422fi
11423
11424if test "${enable_json1}" = "yes" ; then
11425 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11426fi
11427
11428#########
11429# See whether we should enable RTREE
11430# Check whether --enable-rtree was given.
11431if test "${enable_rtree+set}" = set; then :
11432 enableval=$enable_rtree; enable_rtree=yes
11433else
11434 enable_rtree=no
11435fi
11436
11437if test "${enable_rtree}" = "yes" ; then
11438 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11439fi
11440
11441#########
shaneb1cd7302008-10-22 18:27:31 +000011442# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011443for option in $CFLAGS $CPPFLAGS
11444do
11445 case $option in
danielk197733a14782008-08-04 14:50:05 +000011446 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011447 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011448 esac
11449done
11450
11451
danielk197733a14782008-08-04 14:50:05 +000011452
shaneb1cd7302008-10-22 18:27:31 +000011453# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011454ac_temp_CFLAGS=""
11455for option in $CFLAGS
11456do
11457 case $option in
11458 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011459 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011460 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011461 esac
11462done
11463CFLAGS=$ac_temp_CFLAGS
11464
11465
shaneb1cd7302008-10-22 18:27:31 +000011466# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011467ac_temp_CPPFLAGS=""
11468for option in $CPPFLAGS
11469do
11470 case $option in
11471 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011472 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011473 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011474 esac
11475done
11476CPPFLAGS=$ac_temp_CPPFLAGS
11477
danielk197733a14782008-08-04 14:50:05 +000011478
drh8b727472009-01-19 18:18:40 +000011479# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011480ac_temp_BUILD_CFLAGS=""
11481for option in $BUILD_CFLAGS
11482do
11483 case $option in
11484 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011485 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011486 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011487 esac
11488done
11489BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11490
11491
11492#########
11493# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011494# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011495if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011496 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011497else
11498 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011499fi
11500
mlcreechaac7b932008-04-01 02:45:22 +000011501if test "${use_gcov}" = "yes" ; then
11502 USE_GCOV=1
11503else
11504 USE_GCOV=0
11505fi
11506
11507
danielk197733a14782008-08-04 14:50:05 +000011508
drh2dfbbca2000-07-28 14:32:48 +000011509#########
mlcreechb87057f2008-03-06 07:19:20 +000011510# Output the config header
drh8b727472009-01-19 18:18:40 +000011511ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011512
11513
11514#########
drh75897232000-05-29 14:26:00 +000011515# Generate the output files.
11516#
mlcreechdf59c7c2008-03-06 07:51:15 +000011517
drh8b727472009-01-19 18:18:40 +000011518ac_config_files="$ac_config_files Makefile sqlite3.pc"
11519
drh71eb93e2001-09-28 01:34:43 +000011520cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011521# This file is a shell script that caches the results of configure
11522# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011523# scripts and configure runs, see configure's option --config-cache.
11524# It is not useful on other systems. If it contains results you don't
11525# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011526#
drh71eb93e2001-09-28 01:34:43 +000011527# config.status only pays attention to the cache file if you give it
11528# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011529#
a.rottmann84e63352003-03-24 09:42:16 +000011530# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011531# loading this file, other *unset* `ac_cv_foo' will be assigned the
11532# following values.
11533
11534_ACEOF
11535
drh75897232000-05-29 14:26:00 +000011536# The following way of writing the cache mishandles newlines in values,
11537# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011538# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011539# Ultrix sh set writes to stderr and can't be redirected directly,
11540# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011541(
11542 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11543 eval ac_val=\$$ac_var
11544 case $ac_val in #(
11545 *${as_nl}*)
11546 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11548$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011549 esac
11550 case $ac_var in #(
11551 _ | IFS | as_nl) ;; #(
11552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011553 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011554 esac ;;
11555 esac
11556 done
11557
drh71eb93e2001-09-28 01:34:43 +000011558 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11560 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011561 # `set' does not quote correctly, so add quotes: double-quote
11562 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011563 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011564 "s/'/'\\\\''/g;
11565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011566 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011567 *)
11568 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011570 ;;
drh8b727472009-01-19 18:18:40 +000011571 esac |
11572 sort
11573) |
drh71eb93e2001-09-28 01:34:43 +000011574 sed '
drh8b727472009-01-19 18:18:40 +000011575 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011576 t clear
drh8b727472009-01-19 18:18:40 +000011577 :clear
drh71eb93e2001-09-28 01:34:43 +000011578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11579 t end
drh8b727472009-01-19 18:18:40 +000011580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11581 :end' >>confcache
11582if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11583 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011584 if test "x$cache_file" != "x/dev/null"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011586$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011587 if test ! -f "$cache_file" || test -h "$cache_file"; then
11588 cat confcache >"$cache_file"
11589 else
11590 case $cache_file in #(
11591 */* | ?:*)
11592 mv -f confcache "$cache_file"$$ &&
11593 mv -f "$cache_file"$$ "$cache_file" ;; #(
11594 *)
11595 mv -f confcache "$cache_file" ;;
11596 esac
11597 fi
11598 fi
drh75897232000-05-29 14:26:00 +000011599 else
drhf922ca42015-05-14 15:39:18 +000011600 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011601$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011602 fi
11603fi
11604rm -f confcache
11605
drh75897232000-05-29 14:26:00 +000011606test "x$prefix" = xNONE && prefix=$ac_default_prefix
11607# Let make expand exec_prefix.
11608test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11609
mlcreechb87057f2008-03-06 07:19:20 +000011610DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011611
11612ac_libobjs=
11613ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011614U=
a.rottmann84e63352003-03-24 09:42:16 +000011615for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11616 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11620 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011623done
11624LIBOBJS=$ac_libobjs
11625
11626LTLIBOBJS=$ac_ltlibobjs
11627
11628
11629
drhf922ca42015-05-14 15:39:18 +000011630: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011631ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011632ac_clean_files_save=$ac_clean_files
11633ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011634{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011635$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011636as_write_fail=0
11637cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011638#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011639# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011640# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011641# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011642# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011643
drh71eb93e2001-09-28 01:34:43 +000011644debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011645ac_cs_recheck=false
11646ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011647
drhf922ca42015-05-14 15:39:18 +000011648SHELL=\${CONFIG_SHELL-$SHELL}
11649export SHELL
11650_ASEOF
11651cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11652## -------------------- ##
11653## M4sh Initialization. ##
11654## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011655
drh8b727472009-01-19 18:18:40 +000011656# Be more Bourne compatible
11657DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011658if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011659 emulate sh
11660 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011662 # is contrary to our usage. Disable this feature.
11663 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011664 setopt NO_GLOB_SUBST
11665else
drhf922ca42015-05-14 15:39:18 +000011666 case `(set -o) 2>/dev/null` in #(
11667 *posix*) :
11668 set -o posix ;; #(
11669 *) :
11670 ;;
drh8b727472009-01-19 18:18:40 +000011671esac
a.rottmann84e63352003-03-24 09:42:16 +000011672fi
drh8b727472009-01-19 18:18:40 +000011673
11674
drh8b727472009-01-19 18:18:40 +000011675as_nl='
11676'
11677export as_nl
11678# Printing a long string crashes Solaris 7 /usr/bin/printf.
11679as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11680as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11681as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011682# Prefer a ksh shell builtin over an external printf program on Solaris,
11683# but without wasting forks for bash or zsh.
11684if test -z "$BASH_VERSION$ZSH_VERSION" \
11685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11686 as_echo='print -r --'
11687 as_echo_n='print -rn --'
11688elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011689 as_echo='printf %s\n'
11690 as_echo_n='printf %s'
11691else
11692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11693 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11694 as_echo_n='/usr/ucb/echo -n'
11695 else
11696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11697 as_echo_n_body='eval
11698 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011699 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011700 *"$as_nl"*)
11701 expr "X$arg" : "X\\(.*\\)$as_nl";
11702 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11703 esac;
11704 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11705 '
11706 export as_echo_n_body
11707 as_echo_n='sh -c $as_echo_n_body as_echo'
11708 fi
11709 export as_echo_body
11710 as_echo='sh -c $as_echo_body as_echo'
11711fi
11712
11713# The user is always right.
11714if test "${PATH_SEPARATOR+set}" != set; then
11715 PATH_SEPARATOR=:
11716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11718 PATH_SEPARATOR=';'
11719 }
11720fi
a.rottmann84e63352003-03-24 09:42:16 +000011721
mlcreech94984912008-03-04 19:03:08 +000011722
drh8b727472009-01-19 18:18:40 +000011723# IFS
11724# We need space, tab and new line, in precisely that order. Quoting is
11725# there to prevent editors from complaining about space-tab.
11726# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11727# splitting by setting IFS to empty value.)
11728IFS=" "" $as_nl"
11729
11730# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011731as_myself=
11732case $0 in #((
drh8b727472009-01-19 18:18:40 +000011733 *[\\/]* ) as_myself=$0 ;;
11734 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in $PATH
11736do
11737 IFS=$as_save_IFS
11738 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011739 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11740 done
drh8b727472009-01-19 18:18:40 +000011741IFS=$as_save_IFS
11742
11743 ;;
11744esac
11745# We did not find ourselves, most probably we were run as `sh COMMAND'
11746# in which case we are not to be found in the path.
11747if test "x$as_myself" = x; then
11748 as_myself=$0
11749fi
11750if test ! -f "$as_myself"; then
11751 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011752 exit 1
drh8b727472009-01-19 18:18:40 +000011753fi
11754
drhf922ca42015-05-14 15:39:18 +000011755# Unset variables that we do not need and which cause bugs (e.g. in
11756# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11757# suppresses any "Segmentation fault" message there. '((' could
11758# trigger a bug in pdksh 5.2.14.
11759for as_var in BASH_ENV ENV MAIL MAILPATH
11760do eval test x\${$as_var+set} = xset \
11761 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011762done
mlcreech94984912008-03-04 19:03:08 +000011763PS1='$ '
11764PS2='> '
11765PS4='+ '
11766
11767# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011768LC_ALL=C
11769export LC_ALL
11770LANGUAGE=C
11771export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011772
drhf922ca42015-05-14 15:39:18 +000011773# CDPATH.
11774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11775
11776
11777# as_fn_error STATUS ERROR [LINENO LOG_FD]
11778# ----------------------------------------
11779# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11780# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11781# script with STATUS, using 1 if that was 0.
11782as_fn_error ()
11783{
11784 as_status=$1; test $as_status -eq 0 && as_status=1
11785 if test "$4"; then
11786 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11787 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11788 fi
11789 $as_echo "$as_me: error: $2" >&2
11790 as_fn_exit $as_status
11791} # as_fn_error
11792
11793
11794# as_fn_set_status STATUS
11795# -----------------------
11796# Set $? to STATUS, without forking.
11797as_fn_set_status ()
11798{
11799 return $1
11800} # as_fn_set_status
11801
11802# as_fn_exit STATUS
11803# -----------------
11804# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11805as_fn_exit ()
11806{
11807 set +e
11808 as_fn_set_status $1
11809 exit $1
11810} # as_fn_exit
11811
11812# as_fn_unset VAR
11813# ---------------
11814# Portably unset VAR.
11815as_fn_unset ()
11816{
11817 { eval $1=; unset $1;}
11818}
11819as_unset=as_fn_unset
11820# as_fn_append VAR VALUE
11821# ----------------------
11822# Append the text in VALUE to the end of the definition contained in VAR. Take
11823# advantage of any shell optimizations that allow amortized linear growth over
11824# repeated appends, instead of the typical quadratic growth present in naive
11825# implementations.
11826if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11827 eval 'as_fn_append ()
11828 {
11829 eval $1+=\$2
11830 }'
11831else
11832 as_fn_append ()
11833 {
11834 eval $1=\$$1\$2
11835 }
11836fi # as_fn_append
11837
11838# as_fn_arith ARG...
11839# ------------------
11840# Perform arithmetic evaluation on the ARGs, and store the result in the
11841# global $as_val. Take advantage of shells that can avoid forks. The arguments
11842# must be portable across $(()) and expr.
11843if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11844 eval 'as_fn_arith ()
11845 {
11846 as_val=$(( $* ))
11847 }'
11848else
11849 as_fn_arith ()
11850 {
11851 as_val=`expr "$@" || test $? -eq 1`
11852 }
11853fi # as_fn_arith
11854
11855
drh8b727472009-01-19 18:18:40 +000011856if expr a : '\(a\)' >/dev/null 2>&1 &&
11857 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011858 as_expr=expr
11859else
11860 as_expr=false
11861fi
11862
drh8b727472009-01-19 18:18:40 +000011863if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011864 as_basename=basename
11865else
11866 as_basename=false
11867fi
11868
drhf922ca42015-05-14 15:39:18 +000011869if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11870 as_dirname=dirname
11871else
11872 as_dirname=false
11873fi
mlcreech94984912008-03-04 19:03:08 +000011874
drh8b727472009-01-19 18:18:40 +000011875as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011876$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11877 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11879$as_echo X/"$0" |
11880 sed '/^.*\/\([^/][^/]*\)\/*$/{
11881 s//\1/
11882 q
11883 }
11884 /^X\/\(\/\/\)$/{
11885 s//\1/
11886 q
11887 }
11888 /^X\/\(\/\).*/{
11889 s//\1/
11890 q
11891 }
11892 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011893
drhf922ca42015-05-14 15:39:18 +000011894# Avoid depending upon Character Ranges.
11895as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11896as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11897as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11898as_cr_digits='0123456789'
11899as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011900
drh8b727472009-01-19 18:18:40 +000011901ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011902case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011903-n*)
drhf922ca42015-05-14 15:39:18 +000011904 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011905 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011906 xy) ECHO_C='\c';;
11907 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11908 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011909 esac;;
11910*)
11911 ECHO_N='-n';;
11912esac
drh71eb93e2001-09-28 01:34:43 +000011913
11914rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011915if test -d conf$$.dir; then
11916 rm -f conf$$.dir/conf$$.file
11917else
11918 rm -f conf$$.dir
11919 mkdir conf$$.dir 2>/dev/null
11920fi
11921if (echo >conf$$.file) 2>/dev/null; then
11922 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011923 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011924 # ... but there are two gotchas:
11925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000011927 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000011928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000011929 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000011930 elif ln conf$$.file conf$$ 2>/dev/null; then
11931 as_ln_s=ln
11932 else
drhf922ca42015-05-14 15:39:18 +000011933 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000011934 fi
drh71eb93e2001-09-28 01:34:43 +000011935else
drhf922ca42015-05-14 15:39:18 +000011936 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000011937fi
drh8b727472009-01-19 18:18:40 +000011938rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11939rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011940
drhf922ca42015-05-14 15:39:18 +000011941
11942# as_fn_mkdir_p
11943# -------------
11944# Create "$as_dir" as a directory, including parents if necessary.
11945as_fn_mkdir_p ()
11946{
11947
11948 case $as_dir in #(
11949 -*) as_dir=./$as_dir;;
11950 esac
11951 test -d "$as_dir" || eval $as_mkdir_p || {
11952 as_dirs=
11953 while :; do
11954 case $as_dir in #(
11955 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11956 *) as_qdir=$as_dir;;
11957 esac
11958 as_dirs="'$as_qdir' $as_dirs"
11959 as_dir=`$as_dirname -- "$as_dir" ||
11960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11961 X"$as_dir" : 'X\(//\)[^/]' \| \
11962 X"$as_dir" : 'X\(//\)$' \| \
11963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11964$as_echo X"$as_dir" |
11965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11966 s//\1/
11967 q
11968 }
11969 /^X\(\/\/\)[^/].*/{
11970 s//\1/
11971 q
11972 }
11973 /^X\(\/\/\)$/{
11974 s//\1/
11975 q
11976 }
11977 /^X\(\/\).*/{
11978 s//\1/
11979 q
11980 }
11981 s/.*/./; q'`
11982 test -d "$as_dir" && break
11983 done
11984 test -z "$as_dirs" || eval "mkdir $as_dirs"
11985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11986
11987
11988} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011989if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000011990 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011991else
a.rottmann964dbb12004-02-26 19:47:42 +000011992 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011993 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011994fi
11995
drhf922ca42015-05-14 15:39:18 +000011996
11997# as_fn_executable_p FILE
11998# -----------------------
11999# Test if FILE is an executable regular file.
12000as_fn_executable_p ()
12001{
12002 test -f "$1" && test -x "$1"
12003} # as_fn_executable_p
12004as_test_x='test -x'
12005as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012006
12007# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012009
12010# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012012
drh71eb93e2001-09-28 01:34:43 +000012013
drh71eb93e2001-09-28 01:34:43 +000012014exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012015## ----------------------------------- ##
12016## Main body of $CONFIG_STATUS script. ##
12017## ----------------------------------- ##
12018_ASEOF
12019test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012020
drhf922ca42015-05-14 15:39:18 +000012021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012023# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012024# values after options handling.
12025ac_log="
drhb4577642015-10-30 16:36:42 +000012026This file was extended by sqlite $as_me 3.10.0, which was
drhf922ca42015-05-14 15:39:18 +000012027generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012028
12029 CONFIG_FILES = $CONFIG_FILES
12030 CONFIG_HEADERS = $CONFIG_HEADERS
12031 CONFIG_LINKS = $CONFIG_LINKS
12032 CONFIG_COMMANDS = $CONFIG_COMMANDS
12033 $ $0 $@
12034
drh8b727472009-01-19 18:18:40 +000012035on `(hostname || uname -n) 2>/dev/null | sed 1q`
12036"
12037
drh71eb93e2001-09-28 01:34:43 +000012038_ACEOF
12039
drhf922ca42015-05-14 15:39:18 +000012040case $ac_config_files in *"
12041"*) set x $ac_config_files; shift; ac_config_files=$*;;
12042esac
12043
12044case $ac_config_headers in *"
12045"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12046esac
12047
12048
drh8b727472009-01-19 18:18:40 +000012049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012050# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012051config_files="$ac_config_files"
12052config_headers="$ac_config_headers"
12053config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012054
drh8b727472009-01-19 18:18:40 +000012055_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012056
drh8b727472009-01-19 18:18:40 +000012057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012058ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012059\`$as_me' instantiates files and other configuration actions
12060from templates according to the current configuration. Unless the files
12061and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012062
drhf922ca42015-05-14 15:39:18 +000012063Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012064
12065 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012066 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012067 --config print configuration, then exit
12068 -q, --quiet, --silent
12069 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012070 -d, --debug don't remove temporary files
12071 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012072 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012073 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012074 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012075 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012076
12077Configuration files:
12078$config_files
12079
mlcreechb87057f2008-03-06 07:19:20 +000012080Configuration headers:
12081$config_headers
12082
mlcreech636a9952008-05-05 22:52:56 +000012083Configuration commands:
12084$config_commands
12085
drhf922ca42015-05-14 15:39:18 +000012086Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012087
mlcreech94984912008-03-04 19:03:08 +000012088_ACEOF
drh8b727472009-01-19 18:18:40 +000012089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012090ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012091ac_cs_version="\\
drhb4577642015-10-30 16:36:42 +000012092sqlite config.status 3.10.0
drhf922ca42015-05-14 15:39:18 +000012093configured by $0, generated by GNU Autoconf 2.69,
12094 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012095
drhf922ca42015-05-14 15:39:18 +000012096Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012097This config.status script is free software; the Free Software Foundation
12098gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012099
12100ac_pwd='$ac_pwd'
12101srcdir='$srcdir'
12102INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012103test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012104_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012105
drh8b727472009-01-19 18:18:40 +000012106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012108ac_need_defaults=:
12109while test $# != 0
12110do
12111 case $1 in
drhf922ca42015-05-14 15:39:18 +000012112 --*=?*)
drh8b727472009-01-19 18:18:40 +000012113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012115 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012116 ;;
drhf922ca42015-05-14 15:39:18 +000012117 --*=)
12118 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12119 ac_optarg=
12120 ac_shift=:
12121 ;;
drh8b727472009-01-19 18:18:40 +000012122 *)
a.rottmann84e63352003-03-24 09:42:16 +000012123 ac_option=$1
12124 ac_optarg=$2
12125 ac_shift=shift
12126 ;;
drh75897232000-05-29 14:26:00 +000012127 esac
12128
a.rottmann84e63352003-03-24 09:42:16 +000012129 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012130 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012131 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012132 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012133 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12134 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012135 --config | --confi | --conf | --con | --co | --c )
12136 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012137 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012138 debug=: ;;
12139 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012140 $ac_shift
drh8b727472009-01-19 18:18:40 +000012141 case $ac_optarg in
12142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012143 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012144 esac
drhf922ca42015-05-14 15:39:18 +000012145 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012146 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012147 --header | --heade | --head | --hea )
12148 $ac_shift
drh8b727472009-01-19 18:18:40 +000012149 case $ac_optarg in
12150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12151 esac
drhf922ca42015-05-14 15:39:18 +000012152 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012153 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012154 --he | --h)
12155 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012156 as_fn_error $? "ambiguous option: \`$1'
12157Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012158 --help | --hel | -h )
12159 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12161 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12162 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012163
drh71eb93e2001-09-28 01:34:43 +000012164 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012165 -*) as_fn_error $? "unrecognized option: \`$1'
12166Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012167
drhf922ca42015-05-14 15:39:18 +000012168 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012169 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012170
12171 esac
12172 shift
12173done
12174
a.rottmann84e63352003-03-24 09:42:16 +000012175ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012176
a.rottmann84e63352003-03-24 09:42:16 +000012177if $ac_cs_silent; then
12178 exec 6>/dev/null
12179 ac_configure_extra_args="$ac_configure_extra_args --silent"
12180fi
drh71eb93e2001-09-28 01:34:43 +000012181
12182_ACEOF
drh8b727472009-01-19 18:18:40 +000012183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012184if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012185 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012186 shift
12187 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12188 CONFIG_SHELL='$SHELL'
12189 export CONFIG_SHELL
12190 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012191fi
drh71eb93e2001-09-28 01:34:43 +000012192
a.rottmann84e63352003-03-24 09:42:16 +000012193_ACEOF
drh8b727472009-01-19 18:18:40 +000012194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12195exec 5>>config.log
12196{
12197 echo
12198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12199## Running $as_me. ##
12200_ASBOX
12201 $as_echo "$ac_log"
12202} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012203
drh8b727472009-01-19 18:18:40 +000012204_ACEOF
12205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012206#
drh8b727472009-01-19 18:18:40 +000012207# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012208#
12209
12210
12211# The HP-UX ksh and POSIX shell print the target directory to stdout
12212# if CDPATH is set.
12213(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12214
12215sed_quote_subst='$sed_quote_subst'
12216double_quote_subst='$double_quote_subst'
12217delay_variable_subst='$delay_variable_subst'
12218macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12219macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12220enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12221enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12222pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12223enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12224host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12225host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12226host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12227build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12228build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12229build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12230SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12231Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12232GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12233EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12234FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12235LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12236NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12237LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12238max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12239ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12240exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12241lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12242lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12243lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12244reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12245reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012246OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012247deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12248file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12249AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12250AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12251STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12252RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12253old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12254old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12255old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12256CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12257CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12258compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12259GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12260lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12261lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12262lt_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"`'
12263lt_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"`'
12264objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12265SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12266ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12267MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12268lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12269lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12270lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12271lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12272lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12273need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12274DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12275NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12276LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12277OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12278OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12279libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12280shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12281extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12282archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12283enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12284export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12285whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12286compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12287old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12288old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12289archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12290archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12291module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12292module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12293with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12294allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12295no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12296hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12297hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12298hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12299hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12300hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12301hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12302hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12303hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12304inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12305link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12306fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12307always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12308export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12309exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12310include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12311prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12312file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12313variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12314need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12315need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12316version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12317runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12318shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12319shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12320libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12321library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12322soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12323postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12324postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12325finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12326finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12327hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12328sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12329sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12330hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12331enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12332enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12333enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12334old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12335striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12336
12337LTCC='$LTCC'
12338LTCFLAGS='$LTCFLAGS'
12339compiler='$compiler_DEFAULT'
12340
12341# Quote evaled strings.
12342for var in SED \
12343GREP \
12344EGREP \
12345FGREP \
12346LD \
12347NM \
12348LN_S \
12349lt_SP2NL \
12350lt_NL2SP \
12351reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012352OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012353deplibs_check_method \
12354file_magic_cmd \
12355AR \
12356AR_FLAGS \
12357STRIP \
12358RANLIB \
12359CC \
12360CFLAGS \
12361compiler \
12362lt_cv_sys_global_symbol_pipe \
12363lt_cv_sys_global_symbol_to_cdecl \
12364lt_cv_sys_global_symbol_to_c_name_address \
12365lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12366SHELL \
12367ECHO \
12368lt_prog_compiler_no_builtin_flag \
12369lt_prog_compiler_wl \
12370lt_prog_compiler_pic \
12371lt_prog_compiler_static \
12372lt_cv_prog_compiler_c_o \
12373need_locks \
12374DSYMUTIL \
12375NMEDIT \
12376LIPO \
12377OTOOL \
12378OTOOL64 \
12379shrext_cmds \
12380export_dynamic_flag_spec \
12381whole_archive_flag_spec \
12382compiler_needs_object \
12383with_gnu_ld \
12384allow_undefined_flag \
12385no_undefined_flag \
12386hardcode_libdir_flag_spec \
12387hardcode_libdir_flag_spec_ld \
12388hardcode_libdir_separator \
12389fix_srcfile_path \
12390exclude_expsyms \
12391include_expsyms \
12392file_list_spec \
12393variables_saved_for_relink \
12394libname_spec \
12395library_names_spec \
12396soname_spec \
12397finish_eval \
12398old_striplib \
12399striplib; do
12400 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12401 *[\\\\\\\`\\"\\\$]*)
12402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12403 ;;
12404 *)
12405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12406 ;;
12407 esac
12408done
12409
12410# Double-quote double-evaled strings.
12411for var in reload_cmds \
12412old_postinstall_cmds \
12413old_postuninstall_cmds \
12414old_archive_cmds \
12415extract_expsyms_cmds \
12416old_archive_from_new_cmds \
12417old_archive_from_expsyms_cmds \
12418archive_cmds \
12419archive_expsym_cmds \
12420module_cmds \
12421module_expsym_cmds \
12422export_symbols_cmds \
12423prelink_cmds \
12424postinstall_cmds \
12425postuninstall_cmds \
12426finish_cmds \
12427sys_lib_search_path_spec \
12428sys_lib_dlsearch_path_spec; do
12429 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12430 *[\\\\\\\`\\"\\\$]*)
12431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12432 ;;
12433 *)
12434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12435 ;;
12436 esac
12437done
12438
12439# Fix-up fallback echo if it was mangled by the above quoting rules.
12440case \$lt_ECHO in
12441*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12442 ;;
12443esac
12444
12445ac_aux_dir='$ac_aux_dir'
12446xsi_shell='$xsi_shell'
12447lt_shell_append='$lt_shell_append'
12448
12449# See if we are running on zsh, and set the options which allow our
12450# commands through without removal of \ escapes INIT.
12451if test -n "\${ZSH_VERSION+set}" ; then
12452 setopt NO_GLOB_SUBST
12453fi
12454
12455
12456 PACKAGE='$PACKAGE'
12457 VERSION='$VERSION'
12458 TIMESTAMP='$TIMESTAMP'
12459 RM='$RM'
12460 ofile='$ofile'
12461
12462
12463
12464
mlcreech94984912008-03-04 19:03:08 +000012465_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012466
drh8b727472009-01-19 18:18:40 +000012467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012468
drh8b727472009-01-19 18:18:40 +000012469# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012470for ac_config_target in $ac_config_targets
12471do
drh8b727472009-01-19 18:18:40 +000012472 case $ac_config_target in
12473 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12474 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12476 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12477
drhf922ca42015-05-14 15:39:18 +000012478 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012479 esac
12480done
12481
drh8b727472009-01-19 18:18:40 +000012482
drh71eb93e2001-09-28 01:34:43 +000012483# If the user did not use the arguments to specify the items to instantiate,
12484# then the envvar interface is used. Set only those that are not.
12485# We use the long form for the default assignment because of an extremely
12486# bizarre bug on SunOS 4.1.3.
12487if $ac_need_defaults; then
12488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012491fi
12492
a.rottmann84e63352003-03-24 09:42:16 +000012493# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012494# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012495# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012496# Hook for its removal unless debugging.
12497# Note that there is a small window in which the directory will not be cleaned:
12498# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012499$debug ||
12500{
drhf922ca42015-05-14 15:39:18 +000012501 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012502 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012503 : "${ac_tmp:=$tmp}"
12504 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012505' 0
drhf922ca42015-05-14 15:39:18 +000012506 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012507}
drh71eb93e2001-09-28 01:34:43 +000012508# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012509
drh71eb93e2001-09-28 01:34:43 +000012510{
drh8b727472009-01-19 18:18:40 +000012511 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012512 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012513} ||
12514{
drh8b727472009-01-19 18:18:40 +000012515 tmp=./conf$$-$RANDOM
12516 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012517} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12518ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012519
drh8b727472009-01-19 18:18:40 +000012520# Set up the scripts for CONFIG_FILES section.
12521# No need to generate them if there are no CONFIG_FILES.
12522# This happens for instance with `./config.status config.h'.
12523if test -n "$CONFIG_FILES"; then
12524
12525
drhf922ca42015-05-14 15:39:18 +000012526ac_cr=`echo X | tr X '\015'`
12527# On cygwin, bash can eat \r inside `` if the user requested igncr.
12528# But we know of no other shell where ac_cr would be empty at this
12529# point, so we can use a bashism as a fallback.
12530if test "x$ac_cr" = x; then
12531 eval ac_cr=\$\'\\r\'
12532fi
drh8b727472009-01-19 18:18:40 +000012533ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12534if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012535 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012536else
12537 ac_cs_awk_cr=$ac_cr
12538fi
12539
drhf922ca42015-05-14 15:39:18 +000012540echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012541_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012542
mlcreech94984912008-03-04 19:03:08 +000012543
drh8b727472009-01-19 18:18:40 +000012544{
12545 echo "cat >conf$$subs.awk <<_ACEOF" &&
12546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12547 echo "_ACEOF"
12548} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12550ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012551ac_delim='%!_!# '
12552for ac_last_try in false false false false false :; do
12553 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012555
drhf922ca42015-05-14 15:39:18 +000012556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12557 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012558 break
12559 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012561 else
12562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012563 fi
drh8b727472009-01-19 18:18:40 +000012564done
12565rm -f conf$$subs.sh
12566
12567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012568cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012569_ACEOF
12570sed -n '
12571h
12572s/^/S["/; s/!.*/"]=/
12573p
12574g
12575s/^[^!]*!//
12576:repl
12577t repl
12578s/'"$ac_delim"'$//
12579t delim
12580:nl
12581h
drhf922ca42015-05-14 15:39:18 +000012582s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012583t more1
12584s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12585p
12586n
12587b repl
12588:more1
12589s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12590p
12591g
12592s/.\{148\}//
12593t nl
12594:delim
12595h
drhf922ca42015-05-14 15:39:18 +000012596s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012597t more2
12598s/["\\]/\\&/g; s/^/"/; s/$/"/
12599p
12600b
12601:more2
12602s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12603p
12604g
12605s/.\{148\}//
12606t delim
12607' <conf$$subs.awk | sed '
12608/^[^""]/{
12609 N
12610 s/\n//
12611}
12612' >>$CONFIG_STATUS || ac_write_fail=1
12613rm -f conf$$subs.awk
12614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12615_ACAWK
drhf922ca42015-05-14 15:39:18 +000012616cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012617 for (key in S) S_is_set[key] = 1
12618 FS = ""
12619
12620}
12621{
12622 line = $ 0
12623 nfields = split(line, field, "@")
12624 substed = 0
12625 len = length(field[1])
12626 for (i = 2; i < nfields; i++) {
12627 key = field[i]
12628 keylen = length(key)
12629 if (S_is_set[key]) {
12630 value = S[key]
12631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12632 len += length(value) + length(field[++i])
12633 substed = 1
12634 } else
12635 len += 1 + keylen
12636 }
12637
12638 print line
12639}
12640
12641_ACAWK
12642_ACEOF
12643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12644if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12646else
12647 cat
drhf922ca42015-05-14 15:39:18 +000012648fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12649 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012650_ACEOF
12651
drhf922ca42015-05-14 15:39:18 +000012652# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12653# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012654# trailing colons and then remove the whole line if VPATH becomes empty
12655# (actually we leave an empty line to preserve line numbers).
12656if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012657 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12658h
12659s///
12660s/^/:/
12661s/[ ]*$/:/
12662s/:\$(srcdir):/:/g
12663s/:\${srcdir}:/:/g
12664s/:@srcdir@:/:/g
12665s/^:*//
drh8b727472009-01-19 18:18:40 +000012666s/:*$//
drhf922ca42015-05-14 15:39:18 +000012667x
12668s/\(=[ ]*\).*/\1/
12669G
12670s/\n//
drh8b727472009-01-19 18:18:40 +000012671s/^[^=]*=[ ]*$//
12672}'
12673fi
12674
12675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012676fi # test -n "$CONFIG_FILES"
12677
drh8b727472009-01-19 18:18:40 +000012678# Set up the scripts for CONFIG_HEADERS section.
12679# No need to generate them if there are no CONFIG_HEADERS.
12680# This happens for instance with `./config.status Makefile'.
12681if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012682cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012683BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012684_ACEOF
drh8b727472009-01-19 18:18:40 +000012685
12686# Transform confdefs.h into an awk script `defines.awk', embedded as
12687# here-document in config.status, that substitutes the proper values into
12688# config.h.in to produce config.h.
12689
12690# Create a delimiter string that does not exist in confdefs.h, to ease
12691# handling of long lines.
12692ac_delim='%!_!# '
12693for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012694 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12695 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012696 break
12697 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012698 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012699 else
12700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12701 fi
12702done
12703
12704# For the awk script, D is an array of macro values keyed by name,
12705# likewise P contains macro parameters if any. Preserve backslash
12706# newline sequences.
12707
12708ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12709sed -n '
12710s/.\{148\}/&'"$ac_delim"'/g
12711t rset
12712:rset
12713s/^[ ]*#[ ]*define[ ][ ]*/ /
12714t def
12715d
12716:def
12717s/\\$//
12718t bsnl
12719s/["\\]/\\&/g
12720s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12721D["\1"]=" \3"/p
12722s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12723d
12724:bsnl
12725s/["\\]/\\&/g
12726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12727D["\1"]=" \3\\\\\\n"\\/p
12728t cont
12729s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12730t cont
12731d
12732:cont
12733n
12734s/.\{148\}/&'"$ac_delim"'/g
12735t clear
12736:clear
12737s/\\$//
12738t bsnlc
12739s/["\\]/\\&/g; s/^/"/; s/$/"/p
12740d
12741:bsnlc
12742s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12743b cont
12744' <confdefs.h | sed '
12745s/'"$ac_delim"'/"\\\
12746"/g' >>$CONFIG_STATUS || ac_write_fail=1
12747
12748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12749 for (key in D) D_is_set[key] = 1
12750 FS = ""
12751}
12752/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12753 line = \$ 0
12754 split(line, arg, " ")
12755 if (arg[1] == "#") {
12756 defundef = arg[2]
12757 mac1 = arg[3]
12758 } else {
12759 defundef = substr(arg[1], 2)
12760 mac1 = arg[2]
12761 }
12762 split(mac1, mac2, "(") #)
12763 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012764 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012765 if (D_is_set[macro]) {
12766 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012767 print prefix "define", macro P[macro] D[macro]
12768 next
12769 } else {
12770 # Replace #undef with comments. This is necessary, for example,
12771 # in the case of _POSIX_SOURCE, which is predefined and required
12772 # on some systems where configure will not decide to define it.
12773 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012774 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012775 next
12776 }
12777 }
12778}
12779{ print }
12780_ACAWK
12781_ACEOF
12782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012783 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012784fi # test -n "$CONFIG_HEADERS"
12785
12786
12787eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12788shift
12789for ac_tag
12790do
12791 case $ac_tag in
12792 :[FHLC]) ac_mode=$ac_tag; continue;;
12793 esac
12794 case $ac_mode$ac_tag in
12795 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012796 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012797 :[FH]-) ac_tag=-:-;;
12798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12799 esac
12800 ac_save_IFS=$IFS
12801 IFS=:
12802 set x $ac_tag
12803 IFS=$ac_save_IFS
12804 shift
12805 ac_file=$1
12806 shift
12807
12808 case $ac_mode in
12809 :L) ac_source=$1;;
12810 :[FH])
12811 ac_file_inputs=
12812 for ac_f
12813 do
12814 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012815 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012816 *) # Look for the file first in the build tree, then in the source tree
12817 # (if the path is not absolute). The absolute path cannot be DOS-style,
12818 # because $ac_f cannot contain `:'.
12819 test -f "$ac_f" ||
12820 case $ac_f in
12821 [\\/$]*) false;;
12822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12823 esac ||
drhf922ca42015-05-14 15:39:18 +000012824 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012825 esac
12826 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012827 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012828 done
12829
12830 # Let's still pretend it is `configure' which instantiates (i.e., don't
12831 # use $as_me), people would be surprised to read:
12832 # /* config.h. Generated by config.status. */
12833 configure_input='Generated from '`
12834 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12835 `' by configure.'
12836 if test x"$ac_file" != x-; then
12837 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012839$as_echo "$as_me: creating $ac_file" >&6;}
12840 fi
12841 # Neutralize special characters interpreted by sed in replacement strings.
12842 case $configure_input in #(
12843 *\&* | *\|* | *\\* )
12844 ac_sed_conf_input=`$as_echo "$configure_input" |
12845 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12846 *) ac_sed_conf_input=$configure_input;;
12847 esac
12848
12849 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012850 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012852 esac
12853 ;;
drh71eb93e2001-09-28 01:34:43 +000012854 esac
12855
drh8b727472009-01-19 18:18:40 +000012856 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012857$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012858 X"$ac_file" : 'X\(//\)[^/]' \| \
12859 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12861$as_echo X"$ac_file" |
12862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12863 s//\1/
12864 q
12865 }
12866 /^X\(\/\/\)[^/].*/{
12867 s//\1/
12868 q
12869 }
12870 /^X\(\/\/\)$/{
12871 s//\1/
12872 q
12873 }
12874 /^X\(\/\).*/{
12875 s//\1/
12876 q
12877 }
12878 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012879 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012880 ac_builddir=.
12881
drh8b727472009-01-19 18:18:40 +000012882case "$ac_dir" in
12883.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12884*)
12885 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12886 # A ".." for each directory in $ac_dir_suffix.
12887 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12888 case $ac_top_builddir_sub in
12889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12891 esac ;;
12892esac
12893ac_abs_top_builddir=$ac_pwd
12894ac_abs_builddir=$ac_pwd$ac_dir_suffix
12895# for backward compatibility:
12896ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012897
12898case $srcdir in
drh8b727472009-01-19 18:18:40 +000012899 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012900 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012901 ac_top_srcdir=$ac_top_builddir_sub
12902 ac_abs_top_srcdir=$ac_pwd ;;
12903 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012904 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012905 ac_top_srcdir=$srcdir
12906 ac_abs_top_srcdir=$srcdir ;;
12907 *) # Relative name.
12908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12909 ac_top_srcdir=$ac_top_build_prefix$srcdir
12910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012911esac
drh8b727472009-01-19 18:18:40 +000012912ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012913
a.rottmann84e63352003-03-24 09:42:16 +000012914
drh8b727472009-01-19 18:18:40 +000012915 case $ac_mode in
12916 :F)
12917 #
12918 # CONFIG_FILE
12919 #
drh75897232000-05-29 14:26:00 +000012920
drh71eb93e2001-09-28 01:34:43 +000012921 case $INSTALL in
12922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012924 esac
mlcreech94984912008-03-04 19:03:08 +000012925_ACEOF
drh8b727472009-01-19 18:18:40 +000012926
12927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928# If the template does not know about datarootdir, expand it.
12929# FIXME: This hack should be removed a few years after 2.60.
12930ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012931ac_sed_dataroot='
12932/datarootdir/ {
12933 p
12934 q
12935}
12936/@datadir@/p
12937/@docdir@/p
12938/@infodir@/p
12939/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000012940/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12942*datarootdir*) ac_datarootdir_seen=yes;;
12943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000012944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012945$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12946_ACEOF
12947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12948 ac_datarootdir_hack='
12949 s&@datadir@&$datadir&g
12950 s&@docdir@&$docdir&g
12951 s&@infodir@&$infodir&g
12952 s&@localedir@&$localedir&g
12953 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000012954 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012955esac
12956_ACEOF
12957
12958# Neutralize VPATH when `$srcdir' = `.'.
12959# Shell code in configure.ac might set extrasub.
12960# FIXME: do we really want to maintain this feature?
12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012963$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012964_ACEOF
drh8b727472009-01-19 18:18:40 +000012965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012966:t
12967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012968s|@configure_input@|$ac_sed_conf_input|;t t
12969s&@top_builddir@&$ac_top_builddir_sub&;t t
12970s&@top_build_prefix@&$ac_top_build_prefix&;t t
12971s&@srcdir@&$ac_srcdir&;t t
12972s&@abs_srcdir@&$ac_abs_srcdir&;t t
12973s&@top_srcdir@&$ac_top_srcdir&;t t
12974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12975s&@builddir@&$ac_builddir&;t t
12976s&@abs_builddir@&$ac_abs_builddir&;t t
12977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12978s&@INSTALL@&$ac_INSTALL&;t t
12979$ac_datarootdir_hack
12980"
drhf922ca42015-05-14 15:39:18 +000012981eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12982 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012983
drh8b727472009-01-19 18:18:40 +000012984test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000012985 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12987 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12989which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000012990$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000012991which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000012992
drhf922ca42015-05-14 15:39:18 +000012993 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012994 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000012995 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12996 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000012997 esac \
drhf922ca42015-05-14 15:39:18 +000012998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012999 ;;
13000 :H)
13001 #
13002 # CONFIG_HEADER
13003 #
drh866108f2008-05-13 00:57:21 +000013004 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013005 {
13006 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13008 } >"$ac_tmp/config.h" \
13009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13010 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013012$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013013 else
drh8b727472009-01-19 18:18:40 +000013014 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013015 mv "$ac_tmp/config.h" "$ac_file" \
13016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013017 fi
13018 else
drh8b727472009-01-19 18:18:40 +000013019 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13021 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013022 fi
drh8b727472009-01-19 18:18:40 +000013023 ;;
drh866108f2008-05-13 00:57:21 +000013024
drhf922ca42015-05-14 15:39:18 +000013025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013026$as_echo "$as_me: executing $ac_file commands" >&6;}
13027 ;;
13028 esac
drh866108f2008-05-13 00:57:21 +000013029
13030
drh8b727472009-01-19 18:18:40 +000013031 case $ac_file$ac_mode in
13032 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013033
13034 # See if we are running on zsh, and set the options which allow our
13035 # commands through without removal of \ escapes.
13036 if test -n "${ZSH_VERSION+set}" ; then
13037 setopt NO_GLOB_SUBST
13038 fi
13039
13040 cfgfile="${ofile}T"
13041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13042 $RM "$cfgfile"
13043
13044 cat <<_LT_EOF >> "$cfgfile"
13045#! $SHELL
13046
13047# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13048# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13050# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13051#
13052# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13053# 2006, 2007, 2008 Free Software Foundation, Inc.
13054# Written by Gordon Matzigkeit, 1996
13055#
13056# This file is part of GNU Libtool.
13057#
13058# GNU Libtool is free software; you can redistribute it and/or
13059# modify it under the terms of the GNU General Public License as
13060# published by the Free Software Foundation; either version 2 of
13061# the License, or (at your option) any later version.
13062#
13063# As a special exception to the GNU General Public License,
13064# if you distribute this file as part of a program or library that
13065# is built using GNU Libtool, you may include this file under the
13066# same distribution terms that you use for the rest of that program.
13067#
13068# GNU Libtool is distributed in the hope that it will be useful,
13069# but WITHOUT ANY WARRANTY; without even the implied warranty of
13070# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13071# GNU General Public License for more details.
13072#
13073# You should have received a copy of the GNU General Public License
13074# along with GNU Libtool; see the file COPYING. If not, a copy
13075# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13076# obtained by writing to the Free Software Foundation, Inc.,
13077# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13078
13079
13080# The names of the tagged configurations supported by this script.
13081available_tags=""
13082
13083# ### BEGIN LIBTOOL CONFIG
13084
13085# Which release of libtool.m4 was used?
13086macro_version=$macro_version
13087macro_revision=$macro_revision
13088
13089# Whether or not to build shared libraries.
13090build_libtool_libs=$enable_shared
13091
13092# Whether or not to build static libraries.
13093build_old_libs=$enable_static
13094
13095# What type of objects to build.
13096pic_mode=$pic_mode
13097
13098# Whether or not to optimize for fast installation.
13099fast_install=$enable_fast_install
13100
13101# The host system.
13102host_alias=$host_alias
13103host=$host
13104host_os=$host_os
13105
13106# The build system.
13107build_alias=$build_alias
13108build=$build
13109build_os=$build_os
13110
13111# A sed program that does not truncate output.
13112SED=$lt_SED
13113
13114# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13115Xsed="\$SED -e 1s/^X//"
13116
13117# A grep program that handles long lines.
13118GREP=$lt_GREP
13119
13120# An ERE matcher.
13121EGREP=$lt_EGREP
13122
13123# A literal string matcher.
13124FGREP=$lt_FGREP
13125
13126# A BSD- or MS-compatible name lister.
13127NM=$lt_NM
13128
13129# Whether we need soft or hard links.
13130LN_S=$lt_LN_S
13131
13132# What is the maximum length of a command?
13133max_cmd_len=$max_cmd_len
13134
13135# Object file suffix (normally "o").
13136objext=$ac_objext
13137
13138# Executable file suffix (normally "").
13139exeext=$exeext
13140
13141# whether the shell understands "unset".
13142lt_unset=$lt_unset
13143
13144# turn spaces into newlines.
13145SP2NL=$lt_lt_SP2NL
13146
13147# turn newlines into spaces.
13148NL2SP=$lt_lt_NL2SP
13149
13150# How to create reloadable object files.
13151reload_flag=$lt_reload_flag
13152reload_cmds=$lt_reload_cmds
13153
vapier6acb2cf2009-01-28 04:46:28 +000013154# An object symbol dumper.
13155OBJDUMP=$lt_OBJDUMP
13156
mlcreech636a9952008-05-05 22:52:56 +000013157# Method to check whether dependent libraries are shared objects.
13158deplibs_check_method=$lt_deplibs_check_method
13159
13160# Command to use when deplibs_check_method == "file_magic".
13161file_magic_cmd=$lt_file_magic_cmd
13162
13163# The archiver.
13164AR=$lt_AR
13165AR_FLAGS=$lt_AR_FLAGS
13166
13167# A symbol stripping program.
13168STRIP=$lt_STRIP
13169
13170# Commands used to install an old-style archive.
13171RANLIB=$lt_RANLIB
13172old_postinstall_cmds=$lt_old_postinstall_cmds
13173old_postuninstall_cmds=$lt_old_postuninstall_cmds
13174
13175# A C compiler.
13176LTCC=$lt_CC
13177
13178# LTCC compiler flags.
13179LTCFLAGS=$lt_CFLAGS
13180
13181# Take the output of nm and produce a listing of raw symbols and C names.
13182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13183
13184# Transform the output of nm in a proper C declaration.
13185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13186
13187# Transform the output of nm in a C name address pair.
13188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13189
13190# Transform the output of nm in a C name address pair when lib prefix is needed.
13191global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13192
13193# The name of the directory that contains temporary libtool files.
13194objdir=$objdir
13195
13196# Shell to use when invoking shell scripts.
13197SHELL=$lt_SHELL
13198
13199# An echo program that does not interpret backslashes.
13200ECHO=$lt_ECHO
13201
13202# Used to examine libraries when file_magic_cmd begins with "file".
13203MAGIC_CMD=$MAGIC_CMD
13204
13205# Must we lock files when doing compilation?
13206need_locks=$lt_need_locks
13207
13208# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13209DSYMUTIL=$lt_DSYMUTIL
13210
13211# Tool to change global to local symbols on Mac OS X.
13212NMEDIT=$lt_NMEDIT
13213
13214# Tool to manipulate fat objects and archives on Mac OS X.
13215LIPO=$lt_LIPO
13216
13217# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13218OTOOL=$lt_OTOOL
13219
13220# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13221OTOOL64=$lt_OTOOL64
13222
13223# Old archive suffix (normally "a").
13224libext=$libext
13225
13226# Shared library suffix (normally ".so").
13227shrext_cmds=$lt_shrext_cmds
13228
13229# The commands to extract the exported symbol list from a shared archive.
13230extract_expsyms_cmds=$lt_extract_expsyms_cmds
13231
13232# Variables whose values should be saved in libtool wrapper scripts and
13233# restored at link time.
13234variables_saved_for_relink=$lt_variables_saved_for_relink
13235
13236# Do we need the "lib" prefix for modules?
13237need_lib_prefix=$need_lib_prefix
13238
13239# Do we need a version for libraries?
13240need_version=$need_version
13241
13242# Library versioning type.
13243version_type=$version_type
13244
13245# Shared library runtime path variable.
13246runpath_var=$runpath_var
13247
13248# Shared library path variable.
13249shlibpath_var=$shlibpath_var
13250
13251# Is shlibpath searched before the hard-coded library search path?
13252shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13253
13254# Format of library name prefix.
13255libname_spec=$lt_libname_spec
13256
13257# List of archive names. First name is the real one, the rest are links.
13258# The last name is the one that the linker finds with -lNAME
13259library_names_spec=$lt_library_names_spec
13260
13261# The coded name of the library, if different from the real name.
13262soname_spec=$lt_soname_spec
13263
13264# Command to use after installation of a shared archive.
13265postinstall_cmds=$lt_postinstall_cmds
13266
13267# Command to use after uninstallation of a shared archive.
13268postuninstall_cmds=$lt_postuninstall_cmds
13269
13270# Commands used to finish a libtool library installation in a directory.
13271finish_cmds=$lt_finish_cmds
13272
13273# As "finish_cmds", except a single script fragment to be evaled but
13274# not shown.
13275finish_eval=$lt_finish_eval
13276
13277# Whether we should hardcode library paths into libraries.
13278hardcode_into_libs=$hardcode_into_libs
13279
13280# Compile-time system search path for libraries.
13281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13282
13283# Run-time system search path for libraries.
13284sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13285
13286# Whether dlopen is supported.
13287dlopen_support=$enable_dlopen
13288
13289# Whether dlopen of programs is supported.
13290dlopen_self=$enable_dlopen_self
13291
13292# Whether dlopen of statically linked programs is supported.
13293dlopen_self_static=$enable_dlopen_self_static
13294
13295# Commands to strip libraries.
13296old_striplib=$lt_old_striplib
13297striplib=$lt_striplib
13298
13299
13300# The linker used to build libraries.
13301LD=$lt_LD
13302
13303# Commands used to build an old-style archive.
13304old_archive_cmds=$lt_old_archive_cmds
13305
13306# A language specific compiler.
13307CC=$lt_compiler
13308
13309# Is the compiler the GNU compiler?
13310with_gcc=$GCC
13311
13312# Compiler flag to turn off builtin functions.
13313no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13314
13315# How to pass a linker flag through the compiler.
13316wl=$lt_lt_prog_compiler_wl
13317
13318# Additional compiler flags for building library objects.
13319pic_flag=$lt_lt_prog_compiler_pic
13320
13321# Compiler flag to prevent dynamic linking.
13322link_static_flag=$lt_lt_prog_compiler_static
13323
13324# Does compiler simultaneously support -c and -o options?
13325compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13326
13327# Whether or not to add -lc for building shared libraries.
13328build_libtool_need_lc=$archive_cmds_need_lc
13329
13330# Whether or not to disallow shared libs when runtime libs are static.
13331allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13332
13333# Compiler flag to allow reflexive dlopens.
13334export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13335
13336# Compiler flag to generate shared objects directly from archives.
13337whole_archive_flag_spec=$lt_whole_archive_flag_spec
13338
13339# Whether the compiler copes with passing no objects directly.
13340compiler_needs_object=$lt_compiler_needs_object
13341
13342# Create an old-style archive from a shared archive.
13343old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13344
13345# Create a temporary old-style archive to link instead of a shared archive.
13346old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13347
13348# Commands used to build a shared archive.
13349archive_cmds=$lt_archive_cmds
13350archive_expsym_cmds=$lt_archive_expsym_cmds
13351
13352# Commands used to build a loadable module if different from building
13353# a shared archive.
13354module_cmds=$lt_module_cmds
13355module_expsym_cmds=$lt_module_expsym_cmds
13356
13357# Whether we are building with GNU ld or not.
13358with_gnu_ld=$lt_with_gnu_ld
13359
13360# Flag that allows shared libraries with undefined symbols to be built.
13361allow_undefined_flag=$lt_allow_undefined_flag
13362
13363# Flag that enforces no undefined symbols.
13364no_undefined_flag=$lt_no_undefined_flag
13365
13366# Flag to hardcode \$libdir into a binary during linking.
13367# This must work even if \$libdir does not exist
13368hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13369
13370# If ld is used when linking, flag to hardcode \$libdir into a binary
13371# during linking. This must work even if \$libdir does not exist.
13372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13373
13374# Whether we need a single "-rpath" flag with a separated argument.
13375hardcode_libdir_separator=$lt_hardcode_libdir_separator
13376
13377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13378# DIR into the resulting binary.
13379hardcode_direct=$hardcode_direct
13380
13381# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13382# DIR into the resulting binary and the resulting library dependency is
13383# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13384# library is relocated.
13385hardcode_direct_absolute=$hardcode_direct_absolute
13386
13387# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13388# into the resulting binary.
13389hardcode_minus_L=$hardcode_minus_L
13390
13391# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13392# into the resulting binary.
13393hardcode_shlibpath_var=$hardcode_shlibpath_var
13394
13395# Set to "yes" if building a shared library automatically hardcodes DIR
13396# into the library and all subsequent libraries and executables linked
13397# against it.
13398hardcode_automatic=$hardcode_automatic
13399
13400# Set to yes if linker adds runtime paths of dependent libraries
13401# to runtime path list.
13402inherit_rpath=$inherit_rpath
13403
13404# Whether libtool must link a program against all its dependency libraries.
13405link_all_deplibs=$link_all_deplibs
13406
13407# Fix the shell variable \$srcfile for the compiler.
13408fix_srcfile_path=$lt_fix_srcfile_path
13409
13410# Set to "yes" if exported symbols are required.
13411always_export_symbols=$always_export_symbols
13412
13413# The commands to list exported symbols.
13414export_symbols_cmds=$lt_export_symbols_cmds
13415
13416# Symbols that should not be listed in the preloaded symbols.
13417exclude_expsyms=$lt_exclude_expsyms
13418
13419# Symbols that must always be exported.
13420include_expsyms=$lt_include_expsyms
13421
13422# Commands necessary for linking programs (against libraries) with templates.
13423prelink_cmds=$lt_prelink_cmds
13424
13425# Specify filename containing input files.
13426file_list_spec=$lt_file_list_spec
13427
13428# How to hardcode a shared library path into an executable.
13429hardcode_action=$hardcode_action
13430
13431# ### END LIBTOOL CONFIG
13432
13433_LT_EOF
13434
13435 case $host_os in
13436 aix3*)
13437 cat <<\_LT_EOF >> "$cfgfile"
13438# AIX sometimes has problems with the GCC collect2 program. For some
13439# reason, if we set the COLLECT_NAMES environment variable, the problems
13440# vanish in a puff of smoke.
13441if test "X${COLLECT_NAMES+set}" != Xset; then
13442 COLLECT_NAMES=
13443 export COLLECT_NAMES
13444fi
13445_LT_EOF
13446 ;;
13447 esac
13448
13449
13450ltmain="$ac_aux_dir/ltmain.sh"
13451
13452
13453 # We use sed instead of cat because bash on DJGPP gets confused if
13454 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13455 # text mode, it properly converts lines to CR/LF. This bash problem
13456 # is reportedly fixed, but why not run on old versions too?
13457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13458 || (rm -f "$cfgfile"; exit 1)
13459
13460 case $xsi_shell in
13461 yes)
13462 cat << \_LT_EOF >> "$cfgfile"
13463
13464# func_dirname file append nondir_replacement
13465# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13466# otherwise set result to NONDIR_REPLACEMENT.
13467func_dirname ()
13468{
13469 case ${1} in
13470 */*) func_dirname_result="${1%/*}${2}" ;;
13471 * ) func_dirname_result="${3}" ;;
13472 esac
13473}
13474
13475# func_basename file
13476func_basename ()
13477{
13478 func_basename_result="${1##*/}"
13479}
13480
13481# func_dirname_and_basename file append nondir_replacement
13482# perform func_basename and func_dirname in a single function
13483# call:
13484# dirname: Compute the dirname of FILE. If nonempty,
13485# add APPEND to the result, otherwise set result
13486# to NONDIR_REPLACEMENT.
13487# value returned in "$func_dirname_result"
13488# basename: Compute filename of FILE.
13489# value retuned in "$func_basename_result"
13490# Implementation must be kept synchronized with func_dirname
13491# and func_basename. For efficiency, we do not delegate to
13492# those functions but instead duplicate the functionality here.
13493func_dirname_and_basename ()
13494{
13495 case ${1} in
13496 */*) func_dirname_result="${1%/*}${2}" ;;
13497 * ) func_dirname_result="${3}" ;;
13498 esac
13499 func_basename_result="${1##*/}"
13500}
13501
13502# func_stripname prefix suffix name
13503# strip PREFIX and SUFFIX off of NAME.
13504# PREFIX and SUFFIX must not contain globbing or regex special
13505# characters, hashes, percent signs, but SUFFIX may contain a leading
13506# dot (in which case that matches only a dot).
13507func_stripname ()
13508{
13509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13510 # positional parameters, so assign one to ordinary parameter first.
13511 func_stripname_result=${3}
13512 func_stripname_result=${func_stripname_result#"${1}"}
13513 func_stripname_result=${func_stripname_result%"${2}"}
13514}
13515
13516# func_opt_split
13517func_opt_split ()
13518{
13519 func_opt_split_opt=${1%%=*}
13520 func_opt_split_arg=${1#*=}
13521}
13522
13523# func_lo2o object
13524func_lo2o ()
13525{
13526 case ${1} in
13527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13528 *) func_lo2o_result=${1} ;;
13529 esac
13530}
13531
13532# func_xform libobj-or-source
13533func_xform ()
13534{
13535 func_xform_result=${1%.*}.lo
13536}
13537
13538# func_arith arithmetic-term...
13539func_arith ()
13540{
13541 func_arith_result=$(( $* ))
13542}
13543
13544# func_len string
13545# STRING may not start with a hyphen.
13546func_len ()
13547{
13548 func_len_result=${#1}
13549}
13550
13551_LT_EOF
13552 ;;
13553 *) # Bourne compatible functions.
13554 cat << \_LT_EOF >> "$cfgfile"
13555
13556# func_dirname file append nondir_replacement
13557# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13558# otherwise set result to NONDIR_REPLACEMENT.
13559func_dirname ()
13560{
13561 # Extract subdirectory from the argument.
13562 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13563 if test "X$func_dirname_result" = "X${1}"; then
13564 func_dirname_result="${3}"
13565 else
13566 func_dirname_result="$func_dirname_result${2}"
13567 fi
13568}
13569
13570# func_basename file
13571func_basename ()
13572{
13573 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13574}
13575
13576
13577# func_stripname prefix suffix name
13578# strip PREFIX and SUFFIX off of NAME.
13579# PREFIX and SUFFIX must not contain globbing or regex special
13580# characters, hashes, percent signs, but SUFFIX may contain a leading
13581# dot (in which case that matches only a dot).
13582# func_strip_suffix prefix name
13583func_stripname ()
13584{
13585 case ${2} in
13586 .*) func_stripname_result=`$ECHO "X${3}" \
13587 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13588 *) func_stripname_result=`$ECHO "X${3}" \
13589 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13590 esac
13591}
13592
13593# sed scripts:
13594my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13595my_sed_long_arg='1s/^-[^=]*=//'
13596
13597# func_opt_split
13598func_opt_split ()
13599{
13600 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13601 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13602}
13603
13604# func_lo2o object
13605func_lo2o ()
13606{
13607 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13608}
13609
13610# func_xform libobj-or-source
13611func_xform ()
13612{
13613 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13614}
13615
13616# func_arith arithmetic-term...
13617func_arith ()
13618{
13619 func_arith_result=`expr "$@"`
13620}
13621
13622# func_len string
13623# STRING may not start with a hyphen.
13624func_len ()
13625{
13626 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13627}
13628
13629_LT_EOF
13630esac
13631
13632case $lt_shell_append in
13633 yes)
13634 cat << \_LT_EOF >> "$cfgfile"
13635
13636# func_append var value
13637# Append VALUE to the end of shell variable VAR.
13638func_append ()
13639{
13640 eval "$1+=\$2"
13641}
13642_LT_EOF
13643 ;;
13644 *)
13645 cat << \_LT_EOF >> "$cfgfile"
13646
13647# func_append var value
13648# Append VALUE to the end of shell variable VAR.
13649func_append ()
13650{
13651 eval "$1=\$$1\$2"
13652}
13653
13654_LT_EOF
13655 ;;
13656 esac
13657
13658
13659 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13660 || (rm -f "$cfgfile"; exit 1)
13661
13662 mv -f "$cfgfile" "$ofile" ||
13663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13664 chmod +x "$ofile"
13665
13666 ;;
mlcreech94984912008-03-04 19:03:08 +000013667
drh8b727472009-01-19 18:18:40 +000013668 esac
13669done # for ac_tag
13670
drh71eb93e2001-09-28 01:34:43 +000013671
drhf922ca42015-05-14 15:39:18 +000013672as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013673_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013674ac_clean_files=$ac_clean_files_save
13675
drh8b727472009-01-19 18:18:40 +000013676test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013677 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013678
a.rottmann84e63352003-03-24 09:42:16 +000013679
drh71eb93e2001-09-28 01:34:43 +000013680# configure is writing to config.log, and then calls config.status.
13681# config.status does its own redirection, appending to config.log.
13682# Unfortunately, on DOS this fails, as config.log is still kept open
13683# by configure, so config.status won't be able to write to it; its
13684# output is simply discarded. So we exec the FD to /dev/null,
13685# effectively closing config.log, so it can be properly (re)opened and
13686# appended to by config.status. When coming back to configure, we
13687# need to make the FD available again.
13688if test "$no_create" != yes; then
13689 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013690 ac_config_status_args=
13691 test "$silent" = yes &&
13692 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013693 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013695 exec 5>>config.log
13696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13697 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013698 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013699fi
drh8b727472009-01-19 18:18:40 +000013700if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13702$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013703fi
drhbc7a22d2009-10-13 22:47:13 +000013704