blob: 1b9060d3ada26ceb76f1a105877a0cf30cc46194 [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.
drhf922ca42015-05-14 15:39:18 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.8.11.
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'
drhf922ca42015-05-14 15:39:18 +0000729PACKAGE_VERSION='3.8.11'
730PACKAGE_STRING='sqlite 3.8.11'
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
777TARGET_HAVE_READLINE
778TARGET_READLINE_INC
779TARGET_READLINE_LIBS
780HAVE_TCL
781TCL_SHLIB_SUFFIX
782TCL_STUB_LIB_SPEC
783TCL_STUB_LIB_FLAG
784TCL_STUB_LIB_FILE
785TCL_LIB_SPEC
786TCL_LIB_FLAG
787TCL_LIB_FILE
788TCL_INCLUDE_SPEC
789TCL_SRC_DIR
790TCL_BIN_DIR
791TCL_VERSION
792TARGET_EXEEXT
793SQLITE_OS_WIN
794SQLITE_OS_UNIX
795BUILD_EXEEXT
796TEMP_STORE
797ALLOWRELEASE
798SQLITE_THREADSAFE
799BUILD_CC
800VERSION_NUMBER
801RELEASE
802VERSION
803program_prefix
804TCLLIBDIR
805TCLSH_CMD
806AWK
807INSTALL_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
899enable_readline
900with_readline_lib
901with_readline_inc
902enable_debug
903enable_amalgamation
904enable_load_extension
905enable_gcov
906'
907 ac_precious_vars='build_alias
908host_alias
909target_alias
910CC
911CFLAGS
912LDFLAGS
913LIBS
914CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000915CPP
916TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000917
drh75897232000-05-29 14:26:00 +0000918
919# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000920ac_init_help=
921ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000922ac_unrecognized_opts=
923ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000924# The variables have the same names as the options, with
925# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000926cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000927exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000928no_create=
drh75897232000-05-29 14:26:00 +0000929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
drh75897232000-05-29 14:26:00 +0000937verbose=
938x_includes=NONE
939x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000946# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000955includedir='${prefix}/include'
956oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000966
drh75897232000-05-29 14:26:00 +0000967ac_prev=
drh8b727472009-01-19 18:18:40 +0000968ac_dashdash=
drh75897232000-05-29 14:26:00 +0000969for ac_option
970do
drh75897232000-05-29 14:26:00 +0000971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000973 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000974 ac_prev=
975 continue
976 fi
977
drh8b727472009-01-19 18:18:40 +0000978 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000979 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *=) ac_optarg= ;;
981 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000982 esac
drh75897232000-05-29 14:26:00 +0000983
984 # Accept the important Cygnus configure options, so we can diagnose typos.
985
drh8b727472009-01-19 18:18:40 +0000986 case $ac_dashdash$ac_option in
987 --)
988 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000989
990 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 ac_prev=bindir ;;
992 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000993 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000994
995 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +0000996 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +0000997 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +0000998 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000999
1000 -cache-file | --cache-file | --cache-fil | --cache-fi \
1001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002 ac_prev=cache_file ;;
1003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001005 cache_file=$ac_optarg ;;
1006
1007 --config-cache | -C)
1008 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001009
drh8b727472009-01-19 18:18:40 +00001010 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001011 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001012 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001013 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001014
drh8b727472009-01-19 18:18:40 +00001015 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016 | --dataroo | --dataro | --datar)
1017 ac_prev=datarootdir ;;
1018 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020 datarootdir=$ac_optarg ;;
1021
drh75897232000-05-29 14:26:00 +00001022 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001023 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001024 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001026 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1030 *"
1031"enable_$ac_useropt"
1032"*) ;;
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1035 esac
1036 eval enable_$ac_useropt=no ;;
1037
1038 -docdir | --docdir | --docdi | --doc | --do)
1039 ac_prev=docdir ;;
1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1041 docdir=$ac_optarg ;;
1042
1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 ac_prev=dvidir ;;
1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1046 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001047
1048 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001049 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001050 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001052 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001061 esac
drh8b727472009-01-19 18:18:40 +00001062 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001063
1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1066 | --exec | --exe | --ex)
1067 ac_prev=exec_prefix ;;
1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1070 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001071 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001072
1073 -gas | --gas | --ga | --g)
1074 # Obsolete; use --with-gas.
1075 with_gas=yes ;;
1076
drh71eb93e2001-09-28 01:34:43 +00001077 -help | --help | --hel | --he | -h)
1078 ac_init_help=long ;;
1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1080 ac_init_help=recursive ;;
1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1082 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001083
1084 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001085 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001086 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001087 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001088
drh8b727472009-01-19 18:18:40 +00001089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 ac_prev=htmldir ;;
1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 | --ht=*)
1093 htmldir=$ac_optarg ;;
1094
drh75897232000-05-29 14:26:00 +00001095 -includedir | --includedir | --includedi | --included | --include \
1096 | --includ | --inclu | --incl | --inc)
1097 ac_prev=includedir ;;
1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1099 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001100 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001101
1102 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 ac_prev=infodir ;;
1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001105 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001106
1107 -libdir | --libdir | --libdi | --libd)
1108 ac_prev=libdir ;;
1109 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001110 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001111
1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1113 | --libexe | --libex | --libe)
1114 ac_prev=libexecdir ;;
1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1116 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001117 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001118
drh8b727472009-01-19 18:18:40 +00001119 -localedir | --localedir | --localedi | --localed | --locale)
1120 ac_prev=localedir ;;
1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1122 localedir=$ac_optarg ;;
1123
drh75897232000-05-29 14:26:00 +00001124 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001125 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001126 ac_prev=localstatedir ;;
1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001129 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 ac_prev=mandir ;;
1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001134 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001135
1136 -nfp | --nfp | --nf)
1137 # Obsolete; use --without-fp.
1138 with_fp=no ;;
1139
1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001141 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001142 no_create=yes ;;
1143
1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1146 no_recursion=yes ;;
1147
1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1150 | --oldin | --oldi | --old | --ol | --o)
1151 ac_prev=oldincludedir ;;
1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001155 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001156
1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 ac_prev=prefix ;;
1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001160 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001161
1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1163 | --program-pre | --program-pr | --program-p)
1164 ac_prev=program_prefix ;;
1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001167 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001168
1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1170 | --program-suf | --program-su | --program-s)
1171 ac_prev=program_suffix ;;
1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001174 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -program-transform-name | --program-transform-name \
1177 | --program-transform-nam | --program-transform-na \
1178 | --program-transform-n | --program-transform- \
1179 | --program-transform | --program-transfor \
1180 | --program-transfo | --program-transf \
1181 | --program-trans | --program-tran \
1182 | --progr-tra | --program-tr | --program-t)
1183 ac_prev=program_transform_name ;;
1184 -program-transform-name=* | --program-transform-name=* \
1185 | --program-transform-nam=* | --program-transform-na=* \
1186 | --program-transform-n=* | --program-transform-=* \
1187 | --program-transform=* | --program-transfor=* \
1188 | --program-transfo=* | --program-transf=* \
1189 | --program-trans=* | --program-tran=* \
1190 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001191 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001192
drh8b727472009-01-19 18:18:40 +00001193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 ac_prev=pdfdir ;;
1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1196 pdfdir=$ac_optarg ;;
1197
1198 -psdir | --psdir | --psdi | --psd | --ps)
1199 ac_prev=psdir ;;
1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1201 psdir=$ac_optarg ;;
1202
drh75897232000-05-29 14:26:00 +00001203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204 | -silent | --silent | --silen | --sile | --sil)
1205 silent=yes ;;
1206
1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001211 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001212
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001222 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001223
1224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001227 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001228
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001232 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001233
1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001239 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001242 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001244 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1248
drh71eb93e2001-09-28 01:34:43 +00001249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001254 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001256 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001265 esac
drh8b727472009-01-19 18:18:40 +00001266 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001267
1268 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001270 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001272 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001293 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001300 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001301
drhf922ca42015-05-14 15:39:18 +00001302 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001304 ;;
1305
drh71eb93e2001-09-28 01:34:43 +00001306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
1311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312 esac
drh8b727472009-01-19 18:18:40 +00001313 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001314 export $ac_envvar ;;
1315
drh75897232000-05-29 14:26:00 +00001316 *)
drh71eb93e2001-09-28 01:34:43 +00001317 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001329 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001330fi
1331
drh8b727472009-01-19 18:18:40 +00001332if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1334 no) ;;
drhf922ca42015-05-14 15:39:18 +00001335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001337 esac
drh8b727472009-01-19 18:18:40 +00001338fi
drh866108f2008-05-13 00:57:21 +00001339
drh8b727472009-01-19 18:18:40 +00001340# Check all directory arguments for consistency.
1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001345do
drh8b727472009-01-19 18:18:40 +00001346 eval ac_val=\$$ac_var
1347 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001348 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001352 esac
drh8b727472009-01-19 18:18:40 +00001353 # Be sure to have absolute directory names.
1354 case $ac_val in
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 esac
drhf922ca42015-05-14 15:39:18 +00001358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001359done
drh75897232000-05-29 14:26:00 +00001360
drh71eb93e2001-09-28 01:34:43 +00001361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001363# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001364build=$build_alias
1365host=$host_alias
1366target=$target_alias
drh75897232000-05-29 14:26:00 +00001367
a.rottmann84e63352003-03-24 09:42:16 +00001368# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001381
a.rottmann84e63352003-03-24 09:42:16 +00001382
drh8b727472009-01-19 18:18:40 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001386 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001388 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001389
1390
drh75897232000-05-29 14:26:00 +00001391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001418 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001419 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001420 srcdir=..
1421 fi
1422else
1423 ac_srcdir_defaulted=no
1424fi
drh8b727472009-01-19 18:18:40 +00001425if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001428fi
drh8b727472009-01-19 18:18:40 +00001429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001432 pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
drh75897232000-05-29 14:26:00 +00001449
drh71eb93e2001-09-28 01:34:43 +00001450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001456 cat <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00001457\`configure' configures sqlite 3.8.11 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE. See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001471 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476
drh71eb93e2001-09-28 01:34:43 +00001477Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001479 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001481 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001510_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001511
a.rottmann84e63352003-03-24 09:42:16 +00001512 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001513
1514System types:
1515 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001516 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1517_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001518fi
1519
1520if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001521 case $ac_init_help in
drhf922ca42015-05-14 15:39:18 +00001522 short | recursive ) echo "Configuration of sqlite 3.8.11:";;
mlcreechb87057f2008-03-06 07:19:20 +00001523 esac
a.rottmann84e63352003-03-24 09:42:16 +00001524 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525
1526Optional Features:
drh8b727472009-01-19 18:18:40 +00001527 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001534 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001535 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001536 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001537 --enable-releasemode Support libtool link to release mode
1538 --enable-tempstore Use an in-ram database for temporary tables
1539 (never,no,yes,always)
1540 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001541 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001542 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001543 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001544 separately
drh05c7e0b2015-01-10 14:27:17 +00001545 --disable-load-extension
1546 Disable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001547 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001548
1549Optional Packages:
1550 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1551 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001552 --with-pic try to use only PIC/non-PIC objects [default=use
1553 both]
mlcreech636a9952008-05-05 22:52:56 +00001554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001555 --with-tcl=DIR directory containing tcl configuration
1556 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001557 --with-readline-lib specify readline library
1558 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001559
1560Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001565 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001566 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001567 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001568 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001569 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001570
1571Use these variables to override the choices made by `configure' or to help
1572it to find libraries and programs with nonstandard names/locations.
1573
drhf922ca42015-05-14 15:39:18 +00001574Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001575_ACEOF
drh8b727472009-01-19 18:18:40 +00001576ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001577fi
1578
1579if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001582 test -d "$ac_dir" ||
1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584 continue
a.rottmann84e63352003-03-24 09:42:16 +00001585 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001586
drh8b727472009-01-19 18:18:40 +00001587case "$ac_dir" in
1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589*)
1590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597esac
1598ac_abs_top_builddir=$ac_pwd
1599ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600# for backward compatibility:
1601ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001602
a.rottmann84e63352003-03-24 09:42:16 +00001603case $srcdir in
drh8b727472009-01-19 18:18:40 +00001604 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001605 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001609 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001616esac
drh8b727472009-01-19 18:18:40 +00001617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001618
drh8b727472009-01-19 18:18:40 +00001619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001627 else
drh8b727472009-01-19 18:18:40 +00001628 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001631 done
1632fi
1633
drh8b727472009-01-19 18:18:40 +00001634test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001635if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001636 cat <<\_ACEOF
drhf922ca42015-05-14 15:39:18 +00001637sqlite configure 3.8.11
1638generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001639
drhf922ca42015-05-14 15:39:18 +00001640Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001643_ACEOF
drh8b727472009-01-19 18:18:40 +00001644 exit
drh71eb93e2001-09-28 01:34:43 +00001645fi
drhf922ca42015-05-14 15:39:18 +00001646
1647## ------------------------ ##
1648## Autoconf initialization. ##
1649## ------------------------ ##
1650
1651# ac_fn_c_try_compile LINENO
1652# --------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_c_try_compile ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1677 ac_retval=0
1678else
1679 $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682 ac_retval=1
1683fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_compile
1688
1689# ac_fn_c_try_link LINENO
1690# -----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_link ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1717 }; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724fi
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_link
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1746else
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 eval "$3=yes"
1754else
1755 eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_c_try_cpp LINENO
1767# ----------------------
1768# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_c_try_cpp ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_cpp conftest.$ac_ext"
1773case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776esac
1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778$as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } > conftest.i && {
1788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_cpp
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>&5
1818 ac_status=$?
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821 { { case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_try") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; }; }; then :
1831 ac_retval=0
1832else
1833 $as_echo "$as_me: program exited with status $ac_status" >&5
1834 $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=$ac_status
1838fi
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h. */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899else
1900 eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_func
1911
1912# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913# -------------------------------------------
1914# Tests whether TYPE exists after having included INCLUDES, setting cache
1915# variable VAR accordingly.
1916ac_fn_c_check_type ()
1917{
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920$as_echo_n "checking for $2... " >&6; }
1921if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923else
1924 eval "$3=no"
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927$4
1928int
1929main ()
1930{
1931if (sizeof ($2))
1932 return 0;
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941int
1942main ()
1943{
1944if (sizeof (($2)))
1945 return 0;
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951
1952else
1953 eval "$3=yes"
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_type
1965
1966# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967# -------------------------------------------------------
1968# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969# the include files in INCLUDES and setting the cache variable VAR
1970# accordingly.
1971ac_fn_c_check_header_mongrel ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval \${$3+:} false; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1979fi
1980eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983else
1984 # Is the header compilable?
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986$as_echo_n "checking $2 usability... " >&6; }
1987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990#include <$2>
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1994else
1995 ac_header_compiler=no
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999$as_echo "$ac_header_compiler" >&6; }
2000
2001# Is the header present?
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003$as_echo_n "checking $2 presence... " >&6; }
2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006#include <$2>
2007_ACEOF
2008if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2010else
2011 ac_header_preproc=no
2012fi
2013rm -f conftest.err conftest.i conftest.$ac_ext
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015$as_echo "$ac_header_preproc" >&6; }
2016
2017# So? What about this header?
2018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 yes:no: )
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ;;
2025 no:yes:* )
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ;;
2037esac
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039$as_echo_n "checking for $2... " >&6; }
2040if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2042else
2043 eval "$3=\$ac_header_compiler"
2044fi
2045eval ac_res=\$$3
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048fi
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002052cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002053This file contains any messages produced by compilers while
2054running configure, to aid debugging if configure makes a mistake.
2055
drhf922ca42015-05-14 15:39:18 +00002056It was created by sqlite $as_me 3.8.11, which was
2057generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002058
2059 $ $0 $@
2060
a.rottmann84e63352003-03-24 09:42:16 +00002061_ACEOF
drh8b727472009-01-19 18:18:40 +00002062exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002063{
2064cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002065## --------- ##
2066## Platform. ##
2067## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002068
2069hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077
2078/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2079/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2080/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002081/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002082/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2083/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2084/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085
drh71eb93e2001-09-28 01:34:43 +00002086_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002087
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002093 $as_echo "PATH: $as_dir"
2094 done
drh8b727472009-01-19 18:18:40 +00002095IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002096
drh71eb93e2001-09-28 01:34:43 +00002097} >&5
2098
a.rottmann84e63352003-03-24 09:42:16 +00002099cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002100
a.rottmann84e63352003-03-24 09:42:16 +00002101
2102## ----------- ##
2103## Core tests. ##
2104## ----------- ##
2105
2106_ACEOF
2107
drh71eb93e2001-09-28 01:34:43 +00002108
2109# Keep a trace of the command line.
2110# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002111# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002112# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002113# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002114ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002115ac_configure_args0=
2116ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002117ac_must_keep_next=false
2118for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002119do
a.rottmann84e63352003-03-24 09:42:16 +00002120 for ac_arg
2121 do
2122 case $ac_arg in
2123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125 | -silent | --silent | --silen | --sile | --sil)
2126 continue ;;
drh8b727472009-01-19 18:18:40 +00002127 *\'*)
2128 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002129 esac
2130 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002131 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002132 2)
drhf922ca42015-05-14 15:39:18 +00002133 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002134 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002135 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002136 else
a.rottmann964dbb12004-02-26 19:47:42 +00002137 case $ac_arg in
2138 *=* | --config-cache | -C | -disable-* | --disable-* \
2139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141 | -with-* | --with-* | -without-* | --without-* | --x)
2142 case "$ac_configure_args0 " in
2143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 esac
2145 ;;
2146 -* ) ac_must_keep_next=true ;;
2147 esac
a.rottmann84e63352003-03-24 09:42:16 +00002148 fi
drhf922ca42015-05-14 15:39:18 +00002149 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002150 ;;
2151 esac
2152 done
drh71eb93e2001-09-28 01:34:43 +00002153done
drhf922ca42015-05-14 15:39:18 +00002154{ ac_configure_args0=; unset ac_configure_args0;}
2155{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002156
2157# When interrupted or exit'd, cleanup temporary files, and complete
2158# config.log. We remove comments because anyway the quotes in there
2159# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002160# WARNING: Use '\'' to represent an apostrophe within the trap.
2161# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002162trap 'exit_status=$?
2163 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002164 {
2165 echo
2166
drhf922ca42015-05-14 15:39:18 +00002167 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002168## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002169## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002170 echo
2171 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002172(
2173 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in #(
2176 *${as_nl}*)
2177 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002180 esac
2181 case $ac_var in #(
2182 _ | IFS | as_nl) ;; #(
2183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002184 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002185 esac ;;
2186 esac
2187 done
drh71eb93e2001-09-28 01:34:43 +00002188 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002189 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002191 sed -n \
drh8b727472009-01-19 18:18:40 +00002192 "s/'\''/'\''\\\\'\'''\''/g;
2193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 ;; #(
drh866108f2008-05-13 00:57:21 +00002195 *)
drh8b727472009-01-19 18:18:40 +00002196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002197 ;;
drh8b727472009-01-19 18:18:40 +00002198 esac |
2199 sort
2200)
a.rottmann84e63352003-03-24 09:42:16 +00002201 echo
2202
drhf922ca42015-05-14 15:39:18 +00002203 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002204## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002205## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002206 echo
2207 for ac_var in $ac_subst_vars
2208 do
drh8b727472009-01-19 18:18:40 +00002209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002214 done | sort
2215 echo
2216
2217 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002218 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002219## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002220## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002221 echo
2222 for ac_var in $ac_subst_files
2223 do
drh8b727472009-01-19 18:18:40 +00002224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002229 done | sort
2230 echo
2231 fi
2232
2233 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002234 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002235## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002236## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002237 echo
drh8b727472009-01-19 18:18:40 +00002238 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002239 echo
2240 fi
2241 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002244 } >&5
drh8b727472009-01-19 18:18:40 +00002245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002247 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002248' 0
drh71eb93e2001-09-28 01:34:43 +00002249for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002255rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002256
drhf922ca42015-05-14 15:39:18 +00002257$as_echo "/* confdefs.h */" > confdefs.h
2258
a.rottmann84e63352003-03-24 09:42:16 +00002259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
a.rottmann84e63352003-03-24 09:42:16 +00002265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
a.rottmann84e63352003-03-24 09:42:16 +00002269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
a.rottmann84e63352003-03-24 09:42:16 +00002273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
dana9f39fd2011-08-12 16:34:42 +00002277cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002279_ACEOF
2280
drhf922ca42015-05-14 15:39:18 +00002281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
a.rottmann84e63352003-03-24 09:42:16 +00002285
drh71eb93e2001-09-28 01:34:43 +00002286# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002291 # We do not want a PATH search for config.site.
2292 case $CONFIG_SITE in #((
2293 -*) ac_site_file1=./$CONFIG_SITE;;
2294 */*) ac_site_file1=$CONFIG_SITE;;
2295 *) ac_site_file1=./$CONFIG_SITE;;
2296 esac
drh8b727472009-01-19 18:18:40 +00002297elif test "x$prefix" != xNONE; then
2298 ac_site_file1=$prefix/share/config.site
2299 ac_site_file2=$prefix/etc/config.site
2300else
2301 ac_site_file1=$ac_default_prefix/share/config.site
2302 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002303fi
drh8b727472009-01-19 18:18:40 +00002304for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305do
2306 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002307 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002309$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002310 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002311 . "$ac_site_file" \
2312 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314as_fn_error $? "failed to load site script $ac_site_file
2315See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002316 fi
2317done
2318
2319if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002320 # Some versions of bash will fail to source /dev/null (special files
2321 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2322 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002324$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002325 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002326 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002328 esac
2329 fi
drh75897232000-05-29 14:26:00 +00002330else
drhf922ca42015-05-14 15:39:18 +00002331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002332$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002333 >$cache_file
2334fi
2335
2336# Check that the precious variables saved in the cache have kept the same
2337# value.
2338ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002339for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002340 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002342 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002344 case $ac_old_set,$ac_new_set in
2345 set,)
drhf922ca42015-05-14 15:39:18 +00002346 { $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 +00002347$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002348 ac_cache_corrupted=: ;;
2349 ,set)
drhf922ca42015-05-14 15:39:18 +00002350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002351$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002352 ac_cache_corrupted=: ;;
2353 ,);;
2354 *)
2355 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002356 # differences in whitespace do not lead to failure.
2357 ac_old_val_w=`echo x $ac_old_val`
2358 ac_new_val_w=`echo x $ac_new_val`
2359 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002361$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362 ac_cache_corrupted=:
2363 else
drhf922ca42015-05-14 15:39:18 +00002364 { $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 +00002365$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366 eval $ac_var=\$ac_old_val
2367 fi
drhf922ca42015-05-14 15:39:18 +00002368 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002369$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002370 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002371$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002372 fi;;
2373 esac
a.rottmann84e63352003-03-24 09:42:16 +00002374 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002375 if test "$ac_new_set" = set; then
2376 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002377 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002378 *) ac_arg=$ac_var=$ac_new_val ;;
2379 esac
2380 case " $ac_configure_args " in
2381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002382 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002383 esac
2384 fi
2385done
2386if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002390$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002391 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002392fi
drhf922ca42015-05-14 15:39:18 +00002393## -------------------- ##
2394## Main body of script. ##
2395## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002396
drh75897232000-05-29 14:26:00 +00002397ac_ext=c
drh75897232000-05-29 14:26:00 +00002398ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002402
a.rottmann84e63352003-03-24 09:42:16 +00002403
2404
drh04446102009-06-15 00:04:06 +00002405sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002406if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002407as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002408 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2409 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002410please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002411fi
2412
drh75897232000-05-29 14:26:00 +00002413#########
drh71eb93e2001-09-28 01:34:43 +00002414# Programs needed
drh75897232000-05-29 14:26:00 +00002415#
mlcreech636a9952008-05-05 22:52:56 +00002416case `pwd` in
2417 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002419$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002420esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002421
mlcreech94984912008-03-04 19:03:08 +00002422
mlcreech636a9952008-05-05 22:52:56 +00002423
vapier6acb2cf2009-01-28 04:46:28 +00002424macro_version='2.2.6'
2425macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002426
mlcreech94984912008-03-04 19:03:08 +00002427
mlcreech94984912008-03-04 19:03:08 +00002428
a.rottmann9bc8b932004-02-29 15:18:31 +00002429
mlcreech636a9952008-05-05 22:52:56 +00002430
2431
2432
2433
2434
2435
2436
2437
2438
2439ltmain="$ac_aux_dir/ltmain.sh"
2440
drh71eb93e2001-09-28 01:34:43 +00002441ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002442for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002443 if test -f "$ac_dir/install-sh"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/install-sh -c"
2446 break
2447 elif test -f "$ac_dir/install.sh"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/install.sh -c"
2450 break
2451 elif test -f "$ac_dir/shtool"; then
2452 ac_aux_dir=$ac_dir
2453 ac_install_sh="$ac_aux_dir/shtool install -c"
2454 break
2455 fi
drh71eb93e2001-09-28 01:34:43 +00002456done
2457if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002458 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002459fi
drh8b727472009-01-19 18:18:40 +00002460
2461# These three variables are undocumented and unsupported,
2462# and are intended to be withdrawn in a future Autoconf release.
2463# They can cause serious problems if a builder's source tree is in a directory
2464# whose full name contains unusual characters.
2465ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2466ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2467ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2468
drh71eb93e2001-09-28 01:34:43 +00002469
2470# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002471$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002472 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002473
drhf922ca42015-05-14 15:39:18 +00002474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002475$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002476if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002477 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002478else
drh8b727472009-01-19 18:18:40 +00002479 ac_build_alias=$build_alias
2480test "x$ac_build_alias" = x &&
2481 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2482test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002483 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002484ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002486
2487fi
drhf922ca42015-05-14 15:39:18 +00002488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002489$as_echo "$ac_cv_build" >&6; }
2490case $ac_cv_build in
2491*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002492*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002493esac
drh71eb93e2001-09-28 01:34:43 +00002494build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002495ac_save_IFS=$IFS; IFS='-'
2496set x $ac_cv_build
2497shift
2498build_cpu=$1
2499build_vendor=$2
2500shift; shift
2501# Remember, the first character of IFS is used to create $*,
2502# except with old shells:
2503build_os=$*
2504IFS=$ac_save_IFS
2505case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002506
a.rottmann84e63352003-03-24 09:42:16 +00002507
drhf922ca42015-05-14 15:39:18 +00002508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002509$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002510if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002511 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002512else
drh8b727472009-01-19 18:18:40 +00002513 if test "x$host_alias" = x; then
2514 ac_cv_host=$ac_cv_build
2515else
2516 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002518fi
drh71eb93e2001-09-28 01:34:43 +00002519
2520fi
drhf922ca42015-05-14 15:39:18 +00002521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002522$as_echo "$ac_cv_host" >&6; }
2523case $ac_cv_host in
2524*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002525*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002526esac
drh71eb93e2001-09-28 01:34:43 +00002527host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002528ac_save_IFS=$IFS; IFS='-'
2529set x $ac_cv_host
2530shift
2531host_cpu=$1
2532host_vendor=$2
2533shift; shift
2534# Remember, the first character of IFS is used to create $*,
2535# except with old shells:
2536host_os=$*
2537IFS=$ac_save_IFS
2538case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002539
a.rottmann84e63352003-03-24 09:42:16 +00002540
drh71eb93e2001-09-28 01:34:43 +00002541ac_ext=c
2542ac_cpp='$CPP $CPPFLAGS'
2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002550$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002551if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002552 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
a.rottmann84e63352003-03-24 09:42:16 +00002557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002566 break 2
2567 fi
2568done
drhf922ca42015-05-14 15:39:18 +00002569 done
drh8b727472009-01-19 18:18:40 +00002570IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002571
2572fi
2573fi
2574CC=$ac_cv_prog_CC
2575if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002577$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002578else
drhf922ca42015-05-14 15:39:18 +00002579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002580$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002581fi
2582
drh8b727472009-01-19 18:18:40 +00002583
drh71eb93e2001-09-28 01:34:43 +00002584fi
2585if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002590$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002591if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002592 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002593else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596else
a.rottmann84e63352003-03-24 09:42:16 +00002597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002604 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002606 break 2
2607 fi
2608done
drhf922ca42015-05-14 15:39:18 +00002609 done
drh8b727472009-01-19 18:18:40 +00002610IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002611
2612fi
2613fi
2614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002617$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002618else
drhf922ca42015-05-14 15:39:18 +00002619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002620$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002621fi
2622
drh8b727472009-01-19 18:18:40 +00002623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627yes:)
drhf922ca42015-05-14 15:39:18 +00002628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002630ac_tool_warned=yes ;;
2631esac
2632 CC=$ac_ct_CC
2633 fi
drh71eb93e2001-09-28 01:34:43 +00002634else
2635 CC="$ac_cv_prog_CC"
2636fi
2637
2638if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002641set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002643$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002644if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002645 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002646else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649else
a.rottmann84e63352003-03-24 09:42:16 +00002650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002657 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002659 break 2
2660 fi
2661done
drhf922ca42015-05-14 15:39:18 +00002662 done
drh8b727472009-01-19 18:18:40 +00002663IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002664
2665fi
2666fi
2667CC=$ac_cv_prog_CC
2668if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002670$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002671else
drhf922ca42015-05-14 15:39:18 +00002672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002673$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002674fi
2675
drh8b727472009-01-19 18:18:40 +00002676
a.rottmann84e63352003-03-24 09:42:16 +00002677 fi
drh71eb93e2001-09-28 01:34:43 +00002678fi
2679if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002683$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002684if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002685 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002686else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689else
2690 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002704 break 2
2705 fi
2706done
drhf922ca42015-05-14 15:39:18 +00002707 done
drh8b727472009-01-19 18:18:40 +00002708IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002709
2710if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
a.rottmann84e63352003-03-24 09:42:16 +00002719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002720 fi
2721fi
2722fi
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002727$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002728else
drhf922ca42015-05-14 15:39:18 +00002729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002730$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002731fi
2732
drh8b727472009-01-19 18:18:40 +00002733
drh71eb93e2001-09-28 01:34:43 +00002734fi
2735if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002737 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002742$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002743if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002744 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
a.rottmann84e63352003-03-24 09:42:16 +00002749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002756 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002758 break 2
2759 fi
2760done
drhf922ca42015-05-14 15:39:18 +00002761 done
drh8b727472009-01-19 18:18:40 +00002762IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002769$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002770else
drhf922ca42015-05-14 15:39:18 +00002771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002772$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002773fi
2774
drh8b727472009-01-19 18:18:40 +00002775
drh71eb93e2001-09-28 01:34:43 +00002776 test -n "$CC" && break
2777 done
2778fi
2779if test -z "$CC"; then
2780 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002781 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002782do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002786$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002787if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002788 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002789else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792else
a.rottmann84e63352003-03-24 09:42:16 +00002793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794for as_dir in $PATH
2795do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002800 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002802 break 2
2803 fi
2804done
drhf922ca42015-05-14 15:39:18 +00002805 done
drh8b727472009-01-19 18:18:40 +00002806IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002807
2808fi
2809fi
2810ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002813$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002814else
drhf922ca42015-05-14 15:39:18 +00002815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002816$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002817fi
2818
drh8b727472009-01-19 18:18:40 +00002819
drh71eb93e2001-09-28 01:34:43 +00002820 test -n "$ac_ct_CC" && break
2821done
2822
drh8b727472009-01-19 18:18:40 +00002823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827yes:)
drhf922ca42015-05-14 15:39:18 +00002828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002830ac_tool_warned=yes ;;
2831esac
2832 CC=$ac_ct_CC
2833 fi
drh71eb93e2001-09-28 01:34:43 +00002834fi
2835
2836fi
2837
a.rottmann84e63352003-03-24 09:42:16 +00002838
drhf922ca42015-05-14 15:39:18 +00002839test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841as_fn_error $? "no acceptable C compiler found in \$PATH
2842See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002843
2844# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002845$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002846set X $ac_compile
2847ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002848for ac_option in --version -v -V -qversion; do
2849 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002850case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
drhf922ca42015-05-14 15:39:18 +00002854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855$as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002857 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002858 if test -s conftest.err; then
2859 sed '10a\
2860... rest of stderr output deleted ...
2861 10q' conftest.err >conftest.er1
2862 cat conftest.er1 >&5
2863 fi
2864 rm -f conftest.er1 conftest.err
2865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2866 test $ac_status = 0; }
2867done
drh71eb93e2001-09-28 01:34:43 +00002868
drhf922ca42015-05-14 15:39:18 +00002869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002870/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002871
2872int
2873main ()
2874{
2875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002881ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002882# Try to create an executable without -o first, disregard a.out.
2883# It will help us diagnose broken compilers, and finding out an intuition
2884# of exeext.
drhf922ca42015-05-14 15:39:18 +00002885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2886$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002887ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002888
drh8b727472009-01-19 18:18:40 +00002889# The possible output files:
2890ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2891
2892ac_rmfiles=
2893for ac_file in $ac_files
2894do
2895 case $ac_file in
2896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2897 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2898 esac
2899done
2900rm -f $ac_rmfiles
2901
drhf922ca42015-05-14 15:39:18 +00002902if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
drhf922ca42015-05-14 15:39:18 +00002907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2908$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002909 (eval "$ac_link_default") 2>&5
2910 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2912 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002913 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2914# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2915# in a Makefile. We should not override ac_cv_exeext if it was cached,
2916# so that the user can short-circuit this test for compilers unknown to
2917# Autoconf.
2918for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002919do
2920 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002921 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002923 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002924 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002925 # We found the default executable, but exeext='' is most
2926 # certainly right.
2927 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002928 *.* )
drhf922ca42015-05-14 15:39:18 +00002929 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002930 then :; else
2931 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2932 fi
2933 # We set ac_cv_exeext here because the later test for it is not
2934 # safe: cross compilers may not add the suffix if given an `-o'
2935 # argument, so we may need to know it at that point already.
2936 # Even if this section looks crufty: it has the advantage of
2937 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002938 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002939 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002940 break;;
drh71eb93e2001-09-28 01:34:43 +00002941 esac
2942done
drh8b727472009-01-19 18:18:40 +00002943test "$ac_cv_exeext" = no && ac_cv_exeext=
2944
drh71eb93e2001-09-28 01:34:43 +00002945else
drh8b727472009-01-19 18:18:40 +00002946 ac_file=''
2947fi
drhf922ca42015-05-14 15:39:18 +00002948if test -z "$ac_file"; then :
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950$as_echo "no" >&6; }
2951$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002952sed 's/^/| /' conftest.$ac_ext >&5
2953
drhf922ca42015-05-14 15:39:18 +00002954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2956as_fn_error 77 "C compiler cannot create executables
2957See \`config.log' for more details" "$LINENO" 5; }
2958else
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002960$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2963$as_echo_n "checking for C compiler default output file name... " >&6; }
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2965$as_echo "$ac_file" >&6; }
2966ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002967
drh8b727472009-01-19 18:18:40 +00002968rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002969ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002971$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002972if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
drhf922ca42015-05-14 15:39:18 +00002977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002979 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002980 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002983 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2984# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2985# work properly (i.e., refer to `conftest.exe'), while it won't with
2986# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002987for ac_file in conftest.exe conftest conftest.*; do
2988 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002989 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002992 break;;
drh71eb93e2001-09-28 01:34:43 +00002993 * ) break;;
2994 esac
2995done
2996else
drhf922ca42015-05-14 15:39:18 +00002997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2999as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3000See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003001fi
drhf922ca42015-05-14 15:39:18 +00003002rm -f conftest conftest$ac_cv_exeext
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003004$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003005
3006rm -f conftest.$ac_ext
3007EXEEXT=$ac_cv_exeext
3008ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010/* end confdefs.h. */
3011#include <stdio.h>
3012int
3013main ()
3014{
3015FILE *f = fopen ("conftest.out", "w");
3016 return ferror (f) || fclose (f) != 0;
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022ac_clean_files="$ac_clean_files conftest.out"
3023# Check that the compiler produces executables we can run. If not, either
3024# the compiler is broken, or we cross compile.
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3026$as_echo_n "checking whether we are cross compiling... " >&6; }
3027if test "$cross_compiling" != yes; then
3028 { { ac_try="$ac_link"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034$as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_link") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }
3039 if { ac_try='./conftest$ac_cv_exeext'
3040 { { case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_try") 2>&5
3047 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; }; then
3050 cross_compiling=no
3051 else
3052 if test "$cross_compiling" = maybe; then
3053 cross_compiling=yes
3054 else
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057as_fn_error $? "cannot run C compiled programs.
3058If you meant to cross compile, use \`--host'.
3059See \`config.log' for more details" "$LINENO" 5; }
3060 fi
3061 fi
3062fi
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3064$as_echo "$cross_compiling" >&6; }
3065
3066rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3067ac_clean_files=$ac_clean_files_save
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003069$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003070if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003071 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003072else
drhf922ca42015-05-14 15:39:18 +00003073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003074/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003075
3076int
3077main ()
3078{
3079
3080 ;
3081 return 0;
3082}
3083_ACEOF
3084rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003085if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
drhf922ca42015-05-14 15:39:18 +00003090eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3091$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003092 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003093 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003096 for ac_file in conftest.o conftest.obj conftest.*; do
3097 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003098 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003100 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3101 break;;
3102 esac
3103done
3104else
drh8b727472009-01-19 18:18:40 +00003105 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003106sed 's/^/| /' conftest.$ac_ext >&5
3107
drhf922ca42015-05-14 15:39:18 +00003108{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110as_fn_error $? "cannot compute suffix of object files: cannot compile
3111See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003112fi
drh71eb93e2001-09-28 01:34:43 +00003113rm -f conftest.$ac_cv_objext conftest.$ac_ext
3114fi
drhf922ca42015-05-14 15:39:18 +00003115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003116$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003117OBJEXT=$ac_cv_objext
3118ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003120$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003121if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003122 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003123else
drhf922ca42015-05-14 15:39:18 +00003124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003125/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003126
3127int
3128main ()
3129{
3130#ifndef __GNUC__
3131 choke me
3132#endif
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
drhf922ca42015-05-14 15:39:18 +00003138if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003139 ac_compiler_gnu=yes
3140else
drhf922ca42015-05-14 15:39:18 +00003141 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003142fi
drh8b727472009-01-19 18:18:40 +00003143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003144ac_cv_c_compiler_gnu=$ac_compiler_gnu
3145
3146fi
drhf922ca42015-05-14 15:39:18 +00003147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003148$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3149if test $ac_compiler_gnu = yes; then
3150 GCC=yes
3151else
3152 GCC=
3153fi
drh71eb93e2001-09-28 01:34:43 +00003154ac_test_CFLAGS=${CFLAGS+set}
3155ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003157$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003158if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003159 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003160else
drh8b727472009-01-19 18:18:40 +00003161 ac_save_c_werror_flag=$ac_c_werror_flag
3162 ac_c_werror_flag=yes
3163 ac_cv_prog_cc_g=no
3164 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003166/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
drhf922ca42015-05-14 15:39:18 +00003176if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003177 ac_cv_prog_cc_g=yes
3178else
drhf922ca42015-05-14 15:39:18 +00003179 CFLAGS=""
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
drhf922ca42015-05-14 15:39:18 +00003191if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003192
drhf922ca42015-05-14 15:39:18 +00003193else
3194 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003195 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003197/* end confdefs.h. */
3198
3199int
3200main ()
3201{
3202
3203 ;
3204 return 0;
3205}
3206_ACEOF
drhf922ca42015-05-14 15:39:18 +00003207if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003208 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003209fi
drh8b727472009-01-19 18:18:40 +00003210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003211fi
drh8b727472009-01-19 18:18:40 +00003212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213fi
drh8b727472009-01-19 18:18:40 +00003214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216fi
drhf922ca42015-05-14 15:39:18 +00003217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003218$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003219if test "$ac_test_CFLAGS" = set; then
3220 CFLAGS=$ac_save_CFLAGS
3221elif test $ac_cv_prog_cc_g = yes; then
3222 if test "$GCC" = yes; then
3223 CFLAGS="-g -O2"
3224 else
3225 CFLAGS="-g"
3226 fi
3227else
3228 if test "$GCC" = yes; then
3229 CFLAGS="-O2"
3230 else
3231 CFLAGS=
3232 fi
3233fi
drhf922ca42015-05-14 15:39:18 +00003234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003235$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003236if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003237 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003238else
drh8b727472009-01-19 18:18:40 +00003239 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003240ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003242/* end confdefs.h. */
3243#include <stdarg.h>
3244#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003245struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003246/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3247struct buf { int x; };
3248FILE * (*rcsopen) (struct buf *, struct stat *, int);
3249static char *e (p, i)
3250 char **p;
3251 int i;
3252{
3253 return p[i];
3254}
3255static char *f (char * (*g) (char **, int), char **p, ...)
3256{
3257 char *s;
3258 va_list v;
3259 va_start (v,p);
3260 s = g (p, va_arg (v,int));
3261 va_end (v);
3262 return s;
3263}
a.rottmann964dbb12004-02-26 19:47:42 +00003264
3265/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3266 function prototypes and stuff, but not '\xHH' hex character constants.
3267 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003268 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3270 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003271 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003272int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3273
drh8b727472009-01-19 18:18:40 +00003274/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3275 inside strings and character constants. */
3276#define FOO(x) 'x'
3277int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3278
a.rottmann84e63352003-03-24 09:42:16 +00003279int test (int i, double x);
3280struct s1 {int (*f) (int a);};
3281struct s2 {int (*f) (double a);};
3282int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3283int argc;
3284char **argv;
3285int
3286main ()
3287{
3288return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3289 ;
3290 return 0;
3291}
3292_ACEOF
drh8b727472009-01-19 18:18:40 +00003293for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003295do
3296 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003297 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003298 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003299fi
drh8b727472009-01-19 18:18:40 +00003300rm -f core conftest.err conftest.$ac_objext
3301 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003302done
drh8b727472009-01-19 18:18:40 +00003303rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003304CC=$ac_save_CC
3305
3306fi
drh8b727472009-01-19 18:18:40 +00003307# AC_CACHE_VAL
3308case "x$ac_cv_prog_cc_c89" in
3309 x)
drhf922ca42015-05-14 15:39:18 +00003310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003311$as_echo "none needed" >&6; } ;;
3312 xno)
drhf922ca42015-05-14 15:39:18 +00003313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003314$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003315 *)
drh8b727472009-01-19 18:18:40 +00003316 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003318$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003319esac
drhf922ca42015-05-14 15:39:18 +00003320if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003321
drhf922ca42015-05-14 15:39:18 +00003322fi
a.rottmann84e63352003-03-24 09:42:16 +00003323
drh71eb93e2001-09-28 01:34:43 +00003324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
drhf922ca42015-05-14 15:39:18 +00003330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003331$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003332if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003333 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003334else
drh8b727472009-01-19 18:18:40 +00003335 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3336 for ac_i in 1 2 3 4 5 6 7; do
3337 ac_script="$ac_script$as_nl$ac_script"
3338 done
3339 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003340 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003341 if test -z "$SED"; then
3342 ac_path_SED_found=false
3343 # Loop through the user's path and test for each of PROGNAME-LIST
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003345for as_dir in $PATH
3346do
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003349 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003350 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003351 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003352 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003353# Check for GNU ac_path_SED and select it if it is found.
3354 # Check for GNU $ac_path_SED
3355case `"$ac_path_SED" --version 2>&1` in
3356*GNU*)
3357 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3358*)
3359 ac_count=0
3360 $as_echo_n 0123456789 >"conftest.in"
3361 while :
3362 do
3363 cat "conftest.in" "conftest.in" >"conftest.tmp"
3364 mv "conftest.tmp" "conftest.in"
3365 cp "conftest.in" "conftest.nl"
3366 $as_echo '' >> "conftest.nl"
3367 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003369 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003370 if test $ac_count -gt ${ac_path_SED_max-0}; then
3371 # Best one so far, save it but keep looking for a better one
3372 ac_cv_path_SED="$ac_path_SED"
3373 ac_path_SED_max=$ac_count
3374 fi
3375 # 10*(2^10) chars as input seems more than enough
3376 test $ac_count -gt 10 && break
3377 done
3378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3379esac
3380
3381 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003382 done
3383 done
drhf922ca42015-05-14 15:39:18 +00003384 done
mlcreech636a9952008-05-05 22:52:56 +00003385IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003386 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003387 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003388 fi
drh8b727472009-01-19 18:18:40 +00003389else
3390 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003391fi
drh866108f2008-05-13 00:57:21 +00003392
drh8b727472009-01-19 18:18:40 +00003393fi
drhf922ca42015-05-14 15:39:18 +00003394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003395$as_echo "$ac_cv_path_SED" >&6; }
3396 SED="$ac_cv_path_SED"
3397 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003398
mlcreech636a9952008-05-05 22:52:56 +00003399test -z "$SED" && SED=sed
3400Xsed="$SED -e 1s/^X//"
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
drhf922ca42015-05-14 15:39:18 +00003412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003413$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003414if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003415 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003416else
drh8b727472009-01-19 18:18:40 +00003417 if test -z "$GREP"; then
3418 ac_path_GREP_found=false
3419 # Loop through the user's path and test for each of PROGNAME-LIST
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3422do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003425 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003428 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003429# Check for GNU ac_path_GREP and select it if it is found.
3430 # Check for GNU $ac_path_GREP
3431case `"$ac_path_GREP" --version 2>&1` in
3432*GNU*)
3433 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3434*)
3435 ac_count=0
3436 $as_echo_n 0123456789 >"conftest.in"
3437 while :
3438 do
3439 cat "conftest.in" "conftest.in" >"conftest.tmp"
3440 mv "conftest.tmp" "conftest.in"
3441 cp "conftest.in" "conftest.nl"
3442 $as_echo 'GREP' >> "conftest.nl"
3443 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003445 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003446 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3447 # Best one so far, save it but keep looking for a better one
3448 ac_cv_path_GREP="$ac_path_GREP"
3449 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003450 fi
drh8b727472009-01-19 18:18:40 +00003451 # 10*(2^10) chars as input seems more than enough
3452 test $ac_count -gt 10 && break
3453 done
3454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3455esac
3456
3457 $ac_path_GREP_found && break 3
3458 done
3459 done
drhf922ca42015-05-14 15:39:18 +00003460 done
drh8b727472009-01-19 18:18:40 +00003461IFS=$as_save_IFS
3462 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003463 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003464 fi
3465else
3466 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003467fi
drh8b727472009-01-19 18:18:40 +00003468
3469fi
drhf922ca42015-05-14 15:39:18 +00003470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003471$as_echo "$ac_cv_path_GREP" >&6; }
3472 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003473
3474
drhf922ca42015-05-14 15:39:18 +00003475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003476$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003477if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003478 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003479else
drh8b727472009-01-19 18:18:40 +00003480 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3481 then ac_cv_path_EGREP="$GREP -E"
3482 else
3483 if test -z "$EGREP"; then
3484 ac_path_EGREP_found=false
3485 # Loop through the user's path and test for each of PROGNAME-LIST
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3488do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003491 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003494 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003495# Check for GNU ac_path_EGREP and select it if it is found.
3496 # Check for GNU $ac_path_EGREP
3497case `"$ac_path_EGREP" --version 2>&1` in
3498*GNU*)
3499 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3500*)
3501 ac_count=0
3502 $as_echo_n 0123456789 >"conftest.in"
3503 while :
3504 do
3505 cat "conftest.in" "conftest.in" >"conftest.tmp"
3506 mv "conftest.tmp" "conftest.in"
3507 cp "conftest.in" "conftest.nl"
3508 $as_echo 'EGREP' >> "conftest.nl"
3509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003511 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3513 # Best one so far, save it but keep looking for a better one
3514 ac_cv_path_EGREP="$ac_path_EGREP"
3515 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003516 fi
drh8b727472009-01-19 18:18:40 +00003517 # 10*(2^10) chars as input seems more than enough
3518 test $ac_count -gt 10 && break
3519 done
3520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3521esac
3522
3523 $ac_path_EGREP_found && break 3
3524 done
3525 done
drhf922ca42015-05-14 15:39:18 +00003526 done
drh8b727472009-01-19 18:18:40 +00003527IFS=$as_save_IFS
3528 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003529 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003530 fi
3531else
3532 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003533fi
drh8b727472009-01-19 18:18:40 +00003534
3535 fi
3536fi
drhf922ca42015-05-14 15:39:18 +00003537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003538$as_echo "$ac_cv_path_EGREP" >&6; }
3539 EGREP="$ac_cv_path_EGREP"
3540
3541
drhf922ca42015-05-14 15:39:18 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003543$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003544if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003545 $as_echo_n "(cached) " >&6
3546else
3547 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3548 then ac_cv_path_FGREP="$GREP -F"
3549 else
3550 if test -z "$FGREP"; then
3551 ac_path_FGREP_found=false
3552 # Loop through the user's path and test for each of PROGNAME-LIST
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3555do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003558 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003561 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003562# Check for GNU ac_path_FGREP and select it if it is found.
3563 # Check for GNU $ac_path_FGREP
3564case `"$ac_path_FGREP" --version 2>&1` in
3565*GNU*)
3566 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3567*)
3568 ac_count=0
3569 $as_echo_n 0123456789 >"conftest.in"
3570 while :
3571 do
3572 cat "conftest.in" "conftest.in" >"conftest.tmp"
3573 mv "conftest.tmp" "conftest.in"
3574 cp "conftest.in" "conftest.nl"
3575 $as_echo 'FGREP' >> "conftest.nl"
3576 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003578 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003579 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3580 # Best one so far, save it but keep looking for a better one
3581 ac_cv_path_FGREP="$ac_path_FGREP"
3582 ac_path_FGREP_max=$ac_count
3583 fi
3584 # 10*(2^10) chars as input seems more than enough
3585 test $ac_count -gt 10 && break
3586 done
3587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3588esac
3589
3590 $ac_path_FGREP_found && break 3
3591 done
3592 done
drhf922ca42015-05-14 15:39:18 +00003593 done
drh8b727472009-01-19 18:18:40 +00003594IFS=$as_save_IFS
3595 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003596 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003597 fi
3598else
3599 ac_cv_path_FGREP=$FGREP
3600fi
3601
3602 fi
3603fi
drhf922ca42015-05-14 15:39:18 +00003604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003605$as_echo "$ac_cv_path_FGREP" >&6; }
3606 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003607
3608
3609test -z "$GREP" && GREP=grep
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
a.rottmann9bc8b932004-02-29 15:18:31 +00003626
3627
a.rottmann84e63352003-03-24 09:42:16 +00003628
drh8b727472009-01-19 18:18:40 +00003629# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003630if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003631 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003632else
3633 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003634fi
3635
drh71eb93e2001-09-28 01:34:43 +00003636ac_prog=ld
3637if test "$GCC" = yes; then
3638 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003640$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003641 case $host in
3642 *-*-mingw*)
3643 # gcc leaves a trailing carriage return which upsets mingw
3644 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3645 *)
3646 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3647 esac
3648 case $ac_prog in
3649 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003650 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003651 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003652 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003653 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3654 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3655 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003656 done
3657 test -z "$LD" && LD="$ac_prog"
3658 ;;
3659 "")
3660 # If it fails, then pretend we aren't using GCC.
3661 ac_prog=ld
3662 ;;
3663 *)
3664 # If it is relative, then search for the first ld in PATH.
3665 with_gnu_ld=unknown
3666 ;;
3667 esac
3668elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003670$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003671else
drhf922ca42015-05-14 15:39:18 +00003672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003673$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003674fi
drhf922ca42015-05-14 15:39:18 +00003675if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003676 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003677else
3678 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003680 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003681 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003682 test -z "$ac_dir" && ac_dir=.
3683 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3684 lt_cv_path_LD="$ac_dir/$ac_prog"
3685 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003686 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003687 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003688 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3689 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003690 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003691 ;;
3692 *)
drh71eb93e2001-09-28 01:34:43 +00003693 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003694 ;;
3695 esac
drh71eb93e2001-09-28 01:34:43 +00003696 fi
3697 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003698 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003699else
3700 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3701fi
3702fi
3703
3704LD="$lt_cv_path_LD"
3705if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003707$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003708else
drhf922ca42015-05-14 15:39:18 +00003709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003710$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003711fi
drhf922ca42015-05-14 15:39:18 +00003712test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003714$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003715if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003716 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003717else
vapier7f19c022007-02-17 14:46:31 +00003718 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003719case `$LD -v 2>&1 </dev/null` in
3720*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003721 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003722 ;;
3723*)
drh71eb93e2001-09-28 01:34:43 +00003724 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003725 ;;
3726esac
drh71eb93e2001-09-28 01:34:43 +00003727fi
drhf922ca42015-05-14 15:39:18 +00003728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003729$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003730with_gnu_ld=$lt_cv_prog_gnu_ld
3731
a.rottmann84e63352003-03-24 09:42:16 +00003732
drh71eb93e2001-09-28 01:34:43 +00003733
mlcreech636a9952008-05-05 22:52:56 +00003734
3735
3736
3737
3738
3739
drhf922ca42015-05-14 15:39:18 +00003740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003741$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003742if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003743 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003744else
3745 if test -n "$NM"; then
3746 # Let the user override the test.
3747 lt_cv_path_NM="$NM"
3748else
vapier7f19c022007-02-17 14:46:31 +00003749 lt_nm_to_check="${ac_tool_prefix}nm"
3750 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3751 lt_nm_to_check="$lt_nm_to_check nm"
3752 fi
3753 for lt_tmp_nm in $lt_nm_to_check; do
3754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3755 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3756 IFS="$lt_save_ifs"
3757 test -z "$ac_dir" && ac_dir=.
3758 tmp_nm="$ac_dir/$lt_tmp_nm"
3759 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3760 # Check to see if the nm accepts a BSD-compat flag.
3761 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3762 # nm: unknown option "B" ignored
3763 # Tru64's nm complains that /dev/null is an invalid object file
3764 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3765 */dev/null* | *'Invalid file or object type'*)
3766 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003767 break
3768 ;;
3769 *)
vapier7f19c022007-02-17 14:46:31 +00003770 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3771 */dev/null*)
3772 lt_cv_path_NM="$tmp_nm -p"
3773 break
3774 ;;
3775 *)
3776 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3777 continue # so that we can try to find one that supports BSD flags
3778 ;;
3779 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003780 ;;
3781 esac
vapier7f19c022007-02-17 14:46:31 +00003782 fi
3783 done
3784 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003785 done
mlcreech636a9952008-05-05 22:52:56 +00003786 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003787fi
3788fi
drhf922ca42015-05-14 15:39:18 +00003789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003790$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003791if test "$lt_cv_path_NM" != "no"; then
3792 NM="$lt_cv_path_NM"
3793else
3794 # Didn't find any BSD compatible name lister, look for dumpbin.
3795 if test -n "$ac_tool_prefix"; then
3796 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3797 do
3798 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003801$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003802if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003803 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003804else
3805 if test -n "$DUMPBIN"; then
3806 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003815 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003817 break 2
3818 fi
3819done
drhf922ca42015-05-14 15:39:18 +00003820 done
drh8b727472009-01-19 18:18:40 +00003821IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003822
mlcreech636a9952008-05-05 22:52:56 +00003823fi
3824fi
3825DUMPBIN=$ac_cv_prog_DUMPBIN
3826if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003828$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003829else
drhf922ca42015-05-14 15:39:18 +00003830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003831$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003832fi
3833
drh8b727472009-01-19 18:18:40 +00003834
mlcreech636a9952008-05-05 22:52:56 +00003835 test -n "$DUMPBIN" && break
3836 done
3837fi
3838if test -z "$DUMPBIN"; then
3839 ac_ct_DUMPBIN=$DUMPBIN
3840 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3841do
3842 # Extract the first word of "$ac_prog", so it can be a program name with args.
3843set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003845$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003846if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003847 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003848else
3849 if test -n "$ac_ct_DUMPBIN"; then
3850 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003859 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003861 break 2
3862 fi
3863done
drhf922ca42015-05-14 15:39:18 +00003864 done
drh8b727472009-01-19 18:18:40 +00003865IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003866
3867fi
3868fi
3869ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3870if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003872$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003873else
drhf922ca42015-05-14 15:39:18 +00003874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003875$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003876fi
3877
drh8b727472009-01-19 18:18:40 +00003878
mlcreech636a9952008-05-05 22:52:56 +00003879 test -n "$ac_ct_DUMPBIN" && break
3880done
3881
drh8b727472009-01-19 18:18:40 +00003882 if test "x$ac_ct_DUMPBIN" = x; then
3883 DUMPBIN=":"
3884 else
3885 case $cross_compiling:$ac_tool_warned in
3886yes:)
drhf922ca42015-05-14 15:39:18 +00003887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003889ac_tool_warned=yes ;;
3890esac
3891 DUMPBIN=$ac_ct_DUMPBIN
3892 fi
mlcreech636a9952008-05-05 22:52:56 +00003893fi
3894
3895
3896 if test "$DUMPBIN" != ":"; then
3897 NM="$DUMPBIN"
3898 fi
3899fi
3900test -z "$NM" && NM=nm
3901
3902
3903
3904
3905
3906
drhf922ca42015-05-14 15:39:18 +00003907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003908$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003909if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003910 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003911else
3912 lt_cv_nm_interface="BSD nm"
3913 echo "int some_variable = 0;" > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00003914 (eval echo "\"\$as_me:3914: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003915 (eval "$ac_compile" 2>conftest.err)
3916 cat conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00003917 (eval echo "\"\$as_me:3917: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003918 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3919 cat conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00003920 (eval echo "\"\$as_me:3920: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003921 cat conftest.out >&5
3922 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3923 lt_cv_nm_interface="MS dumpbin"
3924 fi
3925 rm -f conftest*
3926fi
drhf922ca42015-05-14 15:39:18 +00003927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003928$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003929
drhf922ca42015-05-14 15:39:18 +00003930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003931$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003932LN_S=$as_ln_s
3933if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003935$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003936else
drhf922ca42015-05-14 15:39:18 +00003937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003938$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003939fi
3940
mlcreech636a9952008-05-05 22:52:56 +00003941# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003943$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003944if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003945 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003946else
3947 i=0
3948 teststring="ABCD"
3949
3950 case $build_os in
3951 msdosdjgpp*)
3952 # On DJGPP, this test can blow up pretty badly due to problems in libc
3953 # (any single argument exceeding 2000 bytes causes a buffer overrun
3954 # during glob expansion). Even if it were fixed, the result of this
3955 # check would be larger than it should be.
3956 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3957 ;;
3958
3959 gnu*)
3960 # Under GNU Hurd, this test is not required because there is
3961 # no limit to the length of command line arguments.
3962 # Libtool will interpret -1 as no limit whatsoever
3963 lt_cv_sys_max_cmd_len=-1;
3964 ;;
3965
vapier6acb2cf2009-01-28 04:46:28 +00003966 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003967 # On Win9x/ME, this test blows up -- it succeeds, but takes
3968 # about 5 minutes as the teststring grows exponentially.
3969 # Worse, since 9x/ME are not pre-emptively multitasking,
3970 # you end up with a "frozen" computer, even though with patience
3971 # the test eventually succeeds (with a max line length of 256k).
3972 # Instead, let's just punt: use the minimum linelength reported by
3973 # all of the supported platforms: 8192 (on NT/2K/XP).
3974 lt_cv_sys_max_cmd_len=8192;
3975 ;;
3976
3977 amigaos*)
3978 # On AmigaOS with pdksh, this test takes hours, literally.
3979 # So we just punt and use a minimum line length of 8192.
3980 lt_cv_sys_max_cmd_len=8192;
3981 ;;
3982
3983 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3984 # This has been around since 386BSD, at least. Likely further.
3985 if test -x /sbin/sysctl; then
3986 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3987 elif test -x /usr/sbin/sysctl; then
3988 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3989 else
3990 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3991 fi
3992 # And add a safety zone
3993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3995 ;;
3996
3997 interix*)
3998 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3999 lt_cv_sys_max_cmd_len=196608
4000 ;;
4001
4002 osf*)
4003 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4004 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4005 # nice to cause kernel panics so lets avoid the loop below.
4006 # First set a reasonable default.
4007 lt_cv_sys_max_cmd_len=16384
4008 #
4009 if test -x /sbin/sysconfig; then
4010 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4011 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4012 esac
4013 fi
4014 ;;
4015 sco3.2v5*)
4016 lt_cv_sys_max_cmd_len=102400
4017 ;;
4018 sysv5* | sco5v6* | sysv4.2uw2*)
4019 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4020 if test -n "$kargmax"; then
4021 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4022 else
4023 lt_cv_sys_max_cmd_len=32768
4024 fi
4025 ;;
4026 *)
4027 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4028 if test -n "$lt_cv_sys_max_cmd_len"; then
4029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4031 else
4032 # Make teststring a little bigger before we do anything with it.
4033 # a 1K string should be a reasonable start.
4034 for i in 1 2 3 4 5 6 7 8 ; do
4035 teststring=$teststring$teststring
4036 done
4037 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4038 # If test is not a shell built-in, we'll probably end up computing a
4039 # maximum length that is only half of the actual maximum length, but
4040 # we can't tell.
4041 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4042 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4043 test $i != 17 # 1/2 MB should be enough
4044 do
4045 i=`expr $i + 1`
4046 teststring=$teststring$teststring
4047 done
4048 # Only check the string length outside the loop.
4049 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4050 teststring=
4051 # Add a significant safety factor because C++ compilers can tack on
4052 # massive amounts of additional arguments before passing them to the
4053 # linker. It appears as though 1/2 is a usable value.
4054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4055 fi
4056 ;;
4057 esac
4058
4059fi
4060
4061if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004063$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004064else
drhf922ca42015-05-14 15:39:18 +00004065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004066$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004067fi
4068max_cmd_len=$lt_cv_sys_max_cmd_len
4069
4070
4071
4072
4073
4074
4075: ${CP="cp -f"}
4076: ${MV="mv -f"}
4077: ${RM="rm -f"}
4078
drhf922ca42015-05-14 15:39:18 +00004079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004080$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004081# Try some XSI features
4082xsi_shell=no
4083( _lt_dummy="a/b/c"
4084 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4085 = c,a/b,, \
4086 && eval 'test $(( 1 + 1 )) -eq 2 \
4087 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4088 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004090$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004091
4092
drhf922ca42015-05-14 15:39:18 +00004093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004094$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004095lt_shell_append=no
4096( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4097 >/dev/null 2>&1 \
4098 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004100$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004101
4102
4103if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4104 lt_unset=unset
4105else
4106 lt_unset=false
4107fi
4108
4109
4110
4111
4112
4113# test EBCDIC or ASCII
4114case `echo X|tr X '\101'` in
4115 A) # ASCII based system
4116 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4117 lt_SP2NL='tr \040 \012'
4118 lt_NL2SP='tr \015\012 \040\040'
4119 ;;
4120 *) # EBCDIC based system
4121 lt_SP2NL='tr \100 \n'
4122 lt_NL2SP='tr \r\n \100\100'
4123 ;;
4124esac
4125
4126
4127
4128
4129
4130
4131
4132
4133
drhf922ca42015-05-14 15:39:18 +00004134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004135$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004136if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004137 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004138else
4139 lt_cv_ld_reload_flag='-r'
4140fi
drhf922ca42015-05-14 15:39:18 +00004141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004142$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004143reload_flag=$lt_cv_ld_reload_flag
4144case $reload_flag in
4145"" | " "*) ;;
4146*) reload_flag=" $reload_flag" ;;
4147esac
4148reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149case $host_os in
4150 darwin*)
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153 else
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155 fi
4156 ;;
4157esac
4158
4159
4160
4161
4162
4163
4164
4165
4166
vapier6acb2cf2009-01-28 04:46:28 +00004167if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4169set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004171$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004172if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004173 $as_echo_n "(cached) " >&6
4174else
4175 if test -n "$OBJDUMP"; then
4176 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4177else
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004185 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004187 break 2
4188 fi
4189done
drhf922ca42015-05-14 15:39:18 +00004190 done
vapier6acb2cf2009-01-28 04:46:28 +00004191IFS=$as_save_IFS
4192
4193fi
4194fi
4195OBJDUMP=$ac_cv_prog_OBJDUMP
4196if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004198$as_echo "$OBJDUMP" >&6; }
4199else
drhf922ca42015-05-14 15:39:18 +00004200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004201$as_echo "no" >&6; }
4202fi
4203
4204
4205fi
4206if test -z "$ac_cv_prog_OBJDUMP"; then
4207 ac_ct_OBJDUMP=$OBJDUMP
4208 # Extract the first word of "objdump", so it can be a program name with args.
4209set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004211$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004212if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004213 $as_echo_n "(cached) " >&6
4214else
4215 if test -n "$ac_ct_OBJDUMP"; then
4216 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004225 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004227 break 2
4228 fi
4229done
drhf922ca42015-05-14 15:39:18 +00004230 done
vapier6acb2cf2009-01-28 04:46:28 +00004231IFS=$as_save_IFS
4232
4233fi
4234fi
4235ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4236if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004238$as_echo "$ac_ct_OBJDUMP" >&6; }
4239else
drhf922ca42015-05-14 15:39:18 +00004240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004241$as_echo "no" >&6; }
4242fi
4243
4244 if test "x$ac_ct_OBJDUMP" = x; then
4245 OBJDUMP="false"
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248yes:)
drhf922ca42015-05-14 15:39:18 +00004249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004251ac_tool_warned=yes ;;
4252esac
4253 OBJDUMP=$ac_ct_OBJDUMP
4254 fi
4255else
4256 OBJDUMP="$ac_cv_prog_OBJDUMP"
4257fi
4258
4259test -z "$OBJDUMP" && OBJDUMP=objdump
4260
4261
4262
4263
4264
4265
4266
4267
mlcreech636a9952008-05-05 22:52:56 +00004268
drhf922ca42015-05-14 15:39:18 +00004269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004270$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004271if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004272 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004273else
4274 lt_cv_file_magic_cmd='$MAGIC_CMD'
4275lt_cv_file_magic_test_file=
4276lt_cv_deplibs_check_method='unknown'
4277# Need to set the preceding variable on all platforms that support
4278# interlibrary dependencies.
4279# 'none' -- dependencies not supported.
4280# `unknown' -- same as none, but documents that we really don't know.
4281# 'pass_all' -- all dependencies passed with no checks.
4282# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004283# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004284# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004285# If you have `file' or equivalent on your system and you're not sure
4286# whether `pass_all' will *always* work, you probably want this one.
4287
4288case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004289aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004290 lt_cv_deplibs_check_method=pass_all
4291 ;;
4292
4293beos*)
4294 lt_cv_deplibs_check_method=pass_all
4295 ;;
4296
vapier7f19c022007-02-17 14:46:31 +00004297bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004298 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4299 lt_cv_file_magic_cmd='/usr/bin/file -L'
4300 lt_cv_file_magic_test_file=/shlib/libc.so
4301 ;;
4302
a.rottmann9bc8b932004-02-29 15:18:31 +00004303cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004304 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004306 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004307 ;;
4308
4309mingw* | pw32*)
4310 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004311 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4312 # unless we find 'file', for example because we are cross-compiling.
4313 if ( file / ) >/dev/null 2>&1; then
4314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4315 lt_cv_file_magic_cmd='func_win32_libid'
4316 else
4317 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4318 lt_cv_file_magic_cmd='$OBJDUMP -f'
4319 fi
drh71eb93e2001-09-28 01:34:43 +00004320 ;;
4321
vapier6acb2cf2009-01-28 04:46:28 +00004322cegcc)
4323 # use the weaker test based on 'objdump'. See mingw*.
4324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4325 lt_cv_file_magic_cmd='$OBJDUMP -f'
4326 ;;
4327
drh71eb93e2001-09-28 01:34:43 +00004328darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004329 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004330 ;;
4331
mlcreech636a9952008-05-05 22:52:56 +00004332freebsd* | dragonfly*)
4333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004334 case $host_cpu in
4335 i*86 )
4336 # Not sure whether the presence of OpenBSD here was a mistake.
4337 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004338 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 +00004339 lt_cv_file_magic_cmd=/usr/bin/file
4340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4341 ;;
4342 esac
4343 else
4344 lt_cv_deplibs_check_method=pass_all
4345 fi
4346 ;;
4347
4348gnu*)
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351
a.rottmann9bc8b932004-02-29 15:18:31 +00004352hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004353 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004354 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004355 ia64*)
4356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4357 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4358 ;;
4359 hppa*64*)
4360 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]'
4361 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4362 ;;
4363 *)
4364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4365 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4366 ;;
4367 esac
drh71eb93e2001-09-28 01:34:43 +00004368 ;;
4369
mlcreech636a9952008-05-05 22:52:56 +00004370interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004371 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4373 ;;
4374
a.rottmann84e63352003-03-24 09:42:16 +00004375irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004376 case $LD in
4377 *-32|*"-32 ") libmagic=32-bit;;
4378 *-n32|*"-n32 ") libmagic=N32;;
4379 *-64|*"-64 ") libmagic=64-bit;;
4380 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004381 esac
drh71eb93e2001-09-28 01:34:43 +00004382 lt_cv_deplibs_check_method=pass_all
4383 ;;
4384
4385# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004386linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004387 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004388 ;;
4389
vapier7f19c022007-02-17 14:46:31 +00004390netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004393 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004395 fi
4396 ;;
4397
4398newos6*)
4399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4400 lt_cv_file_magic_cmd=/usr/bin/file
4401 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4402 ;;
4403
mlcreech636a9952008-05-05 22:52:56 +00004404*nto* | *qnx*)
4405 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004406 ;;
4407
a.rottmann84e63352003-03-24 09:42:16 +00004408openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004411 else
vapier7f19c022007-02-17 14:46:31 +00004412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004413 fi
drh71eb93e2001-09-28 01:34:43 +00004414 ;;
4415
4416osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419
mlcreech636a9952008-05-05 22:52:56 +00004420rdos*)
4421 lt_cv_deplibs_check_method=pass_all
4422 ;;
4423
drh71eb93e2001-09-28 01:34:43 +00004424solaris*)
4425 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004426 ;;
4427
mlcreech636a9952008-05-05 22:52:56 +00004428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431
vapier7f19c022007-02-17 14:46:31 +00004432sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004433 case $host_vendor in
4434 motorola)
4435 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]'
4436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4437 ;;
4438 ncr)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441 sequent)
4442 lt_cv_file_magic_cmd='/bin/file'
4443 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4444 ;;
4445 sni)
4446 lt_cv_file_magic_cmd='/bin/file'
4447 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4448 lt_cv_file_magic_test_file=/lib/libc.so
4449 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004450 siemens)
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
vapier7f19c022007-02-17 14:46:31 +00004453 pc)
4454 lt_cv_deplibs_check_method=pass_all
4455 ;;
drh71eb93e2001-09-28 01:34:43 +00004456 esac
4457 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004458
mlcreech636a9952008-05-05 22:52:56 +00004459tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004460 lt_cv_deplibs_check_method=pass_all
4461 ;;
drh71eb93e2001-09-28 01:34:43 +00004462esac
4463
4464fi
drhf922ca42015-05-14 15:39:18 +00004465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004466$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004467file_magic_cmd=$lt_cv_file_magic_cmd
4468deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004469test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004470
drh71eb93e2001-09-28 01:34:43 +00004471
drh71eb93e2001-09-28 01:34:43 +00004472
drh71eb93e2001-09-28 01:34:43 +00004473
mlcreech636a9952008-05-05 22:52:56 +00004474
4475
4476
4477
4478
4479
4480
4481
4482if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4484set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004486$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004487if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004488 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004489else
4490 if test -n "$AR"; then
4491 ac_cv_prog_AR="$AR" # Let the user override the test.
4492else
4493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494for as_dir in $PATH
4495do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004500 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004502 break 2
4503 fi
4504done
drhf922ca42015-05-14 15:39:18 +00004505 done
drh8b727472009-01-19 18:18:40 +00004506IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004507
4508fi
4509fi
4510AR=$ac_cv_prog_AR
4511if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004513$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004514else
drhf922ca42015-05-14 15:39:18 +00004515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004516$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004517fi
4518
drh8b727472009-01-19 18:18:40 +00004519
mlcreech636a9952008-05-05 22:52:56 +00004520fi
4521if test -z "$ac_cv_prog_AR"; then
4522 ac_ct_AR=$AR
4523 # Extract the first word of "ar", so it can be a program name with args.
4524set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004526$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004527if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004528 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004529else
4530 if test -n "$ac_ct_AR"; then
4531 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4532else
4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004540 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004542 break 2
4543 fi
4544done
drhf922ca42015-05-14 15:39:18 +00004545 done
drh8b727472009-01-19 18:18:40 +00004546IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004547
4548fi
4549fi
4550ac_ct_AR=$ac_cv_prog_ac_ct_AR
4551if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004553$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004554else
drhf922ca42015-05-14 15:39:18 +00004555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004556$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004557fi
4558
drh8b727472009-01-19 18:18:40 +00004559 if test "x$ac_ct_AR" = x; then
4560 AR="false"
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563yes:)
drhf922ca42015-05-14 15:39:18 +00004564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004566ac_tool_warned=yes ;;
4567esac
4568 AR=$ac_ct_AR
4569 fi
mlcreech636a9952008-05-05 22:52:56 +00004570else
4571 AR="$ac_cv_prog_AR"
4572fi
4573
4574test -z "$AR" && AR=ar
4575test -z "$AR_FLAGS" && AR_FLAGS=cru
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4589set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004591$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004592if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004593 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004594else
4595 if test -n "$STRIP"; then
4596 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004605 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004607 break 2
4608 fi
4609done
drhf922ca42015-05-14 15:39:18 +00004610 done
drh8b727472009-01-19 18:18:40 +00004611IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004612
4613fi
4614fi
4615STRIP=$ac_cv_prog_STRIP
4616if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004618$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004619else
drhf922ca42015-05-14 15:39:18 +00004620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004621$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004622fi
4623
drh8b727472009-01-19 18:18:40 +00004624
mlcreech636a9952008-05-05 22:52:56 +00004625fi
4626if test -z "$ac_cv_prog_STRIP"; then
4627 ac_ct_STRIP=$STRIP
4628 # Extract the first word of "strip", so it can be a program name with args.
4629set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004631$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004632if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004633 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004634else
4635 if test -n "$ac_ct_STRIP"; then
4636 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004645 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004647 break 2
4648 fi
4649done
drhf922ca42015-05-14 15:39:18 +00004650 done
drh8b727472009-01-19 18:18:40 +00004651IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004652
4653fi
4654fi
4655ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4656if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004658$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004659else
drhf922ca42015-05-14 15:39:18 +00004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004661$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004662fi
4663
drh8b727472009-01-19 18:18:40 +00004664 if test "x$ac_ct_STRIP" = x; then
4665 STRIP=":"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668yes:)
drhf922ca42015-05-14 15:39:18 +00004669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004671ac_tool_warned=yes ;;
4672esac
4673 STRIP=$ac_ct_STRIP
4674 fi
mlcreech636a9952008-05-05 22:52:56 +00004675else
4676 STRIP="$ac_cv_prog_STRIP"
4677fi
4678
4679test -z "$STRIP" && STRIP=:
4680
4681
4682
4683
4684
4685
4686if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004690$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004691if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004692 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004693else
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004706 break 2
4707 fi
4708done
drhf922ca42015-05-14 15:39:18 +00004709 done
drh8b727472009-01-19 18:18:40 +00004710IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004711
4712fi
4713fi
4714RANLIB=$ac_cv_prog_RANLIB
4715if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004717$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004718else
drhf922ca42015-05-14 15:39:18 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004720$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004721fi
4722
drh8b727472009-01-19 18:18:40 +00004723
mlcreech636a9952008-05-05 22:52:56 +00004724fi
4725if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004730$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004731if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004732 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004733else
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736else
4737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004744 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004746 break 2
4747 fi
4748done
drhf922ca42015-05-14 15:39:18 +00004749 done
drh8b727472009-01-19 18:18:40 +00004750IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004751
4752fi
4753fi
4754ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004757$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004758else
drhf922ca42015-05-14 15:39:18 +00004759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004760$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004761fi
4762
drh8b727472009-01-19 18:18:40 +00004763 if test "x$ac_ct_RANLIB" = x; then
4764 RANLIB=":"
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767yes:)
drhf922ca42015-05-14 15:39:18 +00004768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004770ac_tool_warned=yes ;;
4771esac
4772 RANLIB=$ac_ct_RANLIB
4773 fi
mlcreech636a9952008-05-05 22:52:56 +00004774else
4775 RANLIB="$ac_cv_prog_RANLIB"
4776fi
4777
4778test -z "$RANLIB" && RANLIB=:
4779
4780
4781
4782
4783
4784
4785# Determine commands to create old-style static archives.
4786old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4787old_postinstall_cmds='chmod 644 $oldlib'
4788old_postuninstall_cmds=
4789
4790if test -n "$RANLIB"; then
4791 case $host_os in
4792 openbsd*)
4793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4794 ;;
4795 *)
4796 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4797 ;;
4798 esac
4799 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4800fi
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
a.rottmann9bc8b932004-02-29 15:18:31 +00004835# If no C compiler was specified, use CC.
4836LTCC=${LTCC-"$CC"}
4837
vapier7f19c022007-02-17 14:46:31 +00004838# If no C compiler flags were specified, use CFLAGS.
4839LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4840
a.rottmann9bc8b932004-02-29 15:18:31 +00004841# Allow CC to be a program name with arguments.
4842compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004843
drh71eb93e2001-09-28 01:34:43 +00004844
mlcreech636a9952008-05-05 22:52:56 +00004845# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004847$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004848if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004849 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004850else
4851
4852# These are sane defaults that work on at least a few old systems.
4853# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4854
4855# Character class describing NM global symbol codes.
4856symcode='[BCDEGRST]'
4857
4858# Regexp to match symbols that can be accessed directly from C.
4859sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4860
4861# Define system-specific variables.
4862case $host_os in
4863aix*)
4864 symcode='[BCDT]'
4865 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004866cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004867 symcode='[ABCDGISTW]'
4868 ;;
4869hpux*)
4870 if test "$host_cpu" = ia64; then
4871 symcode='[ABCDEGRST]'
4872 fi
4873 ;;
4874irix* | nonstopux*)
4875 symcode='[BCDEGRST]'
4876 ;;
4877osf*)
4878 symcode='[BCDEGQRST]'
4879 ;;
4880solaris*)
4881 symcode='[BDRT]'
4882 ;;
4883sco3.2v5*)
4884 symcode='[DT]'
4885 ;;
4886sysv4.2uw2*)
4887 symcode='[DT]'
4888 ;;
4889sysv5* | sco5v6* | unixware* | OpenUNIX*)
4890 symcode='[ABDT]'
4891 ;;
4892sysv4)
4893 symcode='[DFNSTU]'
4894 ;;
4895esac
4896
4897# If we're using GNU nm, then use its standard symbol codes.
4898case `$NM -V 2>&1` in
4899*GNU* | *'with BFD'*)
4900 symcode='[ABCDGIRSTW]' ;;
4901esac
4902
4903# Transform an extracted symbol line into a proper C declaration.
4904# Some systems (esp. on ia64) link data and code symbols differently,
4905# so use this general approach.
4906lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4907
4908# Transform an extracted symbol line into symbol name and symbol address
4909lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4910lt_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'"
4911
4912# Handle CRLF in mingw tool chain
4913opt_cr=
4914case $build_os in
4915mingw*)
4916 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4917 ;;
4918esac
4919
4920# Try without a prefix underscore, then with it.
4921for ac_symprfx in "" "_"; do
4922
4923 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4924 symxfrm="\\1 $ac_symprfx\\2 \\2"
4925
4926 # Write the raw and C identifiers.
4927 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4928 # Fake it for dumpbin and say T for any non-static function
4929 # and D for any global variable.
4930 # Also find C++ and __fastcall symbols from MSVC++,
4931 # which start with @ or ?.
4932 lt_cv_sys_global_symbol_pipe="$AWK '"\
4933" {last_section=section; section=\$ 3};"\
4934" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4935" \$ 0!~/External *\|/{next};"\
4936" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4937" {if(hide[section]) next};"\
4938" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4939" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4940" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4941" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4942" ' prfx=^$ac_symprfx"
4943 else
4944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4945 fi
4946
4947 # Check to see that the pipe works correctly.
4948 pipe_works=no
4949
4950 rm -f conftest*
4951 cat > conftest.$ac_ext <<_LT_EOF
4952#ifdef __cplusplus
4953extern "C" {
4954#endif
4955char nm_test_var;
4956void nm_test_func(void);
4957void nm_test_func(void){}
4958#ifdef __cplusplus
4959}
4960#endif
4961int main(){nm_test_var='a';nm_test_func();return(0);}
4962_LT_EOF
4963
drhf922ca42015-05-14 15:39:18 +00004964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004965 (eval $ac_compile) 2>&5
4966 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004969 # Now try to grab the symbols.
4970 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004971 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 +00004972 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4973 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004976 # Try sorting and uniquifying the output.
4977 if sort "$nlist" | uniq > "$nlist"T; then
4978 mv -f "$nlist"T "$nlist"
4979 else
4980 rm -f "$nlist"T
4981 fi
4982
4983 # Make sure that we snagged all the symbols we need.
4984 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4985 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4986 cat <<_LT_EOF > conftest.$ac_ext
4987#ifdef __cplusplus
4988extern "C" {
4989#endif
4990
4991_LT_EOF
4992 # Now generate the symbol file.
4993 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4994
4995 cat <<_LT_EOF >> conftest.$ac_ext
4996
4997/* The mapping between symbol names and symbols. */
4998const struct {
4999 const char *name;
5000 void *address;
5001}
5002lt__PROGRAM__LTX_preloaded_symbols[] =
5003{
5004 { "@PROGRAM@", (void *) 0 },
5005_LT_EOF
5006 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5007 cat <<\_LT_EOF >> conftest.$ac_ext
5008 {0, (void *) 0}
5009};
5010
5011/* This works around a problem in FreeBSD linker */
5012#ifdef FREEBSD_WORKAROUND
5013static const void *lt_preloaded_setup() {
5014 return lt__PROGRAM__LTX_preloaded_symbols;
5015}
5016#endif
5017
5018#ifdef __cplusplus
5019}
5020#endif
5021_LT_EOF
5022 # Now try linking the two files.
5023 mv conftest.$ac_objext conftstm.$ac_objext
5024 lt_save_LIBS="$LIBS"
5025 lt_save_CFLAGS="$CFLAGS"
5026 LIBS="conftstm.$ac_objext"
5027 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005029 (eval $ac_link) 2>&5
5030 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005033 pipe_works=yes
5034 fi
5035 LIBS="$lt_save_LIBS"
5036 CFLAGS="$lt_save_CFLAGS"
5037 else
5038 echo "cannot find nm_test_func in $nlist" >&5
5039 fi
5040 else
5041 echo "cannot find nm_test_var in $nlist" >&5
5042 fi
5043 else
5044 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5045 fi
5046 else
5047 echo "$progname: failed program was:" >&5
5048 cat conftest.$ac_ext >&5
5049 fi
5050 rm -rf conftest* conftst*
5051
5052 # Do not use the global_symbol_pipe unless it works.
5053 if test "$pipe_works" = yes; then
5054 break
5055 else
5056 lt_cv_sys_global_symbol_pipe=
5057 fi
5058done
5059
5060fi
5061
5062if test -z "$lt_cv_sys_global_symbol_pipe"; then
5063 lt_cv_sys_global_symbol_to_cdecl=
5064fi
5065if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005067$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005068else
drhf922ca42015-05-14 15:39:18 +00005069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005070$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005071fi
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
drh8b727472009-01-19 18:18:40 +00005095# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005096if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005097 enableval=$enable_libtool_lock;
5098fi
drh71eb93e2001-09-28 01:34:43 +00005099
a.rottmann9bc8b932004-02-29 15:18:31 +00005100test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005101
a.rottmann9bc8b932004-02-29 15:18:31 +00005102# Some flags need to be propagated to the compiler or linker for good
5103# libtool support.
5104case $host in
5105ia64-*-hpux*)
5106 # Find out which ABI we are using.
5107 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005109 (eval $ac_compile) 2>&5
5110 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5112 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005113 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005114 *ELF-32*)
5115 HPUX_IA64_MODE="32"
5116 ;;
5117 *ELF-64*)
5118 HPUX_IA64_MODE="64"
5119 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005120 esac
5121 fi
5122 rm -rf conftest*
5123 ;;
5124*-*-irix6*)
5125 # Find out which ABI we are using.
drhf922ca42015-05-14 15:39:18 +00005126 echo '#line 5126 "configure"' > conftest.$ac_ext
5127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005128 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005129 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5131 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005132 if test "$lt_cv_prog_gnu_ld" = yes; then
5133 case `/usr/bin/file conftest.$ac_objext` in
5134 *32-bit*)
5135 LD="${LD-ld} -melf32bsmip"
5136 ;;
5137 *N32*)
5138 LD="${LD-ld} -melf32bmipn32"
5139 ;;
5140 *64-bit*)
5141 LD="${LD-ld} -melf64bmip"
5142 ;;
5143 esac
5144 else
5145 case `/usr/bin/file conftest.$ac_objext` in
5146 *32-bit*)
5147 LD="${LD-ld} -32"
5148 ;;
5149 *N32*)
5150 LD="${LD-ld} -n32"
5151 ;;
5152 *64-bit*)
5153 LD="${LD-ld} -64"
5154 ;;
5155 esac
5156 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005157 fi
5158 rm -rf conftest*
5159 ;;
drh71eb93e2001-09-28 01:34:43 +00005160
mlcreech636a9952008-05-05 22:52:56 +00005161x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5162s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005163 # Find out which ABI we are using.
5164 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005166 (eval $ac_compile) 2>&5
5167 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5169 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005170 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005171 *32-bit*)
5172 case $host in
5173 x86_64-*kfreebsd*-gnu)
5174 LD="${LD-ld} -m elf_i386_fbsd"
5175 ;;
5176 x86_64-*linux*)
5177 LD="${LD-ld} -m elf_i386"
5178 ;;
5179 ppc64-*linux*|powerpc64-*linux*)
5180 LD="${LD-ld} -m elf32ppclinux"
5181 ;;
5182 s390x-*linux*)
5183 LD="${LD-ld} -m elf_s390"
5184 ;;
5185 sparc64-*linux*)
5186 LD="${LD-ld} -m elf32_sparc"
5187 ;;
5188 esac
5189 ;;
5190 *64-bit*)
5191 case $host in
5192 x86_64-*kfreebsd*-gnu)
5193 LD="${LD-ld} -m elf_x86_64_fbsd"
5194 ;;
5195 x86_64-*linux*)
5196 LD="${LD-ld} -m elf_x86_64"
5197 ;;
5198 ppc*-*linux*|powerpc*-*linux*)
5199 LD="${LD-ld} -m elf64ppc"
5200 ;;
5201 s390*-*linux*|s390*-*tpf*)
5202 LD="${LD-ld} -m elf64_s390"
5203 ;;
5204 sparc*-*linux*)
5205 LD="${LD-ld} -m elf64_sparc"
5206 ;;
5207 esac
5208 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005209 esac
5210 fi
5211 rm -rf conftest*
5212 ;;
drh71eb93e2001-09-28 01:34:43 +00005213
a.rottmann9bc8b932004-02-29 15:18:31 +00005214*-*-sco3.2v5*)
5215 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5216 SAVE_CFLAGS="$CFLAGS"
5217 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005219$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005220if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005221 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005222else
5223 ac_ext=c
5224ac_cpp='$CPP $CPPFLAGS'
5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005228
drhf922ca42015-05-14 15:39:18 +00005229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005230/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005231
a.rottmann9bc8b932004-02-29 15:18:31 +00005232int
5233main ()
drh71eb93e2001-09-28 01:34:43 +00005234{
drh71eb93e2001-09-28 01:34:43 +00005235
a.rottmann9bc8b932004-02-29 15:18:31 +00005236 ;
5237 return 0;
drh71eb93e2001-09-28 01:34:43 +00005238}
a.rottmann9bc8b932004-02-29 15:18:31 +00005239_ACEOF
drhf922ca42015-05-14 15:39:18 +00005240if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005241 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005242else
drhf922ca42015-05-14 15:39:18 +00005243 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005244fi
drhf922ca42015-05-14 15:39:18 +00005245rm -f core conftest.err conftest.$ac_objext \
5246 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005247 ac_ext=c
5248ac_cpp='$CPP $CPPFLAGS'
5249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252
drh71eb93e2001-09-28 01:34:43 +00005253fi
drhf922ca42015-05-14 15:39:18 +00005254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005255$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5258 CFLAGS="$SAVE_CFLAGS"
5259 fi
5260 ;;
vapier7f19c022007-02-17 14:46:31 +00005261sparc*-*solaris*)
5262 # Find out which ABI we are using.
5263 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005265 (eval $ac_compile) 2>&5
5266 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005269 case `/usr/bin/file conftest.o` in
5270 *64-bit*)
5271 case $lt_cv_prog_gnu_ld in
5272 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005273 *)
5274 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5275 LD="${LD-ld} -64"
5276 fi
5277 ;;
vapier7f19c022007-02-17 14:46:31 +00005278 esac
5279 ;;
5280 esac
5281 fi
5282 rm -rf conftest*
5283 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005284esac
5285
5286need_locks="$enable_libtool_lock"
5287
drh71eb93e2001-09-28 01:34:43 +00005288
mlcreech636a9952008-05-05 22:52:56 +00005289 case $host_os in
5290 rhapsody* | darwin*)
5291 if test -n "$ac_tool_prefix"; then
5292 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5293set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005295$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005296if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005297 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005298else
5299 if test -n "$DSYMUTIL"; then
5300 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005309 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005311 break 2
5312 fi
5313done
drhf922ca42015-05-14 15:39:18 +00005314 done
drh8b727472009-01-19 18:18:40 +00005315IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005316
5317fi
5318fi
5319DSYMUTIL=$ac_cv_prog_DSYMUTIL
5320if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005322$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005323else
drhf922ca42015-05-14 15:39:18 +00005324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005325$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005326fi
5327
drh8b727472009-01-19 18:18:40 +00005328
mlcreech636a9952008-05-05 22:52:56 +00005329fi
5330if test -z "$ac_cv_prog_DSYMUTIL"; then
5331 ac_ct_DSYMUTIL=$DSYMUTIL
5332 # Extract the first word of "dsymutil", so it can be a program name with args.
5333set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005335$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005336if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005337 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005338else
5339 if test -n "$ac_ct_DSYMUTIL"; then
5340 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005349 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005351 break 2
5352 fi
5353done
drhf922ca42015-05-14 15:39:18 +00005354 done
drh8b727472009-01-19 18:18:40 +00005355IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005356
5357fi
5358fi
5359ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5360if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005362$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005363else
drhf922ca42015-05-14 15:39:18 +00005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005365$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005366fi
5367
drh8b727472009-01-19 18:18:40 +00005368 if test "x$ac_ct_DSYMUTIL" = x; then
5369 DSYMUTIL=":"
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372yes:)
drhf922ca42015-05-14 15:39:18 +00005373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005375ac_tool_warned=yes ;;
5376esac
5377 DSYMUTIL=$ac_ct_DSYMUTIL
5378 fi
mlcreech636a9952008-05-05 22:52:56 +00005379else
5380 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5381fi
5382
5383 if test -n "$ac_tool_prefix"; then
5384 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5385set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005387$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005388if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005389 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005390else
5391 if test -n "$NMEDIT"; then
5392 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5393else
5394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005401 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005403 break 2
5404 fi
5405done
drhf922ca42015-05-14 15:39:18 +00005406 done
drh8b727472009-01-19 18:18:40 +00005407IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005408
5409fi
5410fi
5411NMEDIT=$ac_cv_prog_NMEDIT
5412if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005414$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005415else
drhf922ca42015-05-14 15:39:18 +00005416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005417$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005418fi
5419
drh8b727472009-01-19 18:18:40 +00005420
mlcreech636a9952008-05-05 22:52:56 +00005421fi
5422if test -z "$ac_cv_prog_NMEDIT"; then
5423 ac_ct_NMEDIT=$NMEDIT
5424 # Extract the first word of "nmedit", so it can be a program name with args.
5425set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005427$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005428if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005429 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005430else
5431 if test -n "$ac_ct_NMEDIT"; then
5432 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005441 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005443 break 2
5444 fi
5445done
drhf922ca42015-05-14 15:39:18 +00005446 done
drh8b727472009-01-19 18:18:40 +00005447IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005448
5449fi
5450fi
5451ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5452if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005454$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005455else
drhf922ca42015-05-14 15:39:18 +00005456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005457$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005458fi
5459
drh8b727472009-01-19 18:18:40 +00005460 if test "x$ac_ct_NMEDIT" = x; then
5461 NMEDIT=":"
5462 else
5463 case $cross_compiling:$ac_tool_warned in
5464yes:)
drhf922ca42015-05-14 15:39:18 +00005465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005467ac_tool_warned=yes ;;
5468esac
5469 NMEDIT=$ac_ct_NMEDIT
5470 fi
mlcreech636a9952008-05-05 22:52:56 +00005471else
5472 NMEDIT="$ac_cv_prog_NMEDIT"
5473fi
5474
5475 if test -n "$ac_tool_prefix"; then
5476 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5477set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005479$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005480if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005481 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005482else
5483 if test -n "$LIPO"; then
5484 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5485else
5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487for as_dir in $PATH
5488do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005493 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005495 break 2
5496 fi
5497done
drhf922ca42015-05-14 15:39:18 +00005498 done
drh8b727472009-01-19 18:18:40 +00005499IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005500
5501fi
5502fi
5503LIPO=$ac_cv_prog_LIPO
5504if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005506$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005507else
drhf922ca42015-05-14 15:39:18 +00005508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005509$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005510fi
5511
drh8b727472009-01-19 18:18:40 +00005512
mlcreech636a9952008-05-05 22:52:56 +00005513fi
5514if test -z "$ac_cv_prog_LIPO"; then
5515 ac_ct_LIPO=$LIPO
5516 # Extract the first word of "lipo", so it can be a program name with args.
5517set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005519$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005520if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005521 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005522else
5523 if test -n "$ac_ct_LIPO"; then
5524 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005533 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005535 break 2
5536 fi
5537done
drhf922ca42015-05-14 15:39:18 +00005538 done
drh8b727472009-01-19 18:18:40 +00005539IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005540
5541fi
5542fi
5543ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5544if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005546$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005547else
drhf922ca42015-05-14 15:39:18 +00005548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005549$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005550fi
5551
drh8b727472009-01-19 18:18:40 +00005552 if test "x$ac_ct_LIPO" = x; then
5553 LIPO=":"
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556yes:)
drhf922ca42015-05-14 15:39:18 +00005557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005559ac_tool_warned=yes ;;
5560esac
5561 LIPO=$ac_ct_LIPO
5562 fi
mlcreech636a9952008-05-05 22:52:56 +00005563else
5564 LIPO="$ac_cv_prog_LIPO"
5565fi
5566
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005571$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005572if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005573 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005574else
5575 if test -n "$OTOOL"; then
5576 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5577else
5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579for as_dir in $PATH
5580do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005585 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005587 break 2
5588 fi
5589done
drhf922ca42015-05-14 15:39:18 +00005590 done
drh8b727472009-01-19 18:18:40 +00005591IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005592
5593fi
5594fi
5595OTOOL=$ac_cv_prog_OTOOL
5596if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005598$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005599else
drhf922ca42015-05-14 15:39:18 +00005600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005601$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005602fi
5603
drh8b727472009-01-19 18:18:40 +00005604
mlcreech636a9952008-05-05 22:52:56 +00005605fi
5606if test -z "$ac_cv_prog_OTOOL"; then
5607 ac_ct_OTOOL=$OTOOL
5608 # Extract the first word of "otool", so it can be a program name with args.
5609set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005611$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005612if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005613 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005614else
5615 if test -n "$ac_ct_OTOOL"; then
5616 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5617else
5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619for as_dir in $PATH
5620do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005625 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005627 break 2
5628 fi
5629done
drhf922ca42015-05-14 15:39:18 +00005630 done
drh8b727472009-01-19 18:18:40 +00005631IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005632
5633fi
5634fi
5635ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5636if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005638$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005639else
drhf922ca42015-05-14 15:39:18 +00005640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005641$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005642fi
5643
drh8b727472009-01-19 18:18:40 +00005644 if test "x$ac_ct_OTOOL" = x; then
5645 OTOOL=":"
5646 else
5647 case $cross_compiling:$ac_tool_warned in
5648yes:)
drhf922ca42015-05-14 15:39:18 +00005649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005651ac_tool_warned=yes ;;
5652esac
5653 OTOOL=$ac_ct_OTOOL
5654 fi
mlcreech636a9952008-05-05 22:52:56 +00005655else
5656 OTOOL="$ac_cv_prog_OTOOL"
5657fi
5658
5659 if test -n "$ac_tool_prefix"; then
5660 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5661set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005663$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005664if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005665 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005666else
5667 if test -n "$OTOOL64"; then
5668 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005677 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005679 break 2
5680 fi
5681done
drhf922ca42015-05-14 15:39:18 +00005682 done
drh8b727472009-01-19 18:18:40 +00005683IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005684
5685fi
5686fi
5687OTOOL64=$ac_cv_prog_OTOOL64
5688if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005690$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005691else
drhf922ca42015-05-14 15:39:18 +00005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005693$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005694fi
5695
drh8b727472009-01-19 18:18:40 +00005696
mlcreech636a9952008-05-05 22:52:56 +00005697fi
5698if test -z "$ac_cv_prog_OTOOL64"; then
5699 ac_ct_OTOOL64=$OTOOL64
5700 # Extract the first word of "otool64", so it can be a program name with args.
5701set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005703$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005704if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005705 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005706else
5707 if test -n "$ac_ct_OTOOL64"; then
5708 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005717 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005719 break 2
5720 fi
5721done
drhf922ca42015-05-14 15:39:18 +00005722 done
drh8b727472009-01-19 18:18:40 +00005723IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005724
5725fi
5726fi
5727ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5728if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005730$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005731else
drhf922ca42015-05-14 15:39:18 +00005732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005733$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005734fi
5735
drh8b727472009-01-19 18:18:40 +00005736 if test "x$ac_ct_OTOOL64" = x; then
5737 OTOOL64=":"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740yes:)
drhf922ca42015-05-14 15:39:18 +00005741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005743ac_tool_warned=yes ;;
5744esac
5745 OTOOL64=$ac_ct_OTOOL64
5746 fi
mlcreech636a9952008-05-05 22:52:56 +00005747else
5748 OTOOL64="$ac_cv_prog_OTOOL64"
5749fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
drhf922ca42015-05-14 15:39:18 +00005777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005778$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005779if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005780 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005781else
5782 lt_cv_apple_cc_single_mod=no
5783 if test -z "${LT_MULTI_MODULE}"; then
5784 # By default we will add the -single_module flag. You can override
5785 # by either setting the environment variable LT_MULTI_MODULE
5786 # non-empty at configure time, or by adding -multi_module to the
5787 # link flags.
5788 rm -rf libconftest.dylib*
5789 echo "int foo(void){return 1;}" > conftest.c
5790 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5791-dynamiclib -Wl,-single_module conftest.c" >&5
5792 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5793 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5794 _lt_result=$?
5795 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5796 lt_cv_apple_cc_single_mod=yes
5797 else
5798 cat conftest.err >&5
5799 fi
5800 rm -rf libconftest.dylib*
5801 rm -f conftest.*
5802 fi
5803fi
drhf922ca42015-05-14 15:39:18 +00005804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005805$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005807$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005808if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005809 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005810else
5811 lt_cv_ld_exported_symbols_list=no
5812 save_LDFLAGS=$LDFLAGS
5813 echo "_main" > conftest.sym
5814 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005816/* end confdefs.h. */
5817
5818int
5819main ()
5820{
5821
5822 ;
5823 return 0;
5824}
5825_ACEOF
drhf922ca42015-05-14 15:39:18 +00005826if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005827 lt_cv_ld_exported_symbols_list=yes
5828else
drhf922ca42015-05-14 15:39:18 +00005829 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005830fi
drhf922ca42015-05-14 15:39:18 +00005831rm -f core conftest.err conftest.$ac_objext \
5832 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005833 LDFLAGS="$save_LDFLAGS"
5834
5835fi
drhf922ca42015-05-14 15:39:18 +00005836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005837$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005838 case $host_os in
5839 rhapsody* | darwin1.[012])
5840 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5841 darwin1.*)
5842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5843 darwin*) # darwin 5.x on
5844 # if running on 10.5 or later, the deployment target defaults
5845 # to the OS version, if on x86, and 10.4, the deployment
5846 # target defaults to 10.4. Don't you love it?
5847 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5848 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5849 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5850 10.[012]*)
5851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5852 10.*)
5853 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5854 esac
5855 ;;
5856 esac
5857 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5858 _lt_dar_single_mod='$single_module'
5859 fi
5860 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5861 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5862 else
5863 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5864 fi
5865 if test "$DSYMUTIL" != ":"; then
5866 _lt_dsymutil='~$DSYMUTIL $lib || :'
5867 else
5868 _lt_dsymutil=
5869 fi
5870 ;;
5871 esac
5872
a.rottmann84e63352003-03-24 09:42:16 +00005873ac_ext=c
5874ac_cpp='$CPP $CPPFLAGS'
5875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005879$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005880# On Suns, sometimes $CPP names a directory.
5881if test -n "$CPP" && test -d "$CPP"; then
5882 CPP=
5883fi
5884if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005885 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005886 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005887else
a.rottmann84e63352003-03-24 09:42:16 +00005888 # Double quotes because CPP needs to be expanded
5889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5890 do
5891 ac_preproc_ok=false
5892for ac_c_preproc_warn_flag in '' yes
5893do
5894 # Use a header file that comes with gcc, so configuring glibc
5895 # with a fresh cross-compiler works.
5896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897 # <limits.h> exists even on freestanding compilers.
5898 # On the NeXT, cc -E runs the code through the compiler's parser,
5899 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005901/* end confdefs.h. */
5902#ifdef __STDC__
5903# include <limits.h>
5904#else
5905# include <assert.h>
5906#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005907 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005908_ACEOF
drhf922ca42015-05-14 15:39:18 +00005909if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005910
drhf922ca42015-05-14 15:39:18 +00005911else
a.rottmann84e63352003-03-24 09:42:16 +00005912 # Broken: fails on valid input.
5913continue
5914fi
drhf922ca42015-05-14 15:39:18 +00005915rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005916
drh8b727472009-01-19 18:18:40 +00005917 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005918 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005920/* end confdefs.h. */
5921#include <ac_nonexistent.h>
5922_ACEOF
drhf922ca42015-05-14 15:39:18 +00005923if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005924 # Broken: success on invalid input.
5925continue
5926else
a.rottmann84e63352003-03-24 09:42:16 +00005927 # Passes both tests.
5928ac_preproc_ok=:
5929break
5930fi
drhf922ca42015-05-14 15:39:18 +00005931rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005932
5933done
5934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005935rm -f conftest.i conftest.err conftest.$ac_ext
5936if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005937 break
5938fi
5939
5940 done
5941 ac_cv_prog_CPP=$CPP
5942
5943fi
5944 CPP=$ac_cv_prog_CPP
5945else
5946 ac_cv_prog_CPP=$CPP
5947fi
drhf922ca42015-05-14 15:39:18 +00005948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005949$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005950ac_preproc_ok=false
5951for ac_c_preproc_warn_flag in '' yes
5952do
5953 # Use a header file that comes with gcc, so configuring glibc
5954 # with a fresh cross-compiler works.
5955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956 # <limits.h> exists even on freestanding compilers.
5957 # On the NeXT, cc -E runs the code through the compiler's parser,
5958 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005960/* end confdefs.h. */
5961#ifdef __STDC__
5962# include <limits.h>
5963#else
5964# include <assert.h>
5965#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005966 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005967_ACEOF
drhf922ca42015-05-14 15:39:18 +00005968if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005969
drhf922ca42015-05-14 15:39:18 +00005970else
a.rottmann84e63352003-03-24 09:42:16 +00005971 # Broken: fails on valid input.
5972continue
5973fi
drhf922ca42015-05-14 15:39:18 +00005974rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005975
drh8b727472009-01-19 18:18:40 +00005976 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005977 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005979/* end confdefs.h. */
5980#include <ac_nonexistent.h>
5981_ACEOF
drhf922ca42015-05-14 15:39:18 +00005982if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005983 # Broken: success on invalid input.
5984continue
5985else
a.rottmann84e63352003-03-24 09:42:16 +00005986 # Passes both tests.
5987ac_preproc_ok=:
5988break
5989fi
drhf922ca42015-05-14 15:39:18 +00005990rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005991
5992done
5993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005994rm -f conftest.i conftest.err conftest.$ac_ext
5995if $ac_preproc_ok; then :
5996
a.rottmann84e63352003-03-24 09:42:16 +00005997else
drhf922ca42015-05-14 15:39:18 +00005998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6000as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6001See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006002fi
6003
6004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
drhf922ca42015-05-14 15:39:18 +00006011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006012$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006013if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006014 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006015else
drhf922ca42015-05-14 15:39:18 +00006016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006017/* end confdefs.h. */
6018#include <stdlib.h>
6019#include <stdarg.h>
6020#include <string.h>
6021#include <float.h>
6022
6023int
6024main ()
6025{
6026
6027 ;
6028 return 0;
6029}
6030_ACEOF
drhf922ca42015-05-14 15:39:18 +00006031if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006032 ac_cv_header_stdc=yes
6033else
drhf922ca42015-05-14 15:39:18 +00006034 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006035fi
drh8b727472009-01-19 18:18:40 +00006036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006037
6038if test $ac_cv_header_stdc = yes; then
6039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006041/* end confdefs.h. */
6042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006046 $EGREP "memchr" >/dev/null 2>&1; then :
6047
a.rottmann84e63352003-03-24 09:42:16 +00006048else
6049 ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053fi
6054
6055if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006058/* end confdefs.h. */
6059#include <stdlib.h>
6060
6061_ACEOF
6062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006063 $EGREP "free" >/dev/null 2>&1; then :
6064
a.rottmann84e63352003-03-24 09:42:16 +00006065else
6066 ac_cv_header_stdc=no
6067fi
6068rm -f conftest*
6069
6070fi
6071
6072if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006074 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006075 :
6076else
drhf922ca42015-05-14 15:39:18 +00006077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006078/* end confdefs.h. */
6079#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006080#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006081#if ((' ' & 0x0FF) == 0x020)
6082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6084#else
6085# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006086 (('a' <= (c) && (c) <= 'i') \
6087 || ('j' <= (c) && (c) <= 'r') \
6088 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6090#endif
6091
6092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6093int
6094main ()
6095{
6096 int i;
6097 for (i = 0; i < 256; i++)
6098 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006099 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006100 return 2;
6101 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006102}
6103_ACEOF
drhf922ca42015-05-14 15:39:18 +00006104if ac_fn_c_try_run "$LINENO"; then :
6105
a.rottmann84e63352003-03-24 09:42:16 +00006106else
drhf922ca42015-05-14 15:39:18 +00006107 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006108fi
drhf922ca42015-05-14 15:39:18 +00006109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006111fi
6112
a.rottmann84e63352003-03-24 09:42:16 +00006113fi
6114fi
drhf922ca42015-05-14 15:39:18 +00006115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006116$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006117if test $ac_cv_header_stdc = yes; then
6118
drhf922ca42015-05-14 15:39:18 +00006119$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006120
6121fi
6122
6123# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006124for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006125 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006126do :
6127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6129"
6130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006131 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006133_ACEOF
6134
6135fi
6136
6137done
6138
6139
a.rottmann84e63352003-03-24 09:42:16 +00006140for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006141do :
6142 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6143"
6144if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006145 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006146#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006147_ACEOF
6148
6149fi
6150
drh71eb93e2001-09-28 01:34:43 +00006151done
6152
drh71eb93e2001-09-28 01:34:43 +00006153
drh71eb93e2001-09-28 01:34:43 +00006154
mlcreech636a9952008-05-05 22:52:56 +00006155# Set options
mlcreech94984912008-03-04 19:03:08 +00006156
drh71eb93e2001-09-28 01:34:43 +00006157
drh71eb93e2001-09-28 01:34:43 +00006158
mlcreech636a9952008-05-05 22:52:56 +00006159 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006160
a.rottmann9bc8b932004-02-29 15:18:31 +00006161
mlcreech636a9952008-05-05 22:52:56 +00006162 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006163
a.rottmann9bc8b932004-02-29 15:18:31 +00006164
drh8b727472009-01-19 18:18:40 +00006165 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006166if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006167 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006168 case $enableval in
6169 yes) enable_shared=yes ;;
6170 no) enable_shared=no ;;
6171 *)
6172 enable_shared=no
6173 # Look at the argument we got. We use all the common list separators.
6174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6175 for pkg in $enableval; do
6176 IFS="$lt_save_ifs"
6177 if test "X$pkg" = "X$p"; then
6178 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006179 fi
mlcreech636a9952008-05-05 22:52:56 +00006180 done
6181 IFS="$lt_save_ifs"
6182 ;;
6183 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006184else
mlcreech636a9952008-05-05 22:52:56 +00006185 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006186fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006187
mlcreech636a9952008-05-05 22:52:56 +00006188
6189
6190
6191
6192
6193
6194
drh8b727472009-01-19 18:18:40 +00006195
6196 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006197if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006198 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006199 case $enableval in
6200 yes) enable_static=yes ;;
6201 no) enable_static=no ;;
6202 *)
6203 enable_static=no
6204 # Look at the argument we got. We use all the common list separators.
6205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6206 for pkg in $enableval; do
6207 IFS="$lt_save_ifs"
6208 if test "X$pkg" = "X$p"; then
6209 enable_static=yes
6210 fi
6211 done
6212 IFS="$lt_save_ifs"
6213 ;;
6214 esac
6215else
6216 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006217fi
mlcreech636a9952008-05-05 22:52:56 +00006218
6219
6220
6221
6222
6223
6224
6225
6226
drh8b727472009-01-19 18:18:40 +00006227
6228# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006229if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006230 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006231else
6232 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006233fi
6234
mlcreech636a9952008-05-05 22:52:56 +00006235
6236test -z "$pic_mode" && pic_mode=default
6237
6238
6239
6240
6241
6242
6243
drh8b727472009-01-19 18:18:40 +00006244 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006245if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006246 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006247 case $enableval in
6248 yes) enable_fast_install=yes ;;
6249 no) enable_fast_install=no ;;
6250 *)
6251 enable_fast_install=no
6252 # Look at the argument we got. We use all the common list separators.
6253 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6254 for pkg in $enableval; do
6255 IFS="$lt_save_ifs"
6256 if test "X$pkg" = "X$p"; then
6257 enable_fast_install=yes
6258 fi
6259 done
6260 IFS="$lt_save_ifs"
6261 ;;
6262 esac
6263else
6264 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006265fi
6266
mlcreech636a9952008-05-05 22:52:56 +00006267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277# This can be used to rebuild libtool when needed
6278LIBTOOL_DEPS="$ltmain"
6279
6280# Always use our own libtool.
6281LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307test -z "$LN_S" && LN_S="ln -s"
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322if test -n "${ZSH_VERSION+set}" ; then
6323 setopt NO_GLOB_SUBST
6324fi
6325
drhf922ca42015-05-14 15:39:18 +00006326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006327$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006328if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006329 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006330else
6331 rm -f .libs 2>/dev/null
6332mkdir .libs 2>/dev/null
6333if test -d .libs; then
6334 lt_cv_objdir=.libs
6335else
6336 # MS-DOS does not allow filenames that begin with a dot.
6337 lt_cv_objdir=_libs
6338fi
6339rmdir .libs 2>/dev/null
6340fi
drhf922ca42015-05-14 15:39:18 +00006341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006342$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006343objdir=$lt_cv_objdir
6344
6345
6346
6347
6348
mlcreech636a9952008-05-05 22:52:56 +00006349cat >>confdefs.h <<_ACEOF
6350#define LT_OBJDIR "$lt_cv_objdir/"
6351_ACEOF
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
a.rottmann9bc8b932004-02-29 15:18:31 +00006369case $host_os in
6370aix3*)
6371 # AIX sometimes has problems with the GCC collect2 program. For some
6372 # reason, if we set the COLLECT_NAMES environment variable, the problems
6373 # vanish in a puff of smoke.
6374 if test "X${COLLECT_NAMES+set}" != Xset; then
6375 COLLECT_NAMES=
6376 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006377 fi
6378 ;;
6379esac
6380
a.rottmann9bc8b932004-02-29 15:18:31 +00006381# Sed substitution that helps us do robust quoting. It backslashifies
6382# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006383sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006384
6385# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006386double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006387
6388# Sed substitution to delay expansion of an escaped shell variable in a
6389# double_quote_subst'ed string.
6390delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6391
mlcreech636a9952008-05-05 22:52:56 +00006392# Sed substitution to delay expansion of an escaped single quote.
6393delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6394
a.rottmann9bc8b932004-02-29 15:18:31 +00006395# Sed substitution to avoid accidental globbing in evaled expressions
6396no_glob_subst='s/\*/\\\*/g'
6397
a.rottmann9bc8b932004-02-29 15:18:31 +00006398# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006399ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006400can_build_shared=yes
6401
vapier7f19c022007-02-17 14:46:31 +00006402# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006403# which needs '.lib').
6404libext=a
mlcreech636a9952008-05-05 22:52:56 +00006405
a.rottmann9bc8b932004-02-29 15:18:31 +00006406with_gnu_ld="$lt_cv_prog_gnu_ld"
6407
a.rottmann84e63352003-03-24 09:42:16 +00006408old_CC="$CC"
6409old_CFLAGS="$CFLAGS"
6410
6411# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006412test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006413test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006414test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006415test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006416test -z "$ac_objext" && ac_objext=o
6417
vapier7f19c022007-02-17 14:46:31 +00006418for cc_temp in $compiler""; do
6419 case $cc_temp in
6420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6422 \-*) ;;
6423 *) break;;
6424 esac
6425done
mlcreech636a9952008-05-05 22:52:56 +00006426cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006427
6428
a.rottmann9bc8b932004-02-29 15:18:31 +00006429# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006430test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006431case $deplibs_check_method in
6432file_magic*)
6433 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006435$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006436if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006437 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006438else
a.rottmann9bc8b932004-02-29 15:18:31 +00006439 case $MAGIC_CMD in
6440[\\/*] | ?:[\\/]*)
6441 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6442 ;;
6443*)
6444 lt_save_MAGIC_CMD="$MAGIC_CMD"
6445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6446 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6447 for ac_dir in $ac_dummy; do
6448 IFS="$lt_save_ifs"
6449 test -z "$ac_dir" && ac_dir=.
6450 if test -f $ac_dir/${ac_tool_prefix}file; then
6451 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6452 if test -n "$file_magic_test_file"; then
6453 case $deplibs_check_method in
6454 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006455 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6457 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6458 $EGREP "$file_magic_regex" > /dev/null; then
6459 :
6460 else
mlcreech636a9952008-05-05 22:52:56 +00006461 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006462
a.rottmann9bc8b932004-02-29 15:18:31 +00006463*** Warning: the command libtool uses to detect shared libraries,
6464*** $file_magic_cmd, produces output that libtool cannot recognize.
6465*** The result is that libtool may fail to recognize shared libraries
6466*** as such. This will affect the creation of libtool libraries that
6467*** depend on shared libraries, but programs linked with such libtool
6468*** libraries will work regardless of this problem. Nevertheless, you
6469*** may want to report the problem to your system manager and/or to
6470*** bug-libtool@gnu.org
6471
mlcreech636a9952008-05-05 22:52:56 +00006472_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006473 fi ;;
6474 esac
6475 fi
6476 break
6477 fi
6478 done
6479 IFS="$lt_save_ifs"
6480 MAGIC_CMD="$lt_save_MAGIC_CMD"
6481 ;;
6482esac
6483fi
6484
6485MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6486if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006488$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006489else
drhf922ca42015-05-14 15:39:18 +00006490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006491$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006492fi
6493
mlcreech636a9952008-05-05 22:52:56 +00006494
6495
6496
6497
a.rottmann9bc8b932004-02-29 15:18:31 +00006498if test -z "$lt_cv_path_MAGIC_CMD"; then
6499 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006501$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006502if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006503 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006504else
6505 case $MAGIC_CMD in
6506[\\/*] | ?:[\\/]*)
6507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6508 ;;
6509*)
6510 lt_save_MAGIC_CMD="$MAGIC_CMD"
6511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6513 for ac_dir in $ac_dummy; do
6514 IFS="$lt_save_ifs"
6515 test -z "$ac_dir" && ac_dir=.
6516 if test -f $ac_dir/file; then
6517 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6518 if test -n "$file_magic_test_file"; then
6519 case $deplibs_check_method in
6520 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6524 $EGREP "$file_magic_regex" > /dev/null; then
6525 :
6526 else
mlcreech636a9952008-05-05 22:52:56 +00006527 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006528
6529*** Warning: the command libtool uses to detect shared libraries,
6530*** $file_magic_cmd, produces output that libtool cannot recognize.
6531*** The result is that libtool may fail to recognize shared libraries
6532*** as such. This will affect the creation of libtool libraries that
6533*** depend on shared libraries, but programs linked with such libtool
6534*** libraries will work regardless of this problem. Nevertheless, you
6535*** may want to report the problem to your system manager and/or to
6536*** bug-libtool@gnu.org
6537
mlcreech636a9952008-05-05 22:52:56 +00006538_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006539 fi ;;
6540 esac
6541 fi
6542 break
6543 fi
6544 done
6545 IFS="$lt_save_ifs"
6546 MAGIC_CMD="$lt_save_MAGIC_CMD"
6547 ;;
6548esac
6549fi
6550
6551MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6552if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006554$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006555else
drhf922ca42015-05-14 15:39:18 +00006556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006557$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006558fi
6559
mlcreech636a9952008-05-05 22:52:56 +00006560
a.rottmann9bc8b932004-02-29 15:18:31 +00006561 else
6562 MAGIC_CMD=:
6563 fi
6564fi
6565
6566 fi
6567 ;;
6568esac
6569
a.rottmann9bc8b932004-02-29 15:18:31 +00006570# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006571
a.rottmann9bc8b932004-02-29 15:18:31 +00006572lt_save_CC="$CC"
6573ac_ext=c
6574ac_cpp='$CPP $CPPFLAGS'
6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
6579
6580# Source file extension for C test sources.
6581ac_ext=c
6582
6583# Object file extension for compiled C test sources.
6584objext=o
6585objext=$objext
6586
6587# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006588lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006589
6590# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006591lt_simple_link_test_code='int main(){return(0);}'
6592
6593
6594
6595
6596
a.rottmann9bc8b932004-02-29 15:18:31 +00006597
6598
6599# If no C compiler was specified, use CC.
6600LTCC=${LTCC-"$CC"}
6601
vapier7f19c022007-02-17 14:46:31 +00006602# If no C compiler flags were specified, use CFLAGS.
6603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6604
a.rottmann9bc8b932004-02-29 15:18:31 +00006605# Allow CC to be a program name with arguments.
6606compiler=$CC
6607
mlcreech636a9952008-05-05 22:52:56 +00006608# Save the default compiler, since it gets overwritten when the other
6609# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6610compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006611
vapier7f19c022007-02-17 14:46:31 +00006612# save warnings/boilerplate of simple test code
6613ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006614echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6616_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006617$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006618
vapier7f19c022007-02-17 14:46:31 +00006619ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006620echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6622_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006623$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006624
6625
mlcreech636a9952008-05-05 22:52:56 +00006626if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006627
6628lt_prog_compiler_no_builtin_flag=
6629
6630if test "$GCC" = yes; then
6631 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6632
drhf922ca42015-05-14 15:39:18 +00006633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006634$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006635if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006636 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006637else
6638 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006639 ac_outfile=conftest.$ac_objext
6640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006641 lt_compiler_flag="-fno-rtti -fno-exceptions"
6642 # Insert the option either (1) after the last *FLAGS variable, or
6643 # (2) before a word containing "conftest.", or (3) at the end.
6644 # Note that $ac_compile itself does not contain backslashes and begins
6645 # with a dollar sign (not a hyphen), so the echo should work correctly.
6646 # The option is referenced via a variable to avoid confusing sed.
6647 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650 -e 's:$: $lt_compiler_flag:'`
drhf922ca42015-05-14 15:39:18 +00006651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006652 (eval "$lt_compile" 2>conftest.err)
6653 ac_status=$?
6654 cat conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00006655 echo "$as_me:6655: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006656 if (exit $ac_status) && test -s "$ac_outfile"; then
6657 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006658 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006659 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006662 lt_cv_prog_compiler_rtti_exceptions=yes
6663 fi
6664 fi
mlcreech636a9952008-05-05 22:52:56 +00006665 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006666
6667fi
drhf922ca42015-05-14 15:39:18 +00006668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006669$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006670
6671if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6673else
6674 :
6675fi
6676
6677fi
6678
mlcreech636a9952008-05-05 22:52:56 +00006679
6680
6681
6682
6683
6684 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006685lt_prog_compiler_pic=
6686lt_prog_compiler_static=
6687
drhf922ca42015-05-14 15:39:18 +00006688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006689$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006690
drh71eb93e2001-09-28 01:34:43 +00006691 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006692 lt_prog_compiler_wl='-Wl,'
6693 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006694
6695 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006696 aix*)
6697 # All AIX code is PIC.
6698 if test "$host_cpu" = ia64; then
6699 # AIX 5 now supports IA64 processor
6700 lt_prog_compiler_static='-Bstatic'
6701 fi
drh71eb93e2001-09-28 01:34:43 +00006702 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006703
drh71eb93e2001-09-28 01:34:43 +00006704 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006705 case $host_cpu in
6706 powerpc)
6707 # see comment about AmigaOS4 .so support
6708 lt_prog_compiler_pic='-fPIC'
6709 ;;
6710 m68k)
6711 # FIXME: we need at least 68020 code to build shared libraries, but
6712 # adding the `-m68020' flag to GCC prevents building anything better,
6713 # like `-m68040'.
6714 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6715 ;;
6716 esac
drh71eb93e2001-09-28 01:34:43 +00006717 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006718
mlcreech636a9952008-05-05 22:52:56 +00006719 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006720 # PIC is the default for these OSes.
6721 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006722
vapier6acb2cf2009-01-28 04:46:28 +00006723 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006724 # This hack is so that the source file can tell whether it is being
6725 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006726 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6727 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006728 lt_prog_compiler_pic='-DDLL_EXPORT'
6729 ;;
6730
drh71eb93e2001-09-28 01:34:43 +00006731 darwin* | rhapsody*)
6732 # PIC is the default on this platform
6733 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006734 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006735 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006736
a.rottmann9bc8b932004-02-29 15:18:31 +00006737 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006738 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6739 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6740 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006741 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006742 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006743 # +Z the default
6744 ;;
6745 *)
6746 lt_prog_compiler_pic='-fPIC'
6747 ;;
6748 esac
6749 ;;
6750
mlcreech636a9952008-05-05 22:52:56 +00006751 interix[3-9]*)
6752 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6753 # Instead, we relocate shared libraries at runtime.
6754 ;;
6755
6756 msdosdjgpp*)
6757 # Just because we use GCC doesn't mean we suddenly get shared libraries
6758 # on systems that don't support them.
6759 lt_prog_compiler_can_build_shared=no
6760 enable_shared=no
6761 ;;
6762
6763 *nto* | *qnx*)
6764 # QNX uses GNU C++, but need to define -shared option too, otherwise
6765 # it will coredump.
6766 lt_prog_compiler_pic='-fPIC -shared'
6767 ;;
6768
6769 sysv4*MP*)
6770 if test -d /usr/nec; then
6771 lt_prog_compiler_pic=-Kconform_pic
6772 fi
6773 ;;
6774
drh71eb93e2001-09-28 01:34:43 +00006775 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006776 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006777 ;;
6778 esac
6779 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006780 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006781 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006782 aix*)
6783 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006784 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006785 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006786 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006787 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006788 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006789 fi
6790 ;;
6791
vapier6acb2cf2009-01-28 04:46:28 +00006792 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006793 # This hack is so that the source file can tell whether it is being
6794 # built for inclusion in a dll (and should export symbols for example).
6795 lt_prog_compiler_pic='-DDLL_EXPORT'
6796 ;;
6797
a.rottmann84e63352003-03-24 09:42:16 +00006798 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006799 lt_prog_compiler_wl='-Wl,'
6800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6801 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006802 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006803 hppa*64*|ia64*)
6804 # +Z the default
6805 ;;
6806 *)
6807 lt_prog_compiler_pic='+Z'
6808 ;;
6809 esac
6810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6811 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006812 ;;
6813
6814 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006816 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006818 ;;
6819
mlcreech636a9952008-05-05 22:52:56 +00006820 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006821 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006822 # old Intel for x86_64 which still supported -KPIC.
6823 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006824 lt_prog_compiler_wl='-Wl,'
6825 lt_prog_compiler_pic='-KPIC'
6826 lt_prog_compiler_static='-static'
6827 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006828 # icc used to be incompatible with GCC.
6829 # ICC 10 doesn't accept -KPIC any more.
6830 icc* | ifort*)
6831 lt_prog_compiler_wl='-Wl,'
6832 lt_prog_compiler_pic='-fPIC'
6833 lt_prog_compiler_static='-static'
6834 ;;
6835 # Lahey Fortran 8.1.
6836 lf95*)
6837 lt_prog_compiler_wl='-Wl,'
6838 lt_prog_compiler_pic='--shared'
6839 lt_prog_compiler_static='--static'
6840 ;;
vapier7f19c022007-02-17 14:46:31 +00006841 pgcc* | pgf77* | pgf90* | pgf95*)
6842 # Portland Group compilers (*not* the Pentium gcc compiler,
6843 # which looks to be a dead project)
6844 lt_prog_compiler_wl='-Wl,'
6845 lt_prog_compiler_pic='-fpic'
6846 lt_prog_compiler_static='-Bstatic'
6847 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006848 ccc*)
6849 lt_prog_compiler_wl='-Wl,'
6850 # All Alpha code is PIC.
6851 lt_prog_compiler_static='-non_shared'
6852 ;;
mlcreech636a9952008-05-05 22:52:56 +00006853 xl*)
6854 # IBM XL C 8.0/Fortran 10.1 on PPC
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_pic='-qpic'
6857 lt_prog_compiler_static='-qstaticlink'
6858 ;;
6859 *)
6860 case `$CC -V 2>&1 | sed 5q` in
6861 *Sun\ C*)
6862 # Sun C 5.9
6863 lt_prog_compiler_pic='-KPIC'
6864 lt_prog_compiler_static='-Bstatic'
6865 lt_prog_compiler_wl='-Wl,'
6866 ;;
6867 *Sun\ F*)
6868 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6869 lt_prog_compiler_pic='-KPIC'
6870 lt_prog_compiler_static='-Bstatic'
6871 lt_prog_compiler_wl=''
6872 ;;
6873 esac
6874 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006875 esac
drh71eb93e2001-09-28 01:34:43 +00006876 ;;
6877
mlcreech636a9952008-05-05 22:52:56 +00006878 newsos6)
6879 lt_prog_compiler_pic='-KPIC'
6880 lt_prog_compiler_static='-Bstatic'
6881 ;;
6882
6883 *nto* | *qnx*)
6884 # QNX uses GNU C++, but need to define -shared option too, otherwise
6885 # it will coredump.
6886 lt_prog_compiler_pic='-fPIC -shared'
6887 ;;
6888
drh71eb93e2001-09-28 01:34:43 +00006889 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006890 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006891 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006892 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006893 ;;
6894
mlcreech636a9952008-05-05 22:52:56 +00006895 rdos*)
6896 lt_prog_compiler_static='-non_shared'
6897 ;;
6898
drh71eb93e2001-09-28 01:34:43 +00006899 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006902 case $cc_basename in
6903 f77* | f90* | f95*)
6904 lt_prog_compiler_wl='-Qoption ld ';;
6905 *)
6906 lt_prog_compiler_wl='-Wl,';;
6907 esac
drh71eb93e2001-09-28 01:34:43 +00006908 ;;
6909
6910 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 lt_prog_compiler_wl='-Qoption ld '
6912 lt_prog_compiler_pic='-PIC'
6913 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006914 ;;
6915
vapier7f19c022007-02-17 14:46:31 +00006916 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006917 lt_prog_compiler_wl='-Wl,'
6918 lt_prog_compiler_pic='-KPIC'
6919 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006920 ;;
6921
6922 sysv4*MP*)
6923 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 lt_prog_compiler_pic='-Kconform_pic'
6925 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006926 fi
6927 ;;
6928
vapier7f19c022007-02-17 14:46:31 +00006929 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6930 lt_prog_compiler_wl='-Wl,'
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 ;;
6934
6935 unicos*)
6936 lt_prog_compiler_wl='-Wl,'
6937 lt_prog_compiler_can_build_shared=no
6938 ;;
6939
a.rottmann9bc8b932004-02-29 15:18:31 +00006940 uts4*)
6941 lt_prog_compiler_pic='-pic'
6942 lt_prog_compiler_static='-Bstatic'
6943 ;;
6944
drh71eb93e2001-09-28 01:34:43 +00006945 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006946 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006947 ;;
6948 esac
6949 fi
6950
mlcreech636a9952008-05-05 22:52:56 +00006951case $host_os in
6952 # For platforms which do not support PIC, -DPIC is meaningless:
6953 *djgpp*)
6954 lt_prog_compiler_pic=
6955 ;;
6956 *)
6957 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6958 ;;
6959esac
drhf922ca42015-05-14 15:39:18 +00006960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006961$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006962
6963
6964
6965
6966
drh71eb93e2001-09-28 01:34:43 +00006967
a.rottmann9bc8b932004-02-29 15:18:31 +00006968#
6969# Check to make sure the PIC flag actually works.
6970#
6971if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006973$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006974if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006975 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006976else
mlcreech636a9952008-05-05 22:52:56 +00006977 lt_cv_prog_compiler_pic_works=no
6978 ac_outfile=conftest.$ac_objext
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006980 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6981 # Insert the option either (1) after the last *FLAGS variable, or
6982 # (2) before a word containing "conftest.", or (3) at the end.
6983 # Note that $ac_compile itself does not contain backslashes and begins
6984 # with a dollar sign (not a hyphen), so the echo should work correctly.
6985 # The option is referenced via a variable to avoid confusing sed.
6986 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
drhf922ca42015-05-14 15:39:18 +00006990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006991 (eval "$lt_compile" 2>conftest.err)
6992 ac_status=$?
6993 cat conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00006994 echo "$as_me:6994: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006995 if (exit $ac_status) && test -s "$ac_outfile"; then
6996 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006997 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006998 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007001 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007002 fi
7003 fi
mlcreech636a9952008-05-05 22:52:56 +00007004 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007005
a.rottmann9bc8b932004-02-29 15:18:31 +00007006fi
drhf922ca42015-05-14 15:39:18 +00007007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007008$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007009
mlcreech636a9952008-05-05 22:52:56 +00007010if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 case $lt_prog_compiler_pic in
7012 "" | " "*) ;;
7013 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7014 esac
drh71eb93e2001-09-28 01:34:43 +00007015else
a.rottmann9bc8b932004-02-29 15:18:31 +00007016 lt_prog_compiler_pic=
7017 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007018fi
7019
a.rottmann84e63352003-03-24 09:42:16 +00007020fi
mlcreech636a9952008-05-05 22:52:56 +00007021
7022
7023
7024
7025
a.rottmann84e63352003-03-24 09:42:16 +00007026
vapier7f19c022007-02-17 14:46:31 +00007027#
7028# Check to make sure the static flag actually works.
7029#
7030wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007032$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007033if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007034 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007035else
mlcreech636a9952008-05-05 22:52:56 +00007036 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007037 save_LDFLAGS="$LDFLAGS"
7038 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007039 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007040 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7041 # The linker can only warn and ignore the option if not recognized
7042 # So say no if there are warnings
7043 if test -s conftest.err; then
7044 # Append any errors to the config.log.
7045 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007046 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7048 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007049 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007050 fi
7051 else
mlcreech636a9952008-05-05 22:52:56 +00007052 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007053 fi
7054 fi
mlcreech636a9952008-05-05 22:52:56 +00007055 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007056 LDFLAGS="$save_LDFLAGS"
7057
7058fi
drhf922ca42015-05-14 15:39:18 +00007059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007060$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007061
mlcreech636a9952008-05-05 22:52:56 +00007062if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007063 :
7064else
7065 lt_prog_compiler_static=
7066fi
7067
7068
mlcreech636a9952008-05-05 22:52:56 +00007069
7070
7071
7072
7073
drhf922ca42015-05-14 15:39:18 +00007074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007075$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007076if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007077 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007078else
a.rottmann9bc8b932004-02-29 15:18:31 +00007079 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007080 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007081 mkdir conftest
7082 cd conftest
7083 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007085
a.rottmann9bc8b932004-02-29 15:18:31 +00007086 lt_compiler_flag="-o out/conftest2.$ac_objext"
7087 # Insert the option either (1) after the last *FLAGS variable, or
7088 # (2) before a word containing "conftest.", or (3) at the end.
7089 # Note that $ac_compile itself does not contain backslashes and begins
7090 # with a dollar sign (not a hyphen), so the echo should work correctly.
7091 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7094 -e 's:$: $lt_compiler_flag:'`
drhf922ca42015-05-14 15:39:18 +00007095 (eval echo "\"\$as_me:7095: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007096 (eval "$lt_compile" 2>out/conftest.err)
7097 ac_status=$?
7098 cat out/conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00007099 echo "$as_me:7099: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007100 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7101 then
7102 # The compiler can only warn and ignore the option if not recognized
7103 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007104 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007105 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7106 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 lt_cv_prog_compiler_c_o=yes
7108 fi
7109 fi
vapier7f19c022007-02-17 14:46:31 +00007110 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007111 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007112 # SGI C++ compiler will create directory out/ii_files/ for
7113 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007114 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7115 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007116 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007117 $RM -r conftest
7118 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007119
7120fi
drhf922ca42015-05-14 15:39:18 +00007121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007122$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007123
7124
7125
7126
7127
7128
drhf922ca42015-05-14 15:39:18 +00007129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007130$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007131if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007132 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007133else
7134 lt_cv_prog_compiler_c_o=no
7135 $RM -r conftest 2>/dev/null
7136 mkdir conftest
7137 cd conftest
7138 mkdir out
7139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7140
7141 lt_compiler_flag="-o out/conftest2.$ac_objext"
7142 # Insert the option either (1) after the last *FLAGS variable, or
7143 # (2) before a word containing "conftest.", or (3) at the end.
7144 # Note that $ac_compile itself does not contain backslashes and begins
7145 # with a dollar sign (not a hyphen), so the echo should work correctly.
7146 lt_compile=`echo "$ac_compile" | $SED \
7147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7149 -e 's:$: $lt_compiler_flag:'`
drhf922ca42015-05-14 15:39:18 +00007150 (eval echo "\"\$as_me:7150: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007151 (eval "$lt_compile" 2>out/conftest.err)
7152 ac_status=$?
7153 cat out/conftest.err >&5
drhf922ca42015-05-14 15:39:18 +00007154 echo "$as_me:7154: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7156 then
7157 # The compiler can only warn and ignore the option if not recognized
7158 # So say no if there are warnings
7159 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7162 lt_cv_prog_compiler_c_o=yes
7163 fi
7164 fi
7165 chmod u+w . 2>&5
7166 $RM conftest*
7167 # SGI C++ compiler will create directory out/ii_files/ for
7168 # template instantiation
7169 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7170 $RM out/* && rmdir out
7171 cd ..
7172 $RM -r conftest
7173 $RM conftest*
7174
7175fi
drhf922ca42015-05-14 15:39:18 +00007176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007177$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007178
7179
drh71eb93e2001-09-28 01:34:43 +00007180
a.rottmann84e63352003-03-24 09:42:16 +00007181
drh71eb93e2001-09-28 01:34:43 +00007182hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007183if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007184 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007186$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007187 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007188 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007189 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7190 touch conftest.a
7191 ln conftest.a conftest.b 2>&5 || hard_links=no
7192 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007194$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007195 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007196 { $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 +00007197$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007198 need_locks=warn
7199 fi
7200else
7201 need_locks=no
7202fi
7203
mlcreech636a9952008-05-05 22:52:56 +00007204
7205
7206
7207
7208
drhf922ca42015-05-14 15:39:18 +00007209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007210$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007211
7212 runpath_var=
7213 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007214 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007215 archive_cmds=
7216 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007217 compiler_needs_object=no
7218 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007219 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007220 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7221 hardcode_automatic=no
7222 hardcode_direct=no
7223 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007224 hardcode_libdir_flag_spec=
7225 hardcode_libdir_flag_spec_ld=
7226 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007227 hardcode_minus_L=no
7228 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007229 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007230 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007231 module_cmds=
7232 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007233 old_archive_from_new_cmds=
7234 old_archive_from_expsyms_cmds=
7235 thread_safe_flag_spec=
7236 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007237 # include_expsyms should be a list of space-separated symbols to be *always*
7238 # included in the symbol list
7239 include_expsyms=
7240 # exclude_expsyms can be an extended regexp of symbols to exclude
7241 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7242 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7243 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007244 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7246 # platforms (ab)use it in PIC code, but their linkers get confused if
7247 # the symbol is explicitly referenced. Since portable code cannot
7248 # rely on this symbol name, it's probably fine to never include it in
7249 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007250 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 extract_expsyms_cmds=
7252
7253 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007254 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7256 # When not using gcc, we currently assume that we are using
7257 # Microsoft Visual C++.
7258 if test "$GCC" != yes; then
7259 with_gnu_ld=no
7260 fi
7261 ;;
vapier7f19c022007-02-17 14:46:31 +00007262 interix*)
7263 # we just hope/assume this is gcc and not c89 (= MSVC++)
7264 with_gnu_ld=yes
7265 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 openbsd*)
7267 with_gnu_ld=no
7268 ;;
7269 esac
7270
7271 ld_shlibs=yes
7272 if test "$with_gnu_ld" = yes; then
7273 # If archive_cmds runs LD, not CC, wlarc should be empty
7274 wlarc='${wl}'
7275
vapier7f19c022007-02-17 14:46:31 +00007276 # Set some defaults for GNU ld with shared library support. These
7277 # are reset later if shared libraries are not supported. Putting them
7278 # here allows them to be overridden if necessary.
7279 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007281 export_dynamic_flag_spec='${wl}--export-dynamic'
7282 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007283 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7284 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7285 else
7286 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007287 fi
7288 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007289 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007290 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7293 *\ 2.11.*) ;; # other 2.11 versions
7294 *) supports_anon_versioning=yes ;;
7295 esac
7296
a.rottmann9bc8b932004-02-29 15:18:31 +00007297 # See if GNU ld supports shared libraries.
7298 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007299 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007300 # On AIX/PPC, the GNU linker is very broken
7301 if test "$host_cpu" != ia64; then
7302 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007303 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007304
7305*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7306*** to be unable to reliably create shared libraries on AIX.
7307*** Therefore, libtool is disabling shared libraries support. If you
7308*** really care for shared libraries, you may want to modify your PATH
7309*** so that a non-GNU linker is found, and then restart.
7310
mlcreech636a9952008-05-05 22:52:56 +00007311_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007312 fi
7313 ;;
7314
7315 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007316 case $host_cpu in
7317 powerpc)
7318 # see comment about AmigaOS4 .so support
7319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7320 archive_expsym_cmds=''
7321 ;;
7322 m68k)
7323 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)'
7324 hardcode_libdir_flag_spec='-L$libdir'
7325 hardcode_minus_L=yes
7326 ;;
7327 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007328 ;;
7329
7330 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007332 allow_undefined_flag=unsupported
7333 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7334 # support --undefined. This deserves some investigation. FIXME
7335 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336 else
7337 ld_shlibs=no
7338 fi
7339 ;;
7340
vapier6acb2cf2009-01-28 04:46:28 +00007341 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007342 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007343 # as there is no search path for DLLs.
7344 hardcode_libdir_flag_spec='-L$libdir'
7345 allow_undefined_flag=unsupported
7346 always_export_symbols=no
7347 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007348 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 +00007349
mlcreech636a9952008-05-05 22:52:56 +00007350 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007351 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 +00007352 # If the export-symbols file already is a .def file (1st line
7353 # is EXPORTS), use it as is; otherwise, prepend...
7354 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7355 cp $export_symbols $output_objdir/$soname.def;
7356 else
7357 echo EXPORTS > $output_objdir/$soname.def;
7358 cat $export_symbols >> $output_objdir/$soname.def;
7359 fi~
vapier7f19c022007-02-17 14:46:31 +00007360 $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 +00007361 else
7362 ld_shlibs=no
7363 fi
7364 ;;
7365
mlcreech636a9952008-05-05 22:52:56 +00007366 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007367 hardcode_direct=no
7368 hardcode_shlibpath_var=no
7369 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7370 export_dynamic_flag_spec='${wl}-E'
7371 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7372 # Instead, shared libraries are loaded at an image base (0x10000000 by
7373 # default) and relocated if they conflict, which is a slow very memory
7374 # consuming and fragmenting process. To avoid this, we pick a random,
7375 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7376 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7377 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7378 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'
7379 ;;
7380
mlcreech636a9952008-05-05 22:52:56 +00007381 gnu* | linux* | tpf* | k*bsd*-gnu)
7382 tmp_diet=no
7383 if test "$host_os" = linux-dietlibc; then
7384 case $cc_basename in
7385 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7386 esac
7387 fi
7388 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7389 && test "$tmp_diet" = no
7390 then
vapier7f19c022007-02-17 14:46:31 +00007391 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007392 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007393 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007394 pgcc*) # Portland Group C compiler
7395 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 +00007396 tmp_addflag=' $pic_flag'
7397 ;;
7398 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007399 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 +00007400 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007401 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007402 tmp_addflag=' -i_dynamic' ;;
7403 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7404 tmp_addflag=' -i_dynamic -nofor_main' ;;
7405 ifc* | ifort*) # Intel Fortran compiler
7406 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007407 lf95*) # Lahey Fortran 8.1
7408 whole_archive_flag_spec=
7409 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007410 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7411 tmp_sharedflag='-qmkshrobj'
7412 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007413 esac
mlcreech636a9952008-05-05 22:52:56 +00007414 case `$CC -V 2>&1 | sed 5q` in
7415 *Sun\ C*) # Sun C 5.9
7416 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'
7417 compiler_needs_object=yes
7418 tmp_sharedflag='-G' ;;
7419 *Sun\ F*) # Sun Fortran 8.3
7420 tmp_sharedflag='-G' ;;
7421 esac
7422 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007423
mlcreech636a9952008-05-05 22:52:56 +00007424 if test "x$supports_anon_versioning" = xyes; then
7425 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7427 echo "local: *; };" >> $output_objdir/$libname.ver~
7428 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7429 fi
7430
7431 case $cc_basename in
7432 xlf*)
7433 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7434 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7435 hardcode_libdir_flag_spec=
7436 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7437 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7438 if test "x$supports_anon_versioning" = xyes; then
7439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7441 echo "local: *; };" >> $output_objdir/$libname.ver~
7442 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7443 fi
7444 ;;
7445 esac
vapier7f19c022007-02-17 14:46:31 +00007446 else
mlcreech636a9952008-05-05 22:52:56 +00007447 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007448 fi
7449 ;;
7450
7451 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007453 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7454 wlarc=
7455 else
7456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7458 fi
7459 ;;
7460
vapier7f19c022007-02-17 14:46:31 +00007461 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007462 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007463 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007464 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007465
7466*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7467*** create shared libraries on Solaris systems. Therefore, libtool
7468*** is disabling shared libraries support. We urge you to upgrade GNU
7469*** binutils to release 2.9.1 or newer. Another option is to modify
7470*** your PATH or compiler configuration so that the native linker is
7471*** used, and then restart.
7472
mlcreech636a9952008-05-05 22:52:56 +00007473_LT_EOF
7474 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7477 else
7478 ld_shlibs=no
7479 fi
7480 ;;
7481
vapier7f19c022007-02-17 14:46:31 +00007482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7483 case `$LD -v 2>&1` in
7484 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7485 ld_shlibs=no
7486 cat <<_LT_EOF 1>&2
7487
7488*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7489*** reliably create shared libraries on SCO systems. Therefore, libtool
7490*** is disabling shared libraries support. We urge you to upgrade GNU
7491*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7492*** your PATH or compiler configuration so that the native linker is
7493*** used, and then restart.
7494
7495_LT_EOF
7496 ;;
7497 *)
mlcreech636a9952008-05-05 22:52:56 +00007498 # For security reasons, it is highly recommended that you always
7499 # use absolute paths for naming shared libraries, and exclude the
7500 # DT_RUNPATH tag from executables and libraries. But doing so
7501 # requires that you compile everything twice, which is a pain.
7502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7505 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 +00007506 else
7507 ld_shlibs=no
7508 fi
7509 ;;
7510 esac
7511 ;;
7512
a.rottmann9bc8b932004-02-29 15:18:31 +00007513 sunos4*)
7514 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7515 wlarc=
7516 hardcode_direct=yes
7517 hardcode_shlibpath_var=no
7518 ;;
7519
a.rottmann9bc8b932004-02-29 15:18:31 +00007520 *)
mlcreech636a9952008-05-05 22:52:56 +00007521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7524 else
7525 ld_shlibs=no
7526 fi
7527 ;;
7528 esac
7529
vapier7f19c022007-02-17 14:46:31 +00007530 if test "$ld_shlibs" = no; then
7531 runpath_var=
7532 hardcode_libdir_flag_spec=
7533 export_dynamic_flag_spec=
7534 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007535 fi
7536 else
7537 # PORTME fill in a description of your system's linker (not GNU ld)
7538 case $host_os in
7539 aix3*)
7540 allow_undefined_flag=unsupported
7541 always_export_symbols=yes
7542 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'
7543 # Note: this linker hardcodes the directories in LIBPATH if there
7544 # are no directories specified by -L.
7545 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007546 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007547 # Neither direct hardcoding nor static linking is supported with a
7548 # broken collect2.
7549 hardcode_direct=unsupported
7550 fi
7551 ;;
7552
mlcreech636a9952008-05-05 22:52:56 +00007553 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007554 if test "$host_cpu" = ia64; then
7555 # On IA64, the linker does run time linking by default, so we don't
7556 # have to do anything special.
7557 aix_use_runtimelinking=no
7558 exp_sym_flag='-Bexport'
7559 no_entry_flag=""
7560 else
7561 # If we're using GNU nm, then we don't want the "-C" option.
7562 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007563 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7564 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 +00007565 else
mlcreech636a9952008-05-05 22:52:56 +00007566 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 +00007567 fi
7568 aix_use_runtimelinking=no
7569
7570 # Test if we are trying to use run time linking or normal
7571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7572 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007573 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007574 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007575 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7576 aix_use_runtimelinking=yes
7577 break
7578 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007579 done
vapier7f19c022007-02-17 14:46:31 +00007580 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007581 esac
7582
7583 exp_sym_flag='-bexport'
7584 no_entry_flag='-bnoentry'
7585 fi
7586
7587 # When large executables or shared objects are built, AIX ld can
7588 # have problems creating the table of contents. If linking a library
7589 # or program results in "error TOC overflow" add -mminimal-toc to
7590 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7591 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7592
7593 archive_cmds=''
7594 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007595 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007596 hardcode_libdir_separator=':'
7597 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007598 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007599
7600 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007601 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007602 # We only want to do this on AIX 4.2 and lower, the check
7603 # below for broken collect2 doesn't work under 4.3+
7604 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007605 if test -f "$collect2name" &&
7606 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007607 then
mlcreech636a9952008-05-05 22:52:56 +00007608 # We have reworked collect2
7609 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007610 else
mlcreech636a9952008-05-05 22:52:56 +00007611 # We have old collect2
7612 hardcode_direct=unsupported
7613 # It fails to find uninstalled libraries when the uninstalled
7614 # path is not listed in the libpath. Setting hardcode_minus_L
7615 # to unsupported forces relinking
7616 hardcode_minus_L=yes
7617 hardcode_libdir_flag_spec='-L$libdir'
7618 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 fi
vapier7f19c022007-02-17 14:46:31 +00007620 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007621 esac
7622 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007623 if test "$aix_use_runtimelinking" = yes; then
7624 shared_flag="$shared_flag "'${wl}-G'
7625 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007626 else
7627 # not using gcc
7628 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7630 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 shared_flag='-G'
7632 else
vapier7f19c022007-02-17 14:46:31 +00007633 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007634 shared_flag='${wl}-G'
7635 else
7636 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007637 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007638 fi
7639 fi
7640
vapier6acb2cf2009-01-28 04:46:28 +00007641 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007642 # It seems that -bexpall does not export symbols beginning with
7643 # underscore (_), so it is better to generate a list of symbols to export.
7644 always_export_symbols=yes
7645 if test "$aix_use_runtimelinking" = yes; then
7646 # Warning - without using the other runtime loading flags (-brtl),
7647 # -berok will link without error, but may produce a broken library.
7648 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007649 # Determine the default libpath from the value encoded in an
7650 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007652/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007653
a.rottmann84e63352003-03-24 09:42:16 +00007654int
7655main ()
7656{
a.rottmann9bc8b932004-02-29 15:18:31 +00007657
a.rottmann84e63352003-03-24 09:42:16 +00007658 ;
7659 return 0;
7660}
7661_ACEOF
drhf922ca42015-05-14 15:39:18 +00007662if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007663
mlcreech636a9952008-05-05 22:52:56 +00007664lt_aix_libpath_sed='
7665 /Import File Strings/,/^$/ {
7666 /^0/ {
7667 s/^0 *\(.*\)$/\1/
7668 p
7669 }
7670 }'
7671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007672# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007673if test -z "$aix_libpath"; then
7674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7675fi
a.rottmann84e63352003-03-24 09:42:16 +00007676fi
drhf922ca42015-05-14 15:39:18 +00007677rm -f core conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007680
mlcreech636a9952008-05-05 22:52:56 +00007681 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7682 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"
7683 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007684 if test "$host_cpu" = ia64; then
7685 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7686 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007687 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 +00007688 else
mlcreech636a9952008-05-05 22:52:56 +00007689 # Determine the default libpath from the value encoded in an
7690 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007692/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007693
a.rottmann9bc8b932004-02-29 15:18:31 +00007694int
7695main ()
7696{
a.rottmann84e63352003-03-24 09:42:16 +00007697
a.rottmann9bc8b932004-02-29 15:18:31 +00007698 ;
7699 return 0;
7700}
7701_ACEOF
drhf922ca42015-05-14 15:39:18 +00007702if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007703
mlcreech636a9952008-05-05 22:52:56 +00007704lt_aix_libpath_sed='
7705 /Import File Strings/,/^$/ {
7706 /^0/ {
7707 s/^0 *\(.*\)$/\1/
7708 p
7709 }
7710 }'
7711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007712# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007713if test -z "$aix_libpath"; then
7714 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7715fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007716fi
drhf922ca42015-05-14 15:39:18 +00007717rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007720
a.rottmann9bc8b932004-02-29 15:18:31 +00007721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7722 # Warning - without using the other run time loading flags,
7723 # -berok will link without error, but may produce a broken library.
7724 no_undefined_flag=' ${wl}-bernotok'
7725 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007726 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007727 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007728 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007729 # This is similar to how AIX traditionally builds its shared libraries.
7730 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 +00007731 fi
7732 fi
a.rottmann84e63352003-03-24 09:42:16 +00007733 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007734
7735 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007736 case $host_cpu in
7737 powerpc)
7738 # see comment about AmigaOS4 .so support
7739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7740 archive_expsym_cmds=''
7741 ;;
7742 m68k)
7743 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)'
7744 hardcode_libdir_flag_spec='-L$libdir'
7745 hardcode_minus_L=yes
7746 ;;
7747 esac
a.rottmann84e63352003-03-24 09:42:16 +00007748 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007749
vapier7f19c022007-02-17 14:46:31 +00007750 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007751 export_dynamic_flag_spec=-rdynamic
7752 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007753
vapier6acb2cf2009-01-28 04:46:28 +00007754 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 # When not using gcc, we currently assume that we are using
7756 # Microsoft Visual C++.
7757 # hardcode_libdir_flag_spec is actually meaningless, as there is
7758 # no search path for DLLs.
7759 hardcode_libdir_flag_spec=' '
7760 allow_undefined_flag=unsupported
7761 # Tell ltmain to make .lib files, not .a files.
7762 libext=lib
7763 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007764 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007765 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007766 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 +00007767 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007768 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007769 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007770 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007771 fix_srcfile_path='`cygpath -w "$srcfile"`'
7772 enable_shared_with_static_runtimes=yes
7773 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007774
a.rottmann9bc8b932004-02-29 15:18:31 +00007775 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007776
7777
7778 archive_cmds_need_lc=no
7779 hardcode_direct=no
7780 hardcode_automatic=yes
7781 hardcode_shlibpath_var=unsupported
7782 whole_archive_flag_spec=''
7783 link_all_deplibs=yes
7784 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007785 case $cc_basename in
7786 ifort*) _lt_dar_can_shared=yes ;;
7787 *) _lt_dar_can_shared=$GCC ;;
7788 esac
7789 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007790 output_verbose_link_cmd=echo
7791 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7792 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7793 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}"
7794 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}"
7795
7796 else
7797 ld_shlibs=no
7798 fi
7799
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007801
a.rottmann9bc8b932004-02-29 15:18:31 +00007802 dgux*)
7803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7804 hardcode_libdir_flag_spec='-L$libdir'
7805 hardcode_shlibpath_var=no
7806 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007807
a.rottmann9bc8b932004-02-29 15:18:31 +00007808 freebsd1*)
7809 ld_shlibs=no
7810 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007811
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7813 # support. Future versions do this automatically, but an explicit c++rt0.o
7814 # does not break anything, and helps significantly (at the cost of a little
7815 # extra space).
7816 freebsd2.2*)
7817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7818 hardcode_libdir_flag_spec='-R$libdir'
7819 hardcode_direct=yes
7820 hardcode_shlibpath_var=no
7821 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7824 freebsd2*)
7825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7826 hardcode_direct=yes
7827 hardcode_minus_L=yes
7828 hardcode_shlibpath_var=no
7829 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007830
a.rottmann9bc8b932004-02-29 15:18:31 +00007831 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007832 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007833 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7834 hardcode_libdir_flag_spec='-R$libdir'
7835 hardcode_direct=yes
7836 hardcode_shlibpath_var=no
7837 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007838
a.rottmann9bc8b932004-02-29 15:18:31 +00007839 hpux9*)
7840 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007841 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 +00007842 else
mlcreech636a9952008-05-05 22:52:56 +00007843 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 +00007844 fi
7845 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7846 hardcode_libdir_separator=:
7847 hardcode_direct=yes
7848
7849 # hardcode_minus_L: Not really in the search PATH,
7850 # but as the default location of the library.
7851 hardcode_minus_L=yes
7852 export_dynamic_flag_spec='${wl}-E'
7853 ;;
7854
vapier7f19c022007-02-17 14:46:31 +00007855 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007857 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7858 else
7859 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7860 fi
7861 if test "$with_gnu_ld" = no; then
7862 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007863 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007864 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007865 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007866 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007867 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007868 # hardcode_minus_L: Not really in the search PATH,
7869 # but as the default location of the library.
7870 hardcode_minus_L=yes
7871 fi
7872 ;;
7873
7874 hpux11*)
7875 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7876 case $host_cpu in
7877 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007878 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7879 ;;
vapier7f19c022007-02-17 14:46:31 +00007880 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007882 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007883 *)
7884 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7885 ;;
7886 esac
7887 else
vapier7f19c022007-02-17 14:46:31 +00007888 case $host_cpu in
7889 hppa*64*)
7890 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7891 ;;
7892 ia64*)
7893 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007894 ;;
7895 *)
vapier7f19c022007-02-17 14:46:31 +00007896 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 +00007897 ;;
7898 esac
7899 fi
7900 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7902 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007903
vapier7f19c022007-02-17 14:46:31 +00007904 case $host_cpu in
7905 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007906 hardcode_direct=no
7907 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 ;;
7909 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007910 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007911 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007912 export_dynamic_flag_spec='${wl}-E'
7913
7914 # hardcode_minus_L: Not really in the search PATH,
7915 # but as the default location of the library.
7916 hardcode_minus_L=yes
7917 ;;
7918 esac
7919 fi
7920 ;;
7921
7922 irix5* | irix6* | nonstopux*)
7923 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007924 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'
7925 # Try to use the -exported_symbol ld option, if it does not
7926 # work, assume that -exports_file does not work either and
7927 # implicitly export all symbols.
7928 save_LDFLAGS="$LDFLAGS"
7929 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007932int foo(void) {}
7933_ACEOF
drhf922ca42015-05-14 15:39:18 +00007934if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007935 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'
7936
mlcreech636a9952008-05-05 22:52:56 +00007937fi
drhf922ca42015-05-14 15:39:18 +00007938rm -f core conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007940 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007941 else
mlcreech636a9952008-05-05 22:52:56 +00007942 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'
7943 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 +00007944 fi
mlcreech636a9952008-05-05 22:52:56 +00007945 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7947 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007948 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007949 link_all_deplibs=yes
7950 ;;
7951
vapier7f19c022007-02-17 14:46:31 +00007952 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7955 else
7956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7957 fi
7958 hardcode_libdir_flag_spec='-R$libdir'
7959 hardcode_direct=yes
7960 hardcode_shlibpath_var=no
7961 ;;
7962
7963 newsos6)
7964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7965 hardcode_direct=yes
7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967 hardcode_libdir_separator=:
7968 hardcode_shlibpath_var=no
7969 ;;
7970
mlcreech636a9952008-05-05 22:52:56 +00007971 *nto* | *qnx*)
7972 ;;
7973
a.rottmann9bc8b932004-02-29 15:18:31 +00007974 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007975 if test -f /usr/libexec/ld.so; then
7976 hardcode_direct=yes
7977 hardcode_shlibpath_var=no
7978 hardcode_direct_absolute=yes
7979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7983 export_dynamic_flag_spec='${wl}-E'
7984 else
7985 case $host_os in
7986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7988 hardcode_libdir_flag_spec='-R$libdir'
7989 ;;
7990 *)
7991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7993 ;;
7994 esac
7995 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007996 else
mlcreech636a9952008-05-05 22:52:56 +00007997 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007998 fi
7999 ;;
8000
8001 os2*)
8002 hardcode_libdir_flag_spec='-L$libdir'
8003 hardcode_minus_L=yes
8004 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008005 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'
8006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008007 ;;
8008
8009 osf3*)
8010 if test "$GCC" = yes; then
8011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008012 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 +00008013 else
8014 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008015 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 +00008016 fi
mlcreech636a9952008-05-05 22:52:56 +00008017 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019 hardcode_libdir_separator=:
8020 ;;
8021
8022 osf4* | osf5*) # as osf3* with the addition of -msym flag
8023 if test "$GCC" = yes; then
8024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008025 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 +00008026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8027 else
8028 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008029 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'
8030 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~
8031 $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 +00008032
8033 # Both c and cxx compiler support -rpath directly
8034 hardcode_libdir_flag_spec='-rpath $libdir'
8035 fi
mlcreech636a9952008-05-05 22:52:56 +00008036 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008037 hardcode_libdir_separator=:
8038 ;;
8039
a.rottmann9bc8b932004-02-29 15:18:31 +00008040 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008041 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008042 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008043 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8046 $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 +00008047 else
mlcreech636a9952008-05-05 22:52:56 +00008048 case `$CC -V 2>&1` in
8049 *"Compilers 5.0"*)
8050 wlarc=''
8051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8054 ;;
8055 *)
8056 wlarc='${wl}'
8057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8060 ;;
8061 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008062 fi
8063 hardcode_libdir_flag_spec='-R$libdir'
8064 hardcode_shlibpath_var=no
8065 case $host_os in
8066 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008067 *)
mlcreech636a9952008-05-05 22:52:56 +00008068 # The compiler driver will combine and reorder linker options,
8069 # but understands `-z linker_flag'. GCC discards it without `$wl',
8070 # but is careful enough not to reorder.
8071 # Supported since Solaris 2.6 (maybe 2.5.1?)
8072 if test "$GCC" = yes; then
8073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8074 else
8075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8076 fi
8077 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008078 esac
8079 link_all_deplibs=yes
8080 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008081
a.rottmann9bc8b932004-02-29 15:18:31 +00008082 sunos4*)
8083 if test "x$host_vendor" = xsequent; then
8084 # Use $CC to link under sequent, because it throws in some extra .o
8085 # files that make .init and .fini sections work.
8086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8087 else
8088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8089 fi
8090 hardcode_libdir_flag_spec='-L$libdir'
8091 hardcode_direct=yes
8092 hardcode_minus_L=yes
8093 hardcode_shlibpath_var=no
8094 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008095
a.rottmann9bc8b932004-02-29 15:18:31 +00008096 sysv4)
8097 case $host_vendor in
8098 sni)
8099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8100 hardcode_direct=yes # is this really true???
8101 ;;
8102 siemens)
8103 ## LD is ld it makes a PLAMLIB
8104 ## CC just makes a GrossModule.
8105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8106 reload_cmds='$CC -r -o $output$reload_objs'
8107 hardcode_direct=no
8108 ;;
8109 motorola)
8110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8112 ;;
8113 esac
8114 runpath_var='LD_RUN_PATH'
8115 hardcode_shlibpath_var=no
8116 ;;
8117
8118 sysv4.3*)
8119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120 hardcode_shlibpath_var=no
8121 export_dynamic_flag_spec='-Bexport'
8122 ;;
8123
8124 sysv4*MP*)
8125 if test -d /usr/nec; then
8126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8127 hardcode_shlibpath_var=no
8128 runpath_var=LD_RUN_PATH
8129 hardcode_runpath_var=yes
8130 ld_shlibs=yes
8131 fi
8132 ;;
8133
mlcreech636a9952008-05-05 22:52:56 +00008134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008135 no_undefined_flag='${wl}-z,text'
8136 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008137 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008138 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008139
a.rottmann9bc8b932004-02-29 15:18:31 +00008140 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8142 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 +00008143 else
vapier7f19c022007-02-17 14:46:31 +00008144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8145 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 +00008146 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008147 ;;
8148
vapier7f19c022007-02-17 14:46:31 +00008149 sysv5* | sco3.2v5* | sco5v6*)
8150 # Note: We can NOT use -z defs as we might desire, because we do not
8151 # link with -lc, and that would cause any symbols used from libc to
8152 # always be unresolved, which means just about no library would
8153 # ever link correctly. If we're not using GNU ld we use -z text
8154 # though, which does catch some bad symbols but isn't as heavy-handed
8155 # as -z defs.
8156 no_undefined_flag='${wl}-z,text'
8157 allow_undefined_flag='${wl}-z,nodefs'
8158 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008159 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008161 hardcode_libdir_separator=':'
8162 link_all_deplibs=yes
8163 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008164 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008165
8166 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008169 else
mlcreech636a9952008-05-05 22:52:56 +00008170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008172 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008173 ;;
8174
8175 uts4*)
8176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177 hardcode_libdir_flag_spec='-L$libdir'
8178 hardcode_shlibpath_var=no
8179 ;;
8180
8181 *)
8182 ld_shlibs=no
8183 ;;
8184 esac
mlcreech636a9952008-05-05 22:52:56 +00008185
8186 if test x$host_vendor = xsni; then
8187 case $host in
8188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8189 export_dynamic_flag_spec='${wl}-Blargedynsym'
8190 ;;
8191 esac
8192 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008193 fi
8194
drhf922ca42015-05-14 15:39:18 +00008195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008196$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008197test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008198
mlcreech636a9952008-05-05 22:52:56 +00008199with_gnu_ld=$with_gnu_ld
8200
8201
danielk197733a14782008-08-04 14:50:05 +00008202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
a.rottmann9bc8b932004-02-29 15:18:31 +00008215#
8216# Do we need to explicitly link libc?
8217#
8218case "x$archive_cmds_need_lc" in
8219x|xyes)
8220 # Assume -lc should be added
8221 archive_cmds_need_lc=yes
8222
8223 if test "$enable_shared" = yes && test "$GCC" = yes; then
8224 case $archive_cmds in
8225 *'~'*)
8226 # FIXME: we may have to deal with multi-command sequences.
8227 ;;
8228 '$CC '*)
8229 # Test whether the compiler implicitly links with -lc since on some
8230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8231 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008233$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008234 $RM conftest*
8235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008236
drhf922ca42015-05-14 15:39:18 +00008237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008238 (eval $ac_compile) 2>&5
8239 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008242 soname=conftest
8243 lib=conftest
8244 libobjs=conftest.$ac_objext
8245 deplibs=
8246 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008247 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008248 compiler_flags=-v
8249 linker_flags=-v
8250 verstring=
8251 output_objdir=.
8252 libname=conftest
8253 lt_save_allow_undefined_flag=$allow_undefined_flag
8254 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008255 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 +00008256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008257 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008260 then
8261 archive_cmds_need_lc=no
8262 else
8263 archive_cmds_need_lc=yes
8264 fi
8265 allow_undefined_flag=$lt_save_allow_undefined_flag
8266 else
8267 cat conftest.err 1>&5
8268 fi
mlcreech636a9952008-05-05 22:52:56 +00008269 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008271$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 ;;
8273 esac
drh71eb93e2001-09-28 01:34:43 +00008274 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008275 ;;
8276esac
drh71eb93e2001-09-28 01:34:43 +00008277
mlcreech636a9952008-05-05 22:52:56 +00008278
danielk197733a14782008-08-04 14:50:05 +00008279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
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
drhf922ca42015-05-14 15:39:18 +00008434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008435$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008436
8437if test "$GCC" = yes; then
8438 case $host_os in
8439 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8440 *) lt_awk_arg="/^libraries:/" ;;
8441 esac
8442 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8443 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8444 # if the path contains ";" then we assume it to be the separator
8445 # otherwise default to the standard path separator (i.e. ":") - it is
8446 # assumed that no part of a normal pathname contains ";" but that should
8447 # okay in the real world where ";" in dirpaths is itself problematic.
8448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8449 else
8450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8451 fi
8452 # Ok, now we have the path, separated by spaces, we can step through it
8453 # and add multilib dir if necessary.
8454 lt_tmp_lt_search_path_spec=
8455 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8456 for lt_sys_path in $lt_search_path_spec; do
8457 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8459 else
8460 test -d "$lt_sys_path" && \
8461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8462 fi
8463 done
8464 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8465BEGIN {RS=" "; FS="/|\n";} {
8466 lt_foo="";
8467 lt_count=0;
8468 for (lt_i = NF; lt_i > 0; lt_i--) {
8469 if ($lt_i != "" && $lt_i != ".") {
8470 if ($lt_i == "..") {
8471 lt_count++;
8472 } else {
8473 if (lt_count == 0) {
8474 lt_foo="/" $lt_i lt_foo;
8475 } else {
8476 lt_count--;
8477 }
8478 }
8479 }
8480 }
8481 if (lt_foo != "") { lt_freq[lt_foo]++; }
8482 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8483}'`
8484 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8485else
8486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8487fi
drh71eb93e2001-09-28 01:34:43 +00008488library_names_spec=
8489libname_spec='lib$name'
8490soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008491shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008492postinstall_cmds=
8493postuninstall_cmds=
8494finish_cmds=
8495finish_eval=
8496shlibpath_var=
8497shlibpath_overrides_runpath=unknown
8498version_type=none
8499dynamic_linker="$host_os ld.so"
8500sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008501need_lib_prefix=unknown
8502hardcode_into_libs=no
8503
8504# when you set need_version to no, make sure it does not cause -set_version
8505# flags to be left without arguments
8506need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008507
8508case $host_os in
8509aix3*)
8510 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008512 shlibpath_var=LIBPATH
8513
a.rottmann9bc8b932004-02-29 15:18:31 +00008514 # AIX 3 has no versioning support, so we append a major version to the name.
8515 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008516 ;;
8517
mlcreech636a9952008-05-05 22:52:56 +00008518aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008519 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008520 need_lib_prefix=no
8521 need_version=no
8522 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008523 if test "$host_cpu" = ia64; then
8524 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008526 shlibpath_var=LD_LIBRARY_PATH
8527 else
8528 # With GCC up to 2.95.x, collect2 would create an import file
8529 # for dependence libraries. The import file would start with
8530 # the line `#! .'. This would cause the generated library to
8531 # depend on `.', always an invalid library. This was fixed in
8532 # development snapshots of GCC prior to 3.0.
8533 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008534 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8536 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008537 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008538 :
8539 else
8540 can_build_shared=no
8541 fi
8542 ;;
drh71eb93e2001-09-28 01:34:43 +00008543 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8545 # soname into executable. Probably we can add versioning support to
8546 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008547 if test "$aix_use_runtimelinking" = yes; then
8548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8549 # instead of lib<name>.a to let people know that these are not
8550 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008552 else
8553 # We preserve .a as extension for shared libraries through AIX4.2
8554 # and later when we are not doing run time linking.
8555 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008556 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008557 fi
8558 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008559 fi
8560 ;;
8561
8562amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008563 case $host_cpu in
8564 powerpc)
8565 # Since July 2007 AmigaOS4 officially supports .so libraries.
8566 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8568 ;;
8569 m68k)
8570 library_names_spec='$libname.ixlibrary $libname.a'
8571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572 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'
8573 ;;
8574 esac
drh71eb93e2001-09-28 01:34:43 +00008575 ;;
8576
8577beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008578 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008579 dynamic_linker="$host_os ld.so"
8580 shlibpath_var=LIBRARY_PATH
8581 ;;
8582
vapier7f19c022007-02-17 14:46:31 +00008583bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008584 version_type=linux
8585 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8587 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8589 shlibpath_var=LD_LIBRARY_PATH
8590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8592 # the default ld.so.conf also contains /usr/contrib/lib and
8593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8594 # libtool to hard-code these into programs
8595 ;;
8596
vapier6acb2cf2009-01-28 04:46:28 +00008597cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008598 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008599 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008600 need_version=no
8601 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008602
drh71eb93e2001-09-28 01:34:43 +00008603 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008604 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008605 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8607 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008609 dldir=$destdir/`dirname \$dlpath`~
8610 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008611 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008612 chmod a+x \$dldir/$dlname~
8613 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8614 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8615 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008617 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008618 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008619 shlibpath_overrides_runpath=yes
8620
8621 case $host_os in
8622 cygwin*)
8623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8626 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008627 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008628 # MinGW DLLs use traditional 'lib' prefix
8629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008630 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008632 # It is most probably a Windows format PATH printed by
8633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8634 # path with ; separators, and with drive letters. We can handle the
8635 # drive letters (cygwin fileutils understands them), so leave them,
8636 # especially as we might pass files found there to a mingw objdump,
8637 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008639 else
mlcreech636a9952008-05-05 22:52:56 +00008640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008641 fi
8642 ;;
8643 pw32*)
8644 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008645 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 +00008646 ;;
8647 esac
drh71eb93e2001-09-28 01:34:43 +00008648 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008649
drh71eb93e2001-09-28 01:34:43 +00008650 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008652 ;;
8653 esac
8654 dynamic_linker='Win32 ld.exe'
8655 # FIXME: first we should search . and the directory the executable is in
8656 shlibpath_var=PATH
8657 ;;
8658
8659darwin* | rhapsody*)
8660 dynamic_linker="$host_os dyld"
8661 version_type=darwin
8662 need_lib_prefix=no
8663 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008664 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008665 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008666 shlibpath_overrides_runpath=yes
8667 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008669
8670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8672 ;;
8673
8674dgux*)
8675 version_type=linux
8676 need_lib_prefix=no
8677 need_version=no
8678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8679 soname_spec='${libname}${release}${shared_ext}$major'
8680 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008681 ;;
8682
a.rottmann84e63352003-03-24 09:42:16 +00008683freebsd1*)
8684 dynamic_linker=no
8685 ;;
8686
vapier7f19c022007-02-17 14:46:31 +00008687freebsd* | dragonfly*)
8688 # DragonFly does not have aout. When/if they implement a new
8689 # versioning mechanism, adjust this.
8690 if test -x /usr/bin/objformat; then
8691 objformat=`/usr/bin/objformat`
8692 else
8693 case $host_os in
8694 freebsd[123]*) objformat=aout ;;
8695 *) objformat=elf ;;
8696 esac
8697 fi
8698 # Handle Gentoo/FreeBSD as it was Linux
8699 case $host_vendor in
8700 gentoo)
8701 version_type=linux ;;
8702 *)
8703 version_type=freebsd-$objformat ;;
8704 esac
8705
drh71eb93e2001-09-28 01:34:43 +00008706 case $version_type in
8707 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008709 need_version=no
8710 need_lib_prefix=no
8711 ;;
8712 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008714 need_version=yes
8715 ;;
vapier7f19c022007-02-17 14:46:31 +00008716 linux)
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8718 soname_spec='${libname}${release}${shared_ext}$major'
8719 need_lib_prefix=no
8720 need_version=no
8721 ;;
drh71eb93e2001-09-28 01:34:43 +00008722 esac
8723 shlibpath_var=LD_LIBRARY_PATH
8724 case $host_os in
8725 freebsd2*)
8726 shlibpath_overrides_runpath=yes
8727 ;;
vapier7f19c022007-02-17 14:46:31 +00008728 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008729 shlibpath_overrides_runpath=yes
8730 hardcode_into_libs=yes
8731 ;;
vapier7f19c022007-02-17 14:46:31 +00008732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008734 shlibpath_overrides_runpath=no
8735 hardcode_into_libs=yes
8736 ;;
mlcreech636a9952008-05-05 22:52:56 +00008737 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008738 shlibpath_overrides_runpath=yes
8739 hardcode_into_libs=yes
8740 ;;
drh71eb93e2001-09-28 01:34:43 +00008741 esac
8742 ;;
8743
8744gnu*)
8745 version_type=linux
8746 need_lib_prefix=no
8747 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008750 shlibpath_var=LD_LIBRARY_PATH
8751 hardcode_into_libs=yes
8752 ;;
8753
8754hpux9* | hpux10* | hpux11*)
8755 # Give a soname corresponding to the major version so that dld.sl refuses to
8756 # link against other versions.
8757 version_type=sunos
8758 need_lib_prefix=no
8759 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008760 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008761 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008762 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008763 hardcode_into_libs=yes
8764 dynamic_linker="$host_os dld.so"
8765 shlibpath_var=LD_LIBRARY_PATH
8766 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 if test "X$HPUX_IA64_MODE" = X32; then
8770 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8771 else
8772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8773 fi
8774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8775 ;;
mlcreech636a9952008-05-05 22:52:56 +00008776 hppa*64*)
8777 shrext_cmds='.sl'
8778 hardcode_into_libs=yes
8779 dynamic_linker="$host_os dld.sl"
8780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8786 ;;
8787 *)
vapier7f19c022007-02-17 14:46:31 +00008788 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008789 dynamic_linker="$host_os dld.sl"
8790 shlibpath_var=SHLIB_PATH
8791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8793 soname_spec='${libname}${release}${shared_ext}$major'
8794 ;;
8795 esac
drh71eb93e2001-09-28 01:34:43 +00008796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8797 postinstall_cmds='chmod 555 $lib'
8798 ;;
8799
mlcreech636a9952008-05-05 22:52:56 +00008800interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008801 version_type=linux
8802 need_lib_prefix=no
8803 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8807 shlibpath_var=LD_LIBRARY_PATH
8808 shlibpath_overrides_runpath=no
8809 hardcode_into_libs=yes
8810 ;;
8811
a.rottmann84e63352003-03-24 09:42:16 +00008812irix5* | irix6* | nonstopux*)
8813 case $host_os in
8814 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008815 *)
8816 if test "$lt_cv_prog_gnu_ld" = yes; then
8817 version_type=linux
8818 else
8819 version_type=irix
8820 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008821 esac
drh71eb93e2001-09-28 01:34:43 +00008822 need_lib_prefix=no
8823 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008824 soname_spec='${libname}${release}${shared_ext}$major'
8825 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 +00008826 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008827 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008828 libsuff= shlibsuff=
8829 ;;
8830 *)
8831 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8833 libsuff= shlibsuff= libmagic=32-bit;;
8834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8835 libsuff=32 shlibsuff=N32 libmagic=N32;;
8836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008838 *) libsuff= shlibsuff= libmagic=never-match;;
8839 esac
8840 ;;
8841 esac
8842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8843 shlibpath_overrides_runpath=no
8844 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8845 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008846 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008847 ;;
8848
8849# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008850linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008851 dynamic_linker=no
8852 ;;
8853
8854# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008855linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008856 version_type=linux
8857 need_lib_prefix=no
8858 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8860 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8862 shlibpath_var=LD_LIBRARY_PATH
8863 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008864 # Some binutils ld are patched to set DT_RUNPATH
8865 save_LDFLAGS=$LDFLAGS
8866 save_libdir=$libdir
8867 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8868 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008870/* end confdefs.h. */
8871
8872int
8873main ()
8874{
8875
8876 ;
8877 return 0;
8878}
8879_ACEOF
drhf922ca42015-05-14 15:39:18 +00008880if ac_fn_c_try_link "$LINENO"; then :
8881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008882 shlibpath_overrides_runpath=yes
8883fi
mlcreech636a9952008-05-05 22:52:56 +00008884fi
drhf922ca42015-05-14 15:39:18 +00008885rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008887 LDFLAGS=$save_LDFLAGS
8888 libdir=$save_libdir
8889
drh71eb93e2001-09-28 01:34:43 +00008890 # This implies no fast_install, which is unacceptable.
8891 # Some rework will be needed to allow for fast_install
8892 # before this can be enabled.
8893 hardcode_into_libs=yes
8894
a.rottmann9bc8b932004-02-29 15:18:31 +00008895 # Append ld.so.conf contents to the search path
8896 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008897 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 +00008898 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008899 fi
8900
drh71eb93e2001-09-28 01:34:43 +00008901 # We used to test for /lib/ld.so.1 and disable shared libraries on
8902 # powerpc, because MkLinux only supported shared libraries with the
8903 # GNU dynamic linker. Since this was broken with cross compilers,
8904 # most powerpc-linux boxes support dynamic linking these days and
8905 # people can always --disable-shared, the test was removed, and we
8906 # assume the GNU/Linux dynamic linker is in use.
8907 dynamic_linker='GNU/Linux ld.so'
8908 ;;
8909
8910netbsd*)
8911 version_type=sunos
8912 need_lib_prefix=no
8913 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008914 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8917 dynamic_linker='NetBSD (a.out) ld.so'
8918 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8920 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008921 dynamic_linker='NetBSD ld.elf_so'
8922 fi
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=yes
8925 hardcode_into_libs=yes
8926 ;;
8927
8928newsos6)
8929 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=yes
8933 ;;
8934
mlcreech636a9952008-05-05 22:52:56 +00008935*nto* | *qnx*)
8936 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008941 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008942 shlibpath_overrides_runpath=no
8943 hardcode_into_libs=yes
8944 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008945 ;;
8946
drh71eb93e2001-09-28 01:34:43 +00008947openbsd*)
8948 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008949 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008950 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008951 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8952 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008953 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8954 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008955 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8958 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008959 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 +00008960 case $host_os in
8961 openbsd2.[89] | openbsd2.[89].*)
8962 shlibpath_overrides_runpath=no
8963 ;;
8964 *)
8965 shlibpath_overrides_runpath=yes
8966 ;;
8967 esac
a.rottmann84e63352003-03-24 09:42:16 +00008968 else
8969 shlibpath_overrides_runpath=yes
8970 fi
drh71eb93e2001-09-28 01:34:43 +00008971 ;;
8972
8973os2*)
8974 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008975 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008976 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008977 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008978 dynamic_linker='OS/2 ld.exe'
8979 shlibpath_var=LIBPATH
8980 ;;
8981
8982osf3* | osf4* | osf5*)
8983 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008984 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008985 need_version=no
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008988 shlibpath_var=LD_LIBRARY_PATH
8989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8990 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8991 ;;
8992
mlcreech636a9952008-05-05 22:52:56 +00008993rdos*)
8994 dynamic_linker=no
8995 ;;
8996
drh71eb93e2001-09-28 01:34:43 +00008997solaris*)
8998 version_type=linux
8999 need_lib_prefix=no
9000 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 # ldd complains unless libraries are executable
9007 postinstall_cmds='chmod +x $lib'
9008 ;;
9009
9010sunos4*)
9011 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 shlibpath_overrides_runpath=yes
9016 if test "$with_gnu_ld" = yes; then
9017 need_lib_prefix=no
9018 fi
9019 need_version=yes
9020 ;;
9021
vapier7f19c022007-02-17 14:46:31 +00009022sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009023 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009026 shlibpath_var=LD_LIBRARY_PATH
9027 case $host_vendor in
9028 sni)
9029 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009030 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009031 runpath_var=LD_RUN_PATH
9032 ;;
9033 siemens)
9034 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009035 ;;
9036 motorola)
9037 need_lib_prefix=no
9038 need_version=no
9039 shlibpath_overrides_runpath=no
9040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9041 ;;
9042 esac
9043 ;;
9044
9045sysv4*MP*)
9046 if test -d /usr/nec ;then
9047 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009050 shlibpath_var=LD_LIBRARY_PATH
9051 fi
9052 ;;
9053
vapier7f19c022007-02-17 14:46:31 +00009054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055 version_type=freebsd-elf
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009061 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009062 hardcode_into_libs=yes
9063 if test "$with_gnu_ld" = yes; then
9064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009065 else
9066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009067 case $host_os in
9068 sco3.2v5*)
9069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9070 ;;
9071 esac
9072 fi
9073 sys_lib_dlsearch_path_spec='/usr/lib'
9074 ;;
9075
mlcreech636a9952008-05-05 22:52:56 +00009076tpf*)
9077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9078 version_type=linux
9079 need_lib_prefix=no
9080 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086
a.rottmann9bc8b932004-02-29 15:18:31 +00009087uts4*)
9088 version_type=linux
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 ;;
9093
drh71eb93e2001-09-28 01:34:43 +00009094*)
9095 dynamic_linker=no
9096 ;;
9097esac
drhf922ca42015-05-14 15:39:18 +00009098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009099$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009100test "$dynamic_linker" = no && can_build_shared=no
9101
vapier7f19c022007-02-17 14:46:31 +00009102variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9103if test "$GCC" = yes; then
9104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9105fi
9106
mlcreech636a9952008-05-05 22:52:56 +00009107if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9108 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9109fi
9110if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9111 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9112fi
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
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
drhf922ca42015-05-14 15:39:18 +00009200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009201$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009202hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009203if test -n "$hardcode_libdir_flag_spec" ||
9204 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009205 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009206
mlcreech636a9952008-05-05 22:52:56 +00009207 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009208 if test "$hardcode_direct" != no &&
9209 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9210 # have to relink, otherwise we might link with an installed library
9211 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009212 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009213 test "$hardcode_minus_L" != no; then
9214 # Linking always hardcodes the temporary library directory.
9215 hardcode_action=relink
9216 else
9217 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9218 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009219 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009220else
9221 # We cannot hardcode anything, or else we can only hardcode existing
9222 # directories.
9223 hardcode_action=unsupported
9224fi
drhf922ca42015-05-14 15:39:18 +00009225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009226$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009227
mlcreech636a9952008-05-05 22:52:56 +00009228if test "$hardcode_action" = relink ||
9229 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009230 # Fast installation is not supported
9231 enable_fast_install=no
9232elif test "$shlibpath_overrides_runpath" = yes ||
9233 test "$enable_shared" = no; then
9234 # Fast installation is not necessary
9235 enable_fast_install=needless
9236fi
9237
a.rottmann84e63352003-03-24 09:42:16 +00009238
mlcreech636a9952008-05-05 22:52:56 +00009239
9240
9241
9242
9243 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009244 enable_dlopen=unknown
9245 enable_dlopen_self=unknown
9246 enable_dlopen_self_static=unknown
9247else
9248 lt_cv_dlopen=no
9249 lt_cv_dlopen_libs=
9250
9251 case $host_os in
9252 beos*)
9253 lt_cv_dlopen="load_add_on"
9254 lt_cv_dlopen_libs=
9255 lt_cv_dlopen_self=yes
9256 ;;
9257
vapier6acb2cf2009-01-28 04:46:28 +00009258 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009259 lt_cv_dlopen="LoadLibrary"
9260 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009261 ;;
drh71eb93e2001-09-28 01:34:43 +00009262
a.rottmann9bc8b932004-02-29 15:18:31 +00009263 cygwin*)
9264 lt_cv_dlopen="dlopen"
9265 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009266 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009267
9268 darwin*)
9269 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009271$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009272if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009273 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009274else
9275 ac_check_lib_save_LIBS=$LIBS
9276LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009278/* end confdefs.h. */
9279
drh8b727472009-01-19 18:18:40 +00009280/* Override any GCC internal prototype to avoid an error.
9281 Use char because int might match the return type of a GCC
9282 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009283#ifdef __cplusplus
9284extern "C"
9285#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009286char dlopen ();
9287int
9288main ()
9289{
drh8b727472009-01-19 18:18:40 +00009290return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009291 ;
9292 return 0;
9293}
9294_ACEOF
drhf922ca42015-05-14 15:39:18 +00009295if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009296 ac_cv_lib_dl_dlopen=yes
9297else
drhf922ca42015-05-14 15:39:18 +00009298 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009299fi
drhf922ca42015-05-14 15:39:18 +00009300rm -f core conftest.err conftest.$ac_objext \
9301 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009302LIBS=$ac_check_lib_save_LIBS
9303fi
drhf922ca42015-05-14 15:39:18 +00009304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009305$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009306if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9308else
9309
9310 lt_cv_dlopen="dyld"
9311 lt_cv_dlopen_libs=
9312 lt_cv_dlopen_self=yes
9313
9314fi
9315
mlcreech636a9952008-05-05 22:52:56 +00009316 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009317
drh71eb93e2001-09-28 01:34:43 +00009318 *)
drhf922ca42015-05-14 15:39:18 +00009319 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9320if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009321 lt_cv_dlopen="shl_load"
9322else
drhf922ca42015-05-14 15:39:18 +00009323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009324$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009325if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009326 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009327else
9328 ac_check_lib_save_LIBS=$LIBS
9329LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009331/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009332
drh8b727472009-01-19 18:18:40 +00009333/* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009336#ifdef __cplusplus
9337extern "C"
9338#endif
drh71eb93e2001-09-28 01:34:43 +00009339char shl_load ();
9340int
9341main ()
9342{
drh8b727472009-01-19 18:18:40 +00009343return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009344 ;
9345 return 0;
9346}
9347_ACEOF
drhf922ca42015-05-14 15:39:18 +00009348if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009349 ac_cv_lib_dld_shl_load=yes
9350else
drhf922ca42015-05-14 15:39:18 +00009351 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009352fi
drhf922ca42015-05-14 15:39:18 +00009353rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009355LIBS=$ac_check_lib_save_LIBS
9356fi
drhf922ca42015-05-14 15:39:18 +00009357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009358$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009359if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009360 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009361else
drhf922ca42015-05-14 15:39:18 +00009362 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9363if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009364 lt_cv_dlopen="dlopen"
9365else
drhf922ca42015-05-14 15:39:18 +00009366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009367$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009368if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009369 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009370else
9371 ac_check_lib_save_LIBS=$LIBS
9372LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009374/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009375
drh8b727472009-01-19 18:18:40 +00009376/* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009379#ifdef __cplusplus
9380extern "C"
9381#endif
drh71eb93e2001-09-28 01:34:43 +00009382char dlopen ();
9383int
9384main ()
9385{
drh8b727472009-01-19 18:18:40 +00009386return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009387 ;
9388 return 0;
9389}
9390_ACEOF
drhf922ca42015-05-14 15:39:18 +00009391if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009392 ac_cv_lib_dl_dlopen=yes
9393else
drhf922ca42015-05-14 15:39:18 +00009394 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009395fi
drhf922ca42015-05-14 15:39:18 +00009396rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009398LIBS=$ac_check_lib_save_LIBS
9399fi
drhf922ca42015-05-14 15:39:18 +00009400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009401$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009402if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9404else
drhf922ca42015-05-14 15:39:18 +00009405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009406$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009407if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009408 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009409else
9410 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009413/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009414
drh8b727472009-01-19 18:18:40 +00009415/* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009418#ifdef __cplusplus
9419extern "C"
9420#endif
drh71eb93e2001-09-28 01:34:43 +00009421char dlopen ();
9422int
9423main ()
9424{
drh8b727472009-01-19 18:18:40 +00009425return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009426 ;
9427 return 0;
9428}
9429_ACEOF
drhf922ca42015-05-14 15:39:18 +00009430if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009431 ac_cv_lib_svld_dlopen=yes
9432else
drhf922ca42015-05-14 15:39:18 +00009433 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009434fi
drhf922ca42015-05-14 15:39:18 +00009435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009437LIBS=$ac_check_lib_save_LIBS
9438fi
drhf922ca42015-05-14 15:39:18 +00009439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009440$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009441if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009443else
drhf922ca42015-05-14 15:39:18 +00009444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009445$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009446if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009447 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009448else
9449 ac_check_lib_save_LIBS=$LIBS
9450LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009452/* end confdefs.h. */
9453
drh8b727472009-01-19 18:18:40 +00009454/* Override any GCC internal prototype to avoid an error.
9455 Use char because int might match the return type of a GCC
9456 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009457#ifdef __cplusplus
9458extern "C"
9459#endif
a.rottmann84e63352003-03-24 09:42:16 +00009460char dld_link ();
9461int
9462main ()
9463{
drh8b727472009-01-19 18:18:40 +00009464return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009465 ;
9466 return 0;
9467}
9468_ACEOF
drhf922ca42015-05-14 15:39:18 +00009469if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009470 ac_cv_lib_dld_dld_link=yes
9471else
drhf922ca42015-05-14 15:39:18 +00009472 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009473fi
drhf922ca42015-05-14 15:39:18 +00009474rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009476LIBS=$ac_check_lib_save_LIBS
9477fi
drhf922ca42015-05-14 15:39:18 +00009478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009479$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009480if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009481 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009482fi
9483
drh71eb93e2001-09-28 01:34:43 +00009484
9485fi
9486
drh71eb93e2001-09-28 01:34:43 +00009487
9488fi
9489
a.rottmann84e63352003-03-24 09:42:16 +00009490
9491fi
9492
9493
9494fi
9495
9496
drh71eb93e2001-09-28 01:34:43 +00009497fi
9498
9499 ;;
9500 esac
9501
9502 if test "x$lt_cv_dlopen" != xno; then
9503 enable_dlopen=yes
9504 else
9505 enable_dlopen=no
9506 fi
9507
9508 case $lt_cv_dlopen in
9509 dlopen)
9510 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009511 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009512
9513 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009515
9516 save_LIBS="$LIBS"
9517 LIBS="$lt_cv_dlopen_libs $LIBS"
9518
drhf922ca42015-05-14 15:39:18 +00009519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009520$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009521if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009522 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009523else
9524 if test "$cross_compiling" = yes; then :
9525 lt_cv_dlopen_self=cross
9526else
a.rottmann9bc8b932004-02-29 15:18:31 +00009527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009528 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009529 cat > conftest.$ac_ext <<_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009530#line 9530 "configure"
drh71eb93e2001-09-28 01:34:43 +00009531#include "confdefs.h"
9532
9533#if HAVE_DLFCN_H
9534#include <dlfcn.h>
9535#endif
9536
9537#include <stdio.h>
9538
9539#ifdef RTLD_GLOBAL
9540# define LT_DLGLOBAL RTLD_GLOBAL
9541#else
9542# ifdef DL_GLOBAL
9543# define LT_DLGLOBAL DL_GLOBAL
9544# else
9545# define LT_DLGLOBAL 0
9546# endif
9547#endif
9548
9549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9550 find out it does not work in some platform. */
9551#ifndef LT_DLLAZY_OR_NOW
9552# ifdef RTLD_LAZY
9553# define LT_DLLAZY_OR_NOW RTLD_LAZY
9554# else
9555# ifdef DL_LAZY
9556# define LT_DLLAZY_OR_NOW DL_LAZY
9557# else
9558# ifdef RTLD_NOW
9559# define LT_DLLAZY_OR_NOW RTLD_NOW
9560# else
9561# ifdef DL_NOW
9562# define LT_DLLAZY_OR_NOW DL_NOW
9563# else
9564# define LT_DLLAZY_OR_NOW 0
9565# endif
9566# endif
9567# endif
9568# endif
9569#endif
9570
drh71eb93e2001-09-28 01:34:43 +00009571void fnord() { int i=42;}
9572int main ()
9573{
9574 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9575 int status = $lt_dlunknown;
9576
9577 if (self)
9578 {
9579 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9580 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9581 /* dlclose (self); */
9582 }
vapier7f19c022007-02-17 14:46:31 +00009583 else
9584 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009585
vapier6acb2cf2009-01-28 04:46:28 +00009586 return status;
drh71eb93e2001-09-28 01:34:43 +00009587}
mlcreech636a9952008-05-05 22:52:56 +00009588_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009590 (eval $ac_link) 2>&5
9591 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9593 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009594 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009595 lt_status=$?
9596 case x$lt_status in
9597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009600 esac
9601 else :
9602 # compilation failed
9603 lt_cv_dlopen_self=no
9604 fi
9605fi
9606rm -fr conftest*
9607
a.rottmann84e63352003-03-24 09:42:16 +00009608
drh71eb93e2001-09-28 01:34:43 +00009609fi
drhf922ca42015-05-14 15:39:18 +00009610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009611$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009612
9613 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009616$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009617if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009618 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009619else
9620 if test "$cross_compiling" = yes; then :
9621 lt_cv_dlopen_self_static=cross
9622else
a.rottmann9bc8b932004-02-29 15:18:31 +00009623 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009624 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009625 cat > conftest.$ac_ext <<_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009626#line 9626 "configure"
drh71eb93e2001-09-28 01:34:43 +00009627#include "confdefs.h"
9628
9629#if HAVE_DLFCN_H
9630#include <dlfcn.h>
9631#endif
9632
9633#include <stdio.h>
9634
9635#ifdef RTLD_GLOBAL
9636# define LT_DLGLOBAL RTLD_GLOBAL
9637#else
9638# ifdef DL_GLOBAL
9639# define LT_DLGLOBAL DL_GLOBAL
9640# else
9641# define LT_DLGLOBAL 0
9642# endif
9643#endif
9644
9645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9646 find out it does not work in some platform. */
9647#ifndef LT_DLLAZY_OR_NOW
9648# ifdef RTLD_LAZY
9649# define LT_DLLAZY_OR_NOW RTLD_LAZY
9650# else
9651# ifdef DL_LAZY
9652# define LT_DLLAZY_OR_NOW DL_LAZY
9653# else
9654# ifdef RTLD_NOW
9655# define LT_DLLAZY_OR_NOW RTLD_NOW
9656# else
9657# ifdef DL_NOW
9658# define LT_DLLAZY_OR_NOW DL_NOW
9659# else
9660# define LT_DLLAZY_OR_NOW 0
9661# endif
9662# endif
9663# endif
9664# endif
9665#endif
9666
drh71eb93e2001-09-28 01:34:43 +00009667void fnord() { int i=42;}
9668int main ()
9669{
9670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9671 int status = $lt_dlunknown;
9672
9673 if (self)
9674 {
9675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9676 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9677 /* dlclose (self); */
9678 }
vapier7f19c022007-02-17 14:46:31 +00009679 else
9680 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009681
vapier6acb2cf2009-01-28 04:46:28 +00009682 return status;
drh71eb93e2001-09-28 01:34:43 +00009683}
mlcreech636a9952008-05-05 22:52:56 +00009684_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009686 (eval $ac_link) 2>&5
9687 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009690 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009691 lt_status=$?
9692 case x$lt_status in
9693 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9694 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009695 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009696 esac
9697 else :
9698 # compilation failed
9699 lt_cv_dlopen_self_static=no
9700 fi
9701fi
9702rm -fr conftest*
9703
a.rottmann84e63352003-03-24 09:42:16 +00009704
drh71eb93e2001-09-28 01:34:43 +00009705fi
drhf922ca42015-05-14 15:39:18 +00009706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009707$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009708 fi
9709
9710 CPPFLAGS="$save_CPPFLAGS"
9711 LDFLAGS="$save_LDFLAGS"
9712 LIBS="$save_LIBS"
9713 ;;
9714 esac
9715
9716 case $lt_cv_dlopen_self in
9717 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9718 *) enable_dlopen_self=unknown ;;
9719 esac
9720
9721 case $lt_cv_dlopen_self_static in
9722 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9723 *) enable_dlopen_self_static=unknown ;;
9724 esac
9725fi
9726
drh71eb93e2001-09-28 01:34:43 +00009727
drh71eb93e2001-09-28 01:34:43 +00009728
a.rottmann9bc8b932004-02-29 15:18:31 +00009729
a.rottmann9bc8b932004-02-29 15:18:31 +00009730
mlcreech636a9952008-05-05 22:52:56 +00009731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743striplib=
9744old_striplib=
drhf922ca42015-05-14 15:39:18 +00009745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009746$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009747if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9748 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9749 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009751$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009752else
9753# FIXME - insert some real tests, host_os isn't really good enough
9754 case $host_os in
9755 darwin*)
9756 if test -n "$STRIP" ; then
9757 striplib="$STRIP -x"
9758 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009760$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009761 else
drhf922ca42015-05-14 15:39:18 +00009762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009763$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009764 fi
a.rottmann84e63352003-03-24 09:42:16 +00009765 ;;
mlcreech636a9952008-05-05 22:52:56 +00009766 *)
drhf922ca42015-05-14 15:39:18 +00009767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009768$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009769 ;;
9770 esac
mlcreech636a9952008-05-05 22:52:56 +00009771fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009772
a.rottmann9bc8b932004-02-29 15:18:31 +00009773
drh71eb93e2001-09-28 01:34:43 +00009774
drh71eb93e2001-09-28 01:34:43 +00009775
a.rottmann84e63352003-03-24 09:42:16 +00009776
drh71eb93e2001-09-28 01:34:43 +00009777
drh71eb93e2001-09-28 01:34:43 +00009778
a.rottmann9bc8b932004-02-29 15:18:31 +00009779
drh71eb93e2001-09-28 01:34:43 +00009780
drh71eb93e2001-09-28 01:34:43 +00009781
drh71eb93e2001-09-28 01:34:43 +00009782
drh71eb93e2001-09-28 01:34:43 +00009783
mlcreech636a9952008-05-05 22:52:56 +00009784 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009786$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009788$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009789
drhf922ca42015-05-14 15:39:18 +00009790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009791$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009792 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009793
mlcreech636a9952008-05-05 22:52:56 +00009794 # On AIX, shared libraries and static libraries use the same namespace, and
9795 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009796 case $host_os in
9797 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009798 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009799 if test -n "$RANLIB"; then
9800 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9801 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009802 fi
9803 ;;
9804
mlcreech636a9952008-05-05 22:52:56 +00009805 aix[4-9]*)
9806 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9807 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009808 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009809 ;;
9810 esac
drhf922ca42015-05-14 15:39:18 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009812$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009813
drhf922ca42015-05-14 15:39:18 +00009814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009815$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009816 # Make sure either enable_shared or enable_static is yes.
9817 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009819$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009820
a.rottmann9bc8b932004-02-29 15:18:31 +00009821
a.rottmann9bc8b932004-02-29 15:18:31 +00009822
a.rottmann9bc8b932004-02-29 15:18:31 +00009823
vapier7f19c022007-02-17 14:46:31 +00009824fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009825ac_ext=c
9826ac_cpp='$CPP $CPPFLAGS'
9827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829ac_compiler_gnu=$ac_cv_c_compiler_gnu
9830
9831CC="$lt_save_CC"
9832
a.rottmann9bc8b932004-02-29 15:18:31 +00009833
a.rottmann9bc8b932004-02-29 15:18:31 +00009834
9835
a.rottmann9bc8b932004-02-29 15:18:31 +00009836
a.rottmann9bc8b932004-02-29 15:18:31 +00009837
a.rottmann9bc8b932004-02-29 15:18:31 +00009838
a.rottmann9bc8b932004-02-29 15:18:31 +00009839
a.rottmann9bc8b932004-02-29 15:18:31 +00009840
a.rottmann9bc8b932004-02-29 15:18:31 +00009841
vapier7f19c022007-02-17 14:46:31 +00009842
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
9844
drh8b727472009-01-19 18:18:40 +00009845 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009846
vapier7f19c022007-02-17 14:46:31 +00009847
9848
vapier7f19c022007-02-17 14:46:31 +00009849
mlcreech636a9952008-05-05 22:52:56 +00009850# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
9852
drh71eb93e2001-09-28 01:34:43 +00009853# Find a good install program. We prefer a C program (faster),
9854# so one script is as good as another. But avoid the broken or
9855# incompatible versions:
9856# SysV /etc/install, /usr/sbin/install
9857# SunOS /usr/etc/install
9858# IRIX /sbin/install
9859# AIX /bin/install
9860# AmigaOS /C/install, which installs bootblocks on floppy discs
9861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009864# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009865# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009866# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009868$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009869if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009870if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009871 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009872else
a.rottmann84e63352003-03-24 09:42:16 +00009873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874for as_dir in $PATH
9875do
9876 IFS=$as_save_IFS
9877 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009878 # Account for people who put trailing slashes in PATH elements.
9879case $as_dir/ in #((
9880 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009881 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009882 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009883 /usr/ucb/* ) ;;
9884 *)
9885 # OSF1 and SCO ODT 3.0 have their own names for install.
9886 # Don't use installbsd from OSF since it installs stuff as root
9887 # by default.
9888 for ac_prog in ginstall scoinst install; do
9889 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009890 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009891 if test $ac_prog = install &&
9892 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9893 # AIX install. It has an incompatible calling convention.
9894 :
9895 elif test $ac_prog = install &&
9896 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9897 # program-specific install script used by HP pwplus--don't use.
9898 :
9899 else
drh8b727472009-01-19 18:18:40 +00009900 rm -rf conftest.one conftest.two conftest.dir
9901 echo one > conftest.one
9902 echo two > conftest.two
9903 mkdir conftest.dir
9904 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9905 test -s conftest.one && test -s conftest.two &&
9906 test -s conftest.dir/conftest.one &&
9907 test -s conftest.dir/conftest.two
9908 then
9909 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9910 break 3
9911 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009912 fi
9913 fi
drh71eb93e2001-09-28 01:34:43 +00009914 done
a.rottmann84e63352003-03-24 09:42:16 +00009915 done
9916 ;;
9917esac
a.rottmann84e63352003-03-24 09:42:16 +00009918
drhf922ca42015-05-14 15:39:18 +00009919 done
drh8b727472009-01-19 18:18:40 +00009920IFS=$as_save_IFS
9921
9922rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009923
9924fi
9925 if test "${ac_cv_path_install+set}" = set; then
9926 INSTALL=$ac_cv_path_install
9927 else
drh8b727472009-01-19 18:18:40 +00009928 # As a last resort, use the slow shell script. Don't cache a
9929 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009930 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009931 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009932 INSTALL=$ac_install_sh
9933 fi
9934fi
drhf922ca42015-05-14 15:39:18 +00009935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009936$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009937
9938# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9939# It thinks the first close brace ends the variable substitution.
9940test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9941
9942test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9943
9944test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9945
drhf1878b42006-01-23 18:06:52 +00009946for ac_prog in gawk mawk nawk awk
9947do
9948 # Extract the first word of "$ac_prog", so it can be a program name with args.
9949set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00009950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00009951$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009952if ${ac_cv_prog_AWK+:} false; then :
drh8b727472009-01-19 18:18:40 +00009953 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +00009954else
9955 if test -n "$AWK"; then
9956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
drhf1878b42006-01-23 18:06:52 +00009965 ac_cv_prog_AWK="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00009966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +00009967 break 2
9968 fi
9969done
drhf922ca42015-05-14 15:39:18 +00009970 done
drh8b727472009-01-19 18:18:40 +00009971IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +00009972
9973fi
9974fi
9975AWK=$ac_cv_prog_AWK
9976if test -n "$AWK"; then
drhf922ca42015-05-14 15:39:18 +00009977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +00009978$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +00009979else
drhf922ca42015-05-14 15:39:18 +00009980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009981$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +00009982fi
9983
drh8b727472009-01-19 18:18:40 +00009984
drhf1878b42006-01-23 18:06:52 +00009985 test -n "$AWK" && break
9986done
9987
a.rottmann84e63352003-03-24 09:42:16 +00009988
drh75897232000-05-29 14:26:00 +00009989#########
mlcreech636a9952008-05-05 22:52:56 +00009990# Enable large file support (if special flags are necessary)
9991#
drh8b727472009-01-19 18:18:40 +00009992# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009993if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009994 enableval=$enable_largefile;
9995fi
mlcreech636a9952008-05-05 22:52:56 +00009996
9997if test "$enable_largefile" != no; then
9998
drhf922ca42015-05-14 15:39:18 +00009999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010000$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010001if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010002 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010003else
mlcreech636a9952008-05-05 22:52:56 +000010004 ac_cv_sys_largefile_CC=no
10005 if test "$GCC" != yes; then
10006 ac_save_CC=$CC
10007 while :; do
drh8b727472009-01-19 18:18:40 +000010008 # IRIX 6.2 and later do not support large files by default,
10009 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +000010010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010011/* end confdefs.h. */
10012#include <sys/types.h>
10013 /* Check that off_t can represent 2**63 - 1 correctly.
10014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10015 since some C++ compilers masquerading as C compilers
10016 incorrectly reject 9223372036854775807. */
10017#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10019 && LARGE_OFF_T % 2147483647 == 1)
10020 ? 1 : -1];
10021int
10022main ()
10023{
10024
10025 ;
10026 return 0;
10027}
10028_ACEOF
drhf922ca42015-05-14 15:39:18 +000010029 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010030 break
mlcreech636a9952008-05-05 22:52:56 +000010031fi
drh8b727472009-01-19 18:18:40 +000010032rm -f core conftest.err conftest.$ac_objext
10033 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010034 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010035 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010036fi
drh8b727472009-01-19 18:18:40 +000010037rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010038 break
10039 done
10040 CC=$ac_save_CC
10041 rm -f conftest.$ac_ext
10042 fi
10043fi
drhf922ca42015-05-14 15:39:18 +000010044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010045$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010046 if test "$ac_cv_sys_largefile_CC" != no; then
10047 CC=$CC$ac_cv_sys_largefile_CC
10048 fi
10049
drhf922ca42015-05-14 15:39:18 +000010050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010051$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010052if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010053 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010054else
10055 while :; do
drhf922ca42015-05-14 15:39:18 +000010056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010057/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010058#include <sys/types.h>
10059 /* Check that off_t can represent 2**63 - 1 correctly.
10060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10061 since some C++ compilers masquerading as C compilers
10062 incorrectly reject 9223372036854775807. */
10063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10065 && LARGE_OFF_T % 2147483647 == 1)
10066 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010067int
10068main ()
10069{
mlcreech636a9952008-05-05 22:52:56 +000010070
mlcreechb87057f2008-03-06 07:19:20 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
drhf922ca42015-05-14 15:39:18 +000010075if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010076 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010077fi
drh8b727472009-01-19 18:18:40 +000010078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010080/* end confdefs.h. */
10081#define _FILE_OFFSET_BITS 64
10082#include <sys/types.h>
10083 /* Check that off_t can represent 2**63 - 1 correctly.
10084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10085 since some C++ compilers masquerading as C compilers
10086 incorrectly reject 9223372036854775807. */
10087#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10089 && LARGE_OFF_T % 2147483647 == 1)
10090 ? 1 : -1];
10091int
10092main ()
10093{
10094
10095 ;
10096 return 0;
10097}
10098_ACEOF
drhf922ca42015-05-14 15:39:18 +000010099if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010100 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010101fi
drh8b727472009-01-19 18:18:40 +000010102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10103 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010104 break
10105done
10106fi
drhf922ca42015-05-14 15:39:18 +000010107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010108$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10109case $ac_cv_sys_file_offset_bits in #(
10110 no | unknown) ;;
10111 *)
mlcreech636a9952008-05-05 22:52:56 +000010112cat >>confdefs.h <<_ACEOF
10113#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10114_ACEOF
drh8b727472009-01-19 18:18:40 +000010115;;
10116esac
10117rm -rf conftest*
10118 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010120$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010121if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010122 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010123else
10124 while :; do
drhf922ca42015-05-14 15:39:18 +000010125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010126/* end confdefs.h. */
10127#include <sys/types.h>
10128 /* Check that off_t can represent 2**63 - 1 correctly.
10129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10130 since some C++ compilers masquerading as C compilers
10131 incorrectly reject 9223372036854775807. */
10132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10134 && LARGE_OFF_T % 2147483647 == 1)
10135 ? 1 : -1];
10136int
10137main ()
10138{
10139
10140 ;
10141 return 0;
10142}
10143_ACEOF
drhf922ca42015-05-14 15:39:18 +000010144if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010145 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010146fi
drh8b727472009-01-19 18:18:40 +000010147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010149/* end confdefs.h. */
10150#define _LARGE_FILES 1
10151#include <sys/types.h>
10152 /* Check that off_t can represent 2**63 - 1 correctly.
10153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10154 since some C++ compilers masquerading as C compilers
10155 incorrectly reject 9223372036854775807. */
10156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10158 && LARGE_OFF_T % 2147483647 == 1)
10159 ? 1 : -1];
10160int
10161main ()
10162{
10163
10164 ;
10165 return 0;
10166}
10167_ACEOF
drhf922ca42015-05-14 15:39:18 +000010168if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010169 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010170fi
drh8b727472009-01-19 18:18:40 +000010171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010173 break
10174done
10175fi
drhf922ca42015-05-14 15:39:18 +000010176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010177$as_echo "$ac_cv_sys_large_files" >&6; }
10178case $ac_cv_sys_large_files in #(
10179 no | unknown) ;;
10180 *)
mlcreech636a9952008-05-05 22:52:56 +000010181cat >>confdefs.h <<_ACEOF
10182#define _LARGE_FILES $ac_cv_sys_large_files
10183_ACEOF
drh8b727472009-01-19 18:18:40 +000010184;;
10185esac
10186rm -rf conftest*
10187 fi
drhf922ca42015-05-14 15:39:18 +000010188
10189
mlcreech636a9952008-05-05 22:52:56 +000010190fi
10191
10192
10193#########
10194# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010195ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10196if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010197
10198cat >>confdefs.h <<_ACEOF
10199#define HAVE_INT8_T 1
10200_ACEOF
10201
10202
10203fi
drhf922ca42015-05-14 15:39:18 +000010204ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10205if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010206
10207cat >>confdefs.h <<_ACEOF
10208#define HAVE_INT16_T 1
10209_ACEOF
10210
10211
10212fi
drhf922ca42015-05-14 15:39:18 +000010213ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10214if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010215
10216cat >>confdefs.h <<_ACEOF
10217#define HAVE_INT32_T 1
10218_ACEOF
10219
10220
10221fi
drhf922ca42015-05-14 15:39:18 +000010222ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10223if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010224
10225cat >>confdefs.h <<_ACEOF
10226#define HAVE_INT64_T 1
10227_ACEOF
10228
10229
10230fi
drhf922ca42015-05-14 15:39:18 +000010231ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10232if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010233
10234cat >>confdefs.h <<_ACEOF
10235#define HAVE_INTPTR_T 1
10236_ACEOF
10237
10238
10239fi
drhf922ca42015-05-14 15:39:18 +000010240ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10241if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010242
10243cat >>confdefs.h <<_ACEOF
10244#define HAVE_UINT8_T 1
10245_ACEOF
10246
10247
10248fi
drhf922ca42015-05-14 15:39:18 +000010249ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10250if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010251
10252cat >>confdefs.h <<_ACEOF
10253#define HAVE_UINT16_T 1
10254_ACEOF
10255
10256
10257fi
drhf922ca42015-05-14 15:39:18 +000010258ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10259if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010260
10261cat >>confdefs.h <<_ACEOF
10262#define HAVE_UINT32_T 1
10263_ACEOF
10264
10265
10266fi
drhf922ca42015-05-14 15:39:18 +000010267ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10268if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010269
10270cat >>confdefs.h <<_ACEOF
10271#define HAVE_UINT64_T 1
10272_ACEOF
10273
10274
10275fi
drhf922ca42015-05-14 15:39:18 +000010276ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10277if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010278
10279cat >>confdefs.h <<_ACEOF
10280#define HAVE_UINTPTR_T 1
10281_ACEOF
10282
10283
10284fi
mlcreechb87057f2008-03-06 07:19:20 +000010285
10286
10287#########
10288# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010289for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010290do :
10291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10292ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10293if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010294 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010296_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010297
mlcreechb87057f2008-03-06 07:19:20 +000010298fi
10299
10300done
10301
10302
10303#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010304# Figure out whether or not we have these functions
10305#
drh39311122015-01-15 17:38:35 +000010306for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drhf922ca42015-05-14 15:39:18 +000010307do :
10308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10309ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10310if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010311 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010313_ACEOF
10314
10315fi
10316done
10317
10318
mlcreechab1c47b2008-03-09 02:51:10 +000010319#########
mlcreechf3868112008-03-11 18:03:30 +000010320# By default, we use the amalgamation (this may be changed below...)
10321#
10322USE_AMALGAMATION=1
10323
10324#########
mlcreechab1c47b2008-03-09 02:51:10 +000010325# See whether we can run specific tclsh versions known to work well;
10326# if not, then we fall back to plain tclsh.
10327# TODO: try other versions before falling back?
10328#
mistachkinfe27b082013-08-28 18:06:26 +000010329for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010330do
10331 # Extract the first word of "$ac_prog", so it can be a program name with args.
10332set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010334$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010335if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010336 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010337else
10338 if test -n "$TCLSH_CMD"; then
10339 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10340else
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010348 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010350 break 2
10351 fi
10352done
drhf922ca42015-05-14 15:39:18 +000010353 done
drh8b727472009-01-19 18:18:40 +000010354IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010355
10356fi
10357fi
10358TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10359if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010361$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010362else
drhf922ca42015-05-14 15:39:18 +000010363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010364$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010365fi
10366
drh8b727472009-01-19 18:18:40 +000010367
mlcreechab1c47b2008-03-09 02:51:10 +000010368 test -n "$TCLSH_CMD" && break
10369done
mlcreechf3868112008-03-11 18:03:30 +000010370test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010371
mlcreechf3868112008-03-11 18:03:30 +000010372if test "$TCLSH_CMD" = "none"; then
10373 # If we can't find a local tclsh, then building the amalgamation will fail.
10374 # We act as though --disable-amalgamation has been used.
10375 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10376 USE_AMALGAMATION=0
10377 TCLSH_CMD="tclsh"
10378fi
mlcreechab1c47b2008-03-09 02:51:10 +000010379
10380
mlcreech5b0a9eb2008-03-09 01:38:09 +000010381
vapier6acb2cf2009-01-28 04:46:28 +000010382if test "x${TCLLIBDIR+set}" != "xset" ; then
10383 TCLLIBDIR='$(libdir)'
10384 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10385 TCLLIBDIR=$i
10386 break
10387 done
10388 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10389fi
10390
10391
mlcreech5b0a9eb2008-03-09 01:38:09 +000010392#########
drh75897232000-05-29 14:26:00 +000010393# Set up an appropriate program prefix
10394#
10395if test "$program_prefix" = "NONE"; then
10396 program_prefix=""
10397fi
10398
a.rottmann84e63352003-03-24 09:42:16 +000010399
drh4b2266a2004-11-27 15:52:16 +000010400VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010401{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010402$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010403
10404RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010405{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010406$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010407
vapier6acb2cf2009-01-28 04:46:28 +000010408VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010409 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010410 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010411{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010412$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010413
drh26d0e2a2005-07-06 13:51:27 +000010414
drh75897232000-05-29 14:26:00 +000010415#########
drh75897232000-05-29 14:26:00 +000010416# Locate a compiler for the build machine. This compiler should
10417# generate command-line programs that run on the build machine.
10418#
vapier7f19c022007-02-17 14:46:31 +000010419if test x"$cross_compiling" = xno; then
10420 BUILD_CC=$CC
10421 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010422else
vapier7f19c022007-02-17 14:46:31 +000010423 if test "${BUILD_CC+set}" != set; then
10424 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010425do
10426 # Extract the first word of "$ac_prog", so it can be a program name with args.
10427set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010429$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010430if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010431 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010432else
vapier7f19c022007-02-17 14:46:31 +000010433 if test -n "$BUILD_CC"; then
10434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010435else
a.rottmann84e63352003-03-24 09:42:16 +000010436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010443 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010445 break 2
10446 fi
10447done
drhf922ca42015-05-14 15:39:18 +000010448 done
drh8b727472009-01-19 18:18:40 +000010449IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010450
drh71eb93e2001-09-28 01:34:43 +000010451fi
10452fi
vapier7f19c022007-02-17 14:46:31 +000010453BUILD_CC=$ac_cv_prog_BUILD_CC
10454if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010456$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010457else
drhf922ca42015-05-14 15:39:18 +000010458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010459$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010460fi
drh75897232000-05-29 14:26:00 +000010461
drh8b727472009-01-19 18:18:40 +000010462
vapier7f19c022007-02-17 14:46:31 +000010463 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010464done
drh75897232000-05-29 14:26:00 +000010465
vapier7f19c022007-02-17 14:46:31 +000010466 fi
10467 if test "${BUILD_CFLAGS+set}" != set; then
10468 BUILD_CFLAGS="-g"
10469 fi
drh71eb93e2001-09-28 01:34:43 +000010470fi
10471
a.rottmann84e63352003-03-24 09:42:16 +000010472
drh297ecf12001-04-05 15:57:13 +000010473##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010474# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010475#
drh8b727472009-01-19 18:18:40 +000010476# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010477if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010478 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010479else
drh5a3032b2007-09-03 16:12:09 +000010480 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010481fi
10482
drhf922ca42015-05-14 15:39:18 +000010483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010484$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010485if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010486 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010488$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010489else
drh5a3032b2007-09-03 16:12:09 +000010490 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010492$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010493fi
10494
a.rottmann964dbb12004-02-26 19:47:42 +000010495
drh5a3032b2007-09-03 16:12:09 +000010496if test "$SQLITE_THREADSAFE" = "1"; then
drhf922ca42015-05-14 15:39:18 +000010497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010498$as_echo_n "checking for library containing pthread_create... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010499if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010500 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010501else
mlcreechc658b0f2008-03-09 02:20:11 +000010502 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010504/* end confdefs.h. */
10505
drh8b727472009-01-19 18:18:40 +000010506/* Override any GCC internal prototype to avoid an error.
10507 Use char because int might match the return type of a GCC
10508 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010509#ifdef __cplusplus
10510extern "C"
10511#endif
dougcurrie65623c72004-09-20 14:57:23 +000010512char pthread_create ();
10513int
10514main ()
10515{
drh8b727472009-01-19 18:18:40 +000010516return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010517 ;
10518 return 0;
10519}
10520_ACEOF
drh8b727472009-01-19 18:18:40 +000010521for ac_lib in '' pthread; do
10522 if test -z "$ac_lib"; then
10523 ac_res="none required"
10524 else
10525 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010527 fi
drhf922ca42015-05-14 15:39:18 +000010528 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010529 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010530fi
drhf922ca42015-05-14 15:39:18 +000010531rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext
10533 if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010534 break
drh866108f2008-05-13 00:57:21 +000010535fi
drh8b727472009-01-19 18:18:40 +000010536done
drhf922ca42015-05-14 15:39:18 +000010537if ${ac_cv_search_pthread_create+:} false; then :
10538
drh8b727472009-01-19 18:18:40 +000010539else
10540 ac_cv_search_pthread_create=no
10541fi
10542rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010543LIBS=$ac_func_search_save_LIBS
10544fi
drhf922ca42015-05-14 15:39:18 +000010545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010546$as_echo "$ac_cv_search_pthread_create" >&6; }
10547ac_res=$ac_cv_search_pthread_create
drhf922ca42015-05-14 15:39:18 +000010548if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010550
dougcurrie65623c72004-09-20 14:57:23 +000010551fi
10552
mlcreechc658b0f2008-03-09 02:20:11 +000010553fi
dougcurrie65623c72004-09-20 14:57:23 +000010554
xdong28f79f72003-09-23 00:35:21 +000010555##########
10556# Do we want to support release
10557#
drh8b727472009-01-19 18:18:40 +000010558# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010559if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010560 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010561else
10562 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010563fi
10564
drhf922ca42015-05-14 15:39:18 +000010565{ $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 +000010566$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010567if test "$enable_releasemode" = "no"; then
10568 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010570$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010571else
drh0b47d342007-11-27 14:50:06 +000010572 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
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; }
xdong28f79f72003-09-23 00:35:21 +000010575fi
paulb0208cc2003-04-13 18:26:49 +000010576
a.rottmann964dbb12004-02-26 19:47:42 +000010577
paulb0208cc2003-04-13 18:26:49 +000010578##########
10579# Do we want temporary databases in memory
10580#
drh8b727472009-01-19 18:18:40 +000010581# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010582if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010583 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010584else
drh54414bb2005-10-10 00:05:50 +000010585 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010586fi
10587
drhf922ca42015-05-14 15:39:18 +000010588{ $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 +000010589$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010590case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010591 never )
paul2dc96f92003-04-20 11:46:34 +000010592 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010594$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010595 ;;
10596 no )
paul2dc96f92003-04-20 11:46:34 +000010597 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010599$as_echo "no" >&6; }
10600 ;;
10601 yes )
10602 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010604$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010605 ;;
10606 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010607 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010609$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010610 ;;
paulb0208cc2003-04-13 18:26:49 +000010611 * )
drh54414bb2005-10-10 00:05:50 +000010612 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010614$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010615 ;;
10616esac
10617
10618
10619
drh75897232000-05-29 14:26:00 +000010620###########
10621# Lots of things are different if we are compiling for Windows using
10622# the CYGWIN environment. So check for that special case and handle
10623# things accordingly.
10624#
drhf922ca42015-05-14 15:39:18 +000010625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010626$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010627if test "$config_BUILD_EXEEXT" = ".exe"; then
10628 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010630$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010631else
drhf922ca42015-05-14 15:39:18 +000010632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010633$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010634fi
10635if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010636
10637case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010638 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010639 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010640esac
drh75897232000-05-29 14:26:00 +000010641
drh75897232000-05-29 14:26:00 +000010642fi
10643if test "$CYGWIN" = "yes"; then
10644 BUILD_EXEEXT=.exe
10645else
dougcurrie6194a5f2003-12-19 20:09:51 +000010646 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010647fi
vapier7f19c022007-02-17 14:46:31 +000010648if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010649 TARGET_EXEEXT=$BUILD_EXEEXT
10650else
10651 TARGET_EXEEXT=$config_TARGET_EXEEXT
10652fi
10653if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010654 SQLITE_OS_UNIX=0
10655 SQLITE_OS_WIN=1
10656 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010657else
danielk197729bafea2008-06-26 10:41:19 +000010658 SQLITE_OS_UNIX=1
10659 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010660 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010661fi
drh75897232000-05-29 14:26:00 +000010662
a.rottmann84e63352003-03-24 09:42:16 +000010663
10664
10665
10666
10667
drh75897232000-05-29 14:26:00 +000010668##########
drh7b5717e2004-11-25 13:50:01 +000010669# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010670#
drh7b5717e2004-11-25 13:50:01 +000010671# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10672# macros in the in the tcl.m4 file of the standard TCL distribution.
10673# Those macros could not be used directly since we have to make some
10674# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010675#
drh8b727472009-01-19 18:18:40 +000010676# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010677if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010678 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010679else
drh7b5717e2004-11-25 13:50:01 +000010680 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010681fi
10682
drh7b5717e2004-11-25 13:50:01 +000010683if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010684
drh8b727472009-01-19 18:18:40 +000010685# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010686if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010687 withval=$with_tcl; with_tclconfig=${withval}
10688fi
10689
drhf922ca42015-05-14 15:39:18 +000010690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010691$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010692 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010693 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010694else
a.rottmann84e63352003-03-24 09:42:16 +000010695
drh7b5717e2004-11-25 13:50:01 +000010696 # First check to see if --with-tcl was specified.
10697 if test x"${with_tclconfig}" != x ; then
10698 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10699 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10700 else
drhf922ca42015-05-14 15:39:18 +000010701 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010702 fi
10703 fi
vapier6acb2cf2009-01-28 04:46:28 +000010704
10705 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010706 if test x"${ac_cv_c_tclconfig}" = x ; then
10707 if test x"$cross_compiling" = xno; then
10708 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10709 do
10710 if test -f "$i/tclConfig.sh" ; then
10711 ac_cv_c_tclconfig="$i"
10712 break
10713 fi
10714 done
10715 fi
vapier6acb2cf2009-01-28 04:46:28 +000010716 fi
10717
drh7b5717e2004-11-25 13:50:01 +000010718 # then check for a private Tcl installation
10719 if test x"${ac_cv_c_tclconfig}" = x ; then
10720 for i in \
10721 ../tcl \
10722 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10723 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10724 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10725 ../../tcl \
10726 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10727 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10728 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10729 ../../../tcl \
10730 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10731 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10732 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10733 do
10734 if test -f "$i/unix/tclConfig.sh" ; then
10735 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10736 break
10737 fi
10738 done
10739 fi
10740
10741 # check in a few common install locations
10742 if test x"${ac_cv_c_tclconfig}" = x ; then
10743 for i in \
10744 `ls -d ${libdir} 2>/dev/null` \
10745 `ls -d /usr/local/lib 2>/dev/null` \
10746 `ls -d /usr/contrib/lib 2>/dev/null` \
10747 `ls -d /usr/lib 2>/dev/null`
10748 do
10749 if test -f "$i/tclConfig.sh" ; then
10750 ac_cv_c_tclconfig=`(cd $i; pwd)`
10751 break
10752 fi
10753 done
10754 fi
10755
10756 # check in a few other private locations
10757 if test x"${ac_cv_c_tclconfig}" = x ; then
10758 for i in \
10759 ${srcdir}/../tcl \
10760 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10761 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10762 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10763 do
10764 if test -f "$i/unix/tclConfig.sh" ; then
10765 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10766 break
10767 fi
10768 done
10769 fi
10770
drh75897232000-05-29 14:26:00 +000010771fi
10772
drh7b5717e2004-11-25 13:50:01 +000010773
10774 if test x"${ac_cv_c_tclconfig}" = x ; then
10775 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010777$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010779$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010781$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010782 else
10783 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010785$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010786
drhf922ca42015-05-14 15:39:18 +000010787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010788$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010789 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010791$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010792 . $TCL_BIN_DIR/tclConfig.sh
10793 else
drhf922ca42015-05-14 15:39:18 +000010794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010795$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010796 fi
drh7b5717e2004-11-25 13:50:01 +000010797
10798 #
10799 # If the TCL_BIN_DIR is the build directory (not the install directory),
10800 # then set the common variable name to the value of the build variables.
10801 # For example, the variable TCL_LIB_SPEC will be set to the value
10802 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10803 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10804 # installed and uninstalled version of Tcl.
10805 #
10806
mlcreechab1c47b2008-03-09 02:51:10 +000010807 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010808 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10809 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10810 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10811 fi
10812
10813 #
10814 # eval is required to do the TCL_DBGX substitution
10815 #
10816
10817 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10818 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10819 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10820
10821 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10822 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10823 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
drhd881ce82015-03-31 17:01:52 +000010837
drh7b5717e2004-11-25 13:50:01 +000010838 fi
drh75897232000-05-29 14:26:00 +000010839fi
drh7b5717e2004-11-25 13:50:01 +000010840if test "${use_tcl}" = "no" ; then
10841 HAVE_TCL=""
10842else
10843 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010844fi
drh75897232000-05-29 14:26:00 +000010845
a.rottmann84e63352003-03-24 09:42:16 +000010846
drh75897232000-05-29 14:26:00 +000010847##########
10848# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010849# that use "readline()" library.
10850#
vapier7f19c022007-02-17 14:46:31 +000010851TARGET_READLINE_LIBS=""
10852TARGET_READLINE_INC=""
10853TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000010854# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010855if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010856 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010857else
vapier7f19c022007-02-17 14:46:31 +000010858 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010859fi
10860
vapier7f19c022007-02-17 14:46:31 +000010861
10862if test x"$with_readline" != xno; then
10863 found="yes"
10864
10865
drh8b727472009-01-19 18:18:40 +000010866# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010867if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010868 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010869else
10870 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010871fi
10872
vapier7f19c022007-02-17 14:46:31 +000010873 if test "x$with_readline_lib" = xauto; then
10874 save_LIBS="$LIBS"
10875 LIBS=""
drhf922ca42015-05-14 15:39:18 +000010876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010877$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010878if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010879 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010880else
drh71eb93e2001-09-28 01:34:43 +000010881 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010883/* end confdefs.h. */
10884
drh8b727472009-01-19 18:18:40 +000010885/* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010888#ifdef __cplusplus
10889extern "C"
10890#endif
paul38372372003-04-22 08:04:49 +000010891char tgetent ();
10892int
10893main ()
10894{
drh8b727472009-01-19 18:18:40 +000010895return tgetent ();
paul38372372003-04-22 08:04:49 +000010896 ;
10897 return 0;
10898}
10899_ACEOF
drh8b727472009-01-19 18:18:40 +000010900for ac_lib in '' readline ncurses curses termcap; do
10901 if test -z "$ac_lib"; then
10902 ac_res="none required"
10903 else
10904 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010906 fi
drhf922ca42015-05-14 15:39:18 +000010907 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010908 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010909fi
drhf922ca42015-05-14 15:39:18 +000010910rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext
10912 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010913 break
drh866108f2008-05-13 00:57:21 +000010914fi
drh8b727472009-01-19 18:18:40 +000010915done
drhf922ca42015-05-14 15:39:18 +000010916if ${ac_cv_search_tgetent+:} false; then :
10917
drh8b727472009-01-19 18:18:40 +000010918else
10919 ac_cv_search_tgetent=no
10920fi
10921rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010922LIBS=$ac_func_search_save_LIBS
10923fi
drhf922ca42015-05-14 15:39:18 +000010924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010925$as_echo "$ac_cv_search_tgetent" >&6; }
10926ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000010927if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010929 term_LIBS="$LIBS"
10930else
10931 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010932fi
10933
drhf922ca42015-05-14 15:39:18 +000010934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010935$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010936if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000010937 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000010938else
10939 ac_check_lib_save_LIBS=$LIBS
10940LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000010941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010942/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000010943
drh8b727472009-01-19 18:18:40 +000010944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000010947#ifdef __cplusplus
10948extern "C"
10949#endif
drh71eb93e2001-09-28 01:34:43 +000010950char readline ();
10951int
10952main ()
10953{
drh8b727472009-01-19 18:18:40 +000010954return readline ();
drh71eb93e2001-09-28 01:34:43 +000010955 ;
10956 return 0;
10957}
10958_ACEOF
drhf922ca42015-05-14 15:39:18 +000010959if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000010960 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000010961else
drhf922ca42015-05-14 15:39:18 +000010962 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000010963fi
drhf922ca42015-05-14 15:39:18 +000010964rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010966LIBS=$ac_check_lib_save_LIBS
10967fi
drhf922ca42015-05-14 15:39:18 +000010968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000010969$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000010970if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000010971 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000010972else
vapier7f19c022007-02-17 14:46:31 +000010973 found="no"
10974fi
drhf1878b42006-01-23 18:06:52 +000010975
vapier7f19c022007-02-17 14:46:31 +000010976 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
10977 LIBS="$save_LIBS"
10978 else
10979 TARGET_READLINE_LIBS="$with_readline_lib"
10980 fi
10981
10982
drh8b727472009-01-19 18:18:40 +000010983# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000010984if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010985 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000010986else
vapier7f19c022007-02-17 14:46:31 +000010987 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000010988fi
10989
vapier7f19c022007-02-17 14:46:31 +000010990 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000010991 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10992if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000010993 found="yes"
10994else
drh75897232000-05-29 14:26:00 +000010995
vapier7f19c022007-02-17 14:46:31 +000010996 found="no"
10997 if test "$cross_compiling" != yes; then
10998 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
10999 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011000 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011002$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011003if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011004 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011005else
11006 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011007 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011008if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011009 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011010else
drh71eb93e2001-09-28 01:34:43 +000011011 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011012fi
11013fi
drhf922ca42015-05-14 15:39:18 +000011014eval ac_res=\$$as_ac_File
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011016$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011017if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011018 found=yes
drh75897232000-05-29 14:26:00 +000011019fi
11020
vapier7f19c022007-02-17 14:46:31 +000011021 if test "$found" = "yes"; then
11022 TARGET_READLINE_INC="-I$dir/$subdir"
11023 break
11024 fi
11025 done
11026 test "$found" = "yes" && break
11027 done
11028 fi
11029
11030fi
11031
11032
11033 else
11034 TARGET_READLINE_INC="$with_readline_inc"
11035 fi
11036
11037 if test x"$found" = xno; then
11038 TARGET_READLINE_LIBS=""
11039 TARGET_READLINE_INC=""
11040 TARGET_HAVE_READLINE=0
11041 else
11042 TARGET_HAVE_READLINE=1
11043 fi
11044fi
11045
11046
11047
11048
11049
11050##########
11051# Figure out what C libraries are required to compile programs
11052# that use "fdatasync()" function.
11053#
drhf922ca42015-05-14 15:39:18 +000011054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011055$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011056if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011057 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011058else
vapier7f19c022007-02-17 14:46:31 +000011059 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011061/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011062
drh8b727472009-01-19 18:18:40 +000011063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011066#ifdef __cplusplus
11067extern "C"
11068#endif
11069char fdatasync ();
11070int
11071main ()
11072{
drh8b727472009-01-19 18:18:40 +000011073return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011074 ;
11075 return 0;
11076}
11077_ACEOF
drh8b727472009-01-19 18:18:40 +000011078for ac_lib in '' rt; do
11079 if test -z "$ac_lib"; then
11080 ac_res="none required"
11081 else
11082 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011084 fi
drhf922ca42015-05-14 15:39:18 +000011085 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011086 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011087fi
drhf922ca42015-05-14 15:39:18 +000011088rm -f core conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext
11090 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011091 break
drh866108f2008-05-13 00:57:21 +000011092fi
drh8b727472009-01-19 18:18:40 +000011093done
drhf922ca42015-05-14 15:39:18 +000011094if ${ac_cv_search_fdatasync+:} false; then :
11095
drh8b727472009-01-19 18:18:40 +000011096else
11097 ac_cv_search_fdatasync=no
11098fi
11099rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011100LIBS=$ac_func_search_save_LIBS
11101fi
drhf922ca42015-05-14 15:39:18 +000011102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011103$as_echo "$ac_cv_search_fdatasync" >&6; }
11104ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011105if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011107
vapier7f19c022007-02-17 14:46:31 +000011108fi
11109
a.rottmann84e63352003-03-24 09:42:16 +000011110
drh75897232000-05-29 14:26:00 +000011111#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011112# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011113# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011114if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011115 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011116else
11117 use_debug=no
drh8b727472009-01-19 18:18:40 +000011118fi
11119
tpoindex9d9f76c2005-01-03 21:28:56 +000011120if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011121 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011122else
11123 TARGET_DEBUG="-DNDEBUG"
11124fi
11125
11126
11127#########
mlcreech94984912008-03-04 19:03:08 +000011128# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011129# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011130if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011131 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011132else
11133 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011134fi
11135
mlcreechf3868112008-03-11 18:03:30 +000011136if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011137 USE_AMALGAMATION=0
11138fi
11139
11140
11141#########
mlcreecha4edab02008-03-06 04:14:17 +000011142# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011143# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011144if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011145 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011146else
drh05c7e0b2015-01-10 14:27:17 +000011147 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011148fi
11149
mlcreecha4edab02008-03-06 04:14:17 +000011150if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011151 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011153$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011154if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011155 $as_echo_n "(cached) " >&6
11156else
11157 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011159/* end confdefs.h. */
11160
11161/* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11164#ifdef __cplusplus
11165extern "C"
11166#endif
11167char dlopen ();
11168int
11169main ()
11170{
11171return dlopen ();
11172 ;
11173 return 0;
11174}
11175_ACEOF
11176for ac_lib in '' dl; do
11177 if test -z "$ac_lib"; then
11178 ac_res="none required"
11179 else
11180 ac_res=-l$ac_lib
11181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11182 fi
drhf922ca42015-05-14 15:39:18 +000011183 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011184 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011185fi
drhf922ca42015-05-14 15:39:18 +000011186rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext
11188 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011189 break
11190fi
11191done
drhf922ca42015-05-14 15:39:18 +000011192if ${ac_cv_search_dlopen+:} false; then :
11193
drhdbe4b882011-06-20 18:00:17 +000011194else
11195 ac_cv_search_dlopen=no
11196fi
11197rm conftest.$ac_ext
11198LIBS=$ac_func_search_save_LIBS
11199fi
drhf922ca42015-05-14 15:39:18 +000011200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011201$as_echo "$ac_cv_search_dlopen" >&6; }
11202ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011203if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11205
11206fi
11207
mlcreecha4edab02008-03-06 04:14:17 +000011208else
shanefbedede2008-07-22 05:05:01 +000011209 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011210fi
11211
mlcreechaac7b932008-04-01 02:45:22 +000011212#########
shaneb1cd7302008-10-22 18:27:31 +000011213# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011214for option in $CFLAGS $CPPFLAGS
11215do
11216 case $option in
danielk197733a14782008-08-04 14:50:05 +000011217 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011218 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011219 esac
11220done
11221
11222
danielk197733a14782008-08-04 14:50:05 +000011223
shaneb1cd7302008-10-22 18:27:31 +000011224# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011225ac_temp_CFLAGS=""
11226for option in $CFLAGS
11227do
11228 case $option in
11229 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011230 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011231 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011232 esac
11233done
11234CFLAGS=$ac_temp_CFLAGS
11235
11236
shaneb1cd7302008-10-22 18:27:31 +000011237# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011238ac_temp_CPPFLAGS=""
11239for option in $CPPFLAGS
11240do
11241 case $option in
11242 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011243 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011244 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011245 esac
11246done
11247CPPFLAGS=$ac_temp_CPPFLAGS
11248
danielk197733a14782008-08-04 14:50:05 +000011249
drh8b727472009-01-19 18:18:40 +000011250# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011251ac_temp_BUILD_CFLAGS=""
11252for option in $BUILD_CFLAGS
11253do
11254 case $option in
11255 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011256 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011257 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011258 esac
11259done
11260BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11261
11262
11263#########
11264# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011265# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011266if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011267 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011268else
11269 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011270fi
11271
mlcreechaac7b932008-04-01 02:45:22 +000011272if test "${use_gcov}" = "yes" ; then
11273 USE_GCOV=1
11274else
11275 USE_GCOV=0
11276fi
11277
11278
danielk197733a14782008-08-04 14:50:05 +000011279
drh2dfbbca2000-07-28 14:32:48 +000011280#########
mlcreechb87057f2008-03-06 07:19:20 +000011281# Output the config header
drh8b727472009-01-19 18:18:40 +000011282ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011283
11284
11285#########
drh75897232000-05-29 14:26:00 +000011286# Generate the output files.
11287#
mlcreechdf59c7c2008-03-06 07:51:15 +000011288
drh8b727472009-01-19 18:18:40 +000011289ac_config_files="$ac_config_files Makefile sqlite3.pc"
11290
drh71eb93e2001-09-28 01:34:43 +000011291cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011292# This file is a shell script that caches the results of configure
11293# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011294# scripts and configure runs, see configure's option --config-cache.
11295# It is not useful on other systems. If it contains results you don't
11296# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011297#
drh71eb93e2001-09-28 01:34:43 +000011298# config.status only pays attention to the cache file if you give it
11299# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011300#
a.rottmann84e63352003-03-24 09:42:16 +000011301# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011302# loading this file, other *unset* `ac_cv_foo' will be assigned the
11303# following values.
11304
11305_ACEOF
11306
drh75897232000-05-29 14:26:00 +000011307# The following way of writing the cache mishandles newlines in values,
11308# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011309# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011310# Ultrix sh set writes to stderr and can't be redirected directly,
11311# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011312(
11313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11314 eval ac_val=\$$ac_var
11315 case $ac_val in #(
11316 *${as_nl}*)
11317 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11319$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011320 esac
11321 case $ac_var in #(
11322 _ | IFS | as_nl) ;; #(
11323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011324 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011325 esac ;;
11326 esac
11327 done
11328
drh71eb93e2001-09-28 01:34:43 +000011329 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11331 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011332 # `set' does not quote correctly, so add quotes: double-quote
11333 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011334 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011335 "s/'/'\\\\''/g;
11336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011337 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011338 *)
11339 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011341 ;;
drh8b727472009-01-19 18:18:40 +000011342 esac |
11343 sort
11344) |
drh71eb93e2001-09-28 01:34:43 +000011345 sed '
drh8b727472009-01-19 18:18:40 +000011346 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011347 t clear
drh8b727472009-01-19 18:18:40 +000011348 :clear
drh71eb93e2001-09-28 01:34:43 +000011349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11350 t end
drh8b727472009-01-19 18:18:40 +000011351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11352 :end' >>confcache
11353if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11354 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011355 if test "x$cache_file" != "x/dev/null"; then
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011357$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011358 if test ! -f "$cache_file" || test -h "$cache_file"; then
11359 cat confcache >"$cache_file"
11360 else
11361 case $cache_file in #(
11362 */* | ?:*)
11363 mv -f confcache "$cache_file"$$ &&
11364 mv -f "$cache_file"$$ "$cache_file" ;; #(
11365 *)
11366 mv -f confcache "$cache_file" ;;
11367 esac
11368 fi
11369 fi
drh75897232000-05-29 14:26:00 +000011370 else
drhf922ca42015-05-14 15:39:18 +000011371 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011372$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011373 fi
11374fi
11375rm -f confcache
11376
drh75897232000-05-29 14:26:00 +000011377test "x$prefix" = xNONE && prefix=$ac_default_prefix
11378# Let make expand exec_prefix.
11379test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11380
mlcreechb87057f2008-03-06 07:19:20 +000011381DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011382
11383ac_libobjs=
11384ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011385U=
a.rottmann84e63352003-03-24 09:42:16 +000011386for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11387 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11389 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11391 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011394done
11395LIBOBJS=$ac_libobjs
11396
11397LTLIBOBJS=$ac_ltlibobjs
11398
11399
11400
drhf922ca42015-05-14 15:39:18 +000011401: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011402ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011403ac_clean_files_save=$ac_clean_files
11404ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011405{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011406$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011407as_write_fail=0
11408cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011409#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011410# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011411# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011412# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011413# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011414
drh71eb93e2001-09-28 01:34:43 +000011415debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011416ac_cs_recheck=false
11417ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011418
drhf922ca42015-05-14 15:39:18 +000011419SHELL=\${CONFIG_SHELL-$SHELL}
11420export SHELL
11421_ASEOF
11422cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11423## -------------------- ##
11424## M4sh Initialization. ##
11425## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011426
drh8b727472009-01-19 18:18:40 +000011427# Be more Bourne compatible
11428DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011429if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011430 emulate sh
11431 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011432 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011433 # is contrary to our usage. Disable this feature.
11434 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011435 setopt NO_GLOB_SUBST
11436else
drhf922ca42015-05-14 15:39:18 +000011437 case `(set -o) 2>/dev/null` in #(
11438 *posix*) :
11439 set -o posix ;; #(
11440 *) :
11441 ;;
drh8b727472009-01-19 18:18:40 +000011442esac
a.rottmann84e63352003-03-24 09:42:16 +000011443fi
drh8b727472009-01-19 18:18:40 +000011444
11445
drh8b727472009-01-19 18:18:40 +000011446as_nl='
11447'
11448export as_nl
11449# Printing a long string crashes Solaris 7 /usr/bin/printf.
11450as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11451as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11452as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011453# Prefer a ksh shell builtin over an external printf program on Solaris,
11454# but without wasting forks for bash or zsh.
11455if test -z "$BASH_VERSION$ZSH_VERSION" \
11456 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11457 as_echo='print -r --'
11458 as_echo_n='print -rn --'
11459elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011460 as_echo='printf %s\n'
11461 as_echo_n='printf %s'
11462else
11463 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11464 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11465 as_echo_n='/usr/ucb/echo -n'
11466 else
11467 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11468 as_echo_n_body='eval
11469 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011470 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011471 *"$as_nl"*)
11472 expr "X$arg" : "X\\(.*\\)$as_nl";
11473 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11474 esac;
11475 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11476 '
11477 export as_echo_n_body
11478 as_echo_n='sh -c $as_echo_n_body as_echo'
11479 fi
11480 export as_echo_body
11481 as_echo='sh -c $as_echo_body as_echo'
11482fi
11483
11484# The user is always right.
11485if test "${PATH_SEPARATOR+set}" != set; then
11486 PATH_SEPARATOR=:
11487 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11488 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11489 PATH_SEPARATOR=';'
11490 }
11491fi
a.rottmann84e63352003-03-24 09:42:16 +000011492
mlcreech94984912008-03-04 19:03:08 +000011493
drh8b727472009-01-19 18:18:40 +000011494# IFS
11495# We need space, tab and new line, in precisely that order. Quoting is
11496# there to prevent editors from complaining about space-tab.
11497# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11498# splitting by setting IFS to empty value.)
11499IFS=" "" $as_nl"
11500
11501# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011502as_myself=
11503case $0 in #((
drh8b727472009-01-19 18:18:40 +000011504 *[\\/]* ) as_myself=$0 ;;
11505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11506for as_dir in $PATH
11507do
11508 IFS=$as_save_IFS
11509 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11511 done
drh8b727472009-01-19 18:18:40 +000011512IFS=$as_save_IFS
11513
11514 ;;
11515esac
11516# We did not find ourselves, most probably we were run as `sh COMMAND'
11517# in which case we are not to be found in the path.
11518if test "x$as_myself" = x; then
11519 as_myself=$0
11520fi
11521if test ! -f "$as_myself"; then
11522 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011523 exit 1
drh8b727472009-01-19 18:18:40 +000011524fi
11525
drhf922ca42015-05-14 15:39:18 +000011526# Unset variables that we do not need and which cause bugs (e.g. in
11527# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11528# suppresses any "Segmentation fault" message there. '((' could
11529# trigger a bug in pdksh 5.2.14.
11530for as_var in BASH_ENV ENV MAIL MAILPATH
11531do eval test x\${$as_var+set} = xset \
11532 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011533done
mlcreech94984912008-03-04 19:03:08 +000011534PS1='$ '
11535PS2='> '
11536PS4='+ '
11537
11538# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011539LC_ALL=C
11540export LC_ALL
11541LANGUAGE=C
11542export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011543
drhf922ca42015-05-14 15:39:18 +000011544# CDPATH.
11545(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11546
11547
11548# as_fn_error STATUS ERROR [LINENO LOG_FD]
11549# ----------------------------------------
11550# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11551# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11552# script with STATUS, using 1 if that was 0.
11553as_fn_error ()
11554{
11555 as_status=$1; test $as_status -eq 0 && as_status=1
11556 if test "$4"; then
11557 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11558 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11559 fi
11560 $as_echo "$as_me: error: $2" >&2
11561 as_fn_exit $as_status
11562} # as_fn_error
11563
11564
11565# as_fn_set_status STATUS
11566# -----------------------
11567# Set $? to STATUS, without forking.
11568as_fn_set_status ()
11569{
11570 return $1
11571} # as_fn_set_status
11572
11573# as_fn_exit STATUS
11574# -----------------
11575# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11576as_fn_exit ()
11577{
11578 set +e
11579 as_fn_set_status $1
11580 exit $1
11581} # as_fn_exit
11582
11583# as_fn_unset VAR
11584# ---------------
11585# Portably unset VAR.
11586as_fn_unset ()
11587{
11588 { eval $1=; unset $1;}
11589}
11590as_unset=as_fn_unset
11591# as_fn_append VAR VALUE
11592# ----------------------
11593# Append the text in VALUE to the end of the definition contained in VAR. Take
11594# advantage of any shell optimizations that allow amortized linear growth over
11595# repeated appends, instead of the typical quadratic growth present in naive
11596# implementations.
11597if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11598 eval 'as_fn_append ()
11599 {
11600 eval $1+=\$2
11601 }'
11602else
11603 as_fn_append ()
11604 {
11605 eval $1=\$$1\$2
11606 }
11607fi # as_fn_append
11608
11609# as_fn_arith ARG...
11610# ------------------
11611# Perform arithmetic evaluation on the ARGs, and store the result in the
11612# global $as_val. Take advantage of shells that can avoid forks. The arguments
11613# must be portable across $(()) and expr.
11614if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11615 eval 'as_fn_arith ()
11616 {
11617 as_val=$(( $* ))
11618 }'
11619else
11620 as_fn_arith ()
11621 {
11622 as_val=`expr "$@" || test $? -eq 1`
11623 }
11624fi # as_fn_arith
11625
11626
drh8b727472009-01-19 18:18:40 +000011627if expr a : '\(a\)' >/dev/null 2>&1 &&
11628 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011629 as_expr=expr
11630else
11631 as_expr=false
11632fi
11633
drh8b727472009-01-19 18:18:40 +000011634if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011635 as_basename=basename
11636else
11637 as_basename=false
11638fi
11639
drhf922ca42015-05-14 15:39:18 +000011640if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11641 as_dirname=dirname
11642else
11643 as_dirname=false
11644fi
mlcreech94984912008-03-04 19:03:08 +000011645
drh8b727472009-01-19 18:18:40 +000011646as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011647$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11648 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11650$as_echo X/"$0" |
11651 sed '/^.*\/\([^/][^/]*\)\/*$/{
11652 s//\1/
11653 q
11654 }
11655 /^X\/\(\/\/\)$/{
11656 s//\1/
11657 q
11658 }
11659 /^X\/\(\/\).*/{
11660 s//\1/
11661 q
11662 }
11663 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011664
drhf922ca42015-05-14 15:39:18 +000011665# Avoid depending upon Character Ranges.
11666as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11667as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11668as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11669as_cr_digits='0123456789'
11670as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011671
drh8b727472009-01-19 18:18:40 +000011672ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011673case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011674-n*)
drhf922ca42015-05-14 15:39:18 +000011675 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011676 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011677 xy) ECHO_C='\c';;
11678 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11679 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011680 esac;;
11681*)
11682 ECHO_N='-n';;
11683esac
drh71eb93e2001-09-28 01:34:43 +000011684
11685rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011686if test -d conf$$.dir; then
11687 rm -f conf$$.dir/conf$$.file
11688else
11689 rm -f conf$$.dir
11690 mkdir conf$$.dir 2>/dev/null
11691fi
11692if (echo >conf$$.file) 2>/dev/null; then
11693 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011694 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011695 # ... but there are two gotchas:
11696 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11697 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000011698 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000011699 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000011700 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000011701 elif ln conf$$.file conf$$ 2>/dev/null; then
11702 as_ln_s=ln
11703 else
drhf922ca42015-05-14 15:39:18 +000011704 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000011705 fi
drh71eb93e2001-09-28 01:34:43 +000011706else
drhf922ca42015-05-14 15:39:18 +000011707 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000011708fi
drh8b727472009-01-19 18:18:40 +000011709rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11710rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011711
drhf922ca42015-05-14 15:39:18 +000011712
11713# as_fn_mkdir_p
11714# -------------
11715# Create "$as_dir" as a directory, including parents if necessary.
11716as_fn_mkdir_p ()
11717{
11718
11719 case $as_dir in #(
11720 -*) as_dir=./$as_dir;;
11721 esac
11722 test -d "$as_dir" || eval $as_mkdir_p || {
11723 as_dirs=
11724 while :; do
11725 case $as_dir in #(
11726 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11727 *) as_qdir=$as_dir;;
11728 esac
11729 as_dirs="'$as_qdir' $as_dirs"
11730 as_dir=`$as_dirname -- "$as_dir" ||
11731$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11732 X"$as_dir" : 'X\(//\)[^/]' \| \
11733 X"$as_dir" : 'X\(//\)$' \| \
11734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11735$as_echo X"$as_dir" |
11736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11737 s//\1/
11738 q
11739 }
11740 /^X\(\/\/\)[^/].*/{
11741 s//\1/
11742 q
11743 }
11744 /^X\(\/\/\)$/{
11745 s//\1/
11746 q
11747 }
11748 /^X\(\/\).*/{
11749 s//\1/
11750 q
11751 }
11752 s/.*/./; q'`
11753 test -d "$as_dir" && break
11754 done
11755 test -z "$as_dirs" || eval "mkdir $as_dirs"
11756 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11757
11758
11759} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011760if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000011761 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011762else
a.rottmann964dbb12004-02-26 19:47:42 +000011763 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011764 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011765fi
11766
drhf922ca42015-05-14 15:39:18 +000011767
11768# as_fn_executable_p FILE
11769# -----------------------
11770# Test if FILE is an executable regular file.
11771as_fn_executable_p ()
11772{
11773 test -f "$1" && test -x "$1"
11774} # as_fn_executable_p
11775as_test_x='test -x'
11776as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000011777
11778# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000011779as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011780
11781# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000011782as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011783
drh71eb93e2001-09-28 01:34:43 +000011784
drh71eb93e2001-09-28 01:34:43 +000011785exec 6>&1
drhf922ca42015-05-14 15:39:18 +000011786## ----------------------------------- ##
11787## Main body of $CONFIG_STATUS script. ##
11788## ----------------------------------- ##
11789_ASEOF
11790test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011791
drhf922ca42015-05-14 15:39:18 +000011792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11793# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000011794# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000011795# values after options handling.
11796ac_log="
drhf922ca42015-05-14 15:39:18 +000011797This file was extended by sqlite $as_me 3.8.11, which was
11798generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000011799
11800 CONFIG_FILES = $CONFIG_FILES
11801 CONFIG_HEADERS = $CONFIG_HEADERS
11802 CONFIG_LINKS = $CONFIG_LINKS
11803 CONFIG_COMMANDS = $CONFIG_COMMANDS
11804 $ $0 $@
11805
drh8b727472009-01-19 18:18:40 +000011806on `(hostname || uname -n) 2>/dev/null | sed 1q`
11807"
11808
drh71eb93e2001-09-28 01:34:43 +000011809_ACEOF
11810
drhf922ca42015-05-14 15:39:18 +000011811case $ac_config_files in *"
11812"*) set x $ac_config_files; shift; ac_config_files=$*;;
11813esac
11814
11815case $ac_config_headers in *"
11816"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11817esac
11818
11819
drh8b727472009-01-19 18:18:40 +000011820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011821# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000011822config_files="$ac_config_files"
11823config_headers="$ac_config_headers"
11824config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000011825
drh8b727472009-01-19 18:18:40 +000011826_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011827
drh8b727472009-01-19 18:18:40 +000011828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011829ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000011830\`$as_me' instantiates files and other configuration actions
11831from templates according to the current configuration. Unless the files
11832and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000011833
drhf922ca42015-05-14 15:39:18 +000011834Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000011835
11836 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000011837 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000011838 --config print configuration, then exit
11839 -q, --quiet, --silent
11840 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000011841 -d, --debug don't remove temporary files
11842 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000011843 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011844 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000011845 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011846 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000011847
11848Configuration files:
11849$config_files
11850
mlcreechb87057f2008-03-06 07:19:20 +000011851Configuration headers:
11852$config_headers
11853
mlcreech636a9952008-05-05 22:52:56 +000011854Configuration commands:
11855$config_commands
11856
drhf922ca42015-05-14 15:39:18 +000011857Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000011858
mlcreech94984912008-03-04 19:03:08 +000011859_ACEOF
drh8b727472009-01-19 18:18:40 +000011860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000011861ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000011862ac_cs_version="\\
drhf922ca42015-05-14 15:39:18 +000011863sqlite config.status 3.8.11
11864configured by $0, generated by GNU Autoconf 2.69,
11865 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000011866
drhf922ca42015-05-14 15:39:18 +000011867Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000011868This config.status script is free software; the Free Software Foundation
11869gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000011870
11871ac_pwd='$ac_pwd'
11872srcdir='$srcdir'
11873INSTALL='$INSTALL'
11874AWK='$AWK'
11875test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000011876_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011877
drh8b727472009-01-19 18:18:40 +000011878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11879# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000011880ac_need_defaults=:
11881while test $# != 0
11882do
11883 case $1 in
drhf922ca42015-05-14 15:39:18 +000011884 --*=?*)
drh8b727472009-01-19 18:18:40 +000011885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000011887 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000011888 ;;
drhf922ca42015-05-14 15:39:18 +000011889 --*=)
11890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11891 ac_optarg=
11892 ac_shift=:
11893 ;;
drh8b727472009-01-19 18:18:40 +000011894 *)
a.rottmann84e63352003-03-24 09:42:16 +000011895 ac_option=$1
11896 ac_optarg=$2
11897 ac_shift=shift
11898 ;;
drh75897232000-05-29 14:26:00 +000011899 esac
11900
a.rottmann84e63352003-03-24 09:42:16 +000011901 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000011902 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000011903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000011904 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000011905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11906 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000011907 --config | --confi | --conf | --con | --co | --c )
11908 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000011909 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000011910 debug=: ;;
11911 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000011912 $ac_shift
drh8b727472009-01-19 18:18:40 +000011913 case $ac_optarg in
11914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000011915 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000011916 esac
drhf922ca42015-05-14 15:39:18 +000011917 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000011918 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000011919 --header | --heade | --head | --hea )
11920 $ac_shift
drh8b727472009-01-19 18:18:40 +000011921 case $ac_optarg in
11922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11923 esac
drhf922ca42015-05-14 15:39:18 +000011924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000011925 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000011926 --he | --h)
11927 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000011928 as_fn_error $? "ambiguous option: \`$1'
11929Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000011930 --help | --hel | -h )
11931 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000011932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11934 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000011935
drh71eb93e2001-09-28 01:34:43 +000011936 # This is an error.
drhf922ca42015-05-14 15:39:18 +000011937 -*) as_fn_error $? "unrecognized option: \`$1'
11938Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000011939
drhf922ca42015-05-14 15:39:18 +000011940 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000011941 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000011942
11943 esac
11944 shift
11945done
11946
a.rottmann84e63352003-03-24 09:42:16 +000011947ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000011948
a.rottmann84e63352003-03-24 09:42:16 +000011949if $ac_cs_silent; then
11950 exec 6>/dev/null
11951 ac_configure_extra_args="$ac_configure_extra_args --silent"
11952fi
drh71eb93e2001-09-28 01:34:43 +000011953
11954_ACEOF
drh8b727472009-01-19 18:18:40 +000011955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000011956if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000011957 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000011958 shift
11959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11960 CONFIG_SHELL='$SHELL'
11961 export CONFIG_SHELL
11962 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000011963fi
drh71eb93e2001-09-28 01:34:43 +000011964
a.rottmann84e63352003-03-24 09:42:16 +000011965_ACEOF
drh8b727472009-01-19 18:18:40 +000011966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11967exec 5>>config.log
11968{
11969 echo
11970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11971## Running $as_me. ##
11972_ASBOX
11973 $as_echo "$ac_log"
11974} >&5
a.rottmann84e63352003-03-24 09:42:16 +000011975
drh8b727472009-01-19 18:18:40 +000011976_ACEOF
11977cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000011978#
drh8b727472009-01-19 18:18:40 +000011979# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000011980#
11981
11982
11983# The HP-UX ksh and POSIX shell print the target directory to stdout
11984# if CDPATH is set.
11985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11986
11987sed_quote_subst='$sed_quote_subst'
11988double_quote_subst='$double_quote_subst'
11989delay_variable_subst='$delay_variable_subst'
11990macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11991macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11992enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11993enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11994pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11995enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11996host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11997host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11998host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11999build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12000build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12001build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12002SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12003Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12004GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12005EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12006FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12007LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12008NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12009LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12010max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12011ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12012exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12013lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12014lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12015lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12016reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12017reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012018OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012019deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12020file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12021AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12022AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12023STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12024RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12025old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12026old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12027old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12028CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12029CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12030compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12031GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12032lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12033lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12034lt_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"`'
12035lt_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"`'
12036objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12037SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12038ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12039MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12040lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12041lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12042lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12043lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12044lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12045need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12046DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12047NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12048LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12049OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12050OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12051libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12052shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12053extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12054archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12055enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12056export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12057whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12058compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12059old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12060old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12061archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12062archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12063module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12064module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12065with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12066allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12067no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12068hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12069hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12070hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12071hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12072hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12073hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12074hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12075hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12076inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12077link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12078fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12079always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12080export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12081exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12082include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12083prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12084file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12085variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12086need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12087need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12088version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12089runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12090shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12091shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12092libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12093library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12094soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12095postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12096postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12097finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12098finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12099hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12100sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12101sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12102hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12103enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12104enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12105enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12106old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12107striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12108
12109LTCC='$LTCC'
12110LTCFLAGS='$LTCFLAGS'
12111compiler='$compiler_DEFAULT'
12112
12113# Quote evaled strings.
12114for var in SED \
12115GREP \
12116EGREP \
12117FGREP \
12118LD \
12119NM \
12120LN_S \
12121lt_SP2NL \
12122lt_NL2SP \
12123reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012124OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012125deplibs_check_method \
12126file_magic_cmd \
12127AR \
12128AR_FLAGS \
12129STRIP \
12130RANLIB \
12131CC \
12132CFLAGS \
12133compiler \
12134lt_cv_sys_global_symbol_pipe \
12135lt_cv_sys_global_symbol_to_cdecl \
12136lt_cv_sys_global_symbol_to_c_name_address \
12137lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12138SHELL \
12139ECHO \
12140lt_prog_compiler_no_builtin_flag \
12141lt_prog_compiler_wl \
12142lt_prog_compiler_pic \
12143lt_prog_compiler_static \
12144lt_cv_prog_compiler_c_o \
12145need_locks \
12146DSYMUTIL \
12147NMEDIT \
12148LIPO \
12149OTOOL \
12150OTOOL64 \
12151shrext_cmds \
12152export_dynamic_flag_spec \
12153whole_archive_flag_spec \
12154compiler_needs_object \
12155with_gnu_ld \
12156allow_undefined_flag \
12157no_undefined_flag \
12158hardcode_libdir_flag_spec \
12159hardcode_libdir_flag_spec_ld \
12160hardcode_libdir_separator \
12161fix_srcfile_path \
12162exclude_expsyms \
12163include_expsyms \
12164file_list_spec \
12165variables_saved_for_relink \
12166libname_spec \
12167library_names_spec \
12168soname_spec \
12169finish_eval \
12170old_striplib \
12171striplib; do
12172 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12173 *[\\\\\\\`\\"\\\$]*)
12174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12175 ;;
12176 *)
12177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12178 ;;
12179 esac
12180done
12181
12182# Double-quote double-evaled strings.
12183for var in reload_cmds \
12184old_postinstall_cmds \
12185old_postuninstall_cmds \
12186old_archive_cmds \
12187extract_expsyms_cmds \
12188old_archive_from_new_cmds \
12189old_archive_from_expsyms_cmds \
12190archive_cmds \
12191archive_expsym_cmds \
12192module_cmds \
12193module_expsym_cmds \
12194export_symbols_cmds \
12195prelink_cmds \
12196postinstall_cmds \
12197postuninstall_cmds \
12198finish_cmds \
12199sys_lib_search_path_spec \
12200sys_lib_dlsearch_path_spec; do
12201 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12202 *[\\\\\\\`\\"\\\$]*)
12203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12204 ;;
12205 *)
12206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12207 ;;
12208 esac
12209done
12210
12211# Fix-up fallback echo if it was mangled by the above quoting rules.
12212case \$lt_ECHO in
12213*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12214 ;;
12215esac
12216
12217ac_aux_dir='$ac_aux_dir'
12218xsi_shell='$xsi_shell'
12219lt_shell_append='$lt_shell_append'
12220
12221# See if we are running on zsh, and set the options which allow our
12222# commands through without removal of \ escapes INIT.
12223if test -n "\${ZSH_VERSION+set}" ; then
12224 setopt NO_GLOB_SUBST
12225fi
12226
12227
12228 PACKAGE='$PACKAGE'
12229 VERSION='$VERSION'
12230 TIMESTAMP='$TIMESTAMP'
12231 RM='$RM'
12232 ofile='$ofile'
12233
12234
12235
12236
mlcreech94984912008-03-04 19:03:08 +000012237_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012238
drh8b727472009-01-19 18:18:40 +000012239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012240
drh8b727472009-01-19 18:18:40 +000012241# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012242for ac_config_target in $ac_config_targets
12243do
drh8b727472009-01-19 18:18:40 +000012244 case $ac_config_target in
12245 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12246 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12248 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12249
drhf922ca42015-05-14 15:39:18 +000012250 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012251 esac
12252done
12253
drh8b727472009-01-19 18:18:40 +000012254
drh71eb93e2001-09-28 01:34:43 +000012255# If the user did not use the arguments to specify the items to instantiate,
12256# then the envvar interface is used. Set only those that are not.
12257# We use the long form for the default assignment because of an extremely
12258# bizarre bug on SunOS 4.1.3.
12259if $ac_need_defaults; then
12260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012263fi
12264
a.rottmann84e63352003-03-24 09:42:16 +000012265# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012266# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012267# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012268# Hook for its removal unless debugging.
12269# Note that there is a small window in which the directory will not be cleaned:
12270# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012271$debug ||
12272{
drhf922ca42015-05-14 15:39:18 +000012273 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012274 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012275 : "${ac_tmp:=$tmp}"
12276 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012277' 0
drhf922ca42015-05-14 15:39:18 +000012278 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012279}
drh71eb93e2001-09-28 01:34:43 +000012280# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012281
drh71eb93e2001-09-28 01:34:43 +000012282{
drh8b727472009-01-19 18:18:40 +000012283 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012284 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012285} ||
12286{
drh8b727472009-01-19 18:18:40 +000012287 tmp=./conf$$-$RANDOM
12288 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012289} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12290ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012291
drh8b727472009-01-19 18:18:40 +000012292# Set up the scripts for CONFIG_FILES section.
12293# No need to generate them if there are no CONFIG_FILES.
12294# This happens for instance with `./config.status config.h'.
12295if test -n "$CONFIG_FILES"; then
12296
12297
drhf922ca42015-05-14 15:39:18 +000012298ac_cr=`echo X | tr X '\015'`
12299# On cygwin, bash can eat \r inside `` if the user requested igncr.
12300# But we know of no other shell where ac_cr would be empty at this
12301# point, so we can use a bashism as a fallback.
12302if test "x$ac_cr" = x; then
12303 eval ac_cr=\$\'\\r\'
12304fi
drh8b727472009-01-19 18:18:40 +000012305ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12306if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012307 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012308else
12309 ac_cs_awk_cr=$ac_cr
12310fi
12311
drhf922ca42015-05-14 15:39:18 +000012312echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012313_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012314
mlcreech94984912008-03-04 19:03:08 +000012315
drh8b727472009-01-19 18:18:40 +000012316{
12317 echo "cat >conf$$subs.awk <<_ACEOF" &&
12318 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12319 echo "_ACEOF"
12320} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12322ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012323ac_delim='%!_!# '
12324for ac_last_try in false false false false false :; do
12325 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012327
drhf922ca42015-05-14 15:39:18 +000012328 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12329 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012330 break
12331 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012332 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012333 else
12334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012335 fi
drh8b727472009-01-19 18:18:40 +000012336done
12337rm -f conf$$subs.sh
12338
12339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012340cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012341_ACEOF
12342sed -n '
12343h
12344s/^/S["/; s/!.*/"]=/
12345p
12346g
12347s/^[^!]*!//
12348:repl
12349t repl
12350s/'"$ac_delim"'$//
12351t delim
12352:nl
12353h
drhf922ca42015-05-14 15:39:18 +000012354s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012355t more1
12356s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12357p
12358n
12359b repl
12360:more1
12361s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12362p
12363g
12364s/.\{148\}//
12365t nl
12366:delim
12367h
drhf922ca42015-05-14 15:39:18 +000012368s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012369t more2
12370s/["\\]/\\&/g; s/^/"/; s/$/"/
12371p
12372b
12373:more2
12374s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12375p
12376g
12377s/.\{148\}//
12378t delim
12379' <conf$$subs.awk | sed '
12380/^[^""]/{
12381 N
12382 s/\n//
12383}
12384' >>$CONFIG_STATUS || ac_write_fail=1
12385rm -f conf$$subs.awk
12386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12387_ACAWK
drhf922ca42015-05-14 15:39:18 +000012388cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012389 for (key in S) S_is_set[key] = 1
12390 FS = ""
12391
12392}
12393{
12394 line = $ 0
12395 nfields = split(line, field, "@")
12396 substed = 0
12397 len = length(field[1])
12398 for (i = 2; i < nfields; i++) {
12399 key = field[i]
12400 keylen = length(key)
12401 if (S_is_set[key]) {
12402 value = S[key]
12403 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12404 len += length(value) + length(field[++i])
12405 substed = 1
12406 } else
12407 len += 1 + keylen
12408 }
12409
12410 print line
12411}
12412
12413_ACAWK
12414_ACEOF
12415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12418else
12419 cat
drhf922ca42015-05-14 15:39:18 +000012420fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012422_ACEOF
12423
drhf922ca42015-05-14 15:39:18 +000012424# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12425# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012426# trailing colons and then remove the whole line if VPATH becomes empty
12427# (actually we leave an empty line to preserve line numbers).
12428if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12430h
12431s///
12432s/^/:/
12433s/[ ]*$/:/
12434s/:\$(srcdir):/:/g
12435s/:\${srcdir}:/:/g
12436s/:@srcdir@:/:/g
12437s/^:*//
drh8b727472009-01-19 18:18:40 +000012438s/:*$//
drhf922ca42015-05-14 15:39:18 +000012439x
12440s/\(=[ ]*\).*/\1/
12441G
12442s/\n//
drh8b727472009-01-19 18:18:40 +000012443s/^[^=]*=[ ]*$//
12444}'
12445fi
12446
12447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012448fi # test -n "$CONFIG_FILES"
12449
drh8b727472009-01-19 18:18:40 +000012450# Set up the scripts for CONFIG_HEADERS section.
12451# No need to generate them if there are no CONFIG_HEADERS.
12452# This happens for instance with `./config.status Makefile'.
12453if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012454cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012455BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012456_ACEOF
drh8b727472009-01-19 18:18:40 +000012457
12458# Transform confdefs.h into an awk script `defines.awk', embedded as
12459# here-document in config.status, that substitutes the proper values into
12460# config.h.in to produce config.h.
12461
12462# Create a delimiter string that does not exist in confdefs.h, to ease
12463# handling of long lines.
12464ac_delim='%!_!# '
12465for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12467 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012468 break
12469 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012471 else
12472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12473 fi
12474done
12475
12476# For the awk script, D is an array of macro values keyed by name,
12477# likewise P contains macro parameters if any. Preserve backslash
12478# newline sequences.
12479
12480ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12481sed -n '
12482s/.\{148\}/&'"$ac_delim"'/g
12483t rset
12484:rset
12485s/^[ ]*#[ ]*define[ ][ ]*/ /
12486t def
12487d
12488:def
12489s/\\$//
12490t bsnl
12491s/["\\]/\\&/g
12492s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12493D["\1"]=" \3"/p
12494s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12495d
12496:bsnl
12497s/["\\]/\\&/g
12498s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12499D["\1"]=" \3\\\\\\n"\\/p
12500t cont
12501s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12502t cont
12503d
12504:cont
12505n
12506s/.\{148\}/&'"$ac_delim"'/g
12507t clear
12508:clear
12509s/\\$//
12510t bsnlc
12511s/["\\]/\\&/g; s/^/"/; s/$/"/p
12512d
12513:bsnlc
12514s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12515b cont
12516' <confdefs.h | sed '
12517s/'"$ac_delim"'/"\\\
12518"/g' >>$CONFIG_STATUS || ac_write_fail=1
12519
12520cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521 for (key in D) D_is_set[key] = 1
12522 FS = ""
12523}
12524/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12525 line = \$ 0
12526 split(line, arg, " ")
12527 if (arg[1] == "#") {
12528 defundef = arg[2]
12529 mac1 = arg[3]
12530 } else {
12531 defundef = substr(arg[1], 2)
12532 mac1 = arg[2]
12533 }
12534 split(mac1, mac2, "(") #)
12535 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012536 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012537 if (D_is_set[macro]) {
12538 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012539 print prefix "define", macro P[macro] D[macro]
12540 next
12541 } else {
12542 # Replace #undef with comments. This is necessary, for example,
12543 # in the case of _POSIX_SOURCE, which is predefined and required
12544 # on some systems where configure will not decide to define it.
12545 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012546 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012547 next
12548 }
12549 }
12550}
12551{ print }
12552_ACAWK
12553_ACEOF
12554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012556fi # test -n "$CONFIG_HEADERS"
12557
12558
12559eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12560shift
12561for ac_tag
12562do
12563 case $ac_tag in
12564 :[FHLC]) ac_mode=$ac_tag; continue;;
12565 esac
12566 case $ac_mode$ac_tag in
12567 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012569 :[FH]-) ac_tag=-:-;;
12570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12571 esac
12572 ac_save_IFS=$IFS
12573 IFS=:
12574 set x $ac_tag
12575 IFS=$ac_save_IFS
12576 shift
12577 ac_file=$1
12578 shift
12579
12580 case $ac_mode in
12581 :L) ac_source=$1;;
12582 :[FH])
12583 ac_file_inputs=
12584 for ac_f
12585 do
12586 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012587 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012588 *) # Look for the file first in the build tree, then in the source tree
12589 # (if the path is not absolute). The absolute path cannot be DOS-style,
12590 # because $ac_f cannot contain `:'.
12591 test -f "$ac_f" ||
12592 case $ac_f in
12593 [\\/$]*) false;;
12594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12595 esac ||
drhf922ca42015-05-14 15:39:18 +000012596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012597 esac
12598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012599 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012600 done
12601
12602 # Let's still pretend it is `configure' which instantiates (i.e., don't
12603 # use $as_me), people would be surprised to read:
12604 # /* config.h. Generated by config.status. */
12605 configure_input='Generated from '`
12606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12607 `' by configure.'
12608 if test x"$ac_file" != x-; then
12609 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012611$as_echo "$as_me: creating $ac_file" >&6;}
12612 fi
12613 # Neutralize special characters interpreted by sed in replacement strings.
12614 case $configure_input in #(
12615 *\&* | *\|* | *\\* )
12616 ac_sed_conf_input=`$as_echo "$configure_input" |
12617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12618 *) ac_sed_conf_input=$configure_input;;
12619 esac
12620
12621 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012624 esac
12625 ;;
drh71eb93e2001-09-28 01:34:43 +000012626 esac
12627
drh8b727472009-01-19 18:18:40 +000012628 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012630 X"$ac_file" : 'X\(//\)[^/]' \| \
12631 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12633$as_echo X"$ac_file" |
12634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12635 s//\1/
12636 q
12637 }
12638 /^X\(\/\/\)[^/].*/{
12639 s//\1/
12640 q
12641 }
12642 /^X\(\/\/\)$/{
12643 s//\1/
12644 q
12645 }
12646 /^X\(\/\).*/{
12647 s//\1/
12648 q
12649 }
12650 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012651 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012652 ac_builddir=.
12653
drh8b727472009-01-19 18:18:40 +000012654case "$ac_dir" in
12655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12656*)
12657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12658 # A ".." for each directory in $ac_dir_suffix.
12659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12660 case $ac_top_builddir_sub in
12661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12663 esac ;;
12664esac
12665ac_abs_top_builddir=$ac_pwd
12666ac_abs_builddir=$ac_pwd$ac_dir_suffix
12667# for backward compatibility:
12668ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012669
12670case $srcdir in
drh8b727472009-01-19 18:18:40 +000012671 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012672 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012673 ac_top_srcdir=$ac_top_builddir_sub
12674 ac_abs_top_srcdir=$ac_pwd ;;
12675 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012676 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012677 ac_top_srcdir=$srcdir
12678 ac_abs_top_srcdir=$srcdir ;;
12679 *) # Relative name.
12680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12681 ac_top_srcdir=$ac_top_build_prefix$srcdir
12682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012683esac
drh8b727472009-01-19 18:18:40 +000012684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012685
a.rottmann84e63352003-03-24 09:42:16 +000012686
drh8b727472009-01-19 18:18:40 +000012687 case $ac_mode in
12688 :F)
12689 #
12690 # CONFIG_FILE
12691 #
drh75897232000-05-29 14:26:00 +000012692
drh71eb93e2001-09-28 01:34:43 +000012693 case $INSTALL in
12694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012696 esac
mlcreech94984912008-03-04 19:03:08 +000012697_ACEOF
drh8b727472009-01-19 18:18:40 +000012698
12699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700# If the template does not know about datarootdir, expand it.
12701# FIXME: This hack should be removed a few years after 2.60.
12702ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012703ac_sed_dataroot='
12704/datarootdir/ {
12705 p
12706 q
12707}
12708/@datadir@/p
12709/@docdir@/p
12710/@infodir@/p
12711/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000012712/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012713case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12714*datarootdir*) ac_datarootdir_seen=yes;;
12715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000012716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012717$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12718_ACEOF
12719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 ac_datarootdir_hack='
12721 s&@datadir@&$datadir&g
12722 s&@docdir@&$docdir&g
12723 s&@infodir@&$infodir&g
12724 s&@localedir@&$localedir&g
12725 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000012726 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012727esac
12728_ACEOF
12729
12730# Neutralize VPATH when `$srcdir' = `.'.
12731# Shell code in configure.ac might set extrasub.
12732# FIXME: do we really want to maintain this feature?
12733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012735$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012736_ACEOF
drh8b727472009-01-19 18:18:40 +000012737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012738:t
12739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012740s|@configure_input@|$ac_sed_conf_input|;t t
12741s&@top_builddir@&$ac_top_builddir_sub&;t t
12742s&@top_build_prefix@&$ac_top_build_prefix&;t t
12743s&@srcdir@&$ac_srcdir&;t t
12744s&@abs_srcdir@&$ac_abs_srcdir&;t t
12745s&@top_srcdir@&$ac_top_srcdir&;t t
12746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12747s&@builddir@&$ac_builddir&;t t
12748s&@abs_builddir@&$ac_abs_builddir&;t t
12749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12750s&@INSTALL@&$ac_INSTALL&;t t
12751$ac_datarootdir_hack
12752"
drhf922ca42015-05-14 15:39:18 +000012753eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012755
drh8b727472009-01-19 18:18:40 +000012756test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000012757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12761which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000012762$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000012763which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000012764
drhf922ca42015-05-14 15:39:18 +000012765 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012766 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000012767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000012769 esac \
drhf922ca42015-05-14 15:39:18 +000012770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012771 ;;
12772 :H)
12773 #
12774 # CONFIG_HEADER
12775 #
drh866108f2008-05-13 00:57:21 +000012776 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000012777 {
12778 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12780 } >"$ac_tmp/config.h" \
12781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000012784$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000012785 else
drh8b727472009-01-19 18:18:40 +000012786 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000012787 mv "$ac_tmp/config.h" "$ac_file" \
12788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012789 fi
12790 else
drh8b727472009-01-19 18:18:40 +000012791 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12793 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012794 fi
drh8b727472009-01-19 18:18:40 +000012795 ;;
drh866108f2008-05-13 00:57:21 +000012796
drhf922ca42015-05-14 15:39:18 +000012797 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000012798$as_echo "$as_me: executing $ac_file commands" >&6;}
12799 ;;
12800 esac
drh866108f2008-05-13 00:57:21 +000012801
12802
drh8b727472009-01-19 18:18:40 +000012803 case $ac_file$ac_mode in
12804 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000012805
12806 # See if we are running on zsh, and set the options which allow our
12807 # commands through without removal of \ escapes.
12808 if test -n "${ZSH_VERSION+set}" ; then
12809 setopt NO_GLOB_SUBST
12810 fi
12811
12812 cfgfile="${ofile}T"
12813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12814 $RM "$cfgfile"
12815
12816 cat <<_LT_EOF >> "$cfgfile"
12817#! $SHELL
12818
12819# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12820# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12823#
12824# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12825# 2006, 2007, 2008 Free Software Foundation, Inc.
12826# Written by Gordon Matzigkeit, 1996
12827#
12828# This file is part of GNU Libtool.
12829#
12830# GNU Libtool is free software; you can redistribute it and/or
12831# modify it under the terms of the GNU General Public License as
12832# published by the Free Software Foundation; either version 2 of
12833# the License, or (at your option) any later version.
12834#
12835# As a special exception to the GNU General Public License,
12836# if you distribute this file as part of a program or library that
12837# is built using GNU Libtool, you may include this file under the
12838# same distribution terms that you use for the rest of that program.
12839#
12840# GNU Libtool is distributed in the hope that it will be useful,
12841# but WITHOUT ANY WARRANTY; without even the implied warranty of
12842# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12843# GNU General Public License for more details.
12844#
12845# You should have received a copy of the GNU General Public License
12846# along with GNU Libtool; see the file COPYING. If not, a copy
12847# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12848# obtained by writing to the Free Software Foundation, Inc.,
12849# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12850
12851
12852# The names of the tagged configurations supported by this script.
12853available_tags=""
12854
12855# ### BEGIN LIBTOOL CONFIG
12856
12857# Which release of libtool.m4 was used?
12858macro_version=$macro_version
12859macro_revision=$macro_revision
12860
12861# Whether or not to build shared libraries.
12862build_libtool_libs=$enable_shared
12863
12864# Whether or not to build static libraries.
12865build_old_libs=$enable_static
12866
12867# What type of objects to build.
12868pic_mode=$pic_mode
12869
12870# Whether or not to optimize for fast installation.
12871fast_install=$enable_fast_install
12872
12873# The host system.
12874host_alias=$host_alias
12875host=$host
12876host_os=$host_os
12877
12878# The build system.
12879build_alias=$build_alias
12880build=$build
12881build_os=$build_os
12882
12883# A sed program that does not truncate output.
12884SED=$lt_SED
12885
12886# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12887Xsed="\$SED -e 1s/^X//"
12888
12889# A grep program that handles long lines.
12890GREP=$lt_GREP
12891
12892# An ERE matcher.
12893EGREP=$lt_EGREP
12894
12895# A literal string matcher.
12896FGREP=$lt_FGREP
12897
12898# A BSD- or MS-compatible name lister.
12899NM=$lt_NM
12900
12901# Whether we need soft or hard links.
12902LN_S=$lt_LN_S
12903
12904# What is the maximum length of a command?
12905max_cmd_len=$max_cmd_len
12906
12907# Object file suffix (normally "o").
12908objext=$ac_objext
12909
12910# Executable file suffix (normally "").
12911exeext=$exeext
12912
12913# whether the shell understands "unset".
12914lt_unset=$lt_unset
12915
12916# turn spaces into newlines.
12917SP2NL=$lt_lt_SP2NL
12918
12919# turn newlines into spaces.
12920NL2SP=$lt_lt_NL2SP
12921
12922# How to create reloadable object files.
12923reload_flag=$lt_reload_flag
12924reload_cmds=$lt_reload_cmds
12925
vapier6acb2cf2009-01-28 04:46:28 +000012926# An object symbol dumper.
12927OBJDUMP=$lt_OBJDUMP
12928
mlcreech636a9952008-05-05 22:52:56 +000012929# Method to check whether dependent libraries are shared objects.
12930deplibs_check_method=$lt_deplibs_check_method
12931
12932# Command to use when deplibs_check_method == "file_magic".
12933file_magic_cmd=$lt_file_magic_cmd
12934
12935# The archiver.
12936AR=$lt_AR
12937AR_FLAGS=$lt_AR_FLAGS
12938
12939# A symbol stripping program.
12940STRIP=$lt_STRIP
12941
12942# Commands used to install an old-style archive.
12943RANLIB=$lt_RANLIB
12944old_postinstall_cmds=$lt_old_postinstall_cmds
12945old_postuninstall_cmds=$lt_old_postuninstall_cmds
12946
12947# A C compiler.
12948LTCC=$lt_CC
12949
12950# LTCC compiler flags.
12951LTCFLAGS=$lt_CFLAGS
12952
12953# Take the output of nm and produce a listing of raw symbols and C names.
12954global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12955
12956# Transform the output of nm in a proper C declaration.
12957global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12958
12959# Transform the output of nm in a C name address pair.
12960global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12961
12962# Transform the output of nm in a C name address pair when lib prefix is needed.
12963global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12964
12965# The name of the directory that contains temporary libtool files.
12966objdir=$objdir
12967
12968# Shell to use when invoking shell scripts.
12969SHELL=$lt_SHELL
12970
12971# An echo program that does not interpret backslashes.
12972ECHO=$lt_ECHO
12973
12974# Used to examine libraries when file_magic_cmd begins with "file".
12975MAGIC_CMD=$MAGIC_CMD
12976
12977# Must we lock files when doing compilation?
12978need_locks=$lt_need_locks
12979
12980# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12981DSYMUTIL=$lt_DSYMUTIL
12982
12983# Tool to change global to local symbols on Mac OS X.
12984NMEDIT=$lt_NMEDIT
12985
12986# Tool to manipulate fat objects and archives on Mac OS X.
12987LIPO=$lt_LIPO
12988
12989# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12990OTOOL=$lt_OTOOL
12991
12992# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12993OTOOL64=$lt_OTOOL64
12994
12995# Old archive suffix (normally "a").
12996libext=$libext
12997
12998# Shared library suffix (normally ".so").
12999shrext_cmds=$lt_shrext_cmds
13000
13001# The commands to extract the exported symbol list from a shared archive.
13002extract_expsyms_cmds=$lt_extract_expsyms_cmds
13003
13004# Variables whose values should be saved in libtool wrapper scripts and
13005# restored at link time.
13006variables_saved_for_relink=$lt_variables_saved_for_relink
13007
13008# Do we need the "lib" prefix for modules?
13009need_lib_prefix=$need_lib_prefix
13010
13011# Do we need a version for libraries?
13012need_version=$need_version
13013
13014# Library versioning type.
13015version_type=$version_type
13016
13017# Shared library runtime path variable.
13018runpath_var=$runpath_var
13019
13020# Shared library path variable.
13021shlibpath_var=$shlibpath_var
13022
13023# Is shlibpath searched before the hard-coded library search path?
13024shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13025
13026# Format of library name prefix.
13027libname_spec=$lt_libname_spec
13028
13029# List of archive names. First name is the real one, the rest are links.
13030# The last name is the one that the linker finds with -lNAME
13031library_names_spec=$lt_library_names_spec
13032
13033# The coded name of the library, if different from the real name.
13034soname_spec=$lt_soname_spec
13035
13036# Command to use after installation of a shared archive.
13037postinstall_cmds=$lt_postinstall_cmds
13038
13039# Command to use after uninstallation of a shared archive.
13040postuninstall_cmds=$lt_postuninstall_cmds
13041
13042# Commands used to finish a libtool library installation in a directory.
13043finish_cmds=$lt_finish_cmds
13044
13045# As "finish_cmds", except a single script fragment to be evaled but
13046# not shown.
13047finish_eval=$lt_finish_eval
13048
13049# Whether we should hardcode library paths into libraries.
13050hardcode_into_libs=$hardcode_into_libs
13051
13052# Compile-time system search path for libraries.
13053sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13054
13055# Run-time system search path for libraries.
13056sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13057
13058# Whether dlopen is supported.
13059dlopen_support=$enable_dlopen
13060
13061# Whether dlopen of programs is supported.
13062dlopen_self=$enable_dlopen_self
13063
13064# Whether dlopen of statically linked programs is supported.
13065dlopen_self_static=$enable_dlopen_self_static
13066
13067# Commands to strip libraries.
13068old_striplib=$lt_old_striplib
13069striplib=$lt_striplib
13070
13071
13072# The linker used to build libraries.
13073LD=$lt_LD
13074
13075# Commands used to build an old-style archive.
13076old_archive_cmds=$lt_old_archive_cmds
13077
13078# A language specific compiler.
13079CC=$lt_compiler
13080
13081# Is the compiler the GNU compiler?
13082with_gcc=$GCC
13083
13084# Compiler flag to turn off builtin functions.
13085no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13086
13087# How to pass a linker flag through the compiler.
13088wl=$lt_lt_prog_compiler_wl
13089
13090# Additional compiler flags for building library objects.
13091pic_flag=$lt_lt_prog_compiler_pic
13092
13093# Compiler flag to prevent dynamic linking.
13094link_static_flag=$lt_lt_prog_compiler_static
13095
13096# Does compiler simultaneously support -c and -o options?
13097compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13098
13099# Whether or not to add -lc for building shared libraries.
13100build_libtool_need_lc=$archive_cmds_need_lc
13101
13102# Whether or not to disallow shared libs when runtime libs are static.
13103allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13104
13105# Compiler flag to allow reflexive dlopens.
13106export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13107
13108# Compiler flag to generate shared objects directly from archives.
13109whole_archive_flag_spec=$lt_whole_archive_flag_spec
13110
13111# Whether the compiler copes with passing no objects directly.
13112compiler_needs_object=$lt_compiler_needs_object
13113
13114# Create an old-style archive from a shared archive.
13115old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13116
13117# Create a temporary old-style archive to link instead of a shared archive.
13118old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13119
13120# Commands used to build a shared archive.
13121archive_cmds=$lt_archive_cmds
13122archive_expsym_cmds=$lt_archive_expsym_cmds
13123
13124# Commands used to build a loadable module if different from building
13125# a shared archive.
13126module_cmds=$lt_module_cmds
13127module_expsym_cmds=$lt_module_expsym_cmds
13128
13129# Whether we are building with GNU ld or not.
13130with_gnu_ld=$lt_with_gnu_ld
13131
13132# Flag that allows shared libraries with undefined symbols to be built.
13133allow_undefined_flag=$lt_allow_undefined_flag
13134
13135# Flag that enforces no undefined symbols.
13136no_undefined_flag=$lt_no_undefined_flag
13137
13138# Flag to hardcode \$libdir into a binary during linking.
13139# This must work even if \$libdir does not exist
13140hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13141
13142# If ld is used when linking, flag to hardcode \$libdir into a binary
13143# during linking. This must work even if \$libdir does not exist.
13144hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13145
13146# Whether we need a single "-rpath" flag with a separated argument.
13147hardcode_libdir_separator=$lt_hardcode_libdir_separator
13148
13149# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13150# DIR into the resulting binary.
13151hardcode_direct=$hardcode_direct
13152
13153# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13154# DIR into the resulting binary and the resulting library dependency is
13155# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13156# library is relocated.
13157hardcode_direct_absolute=$hardcode_direct_absolute
13158
13159# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13160# into the resulting binary.
13161hardcode_minus_L=$hardcode_minus_L
13162
13163# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13164# into the resulting binary.
13165hardcode_shlibpath_var=$hardcode_shlibpath_var
13166
13167# Set to "yes" if building a shared library automatically hardcodes DIR
13168# into the library and all subsequent libraries and executables linked
13169# against it.
13170hardcode_automatic=$hardcode_automatic
13171
13172# Set to yes if linker adds runtime paths of dependent libraries
13173# to runtime path list.
13174inherit_rpath=$inherit_rpath
13175
13176# Whether libtool must link a program against all its dependency libraries.
13177link_all_deplibs=$link_all_deplibs
13178
13179# Fix the shell variable \$srcfile for the compiler.
13180fix_srcfile_path=$lt_fix_srcfile_path
13181
13182# Set to "yes" if exported symbols are required.
13183always_export_symbols=$always_export_symbols
13184
13185# The commands to list exported symbols.
13186export_symbols_cmds=$lt_export_symbols_cmds
13187
13188# Symbols that should not be listed in the preloaded symbols.
13189exclude_expsyms=$lt_exclude_expsyms
13190
13191# Symbols that must always be exported.
13192include_expsyms=$lt_include_expsyms
13193
13194# Commands necessary for linking programs (against libraries) with templates.
13195prelink_cmds=$lt_prelink_cmds
13196
13197# Specify filename containing input files.
13198file_list_spec=$lt_file_list_spec
13199
13200# How to hardcode a shared library path into an executable.
13201hardcode_action=$hardcode_action
13202
13203# ### END LIBTOOL CONFIG
13204
13205_LT_EOF
13206
13207 case $host_os in
13208 aix3*)
13209 cat <<\_LT_EOF >> "$cfgfile"
13210# AIX sometimes has problems with the GCC collect2 program. For some
13211# reason, if we set the COLLECT_NAMES environment variable, the problems
13212# vanish in a puff of smoke.
13213if test "X${COLLECT_NAMES+set}" != Xset; then
13214 COLLECT_NAMES=
13215 export COLLECT_NAMES
13216fi
13217_LT_EOF
13218 ;;
13219 esac
13220
13221
13222ltmain="$ac_aux_dir/ltmain.sh"
13223
13224
13225 # We use sed instead of cat because bash on DJGPP gets confused if
13226 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13227 # text mode, it properly converts lines to CR/LF. This bash problem
13228 # is reportedly fixed, but why not run on old versions too?
13229 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13230 || (rm -f "$cfgfile"; exit 1)
13231
13232 case $xsi_shell in
13233 yes)
13234 cat << \_LT_EOF >> "$cfgfile"
13235
13236# func_dirname file append nondir_replacement
13237# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13238# otherwise set result to NONDIR_REPLACEMENT.
13239func_dirname ()
13240{
13241 case ${1} in
13242 */*) func_dirname_result="${1%/*}${2}" ;;
13243 * ) func_dirname_result="${3}" ;;
13244 esac
13245}
13246
13247# func_basename file
13248func_basename ()
13249{
13250 func_basename_result="${1##*/}"
13251}
13252
13253# func_dirname_and_basename file append nondir_replacement
13254# perform func_basename and func_dirname in a single function
13255# call:
13256# dirname: Compute the dirname of FILE. If nonempty,
13257# add APPEND to the result, otherwise set result
13258# to NONDIR_REPLACEMENT.
13259# value returned in "$func_dirname_result"
13260# basename: Compute filename of FILE.
13261# value retuned in "$func_basename_result"
13262# Implementation must be kept synchronized with func_dirname
13263# and func_basename. For efficiency, we do not delegate to
13264# those functions but instead duplicate the functionality here.
13265func_dirname_and_basename ()
13266{
13267 case ${1} in
13268 */*) func_dirname_result="${1%/*}${2}" ;;
13269 * ) func_dirname_result="${3}" ;;
13270 esac
13271 func_basename_result="${1##*/}"
13272}
13273
13274# func_stripname prefix suffix name
13275# strip PREFIX and SUFFIX off of NAME.
13276# PREFIX and SUFFIX must not contain globbing or regex special
13277# characters, hashes, percent signs, but SUFFIX may contain a leading
13278# dot (in which case that matches only a dot).
13279func_stripname ()
13280{
13281 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13282 # positional parameters, so assign one to ordinary parameter first.
13283 func_stripname_result=${3}
13284 func_stripname_result=${func_stripname_result#"${1}"}
13285 func_stripname_result=${func_stripname_result%"${2}"}
13286}
13287
13288# func_opt_split
13289func_opt_split ()
13290{
13291 func_opt_split_opt=${1%%=*}
13292 func_opt_split_arg=${1#*=}
13293}
13294
13295# func_lo2o object
13296func_lo2o ()
13297{
13298 case ${1} in
13299 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13300 *) func_lo2o_result=${1} ;;
13301 esac
13302}
13303
13304# func_xform libobj-or-source
13305func_xform ()
13306{
13307 func_xform_result=${1%.*}.lo
13308}
13309
13310# func_arith arithmetic-term...
13311func_arith ()
13312{
13313 func_arith_result=$(( $* ))
13314}
13315
13316# func_len string
13317# STRING may not start with a hyphen.
13318func_len ()
13319{
13320 func_len_result=${#1}
13321}
13322
13323_LT_EOF
13324 ;;
13325 *) # Bourne compatible functions.
13326 cat << \_LT_EOF >> "$cfgfile"
13327
13328# func_dirname file append nondir_replacement
13329# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13330# otherwise set result to NONDIR_REPLACEMENT.
13331func_dirname ()
13332{
13333 # Extract subdirectory from the argument.
13334 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13335 if test "X$func_dirname_result" = "X${1}"; then
13336 func_dirname_result="${3}"
13337 else
13338 func_dirname_result="$func_dirname_result${2}"
13339 fi
13340}
13341
13342# func_basename file
13343func_basename ()
13344{
13345 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13346}
13347
13348
13349# func_stripname prefix suffix name
13350# strip PREFIX and SUFFIX off of NAME.
13351# PREFIX and SUFFIX must not contain globbing or regex special
13352# characters, hashes, percent signs, but SUFFIX may contain a leading
13353# dot (in which case that matches only a dot).
13354# func_strip_suffix prefix name
13355func_stripname ()
13356{
13357 case ${2} in
13358 .*) func_stripname_result=`$ECHO "X${3}" \
13359 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13360 *) func_stripname_result=`$ECHO "X${3}" \
13361 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13362 esac
13363}
13364
13365# sed scripts:
13366my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13367my_sed_long_arg='1s/^-[^=]*=//'
13368
13369# func_opt_split
13370func_opt_split ()
13371{
13372 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13373 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13374}
13375
13376# func_lo2o object
13377func_lo2o ()
13378{
13379 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13380}
13381
13382# func_xform libobj-or-source
13383func_xform ()
13384{
13385 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13386}
13387
13388# func_arith arithmetic-term...
13389func_arith ()
13390{
13391 func_arith_result=`expr "$@"`
13392}
13393
13394# func_len string
13395# STRING may not start with a hyphen.
13396func_len ()
13397{
13398 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13399}
13400
13401_LT_EOF
13402esac
13403
13404case $lt_shell_append in
13405 yes)
13406 cat << \_LT_EOF >> "$cfgfile"
13407
13408# func_append var value
13409# Append VALUE to the end of shell variable VAR.
13410func_append ()
13411{
13412 eval "$1+=\$2"
13413}
13414_LT_EOF
13415 ;;
13416 *)
13417 cat << \_LT_EOF >> "$cfgfile"
13418
13419# func_append var value
13420# Append VALUE to the end of shell variable VAR.
13421func_append ()
13422{
13423 eval "$1=\$$1\$2"
13424}
13425
13426_LT_EOF
13427 ;;
13428 esac
13429
13430
13431 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13432 || (rm -f "$cfgfile"; exit 1)
13433
13434 mv -f "$cfgfile" "$ofile" ||
13435 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13436 chmod +x "$ofile"
13437
13438 ;;
mlcreech94984912008-03-04 19:03:08 +000013439
drh8b727472009-01-19 18:18:40 +000013440 esac
13441done # for ac_tag
13442
drh71eb93e2001-09-28 01:34:43 +000013443
drhf922ca42015-05-14 15:39:18 +000013444as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013445_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013446ac_clean_files=$ac_clean_files_save
13447
drh8b727472009-01-19 18:18:40 +000013448test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013449 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013450
a.rottmann84e63352003-03-24 09:42:16 +000013451
drh71eb93e2001-09-28 01:34:43 +000013452# configure is writing to config.log, and then calls config.status.
13453# config.status does its own redirection, appending to config.log.
13454# Unfortunately, on DOS this fails, as config.log is still kept open
13455# by configure, so config.status won't be able to write to it; its
13456# output is simply discarded. So we exec the FD to /dev/null,
13457# effectively closing config.log, so it can be properly (re)opened and
13458# appended to by config.status. When coming back to configure, we
13459# need to make the FD available again.
13460if test "$no_create" != yes; then
13461 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013462 ac_config_status_args=
13463 test "$silent" = yes &&
13464 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013465 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013467 exec 5>>config.log
13468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13469 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013470 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013471fi
drh8b727472009-01-19 18:18:40 +000013472if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13474$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013475fi
drhbc7a22d2009-10-13 22:47:13 +000013476