blob: b5ec65f2df33477b14e5da7dad7ee2715af1c7cf [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.
drhc4e6d172015-10-09 13:42:52 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.9.0.
drh75897232000-05-29 14:26:00 +00004#
drhf922ca42015-05-14 15:39:18 +00005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
drh75897232000-05-29 14:26:00 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
drhf922ca42015-05-14 15:39:18 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000014
drh8b727472009-01-19 18:18:40 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000018 emulate sh
19 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000023 setopt NO_GLOB_SUBST
24else
drhf922ca42015-05-14 15:39:18 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
drh8b727472009-01-19 18:18:40 +000030esac
a.rottmann84e63352003-03-24 09:42:16 +000031fi
drh8b727472009-01-19 18:18:40 +000032
33
drh8b727472009-01-19 18:18:40 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
drhf922ca42015-05-14 15:39:18 +000058 case $arg in #(
drh8b727472009-01-19 18:18:40 +000059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
a.rottmann84e63352003-03-24 09:42:16 +000080
mlcreech94984912008-03-04 19:03:08 +000081
drh8b727472009-01-19 18:18:40 +000082# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000090as_myself=
91case $0 in #((
drh8b727472009-01-19 18:18:40 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
drh8b727472009-01-19 18:18:40 +0000100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +0000111 exit 1
drh8b727472009-01-19 18:18:40 +0000112fi
113
drhf922ca42015-05-14 15:39:18 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000121done
mlcreech94984912008-03-04 19:03:08 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000131
drhf922ca42015-05-14 15:39:18 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
drh8b727472009-01-19 18:18:40 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
drh8b727472009-01-19 18:18:40 +0000426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
drhf922ca42015-05-14 15:39:18 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
mlcreech94984912008-03-04 19:03:08 +0000437
drh8b727472009-01-19 18:18:40 +0000438as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
drhf922ca42015-05-14 15:39:18 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000463
464
drhf922ca42015-05-14 15:39:18 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000474 sed '
drh8b727472009-01-19 18:18:40 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000479 N
drh8b727472009-01-19 18:18:40 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000482 t loop
drh8b727472009-01-19 18:18:40 +0000483 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000484 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000485 chmod +x "$as_me.lineno" ||
drhf922ca42015-05-14 15:39:18 +0000486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000487
drhf922ca42015-05-14 15:39:18 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
a.rottmann84e63352003-03-24 09:42:16 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000496 # Exit status is that of the last command.
497 exit
498}
499
drh8b727472009-01-19 18:18:40 +0000500ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +0000501case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000502-n*)
drhf922ca42015-05-14 15:39:18 +0000503 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000508 esac;;
509*)
510 ECHO_N='-n';;
511esac
a.rottmann84e63352003-03-24 09:42:16 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000522 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +0000526 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +0000528 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
drhf922ca42015-05-14 15:39:18 +0000532 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +0000533 fi
a.rottmann84e63352003-03-24 09:42:16 +0000534else
drhf922ca42015-05-14 15:39:18 +0000535 as_ln_s='cp -pR'
a.rottmann84e63352003-03-24 09:42:16 +0000536fi
drh8b727472009-01-19 18:18:40 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000539
540if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000542else
a.rottmann964dbb12004-02-26 19:47:42 +0000543 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000544 as_mkdir_p=false
545fi
546
drhf922ca42015-05-14 15:39:18 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +0000549
550# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000552
553# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000555
556
drh75897232000-05-29 14:26:00 +0000557
drh71eb93e2001-09-28 01:34:43 +0000558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
mlcreech636a9952008-05-05 22:52:56 +0000561case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000565 ;;
566esac
567
mlcreech636a9952008-05-05 22:52:56 +0000568ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
mlcreech636a9952008-05-05 22:52:56 +0000575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
mlcreech636a9952008-05-05 22:52:56 +0000586 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000587$*
mlcreech636a9952008-05-05 22:52:56 +0000588_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000595
mlcreech636a9952008-05-05 22:52:56 +0000596if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
drh71eb93e2001-09-28 01:34:43 +0000608
mlcreech636a9952008-05-05 22:52:56 +0000609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000619
mlcreech636a9952008-05-05 22:52:56 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000631 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000632
mlcreech636a9952008-05-05 22:52:56 +0000633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000648 else
mlcreech636a9952008-05-05 22:52:56 +0000649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
drh71eb93e2001-09-28 01:34:43 +0000673
mlcreech636a9952008-05-05 22:52:56 +0000674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000689 fi
mlcreech636a9952008-05-05 22:52:56 +0000690 fi
drh71eb93e2001-09-28 01:34:43 +0000691 fi
692 fi
693 fi
694fi
drh71eb93e2001-09-28 01:34:43 +0000695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000701fi
702
drh71eb93e2001-09-28 01:34:43 +0000703
drh71eb93e2001-09-28 01:34:43 +0000704
a.rottmann9bc8b932004-02-29 15:18:31 +0000705
drhf922ca42015-05-14 15:39:18 +0000706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
drh8b727472009-01-19 18:18:40 +0000708
drh71eb93e2001-09-28 01:34:43 +0000709# Name of the host.
drhf922ca42015-05-14 15:39:18 +0000710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
drh71eb93e2001-09-28 01:34:43 +0000714#
715# Initializations.
716#
drh75897232000-05-29 14:26:00 +0000717ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000718ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000719ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000720LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000721cross_compiling=no
722subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000723MFLAGS=
724MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
drhc4e6d172015-10-09 13:42:52 +0000729PACKAGE_VERSION='3.9.0'
730PACKAGE_STRING='sqlite 3.9.0'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
775USE_AMALGAMATION
776TARGET_DEBUG
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
drhf922ca42015-05-14 15:39:18 +0000806INSTALL_DATA
807INSTALL_SCRIPT
808INSTALL_PROGRAM
809CPP
810OTOOL64
811OTOOL
812LIPO
813NMEDIT
814DSYMUTIL
815lt_ECHO
816RANLIB
817STRIP
818AR
819OBJDUMP
820LN_S
821NM
822ac_ct_DUMPBIN
823DUMPBIN
824LD
825FGREP
826EGREP
827GREP
828SED
829OBJEXT
830EXEEXT
831ac_ct_CC
832CPPFLAGS
833LDFLAGS
834CFLAGS
835CC
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844LIBTOOL
845target_alias
846host_alias
847build_alias
848LIBS
849ECHO_T
850ECHO_N
851ECHO_C
852DEFS
853mandir
854localedir
855libdir
856psdir
857pdfdir
858dvidir
859htmldir
860infodir
861docdir
862oldincludedir
863includedir
864localstatedir
865sharedstatedir
866sysconfdir
867datadir
868datarootdir
869libexecdir
870sbindir
871bindir
872program_transform_name
873prefix
874exec_prefix
875PACKAGE_URL
876PACKAGE_BUGREPORT
877PACKAGE_STRING
878PACKAGE_VERSION
879PACKAGE_TARNAME
880PACKAGE_NAME
881PATH_SEPARATOR
882SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000883ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000884ac_user_opts='
885enable_option_checking
886enable_shared
887enable_static
888with_pic
889enable_fast_install
890with_gnu_ld
891enable_libtool_lock
892enable_largefile
drh8b727472009-01-19 18:18:40 +0000893enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000894enable_releasemode
895enable_tempstore
896enable_tcl
897with_tcl
898enable_readline
899with_readline_lib
900with_readline_inc
901enable_debug
902enable_amalgamation
903enable_load_extension
drhce1d9f52015-10-09 12:48:33 +0000904enable_fts3
905enable_fts4
906enable_fts5
907enable_json1
908enable_rtree
drh8b727472009-01-19 18:18:40 +0000909enable_gcov
910'
911 ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000919CPP
920TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000921
drh75897232000-05-29 14:26:00 +0000922
923# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000924ac_init_help=
925ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000926ac_unrecognized_opts=
927ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000928# The variables have the same names as the options, with
929# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000930cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000931exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000932no_create=
drh75897232000-05-29 14:26:00 +0000933no_recursion=
934prefix=NONE
935program_prefix=NONE
936program_suffix=NONE
937program_transform_name=s,x,x,
938silent=
939site=
940srcdir=
drh75897232000-05-29 14:26:00 +0000941verbose=
942x_includes=NONE
943x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000944
945# Installation directory options.
946# These are left unexpanded so users can "make install exec_prefix=/foo"
947# and all the variables that are supposed to be based on exec_prefix
948# by default will actually change.
949# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000950# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000951bindir='${exec_prefix}/bin'
952sbindir='${exec_prefix}/sbin'
953libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000954datarootdir='${prefix}/share'
955datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000956sysconfdir='${prefix}/etc'
957sharedstatedir='${prefix}/com'
958localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000959includedir='${prefix}/include'
960oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962infodir='${datarootdir}/info'
963htmldir='${docdir}'
964dvidir='${docdir}'
965pdfdir='${docdir}'
966psdir='${docdir}'
967libdir='${exec_prefix}/lib'
968localedir='${datarootdir}/locale'
969mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000970
drh75897232000-05-29 14:26:00 +0000971ac_prev=
drh8b727472009-01-19 18:18:40 +0000972ac_dashdash=
drh75897232000-05-29 14:26:00 +0000973for ac_option
974do
drh75897232000-05-29 14:26:00 +0000975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000977 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000978 ac_prev=
979 continue
980 fi
981
drh8b727472009-01-19 18:18:40 +0000982 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *=) ac_optarg= ;;
985 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000986 esac
drh75897232000-05-29 14:26:00 +0000987
988 # Accept the important Cygnus configure options, so we can diagnose typos.
989
drh8b727472009-01-19 18:18:40 +0000990 case $ac_dashdash$ac_option in
991 --)
992 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000993
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +0000997 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +0000998
999 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001000 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001002 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001003
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001009 cache_file=$ac_optarg ;;
1010
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001013
drh8b727472009-01-19 18:18:40 +00001014 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001015 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001017 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001018
drh8b727472009-01-19 18:18:40 +00001019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1025
drh75897232000-05-29 14:26:00 +00001026 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001028 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001030 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1034 *"
1035"enable_$ac_useropt"
1036"*) ;;
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1039 esac
1040 eval enable_$ac_useropt=no ;;
1041
1042 -docdir | --docdir | --docdi | --doc | --do)
1043 ac_prev=docdir ;;
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1046
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048 ac_prev=dvidir ;;
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001051
1052 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001054 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001056 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061"enable_$ac_useropt"
1062"*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001065 esac
drh8b727472009-01-19 18:18:40 +00001066 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001067
1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070 | --exec | --exe | --ex)
1071 ac_prev=exec_prefix ;;
1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001075 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001076
1077 -gas | --gas | --ga | --g)
1078 # Obsolete; use --with-gas.
1079 with_gas=yes ;;
1080
drh71eb93e2001-09-28 01:34:43 +00001081 -help | --help | --hel | --he | -h)
1082 ac_init_help=long ;;
1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084 ac_init_help=recursive ;;
1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001087
1088 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001089 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001090 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001091 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001092
drh8b727472009-01-19 18:18:40 +00001093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094 ac_prev=htmldir ;;
1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096 | --ht=*)
1097 htmldir=$ac_optarg ;;
1098
drh75897232000-05-29 14:26:00 +00001099 -includedir | --includedir | --includedi | --included | --include \
1100 | --includ | --inclu | --incl | --inc)
1101 ac_prev=includedir ;;
1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001104 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001105
1106 -infodir | --infodir | --infodi | --infod | --info | --inf)
1107 ac_prev=infodir ;;
1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001109 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
1111 -libdir | --libdir | --libdi | --libd)
1112 ac_prev=libdir ;;
1113 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001114 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001115
1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117 | --libexe | --libex | --libe)
1118 ac_prev=libexecdir ;;
1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001121 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001122
drh8b727472009-01-19 18:18:40 +00001123 -localedir | --localedir | --localedi | --localed | --locale)
1124 ac_prev=localedir ;;
1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126 localedir=$ac_optarg ;;
1127
drh75897232000-05-29 14:26:00 +00001128 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001129 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001130 ac_prev=localstatedir ;;
1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001133 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001134
1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136 ac_prev=mandir ;;
1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001138 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001139
1140 -nfp | --nfp | --nf)
1141 # Obsolete; use --without-fp.
1142 with_fp=no ;;
1143
1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001145 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001146 no_create=yes ;;
1147
1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150 no_recursion=yes ;;
1151
1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154 | --oldin | --oldi | --old | --ol | --o)
1155 ac_prev=oldincludedir ;;
1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001159 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001160
1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162 ac_prev=prefix ;;
1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001164 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001165
1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167 | --program-pre | --program-pr | --program-p)
1168 ac_prev=program_prefix ;;
1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001171 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001172
1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174 | --program-suf | --program-su | --program-s)
1175 ac_prev=program_suffix ;;
1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001178 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001179
1180 -program-transform-name | --program-transform-name \
1181 | --program-transform-nam | --program-transform-na \
1182 | --program-transform-n | --program-transform- \
1183 | --program-transform | --program-transfor \
1184 | --program-transfo | --program-transf \
1185 | --program-trans | --program-tran \
1186 | --progr-tra | --program-tr | --program-t)
1187 ac_prev=program_transform_name ;;
1188 -program-transform-name=* | --program-transform-name=* \
1189 | --program-transform-nam=* | --program-transform-na=* \
1190 | --program-transform-n=* | --program-transform-=* \
1191 | --program-transform=* | --program-transfor=* \
1192 | --program-transfo=* | --program-transf=* \
1193 | --program-trans=* | --program-tran=* \
1194 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001195 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001196
drh8b727472009-01-19 18:18:40 +00001197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198 ac_prev=pdfdir ;;
1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200 pdfdir=$ac_optarg ;;
1201
1202 -psdir | --psdir | --psdi | --psd | --ps)
1203 ac_prev=psdir ;;
1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205 psdir=$ac_optarg ;;
1206
drh75897232000-05-29 14:26:00 +00001207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208 | -silent | --silent | --silen | --sile | --sil)
1209 silent=yes ;;
1210
1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212 ac_prev=sbindir ;;
1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001215 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001216
1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219 | --sharedst | --shareds | --shared | --share | --shar \
1220 | --sha | --sh)
1221 ac_prev=sharedstatedir ;;
1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001226 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001227
1228 -site | --site | --sit)
1229 ac_prev=site ;;
1230 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001231 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001232
1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234 ac_prev=srcdir ;;
1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001236 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001237
1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239 | --syscon | --sysco | --sysc | --sys | --sy)
1240 ac_prev=sysconfdir ;;
1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001243 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001244
1245 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001246 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001248 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001249
1250 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251 verbose=yes ;;
1252
drh71eb93e2001-09-28 01:34:43 +00001253 -version | --version | --versio | --versi | --vers | -V)
1254 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001255
1256 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001258 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001260 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001269 esac
drh8b727472009-01-19 18:18:40 +00001270 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001271
1272 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001274 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001276 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1280 *"
1281"with_$ac_useropt"
1282"*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001287
1288 --x)
1289 # Obsolete; use --with-x.
1290 with_x=yes ;;
1291
1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293 | --x-incl | --x-inc | --x-in | --x-i)
1294 ac_prev=x_includes ;;
1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001297 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001298
1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301 ac_prev=x_libraries ;;
1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001304 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001305
drhf922ca42015-05-14 15:39:18 +00001306 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001308 ;;
1309
drh71eb93e2001-09-28 01:34:43 +00001310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001313 case $ac_envvar in #(
1314 '' | [0-9]* | *[!_$as_cr_alnum]* )
1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316 esac
drh8b727472009-01-19 18:18:40 +00001317 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001318 export $ac_envvar ;;
1319
drh75897232000-05-29 14:26:00 +00001320 *)
drh71eb93e2001-09-28 01:34:43 +00001321 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001325 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001326 ;;
1327
1328 esac
1329done
1330
1331if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001332 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001333 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001334fi
1335
drh8b727472009-01-19 18:18:40 +00001336if test -n "$ac_unrecognized_opts"; then
1337 case $enable_option_checking in
1338 no) ;;
drhf922ca42015-05-14 15:39:18 +00001339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001341 esac
drh8b727472009-01-19 18:18:40 +00001342fi
drh866108f2008-05-13 00:57:21 +00001343
drh8b727472009-01-19 18:18:40 +00001344# Check all directory arguments for consistency.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001349do
drh8b727472009-01-19 18:18:40 +00001350 eval ac_val=\$$ac_var
1351 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001352 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001353 */ )
1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001356 esac
drh8b727472009-01-19 18:18:40 +00001357 # Be sure to have absolute directory names.
1358 case $ac_val in
1359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361 esac
drhf922ca42015-05-14 15:39:18 +00001362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001363done
drh75897232000-05-29 14:26:00 +00001364
drh71eb93e2001-09-28 01:34:43 +00001365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001367# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001368build=$build_alias
1369host=$host_alias
1370target=$target_alias
drh75897232000-05-29 14:26:00 +00001371
a.rottmann84e63352003-03-24 09:42:16 +00001372# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001373if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001385
a.rottmann84e63352003-03-24 09:42:16 +00001386
drh8b727472009-01-19 18:18:40 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001390 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001392 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001393
1394
drh75897232000-05-29 14:26:00 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$as_myself" ||
1400$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1401 X"$as_myself" : 'X\(//\)[^/]' \| \
1402 X"$as_myself" : 'X\(//\)$' \| \
1403 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1404$as_echo X"$as_myself" |
1405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001422 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
drh8b727472009-01-19 18:18:40 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001431 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001432fi
drh8b727472009-01-19 18:18:40 +00001433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001435 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
drh75897232000-05-29 14:26:00 +00001453
drh71eb93e2001-09-28 01:34:43 +00001454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001460 cat <<_ACEOF
drhc4e6d172015-10-09 13:42:52 +00001461\`configure' configures sqlite 3.9.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001475 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
drh71eb93e2001-09-28 01:34:43 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001483 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001485 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001514_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001515
a.rottmann84e63352003-03-24 09:42:16 +00001516 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001522fi
1523
1524if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001525 case $ac_init_help in
drhc4e6d172015-10-09 13:42:52 +00001526 short | recursive ) echo "Configuration of sqlite 3.9.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001527 esac
a.rottmann84e63352003-03-24 09:42:16 +00001528 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001529
1530Optional Features:
drh8b727472009-01-19 18:18:40 +00001531 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001534 --enable-shared[=PKGS] build shared libraries [default=yes]
1535 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001536 --enable-fast-install[=PKGS]
1537 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001538 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001539 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001540 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001541 --enable-releasemode Support libtool link to release mode
1542 --enable-tempstore Use an in-ram database for temporary tables
1543 (never,no,yes,always)
1544 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001545 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001546 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001547 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001548 separately
drh05c7e0b2015-01-10 14:27:17 +00001549 --disable-load-extension
1550 Disable loading of external extensions
drhce1d9f52015-10-09 12:48:33 +00001551 --enable-fts3 Enable the FTS3 extension
1552 --enable-fts4 Enable the FTS4 extension
1553 --enable-fts5 Enable the FTS5 extension
1554 --enable-json1 Enable the JSON1 extension
1555 --enable-rtree Enable the RTREE extension
mlcreechaac7b932008-04-01 02:45:22 +00001556 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
mlcreech636a9952008-05-05 22:52:56 +00001563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001564 --with-tcl=DIR directory containing tcl configuration
1565 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001566 --with-readline-lib specify readline library
1567 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001568
1569Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001574 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001575 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001576 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001577 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001578 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
drhf922ca42015-05-14 15:39:18 +00001583Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001584_ACEOF
drh8b727472009-01-19 18:18:40 +00001585ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
a.rottmann84e63352003-03-24 09:42:16 +00001594 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001595
drh8b727472009-01-19 18:18:40 +00001596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001611
a.rottmann84e63352003-03-24 09:42:16 +00001612case $srcdir in
drh8b727472009-01-19 18:18:40 +00001613 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001614 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001618 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001625esac
drh8b727472009-01-19 18:18:40 +00001626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001627
drh8b727472009-01-19 18:18:40 +00001628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001636 else
drh8b727472009-01-19 18:18:40 +00001637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001640 done
1641fi
1642
drh8b727472009-01-19 18:18:40 +00001643test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001644if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001645 cat <<\_ACEOF
drhc4e6d172015-10-09 13:42:52 +00001646sqlite configure 3.9.0
drhf922ca42015-05-14 15:39:18 +00001647generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001648
drhf922ca42015-05-14 15:39:18 +00001649Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001652_ACEOF
drh8b727472009-01-19 18:18:40 +00001653 exit
drh71eb93e2001-09-28 01:34:43 +00001654fi
drhf922ca42015-05-14 15:39:18 +00001655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_link LINENO
1699# -----------------------
1700# Try to link conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_link ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext conftest$ac_exeext
1705 if { { ac_try="$ac_link"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
1725 test -x conftest$ac_exeext
1726 }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: failed program was:" >&5
1730sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733fi
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_link
1743
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1755else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762 eval "$3=yes"
1763else
1764 eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } > conftest.i && {
1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806fi
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1840 ac_retval=0
1841else
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=$ac_status
1847fi
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908else
1909 eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919} # ac_fn_c_check_func
1920
1921# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1922# -------------------------------------------
1923# Tests whether TYPE exists after having included INCLUDES, setting cache
1924# variable VAR accordingly.
1925ac_fn_c_check_type ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932else
1933 eval "$3=no"
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940if (sizeof ($2))
1941 return 0;
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950int
1951main ()
1952{
1953if (sizeof (($2)))
1954 return 0;
1955 ;
1956 return 0;
1957}
1958_ACEOF
1959if ac_fn_c_try_compile "$LINENO"; then :
1960
1961else
1962 eval "$3=yes"
1963fi
1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972
1973} # ac_fn_c_check_type
1974
1975# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976# -------------------------------------------------------
1977# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978# the include files in INCLUDES and setting the cache variable VAR
1979# accordingly.
1980ac_fn_c_check_header_mongrel ()
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if eval \${$3+:} false; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985$as_echo_n "checking for $2... " >&6; }
1986if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988fi
1989eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992else
1993 # Is the header compilable?
1994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995$as_echo_n "checking $2 usability... " >&6; }
1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003else
2004 ac_header_compiler=no
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008$as_echo "$ac_header_compiler" >&6; }
2009
2010# Is the header present?
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012$as_echo_n "checking $2 presence... " >&6; }
2013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015#include <$2>
2016_ACEOF
2017if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019else
2020 ac_header_preproc=no
2021fi
2022rm -f conftest.err conftest.i conftest.$ac_ext
2023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024$as_echo "$ac_header_preproc" >&6; }
2025
2026# So? What about this header?
2027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ;;
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ;;
2046esac
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; }
2049if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051else
2052 eval "$3=\$ac_header_compiler"
2053fi
2054eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056$as_echo "$ac_res" >&6; }
2057fi
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002061cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002062This file contains any messages produced by compilers while
2063running configure, to aid debugging if configure makes a mistake.
2064
drhc4e6d172015-10-09 13:42:52 +00002065It was created by sqlite $as_me 3.9.0, which was
drhf922ca42015-05-14 15:39:18 +00002066generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002067
2068 $ $0 $@
2069
a.rottmann84e63352003-03-24 09:42:16 +00002070_ACEOF
drh8b727472009-01-19 18:18:40 +00002071exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002072{
2073cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002074## --------- ##
2075## Platform. ##
2076## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002077
2078hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082uname -v = `(uname -v) 2>/dev/null || echo unknown`
2083
2084/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2086
2087/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002090/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002091/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2094
drh71eb93e2001-09-28 01:34:43 +00002095_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002096
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH
2099do
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002102 $as_echo "PATH: $as_dir"
2103 done
drh8b727472009-01-19 18:18:40 +00002104IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002105
drh71eb93e2001-09-28 01:34:43 +00002106} >&5
2107
a.rottmann84e63352003-03-24 09:42:16 +00002108cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002109
a.rottmann84e63352003-03-24 09:42:16 +00002110
2111## ----------- ##
2112## Core tests. ##
2113## ----------- ##
2114
2115_ACEOF
2116
drh71eb93e2001-09-28 01:34:43 +00002117
2118# Keep a trace of the command line.
2119# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002120# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002121# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002122# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002123ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002124ac_configure_args0=
2125ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002126ac_must_keep_next=false
2127for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002128do
a.rottmann84e63352003-03-24 09:42:16 +00002129 for ac_arg
2130 do
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
drh8b727472009-01-19 18:18:40 +00002136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002138 esac
2139 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002141 2)
drhf922ca42015-05-14 15:39:18 +00002142 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002143 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002144 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002145 else
a.rottmann964dbb12004-02-26 19:47:42 +00002146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2154 ;;
2155 -* ) ac_must_keep_next=true ;;
2156 esac
a.rottmann84e63352003-03-24 09:42:16 +00002157 fi
drhf922ca42015-05-14 15:39:18 +00002158 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002159 ;;
2160 esac
2161 done
drh71eb93e2001-09-28 01:34:43 +00002162done
drhf922ca42015-05-14 15:39:18 +00002163{ ac_configure_args0=; unset ac_configure_args0;}
2164{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002165
2166# When interrupted or exit'd, cleanup temporary files, and complete
2167# config.log. We remove comments because anyway the quotes in there
2168# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002169# WARNING: Use '\'' to represent an apostrophe within the trap.
2170# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002171trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002173 {
2174 echo
2175
drhf922ca42015-05-14 15:39:18 +00002176 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002177## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002178## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002179 echo
2180 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002181(
2182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in #(
2185 *${as_nl}*)
2186 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002189 esac
2190 case $ac_var in #(
2191 _ | IFS | as_nl) ;; #(
2192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002193 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002194 esac ;;
2195 esac
2196 done
drh71eb93e2001-09-28 01:34:43 +00002197 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002200 sed -n \
drh8b727472009-01-19 18:18:40 +00002201 "s/'\''/'\''\\\\'\'''\''/g;
2202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 ;; #(
drh866108f2008-05-13 00:57:21 +00002204 *)
drh8b727472009-01-19 18:18:40 +00002205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002206 ;;
drh8b727472009-01-19 18:18:40 +00002207 esac |
2208 sort
2209)
a.rottmann84e63352003-03-24 09:42:16 +00002210 echo
2211
drhf922ca42015-05-14 15:39:18 +00002212 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002213## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002214## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002215 echo
2216 for ac_var in $ac_subst_vars
2217 do
drh8b727472009-01-19 18:18:40 +00002218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002223 done | sort
2224 echo
2225
2226 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002227 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002228## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002229## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002230 echo
2231 for ac_var in $ac_subst_files
2232 do
drh8b727472009-01-19 18:18:40 +00002233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002238 done | sort
2239 echo
2240 fi
2241
2242 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002243 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002244## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002245## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002246 echo
drh8b727472009-01-19 18:18:40 +00002247 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002248 echo
2249 fi
2250 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002251 $as_echo "$as_me: caught signal $ac_signal"
2252 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002253 } >&5
drh8b727472009-01-19 18:18:40 +00002254 rm -f core *.core core.conftest.* &&
2255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002256 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002257' 0
drh71eb93e2001-09-28 01:34:43 +00002258for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002260done
2261ac_signal=0
2262
2263# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002264rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002265
drhf922ca42015-05-14 15:39:18 +00002266$as_echo "/* confdefs.h */" > confdefs.h
2267
a.rottmann84e63352003-03-24 09:42:16 +00002268# Predefined preprocessor variables.
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_NAME "$PACKAGE_NAME"
2272_ACEOF
2273
a.rottmann84e63352003-03-24 09:42:16 +00002274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276_ACEOF
2277
a.rottmann84e63352003-03-24 09:42:16 +00002278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_VERSION "$PACKAGE_VERSION"
2280_ACEOF
2281
a.rottmann84e63352003-03-24 09:42:16 +00002282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_STRING "$PACKAGE_STRING"
2284_ACEOF
2285
dana9f39fd2011-08-12 16:34:42 +00002286cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002287#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002288_ACEOF
2289
drhf922ca42015-05-14 15:39:18 +00002290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_URL "$PACKAGE_URL"
2292_ACEOF
2293
a.rottmann84e63352003-03-24 09:42:16 +00002294
drh71eb93e2001-09-28 01:34:43 +00002295# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002296# Prefer an explicitly selected file to automatically selected ones.
2297ac_site_file1=NONE
2298ac_site_file2=NONE
2299if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002300 # We do not want a PATH search for config.site.
2301 case $CONFIG_SITE in #((
2302 -*) ac_site_file1=./$CONFIG_SITE;;
2303 */*) ac_site_file1=$CONFIG_SITE;;
2304 *) ac_site_file1=./$CONFIG_SITE;;
2305 esac
drh8b727472009-01-19 18:18:40 +00002306elif test "x$prefix" != xNONE; then
2307 ac_site_file1=$prefix/share/config.site
2308 ac_site_file2=$prefix/etc/config.site
2309else
2310 ac_site_file1=$ac_default_prefix/share/config.site
2311 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002312fi
drh8b727472009-01-19 18:18:40 +00002313for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2314do
2315 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002318$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002319 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002320 . "$ac_site_file" \
2321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323as_fn_error $? "failed to load site script $ac_site_file
2324See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002325 fi
2326done
2327
2328if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002329 # Some versions of bash will fail to source /dev/null (special files
2330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002333$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002334 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002337 esac
2338 fi
drh75897232000-05-29 14:26:00 +00002339else
drhf922ca42015-05-14 15:39:18 +00002340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002341$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002342 >$cache_file
2343fi
2344
2345# Check that the precious variables saved in the cache have kept the same
2346# value.
2347ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002348for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002351 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002353 case $ac_old_set,$ac_new_set in
2354 set,)
drhf922ca42015-05-14 15:39:18 +00002355 { $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 +00002356$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002357 ac_cache_corrupted=: ;;
2358 ,set)
drhf922ca42015-05-14 15:39:18 +00002359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002360$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002361 ac_cache_corrupted=: ;;
2362 ,);;
2363 *)
2364 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002365 # differences in whitespace do not lead to failure.
2366 ac_old_val_w=`echo x $ac_old_val`
2367 ac_new_val_w=`echo x $ac_new_val`
2368 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002370$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371 ac_cache_corrupted=:
2372 else
drhf922ca42015-05-14 15:39:18 +00002373 { $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 +00002374$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375 eval $ac_var=\$ac_old_val
2376 fi
drhf922ca42015-05-14 15:39:18 +00002377 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002378$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002379 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002380$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002381 fi;;
2382 esac
a.rottmann84e63352003-03-24 09:42:16 +00002383 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002384 if test "$ac_new_set" = set; then
2385 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002386 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002387 *) ac_arg=$ac_var=$ac_new_val ;;
2388 esac
2389 case " $ac_configure_args " in
2390 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002391 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002392 esac
2393 fi
2394done
2395if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002399$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002400 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002401fi
drhf922ca42015-05-14 15:39:18 +00002402## -------------------- ##
2403## Main body of script. ##
2404## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002405
drh75897232000-05-29 14:26:00 +00002406ac_ext=c
drh75897232000-05-29 14:26:00 +00002407ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002411
a.rottmann84e63352003-03-24 09:42:16 +00002412
2413
drh04446102009-06-15 00:04:06 +00002414sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002415if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002416as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002417 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2418 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002419please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002420fi
2421
drh75897232000-05-29 14:26:00 +00002422#########
drh71eb93e2001-09-28 01:34:43 +00002423# Programs needed
drh75897232000-05-29 14:26:00 +00002424#
mlcreech636a9952008-05-05 22:52:56 +00002425case `pwd` in
2426 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002428$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002429esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002430
mlcreech94984912008-03-04 19:03:08 +00002431
mlcreech636a9952008-05-05 22:52:56 +00002432
vapier6acb2cf2009-01-28 04:46:28 +00002433macro_version='2.2.6'
2434macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002435
mlcreech94984912008-03-04 19:03:08 +00002436
mlcreech94984912008-03-04 19:03:08 +00002437
a.rottmann9bc8b932004-02-29 15:18:31 +00002438
mlcreech636a9952008-05-05 22:52:56 +00002439
2440
2441
2442
2443
2444
2445
2446
2447
2448ltmain="$ac_aux_dir/ltmain.sh"
2449
drh71eb93e2001-09-28 01:34:43 +00002450ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002451for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002452 if test -f "$ac_dir/install-sh"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/install-sh -c"
2455 break
2456 elif test -f "$ac_dir/install.sh"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/install.sh -c"
2459 break
2460 elif test -f "$ac_dir/shtool"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/shtool install -c"
2463 break
2464 fi
drh71eb93e2001-09-28 01:34:43 +00002465done
2466if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002467 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002468fi
drh8b727472009-01-19 18:18:40 +00002469
2470# These three variables are undocumented and unsupported,
2471# and are intended to be withdrawn in a future Autoconf release.
2472# They can cause serious problems if a builder's source tree is in a directory
2473# whose full name contains unusual characters.
2474ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2475ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2476ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2477
drh71eb93e2001-09-28 01:34:43 +00002478
2479# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002480$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002481 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002482
drhf922ca42015-05-14 15:39:18 +00002483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002484$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002485if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002486 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002487else
drh8b727472009-01-19 18:18:40 +00002488 ac_build_alias=$build_alias
2489test "x$ac_build_alias" = x &&
2490 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2491test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002492 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002493ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002494 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002495
2496fi
drhf922ca42015-05-14 15:39:18 +00002497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002498$as_echo "$ac_cv_build" >&6; }
2499case $ac_cv_build in
2500*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002501*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002502esac
drh71eb93e2001-09-28 01:34:43 +00002503build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002504ac_save_IFS=$IFS; IFS='-'
2505set x $ac_cv_build
2506shift
2507build_cpu=$1
2508build_vendor=$2
2509shift; shift
2510# Remember, the first character of IFS is used to create $*,
2511# except with old shells:
2512build_os=$*
2513IFS=$ac_save_IFS
2514case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002515
a.rottmann84e63352003-03-24 09:42:16 +00002516
drhf922ca42015-05-14 15:39:18 +00002517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002518$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002519if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002520 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002521else
drh8b727472009-01-19 18:18:40 +00002522 if test "x$host_alias" = x; then
2523 ac_cv_host=$ac_cv_build
2524else
2525 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002527fi
drh71eb93e2001-09-28 01:34:43 +00002528
2529fi
drhf922ca42015-05-14 15:39:18 +00002530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002531$as_echo "$ac_cv_host" >&6; }
2532case $ac_cv_host in
2533*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002534*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002535esac
drh71eb93e2001-09-28 01:34:43 +00002536host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002537ac_save_IFS=$IFS; IFS='-'
2538set x $ac_cv_host
2539shift
2540host_cpu=$1
2541host_vendor=$2
2542shift; shift
2543# Remember, the first character of IFS is used to create $*,
2544# except with old shells:
2545host_os=$*
2546IFS=$ac_save_IFS
2547case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002548
a.rottmann84e63352003-03-24 09:42:16 +00002549
drh71eb93e2001-09-28 01:34:43 +00002550ac_ext=c
2551ac_cpp='$CPP $CPPFLAGS'
2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555if test -n "$ac_tool_prefix"; then
2556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2557set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002559$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002560if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002561 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002562else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
a.rottmann84e63352003-03-24 09:42:16 +00002566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002575 break 2
2576 fi
2577done
drhf922ca42015-05-14 15:39:18 +00002578 done
drh8b727472009-01-19 18:18:40 +00002579IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002580
2581fi
2582fi
2583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002586$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002587else
drhf922ca42015-05-14 15:39:18 +00002588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002589$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002590fi
2591
drh8b727472009-01-19 18:18:40 +00002592
drh71eb93e2001-09-28 01:34:43 +00002593fi
2594if test -z "$ac_cv_prog_CC"; then
2595 ac_ct_CC=$CC
2596 # Extract the first word of "gcc", so it can be a program name with args.
2597set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002599$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002600if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002601 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002602else
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2605else
a.rottmann84e63352003-03-24 09:42:16 +00002606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002613 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002615 break 2
2616 fi
2617done
drhf922ca42015-05-14 15:39:18 +00002618 done
drh8b727472009-01-19 18:18:40 +00002619IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002620
2621fi
2622fi
2623ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002626$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002627else
drhf922ca42015-05-14 15:39:18 +00002628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002629$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002630fi
2631
drh8b727472009-01-19 18:18:40 +00002632 if test "x$ac_ct_CC" = x; then
2633 CC=""
2634 else
2635 case $cross_compiling:$ac_tool_warned in
2636yes:)
drhf922ca42015-05-14 15:39:18 +00002637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002639ac_tool_warned=yes ;;
2640esac
2641 CC=$ac_ct_CC
2642 fi
drh71eb93e2001-09-28 01:34:43 +00002643else
2644 CC="$ac_cv_prog_CC"
2645fi
2646
2647if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002648 if test -n "$ac_tool_prefix"; then
2649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002650set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002652$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002653if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002654 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002655else
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
a.rottmann84e63352003-03-24 09:42:16 +00002659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002666 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002668 break 2
2669 fi
2670done
drhf922ca42015-05-14 15:39:18 +00002671 done
drh8b727472009-01-19 18:18:40 +00002672IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002679$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002680else
drhf922ca42015-05-14 15:39:18 +00002681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002682$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002683fi
2684
drh8b727472009-01-19 18:18:40 +00002685
a.rottmann84e63352003-03-24 09:42:16 +00002686 fi
drh71eb93e2001-09-28 01:34:43 +00002687fi
2688if test -z "$CC"; then
2689 # Extract the first word of "cc", so it can be a program name with args.
2690set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002692$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002693if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002694 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002695else
2696 if test -n "$CC"; then
2697 ac_cv_prog_CC="$CC" # Let the user override the test.
2698else
2699 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH
2702do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2708 ac_prog_rejected=yes
2709 continue
2710 fi
2711 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002713 break 2
2714 fi
2715done
drhf922ca42015-05-14 15:39:18 +00002716 done
drh8b727472009-01-19 18:18:40 +00002717IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002718
2719if test $ac_prog_rejected = yes; then
2720 # We found a bogon in the path, so make sure we never use it.
2721 set dummy $ac_cv_prog_CC
2722 shift
2723 if test $# != 0; then
2724 # We chose a different compiler from the bogus one.
2725 # However, it has the same basename, so the bogon will be chosen
2726 # first if we set CC to just the basename; use the full file name.
2727 shift
a.rottmann84e63352003-03-24 09:42:16 +00002728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002729 fi
2730fi
2731fi
2732fi
2733CC=$ac_cv_prog_CC
2734if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002736$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002737else
drhf922ca42015-05-14 15:39:18 +00002738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002739$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002740fi
2741
drh8b727472009-01-19 18:18:40 +00002742
drh71eb93e2001-09-28 01:34:43 +00002743fi
2744if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002746 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002747 do
2748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002751$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002752if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002753 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002754else
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2757else
a.rottmann84e63352003-03-24 09:42:16 +00002758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002767 break 2
2768 fi
2769done
drhf922ca42015-05-14 15:39:18 +00002770 done
drh8b727472009-01-19 18:18:40 +00002771IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002772
2773fi
2774fi
2775CC=$ac_cv_prog_CC
2776if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002778$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002779else
drhf922ca42015-05-14 15:39:18 +00002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002781$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002782fi
2783
drh8b727472009-01-19 18:18:40 +00002784
drh71eb93e2001-09-28 01:34:43 +00002785 test -n "$CC" && break
2786 done
2787fi
2788if test -z "$CC"; then
2789 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002790 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002791do
2792 # Extract the first word of "$ac_prog", so it can be a program name with args.
2793set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002795$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002796if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002797 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002798else
2799 if test -n "$ac_ct_CC"; then
2800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801else
a.rottmann84e63352003-03-24 09:42:16 +00002802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805 IFS=$as_save_IFS
2806 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002809 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002811 break 2
2812 fi
2813done
drhf922ca42015-05-14 15:39:18 +00002814 done
drh8b727472009-01-19 18:18:40 +00002815IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002816
2817fi
2818fi
2819ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002822$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002823else
drhf922ca42015-05-14 15:39:18 +00002824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002825$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002826fi
2827
drh8b727472009-01-19 18:18:40 +00002828
drh71eb93e2001-09-28 01:34:43 +00002829 test -n "$ac_ct_CC" && break
2830done
2831
drh8b727472009-01-19 18:18:40 +00002832 if test "x$ac_ct_CC" = x; then
2833 CC=""
2834 else
2835 case $cross_compiling:$ac_tool_warned in
2836yes:)
drhf922ca42015-05-14 15:39:18 +00002837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002839ac_tool_warned=yes ;;
2840esac
2841 CC=$ac_ct_CC
2842 fi
drh71eb93e2001-09-28 01:34:43 +00002843fi
2844
2845fi
2846
a.rottmann84e63352003-03-24 09:42:16 +00002847
drhf922ca42015-05-14 15:39:18 +00002848test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850as_fn_error $? "no acceptable C compiler found in \$PATH
2851See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002852
2853# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002854$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002855set X $ac_compile
2856ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002857for ac_option in --version -v -V -qversion; do
2858 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
drhf922ca42015-05-14 15:39:18 +00002863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002866 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002867 if test -s conftest.err; then
2868 sed '10a\
2869... rest of stderr output deleted ...
2870 10q' conftest.err >conftest.er1
2871 cat conftest.er1 >&5
2872 fi
2873 rm -f conftest.er1 conftest.err
2874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2875 test $ac_status = 0; }
2876done
drh71eb93e2001-09-28 01:34:43 +00002877
drhf922ca42015-05-14 15:39:18 +00002878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002879/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002890ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002891# Try to create an executable without -o first, disregard a.out.
2892# It will help us diagnose broken compilers, and finding out an intuition
2893# of exeext.
drhf922ca42015-05-14 15:39:18 +00002894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2895$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002896ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002897
drh8b727472009-01-19 18:18:40 +00002898# The possible output files:
2899ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2900
2901ac_rmfiles=
2902for ac_file in $ac_files
2903do
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2906 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2907 esac
2908done
2909rm -f $ac_rmfiles
2910
drhf922ca42015-05-14 15:39:18 +00002911if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
drhf922ca42015-05-14 15:39:18 +00002916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2917$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002918 (eval "$ac_link_default") 2>&5
2919 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2921 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2924# in a Makefile. We should not override ac_cv_exeext if it was cached,
2925# so that the user can short-circuit this test for compilers unknown to
2926# Autoconf.
2927for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002928do
2929 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002930 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002932 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002933 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002934 # We found the default executable, but exeext='' is most
2935 # certainly right.
2936 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002937 *.* )
drhf922ca42015-05-14 15:39:18 +00002938 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002939 then :; else
2940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2941 fi
2942 # We set ac_cv_exeext here because the later test for it is not
2943 # safe: cross compilers may not add the suffix if given an `-o'
2944 # argument, so we may need to know it at that point already.
2945 # Even if this section looks crufty: it has the advantage of
2946 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002947 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002948 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002949 break;;
drh71eb93e2001-09-28 01:34:43 +00002950 esac
2951done
drh8b727472009-01-19 18:18:40 +00002952test "$ac_cv_exeext" = no && ac_cv_exeext=
2953
drh71eb93e2001-09-28 01:34:43 +00002954else
drh8b727472009-01-19 18:18:40 +00002955 ac_file=''
2956fi
drhf922ca42015-05-14 15:39:18 +00002957if test -z "$ac_file"; then :
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959$as_echo "no" >&6; }
2960$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
drhf922ca42015-05-14 15:39:18 +00002963{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965as_fn_error 77 "C compiler cannot create executables
2966See \`config.log' for more details" "$LINENO" 5; }
2967else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002969$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002970fi
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2972$as_echo_n "checking for C compiler default output file name... " >&6; }
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2974$as_echo "$ac_file" >&6; }
2975ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002976
drh8b727472009-01-19 18:18:40 +00002977rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002978ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002980$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002981if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
drhf922ca42015-05-14 15:39:18 +00002986eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2987$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002988 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002989 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002992 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2993# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2994# work properly (i.e., refer to `conftest.exe'), while it won't with
2995# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002996for ac_file in conftest.exe conftest conftest.*; do
2997 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002998 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003000 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003001 break;;
drh71eb93e2001-09-28 01:34:43 +00003002 * ) break;;
3003 esac
3004done
3005else
drhf922ca42015-05-14 15:39:18 +00003006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3009See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003010fi
drhf922ca42015-05-14 15:39:18 +00003011rm -f conftest conftest$ac_cv_exeext
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003013$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003014
3015rm -f conftest.$ac_ext
3016EXEEXT=$ac_cv_exeext
3017ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019/* end confdefs.h. */
3020#include <stdio.h>
3021int
3022main ()
3023{
3024FILE *f = fopen ("conftest.out", "w");
3025 return ferror (f) || fclose (f) != 0;
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031ac_clean_files="$ac_clean_files conftest.out"
3032# Check that the compiler produces executables we can run. If not, either
3033# the compiler is broken, or we cross compile.
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3035$as_echo_n "checking whether we are cross compiling... " >&6; }
3036if test "$cross_compiling" != yes; then
3037 { { ac_try="$ac_link"
3038case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041esac
3042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043$as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_link") 2>&5
3045 ac_status=$?
3046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3047 test $ac_status = 0; }
3048 if { ac_try='./conftest$ac_cv_exeext'
3049 { { case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054$as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_try") 2>&5
3056 ac_status=$?
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }; }; then
3059 cross_compiling=no
3060 else
3061 if test "$cross_compiling" = maybe; then
3062 cross_compiling=yes
3063 else
3064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3066as_fn_error $? "cannot run C compiled programs.
3067If you meant to cross compile, use \`--host'.
3068See \`config.log' for more details" "$LINENO" 5; }
3069 fi
3070 fi
3071fi
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3073$as_echo "$cross_compiling" >&6; }
3074
3075rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3076ac_clean_files=$ac_clean_files_save
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003078$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003079if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003080 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003081else
drhf922ca42015-05-14 15:39:18 +00003082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003083/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003084
3085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003094if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
drhf922ca42015-05-14 15:39:18 +00003099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003101 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003102 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003105 for ac_file in conftest.o conftest.obj conftest.*; do
3106 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003107 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003109 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3110 break;;
3111 esac
3112done
3113else
drh8b727472009-01-19 18:18:40 +00003114 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003115sed 's/^/| /' conftest.$ac_ext >&5
3116
drhf922ca42015-05-14 15:39:18 +00003117{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3119as_fn_error $? "cannot compute suffix of object files: cannot compile
3120See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003121fi
drh71eb93e2001-09-28 01:34:43 +00003122rm -f conftest.$ac_cv_objext conftest.$ac_ext
3123fi
drhf922ca42015-05-14 15:39:18 +00003124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003125$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003126OBJEXT=$ac_cv_objext
3127ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003129$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003130if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003131 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003132else
drhf922ca42015-05-14 15:39:18 +00003133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003134/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003135
3136int
3137main ()
3138{
3139#ifndef __GNUC__
3140 choke me
3141#endif
3142
3143 ;
3144 return 0;
3145}
3146_ACEOF
drhf922ca42015-05-14 15:39:18 +00003147if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003148 ac_compiler_gnu=yes
3149else
drhf922ca42015-05-14 15:39:18 +00003150 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003151fi
drh8b727472009-01-19 18:18:40 +00003152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003153ac_cv_c_compiler_gnu=$ac_compiler_gnu
3154
3155fi
drhf922ca42015-05-14 15:39:18 +00003156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003157$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3158if test $ac_compiler_gnu = yes; then
3159 GCC=yes
3160else
3161 GCC=
3162fi
drh71eb93e2001-09-28 01:34:43 +00003163ac_test_CFLAGS=${CFLAGS+set}
3164ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003166$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003167if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003168 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003169else
drh8b727472009-01-19 18:18:40 +00003170 ac_save_c_werror_flag=$ac_c_werror_flag
3171 ac_c_werror_flag=yes
3172 ac_cv_prog_cc_g=no
3173 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003175/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
drhf922ca42015-05-14 15:39:18 +00003185if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003186 ac_cv_prog_cc_g=yes
3187else
drhf922ca42015-05-14 15:39:18 +00003188 CFLAGS=""
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003190/* end confdefs.h. */
3191
3192int
3193main ()
3194{
3195
3196 ;
3197 return 0;
3198}
3199_ACEOF
drhf922ca42015-05-14 15:39:18 +00003200if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003201
drhf922ca42015-05-14 15:39:18 +00003202else
3203 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003204 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003206/* end confdefs.h. */
3207
3208int
3209main ()
3210{
3211
3212 ;
3213 return 0;
3214}
3215_ACEOF
drhf922ca42015-05-14 15:39:18 +00003216if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003217 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003218fi
drh8b727472009-01-19 18:18:40 +00003219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003220fi
drh8b727472009-01-19 18:18:40 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222fi
drh8b727472009-01-19 18:18:40 +00003223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_c_werror_flag=$ac_save_c_werror_flag
3225fi
drhf922ca42015-05-14 15:39:18 +00003226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003227$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003228if test "$ac_test_CFLAGS" = set; then
3229 CFLAGS=$ac_save_CFLAGS
3230elif test $ac_cv_prog_cc_g = yes; then
3231 if test "$GCC" = yes; then
3232 CFLAGS="-g -O2"
3233 else
3234 CFLAGS="-g"
3235 fi
3236else
3237 if test "$GCC" = yes; then
3238 CFLAGS="-O2"
3239 else
3240 CFLAGS=
3241 fi
3242fi
drhf922ca42015-05-14 15:39:18 +00003243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003244$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003245if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003246 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003247else
drh8b727472009-01-19 18:18:40 +00003248 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003249ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003251/* end confdefs.h. */
3252#include <stdarg.h>
3253#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003254struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003255/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3256struct buf { int x; };
3257FILE * (*rcsopen) (struct buf *, struct stat *, int);
3258static char *e (p, i)
3259 char **p;
3260 int i;
3261{
3262 return p[i];
3263}
3264static char *f (char * (*g) (char **, int), char **p, ...)
3265{
3266 char *s;
3267 va_list v;
3268 va_start (v,p);
3269 s = g (p, va_arg (v,int));
3270 va_end (v);
3271 return s;
3272}
a.rottmann964dbb12004-02-26 19:47:42 +00003273
3274/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3275 function prototypes and stuff, but not '\xHH' hex character constants.
3276 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003277 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3279 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003280 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003281int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3282
drh8b727472009-01-19 18:18:40 +00003283/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3284 inside strings and character constants. */
3285#define FOO(x) 'x'
3286int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3287
a.rottmann84e63352003-03-24 09:42:16 +00003288int test (int i, double x);
3289struct s1 {int (*f) (int a);};
3290struct s2 {int (*f) (double a);};
3291int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3292int argc;
3293char **argv;
3294int
3295main ()
3296{
3297return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3298 ;
3299 return 0;
3300}
3301_ACEOF
drh8b727472009-01-19 18:18:40 +00003302for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003304do
3305 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003306 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003307 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003308fi
drh8b727472009-01-19 18:18:40 +00003309rm -f core conftest.err conftest.$ac_objext
3310 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003311done
drh8b727472009-01-19 18:18:40 +00003312rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003313CC=$ac_save_CC
3314
3315fi
drh8b727472009-01-19 18:18:40 +00003316# AC_CACHE_VAL
3317case "x$ac_cv_prog_cc_c89" in
3318 x)
drhf922ca42015-05-14 15:39:18 +00003319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003320$as_echo "none needed" >&6; } ;;
3321 xno)
drhf922ca42015-05-14 15:39:18 +00003322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003323$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003324 *)
drh8b727472009-01-19 18:18:40 +00003325 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003327$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003328esac
drhf922ca42015-05-14 15:39:18 +00003329if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003330
drhf922ca42015-05-14 15:39:18 +00003331fi
a.rottmann84e63352003-03-24 09:42:16 +00003332
drh71eb93e2001-09-28 01:34:43 +00003333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
drhf922ca42015-05-14 15:39:18 +00003339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003340$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003341if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003342 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003343else
drh8b727472009-01-19 18:18:40 +00003344 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3345 for ac_i in 1 2 3 4 5 6 7; do
3346 ac_script="$ac_script$as_nl$ac_script"
3347 done
3348 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003349 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003350 if test -z "$SED"; then
3351 ac_path_SED_found=false
3352 # Loop through the user's path and test for each of PROGNAME-LIST
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003358 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003359 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003360 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003361 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003362# Check for GNU ac_path_SED and select it if it is found.
3363 # Check for GNU $ac_path_SED
3364case `"$ac_path_SED" --version 2>&1` in
3365*GNU*)
3366 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3367*)
3368 ac_count=0
3369 $as_echo_n 0123456789 >"conftest.in"
3370 while :
3371 do
3372 cat "conftest.in" "conftest.in" >"conftest.tmp"
3373 mv "conftest.tmp" "conftest.in"
3374 cp "conftest.in" "conftest.nl"
3375 $as_echo '' >> "conftest.nl"
3376 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003378 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003379 if test $ac_count -gt ${ac_path_SED_max-0}; then
3380 # Best one so far, save it but keep looking for a better one
3381 ac_cv_path_SED="$ac_path_SED"
3382 ac_path_SED_max=$ac_count
3383 fi
3384 # 10*(2^10) chars as input seems more than enough
3385 test $ac_count -gt 10 && break
3386 done
3387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3388esac
3389
3390 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003391 done
3392 done
drhf922ca42015-05-14 15:39:18 +00003393 done
mlcreech636a9952008-05-05 22:52:56 +00003394IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003395 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003396 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003397 fi
drh8b727472009-01-19 18:18:40 +00003398else
3399 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003400fi
drh866108f2008-05-13 00:57:21 +00003401
drh8b727472009-01-19 18:18:40 +00003402fi
drhf922ca42015-05-14 15:39:18 +00003403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003404$as_echo "$ac_cv_path_SED" >&6; }
3405 SED="$ac_cv_path_SED"
3406 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003407
mlcreech636a9952008-05-05 22:52:56 +00003408test -z "$SED" && SED=sed
3409Xsed="$SED -e 1s/^X//"
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
drhf922ca42015-05-14 15:39:18 +00003421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003422$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003423if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003424 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003425else
drh8b727472009-01-19 18:18:40 +00003426 if test -z "$GREP"; then
3427 ac_path_GREP_found=false
3428 # Loop through the user's path and test for each of PROGNAME-LIST
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003434 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003437 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003438# Check for GNU ac_path_GREP and select it if it is found.
3439 # Check for GNU $ac_path_GREP
3440case `"$ac_path_GREP" --version 2>&1` in
3441*GNU*)
3442 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3443*)
3444 ac_count=0
3445 $as_echo_n 0123456789 >"conftest.in"
3446 while :
3447 do
3448 cat "conftest.in" "conftest.in" >"conftest.tmp"
3449 mv "conftest.tmp" "conftest.in"
3450 cp "conftest.in" "conftest.nl"
3451 $as_echo 'GREP' >> "conftest.nl"
3452 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003454 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003455 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3456 # Best one so far, save it but keep looking for a better one
3457 ac_cv_path_GREP="$ac_path_GREP"
3458 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003459 fi
drh8b727472009-01-19 18:18:40 +00003460 # 10*(2^10) chars as input seems more than enough
3461 test $ac_count -gt 10 && break
3462 done
3463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3464esac
3465
3466 $ac_path_GREP_found && break 3
3467 done
3468 done
drhf922ca42015-05-14 15:39:18 +00003469 done
drh8b727472009-01-19 18:18:40 +00003470IFS=$as_save_IFS
3471 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003472 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003473 fi
3474else
3475 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003476fi
drh8b727472009-01-19 18:18:40 +00003477
3478fi
drhf922ca42015-05-14 15:39:18 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003480$as_echo "$ac_cv_path_GREP" >&6; }
3481 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003482
3483
drhf922ca42015-05-14 15:39:18 +00003484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003485$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003486if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003487 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003488else
drh8b727472009-01-19 18:18:40 +00003489 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3490 then ac_cv_path_EGREP="$GREP -E"
3491 else
3492 if test -z "$EGREP"; then
3493 ac_path_EGREP_found=false
3494 # Loop through the user's path and test for each of PROGNAME-LIST
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3497do
3498 IFS=$as_save_IFS
3499 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003500 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003503 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003504# Check for GNU ac_path_EGREP and select it if it is found.
3505 # Check for GNU $ac_path_EGREP
3506case `"$ac_path_EGREP" --version 2>&1` in
3507*GNU*)
3508 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3509*)
3510 ac_count=0
3511 $as_echo_n 0123456789 >"conftest.in"
3512 while :
3513 do
3514 cat "conftest.in" "conftest.in" >"conftest.tmp"
3515 mv "conftest.tmp" "conftest.in"
3516 cp "conftest.in" "conftest.nl"
3517 $as_echo 'EGREP' >> "conftest.nl"
3518 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003520 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003521 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3522 # Best one so far, save it but keep looking for a better one
3523 ac_cv_path_EGREP="$ac_path_EGREP"
3524 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003525 fi
drh8b727472009-01-19 18:18:40 +00003526 # 10*(2^10) chars as input seems more than enough
3527 test $ac_count -gt 10 && break
3528 done
3529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3530esac
3531
3532 $ac_path_EGREP_found && break 3
3533 done
3534 done
drhf922ca42015-05-14 15:39:18 +00003535 done
drh8b727472009-01-19 18:18:40 +00003536IFS=$as_save_IFS
3537 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003538 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003539 fi
3540else
3541 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003542fi
drh8b727472009-01-19 18:18:40 +00003543
3544 fi
3545fi
drhf922ca42015-05-14 15:39:18 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003547$as_echo "$ac_cv_path_EGREP" >&6; }
3548 EGREP="$ac_cv_path_EGREP"
3549
3550
drhf922ca42015-05-14 15:39:18 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003552$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003553if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003554 $as_echo_n "(cached) " >&6
3555else
3556 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3557 then ac_cv_path_FGREP="$GREP -F"
3558 else
3559 if test -z "$FGREP"; then
3560 ac_path_FGREP_found=false
3561 # Loop through the user's path and test for each of PROGNAME-LIST
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3564do
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003567 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003570 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003571# Check for GNU ac_path_FGREP and select it if it is found.
3572 # Check for GNU $ac_path_FGREP
3573case `"$ac_path_FGREP" --version 2>&1` in
3574*GNU*)
3575 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3576*)
3577 ac_count=0
3578 $as_echo_n 0123456789 >"conftest.in"
3579 while :
3580 do
3581 cat "conftest.in" "conftest.in" >"conftest.tmp"
3582 mv "conftest.tmp" "conftest.in"
3583 cp "conftest.in" "conftest.nl"
3584 $as_echo 'FGREP' >> "conftest.nl"
3585 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003587 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003588 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3589 # Best one so far, save it but keep looking for a better one
3590 ac_cv_path_FGREP="$ac_path_FGREP"
3591 ac_path_FGREP_max=$ac_count
3592 fi
3593 # 10*(2^10) chars as input seems more than enough
3594 test $ac_count -gt 10 && break
3595 done
3596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3597esac
3598
3599 $ac_path_FGREP_found && break 3
3600 done
3601 done
drhf922ca42015-05-14 15:39:18 +00003602 done
drh8b727472009-01-19 18:18:40 +00003603IFS=$as_save_IFS
3604 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003605 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003606 fi
3607else
3608 ac_cv_path_FGREP=$FGREP
3609fi
3610
3611 fi
3612fi
drhf922ca42015-05-14 15:39:18 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003614$as_echo "$ac_cv_path_FGREP" >&6; }
3615 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003616
3617
3618test -z "$GREP" && GREP=grep
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
a.rottmann9bc8b932004-02-29 15:18:31 +00003635
3636
a.rottmann84e63352003-03-24 09:42:16 +00003637
drh8b727472009-01-19 18:18:40 +00003638# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003639if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003640 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003641else
3642 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003643fi
3644
drh71eb93e2001-09-28 01:34:43 +00003645ac_prog=ld
3646if test "$GCC" = yes; then
3647 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003649$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003650 case $host in
3651 *-*-mingw*)
3652 # gcc leaves a trailing carriage return which upsets mingw
3653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3654 *)
3655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3656 esac
3657 case $ac_prog in
3658 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003659 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003660 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003661 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003662 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3663 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3664 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003665 done
3666 test -z "$LD" && LD="$ac_prog"
3667 ;;
3668 "")
3669 # If it fails, then pretend we aren't using GCC.
3670 ac_prog=ld
3671 ;;
3672 *)
3673 # If it is relative, then search for the first ld in PATH.
3674 with_gnu_ld=unknown
3675 ;;
3676 esac
3677elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003679$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003680else
drhf922ca42015-05-14 15:39:18 +00003681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003682$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003683fi
drhf922ca42015-05-14 15:39:18 +00003684if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003685 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003686else
3687 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003689 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003690 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003691 test -z "$ac_dir" && ac_dir=.
3692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3693 lt_cv_path_LD="$ac_dir/$ac_prog"
3694 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003695 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003696 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3698 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003699 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003700 ;;
3701 *)
drh71eb93e2001-09-28 01:34:43 +00003702 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003703 ;;
3704 esac
drh71eb93e2001-09-28 01:34:43 +00003705 fi
3706 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003707 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003708else
3709 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3710fi
3711fi
3712
3713LD="$lt_cv_path_LD"
3714if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003716$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003717else
drhf922ca42015-05-14 15:39:18 +00003718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003719$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003720fi
drhf922ca42015-05-14 15:39:18 +00003721test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003723$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003724if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003725 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003726else
vapier7f19c022007-02-17 14:46:31 +00003727 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003728case `$LD -v 2>&1 </dev/null` in
3729*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003730 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003731 ;;
3732*)
drh71eb93e2001-09-28 01:34:43 +00003733 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003734 ;;
3735esac
drh71eb93e2001-09-28 01:34:43 +00003736fi
drhf922ca42015-05-14 15:39:18 +00003737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003738$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003739with_gnu_ld=$lt_cv_prog_gnu_ld
3740
a.rottmann84e63352003-03-24 09:42:16 +00003741
drh71eb93e2001-09-28 01:34:43 +00003742
mlcreech636a9952008-05-05 22:52:56 +00003743
3744
3745
3746
3747
3748
drhf922ca42015-05-14 15:39:18 +00003749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003750$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003751if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003752 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003753else
3754 if test -n "$NM"; then
3755 # Let the user override the test.
3756 lt_cv_path_NM="$NM"
3757else
vapier7f19c022007-02-17 14:46:31 +00003758 lt_nm_to_check="${ac_tool_prefix}nm"
3759 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3760 lt_nm_to_check="$lt_nm_to_check nm"
3761 fi
3762 for lt_tmp_nm in $lt_nm_to_check; do
3763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3765 IFS="$lt_save_ifs"
3766 test -z "$ac_dir" && ac_dir=.
3767 tmp_nm="$ac_dir/$lt_tmp_nm"
3768 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3769 # Check to see if the nm accepts a BSD-compat flag.
3770 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3771 # nm: unknown option "B" ignored
3772 # Tru64's nm complains that /dev/null is an invalid object file
3773 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3774 */dev/null* | *'Invalid file or object type'*)
3775 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003776 break
3777 ;;
3778 *)
vapier7f19c022007-02-17 14:46:31 +00003779 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3780 */dev/null*)
3781 lt_cv_path_NM="$tmp_nm -p"
3782 break
3783 ;;
3784 *)
3785 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3786 continue # so that we can try to find one that supports BSD flags
3787 ;;
3788 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003789 ;;
3790 esac
vapier7f19c022007-02-17 14:46:31 +00003791 fi
3792 done
3793 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003794 done
mlcreech636a9952008-05-05 22:52:56 +00003795 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003796fi
3797fi
drhf922ca42015-05-14 15:39:18 +00003798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003799$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003800if test "$lt_cv_path_NM" != "no"; then
3801 NM="$lt_cv_path_NM"
3802else
3803 # Didn't find any BSD compatible name lister, look for dumpbin.
3804 if test -n "$ac_tool_prefix"; then
3805 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3806 do
3807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3808set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003810$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003811if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003812 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003813else
3814 if test -n "$DUMPBIN"; then
3815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3816else
3817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818for as_dir in $PATH
3819do
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003826 break 2
3827 fi
3828done
drhf922ca42015-05-14 15:39:18 +00003829 done
drh8b727472009-01-19 18:18:40 +00003830IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003831
mlcreech636a9952008-05-05 22:52:56 +00003832fi
3833fi
3834DUMPBIN=$ac_cv_prog_DUMPBIN
3835if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003837$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003838else
drhf922ca42015-05-14 15:39:18 +00003839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003840$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003841fi
3842
drh8b727472009-01-19 18:18:40 +00003843
mlcreech636a9952008-05-05 22:52:56 +00003844 test -n "$DUMPBIN" && break
3845 done
3846fi
3847if test -z "$DUMPBIN"; then
3848 ac_ct_DUMPBIN=$DUMPBIN
3849 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3850do
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003854$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003855if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003856 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003857else
3858 if test -n "$ac_ct_DUMPBIN"; then
3859 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003868 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003870 break 2
3871 fi
3872done
drhf922ca42015-05-14 15:39:18 +00003873 done
drh8b727472009-01-19 18:18:40 +00003874IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003875
3876fi
3877fi
3878ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3879if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003881$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003882else
drhf922ca42015-05-14 15:39:18 +00003883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003884$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003885fi
3886
drh8b727472009-01-19 18:18:40 +00003887
mlcreech636a9952008-05-05 22:52:56 +00003888 test -n "$ac_ct_DUMPBIN" && break
3889done
3890
drh8b727472009-01-19 18:18:40 +00003891 if test "x$ac_ct_DUMPBIN" = x; then
3892 DUMPBIN=":"
3893 else
3894 case $cross_compiling:$ac_tool_warned in
3895yes:)
drhf922ca42015-05-14 15:39:18 +00003896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003898ac_tool_warned=yes ;;
3899esac
3900 DUMPBIN=$ac_ct_DUMPBIN
3901 fi
mlcreech636a9952008-05-05 22:52:56 +00003902fi
3903
3904
3905 if test "$DUMPBIN" != ":"; then
3906 NM="$DUMPBIN"
3907 fi
3908fi
3909test -z "$NM" && NM=nm
3910
3911
3912
3913
3914
3915
drhf922ca42015-05-14 15:39:18 +00003916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003917$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003918if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003919 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003920else
3921 lt_cv_nm_interface="BSD nm"
3922 echo "int some_variable = 0;" > conftest.$ac_ext
drhfdefc362015-10-14 20:03:00 +00003923 (eval echo "\"\$as_me:3923: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003924 (eval "$ac_compile" 2>conftest.err)
3925 cat conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00003926 (eval echo "\"\$as_me:3926: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003927 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3928 cat conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00003929 (eval echo "\"\$as_me:3929: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003930 cat conftest.out >&5
3931 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3932 lt_cv_nm_interface="MS dumpbin"
3933 fi
3934 rm -f conftest*
3935fi
drhf922ca42015-05-14 15:39:18 +00003936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003937$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003938
drhf922ca42015-05-14 15:39:18 +00003939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003940$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003941LN_S=$as_ln_s
3942if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003944$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003945else
drhf922ca42015-05-14 15:39:18 +00003946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003947$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003948fi
3949
mlcreech636a9952008-05-05 22:52:56 +00003950# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003952$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003953if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003954 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003955else
3956 i=0
3957 teststring="ABCD"
3958
3959 case $build_os in
3960 msdosdjgpp*)
3961 # On DJGPP, this test can blow up pretty badly due to problems in libc
3962 # (any single argument exceeding 2000 bytes causes a buffer overrun
3963 # during glob expansion). Even if it were fixed, the result of this
3964 # check would be larger than it should be.
3965 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3966 ;;
3967
3968 gnu*)
3969 # Under GNU Hurd, this test is not required because there is
3970 # no limit to the length of command line arguments.
3971 # Libtool will interpret -1 as no limit whatsoever
3972 lt_cv_sys_max_cmd_len=-1;
3973 ;;
3974
vapier6acb2cf2009-01-28 04:46:28 +00003975 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003976 # On Win9x/ME, this test blows up -- it succeeds, but takes
3977 # about 5 minutes as the teststring grows exponentially.
3978 # Worse, since 9x/ME are not pre-emptively multitasking,
3979 # you end up with a "frozen" computer, even though with patience
3980 # the test eventually succeeds (with a max line length of 256k).
3981 # Instead, let's just punt: use the minimum linelength reported by
3982 # all of the supported platforms: 8192 (on NT/2K/XP).
3983 lt_cv_sys_max_cmd_len=8192;
3984 ;;
3985
3986 amigaos*)
3987 # On AmigaOS with pdksh, this test takes hours, literally.
3988 # So we just punt and use a minimum line length of 8192.
3989 lt_cv_sys_max_cmd_len=8192;
3990 ;;
3991
3992 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3993 # This has been around since 386BSD, at least. Likely further.
3994 if test -x /sbin/sysctl; then
3995 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3996 elif test -x /usr/sbin/sysctl; then
3997 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3998 else
3999 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4000 fi
4001 # And add a safety zone
4002 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4004 ;;
4005
4006 interix*)
4007 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4008 lt_cv_sys_max_cmd_len=196608
4009 ;;
4010
4011 osf*)
4012 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4013 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4014 # nice to cause kernel panics so lets avoid the loop below.
4015 # First set a reasonable default.
4016 lt_cv_sys_max_cmd_len=16384
4017 #
4018 if test -x /sbin/sysconfig; then
4019 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4020 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4021 esac
4022 fi
4023 ;;
4024 sco3.2v5*)
4025 lt_cv_sys_max_cmd_len=102400
4026 ;;
4027 sysv5* | sco5v6* | sysv4.2uw2*)
4028 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4029 if test -n "$kargmax"; then
4030 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4031 else
4032 lt_cv_sys_max_cmd_len=32768
4033 fi
4034 ;;
4035 *)
4036 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4037 if test -n "$lt_cv_sys_max_cmd_len"; then
4038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4040 else
4041 # Make teststring a little bigger before we do anything with it.
4042 # a 1K string should be a reasonable start.
4043 for i in 1 2 3 4 5 6 7 8 ; do
4044 teststring=$teststring$teststring
4045 done
4046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4047 # If test is not a shell built-in, we'll probably end up computing a
4048 # maximum length that is only half of the actual maximum length, but
4049 # we can't tell.
4050 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4051 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4052 test $i != 17 # 1/2 MB should be enough
4053 do
4054 i=`expr $i + 1`
4055 teststring=$teststring$teststring
4056 done
4057 # Only check the string length outside the loop.
4058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4059 teststring=
4060 # Add a significant safety factor because C++ compilers can tack on
4061 # massive amounts of additional arguments before passing them to the
4062 # linker. It appears as though 1/2 is a usable value.
4063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4064 fi
4065 ;;
4066 esac
4067
4068fi
4069
4070if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004072$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004073else
drhf922ca42015-05-14 15:39:18 +00004074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004075$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004076fi
4077max_cmd_len=$lt_cv_sys_max_cmd_len
4078
4079
4080
4081
4082
4083
4084: ${CP="cp -f"}
4085: ${MV="mv -f"}
4086: ${RM="rm -f"}
4087
drhf922ca42015-05-14 15:39:18 +00004088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004089$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004090# Try some XSI features
4091xsi_shell=no
4092( _lt_dummy="a/b/c"
4093 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4094 = c,a/b,, \
4095 && eval 'test $(( 1 + 1 )) -eq 2 \
4096 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4097 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004099$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004100
4101
drhf922ca42015-05-14 15:39:18 +00004102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004103$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004104lt_shell_append=no
4105( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4106 >/dev/null 2>&1 \
4107 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004109$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004110
4111
4112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4113 lt_unset=unset
4114else
4115 lt_unset=false
4116fi
4117
4118
4119
4120
4121
4122# test EBCDIC or ASCII
4123case `echo X|tr X '\101'` in
4124 A) # ASCII based system
4125 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4126 lt_SP2NL='tr \040 \012'
4127 lt_NL2SP='tr \015\012 \040\040'
4128 ;;
4129 *) # EBCDIC based system
4130 lt_SP2NL='tr \100 \n'
4131 lt_NL2SP='tr \r\n \100\100'
4132 ;;
4133esac
4134
4135
4136
4137
4138
4139
4140
4141
4142
drhf922ca42015-05-14 15:39:18 +00004143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004144$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004145if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004146 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004147else
4148 lt_cv_ld_reload_flag='-r'
4149fi
drhf922ca42015-05-14 15:39:18 +00004150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004151$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004152reload_flag=$lt_cv_ld_reload_flag
4153case $reload_flag in
4154"" | " "*) ;;
4155*) reload_flag=" $reload_flag" ;;
4156esac
4157reload_cmds='$LD$reload_flag -o $output$reload_objs'
4158case $host_os in
4159 darwin*)
4160 if test "$GCC" = yes; then
4161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4162 else
4163 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4164 fi
4165 ;;
4166esac
4167
4168
4169
4170
4171
4172
4173
4174
4175
vapier6acb2cf2009-01-28 04:46:28 +00004176if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4178set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004180$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004181if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004182 $as_echo_n "(cached) " >&6
4183else
4184 if test -n "$OBJDUMP"; then
4185 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4186else
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004194 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004196 break 2
4197 fi
4198done
drhf922ca42015-05-14 15:39:18 +00004199 done
vapier6acb2cf2009-01-28 04:46:28 +00004200IFS=$as_save_IFS
4201
4202fi
4203fi
4204OBJDUMP=$ac_cv_prog_OBJDUMP
4205if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004207$as_echo "$OBJDUMP" >&6; }
4208else
drhf922ca42015-05-14 15:39:18 +00004209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004210$as_echo "no" >&6; }
4211fi
4212
4213
4214fi
4215if test -z "$ac_cv_prog_OBJDUMP"; then
4216 ac_ct_OBJDUMP=$OBJDUMP
4217 # Extract the first word of "objdump", so it can be a program name with args.
4218set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004220$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004221if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004222 $as_echo_n "(cached) " >&6
4223else
4224 if test -n "$ac_ct_OBJDUMP"; then
4225 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4226else
4227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228for as_dir in $PATH
4229do
4230 IFS=$as_save_IFS
4231 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004234 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004236 break 2
4237 fi
4238done
drhf922ca42015-05-14 15:39:18 +00004239 done
vapier6acb2cf2009-01-28 04:46:28 +00004240IFS=$as_save_IFS
4241
4242fi
4243fi
4244ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4245if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004247$as_echo "$ac_ct_OBJDUMP" >&6; }
4248else
drhf922ca42015-05-14 15:39:18 +00004249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004250$as_echo "no" >&6; }
4251fi
4252
4253 if test "x$ac_ct_OBJDUMP" = x; then
4254 OBJDUMP="false"
4255 else
4256 case $cross_compiling:$ac_tool_warned in
4257yes:)
drhf922ca42015-05-14 15:39:18 +00004258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004260ac_tool_warned=yes ;;
4261esac
4262 OBJDUMP=$ac_ct_OBJDUMP
4263 fi
4264else
4265 OBJDUMP="$ac_cv_prog_OBJDUMP"
4266fi
4267
4268test -z "$OBJDUMP" && OBJDUMP=objdump
4269
4270
4271
4272
4273
4274
4275
4276
mlcreech636a9952008-05-05 22:52:56 +00004277
drhf922ca42015-05-14 15:39:18 +00004278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004279$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004280if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004281 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004282else
4283 lt_cv_file_magic_cmd='$MAGIC_CMD'
4284lt_cv_file_magic_test_file=
4285lt_cv_deplibs_check_method='unknown'
4286# Need to set the preceding variable on all platforms that support
4287# interlibrary dependencies.
4288# 'none' -- dependencies not supported.
4289# `unknown' -- same as none, but documents that we really don't know.
4290# 'pass_all' -- all dependencies passed with no checks.
4291# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004292# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004293# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004294# If you have `file' or equivalent on your system and you're not sure
4295# whether `pass_all' will *always* work, you probably want this one.
4296
4297case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004298aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004299 lt_cv_deplibs_check_method=pass_all
4300 ;;
4301
4302beos*)
4303 lt_cv_deplibs_check_method=pass_all
4304 ;;
4305
vapier7f19c022007-02-17 14:46:31 +00004306bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4308 lt_cv_file_magic_cmd='/usr/bin/file -L'
4309 lt_cv_file_magic_test_file=/shlib/libc.so
4310 ;;
4311
a.rottmann9bc8b932004-02-29 15:18:31 +00004312cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004313 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004315 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004316 ;;
4317
4318mingw* | pw32*)
4319 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004320 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4321 # unless we find 'file', for example because we are cross-compiling.
4322 if ( file / ) >/dev/null 2>&1; then
4323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4324 lt_cv_file_magic_cmd='func_win32_libid'
4325 else
4326 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4327 lt_cv_file_magic_cmd='$OBJDUMP -f'
4328 fi
drh71eb93e2001-09-28 01:34:43 +00004329 ;;
4330
vapier6acb2cf2009-01-28 04:46:28 +00004331cegcc)
4332 # use the weaker test based on 'objdump'. See mingw*.
4333 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4334 lt_cv_file_magic_cmd='$OBJDUMP -f'
4335 ;;
4336
drh71eb93e2001-09-28 01:34:43 +00004337darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004338 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004339 ;;
4340
mlcreech636a9952008-05-05 22:52:56 +00004341freebsd* | dragonfly*)
4342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004343 case $host_cpu in
4344 i*86 )
4345 # Not sure whether the presence of OpenBSD here was a mistake.
4346 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004347 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 +00004348 lt_cv_file_magic_cmd=/usr/bin/file
4349 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4350 ;;
4351 esac
4352 else
4353 lt_cv_deplibs_check_method=pass_all
4354 fi
4355 ;;
4356
4357gnu*)
4358 lt_cv_deplibs_check_method=pass_all
4359 ;;
4360
a.rottmann9bc8b932004-02-29 15:18:31 +00004361hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004362 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004363 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004364 ia64*)
4365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4366 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4367 ;;
4368 hppa*64*)
4369 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]'
4370 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4371 ;;
4372 *)
4373 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4374 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4375 ;;
4376 esac
drh71eb93e2001-09-28 01:34:43 +00004377 ;;
4378
mlcreech636a9952008-05-05 22:52:56 +00004379interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004380 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4382 ;;
4383
a.rottmann84e63352003-03-24 09:42:16 +00004384irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004385 case $LD in
4386 *-32|*"-32 ") libmagic=32-bit;;
4387 *-n32|*"-n32 ") libmagic=N32;;
4388 *-64|*"-64 ") libmagic=64-bit;;
4389 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004390 esac
drh71eb93e2001-09-28 01:34:43 +00004391 lt_cv_deplibs_check_method=pass_all
4392 ;;
4393
4394# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004395linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004396 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004397 ;;
4398
vapier7f19c022007-02-17 14:46:31 +00004399netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004402 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004404 fi
4405 ;;
4406
4407newos6*)
4408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4409 lt_cv_file_magic_cmd=/usr/bin/file
4410 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4411 ;;
4412
mlcreech636a9952008-05-05 22:52:56 +00004413*nto* | *qnx*)
4414 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004415 ;;
4416
a.rottmann84e63352003-03-24 09:42:16 +00004417openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004420 else
vapier7f19c022007-02-17 14:46:31 +00004421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004422 fi
drh71eb93e2001-09-28 01:34:43 +00004423 ;;
4424
4425osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004426 lt_cv_deplibs_check_method=pass_all
4427 ;;
4428
mlcreech636a9952008-05-05 22:52:56 +00004429rdos*)
4430 lt_cv_deplibs_check_method=pass_all
4431 ;;
4432
drh71eb93e2001-09-28 01:34:43 +00004433solaris*)
4434 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004435 ;;
4436
mlcreech636a9952008-05-05 22:52:56 +00004437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4438 lt_cv_deplibs_check_method=pass_all
4439 ;;
4440
vapier7f19c022007-02-17 14:46:31 +00004441sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004442 case $host_vendor in
4443 motorola)
4444 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]'
4445 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4446 ;;
4447 ncr)
4448 lt_cv_deplibs_check_method=pass_all
4449 ;;
4450 sequent)
4451 lt_cv_file_magic_cmd='/bin/file'
4452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4453 ;;
4454 sni)
4455 lt_cv_file_magic_cmd='/bin/file'
4456 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4457 lt_cv_file_magic_test_file=/lib/libc.so
4458 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004459 siemens)
4460 lt_cv_deplibs_check_method=pass_all
4461 ;;
vapier7f19c022007-02-17 14:46:31 +00004462 pc)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
drh71eb93e2001-09-28 01:34:43 +00004465 esac
4466 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004467
mlcreech636a9952008-05-05 22:52:56 +00004468tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004469 lt_cv_deplibs_check_method=pass_all
4470 ;;
drh71eb93e2001-09-28 01:34:43 +00004471esac
4472
4473fi
drhf922ca42015-05-14 15:39:18 +00004474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004475$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004476file_magic_cmd=$lt_cv_file_magic_cmd
4477deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004478test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004479
drh71eb93e2001-09-28 01:34:43 +00004480
drh71eb93e2001-09-28 01:34:43 +00004481
drh71eb93e2001-09-28 01:34:43 +00004482
mlcreech636a9952008-05-05 22:52:56 +00004483
4484
4485
4486
4487
4488
4489
4490
4491if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4493set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004495$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004496if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004497 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004498else
4499 if test -n "$AR"; then
4500 ac_cv_prog_AR="$AR" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004509 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004511 break 2
4512 fi
4513done
drhf922ca42015-05-14 15:39:18 +00004514 done
drh8b727472009-01-19 18:18:40 +00004515IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004516
4517fi
4518fi
4519AR=$ac_cv_prog_AR
4520if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004522$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004523else
drhf922ca42015-05-14 15:39:18 +00004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004525$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004526fi
4527
drh8b727472009-01-19 18:18:40 +00004528
mlcreech636a9952008-05-05 22:52:56 +00004529fi
4530if test -z "$ac_cv_prog_AR"; then
4531 ac_ct_AR=$AR
4532 # Extract the first word of "ar", so it can be a program name with args.
4533set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004535$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004536if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004537 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004538else
4539 if test -n "$ac_ct_AR"; then
4540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004549 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004551 break 2
4552 fi
4553done
drhf922ca42015-05-14 15:39:18 +00004554 done
drh8b727472009-01-19 18:18:40 +00004555IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004556
4557fi
4558fi
4559ac_ct_AR=$ac_cv_prog_ac_ct_AR
4560if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004562$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004563else
drhf922ca42015-05-14 15:39:18 +00004564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004565$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004566fi
4567
drh8b727472009-01-19 18:18:40 +00004568 if test "x$ac_ct_AR" = x; then
4569 AR="false"
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572yes:)
drhf922ca42015-05-14 15:39:18 +00004573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004575ac_tool_warned=yes ;;
4576esac
4577 AR=$ac_ct_AR
4578 fi
mlcreech636a9952008-05-05 22:52:56 +00004579else
4580 AR="$ac_cv_prog_AR"
4581fi
4582
4583test -z "$AR" && AR=ar
4584test -z "$AR_FLAGS" && AR_FLAGS=cru
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004600$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004601if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004602 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004603else
4604 if test -n "$STRIP"; then
4605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004616 break 2
4617 fi
4618done
drhf922ca42015-05-14 15:39:18 +00004619 done
drh8b727472009-01-19 18:18:40 +00004620IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004621
4622fi
4623fi
4624STRIP=$ac_cv_prog_STRIP
4625if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004627$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004628else
drhf922ca42015-05-14 15:39:18 +00004629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004630$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004631fi
4632
drh8b727472009-01-19 18:18:40 +00004633
mlcreech636a9952008-05-05 22:52:56 +00004634fi
4635if test -z "$ac_cv_prog_STRIP"; then
4636 ac_ct_STRIP=$STRIP
4637 # Extract the first word of "strip", so it can be a program name with args.
4638set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004640$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004641if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004642 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004643else
4644 if test -n "$ac_ct_STRIP"; then
4645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004654 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004656 break 2
4657 fi
4658done
drhf922ca42015-05-14 15:39:18 +00004659 done
drh8b727472009-01-19 18:18:40 +00004660IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004661
4662fi
4663fi
4664ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4665if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004667$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004668else
drhf922ca42015-05-14 15:39:18 +00004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004670$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004671fi
4672
drh8b727472009-01-19 18:18:40 +00004673 if test "x$ac_ct_STRIP" = x; then
4674 STRIP=":"
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677yes:)
drhf922ca42015-05-14 15:39:18 +00004678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004680ac_tool_warned=yes ;;
4681esac
4682 STRIP=$ac_ct_STRIP
4683 fi
mlcreech636a9952008-05-05 22:52:56 +00004684else
4685 STRIP="$ac_cv_prog_STRIP"
4686fi
4687
4688test -z "$STRIP" && STRIP=:
4689
4690
4691
4692
4693
4694
4695if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4697set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004699$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004700if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004701 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004702else
4703 if test -n "$RANLIB"; then
4704 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004715 break 2
4716 fi
4717done
drhf922ca42015-05-14 15:39:18 +00004718 done
drh8b727472009-01-19 18:18:40 +00004719IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004720
4721fi
4722fi
4723RANLIB=$ac_cv_prog_RANLIB
4724if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004726$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004727else
drhf922ca42015-05-14 15:39:18 +00004728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004729$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004730fi
4731
drh8b727472009-01-19 18:18:40 +00004732
mlcreech636a9952008-05-05 22:52:56 +00004733fi
4734if test -z "$ac_cv_prog_RANLIB"; then
4735 ac_ct_RANLIB=$RANLIB
4736 # Extract the first word of "ranlib", so it can be a program name with args.
4737set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004739$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004740if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004741 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004742else
4743 if test -n "$ac_ct_RANLIB"; then
4744 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4745else
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004753 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004755 break 2
4756 fi
4757done
drhf922ca42015-05-14 15:39:18 +00004758 done
drh8b727472009-01-19 18:18:40 +00004759IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004760
4761fi
4762fi
4763ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4764if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004766$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004767else
drhf922ca42015-05-14 15:39:18 +00004768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004769$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004770fi
4771
drh8b727472009-01-19 18:18:40 +00004772 if test "x$ac_ct_RANLIB" = x; then
4773 RANLIB=":"
4774 else
4775 case $cross_compiling:$ac_tool_warned in
4776yes:)
drhf922ca42015-05-14 15:39:18 +00004777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004779ac_tool_warned=yes ;;
4780esac
4781 RANLIB=$ac_ct_RANLIB
4782 fi
mlcreech636a9952008-05-05 22:52:56 +00004783else
4784 RANLIB="$ac_cv_prog_RANLIB"
4785fi
4786
4787test -z "$RANLIB" && RANLIB=:
4788
4789
4790
4791
4792
4793
4794# Determine commands to create old-style static archives.
4795old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4796old_postinstall_cmds='chmod 644 $oldlib'
4797old_postuninstall_cmds=
4798
4799if test -n "$RANLIB"; then
4800 case $host_os in
4801 openbsd*)
4802 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4803 ;;
4804 *)
4805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4806 ;;
4807 esac
4808 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4809fi
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
4835
4836
4837
4838
4839
4840
4841
4842
4843
a.rottmann9bc8b932004-02-29 15:18:31 +00004844# If no C compiler was specified, use CC.
4845LTCC=${LTCC-"$CC"}
4846
vapier7f19c022007-02-17 14:46:31 +00004847# If no C compiler flags were specified, use CFLAGS.
4848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4849
a.rottmann9bc8b932004-02-29 15:18:31 +00004850# Allow CC to be a program name with arguments.
4851compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004852
drh71eb93e2001-09-28 01:34:43 +00004853
mlcreech636a9952008-05-05 22:52:56 +00004854# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004856$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004857if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004858 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004859else
4860
4861# These are sane defaults that work on at least a few old systems.
4862# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4863
4864# Character class describing NM global symbol codes.
4865symcode='[BCDEGRST]'
4866
4867# Regexp to match symbols that can be accessed directly from C.
4868sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4869
4870# Define system-specific variables.
4871case $host_os in
4872aix*)
4873 symcode='[BCDT]'
4874 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004875cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004876 symcode='[ABCDGISTW]'
4877 ;;
4878hpux*)
4879 if test "$host_cpu" = ia64; then
4880 symcode='[ABCDEGRST]'
4881 fi
4882 ;;
4883irix* | nonstopux*)
4884 symcode='[BCDEGRST]'
4885 ;;
4886osf*)
4887 symcode='[BCDEGQRST]'
4888 ;;
4889solaris*)
4890 symcode='[BDRT]'
4891 ;;
4892sco3.2v5*)
4893 symcode='[DT]'
4894 ;;
4895sysv4.2uw2*)
4896 symcode='[DT]'
4897 ;;
4898sysv5* | sco5v6* | unixware* | OpenUNIX*)
4899 symcode='[ABDT]'
4900 ;;
4901sysv4)
4902 symcode='[DFNSTU]'
4903 ;;
4904esac
4905
4906# If we're using GNU nm, then use its standard symbol codes.
4907case `$NM -V 2>&1` in
4908*GNU* | *'with BFD'*)
4909 symcode='[ABCDGIRSTW]' ;;
4910esac
4911
4912# Transform an extracted symbol line into a proper C declaration.
4913# Some systems (esp. on ia64) link data and code symbols differently,
4914# so use this general approach.
4915lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4916
4917# Transform an extracted symbol line into symbol name and symbol address
4918lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4919lt_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'"
4920
4921# Handle CRLF in mingw tool chain
4922opt_cr=
4923case $build_os in
4924mingw*)
4925 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4926 ;;
4927esac
4928
4929# Try without a prefix underscore, then with it.
4930for ac_symprfx in "" "_"; do
4931
4932 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4933 symxfrm="\\1 $ac_symprfx\\2 \\2"
4934
4935 # Write the raw and C identifiers.
4936 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4937 # Fake it for dumpbin and say T for any non-static function
4938 # and D for any global variable.
4939 # Also find C++ and __fastcall symbols from MSVC++,
4940 # which start with @ or ?.
4941 lt_cv_sys_global_symbol_pipe="$AWK '"\
4942" {last_section=section; section=\$ 3};"\
4943" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4944" \$ 0!~/External *\|/{next};"\
4945" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4946" {if(hide[section]) next};"\
4947" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4948" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4949" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4950" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4951" ' prfx=^$ac_symprfx"
4952 else
4953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4954 fi
4955
4956 # Check to see that the pipe works correctly.
4957 pipe_works=no
4958
4959 rm -f conftest*
4960 cat > conftest.$ac_ext <<_LT_EOF
4961#ifdef __cplusplus
4962extern "C" {
4963#endif
4964char nm_test_var;
4965void nm_test_func(void);
4966void nm_test_func(void){}
4967#ifdef __cplusplus
4968}
4969#endif
4970int main(){nm_test_var='a';nm_test_func();return(0);}
4971_LT_EOF
4972
drhf922ca42015-05-14 15:39:18 +00004973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004974 (eval $ac_compile) 2>&5
4975 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004978 # Now try to grab the symbols.
4979 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004980 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 +00004981 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4982 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004985 # Try sorting and uniquifying the output.
4986 if sort "$nlist" | uniq > "$nlist"T; then
4987 mv -f "$nlist"T "$nlist"
4988 else
4989 rm -f "$nlist"T
4990 fi
4991
4992 # Make sure that we snagged all the symbols we need.
4993 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4994 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4995 cat <<_LT_EOF > conftest.$ac_ext
4996#ifdef __cplusplus
4997extern "C" {
4998#endif
4999
5000_LT_EOF
5001 # Now generate the symbol file.
5002 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5003
5004 cat <<_LT_EOF >> conftest.$ac_ext
5005
5006/* The mapping between symbol names and symbols. */
5007const struct {
5008 const char *name;
5009 void *address;
5010}
5011lt__PROGRAM__LTX_preloaded_symbols[] =
5012{
5013 { "@PROGRAM@", (void *) 0 },
5014_LT_EOF
5015 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5016 cat <<\_LT_EOF >> conftest.$ac_ext
5017 {0, (void *) 0}
5018};
5019
5020/* This works around a problem in FreeBSD linker */
5021#ifdef FREEBSD_WORKAROUND
5022static const void *lt_preloaded_setup() {
5023 return lt__PROGRAM__LTX_preloaded_symbols;
5024}
5025#endif
5026
5027#ifdef __cplusplus
5028}
5029#endif
5030_LT_EOF
5031 # Now try linking the two files.
5032 mv conftest.$ac_objext conftstm.$ac_objext
5033 lt_save_LIBS="$LIBS"
5034 lt_save_CFLAGS="$CFLAGS"
5035 LIBS="conftstm.$ac_objext"
5036 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005038 (eval $ac_link) 2>&5
5039 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5041 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005042 pipe_works=yes
5043 fi
5044 LIBS="$lt_save_LIBS"
5045 CFLAGS="$lt_save_CFLAGS"
5046 else
5047 echo "cannot find nm_test_func in $nlist" >&5
5048 fi
5049 else
5050 echo "cannot find nm_test_var in $nlist" >&5
5051 fi
5052 else
5053 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5054 fi
5055 else
5056 echo "$progname: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 fi
5059 rm -rf conftest* conftst*
5060
5061 # Do not use the global_symbol_pipe unless it works.
5062 if test "$pipe_works" = yes; then
5063 break
5064 else
5065 lt_cv_sys_global_symbol_pipe=
5066 fi
5067done
5068
5069fi
5070
5071if test -z "$lt_cv_sys_global_symbol_pipe"; then
5072 lt_cv_sys_global_symbol_to_cdecl=
5073fi
5074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005076$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005077else
drhf922ca42015-05-14 15:39:18 +00005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005079$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005080fi
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
drh8b727472009-01-19 18:18:40 +00005104# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005105if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005106 enableval=$enable_libtool_lock;
5107fi
drh71eb93e2001-09-28 01:34:43 +00005108
a.rottmann9bc8b932004-02-29 15:18:31 +00005109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005110
a.rottmann9bc8b932004-02-29 15:18:31 +00005111# Some flags need to be propagated to the compiler or linker for good
5112# libtool support.
5113case $host in
5114ia64-*-hpux*)
5115 # Find out which ABI we are using.
5116 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005118 (eval $ac_compile) 2>&5
5119 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5121 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005122 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005123 *ELF-32*)
5124 HPUX_IA64_MODE="32"
5125 ;;
5126 *ELF-64*)
5127 HPUX_IA64_MODE="64"
5128 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005129 esac
5130 fi
5131 rm -rf conftest*
5132 ;;
5133*-*-irix6*)
5134 # Find out which ABI we are using.
drhfdefc362015-10-14 20:03:00 +00005135 echo '#line 5135 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005137 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005138 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5140 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005141 if test "$lt_cv_prog_gnu_ld" = yes; then
5142 case `/usr/bin/file conftest.$ac_objext` in
5143 *32-bit*)
5144 LD="${LD-ld} -melf32bsmip"
5145 ;;
5146 *N32*)
5147 LD="${LD-ld} -melf32bmipn32"
5148 ;;
5149 *64-bit*)
5150 LD="${LD-ld} -melf64bmip"
5151 ;;
5152 esac
5153 else
5154 case `/usr/bin/file conftest.$ac_objext` in
5155 *32-bit*)
5156 LD="${LD-ld} -32"
5157 ;;
5158 *N32*)
5159 LD="${LD-ld} -n32"
5160 ;;
5161 *64-bit*)
5162 LD="${LD-ld} -64"
5163 ;;
5164 esac
5165 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005166 fi
5167 rm -rf conftest*
5168 ;;
drh71eb93e2001-09-28 01:34:43 +00005169
mlcreech636a9952008-05-05 22:52:56 +00005170x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5171s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005172 # Find out which ABI we are using.
5173 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005175 (eval $ac_compile) 2>&5
5176 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005179 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005180 *32-bit*)
5181 case $host in
5182 x86_64-*kfreebsd*-gnu)
5183 LD="${LD-ld} -m elf_i386_fbsd"
5184 ;;
5185 x86_64-*linux*)
5186 LD="${LD-ld} -m elf_i386"
5187 ;;
5188 ppc64-*linux*|powerpc64-*linux*)
5189 LD="${LD-ld} -m elf32ppclinux"
5190 ;;
5191 s390x-*linux*)
5192 LD="${LD-ld} -m elf_s390"
5193 ;;
5194 sparc64-*linux*)
5195 LD="${LD-ld} -m elf32_sparc"
5196 ;;
5197 esac
5198 ;;
5199 *64-bit*)
5200 case $host in
5201 x86_64-*kfreebsd*-gnu)
5202 LD="${LD-ld} -m elf_x86_64_fbsd"
5203 ;;
5204 x86_64-*linux*)
5205 LD="${LD-ld} -m elf_x86_64"
5206 ;;
5207 ppc*-*linux*|powerpc*-*linux*)
5208 LD="${LD-ld} -m elf64ppc"
5209 ;;
5210 s390*-*linux*|s390*-*tpf*)
5211 LD="${LD-ld} -m elf64_s390"
5212 ;;
5213 sparc*-*linux*)
5214 LD="${LD-ld} -m elf64_sparc"
5215 ;;
5216 esac
5217 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005218 esac
5219 fi
5220 rm -rf conftest*
5221 ;;
drh71eb93e2001-09-28 01:34:43 +00005222
a.rottmann9bc8b932004-02-29 15:18:31 +00005223*-*-sco3.2v5*)
5224 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5225 SAVE_CFLAGS="$CFLAGS"
5226 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005228$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005229if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005230 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005231else
5232 ac_ext=c
5233ac_cpp='$CPP $CPPFLAGS'
5234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005237
drhf922ca42015-05-14 15:39:18 +00005238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005239/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005240
a.rottmann9bc8b932004-02-29 15:18:31 +00005241int
5242main ()
drh71eb93e2001-09-28 01:34:43 +00005243{
drh71eb93e2001-09-28 01:34:43 +00005244
a.rottmann9bc8b932004-02-29 15:18:31 +00005245 ;
5246 return 0;
drh71eb93e2001-09-28 01:34:43 +00005247}
a.rottmann9bc8b932004-02-29 15:18:31 +00005248_ACEOF
drhf922ca42015-05-14 15:39:18 +00005249if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005250 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005251else
drhf922ca42015-05-14 15:39:18 +00005252 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005253fi
drhf922ca42015-05-14 15:39:18 +00005254rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005256 ac_ext=c
5257ac_cpp='$CPP $CPPFLAGS'
5258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
drh71eb93e2001-09-28 01:34:43 +00005262fi
drhf922ca42015-05-14 15:39:18 +00005263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005264$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005265 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5266 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5267 CFLAGS="$SAVE_CFLAGS"
5268 fi
5269 ;;
vapier7f19c022007-02-17 14:46:31 +00005270sparc*-*solaris*)
5271 # Find out which ABI we are using.
5272 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005274 (eval $ac_compile) 2>&5
5275 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005278 case `/usr/bin/file conftest.o` in
5279 *64-bit*)
5280 case $lt_cv_prog_gnu_ld in
5281 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005282 *)
5283 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5284 LD="${LD-ld} -64"
5285 fi
5286 ;;
vapier7f19c022007-02-17 14:46:31 +00005287 esac
5288 ;;
5289 esac
5290 fi
5291 rm -rf conftest*
5292 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005293esac
5294
5295need_locks="$enable_libtool_lock"
5296
drh71eb93e2001-09-28 01:34:43 +00005297
mlcreech636a9952008-05-05 22:52:56 +00005298 case $host_os in
5299 rhapsody* | darwin*)
5300 if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5302set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005304$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005305if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005306 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005307else
5308 if test -n "$DSYMUTIL"; then
5309 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005318 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005320 break 2
5321 fi
5322done
drhf922ca42015-05-14 15:39:18 +00005323 done
drh8b727472009-01-19 18:18:40 +00005324IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005325
5326fi
5327fi
5328DSYMUTIL=$ac_cv_prog_DSYMUTIL
5329if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005331$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005332else
drhf922ca42015-05-14 15:39:18 +00005333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005334$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005335fi
5336
drh8b727472009-01-19 18:18:40 +00005337
mlcreech636a9952008-05-05 22:52:56 +00005338fi
5339if test -z "$ac_cv_prog_DSYMUTIL"; then
5340 ac_ct_DSYMUTIL=$DSYMUTIL
5341 # Extract the first word of "dsymutil", so it can be a program name with args.
5342set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005344$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005345if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005346 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005347else
5348 if test -n "$ac_ct_DSYMUTIL"; then
5349 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5350else
5351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005358 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005360 break 2
5361 fi
5362done
drhf922ca42015-05-14 15:39:18 +00005363 done
drh8b727472009-01-19 18:18:40 +00005364IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005365
5366fi
5367fi
5368ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5369if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005371$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005372else
drhf922ca42015-05-14 15:39:18 +00005373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005374$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005375fi
5376
drh8b727472009-01-19 18:18:40 +00005377 if test "x$ac_ct_DSYMUTIL" = x; then
5378 DSYMUTIL=":"
5379 else
5380 case $cross_compiling:$ac_tool_warned in
5381yes:)
drhf922ca42015-05-14 15:39:18 +00005382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005384ac_tool_warned=yes ;;
5385esac
5386 DSYMUTIL=$ac_ct_DSYMUTIL
5387 fi
mlcreech636a9952008-05-05 22:52:56 +00005388else
5389 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5390fi
5391
5392 if test -n "$ac_tool_prefix"; then
5393 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5394set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005396$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005397if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005398 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005399else
5400 if test -n "$NMEDIT"; then
5401 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005410 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005412 break 2
5413 fi
5414done
drhf922ca42015-05-14 15:39:18 +00005415 done
drh8b727472009-01-19 18:18:40 +00005416IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005417
5418fi
5419fi
5420NMEDIT=$ac_cv_prog_NMEDIT
5421if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005423$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005424else
drhf922ca42015-05-14 15:39:18 +00005425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005426$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005427fi
5428
drh8b727472009-01-19 18:18:40 +00005429
mlcreech636a9952008-05-05 22:52:56 +00005430fi
5431if test -z "$ac_cv_prog_NMEDIT"; then
5432 ac_ct_NMEDIT=$NMEDIT
5433 # Extract the first word of "nmedit", so it can be a program name with args.
5434set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005436$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005437if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005438 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005439else
5440 if test -n "$ac_ct_NMEDIT"; then
5441 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005450 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005452 break 2
5453 fi
5454done
drhf922ca42015-05-14 15:39:18 +00005455 done
drh8b727472009-01-19 18:18:40 +00005456IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005457
5458fi
5459fi
5460ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5461if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005463$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005464else
drhf922ca42015-05-14 15:39:18 +00005465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005466$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005467fi
5468
drh8b727472009-01-19 18:18:40 +00005469 if test "x$ac_ct_NMEDIT" = x; then
5470 NMEDIT=":"
5471 else
5472 case $cross_compiling:$ac_tool_warned in
5473yes:)
drhf922ca42015-05-14 15:39:18 +00005474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005476ac_tool_warned=yes ;;
5477esac
5478 NMEDIT=$ac_ct_NMEDIT
5479 fi
mlcreech636a9952008-05-05 22:52:56 +00005480else
5481 NMEDIT="$ac_cv_prog_NMEDIT"
5482fi
5483
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5486set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005488$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005489if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005490 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005491else
5492 if test -n "$LIPO"; then
5493 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005502 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005504 break 2
5505 fi
5506done
drhf922ca42015-05-14 15:39:18 +00005507 done
drh8b727472009-01-19 18:18:40 +00005508IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005509
5510fi
5511fi
5512LIPO=$ac_cv_prog_LIPO
5513if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005515$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005516else
drhf922ca42015-05-14 15:39:18 +00005517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005518$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005519fi
5520
drh8b727472009-01-19 18:18:40 +00005521
mlcreech636a9952008-05-05 22:52:56 +00005522fi
5523if test -z "$ac_cv_prog_LIPO"; then
5524 ac_ct_LIPO=$LIPO
5525 # Extract the first word of "lipo", so it can be a program name with args.
5526set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005528$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005529if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005530 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005531else
5532 if test -n "$ac_ct_LIPO"; then
5533 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005542 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005544 break 2
5545 fi
5546done
drhf922ca42015-05-14 15:39:18 +00005547 done
drh8b727472009-01-19 18:18:40 +00005548IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005549
5550fi
5551fi
5552ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5553if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005555$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005556else
drhf922ca42015-05-14 15:39:18 +00005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005558$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005559fi
5560
drh8b727472009-01-19 18:18:40 +00005561 if test "x$ac_ct_LIPO" = x; then
5562 LIPO=":"
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565yes:)
drhf922ca42015-05-14 15:39:18 +00005566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005568ac_tool_warned=yes ;;
5569esac
5570 LIPO=$ac_ct_LIPO
5571 fi
mlcreech636a9952008-05-05 22:52:56 +00005572else
5573 LIPO="$ac_cv_prog_LIPO"
5574fi
5575
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5578set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005580$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005581if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005582 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005583else
5584 if test -n "$OTOOL"; then
5585 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5586else
5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005594 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005596 break 2
5597 fi
5598done
drhf922ca42015-05-14 15:39:18 +00005599 done
drh8b727472009-01-19 18:18:40 +00005600IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005601
5602fi
5603fi
5604OTOOL=$ac_cv_prog_OTOOL
5605if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005607$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005608else
drhf922ca42015-05-14 15:39:18 +00005609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005610$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005611fi
5612
drh8b727472009-01-19 18:18:40 +00005613
mlcreech636a9952008-05-05 22:52:56 +00005614fi
5615if test -z "$ac_cv_prog_OTOOL"; then
5616 ac_ct_OTOOL=$OTOOL
5617 # Extract the first word of "otool", so it can be a program name with args.
5618set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005620$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005621if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005622 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005623else
5624 if test -n "$ac_ct_OTOOL"; then
5625 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005634 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005636 break 2
5637 fi
5638done
drhf922ca42015-05-14 15:39:18 +00005639 done
drh8b727472009-01-19 18:18:40 +00005640IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005641
5642fi
5643fi
5644ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5645if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005647$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005648else
drhf922ca42015-05-14 15:39:18 +00005649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005650$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005651fi
5652
drh8b727472009-01-19 18:18:40 +00005653 if test "x$ac_ct_OTOOL" = x; then
5654 OTOOL=":"
5655 else
5656 case $cross_compiling:$ac_tool_warned in
5657yes:)
drhf922ca42015-05-14 15:39:18 +00005658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005660ac_tool_warned=yes ;;
5661esac
5662 OTOOL=$ac_ct_OTOOL
5663 fi
mlcreech636a9952008-05-05 22:52:56 +00005664else
5665 OTOOL="$ac_cv_prog_OTOOL"
5666fi
5667
5668 if test -n "$ac_tool_prefix"; then
5669 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5670set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005672$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005673if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005674 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005675else
5676 if test -n "$OTOOL64"; then
5677 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5678else
5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005686 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005688 break 2
5689 fi
5690done
drhf922ca42015-05-14 15:39:18 +00005691 done
drh8b727472009-01-19 18:18:40 +00005692IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005693
5694fi
5695fi
5696OTOOL64=$ac_cv_prog_OTOOL64
5697if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005699$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005700else
drhf922ca42015-05-14 15:39:18 +00005701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005702$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005703fi
5704
drh8b727472009-01-19 18:18:40 +00005705
mlcreech636a9952008-05-05 22:52:56 +00005706fi
5707if test -z "$ac_cv_prog_OTOOL64"; then
5708 ac_ct_OTOOL64=$OTOOL64
5709 # Extract the first word of "otool64", so it can be a program name with args.
5710set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005712$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005713if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005714 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005715else
5716 if test -n "$ac_ct_OTOOL64"; then
5717 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005726 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005728 break 2
5729 fi
5730done
drhf922ca42015-05-14 15:39:18 +00005731 done
drh8b727472009-01-19 18:18:40 +00005732IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005733
5734fi
5735fi
5736ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5737if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005739$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005740else
drhf922ca42015-05-14 15:39:18 +00005741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005742$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005743fi
5744
drh8b727472009-01-19 18:18:40 +00005745 if test "x$ac_ct_OTOOL64" = x; then
5746 OTOOL64=":"
5747 else
5748 case $cross_compiling:$ac_tool_warned in
5749yes:)
drhf922ca42015-05-14 15:39:18 +00005750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005752ac_tool_warned=yes ;;
5753esac
5754 OTOOL64=$ac_ct_OTOOL64
5755 fi
mlcreech636a9952008-05-05 22:52:56 +00005756else
5757 OTOOL64="$ac_cv_prog_OTOOL64"
5758fi
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
drhf922ca42015-05-14 15:39:18 +00005786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005787$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005788if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005789 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005790else
5791 lt_cv_apple_cc_single_mod=no
5792 if test -z "${LT_MULTI_MODULE}"; then
5793 # By default we will add the -single_module flag. You can override
5794 # by either setting the environment variable LT_MULTI_MODULE
5795 # non-empty at configure time, or by adding -multi_module to the
5796 # link flags.
5797 rm -rf libconftest.dylib*
5798 echo "int foo(void){return 1;}" > conftest.c
5799 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5800-dynamiclib -Wl,-single_module conftest.c" >&5
5801 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5802 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5803 _lt_result=$?
5804 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5805 lt_cv_apple_cc_single_mod=yes
5806 else
5807 cat conftest.err >&5
5808 fi
5809 rm -rf libconftest.dylib*
5810 rm -f conftest.*
5811 fi
5812fi
drhf922ca42015-05-14 15:39:18 +00005813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005814$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005816$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005817if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005818 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005819else
5820 lt_cv_ld_exported_symbols_list=no
5821 save_LDFLAGS=$LDFLAGS
5822 echo "_main" > conftest.sym
5823 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005825/* end confdefs.h. */
5826
5827int
5828main ()
5829{
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
drhf922ca42015-05-14 15:39:18 +00005835if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005836 lt_cv_ld_exported_symbols_list=yes
5837else
drhf922ca42015-05-14 15:39:18 +00005838 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005839fi
drhf922ca42015-05-14 15:39:18 +00005840rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005842 LDFLAGS="$save_LDFLAGS"
5843
5844fi
drhf922ca42015-05-14 15:39:18 +00005845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005846$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005847 case $host_os in
5848 rhapsody* | darwin1.[012])
5849 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5850 darwin1.*)
5851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5852 darwin*) # darwin 5.x on
5853 # if running on 10.5 or later, the deployment target defaults
5854 # to the OS version, if on x86, and 10.4, the deployment
5855 # target defaults to 10.4. Don't you love it?
5856 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5857 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5859 10.[012]*)
5860 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5861 10.*)
5862 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5863 esac
5864 ;;
5865 esac
5866 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5867 _lt_dar_single_mod='$single_module'
5868 fi
5869 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5870 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5871 else
5872 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5873 fi
5874 if test "$DSYMUTIL" != ":"; then
5875 _lt_dsymutil='~$DSYMUTIL $lib || :'
5876 else
5877 _lt_dsymutil=
5878 fi
5879 ;;
5880 esac
5881
a.rottmann84e63352003-03-24 09:42:16 +00005882ac_ext=c
5883ac_cpp='$CPP $CPPFLAGS'
5884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5886ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005888$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005889# On Suns, sometimes $CPP names a directory.
5890if test -n "$CPP" && test -d "$CPP"; then
5891 CPP=
5892fi
5893if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005894 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005895 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005896else
a.rottmann84e63352003-03-24 09:42:16 +00005897 # Double quotes because CPP needs to be expanded
5898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5899 do
5900 ac_preproc_ok=false
5901for ac_c_preproc_warn_flag in '' yes
5902do
5903 # Use a header file that comes with gcc, so configuring glibc
5904 # with a fresh cross-compiler works.
5905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5906 # <limits.h> exists even on freestanding compilers.
5907 # On the NeXT, cc -E runs the code through the compiler's parser,
5908 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005910/* end confdefs.h. */
5911#ifdef __STDC__
5912# include <limits.h>
5913#else
5914# include <assert.h>
5915#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005916 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005917_ACEOF
drhf922ca42015-05-14 15:39:18 +00005918if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005919
drhf922ca42015-05-14 15:39:18 +00005920else
a.rottmann84e63352003-03-24 09:42:16 +00005921 # Broken: fails on valid input.
5922continue
5923fi
drhf922ca42015-05-14 15:39:18 +00005924rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005925
drh8b727472009-01-19 18:18:40 +00005926 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005927 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005929/* end confdefs.h. */
5930#include <ac_nonexistent.h>
5931_ACEOF
drhf922ca42015-05-14 15:39:18 +00005932if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005933 # Broken: success on invalid input.
5934continue
5935else
a.rottmann84e63352003-03-24 09:42:16 +00005936 # Passes both tests.
5937ac_preproc_ok=:
5938break
5939fi
drhf922ca42015-05-14 15:39:18 +00005940rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005941
5942done
5943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005944rm -f conftest.i conftest.err conftest.$ac_ext
5945if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005946 break
5947fi
5948
5949 done
5950 ac_cv_prog_CPP=$CPP
5951
5952fi
5953 CPP=$ac_cv_prog_CPP
5954else
5955 ac_cv_prog_CPP=$CPP
5956fi
drhf922ca42015-05-14 15:39:18 +00005957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005958$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005959ac_preproc_ok=false
5960for ac_c_preproc_warn_flag in '' yes
5961do
5962 # Use a header file that comes with gcc, so configuring glibc
5963 # with a fresh cross-compiler works.
5964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965 # <limits.h> exists even on freestanding compilers.
5966 # On the NeXT, cc -E runs the code through the compiler's parser,
5967 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005969/* end confdefs.h. */
5970#ifdef __STDC__
5971# include <limits.h>
5972#else
5973# include <assert.h>
5974#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005975 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005976_ACEOF
drhf922ca42015-05-14 15:39:18 +00005977if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005978
drhf922ca42015-05-14 15:39:18 +00005979else
a.rottmann84e63352003-03-24 09:42:16 +00005980 # Broken: fails on valid input.
5981continue
5982fi
drhf922ca42015-05-14 15:39:18 +00005983rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005984
drh8b727472009-01-19 18:18:40 +00005985 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005986 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005988/* end confdefs.h. */
5989#include <ac_nonexistent.h>
5990_ACEOF
drhf922ca42015-05-14 15:39:18 +00005991if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005992 # Broken: success on invalid input.
5993continue
5994else
a.rottmann84e63352003-03-24 09:42:16 +00005995 # Passes both tests.
5996ac_preproc_ok=:
5997break
5998fi
drhf922ca42015-05-14 15:39:18 +00005999rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006000
6001done
6002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006003rm -f conftest.i conftest.err conftest.$ac_ext
6004if $ac_preproc_ok; then :
6005
a.rottmann84e63352003-03-24 09:42:16 +00006006else
drhf922ca42015-05-14 15:39:18 +00006007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6010See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006011fi
6012
6013ac_ext=c
6014ac_cpp='$CPP $CPPFLAGS'
6015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019
drhf922ca42015-05-14 15:39:18 +00006020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006021$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006022if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006023 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006024else
drhf922ca42015-05-14 15:39:18 +00006025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006026/* end confdefs.h. */
6027#include <stdlib.h>
6028#include <stdarg.h>
6029#include <string.h>
6030#include <float.h>
6031
6032int
6033main ()
6034{
6035
6036 ;
6037 return 0;
6038}
6039_ACEOF
drhf922ca42015-05-14 15:39:18 +00006040if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006041 ac_cv_header_stdc=yes
6042else
drhf922ca42015-05-14 15:39:18 +00006043 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006044fi
drh8b727472009-01-19 18:18:40 +00006045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006046
6047if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006050/* end confdefs.h. */
6051#include <string.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006055 $EGREP "memchr" >/dev/null 2>&1; then :
6056
a.rottmann84e63352003-03-24 09:42:16 +00006057else
6058 ac_cv_header_stdc=no
6059fi
6060rm -f conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006067/* end confdefs.h. */
6068#include <stdlib.h>
6069
6070_ACEOF
6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006072 $EGREP "free" >/dev/null 2>&1; then :
6073
a.rottmann84e63352003-03-24 09:42:16 +00006074else
6075 ac_cv_header_stdc=no
6076fi
6077rm -f conftest*
6078
6079fi
6080
6081if test $ac_cv_header_stdc = yes; then
6082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006083 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006084 :
6085else
drhf922ca42015-05-14 15:39:18 +00006086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006087/* end confdefs.h. */
6088#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006089#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006090#if ((' ' & 0x0FF) == 0x020)
6091# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093#else
6094# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006095 (('a' <= (c) && (c) <= 'i') \
6096 || ('j' <= (c) && (c) <= 'r') \
6097 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006098# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099#endif
6100
6101#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6102int
6103main ()
6104{
6105 int i;
6106 for (i = 0; i < 256; i++)
6107 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006108 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006109 return 2;
6110 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006111}
6112_ACEOF
drhf922ca42015-05-14 15:39:18 +00006113if ac_fn_c_try_run "$LINENO"; then :
6114
a.rottmann84e63352003-03-24 09:42:16 +00006115else
drhf922ca42015-05-14 15:39:18 +00006116 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006117fi
drhf922ca42015-05-14 15:39:18 +00006118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6119 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006120fi
6121
a.rottmann84e63352003-03-24 09:42:16 +00006122fi
6123fi
drhf922ca42015-05-14 15:39:18 +00006124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006125$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006126if test $ac_cv_header_stdc = yes; then
6127
drhf922ca42015-05-14 15:39:18 +00006128$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006129
6130fi
6131
6132# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006133for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006134 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006135do :
6136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6137ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6138"
6139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006140 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006142_ACEOF
6143
6144fi
6145
6146done
6147
6148
a.rottmann84e63352003-03-24 09:42:16 +00006149for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006150do :
6151 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6152"
6153if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006154 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006155#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006156_ACEOF
6157
6158fi
6159
drh71eb93e2001-09-28 01:34:43 +00006160done
6161
drh71eb93e2001-09-28 01:34:43 +00006162
drh71eb93e2001-09-28 01:34:43 +00006163
mlcreech636a9952008-05-05 22:52:56 +00006164# Set options
mlcreech94984912008-03-04 19:03:08 +00006165
drh71eb93e2001-09-28 01:34:43 +00006166
drh71eb93e2001-09-28 01:34:43 +00006167
mlcreech636a9952008-05-05 22:52:56 +00006168 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006169
a.rottmann9bc8b932004-02-29 15:18:31 +00006170
mlcreech636a9952008-05-05 22:52:56 +00006171 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006172
a.rottmann9bc8b932004-02-29 15:18:31 +00006173
drh8b727472009-01-19 18:18:40 +00006174 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006175if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006176 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006177 case $enableval in
6178 yes) enable_shared=yes ;;
6179 no) enable_shared=no ;;
6180 *)
6181 enable_shared=no
6182 # Look at the argument we got. We use all the common list separators.
6183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6184 for pkg in $enableval; do
6185 IFS="$lt_save_ifs"
6186 if test "X$pkg" = "X$p"; then
6187 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006188 fi
mlcreech636a9952008-05-05 22:52:56 +00006189 done
6190 IFS="$lt_save_ifs"
6191 ;;
6192 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006193else
mlcreech636a9952008-05-05 22:52:56 +00006194 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006195fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006196
mlcreech636a9952008-05-05 22:52:56 +00006197
6198
6199
6200
6201
6202
6203
drh8b727472009-01-19 18:18:40 +00006204
6205 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006206if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006207 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006208 case $enableval in
6209 yes) enable_static=yes ;;
6210 no) enable_static=no ;;
6211 *)
6212 enable_static=no
6213 # Look at the argument we got. We use all the common list separators.
6214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6215 for pkg in $enableval; do
6216 IFS="$lt_save_ifs"
6217 if test "X$pkg" = "X$p"; then
6218 enable_static=yes
6219 fi
6220 done
6221 IFS="$lt_save_ifs"
6222 ;;
6223 esac
6224else
6225 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006226fi
mlcreech636a9952008-05-05 22:52:56 +00006227
6228
6229
6230
6231
6232
6233
6234
6235
drh8b727472009-01-19 18:18:40 +00006236
6237# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006238if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006239 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006240else
6241 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006242fi
6243
mlcreech636a9952008-05-05 22:52:56 +00006244
6245test -z "$pic_mode" && pic_mode=default
6246
6247
6248
6249
6250
6251
6252
drh8b727472009-01-19 18:18:40 +00006253 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006254if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006255 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006256 case $enableval in
6257 yes) enable_fast_install=yes ;;
6258 no) enable_fast_install=no ;;
6259 *)
6260 enable_fast_install=no
6261 # Look at the argument we got. We use all the common list separators.
6262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6263 for pkg in $enableval; do
6264 IFS="$lt_save_ifs"
6265 if test "X$pkg" = "X$p"; then
6266 enable_fast_install=yes
6267 fi
6268 done
6269 IFS="$lt_save_ifs"
6270 ;;
6271 esac
6272else
6273 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006274fi
6275
mlcreech636a9952008-05-05 22:52:56 +00006276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286# This can be used to rebuild libtool when needed
6287LIBTOOL_DEPS="$ltmain"
6288
6289# Always use our own libtool.
6290LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316test -z "$LN_S" && LN_S="ln -s"
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331if test -n "${ZSH_VERSION+set}" ; then
6332 setopt NO_GLOB_SUBST
6333fi
6334
drhf922ca42015-05-14 15:39:18 +00006335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006336$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006337if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006338 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006339else
6340 rm -f .libs 2>/dev/null
6341mkdir .libs 2>/dev/null
6342if test -d .libs; then
6343 lt_cv_objdir=.libs
6344else
6345 # MS-DOS does not allow filenames that begin with a dot.
6346 lt_cv_objdir=_libs
6347fi
6348rmdir .libs 2>/dev/null
6349fi
drhf922ca42015-05-14 15:39:18 +00006350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006351$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006352objdir=$lt_cv_objdir
6353
6354
6355
6356
6357
mlcreech636a9952008-05-05 22:52:56 +00006358cat >>confdefs.h <<_ACEOF
6359#define LT_OBJDIR "$lt_cv_objdir/"
6360_ACEOF
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
a.rottmann9bc8b932004-02-29 15:18:31 +00006378case $host_os in
6379aix3*)
6380 # AIX sometimes has problems with the GCC collect2 program. For some
6381 # reason, if we set the COLLECT_NAMES environment variable, the problems
6382 # vanish in a puff of smoke.
6383 if test "X${COLLECT_NAMES+set}" != Xset; then
6384 COLLECT_NAMES=
6385 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006386 fi
6387 ;;
6388esac
6389
a.rottmann9bc8b932004-02-29 15:18:31 +00006390# Sed substitution that helps us do robust quoting. It backslashifies
6391# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006392sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006393
6394# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006395double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006396
6397# Sed substitution to delay expansion of an escaped shell variable in a
6398# double_quote_subst'ed string.
6399delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6400
mlcreech636a9952008-05-05 22:52:56 +00006401# Sed substitution to delay expansion of an escaped single quote.
6402delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6403
a.rottmann9bc8b932004-02-29 15:18:31 +00006404# Sed substitution to avoid accidental globbing in evaled expressions
6405no_glob_subst='s/\*/\\\*/g'
6406
a.rottmann9bc8b932004-02-29 15:18:31 +00006407# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006408ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006409can_build_shared=yes
6410
vapier7f19c022007-02-17 14:46:31 +00006411# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006412# which needs '.lib').
6413libext=a
mlcreech636a9952008-05-05 22:52:56 +00006414
a.rottmann9bc8b932004-02-29 15:18:31 +00006415with_gnu_ld="$lt_cv_prog_gnu_ld"
6416
a.rottmann84e63352003-03-24 09:42:16 +00006417old_CC="$CC"
6418old_CFLAGS="$CFLAGS"
6419
6420# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006421test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006422test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006423test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006424test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006425test -z "$ac_objext" && ac_objext=o
6426
vapier7f19c022007-02-17 14:46:31 +00006427for cc_temp in $compiler""; do
6428 case $cc_temp in
6429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6431 \-*) ;;
6432 *) break;;
6433 esac
6434done
mlcreech636a9952008-05-05 22:52:56 +00006435cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006436
6437
a.rottmann9bc8b932004-02-29 15:18:31 +00006438# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006439test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006440case $deplibs_check_method in
6441file_magic*)
6442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006444$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006445if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006446 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006447else
a.rottmann9bc8b932004-02-29 15:18:31 +00006448 case $MAGIC_CMD in
6449[\\/*] | ?:[\\/]*)
6450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6451 ;;
6452*)
6453 lt_save_MAGIC_CMD="$MAGIC_CMD"
6454 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6455 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6456 for ac_dir in $ac_dummy; do
6457 IFS="$lt_save_ifs"
6458 test -z "$ac_dir" && ac_dir=.
6459 if test -f $ac_dir/${ac_tool_prefix}file; then
6460 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6461 if test -n "$file_magic_test_file"; then
6462 case $deplibs_check_method in
6463 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006464 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006465 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6466 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6467 $EGREP "$file_magic_regex" > /dev/null; then
6468 :
6469 else
mlcreech636a9952008-05-05 22:52:56 +00006470 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006471
a.rottmann9bc8b932004-02-29 15:18:31 +00006472*** Warning: the command libtool uses to detect shared libraries,
6473*** $file_magic_cmd, produces output that libtool cannot recognize.
6474*** The result is that libtool may fail to recognize shared libraries
6475*** as such. This will affect the creation of libtool libraries that
6476*** depend on shared libraries, but programs linked with such libtool
6477*** libraries will work regardless of this problem. Nevertheless, you
6478*** may want to report the problem to your system manager and/or to
6479*** bug-libtool@gnu.org
6480
mlcreech636a9952008-05-05 22:52:56 +00006481_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006482 fi ;;
6483 esac
6484 fi
6485 break
6486 fi
6487 done
6488 IFS="$lt_save_ifs"
6489 MAGIC_CMD="$lt_save_MAGIC_CMD"
6490 ;;
6491esac
6492fi
6493
6494MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6495if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006497$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006498else
drhf922ca42015-05-14 15:39:18 +00006499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006500$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006501fi
6502
mlcreech636a9952008-05-05 22:52:56 +00006503
6504
6505
6506
a.rottmann9bc8b932004-02-29 15:18:31 +00006507if test -z "$lt_cv_path_MAGIC_CMD"; then
6508 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006510$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006511if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006512 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006513else
6514 case $MAGIC_CMD in
6515[\\/*] | ?:[\\/]*)
6516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6517 ;;
6518*)
6519 lt_save_MAGIC_CMD="$MAGIC_CMD"
6520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6521 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6522 for ac_dir in $ac_dummy; do
6523 IFS="$lt_save_ifs"
6524 test -z "$ac_dir" && ac_dir=.
6525 if test -f $ac_dir/file; then
6526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6527 if test -n "$file_magic_test_file"; then
6528 case $deplibs_check_method in
6529 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006530 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6533 $EGREP "$file_magic_regex" > /dev/null; then
6534 :
6535 else
mlcreech636a9952008-05-05 22:52:56 +00006536 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006537
6538*** Warning: the command libtool uses to detect shared libraries,
6539*** $file_magic_cmd, produces output that libtool cannot recognize.
6540*** The result is that libtool may fail to recognize shared libraries
6541*** as such. This will affect the creation of libtool libraries that
6542*** depend on shared libraries, but programs linked with such libtool
6543*** libraries will work regardless of this problem. Nevertheless, you
6544*** may want to report the problem to your system manager and/or to
6545*** bug-libtool@gnu.org
6546
mlcreech636a9952008-05-05 22:52:56 +00006547_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006548 fi ;;
6549 esac
6550 fi
6551 break
6552 fi
6553 done
6554 IFS="$lt_save_ifs"
6555 MAGIC_CMD="$lt_save_MAGIC_CMD"
6556 ;;
6557esac
6558fi
6559
6560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6561if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006563$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006564else
drhf922ca42015-05-14 15:39:18 +00006565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006566$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006567fi
6568
mlcreech636a9952008-05-05 22:52:56 +00006569
a.rottmann9bc8b932004-02-29 15:18:31 +00006570 else
6571 MAGIC_CMD=:
6572 fi
6573fi
6574
6575 fi
6576 ;;
6577esac
6578
a.rottmann9bc8b932004-02-29 15:18:31 +00006579# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006580
a.rottmann9bc8b932004-02-29 15:18:31 +00006581lt_save_CC="$CC"
6582ac_ext=c
6583ac_cpp='$CPP $CPPFLAGS'
6584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588
6589# Source file extension for C test sources.
6590ac_ext=c
6591
6592# Object file extension for compiled C test sources.
6593objext=o
6594objext=$objext
6595
6596# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006597lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006598
6599# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006600lt_simple_link_test_code='int main(){return(0);}'
6601
6602
6603
6604
6605
a.rottmann9bc8b932004-02-29 15:18:31 +00006606
6607
6608# If no C compiler was specified, use CC.
6609LTCC=${LTCC-"$CC"}
6610
vapier7f19c022007-02-17 14:46:31 +00006611# If no C compiler flags were specified, use CFLAGS.
6612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6613
a.rottmann9bc8b932004-02-29 15:18:31 +00006614# Allow CC to be a program name with arguments.
6615compiler=$CC
6616
mlcreech636a9952008-05-05 22:52:56 +00006617# Save the default compiler, since it gets overwritten when the other
6618# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6619compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006620
vapier7f19c022007-02-17 14:46:31 +00006621# save warnings/boilerplate of simple test code
6622ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006623echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006624eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6625_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006626$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006627
vapier7f19c022007-02-17 14:46:31 +00006628ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006629echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006630eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6631_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006632$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006633
6634
mlcreech636a9952008-05-05 22:52:56 +00006635if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006636
6637lt_prog_compiler_no_builtin_flag=
6638
6639if test "$GCC" = yes; then
6640 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6641
drhf922ca42015-05-14 15:39:18 +00006642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006643$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006644if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006645 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006646else
6647 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006648 ac_outfile=conftest.$ac_objext
6649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006650 lt_compiler_flag="-fno-rtti -fno-exceptions"
6651 # Insert the option either (1) after the last *FLAGS variable, or
6652 # (2) before a word containing "conftest.", or (3) at the end.
6653 # Note that $ac_compile itself does not contain backslashes and begins
6654 # with a dollar sign (not a hyphen), so the echo should work correctly.
6655 # The option is referenced via a variable to avoid confusing sed.
6656 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6659 -e 's:$: $lt_compiler_flag:'`
drhfdefc362015-10-14 20:03:00 +00006660 (eval echo "\"\$as_me:6660: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006661 (eval "$lt_compile" 2>conftest.err)
6662 ac_status=$?
6663 cat conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00006664 echo "$as_me:6664: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006665 if (exit $ac_status) && test -s "$ac_outfile"; then
6666 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006667 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006671 lt_cv_prog_compiler_rtti_exceptions=yes
6672 fi
6673 fi
mlcreech636a9952008-05-05 22:52:56 +00006674 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006675
6676fi
drhf922ca42015-05-14 15:39:18 +00006677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006678$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006679
6680if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6681 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6682else
6683 :
6684fi
6685
6686fi
6687
mlcreech636a9952008-05-05 22:52:56 +00006688
6689
6690
6691
6692
6693 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006694lt_prog_compiler_pic=
6695lt_prog_compiler_static=
6696
drhf922ca42015-05-14 15:39:18 +00006697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006698$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006699
drh71eb93e2001-09-28 01:34:43 +00006700 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006701 lt_prog_compiler_wl='-Wl,'
6702 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006703
6704 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006705 aix*)
6706 # All AIX code is PIC.
6707 if test "$host_cpu" = ia64; then
6708 # AIX 5 now supports IA64 processor
6709 lt_prog_compiler_static='-Bstatic'
6710 fi
drh71eb93e2001-09-28 01:34:43 +00006711 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006712
drh71eb93e2001-09-28 01:34:43 +00006713 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006714 case $host_cpu in
6715 powerpc)
6716 # see comment about AmigaOS4 .so support
6717 lt_prog_compiler_pic='-fPIC'
6718 ;;
6719 m68k)
6720 # FIXME: we need at least 68020 code to build shared libraries, but
6721 # adding the `-m68020' flag to GCC prevents building anything better,
6722 # like `-m68040'.
6723 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6724 ;;
6725 esac
drh71eb93e2001-09-28 01:34:43 +00006726 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006727
mlcreech636a9952008-05-05 22:52:56 +00006728 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006729 # PIC is the default for these OSes.
6730 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006731
vapier6acb2cf2009-01-28 04:46:28 +00006732 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006733 # This hack is so that the source file can tell whether it is being
6734 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006735 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6736 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006737 lt_prog_compiler_pic='-DDLL_EXPORT'
6738 ;;
6739
drh71eb93e2001-09-28 01:34:43 +00006740 darwin* | rhapsody*)
6741 # PIC is the default on this platform
6742 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006743 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006744 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006745
a.rottmann9bc8b932004-02-29 15:18:31 +00006746 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6749 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006750 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006751 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 # +Z the default
6753 ;;
6754 *)
6755 lt_prog_compiler_pic='-fPIC'
6756 ;;
6757 esac
6758 ;;
6759
mlcreech636a9952008-05-05 22:52:56 +00006760 interix[3-9]*)
6761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6762 # Instead, we relocate shared libraries at runtime.
6763 ;;
6764
6765 msdosdjgpp*)
6766 # Just because we use GCC doesn't mean we suddenly get shared libraries
6767 # on systems that don't support them.
6768 lt_prog_compiler_can_build_shared=no
6769 enable_shared=no
6770 ;;
6771
6772 *nto* | *qnx*)
6773 # QNX uses GNU C++, but need to define -shared option too, otherwise
6774 # it will coredump.
6775 lt_prog_compiler_pic='-fPIC -shared'
6776 ;;
6777
6778 sysv4*MP*)
6779 if test -d /usr/nec; then
6780 lt_prog_compiler_pic=-Kconform_pic
6781 fi
6782 ;;
6783
drh71eb93e2001-09-28 01:34:43 +00006784 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006785 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006786 ;;
6787 esac
6788 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006789 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006790 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006791 aix*)
6792 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006793 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006794 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006795 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006796 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006797 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006798 fi
6799 ;;
6800
vapier6acb2cf2009-01-28 04:46:28 +00006801 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 # This hack is so that the source file can tell whether it is being
6803 # built for inclusion in a dll (and should export symbols for example).
6804 lt_prog_compiler_pic='-DDLL_EXPORT'
6805 ;;
6806
a.rottmann84e63352003-03-24 09:42:16 +00006807 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006808 lt_prog_compiler_wl='-Wl,'
6809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6810 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006811 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 hppa*64*|ia64*)
6813 # +Z the default
6814 ;;
6815 *)
6816 lt_prog_compiler_pic='+Z'
6817 ;;
6818 esac
6819 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6820 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006821 ;;
6822
6823 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006824 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006825 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006827 ;;
6828
mlcreech636a9952008-05-05 22:52:56 +00006829 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006830 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006831 # old Intel for x86_64 which still supported -KPIC.
6832 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006833 lt_prog_compiler_wl='-Wl,'
6834 lt_prog_compiler_pic='-KPIC'
6835 lt_prog_compiler_static='-static'
6836 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006837 # icc used to be incompatible with GCC.
6838 # ICC 10 doesn't accept -KPIC any more.
6839 icc* | ifort*)
6840 lt_prog_compiler_wl='-Wl,'
6841 lt_prog_compiler_pic='-fPIC'
6842 lt_prog_compiler_static='-static'
6843 ;;
6844 # Lahey Fortran 8.1.
6845 lf95*)
6846 lt_prog_compiler_wl='-Wl,'
6847 lt_prog_compiler_pic='--shared'
6848 lt_prog_compiler_static='--static'
6849 ;;
vapier7f19c022007-02-17 14:46:31 +00006850 pgcc* | pgf77* | pgf90* | pgf95*)
6851 # Portland Group compilers (*not* the Pentium gcc compiler,
6852 # which looks to be a dead project)
6853 lt_prog_compiler_wl='-Wl,'
6854 lt_prog_compiler_pic='-fpic'
6855 lt_prog_compiler_static='-Bstatic'
6856 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006857 ccc*)
6858 lt_prog_compiler_wl='-Wl,'
6859 # All Alpha code is PIC.
6860 lt_prog_compiler_static='-non_shared'
6861 ;;
mlcreech636a9952008-05-05 22:52:56 +00006862 xl*)
6863 # IBM XL C 8.0/Fortran 10.1 on PPC
6864 lt_prog_compiler_wl='-Wl,'
6865 lt_prog_compiler_pic='-qpic'
6866 lt_prog_compiler_static='-qstaticlink'
6867 ;;
6868 *)
6869 case `$CC -V 2>&1 | sed 5q` in
6870 *Sun\ C*)
6871 # Sun C 5.9
6872 lt_prog_compiler_pic='-KPIC'
6873 lt_prog_compiler_static='-Bstatic'
6874 lt_prog_compiler_wl='-Wl,'
6875 ;;
6876 *Sun\ F*)
6877 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6878 lt_prog_compiler_pic='-KPIC'
6879 lt_prog_compiler_static='-Bstatic'
6880 lt_prog_compiler_wl=''
6881 ;;
6882 esac
6883 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006884 esac
drh71eb93e2001-09-28 01:34:43 +00006885 ;;
6886
mlcreech636a9952008-05-05 22:52:56 +00006887 newsos6)
6888 lt_prog_compiler_pic='-KPIC'
6889 lt_prog_compiler_static='-Bstatic'
6890 ;;
6891
6892 *nto* | *qnx*)
6893 # QNX uses GNU C++, but need to define -shared option too, otherwise
6894 # it will coredump.
6895 lt_prog_compiler_pic='-fPIC -shared'
6896 ;;
6897
drh71eb93e2001-09-28 01:34:43 +00006898 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006899 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006900 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006901 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006902 ;;
6903
mlcreech636a9952008-05-05 22:52:56 +00006904 rdos*)
6905 lt_prog_compiler_static='-non_shared'
6906 ;;
6907
drh71eb93e2001-09-28 01:34:43 +00006908 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006909 lt_prog_compiler_pic='-KPIC'
6910 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006911 case $cc_basename in
6912 f77* | f90* | f95*)
6913 lt_prog_compiler_wl='-Qoption ld ';;
6914 *)
6915 lt_prog_compiler_wl='-Wl,';;
6916 esac
drh71eb93e2001-09-28 01:34:43 +00006917 ;;
6918
6919 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006920 lt_prog_compiler_wl='-Qoption ld '
6921 lt_prog_compiler_pic='-PIC'
6922 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006923 ;;
6924
vapier7f19c022007-02-17 14:46:31 +00006925 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006926 lt_prog_compiler_wl='-Wl,'
6927 lt_prog_compiler_pic='-KPIC'
6928 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006929 ;;
6930
6931 sysv4*MP*)
6932 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006933 lt_prog_compiler_pic='-Kconform_pic'
6934 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006935 fi
6936 ;;
6937
vapier7f19c022007-02-17 14:46:31 +00006938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6939 lt_prog_compiler_wl='-Wl,'
6940 lt_prog_compiler_pic='-KPIC'
6941 lt_prog_compiler_static='-Bstatic'
6942 ;;
6943
6944 unicos*)
6945 lt_prog_compiler_wl='-Wl,'
6946 lt_prog_compiler_can_build_shared=no
6947 ;;
6948
a.rottmann9bc8b932004-02-29 15:18:31 +00006949 uts4*)
6950 lt_prog_compiler_pic='-pic'
6951 lt_prog_compiler_static='-Bstatic'
6952 ;;
6953
drh71eb93e2001-09-28 01:34:43 +00006954 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006955 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006956 ;;
6957 esac
6958 fi
6959
mlcreech636a9952008-05-05 22:52:56 +00006960case $host_os in
6961 # For platforms which do not support PIC, -DPIC is meaningless:
6962 *djgpp*)
6963 lt_prog_compiler_pic=
6964 ;;
6965 *)
6966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6967 ;;
6968esac
drhf922ca42015-05-14 15:39:18 +00006969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006970$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006971
6972
6973
6974
6975
drh71eb93e2001-09-28 01:34:43 +00006976
a.rottmann9bc8b932004-02-29 15:18:31 +00006977#
6978# Check to make sure the PIC flag actually works.
6979#
6980if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006982$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006983if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006984 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006985else
mlcreech636a9952008-05-05 22:52:56 +00006986 lt_cv_prog_compiler_pic_works=no
6987 ac_outfile=conftest.$ac_objext
6988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6990 # Insert the option either (1) after the last *FLAGS variable, or
6991 # (2) before a word containing "conftest.", or (3) at the end.
6992 # Note that $ac_compile itself does not contain backslashes and begins
6993 # with a dollar sign (not a hyphen), so the echo should work correctly.
6994 # The option is referenced via a variable to avoid confusing sed.
6995 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6998 -e 's:$: $lt_compiler_flag:'`
drhfdefc362015-10-14 20:03:00 +00006999 (eval echo "\"\$as_me:6999: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007000 (eval "$lt_compile" 2>conftest.err)
7001 ac_status=$?
7002 cat conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00007003 echo "$as_me:7003: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007004 if (exit $ac_status) && test -s "$ac_outfile"; then
7005 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007006 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007007 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007010 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 fi
7012 fi
mlcreech636a9952008-05-05 22:52:56 +00007013 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007014
a.rottmann9bc8b932004-02-29 15:18:31 +00007015fi
drhf922ca42015-05-14 15:39:18 +00007016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007017$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007018
mlcreech636a9952008-05-05 22:52:56 +00007019if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007020 case $lt_prog_compiler_pic in
7021 "" | " "*) ;;
7022 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7023 esac
drh71eb93e2001-09-28 01:34:43 +00007024else
a.rottmann9bc8b932004-02-29 15:18:31 +00007025 lt_prog_compiler_pic=
7026 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007027fi
7028
a.rottmann84e63352003-03-24 09:42:16 +00007029fi
mlcreech636a9952008-05-05 22:52:56 +00007030
7031
7032
7033
7034
a.rottmann84e63352003-03-24 09:42:16 +00007035
vapier7f19c022007-02-17 14:46:31 +00007036#
7037# Check to make sure the static flag actually works.
7038#
7039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007041$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007042if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007043 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007044else
mlcreech636a9952008-05-05 22:52:56 +00007045 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007046 save_LDFLAGS="$LDFLAGS"
7047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007048 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7050 # The linker can only warn and ignore the option if not recognized
7051 # So say no if there are warnings
7052 if test -s conftest.err; then
7053 # Append any errors to the config.log.
7054 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007055 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7057 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007058 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007059 fi
7060 else
mlcreech636a9952008-05-05 22:52:56 +00007061 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007062 fi
7063 fi
mlcreech636a9952008-05-05 22:52:56 +00007064 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007065 LDFLAGS="$save_LDFLAGS"
7066
7067fi
drhf922ca42015-05-14 15:39:18 +00007068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007069$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007070
mlcreech636a9952008-05-05 22:52:56 +00007071if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007072 :
7073else
7074 lt_prog_compiler_static=
7075fi
7076
7077
mlcreech636a9952008-05-05 22:52:56 +00007078
7079
7080
7081
7082
drhf922ca42015-05-14 15:39:18 +00007083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007084$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007085if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007086 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007087else
a.rottmann9bc8b932004-02-29 15:18:31 +00007088 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007089 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007090 mkdir conftest
7091 cd conftest
7092 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007094
a.rottmann9bc8b932004-02-29 15:18:31 +00007095 lt_compiler_flag="-o out/conftest2.$ac_objext"
7096 # Insert the option either (1) after the last *FLAGS variable, or
7097 # (2) before a word containing "conftest.", or (3) at the end.
7098 # Note that $ac_compile itself does not contain backslashes and begins
7099 # with a dollar sign (not a hyphen), so the echo should work correctly.
7100 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7103 -e 's:$: $lt_compiler_flag:'`
drhfdefc362015-10-14 20:03:00 +00007104 (eval echo "\"\$as_me:7104: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 (eval "$lt_compile" 2>out/conftest.err)
7106 ac_status=$?
7107 cat out/conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00007108 echo "$as_me:7108: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7110 then
7111 # The compiler can only warn and ignore the option if not recognized
7112 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007113 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007114 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7115 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007116 lt_cv_prog_compiler_c_o=yes
7117 fi
7118 fi
vapier7f19c022007-02-17 14:46:31 +00007119 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007120 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 # SGI C++ compiler will create directory out/ii_files/ for
7122 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007123 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7124 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007126 $RM -r conftest
7127 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007128
7129fi
drhf922ca42015-05-14 15:39:18 +00007130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007131$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007132
7133
7134
7135
7136
7137
drhf922ca42015-05-14 15:39:18 +00007138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007139$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007140if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007141 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007142else
7143 lt_cv_prog_compiler_c_o=no
7144 $RM -r conftest 2>/dev/null
7145 mkdir conftest
7146 cd conftest
7147 mkdir out
7148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7149
7150 lt_compiler_flag="-o out/conftest2.$ac_objext"
7151 # Insert the option either (1) after the last *FLAGS variable, or
7152 # (2) before a word containing "conftest.", or (3) at the end.
7153 # Note that $ac_compile itself does not contain backslashes and begins
7154 # with a dollar sign (not a hyphen), so the echo should work correctly.
7155 lt_compile=`echo "$ac_compile" | $SED \
7156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7158 -e 's:$: $lt_compiler_flag:'`
drhfdefc362015-10-14 20:03:00 +00007159 (eval echo "\"\$as_me:7159: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007160 (eval "$lt_compile" 2>out/conftest.err)
7161 ac_status=$?
7162 cat out/conftest.err >&5
drhfdefc362015-10-14 20:03:00 +00007163 echo "$as_me:7163: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7165 then
7166 # The compiler can only warn and ignore the option if not recognized
7167 # So say no if there are warnings
7168 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7169 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7170 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7171 lt_cv_prog_compiler_c_o=yes
7172 fi
7173 fi
7174 chmod u+w . 2>&5
7175 $RM conftest*
7176 # SGI C++ compiler will create directory out/ii_files/ for
7177 # template instantiation
7178 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7179 $RM out/* && rmdir out
7180 cd ..
7181 $RM -r conftest
7182 $RM conftest*
7183
7184fi
drhf922ca42015-05-14 15:39:18 +00007185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007186$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007187
7188
drh71eb93e2001-09-28 01:34:43 +00007189
a.rottmann84e63352003-03-24 09:42:16 +00007190
drh71eb93e2001-09-28 01:34:43 +00007191hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007192if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007193 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007195$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007196 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007197 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7199 touch conftest.a
7200 ln conftest.a conftest.b 2>&5 || hard_links=no
7201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007203$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007204 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007205 { $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 +00007206$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007207 need_locks=warn
7208 fi
7209else
7210 need_locks=no
7211fi
7212
mlcreech636a9952008-05-05 22:52:56 +00007213
7214
7215
7216
7217
drhf922ca42015-05-14 15:39:18 +00007218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007219$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007220
7221 runpath_var=
7222 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007223 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007224 archive_cmds=
7225 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007226 compiler_needs_object=no
7227 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007228 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7230 hardcode_automatic=no
7231 hardcode_direct=no
7232 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007233 hardcode_libdir_flag_spec=
7234 hardcode_libdir_flag_spec_ld=
7235 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007236 hardcode_minus_L=no
7237 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007238 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007239 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007240 module_cmds=
7241 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007242 old_archive_from_new_cmds=
7243 old_archive_from_expsyms_cmds=
7244 thread_safe_flag_spec=
7245 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007246 # include_expsyms should be a list of space-separated symbols to be *always*
7247 # included in the symbol list
7248 include_expsyms=
7249 # exclude_expsyms can be an extended regexp of symbols to exclude
7250 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7251 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7252 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007253 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7255 # platforms (ab)use it in PIC code, but their linkers get confused if
7256 # the symbol is explicitly referenced. Since portable code cannot
7257 # rely on this symbol name, it's probably fine to never include it in
7258 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007259 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 extract_expsyms_cmds=
7261
7262 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007263 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7265 # When not using gcc, we currently assume that we are using
7266 # Microsoft Visual C++.
7267 if test "$GCC" != yes; then
7268 with_gnu_ld=no
7269 fi
7270 ;;
vapier7f19c022007-02-17 14:46:31 +00007271 interix*)
7272 # we just hope/assume this is gcc and not c89 (= MSVC++)
7273 with_gnu_ld=yes
7274 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 openbsd*)
7276 with_gnu_ld=no
7277 ;;
7278 esac
7279
7280 ld_shlibs=yes
7281 if test "$with_gnu_ld" = yes; then
7282 # If archive_cmds runs LD, not CC, wlarc should be empty
7283 wlarc='${wl}'
7284
vapier7f19c022007-02-17 14:46:31 +00007285 # Set some defaults for GNU ld with shared library support. These
7286 # are reset later if shared libraries are not supported. Putting them
7287 # here allows them to be overridden if necessary.
7288 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007289 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007290 export_dynamic_flag_spec='${wl}--export-dynamic'
7291 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007292 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7293 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7294 else
7295 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007296 fi
7297 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007298 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007299 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7300 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7301 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7302 *\ 2.11.*) ;; # other 2.11 versions
7303 *) supports_anon_versioning=yes ;;
7304 esac
7305
a.rottmann9bc8b932004-02-29 15:18:31 +00007306 # See if GNU ld supports shared libraries.
7307 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007308 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007309 # On AIX/PPC, the GNU linker is very broken
7310 if test "$host_cpu" != ia64; then
7311 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007312 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007313
7314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7315*** to be unable to reliably create shared libraries on AIX.
7316*** Therefore, libtool is disabling shared libraries support. If you
7317*** really care for shared libraries, you may want to modify your PATH
7318*** so that a non-GNU linker is found, and then restart.
7319
mlcreech636a9952008-05-05 22:52:56 +00007320_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007321 fi
7322 ;;
7323
7324 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007325 case $host_cpu in
7326 powerpc)
7327 # see comment about AmigaOS4 .so support
7328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329 archive_expsym_cmds=''
7330 ;;
7331 m68k)
7332 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)'
7333 hardcode_libdir_flag_spec='-L$libdir'
7334 hardcode_minus_L=yes
7335 ;;
7336 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007337 ;;
7338
7339 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007341 allow_undefined_flag=unsupported
7342 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7343 # support --undefined. This deserves some investigation. FIXME
7344 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7345 else
7346 ld_shlibs=no
7347 fi
7348 ;;
7349
vapier6acb2cf2009-01-28 04:46:28 +00007350 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007351 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007352 # as there is no search path for DLLs.
7353 hardcode_libdir_flag_spec='-L$libdir'
7354 allow_undefined_flag=unsupported
7355 always_export_symbols=no
7356 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007357 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 +00007358
mlcreech636a9952008-05-05 22:52:56 +00007359 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007360 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 +00007361 # If the export-symbols file already is a .def file (1st line
7362 # is EXPORTS), use it as is; otherwise, prepend...
7363 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7364 cp $export_symbols $output_objdir/$soname.def;
7365 else
7366 echo EXPORTS > $output_objdir/$soname.def;
7367 cat $export_symbols >> $output_objdir/$soname.def;
7368 fi~
vapier7f19c022007-02-17 14:46:31 +00007369 $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 +00007370 else
7371 ld_shlibs=no
7372 fi
7373 ;;
7374
mlcreech636a9952008-05-05 22:52:56 +00007375 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007376 hardcode_direct=no
7377 hardcode_shlibpath_var=no
7378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7379 export_dynamic_flag_spec='${wl}-E'
7380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7381 # Instead, shared libraries are loaded at an image base (0x10000000 by
7382 # default) and relocated if they conflict, which is a slow very memory
7383 # consuming and fragmenting process. To avoid this, we pick a random,
7384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7387 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'
7388 ;;
7389
mlcreech636a9952008-05-05 22:52:56 +00007390 gnu* | linux* | tpf* | k*bsd*-gnu)
7391 tmp_diet=no
7392 if test "$host_os" = linux-dietlibc; then
7393 case $cc_basename in
7394 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7395 esac
7396 fi
7397 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7398 && test "$tmp_diet" = no
7399 then
vapier7f19c022007-02-17 14:46:31 +00007400 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007401 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007402 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007403 pgcc*) # Portland Group C compiler
7404 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 +00007405 tmp_addflag=' $pic_flag'
7406 ;;
7407 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007408 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 +00007409 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007410 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007411 tmp_addflag=' -i_dynamic' ;;
7412 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7413 tmp_addflag=' -i_dynamic -nofor_main' ;;
7414 ifc* | ifort*) # Intel Fortran compiler
7415 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007416 lf95*) # Lahey Fortran 8.1
7417 whole_archive_flag_spec=
7418 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007419 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7420 tmp_sharedflag='-qmkshrobj'
7421 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007422 esac
mlcreech636a9952008-05-05 22:52:56 +00007423 case `$CC -V 2>&1 | sed 5q` in
7424 *Sun\ C*) # Sun C 5.9
7425 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'
7426 compiler_needs_object=yes
7427 tmp_sharedflag='-G' ;;
7428 *Sun\ F*) # Sun Fortran 8.3
7429 tmp_sharedflag='-G' ;;
7430 esac
7431 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007432
mlcreech636a9952008-05-05 22:52:56 +00007433 if test "x$supports_anon_versioning" = xyes; then
7434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7436 echo "local: *; };" >> $output_objdir/$libname.ver~
7437 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7438 fi
7439
7440 case $cc_basename in
7441 xlf*)
7442 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7443 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7444 hardcode_libdir_flag_spec=
7445 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7446 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7447 if test "x$supports_anon_versioning" = xyes; then
7448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7450 echo "local: *; };" >> $output_objdir/$libname.ver~
7451 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7452 fi
7453 ;;
7454 esac
vapier7f19c022007-02-17 14:46:31 +00007455 else
mlcreech636a9952008-05-05 22:52:56 +00007456 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007457 fi
7458 ;;
7459
7460 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007461 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007462 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7463 wlarc=
7464 else
7465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7467 fi
7468 ;;
7469
vapier7f19c022007-02-17 14:46:31 +00007470 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007471 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007472 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007473 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007474
7475*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7476*** create shared libraries on Solaris systems. Therefore, libtool
7477*** is disabling shared libraries support. We urge you to upgrade GNU
7478*** binutils to release 2.9.1 or newer. Another option is to modify
7479*** your PATH or compiler configuration so that the native linker is
7480*** used, and then restart.
7481
mlcreech636a9952008-05-05 22:52:56 +00007482_LT_EOF
7483 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7485 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7486 else
7487 ld_shlibs=no
7488 fi
7489 ;;
7490
vapier7f19c022007-02-17 14:46:31 +00007491 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7492 case `$LD -v 2>&1` in
7493 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7494 ld_shlibs=no
7495 cat <<_LT_EOF 1>&2
7496
7497*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7498*** reliably create shared libraries on SCO systems. Therefore, libtool
7499*** is disabling shared libraries support. We urge you to upgrade GNU
7500*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7501*** your PATH or compiler configuration so that the native linker is
7502*** used, and then restart.
7503
7504_LT_EOF
7505 ;;
7506 *)
mlcreech636a9952008-05-05 22:52:56 +00007507 # For security reasons, it is highly recommended that you always
7508 # use absolute paths for naming shared libraries, and exclude the
7509 # DT_RUNPATH tag from executables and libraries. But doing so
7510 # requires that you compile everything twice, which is a pain.
7511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7514 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 +00007515 else
7516 ld_shlibs=no
7517 fi
7518 ;;
7519 esac
7520 ;;
7521
a.rottmann9bc8b932004-02-29 15:18:31 +00007522 sunos4*)
7523 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7524 wlarc=
7525 hardcode_direct=yes
7526 hardcode_shlibpath_var=no
7527 ;;
7528
a.rottmann9bc8b932004-02-29 15:18:31 +00007529 *)
mlcreech636a9952008-05-05 22:52:56 +00007530 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7533 else
7534 ld_shlibs=no
7535 fi
7536 ;;
7537 esac
7538
vapier7f19c022007-02-17 14:46:31 +00007539 if test "$ld_shlibs" = no; then
7540 runpath_var=
7541 hardcode_libdir_flag_spec=
7542 export_dynamic_flag_spec=
7543 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007544 fi
7545 else
7546 # PORTME fill in a description of your system's linker (not GNU ld)
7547 case $host_os in
7548 aix3*)
7549 allow_undefined_flag=unsupported
7550 always_export_symbols=yes
7551 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'
7552 # Note: this linker hardcodes the directories in LIBPATH if there
7553 # are no directories specified by -L.
7554 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007555 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007556 # Neither direct hardcoding nor static linking is supported with a
7557 # broken collect2.
7558 hardcode_direct=unsupported
7559 fi
7560 ;;
7561
mlcreech636a9952008-05-05 22:52:56 +00007562 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007563 if test "$host_cpu" = ia64; then
7564 # On IA64, the linker does run time linking by default, so we don't
7565 # have to do anything special.
7566 aix_use_runtimelinking=no
7567 exp_sym_flag='-Bexport'
7568 no_entry_flag=""
7569 else
7570 # If we're using GNU nm, then we don't want the "-C" option.
7571 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7573 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 +00007574 else
mlcreech636a9952008-05-05 22:52:56 +00007575 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 +00007576 fi
7577 aix_use_runtimelinking=no
7578
7579 # Test if we are trying to use run time linking or normal
7580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7581 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007582 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007583 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007584 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7585 aix_use_runtimelinking=yes
7586 break
7587 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 done
vapier7f19c022007-02-17 14:46:31 +00007589 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007590 esac
7591
7592 exp_sym_flag='-bexport'
7593 no_entry_flag='-bnoentry'
7594 fi
7595
7596 # When large executables or shared objects are built, AIX ld can
7597 # have problems creating the table of contents. If linking a library
7598 # or program results in "error TOC overflow" add -mminimal-toc to
7599 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7600 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7601
7602 archive_cmds=''
7603 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007604 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007605 hardcode_libdir_separator=':'
7606 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007607 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007608
7609 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007610 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007611 # We only want to do this on AIX 4.2 and lower, the check
7612 # below for broken collect2 doesn't work under 4.3+
7613 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007614 if test -f "$collect2name" &&
7615 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007616 then
mlcreech636a9952008-05-05 22:52:56 +00007617 # We have reworked collect2
7618 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 else
mlcreech636a9952008-05-05 22:52:56 +00007620 # We have old collect2
7621 hardcode_direct=unsupported
7622 # It fails to find uninstalled libraries when the uninstalled
7623 # path is not listed in the libpath. Setting hardcode_minus_L
7624 # to unsupported forces relinking
7625 hardcode_minus_L=yes
7626 hardcode_libdir_flag_spec='-L$libdir'
7627 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 fi
vapier7f19c022007-02-17 14:46:31 +00007629 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 esac
7631 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007632 if test "$aix_use_runtimelinking" = yes; then
7633 shared_flag="$shared_flag "'${wl}-G'
7634 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007635 else
7636 # not using gcc
7637 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007638 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7639 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007640 shared_flag='-G'
7641 else
vapier7f19c022007-02-17 14:46:31 +00007642 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 shared_flag='${wl}-G'
7644 else
7645 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007646 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 fi
7648 fi
7649
vapier6acb2cf2009-01-28 04:46:28 +00007650 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007651 # It seems that -bexpall does not export symbols beginning with
7652 # underscore (_), so it is better to generate a list of symbols to export.
7653 always_export_symbols=yes
7654 if test "$aix_use_runtimelinking" = yes; then
7655 # Warning - without using the other runtime loading flags (-brtl),
7656 # -berok will link without error, but may produce a broken library.
7657 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007658 # Determine the default libpath from the value encoded in an
7659 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007661/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007662
a.rottmann84e63352003-03-24 09:42:16 +00007663int
7664main ()
7665{
a.rottmann9bc8b932004-02-29 15:18:31 +00007666
a.rottmann84e63352003-03-24 09:42:16 +00007667 ;
7668 return 0;
7669}
7670_ACEOF
drhf922ca42015-05-14 15:39:18 +00007671if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007672
mlcreech636a9952008-05-05 22:52:56 +00007673lt_aix_libpath_sed='
7674 /Import File Strings/,/^$/ {
7675 /^0/ {
7676 s/^0 *\(.*\)$/\1/
7677 p
7678 }
7679 }'
7680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007681# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007682if test -z "$aix_libpath"; then
7683 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7684fi
a.rottmann84e63352003-03-24 09:42:16 +00007685fi
drhf922ca42015-05-14 15:39:18 +00007686rm -f core conftest.err conftest.$ac_objext \
7687 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007689
mlcreech636a9952008-05-05 22:52:56 +00007690 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7691 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"
7692 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007693 if test "$host_cpu" = ia64; then
7694 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7695 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007696 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 +00007697 else
mlcreech636a9952008-05-05 22:52:56 +00007698 # Determine the default libpath from the value encoded in an
7699 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007701/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007702
a.rottmann9bc8b932004-02-29 15:18:31 +00007703int
7704main ()
7705{
a.rottmann84e63352003-03-24 09:42:16 +00007706
a.rottmann9bc8b932004-02-29 15:18:31 +00007707 ;
7708 return 0;
7709}
7710_ACEOF
drhf922ca42015-05-14 15:39:18 +00007711if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007712
mlcreech636a9952008-05-05 22:52:56 +00007713lt_aix_libpath_sed='
7714 /Import File Strings/,/^$/ {
7715 /^0/ {
7716 s/^0 *\(.*\)$/\1/
7717 p
7718 }
7719 }'
7720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007721# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007722if test -z "$aix_libpath"; then
7723 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7724fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007725fi
drhf922ca42015-05-14 15:39:18 +00007726rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007729
a.rottmann9bc8b932004-02-29 15:18:31 +00007730 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7731 # Warning - without using the other run time loading flags,
7732 # -berok will link without error, but may produce a broken library.
7733 no_undefined_flag=' ${wl}-bernotok'
7734 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007735 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007736 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007737 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007738 # This is similar to how AIX traditionally builds its shared libraries.
7739 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 +00007740 fi
7741 fi
a.rottmann84e63352003-03-24 09:42:16 +00007742 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007743
7744 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007745 case $host_cpu in
7746 powerpc)
7747 # see comment about AmigaOS4 .so support
7748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7749 archive_expsym_cmds=''
7750 ;;
7751 m68k)
7752 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)'
7753 hardcode_libdir_flag_spec='-L$libdir'
7754 hardcode_minus_L=yes
7755 ;;
7756 esac
a.rottmann84e63352003-03-24 09:42:16 +00007757 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007758
vapier7f19c022007-02-17 14:46:31 +00007759 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007760 export_dynamic_flag_spec=-rdynamic
7761 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007762
vapier6acb2cf2009-01-28 04:46:28 +00007763 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007764 # When not using gcc, we currently assume that we are using
7765 # Microsoft Visual C++.
7766 # hardcode_libdir_flag_spec is actually meaningless, as there is
7767 # no search path for DLLs.
7768 hardcode_libdir_flag_spec=' '
7769 allow_undefined_flag=unsupported
7770 # Tell ltmain to make .lib files, not .a files.
7771 libext=lib
7772 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007773 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007774 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007775 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 +00007776 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007777 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007778 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007779 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007780 fix_srcfile_path='`cygpath -w "$srcfile"`'
7781 enable_shared_with_static_runtimes=yes
7782 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007783
a.rottmann9bc8b932004-02-29 15:18:31 +00007784 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007785
7786
7787 archive_cmds_need_lc=no
7788 hardcode_direct=no
7789 hardcode_automatic=yes
7790 hardcode_shlibpath_var=unsupported
7791 whole_archive_flag_spec=''
7792 link_all_deplibs=yes
7793 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007794 case $cc_basename in
7795 ifort*) _lt_dar_can_shared=yes ;;
7796 *) _lt_dar_can_shared=$GCC ;;
7797 esac
7798 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007799 output_verbose_link_cmd=echo
7800 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7801 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7802 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}"
7803 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}"
7804
7805 else
7806 ld_shlibs=no
7807 fi
7808
a.rottmann9bc8b932004-02-29 15:18:31 +00007809 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007810
a.rottmann9bc8b932004-02-29 15:18:31 +00007811 dgux*)
7812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7813 hardcode_libdir_flag_spec='-L$libdir'
7814 hardcode_shlibpath_var=no
7815 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007816
a.rottmann9bc8b932004-02-29 15:18:31 +00007817 freebsd1*)
7818 ld_shlibs=no
7819 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007820
a.rottmann9bc8b932004-02-29 15:18:31 +00007821 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7822 # support. Future versions do this automatically, but an explicit c++rt0.o
7823 # does not break anything, and helps significantly (at the cost of a little
7824 # extra space).
7825 freebsd2.2*)
7826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7827 hardcode_libdir_flag_spec='-R$libdir'
7828 hardcode_direct=yes
7829 hardcode_shlibpath_var=no
7830 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007831
a.rottmann9bc8b932004-02-29 15:18:31 +00007832 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7833 freebsd2*)
7834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7835 hardcode_direct=yes
7836 hardcode_minus_L=yes
7837 hardcode_shlibpath_var=no
7838 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007839
a.rottmann9bc8b932004-02-29 15:18:31 +00007840 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007841 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007842 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7843 hardcode_libdir_flag_spec='-R$libdir'
7844 hardcode_direct=yes
7845 hardcode_shlibpath_var=no
7846 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007847
a.rottmann9bc8b932004-02-29 15:18:31 +00007848 hpux9*)
7849 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007850 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 +00007851 else
mlcreech636a9952008-05-05 22:52:56 +00007852 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 +00007853 fi
7854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7855 hardcode_libdir_separator=:
7856 hardcode_direct=yes
7857
7858 # hardcode_minus_L: Not really in the search PATH,
7859 # but as the default location of the library.
7860 hardcode_minus_L=yes
7861 export_dynamic_flag_spec='${wl}-E'
7862 ;;
7863
vapier7f19c022007-02-17 14:46:31 +00007864 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007865 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007866 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7867 else
7868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7869 fi
7870 if test "$with_gnu_ld" = no; then
7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007872 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007873 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007874 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007875 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007876 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007877 # hardcode_minus_L: Not really in the search PATH,
7878 # but as the default location of the library.
7879 hardcode_minus_L=yes
7880 fi
7881 ;;
7882
7883 hpux11*)
7884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7885 case $host_cpu in
7886 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007887 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7888 ;;
vapier7f19c022007-02-17 14:46:31 +00007889 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007890 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007891 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007892 *)
7893 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7894 ;;
7895 esac
7896 else
vapier7f19c022007-02-17 14:46:31 +00007897 case $host_cpu in
7898 hppa*64*)
7899 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900 ;;
7901 ia64*)
7902 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007903 ;;
7904 *)
vapier7f19c022007-02-17 14:46:31 +00007905 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 +00007906 ;;
7907 esac
7908 fi
7909 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7911 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007912
vapier7f19c022007-02-17 14:46:31 +00007913 case $host_cpu in
7914 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007915 hardcode_direct=no
7916 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007917 ;;
7918 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007919 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007920 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007921 export_dynamic_flag_spec='${wl}-E'
7922
7923 # hardcode_minus_L: Not really in the search PATH,
7924 # but as the default location of the library.
7925 hardcode_minus_L=yes
7926 ;;
7927 esac
7928 fi
7929 ;;
7930
7931 irix5* | irix6* | nonstopux*)
7932 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007933 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'
7934 # Try to use the -exported_symbol ld option, if it does not
7935 # work, assume that -exports_file does not work either and
7936 # implicitly export all symbols.
7937 save_LDFLAGS="$LDFLAGS"
7938 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007941int foo(void) {}
7942_ACEOF
drhf922ca42015-05-14 15:39:18 +00007943if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007944 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'
7945
mlcreech636a9952008-05-05 22:52:56 +00007946fi
drhf922ca42015-05-14 15:39:18 +00007947rm -f core conftest.err conftest.$ac_objext \
7948 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007949 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007950 else
mlcreech636a9952008-05-05 22:52:56 +00007951 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'
7952 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 +00007953 fi
mlcreech636a9952008-05-05 22:52:56 +00007954 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7956 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007957 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007958 link_all_deplibs=yes
7959 ;;
7960
vapier7f19c022007-02-17 14:46:31 +00007961 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7964 else
7965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7966 fi
7967 hardcode_libdir_flag_spec='-R$libdir'
7968 hardcode_direct=yes
7969 hardcode_shlibpath_var=no
7970 ;;
7971
7972 newsos6)
7973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7974 hardcode_direct=yes
7975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976 hardcode_libdir_separator=:
7977 hardcode_shlibpath_var=no
7978 ;;
7979
mlcreech636a9952008-05-05 22:52:56 +00007980 *nto* | *qnx*)
7981 ;;
7982
a.rottmann9bc8b932004-02-29 15:18:31 +00007983 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007984 if test -f /usr/libexec/ld.so; then
7985 hardcode_direct=yes
7986 hardcode_shlibpath_var=no
7987 hardcode_direct_absolute=yes
7988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7990 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7992 export_dynamic_flag_spec='${wl}-E'
7993 else
7994 case $host_os in
7995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7997 hardcode_libdir_flag_spec='-R$libdir'
7998 ;;
7999 *)
8000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8002 ;;
8003 esac
8004 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008005 else
mlcreech636a9952008-05-05 22:52:56 +00008006 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008007 fi
8008 ;;
8009
8010 os2*)
8011 hardcode_libdir_flag_spec='-L$libdir'
8012 hardcode_minus_L=yes
8013 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008014 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'
8015 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008016 ;;
8017
8018 osf3*)
8019 if test "$GCC" = yes; then
8020 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008021 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 +00008022 else
8023 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008024 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 +00008025 fi
mlcreech636a9952008-05-05 22:52:56 +00008026 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8028 hardcode_libdir_separator=:
8029 ;;
8030
8031 osf4* | osf5*) # as osf3* with the addition of -msym flag
8032 if test "$GCC" = yes; then
8033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008034 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 +00008035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8036 else
8037 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008038 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'
8039 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~
8040 $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 +00008041
8042 # Both c and cxx compiler support -rpath directly
8043 hardcode_libdir_flag_spec='-rpath $libdir'
8044 fi
mlcreech636a9952008-05-05 22:52:56 +00008045 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008046 hardcode_libdir_separator=:
8047 ;;
8048
a.rottmann9bc8b932004-02-29 15:18:31 +00008049 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008050 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008051 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008052 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008053 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8055 $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 +00008056 else
mlcreech636a9952008-05-05 22:52:56 +00008057 case `$CC -V 2>&1` in
8058 *"Compilers 5.0"*)
8059 wlarc=''
8060 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8063 ;;
8064 *)
8065 wlarc='${wl}'
8066 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8068 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8069 ;;
8070 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008071 fi
8072 hardcode_libdir_flag_spec='-R$libdir'
8073 hardcode_shlibpath_var=no
8074 case $host_os in
8075 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008076 *)
mlcreech636a9952008-05-05 22:52:56 +00008077 # The compiler driver will combine and reorder linker options,
8078 # but understands `-z linker_flag'. GCC discards it without `$wl',
8079 # but is careful enough not to reorder.
8080 # Supported since Solaris 2.6 (maybe 2.5.1?)
8081 if test "$GCC" = yes; then
8082 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8083 else
8084 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8085 fi
8086 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008087 esac
8088 link_all_deplibs=yes
8089 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008090
a.rottmann9bc8b932004-02-29 15:18:31 +00008091 sunos4*)
8092 if test "x$host_vendor" = xsequent; then
8093 # Use $CC to link under sequent, because it throws in some extra .o
8094 # files that make .init and .fini sections work.
8095 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8096 else
8097 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8098 fi
8099 hardcode_libdir_flag_spec='-L$libdir'
8100 hardcode_direct=yes
8101 hardcode_minus_L=yes
8102 hardcode_shlibpath_var=no
8103 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008104
a.rottmann9bc8b932004-02-29 15:18:31 +00008105 sysv4)
8106 case $host_vendor in
8107 sni)
8108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8109 hardcode_direct=yes # is this really true???
8110 ;;
8111 siemens)
8112 ## LD is ld it makes a PLAMLIB
8113 ## CC just makes a GrossModule.
8114 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8115 reload_cmds='$CC -r -o $output$reload_objs'
8116 hardcode_direct=no
8117 ;;
8118 motorola)
8119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8121 ;;
8122 esac
8123 runpath_var='LD_RUN_PATH'
8124 hardcode_shlibpath_var=no
8125 ;;
8126
8127 sysv4.3*)
8128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129 hardcode_shlibpath_var=no
8130 export_dynamic_flag_spec='-Bexport'
8131 ;;
8132
8133 sysv4*MP*)
8134 if test -d /usr/nec; then
8135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136 hardcode_shlibpath_var=no
8137 runpath_var=LD_RUN_PATH
8138 hardcode_runpath_var=yes
8139 ld_shlibs=yes
8140 fi
8141 ;;
8142
mlcreech636a9952008-05-05 22:52:56 +00008143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008144 no_undefined_flag='${wl}-z,text'
8145 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008146 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008147 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008148
a.rottmann9bc8b932004-02-29 15:18:31 +00008149 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008150 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8151 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 +00008152 else
vapier7f19c022007-02-17 14:46:31 +00008153 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154 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 +00008155 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008156 ;;
8157
vapier7f19c022007-02-17 14:46:31 +00008158 sysv5* | sco3.2v5* | sco5v6*)
8159 # Note: We can NOT use -z defs as we might desire, because we do not
8160 # link with -lc, and that would cause any symbols used from libc to
8161 # always be unresolved, which means just about no library would
8162 # ever link correctly. If we're not using GNU ld we use -z text
8163 # though, which does catch some bad symbols but isn't as heavy-handed
8164 # as -z defs.
8165 no_undefined_flag='${wl}-z,text'
8166 allow_undefined_flag='${wl}-z,nodefs'
8167 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008168 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008169 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008170 hardcode_libdir_separator=':'
8171 link_all_deplibs=yes
8172 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008173 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008174
8175 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008178 else
mlcreech636a9952008-05-05 22:52:56 +00008179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008181 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008182 ;;
8183
8184 uts4*)
8185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186 hardcode_libdir_flag_spec='-L$libdir'
8187 hardcode_shlibpath_var=no
8188 ;;
8189
8190 *)
8191 ld_shlibs=no
8192 ;;
8193 esac
mlcreech636a9952008-05-05 22:52:56 +00008194
8195 if test x$host_vendor = xsni; then
8196 case $host in
8197 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8198 export_dynamic_flag_spec='${wl}-Blargedynsym'
8199 ;;
8200 esac
8201 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008202 fi
8203
drhf922ca42015-05-14 15:39:18 +00008204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008205$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008206test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008207
mlcreech636a9952008-05-05 22:52:56 +00008208with_gnu_ld=$with_gnu_ld
8209
8210
danielk197733a14782008-08-04 14:50:05 +00008211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
a.rottmann9bc8b932004-02-29 15:18:31 +00008224#
8225# Do we need to explicitly link libc?
8226#
8227case "x$archive_cmds_need_lc" in
8228x|xyes)
8229 # Assume -lc should be added
8230 archive_cmds_need_lc=yes
8231
8232 if test "$enable_shared" = yes && test "$GCC" = yes; then
8233 case $archive_cmds in
8234 *'~'*)
8235 # FIXME: we may have to deal with multi-command sequences.
8236 ;;
8237 '$CC '*)
8238 # Test whether the compiler implicitly links with -lc since on some
8239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8240 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008242$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008243 $RM conftest*
8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008245
drhf922ca42015-05-14 15:39:18 +00008246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008247 (eval $ac_compile) 2>&5
8248 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008251 soname=conftest
8252 lib=conftest
8253 libobjs=conftest.$ac_objext
8254 deplibs=
8255 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008256 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008257 compiler_flags=-v
8258 linker_flags=-v
8259 verstring=
8260 output_objdir=.
8261 libname=conftest
8262 lt_save_allow_undefined_flag=$allow_undefined_flag
8263 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008264 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 +00008265 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008266 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8268 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 then
8270 archive_cmds_need_lc=no
8271 else
8272 archive_cmds_need_lc=yes
8273 fi
8274 allow_undefined_flag=$lt_save_allow_undefined_flag
8275 else
8276 cat conftest.err 1>&5
8277 fi
mlcreech636a9952008-05-05 22:52:56 +00008278 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008280$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008281 ;;
8282 esac
drh71eb93e2001-09-28 01:34:43 +00008283 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008284 ;;
8285esac
drh71eb93e2001-09-28 01:34:43 +00008286
mlcreech636a9952008-05-05 22:52:56 +00008287
danielk197733a14782008-08-04 14:50:05 +00008288
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
8434
8435
8436
8437
8438
8439
8440
8441
8442
drhf922ca42015-05-14 15:39:18 +00008443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008444$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008445
8446if test "$GCC" = yes; then
8447 case $host_os in
8448 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8449 *) lt_awk_arg="/^libraries:/" ;;
8450 esac
8451 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8452 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8453 # if the path contains ";" then we assume it to be the separator
8454 # otherwise default to the standard path separator (i.e. ":") - it is
8455 # assumed that no part of a normal pathname contains ";" but that should
8456 # okay in the real world where ";" in dirpaths is itself problematic.
8457 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8458 else
8459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8460 fi
8461 # Ok, now we have the path, separated by spaces, we can step through it
8462 # and add multilib dir if necessary.
8463 lt_tmp_lt_search_path_spec=
8464 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8465 for lt_sys_path in $lt_search_path_spec; do
8466 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8468 else
8469 test -d "$lt_sys_path" && \
8470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8471 fi
8472 done
8473 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8474BEGIN {RS=" "; FS="/|\n";} {
8475 lt_foo="";
8476 lt_count=0;
8477 for (lt_i = NF; lt_i > 0; lt_i--) {
8478 if ($lt_i != "" && $lt_i != ".") {
8479 if ($lt_i == "..") {
8480 lt_count++;
8481 } else {
8482 if (lt_count == 0) {
8483 lt_foo="/" $lt_i lt_foo;
8484 } else {
8485 lt_count--;
8486 }
8487 }
8488 }
8489 }
8490 if (lt_foo != "") { lt_freq[lt_foo]++; }
8491 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8492}'`
8493 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8494else
8495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8496fi
drh71eb93e2001-09-28 01:34:43 +00008497library_names_spec=
8498libname_spec='lib$name'
8499soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008500shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008501postinstall_cmds=
8502postuninstall_cmds=
8503finish_cmds=
8504finish_eval=
8505shlibpath_var=
8506shlibpath_overrides_runpath=unknown
8507version_type=none
8508dynamic_linker="$host_os ld.so"
8509sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008510need_lib_prefix=unknown
8511hardcode_into_libs=no
8512
8513# when you set need_version to no, make sure it does not cause -set_version
8514# flags to be left without arguments
8515need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008516
8517case $host_os in
8518aix3*)
8519 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008521 shlibpath_var=LIBPATH
8522
a.rottmann9bc8b932004-02-29 15:18:31 +00008523 # AIX 3 has no versioning support, so we append a major version to the name.
8524 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008525 ;;
8526
mlcreech636a9952008-05-05 22:52:56 +00008527aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008528 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008529 need_lib_prefix=no
8530 need_version=no
8531 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008532 if test "$host_cpu" = ia64; then
8533 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008535 shlibpath_var=LD_LIBRARY_PATH
8536 else
8537 # With GCC up to 2.95.x, collect2 would create an import file
8538 # for dependence libraries. The import file would start with
8539 # the line `#! .'. This would cause the generated library to
8540 # depend on `.', always an invalid library. This was fixed in
8541 # development snapshots of GCC prior to 3.0.
8542 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008543 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008544 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8545 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008546 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008547 :
8548 else
8549 can_build_shared=no
8550 fi
8551 ;;
drh71eb93e2001-09-28 01:34:43 +00008552 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008553 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8554 # soname into executable. Probably we can add versioning support to
8555 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008556 if test "$aix_use_runtimelinking" = yes; then
8557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8558 # instead of lib<name>.a to let people know that these are not
8559 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008561 else
8562 # We preserve .a as extension for shared libraries through AIX4.2
8563 # and later when we are not doing run time linking.
8564 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008565 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008566 fi
8567 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008568 fi
8569 ;;
8570
8571amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008572 case $host_cpu in
8573 powerpc)
8574 # Since July 2007 AmigaOS4 officially supports .so libraries.
8575 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8577 ;;
8578 m68k)
8579 library_names_spec='$libname.ixlibrary $libname.a'
8580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581 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'
8582 ;;
8583 esac
drh71eb93e2001-09-28 01:34:43 +00008584 ;;
8585
8586beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008587 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008588 dynamic_linker="$host_os ld.so"
8589 shlibpath_var=LIBRARY_PATH
8590 ;;
8591
vapier7f19c022007-02-17 14:46:31 +00008592bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008593 version_type=linux
8594 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8596 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8598 shlibpath_var=LD_LIBRARY_PATH
8599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8601 # the default ld.so.conf also contains /usr/contrib/lib and
8602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8603 # libtool to hard-code these into programs
8604 ;;
8605
vapier6acb2cf2009-01-28 04:46:28 +00008606cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008607 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008608 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008609 need_version=no
8610 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008611
drh71eb93e2001-09-28 01:34:43 +00008612 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008613 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008614 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8616 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008618 dldir=$destdir/`dirname \$dlpath`~
8619 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008620 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008621 chmod a+x \$dldir/$dlname~
8622 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8623 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8624 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008625 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008626 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008627 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008628 shlibpath_overrides_runpath=yes
8629
8630 case $host_os in
8631 cygwin*)
8632 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8633 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8635 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008636 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008637 # MinGW DLLs use traditional 'lib' prefix
8638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008639 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8640 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008641 # It is most probably a Windows format PATH printed by
8642 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8643 # path with ; separators, and with drive letters. We can handle the
8644 # drive letters (cygwin fileutils understands them), so leave them,
8645 # especially as we might pass files found there to a mingw objdump,
8646 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008648 else
mlcreech636a9952008-05-05 22:52:56 +00008649 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008650 fi
8651 ;;
8652 pw32*)
8653 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008654 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 +00008655 ;;
8656 esac
drh71eb93e2001-09-28 01:34:43 +00008657 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008658
drh71eb93e2001-09-28 01:34:43 +00008659 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008661 ;;
8662 esac
8663 dynamic_linker='Win32 ld.exe'
8664 # FIXME: first we should search . and the directory the executable is in
8665 shlibpath_var=PATH
8666 ;;
8667
8668darwin* | rhapsody*)
8669 dynamic_linker="$host_os dyld"
8670 version_type=darwin
8671 need_lib_prefix=no
8672 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008673 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008674 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008675 shlibpath_overrides_runpath=yes
8676 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008678
8679 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8681 ;;
8682
8683dgux*)
8684 version_type=linux
8685 need_lib_prefix=no
8686 need_version=no
8687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8688 soname_spec='${libname}${release}${shared_ext}$major'
8689 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008690 ;;
8691
a.rottmann84e63352003-03-24 09:42:16 +00008692freebsd1*)
8693 dynamic_linker=no
8694 ;;
8695
vapier7f19c022007-02-17 14:46:31 +00008696freebsd* | dragonfly*)
8697 # DragonFly does not have aout. When/if they implement a new
8698 # versioning mechanism, adjust this.
8699 if test -x /usr/bin/objformat; then
8700 objformat=`/usr/bin/objformat`
8701 else
8702 case $host_os in
8703 freebsd[123]*) objformat=aout ;;
8704 *) objformat=elf ;;
8705 esac
8706 fi
8707 # Handle Gentoo/FreeBSD as it was Linux
8708 case $host_vendor in
8709 gentoo)
8710 version_type=linux ;;
8711 *)
8712 version_type=freebsd-$objformat ;;
8713 esac
8714
drh71eb93e2001-09-28 01:34:43 +00008715 case $version_type in
8716 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008718 need_version=no
8719 need_lib_prefix=no
8720 ;;
8721 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008723 need_version=yes
8724 ;;
vapier7f19c022007-02-17 14:46:31 +00008725 linux)
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8727 soname_spec='${libname}${release}${shared_ext}$major'
8728 need_lib_prefix=no
8729 need_version=no
8730 ;;
drh71eb93e2001-09-28 01:34:43 +00008731 esac
8732 shlibpath_var=LD_LIBRARY_PATH
8733 case $host_os in
8734 freebsd2*)
8735 shlibpath_overrides_runpath=yes
8736 ;;
vapier7f19c022007-02-17 14:46:31 +00008737 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008738 shlibpath_overrides_runpath=yes
8739 hardcode_into_libs=yes
8740 ;;
vapier7f19c022007-02-17 14:46:31 +00008741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008743 shlibpath_overrides_runpath=no
8744 hardcode_into_libs=yes
8745 ;;
mlcreech636a9952008-05-05 22:52:56 +00008746 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008747 shlibpath_overrides_runpath=yes
8748 hardcode_into_libs=yes
8749 ;;
drh71eb93e2001-09-28 01:34:43 +00008750 esac
8751 ;;
8752
8753gnu*)
8754 version_type=linux
8755 need_lib_prefix=no
8756 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8758 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008759 shlibpath_var=LD_LIBRARY_PATH
8760 hardcode_into_libs=yes
8761 ;;
8762
8763hpux9* | hpux10* | hpux11*)
8764 # Give a soname corresponding to the major version so that dld.sl refuses to
8765 # link against other versions.
8766 version_type=sunos
8767 need_lib_prefix=no
8768 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008769 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008770 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008771 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008772 hardcode_into_libs=yes
8773 dynamic_linker="$host_os dld.so"
8774 shlibpath_var=LD_LIBRARY_PATH
8775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 soname_spec='${libname}${release}${shared_ext}$major'
8778 if test "X$HPUX_IA64_MODE" = X32; then
8779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8780 else
8781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8782 fi
8783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8784 ;;
mlcreech636a9952008-05-05 22:52:56 +00008785 hppa*64*)
8786 shrext_cmds='.sl'
8787 hardcode_into_libs=yes
8788 dynamic_linker="$host_os dld.sl"
8789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8795 ;;
8796 *)
vapier7f19c022007-02-17 14:46:31 +00008797 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008798 dynamic_linker="$host_os dld.sl"
8799 shlibpath_var=SHLIB_PATH
8800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 ;;
8804 esac
drh71eb93e2001-09-28 01:34:43 +00008805 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8806 postinstall_cmds='chmod 555 $lib'
8807 ;;
8808
mlcreech636a9952008-05-05 22:52:56 +00008809interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008810 version_type=linux
8811 need_lib_prefix=no
8812 need_version=no
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8816 shlibpath_var=LD_LIBRARY_PATH
8817 shlibpath_overrides_runpath=no
8818 hardcode_into_libs=yes
8819 ;;
8820
a.rottmann84e63352003-03-24 09:42:16 +00008821irix5* | irix6* | nonstopux*)
8822 case $host_os in
8823 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008824 *)
8825 if test "$lt_cv_prog_gnu_ld" = yes; then
8826 version_type=linux
8827 else
8828 version_type=irix
8829 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008830 esac
drh71eb93e2001-09-28 01:34:43 +00008831 need_lib_prefix=no
8832 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008833 soname_spec='${libname}${release}${shared_ext}$major'
8834 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 +00008835 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008836 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008837 libsuff= shlibsuff=
8838 ;;
8839 *)
8840 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8842 libsuff= shlibsuff= libmagic=32-bit;;
8843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8844 libsuff=32 shlibsuff=N32 libmagic=N32;;
8845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8846 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008847 *) libsuff= shlibsuff= libmagic=never-match;;
8848 esac
8849 ;;
8850 esac
8851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8852 shlibpath_overrides_runpath=no
8853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008855 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008856 ;;
8857
8858# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008859linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008860 dynamic_linker=no
8861 ;;
8862
8863# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008864linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008865 version_type=linux
8866 need_lib_prefix=no
8867 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8871 shlibpath_var=LD_LIBRARY_PATH
8872 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008873 # Some binutils ld are patched to set DT_RUNPATH
8874 save_LDFLAGS=$LDFLAGS
8875 save_libdir=$libdir
8876 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8877 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008879/* end confdefs.h. */
8880
8881int
8882main ()
8883{
8884
8885 ;
8886 return 0;
8887}
8888_ACEOF
drhf922ca42015-05-14 15:39:18 +00008889if ac_fn_c_try_link "$LINENO"; then :
8890 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008891 shlibpath_overrides_runpath=yes
8892fi
mlcreech636a9952008-05-05 22:52:56 +00008893fi
drhf922ca42015-05-14 15:39:18 +00008894rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008896 LDFLAGS=$save_LDFLAGS
8897 libdir=$save_libdir
8898
drh71eb93e2001-09-28 01:34:43 +00008899 # This implies no fast_install, which is unacceptable.
8900 # Some rework will be needed to allow for fast_install
8901 # before this can be enabled.
8902 hardcode_into_libs=yes
8903
a.rottmann9bc8b932004-02-29 15:18:31 +00008904 # Append ld.so.conf contents to the search path
8905 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008906 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 +00008907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008908 fi
8909
drh71eb93e2001-09-28 01:34:43 +00008910 # We used to test for /lib/ld.so.1 and disable shared libraries on
8911 # powerpc, because MkLinux only supported shared libraries with the
8912 # GNU dynamic linker. Since this was broken with cross compilers,
8913 # most powerpc-linux boxes support dynamic linking these days and
8914 # people can always --disable-shared, the test was removed, and we
8915 # assume the GNU/Linux dynamic linker is in use.
8916 dynamic_linker='GNU/Linux ld.so'
8917 ;;
8918
8919netbsd*)
8920 version_type=sunos
8921 need_lib_prefix=no
8922 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8926 dynamic_linker='NetBSD (a.out) ld.so'
8927 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8929 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008930 dynamic_linker='NetBSD ld.elf_so'
8931 fi
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=yes
8934 hardcode_into_libs=yes
8935 ;;
8936
8937newsos6)
8938 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=yes
8942 ;;
8943
mlcreech636a9952008-05-05 22:52:56 +00008944*nto* | *qnx*)
8945 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008950 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008951 shlibpath_overrides_runpath=no
8952 hardcode_into_libs=yes
8953 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008954 ;;
8955
drh71eb93e2001-09-28 01:34:43 +00008956openbsd*)
8957 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008958 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008959 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8961 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8963 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008964 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8967 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008968 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 +00008969 case $host_os in
8970 openbsd2.[89] | openbsd2.[89].*)
8971 shlibpath_overrides_runpath=no
8972 ;;
8973 *)
8974 shlibpath_overrides_runpath=yes
8975 ;;
8976 esac
a.rottmann84e63352003-03-24 09:42:16 +00008977 else
8978 shlibpath_overrides_runpath=yes
8979 fi
drh71eb93e2001-09-28 01:34:43 +00008980 ;;
8981
8982os2*)
8983 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008984 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008985 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008986 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008987 dynamic_linker='OS/2 ld.exe'
8988 shlibpath_var=LIBPATH
8989 ;;
8990
8991osf3* | osf4* | osf5*)
8992 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008993 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008994 need_version=no
8995 soname_spec='${libname}${release}${shared_ext}$major'
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008997 shlibpath_var=LD_LIBRARY_PATH
8998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9000 ;;
9001
mlcreech636a9952008-05-05 22:52:56 +00009002rdos*)
9003 dynamic_linker=no
9004 ;;
9005
drh71eb93e2001-09-28 01:34:43 +00009006solaris*)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 # ldd complains unless libraries are executable
9016 postinstall_cmds='chmod +x $lib'
9017 ;;
9018
9019sunos4*)
9020 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9023 shlibpath_var=LD_LIBRARY_PATH
9024 shlibpath_overrides_runpath=yes
9025 if test "$with_gnu_ld" = yes; then
9026 need_lib_prefix=no
9027 fi
9028 need_version=yes
9029 ;;
9030
vapier7f19c022007-02-17 14:46:31 +00009031sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009032 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009035 shlibpath_var=LD_LIBRARY_PATH
9036 case $host_vendor in
9037 sni)
9038 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009039 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009040 runpath_var=LD_RUN_PATH
9041 ;;
9042 siemens)
9043 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009044 ;;
9045 motorola)
9046 need_lib_prefix=no
9047 need_version=no
9048 shlibpath_overrides_runpath=no
9049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9050 ;;
9051 esac
9052 ;;
9053
9054sysv4*MP*)
9055 if test -d /usr/nec ;then
9056 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9058 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009059 shlibpath_var=LD_LIBRARY_PATH
9060 fi
9061 ;;
9062
vapier7f19c022007-02-17 14:46:31 +00009063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9064 version_type=freebsd-elf
9065 need_lib_prefix=no
9066 need_version=no
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009070 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009071 hardcode_into_libs=yes
9072 if test "$with_gnu_ld" = yes; then
9073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009074 else
9075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009076 case $host_os in
9077 sco3.2v5*)
9078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9079 ;;
9080 esac
9081 fi
9082 sys_lib_dlsearch_path_spec='/usr/lib'
9083 ;;
9084
mlcreech636a9952008-05-05 22:52:56 +00009085tpf*)
9086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9087 version_type=linux
9088 need_lib_prefix=no
9089 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 ;;
9095
a.rottmann9bc8b932004-02-29 15:18:31 +00009096uts4*)
9097 version_type=linux
9098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 shlibpath_var=LD_LIBRARY_PATH
9101 ;;
9102
drh71eb93e2001-09-28 01:34:43 +00009103*)
9104 dynamic_linker=no
9105 ;;
9106esac
drhf922ca42015-05-14 15:39:18 +00009107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009108$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009109test "$dynamic_linker" = no && can_build_shared=no
9110
vapier7f19c022007-02-17 14:46:31 +00009111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9112if test "$GCC" = yes; then
9113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9114fi
9115
mlcreech636a9952008-05-05 22:52:56 +00009116if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9118fi
9119if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9121fi
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
9200
9201
9202
9203
9204
9205
9206
9207
9208
drhf922ca42015-05-14 15:39:18 +00009209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009210$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009211hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009212if test -n "$hardcode_libdir_flag_spec" ||
9213 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009214 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009215
mlcreech636a9952008-05-05 22:52:56 +00009216 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009217 if test "$hardcode_direct" != no &&
9218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9219 # have to relink, otherwise we might link with an installed library
9220 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009222 test "$hardcode_minus_L" != no; then
9223 # Linking always hardcodes the temporary library directory.
9224 hardcode_action=relink
9225 else
9226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9227 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009228 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009229else
9230 # We cannot hardcode anything, or else we can only hardcode existing
9231 # directories.
9232 hardcode_action=unsupported
9233fi
drhf922ca42015-05-14 15:39:18 +00009234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009235$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009236
mlcreech636a9952008-05-05 22:52:56 +00009237if test "$hardcode_action" = relink ||
9238 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009239 # Fast installation is not supported
9240 enable_fast_install=no
9241elif test "$shlibpath_overrides_runpath" = yes ||
9242 test "$enable_shared" = no; then
9243 # Fast installation is not necessary
9244 enable_fast_install=needless
9245fi
9246
a.rottmann84e63352003-03-24 09:42:16 +00009247
mlcreech636a9952008-05-05 22:52:56 +00009248
9249
9250
9251
9252 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009253 enable_dlopen=unknown
9254 enable_dlopen_self=unknown
9255 enable_dlopen_self_static=unknown
9256else
9257 lt_cv_dlopen=no
9258 lt_cv_dlopen_libs=
9259
9260 case $host_os in
9261 beos*)
9262 lt_cv_dlopen="load_add_on"
9263 lt_cv_dlopen_libs=
9264 lt_cv_dlopen_self=yes
9265 ;;
9266
vapier6acb2cf2009-01-28 04:46:28 +00009267 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009268 lt_cv_dlopen="LoadLibrary"
9269 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009270 ;;
drh71eb93e2001-09-28 01:34:43 +00009271
a.rottmann9bc8b932004-02-29 15:18:31 +00009272 cygwin*)
9273 lt_cv_dlopen="dlopen"
9274 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009275 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009276
9277 darwin*)
9278 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009280$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009281if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009282 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009283else
9284 ac_check_lib_save_LIBS=$LIBS
9285LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009287/* end confdefs.h. */
9288
drh8b727472009-01-19 18:18:40 +00009289/* Override any GCC internal prototype to avoid an error.
9290 Use char because int might match the return type of a GCC
9291 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009292#ifdef __cplusplus
9293extern "C"
9294#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009295char dlopen ();
9296int
9297main ()
9298{
drh8b727472009-01-19 18:18:40 +00009299return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009300 ;
9301 return 0;
9302}
9303_ACEOF
drhf922ca42015-05-14 15:39:18 +00009304if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009305 ac_cv_lib_dl_dlopen=yes
9306else
drhf922ca42015-05-14 15:39:18 +00009307 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009308fi
drhf922ca42015-05-14 15:39:18 +00009309rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009311LIBS=$ac_check_lib_save_LIBS
9312fi
drhf922ca42015-05-14 15:39:18 +00009313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9317else
9318
9319 lt_cv_dlopen="dyld"
9320 lt_cv_dlopen_libs=
9321 lt_cv_dlopen_self=yes
9322
9323fi
9324
mlcreech636a9952008-05-05 22:52:56 +00009325 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009326
drh71eb93e2001-09-28 01:34:43 +00009327 *)
drhf922ca42015-05-14 15:39:18 +00009328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9329if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009330 lt_cv_dlopen="shl_load"
9331else
drhf922ca42015-05-14 15:39:18 +00009332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009333$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009334if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009335 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009336else
9337 ac_check_lib_save_LIBS=$LIBS
9338LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009340/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009341
drh8b727472009-01-19 18:18:40 +00009342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009345#ifdef __cplusplus
9346extern "C"
9347#endif
drh71eb93e2001-09-28 01:34:43 +00009348char shl_load ();
9349int
9350main ()
9351{
drh8b727472009-01-19 18:18:40 +00009352return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009353 ;
9354 return 0;
9355}
9356_ACEOF
drhf922ca42015-05-14 15:39:18 +00009357if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009358 ac_cv_lib_dld_shl_load=yes
9359else
drhf922ca42015-05-14 15:39:18 +00009360 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009361fi
drhf922ca42015-05-14 15:39:18 +00009362rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009364LIBS=$ac_check_lib_save_LIBS
9365fi
drhf922ca42015-05-14 15:39:18 +00009366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009367$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009368if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009370else
drhf922ca42015-05-14 15:39:18 +00009371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9372if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009373 lt_cv_dlopen="dlopen"
9374else
drhf922ca42015-05-14 15:39:18 +00009375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009376$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009377if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009378 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009379else
9380 ac_check_lib_save_LIBS=$LIBS
9381LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009383/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009384
drh8b727472009-01-19 18:18:40 +00009385/* Override any GCC internal prototype to avoid an error.
9386 Use char because int might match the return type of a GCC
9387 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009388#ifdef __cplusplus
9389extern "C"
9390#endif
drh71eb93e2001-09-28 01:34:43 +00009391char dlopen ();
9392int
9393main ()
9394{
drh8b727472009-01-19 18:18:40 +00009395return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009396 ;
9397 return 0;
9398}
9399_ACEOF
drhf922ca42015-05-14 15:39:18 +00009400if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009401 ac_cv_lib_dl_dlopen=yes
9402else
drhf922ca42015-05-14 15:39:18 +00009403 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009404fi
drhf922ca42015-05-14 15:39:18 +00009405rm -f core conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009407LIBS=$ac_check_lib_save_LIBS
9408fi
drhf922ca42015-05-14 15:39:18 +00009409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009410$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009411if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9413else
drhf922ca42015-05-14 15:39:18 +00009414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009415$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009416if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009417 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009418else
9419 ac_check_lib_save_LIBS=$LIBS
9420LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009422/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009423
drh8b727472009-01-19 18:18:40 +00009424/* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009427#ifdef __cplusplus
9428extern "C"
9429#endif
drh71eb93e2001-09-28 01:34:43 +00009430char dlopen ();
9431int
9432main ()
9433{
drh8b727472009-01-19 18:18:40 +00009434return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009435 ;
9436 return 0;
9437}
9438_ACEOF
drhf922ca42015-05-14 15:39:18 +00009439if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009440 ac_cv_lib_svld_dlopen=yes
9441else
drhf922ca42015-05-14 15:39:18 +00009442 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009443fi
drhf922ca42015-05-14 15:39:18 +00009444rm -f core conftest.err conftest.$ac_objext \
9445 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009446LIBS=$ac_check_lib_save_LIBS
9447fi
drhf922ca42015-05-14 15:39:18 +00009448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009449$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009450if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009452else
drhf922ca42015-05-14 15:39:18 +00009453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009454$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009455if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009456 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009457else
9458 ac_check_lib_save_LIBS=$LIBS
9459LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009461/* end confdefs.h. */
9462
drh8b727472009-01-19 18:18:40 +00009463/* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009466#ifdef __cplusplus
9467extern "C"
9468#endif
a.rottmann84e63352003-03-24 09:42:16 +00009469char dld_link ();
9470int
9471main ()
9472{
drh8b727472009-01-19 18:18:40 +00009473return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009474 ;
9475 return 0;
9476}
9477_ACEOF
drhf922ca42015-05-14 15:39:18 +00009478if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009479 ac_cv_lib_dld_dld_link=yes
9480else
drhf922ca42015-05-14 15:39:18 +00009481 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009482fi
drhf922ca42015-05-14 15:39:18 +00009483rm -f core conftest.err conftest.$ac_objext \
9484 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009485LIBS=$ac_check_lib_save_LIBS
9486fi
drhf922ca42015-05-14 15:39:18 +00009487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009488$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009489if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009491fi
9492
drh71eb93e2001-09-28 01:34:43 +00009493
9494fi
9495
drh71eb93e2001-09-28 01:34:43 +00009496
9497fi
9498
a.rottmann84e63352003-03-24 09:42:16 +00009499
9500fi
9501
9502
9503fi
9504
9505
drh71eb93e2001-09-28 01:34:43 +00009506fi
9507
9508 ;;
9509 esac
9510
9511 if test "x$lt_cv_dlopen" != xno; then
9512 enable_dlopen=yes
9513 else
9514 enable_dlopen=no
9515 fi
9516
9517 case $lt_cv_dlopen in
9518 dlopen)
9519 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009521
9522 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009524
9525 save_LIBS="$LIBS"
9526 LIBS="$lt_cv_dlopen_libs $LIBS"
9527
drhf922ca42015-05-14 15:39:18 +00009528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009529$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009530if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009531 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009532else
9533 if test "$cross_compiling" = yes; then :
9534 lt_cv_dlopen_self=cross
9535else
a.rottmann9bc8b932004-02-29 15:18:31 +00009536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009537 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009538 cat > conftest.$ac_ext <<_LT_EOF
drhfdefc362015-10-14 20:03:00 +00009539#line 9539 "configure"
drh71eb93e2001-09-28 01:34:43 +00009540#include "confdefs.h"
9541
9542#if HAVE_DLFCN_H
9543#include <dlfcn.h>
9544#endif
9545
9546#include <stdio.h>
9547
9548#ifdef RTLD_GLOBAL
9549# define LT_DLGLOBAL RTLD_GLOBAL
9550#else
9551# ifdef DL_GLOBAL
9552# define LT_DLGLOBAL DL_GLOBAL
9553# else
9554# define LT_DLGLOBAL 0
9555# endif
9556#endif
9557
9558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9559 find out it does not work in some platform. */
9560#ifndef LT_DLLAZY_OR_NOW
9561# ifdef RTLD_LAZY
9562# define LT_DLLAZY_OR_NOW RTLD_LAZY
9563# else
9564# ifdef DL_LAZY
9565# define LT_DLLAZY_OR_NOW DL_LAZY
9566# else
9567# ifdef RTLD_NOW
9568# define LT_DLLAZY_OR_NOW RTLD_NOW
9569# else
9570# ifdef DL_NOW
9571# define LT_DLLAZY_OR_NOW DL_NOW
9572# else
9573# define LT_DLLAZY_OR_NOW 0
9574# endif
9575# endif
9576# endif
9577# endif
9578#endif
9579
drh71eb93e2001-09-28 01:34:43 +00009580void fnord() { int i=42;}
9581int main ()
9582{
9583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9584 int status = $lt_dlunknown;
9585
9586 if (self)
9587 {
9588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9589 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9590 /* dlclose (self); */
9591 }
vapier7f19c022007-02-17 14:46:31 +00009592 else
9593 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009594
vapier6acb2cf2009-01-28 04:46:28 +00009595 return status;
drh71eb93e2001-09-28 01:34:43 +00009596}
mlcreech636a9952008-05-05 22:52:56 +00009597_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009599 (eval $ac_link) 2>&5
9600 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9602 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009603 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009604 lt_status=$?
9605 case x$lt_status in
9606 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9607 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009608 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009609 esac
9610 else :
9611 # compilation failed
9612 lt_cv_dlopen_self=no
9613 fi
9614fi
9615rm -fr conftest*
9616
a.rottmann84e63352003-03-24 09:42:16 +00009617
drh71eb93e2001-09-28 01:34:43 +00009618fi
drhf922ca42015-05-14 15:39:18 +00009619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009620$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009621
9622 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009625$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009626if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009627 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009628else
9629 if test "$cross_compiling" = yes; then :
9630 lt_cv_dlopen_self_static=cross
9631else
a.rottmann9bc8b932004-02-29 15:18:31 +00009632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009633 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009634 cat > conftest.$ac_ext <<_LT_EOF
drhfdefc362015-10-14 20:03:00 +00009635#line 9635 "configure"
drh71eb93e2001-09-28 01:34:43 +00009636#include "confdefs.h"
9637
9638#if HAVE_DLFCN_H
9639#include <dlfcn.h>
9640#endif
9641
9642#include <stdio.h>
9643
9644#ifdef RTLD_GLOBAL
9645# define LT_DLGLOBAL RTLD_GLOBAL
9646#else
9647# ifdef DL_GLOBAL
9648# define LT_DLGLOBAL DL_GLOBAL
9649# else
9650# define LT_DLGLOBAL 0
9651# endif
9652#endif
9653
9654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9655 find out it does not work in some platform. */
9656#ifndef LT_DLLAZY_OR_NOW
9657# ifdef RTLD_LAZY
9658# define LT_DLLAZY_OR_NOW RTLD_LAZY
9659# else
9660# ifdef DL_LAZY
9661# define LT_DLLAZY_OR_NOW DL_LAZY
9662# else
9663# ifdef RTLD_NOW
9664# define LT_DLLAZY_OR_NOW RTLD_NOW
9665# else
9666# ifdef DL_NOW
9667# define LT_DLLAZY_OR_NOW DL_NOW
9668# else
9669# define LT_DLLAZY_OR_NOW 0
9670# endif
9671# endif
9672# endif
9673# endif
9674#endif
9675
drh71eb93e2001-09-28 01:34:43 +00009676void fnord() { int i=42;}
9677int main ()
9678{
9679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9680 int status = $lt_dlunknown;
9681
9682 if (self)
9683 {
9684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9685 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9686 /* dlclose (self); */
9687 }
vapier7f19c022007-02-17 14:46:31 +00009688 else
9689 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009690
vapier6acb2cf2009-01-28 04:46:28 +00009691 return status;
drh71eb93e2001-09-28 01:34:43 +00009692}
mlcreech636a9952008-05-05 22:52:56 +00009693_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009695 (eval $ac_link) 2>&5
9696 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9698 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009699 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009700 lt_status=$?
9701 case x$lt_status in
9702 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9703 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009704 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009705 esac
9706 else :
9707 # compilation failed
9708 lt_cv_dlopen_self_static=no
9709 fi
9710fi
9711rm -fr conftest*
9712
a.rottmann84e63352003-03-24 09:42:16 +00009713
drh71eb93e2001-09-28 01:34:43 +00009714fi
drhf922ca42015-05-14 15:39:18 +00009715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009716$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009717 fi
9718
9719 CPPFLAGS="$save_CPPFLAGS"
9720 LDFLAGS="$save_LDFLAGS"
9721 LIBS="$save_LIBS"
9722 ;;
9723 esac
9724
9725 case $lt_cv_dlopen_self in
9726 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9727 *) enable_dlopen_self=unknown ;;
9728 esac
9729
9730 case $lt_cv_dlopen_self_static in
9731 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9732 *) enable_dlopen_self_static=unknown ;;
9733 esac
9734fi
9735
drh71eb93e2001-09-28 01:34:43 +00009736
drh71eb93e2001-09-28 01:34:43 +00009737
a.rottmann9bc8b932004-02-29 15:18:31 +00009738
a.rottmann9bc8b932004-02-29 15:18:31 +00009739
mlcreech636a9952008-05-05 22:52:56 +00009740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752striplib=
9753old_striplib=
drhf922ca42015-05-14 15:39:18 +00009754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009755$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009756if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9757 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9758 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
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 +00009761else
9762# FIXME - insert some real tests, host_os isn't really good enough
9763 case $host_os in
9764 darwin*)
9765 if test -n "$STRIP" ; then
9766 striplib="$STRIP -x"
9767 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009769$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009770 else
drhf922ca42015-05-14 15:39:18 +00009771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009772$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009773 fi
a.rottmann84e63352003-03-24 09:42:16 +00009774 ;;
mlcreech636a9952008-05-05 22:52:56 +00009775 *)
drhf922ca42015-05-14 15:39:18 +00009776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009777$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009778 ;;
9779 esac
mlcreech636a9952008-05-05 22:52:56 +00009780fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009781
a.rottmann9bc8b932004-02-29 15:18:31 +00009782
drh71eb93e2001-09-28 01:34:43 +00009783
drh71eb93e2001-09-28 01:34:43 +00009784
a.rottmann84e63352003-03-24 09:42:16 +00009785
drh71eb93e2001-09-28 01:34:43 +00009786
drh71eb93e2001-09-28 01:34:43 +00009787
a.rottmann9bc8b932004-02-29 15:18:31 +00009788
drh71eb93e2001-09-28 01:34:43 +00009789
drh71eb93e2001-09-28 01:34:43 +00009790
drh71eb93e2001-09-28 01:34:43 +00009791
drh71eb93e2001-09-28 01:34:43 +00009792
mlcreech636a9952008-05-05 22:52:56 +00009793 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009795$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009797$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009798
drhf922ca42015-05-14 15:39:18 +00009799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009800$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009801 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009802
mlcreech636a9952008-05-05 22:52:56 +00009803 # On AIX, shared libraries and static libraries use the same namespace, and
9804 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009805 case $host_os in
9806 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009807 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009808 if test -n "$RANLIB"; then
9809 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9810 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009811 fi
9812 ;;
9813
mlcreech636a9952008-05-05 22:52:56 +00009814 aix[4-9]*)
9815 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9816 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009817 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009818 ;;
9819 esac
drhf922ca42015-05-14 15:39:18 +00009820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009821$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009822
drhf922ca42015-05-14 15:39:18 +00009823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009824$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009825 # Make sure either enable_shared or enable_static is yes.
9826 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009828$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009829
a.rottmann9bc8b932004-02-29 15:18:31 +00009830
a.rottmann9bc8b932004-02-29 15:18:31 +00009831
a.rottmann9bc8b932004-02-29 15:18:31 +00009832
vapier7f19c022007-02-17 14:46:31 +00009833fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009834ac_ext=c
9835ac_cpp='$CPP $CPPFLAGS'
9836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9838ac_compiler_gnu=$ac_cv_c_compiler_gnu
9839
9840CC="$lt_save_CC"
9841
a.rottmann9bc8b932004-02-29 15:18:31 +00009842
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
9844
a.rottmann9bc8b932004-02-29 15:18:31 +00009845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
a.rottmann9bc8b932004-02-29 15:18:31 +00009849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
vapier7f19c022007-02-17 14:46:31 +00009851
a.rottmann9bc8b932004-02-29 15:18:31 +00009852
9853
drh8b727472009-01-19 18:18:40 +00009854 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009855
vapier7f19c022007-02-17 14:46:31 +00009856
9857
vapier7f19c022007-02-17 14:46:31 +00009858
mlcreech636a9952008-05-05 22:52:56 +00009859# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
9861
drh71eb93e2001-09-28 01:34:43 +00009862# Find a good install program. We prefer a C program (faster),
9863# so one script is as good as another. But avoid the broken or
9864# incompatible versions:
9865# SysV /etc/install, /usr/sbin/install
9866# SunOS /usr/etc/install
9867# IRIX /sbin/install
9868# AIX /bin/install
9869# AmigaOS /C/install, which installs bootblocks on floppy discs
9870# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9871# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9872# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009873# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009874# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009875# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009877$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009878if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009879if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009880 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009881else
a.rottmann84e63352003-03-24 09:42:16 +00009882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883for as_dir in $PATH
9884do
9885 IFS=$as_save_IFS
9886 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009887 # Account for people who put trailing slashes in PATH elements.
9888case $as_dir/ in #((
9889 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009892 /usr/ucb/* ) ;;
9893 *)
9894 # OSF1 and SCO ODT 3.0 have their own names for install.
9895 # Don't use installbsd from OSF since it installs stuff as root
9896 # by default.
9897 for ac_prog in ginstall scoinst install; do
9898 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009899 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009900 if test $ac_prog = install &&
9901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9902 # AIX install. It has an incompatible calling convention.
9903 :
9904 elif test $ac_prog = install &&
9905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9906 # program-specific install script used by HP pwplus--don't use.
9907 :
9908 else
drh8b727472009-01-19 18:18:40 +00009909 rm -rf conftest.one conftest.two conftest.dir
9910 echo one > conftest.one
9911 echo two > conftest.two
9912 mkdir conftest.dir
9913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9914 test -s conftest.one && test -s conftest.two &&
9915 test -s conftest.dir/conftest.one &&
9916 test -s conftest.dir/conftest.two
9917 then
9918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9919 break 3
9920 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009921 fi
9922 fi
drh71eb93e2001-09-28 01:34:43 +00009923 done
a.rottmann84e63352003-03-24 09:42:16 +00009924 done
9925 ;;
9926esac
a.rottmann84e63352003-03-24 09:42:16 +00009927
drhf922ca42015-05-14 15:39:18 +00009928 done
drh8b727472009-01-19 18:18:40 +00009929IFS=$as_save_IFS
9930
9931rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009932
9933fi
9934 if test "${ac_cv_path_install+set}" = set; then
9935 INSTALL=$ac_cv_path_install
9936 else
drh8b727472009-01-19 18:18:40 +00009937 # As a last resort, use the slow shell script. Don't cache a
9938 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009939 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009940 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009941 INSTALL=$ac_install_sh
9942 fi
9943fi
drhf922ca42015-05-14 15:39:18 +00009944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009945$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009946
9947# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9948# It thinks the first close brace ends the variable substitution.
9949test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9950
9951test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9952
9953test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9954
a.rottmann84e63352003-03-24 09:42:16 +00009955
drh75897232000-05-29 14:26:00 +00009956#########
mlcreech636a9952008-05-05 22:52:56 +00009957# Enable large file support (if special flags are necessary)
9958#
drh8b727472009-01-19 18:18:40 +00009959# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009960if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009961 enableval=$enable_largefile;
9962fi
mlcreech636a9952008-05-05 22:52:56 +00009963
9964if test "$enable_largefile" != no; then
9965
drhf922ca42015-05-14 15:39:18 +00009966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009967$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009968if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009969 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009970else
mlcreech636a9952008-05-05 22:52:56 +00009971 ac_cv_sys_largefile_CC=no
9972 if test "$GCC" != yes; then
9973 ac_save_CC=$CC
9974 while :; do
drh8b727472009-01-19 18:18:40 +00009975 # IRIX 6.2 and later do not support large files by default,
9976 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009978/* end confdefs.h. */
9979#include <sys/types.h>
9980 /* Check that off_t can represent 2**63 - 1 correctly.
9981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9982 since some C++ compilers masquerading as C compilers
9983 incorrectly reject 9223372036854775807. */
9984#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9986 && LARGE_OFF_T % 2147483647 == 1)
9987 ? 1 : -1];
9988int
9989main ()
9990{
9991
9992 ;
9993 return 0;
9994}
9995_ACEOF
drhf922ca42015-05-14 15:39:18 +00009996 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00009997 break
mlcreech636a9952008-05-05 22:52:56 +00009998fi
drh8b727472009-01-19 18:18:40 +00009999rm -f core conftest.err conftest.$ac_objext
10000 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010001 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010002 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010003fi
drh8b727472009-01-19 18:18:40 +000010004rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010005 break
10006 done
10007 CC=$ac_save_CC
10008 rm -f conftest.$ac_ext
10009 fi
10010fi
drhf922ca42015-05-14 15:39:18 +000010011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010012$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010013 if test "$ac_cv_sys_largefile_CC" != no; then
10014 CC=$CC$ac_cv_sys_largefile_CC
10015 fi
10016
drhf922ca42015-05-14 15:39:18 +000010017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010018$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010019if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010020 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010021else
10022 while :; do
drhf922ca42015-05-14 15:39:18 +000010023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010024/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010025#include <sys/types.h>
10026 /* Check that off_t can represent 2**63 - 1 correctly.
10027 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10028 since some C++ compilers masquerading as C compilers
10029 incorrectly reject 9223372036854775807. */
10030#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10031 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10032 && LARGE_OFF_T % 2147483647 == 1)
10033 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010034int
10035main ()
10036{
mlcreech636a9952008-05-05 22:52:56 +000010037
mlcreechb87057f2008-03-06 07:19:20 +000010038 ;
10039 return 0;
10040}
10041_ACEOF
drhf922ca42015-05-14 15:39:18 +000010042if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010043 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010044fi
drh8b727472009-01-19 18:18:40 +000010045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010047/* end confdefs.h. */
10048#define _FILE_OFFSET_BITS 64
10049#include <sys/types.h>
10050 /* Check that off_t can represent 2**63 - 1 correctly.
10051 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10052 since some C++ compilers masquerading as C compilers
10053 incorrectly reject 9223372036854775807. */
10054#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10055 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10056 && LARGE_OFF_T % 2147483647 == 1)
10057 ? 1 : -1];
10058int
10059main ()
10060{
10061
10062 ;
10063 return 0;
10064}
10065_ACEOF
drhf922ca42015-05-14 15:39:18 +000010066if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010067 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010068fi
drh8b727472009-01-19 18:18:40 +000010069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010071 break
10072done
10073fi
drhf922ca42015-05-14 15:39:18 +000010074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010075$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10076case $ac_cv_sys_file_offset_bits in #(
10077 no | unknown) ;;
10078 *)
mlcreech636a9952008-05-05 22:52:56 +000010079cat >>confdefs.h <<_ACEOF
10080#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10081_ACEOF
drh8b727472009-01-19 18:18:40 +000010082;;
10083esac
10084rm -rf conftest*
10085 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010087$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010088if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010089 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010090else
10091 while :; do
drhf922ca42015-05-14 15:39:18 +000010092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010093/* end confdefs.h. */
10094#include <sys/types.h>
10095 /* Check that off_t can represent 2**63 - 1 correctly.
10096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10097 since some C++ compilers masquerading as C compilers
10098 incorrectly reject 9223372036854775807. */
10099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10101 && LARGE_OFF_T % 2147483647 == 1)
10102 ? 1 : -1];
10103int
10104main ()
10105{
10106
10107 ;
10108 return 0;
10109}
10110_ACEOF
drhf922ca42015-05-14 15:39:18 +000010111if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010112 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010113fi
drh8b727472009-01-19 18:18:40 +000010114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010116/* end confdefs.h. */
10117#define _LARGE_FILES 1
10118#include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121 since some C++ compilers masquerading as C compilers
10122 incorrectly reject 9223372036854775807. */
10123#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125 && LARGE_OFF_T % 2147483647 == 1)
10126 ? 1 : -1];
10127int
10128main ()
10129{
10130
10131 ;
10132 return 0;
10133}
10134_ACEOF
drhf922ca42015-05-14 15:39:18 +000010135if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010136 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010137fi
drh8b727472009-01-19 18:18:40 +000010138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010140 break
10141done
10142fi
drhf922ca42015-05-14 15:39:18 +000010143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010144$as_echo "$ac_cv_sys_large_files" >&6; }
10145case $ac_cv_sys_large_files in #(
10146 no | unknown) ;;
10147 *)
mlcreech636a9952008-05-05 22:52:56 +000010148cat >>confdefs.h <<_ACEOF
10149#define _LARGE_FILES $ac_cv_sys_large_files
10150_ACEOF
drh8b727472009-01-19 18:18:40 +000010151;;
10152esac
10153rm -rf conftest*
10154 fi
drhf922ca42015-05-14 15:39:18 +000010155
10156
mlcreech636a9952008-05-05 22:52:56 +000010157fi
10158
10159
10160#########
10161# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010162ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10163if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010164
10165cat >>confdefs.h <<_ACEOF
10166#define HAVE_INT8_T 1
10167_ACEOF
10168
10169
10170fi
drhf922ca42015-05-14 15:39:18 +000010171ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10172if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010173
10174cat >>confdefs.h <<_ACEOF
10175#define HAVE_INT16_T 1
10176_ACEOF
10177
10178
10179fi
drhf922ca42015-05-14 15:39:18 +000010180ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT32_T 1
10185_ACEOF
10186
10187
10188fi
drhf922ca42015-05-14 15:39:18 +000010189ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT64_T 1
10194_ACEOF
10195
10196
10197fi
drhf922ca42015-05-14 15:39:18 +000010198ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10199if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INTPTR_T 1
10203_ACEOF
10204
10205
10206fi
drhf922ca42015-05-14 15:39:18 +000010207ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10208if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_UINT8_T 1
10212_ACEOF
10213
10214
10215fi
drhf922ca42015-05-14 15:39:18 +000010216ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10217if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_UINT16_T 1
10221_ACEOF
10222
10223
10224fi
drhf922ca42015-05-14 15:39:18 +000010225ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT32_T 1
10230_ACEOF
10231
10232
10233fi
drhf922ca42015-05-14 15:39:18 +000010234ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT64_T 1
10239_ACEOF
10240
10241
10242fi
drhf922ca42015-05-14 15:39:18 +000010243ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINTPTR_T 1
10248_ACEOF
10249
10250
10251fi
mlcreechb87057f2008-03-06 07:19:20 +000010252
10253
10254#########
10255# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010256for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010257do :
10258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10259ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10260if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010261 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010262#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010263_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010264
mlcreechb87057f2008-03-06 07:19:20 +000010265fi
10266
10267done
10268
10269
10270#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010271# Figure out whether or not we have these functions
10272#
drh39311122015-01-15 17:38:35 +000010273for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drhf922ca42015-05-14 15:39:18 +000010274do :
10275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010278 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010280_ACEOF
10281
10282fi
10283done
10284
10285
mlcreechab1c47b2008-03-09 02:51:10 +000010286#########
mlcreechf3868112008-03-11 18:03:30 +000010287# By default, we use the amalgamation (this may be changed below...)
10288#
10289USE_AMALGAMATION=1
10290
10291#########
mlcreechab1c47b2008-03-09 02:51:10 +000010292# See whether we can run specific tclsh versions known to work well;
10293# if not, then we fall back to plain tclsh.
10294# TODO: try other versions before falling back?
10295#
mistachkinfe27b082013-08-28 18:06:26 +000010296for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010297do
10298 # Extract the first word of "$ac_prog", so it can be a program name with args.
10299set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010301$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010302if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010303 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010304else
10305 if test -n "$TCLSH_CMD"; then
10306 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10307else
10308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10309for as_dir in $PATH
10310do
10311 IFS=$as_save_IFS
10312 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010313 for ac_exec_ext in '' $ac_executable_extensions; do
10314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010315 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010317 break 2
10318 fi
10319done
drhf922ca42015-05-14 15:39:18 +000010320 done
drh8b727472009-01-19 18:18:40 +000010321IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010322
10323fi
10324fi
10325TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10326if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010328$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010329else
drhf922ca42015-05-14 15:39:18 +000010330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010331$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010332fi
10333
drh8b727472009-01-19 18:18:40 +000010334
mlcreechab1c47b2008-03-09 02:51:10 +000010335 test -n "$TCLSH_CMD" && break
10336done
mlcreechf3868112008-03-11 18:03:30 +000010337test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010338
mlcreechf3868112008-03-11 18:03:30 +000010339if test "$TCLSH_CMD" = "none"; then
10340 # If we can't find a local tclsh, then building the amalgamation will fail.
10341 # We act as though --disable-amalgamation has been used.
10342 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10343 USE_AMALGAMATION=0
10344 TCLSH_CMD="tclsh"
10345fi
mlcreechab1c47b2008-03-09 02:51:10 +000010346
10347
mlcreech5b0a9eb2008-03-09 01:38:09 +000010348
vapier6acb2cf2009-01-28 04:46:28 +000010349if test "x${TCLLIBDIR+set}" != "xset" ; then
10350 TCLLIBDIR='$(libdir)'
10351 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10352 TCLLIBDIR=$i
10353 break
10354 done
10355 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10356fi
10357
10358
mlcreech5b0a9eb2008-03-09 01:38:09 +000010359#########
drh75897232000-05-29 14:26:00 +000010360# Set up an appropriate program prefix
10361#
10362if test "$program_prefix" = "NONE"; then
10363 program_prefix=""
10364fi
10365
a.rottmann84e63352003-03-24 09:42:16 +000010366
drh4b2266a2004-11-27 15:52:16 +000010367VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010368{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010369$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010370
10371RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010372{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010373$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010374
vapier6acb2cf2009-01-28 04:46:28 +000010375VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010376 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010377 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010378{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010379$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010380
drh26d0e2a2005-07-06 13:51:27 +000010381
drh75897232000-05-29 14:26:00 +000010382#########
drh75897232000-05-29 14:26:00 +000010383# Locate a compiler for the build machine. This compiler should
10384# generate command-line programs that run on the build machine.
10385#
vapier7f19c022007-02-17 14:46:31 +000010386if test x"$cross_compiling" = xno; then
10387 BUILD_CC=$CC
10388 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010389else
vapier7f19c022007-02-17 14:46:31 +000010390 if test "${BUILD_CC+set}" != set; then
10391 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010392do
10393 # Extract the first word of "$ac_prog", so it can be a program name with args.
10394set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010396$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010397if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010398 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010399else
vapier7f19c022007-02-17 14:46:31 +000010400 if test -n "$BUILD_CC"; then
10401 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010402else
a.rottmann84e63352003-03-24 09:42:16 +000010403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010410 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010412 break 2
10413 fi
10414done
drhf922ca42015-05-14 15:39:18 +000010415 done
drh8b727472009-01-19 18:18:40 +000010416IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010417
drh71eb93e2001-09-28 01:34:43 +000010418fi
10419fi
vapier7f19c022007-02-17 14:46:31 +000010420BUILD_CC=$ac_cv_prog_BUILD_CC
10421if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010423$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010424else
drhf922ca42015-05-14 15:39:18 +000010425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010426$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010427fi
drh75897232000-05-29 14:26:00 +000010428
drh8b727472009-01-19 18:18:40 +000010429
vapier7f19c022007-02-17 14:46:31 +000010430 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010431done
drh75897232000-05-29 14:26:00 +000010432
vapier7f19c022007-02-17 14:46:31 +000010433 fi
10434 if test "${BUILD_CFLAGS+set}" != set; then
10435 BUILD_CFLAGS="-g"
10436 fi
drh71eb93e2001-09-28 01:34:43 +000010437fi
10438
a.rottmann84e63352003-03-24 09:42:16 +000010439
drh297ecf12001-04-05 15:57:13 +000010440##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010441# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010442#
drh8b727472009-01-19 18:18:40 +000010443# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010444if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010445 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010446else
drh5a3032b2007-09-03 16:12:09 +000010447 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010448fi
10449
drhf922ca42015-05-14 15:39:18 +000010450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010451$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010452if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010453 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010455$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010456else
drh5a3032b2007-09-03 16:12:09 +000010457 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010459$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010460fi
10461
a.rottmann964dbb12004-02-26 19:47:42 +000010462
drh5a3032b2007-09-03 16:12:09 +000010463if test "$SQLITE_THREADSAFE" = "1"; then
drhf922ca42015-05-14 15:39:18 +000010464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010465$as_echo_n "checking for library containing pthread_create... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010466if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010467 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010468else
mlcreechc658b0f2008-03-09 02:20:11 +000010469 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010471/* end confdefs.h. */
10472
drh8b727472009-01-19 18:18:40 +000010473/* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010476#ifdef __cplusplus
10477extern "C"
10478#endif
dougcurrie65623c72004-09-20 14:57:23 +000010479char pthread_create ();
10480int
10481main ()
10482{
drh8b727472009-01-19 18:18:40 +000010483return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000010484 ;
10485 return 0;
10486}
10487_ACEOF
drh8b727472009-01-19 18:18:40 +000010488for ac_lib in '' pthread; do
10489 if test -z "$ac_lib"; then
10490 ac_res="none required"
10491 else
10492 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010494 fi
drhf922ca42015-05-14 15:39:18 +000010495 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010496 ac_cv_search_pthread_create=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010497fi
drhf922ca42015-05-14 15:39:18 +000010498rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext
10500 if ${ac_cv_search_pthread_create+:} false; then :
drh8b727472009-01-19 18:18:40 +000010501 break
drh866108f2008-05-13 00:57:21 +000010502fi
drh8b727472009-01-19 18:18:40 +000010503done
drhf922ca42015-05-14 15:39:18 +000010504if ${ac_cv_search_pthread_create+:} false; then :
10505
drh8b727472009-01-19 18:18:40 +000010506else
10507 ac_cv_search_pthread_create=no
10508fi
10509rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010510LIBS=$ac_func_search_save_LIBS
10511fi
drhf922ca42015-05-14 15:39:18 +000010512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000010513$as_echo "$ac_cv_search_pthread_create" >&6; }
10514ac_res=$ac_cv_search_pthread_create
drhf922ca42015-05-14 15:39:18 +000010515if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010517
dougcurrie65623c72004-09-20 14:57:23 +000010518fi
10519
mlcreechc658b0f2008-03-09 02:20:11 +000010520fi
dougcurrie65623c72004-09-20 14:57:23 +000010521
xdong28f79f72003-09-23 00:35:21 +000010522##########
10523# Do we want to support release
10524#
drh8b727472009-01-19 18:18:40 +000010525# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010526if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010527 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010528else
10529 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010530fi
10531
drhf922ca42015-05-14 15:39:18 +000010532{ $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 +000010533$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010534if test "$enable_releasemode" = "no"; then
10535 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010537$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010538else
drh0b47d342007-11-27 14:50:06 +000010539 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010541$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010542fi
paulb0208cc2003-04-13 18:26:49 +000010543
a.rottmann964dbb12004-02-26 19:47:42 +000010544
paulb0208cc2003-04-13 18:26:49 +000010545##########
10546# Do we want temporary databases in memory
10547#
drh8b727472009-01-19 18:18:40 +000010548# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010549if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010550 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010551else
drh54414bb2005-10-10 00:05:50 +000010552 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010553fi
10554
drhf922ca42015-05-14 15:39:18 +000010555{ $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 +000010556$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010557case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010558 never )
paul2dc96f92003-04-20 11:46:34 +000010559 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010561$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010562 ;;
10563 no )
paul2dc96f92003-04-20 11:46:34 +000010564 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010566$as_echo "no" >&6; }
10567 ;;
10568 yes )
10569 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010571$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010572 ;;
10573 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010574 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010576$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010577 ;;
paulb0208cc2003-04-13 18:26:49 +000010578 * )
drh54414bb2005-10-10 00:05:50 +000010579 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010581$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010582 ;;
10583esac
10584
10585
10586
drh75897232000-05-29 14:26:00 +000010587###########
10588# Lots of things are different if we are compiling for Windows using
10589# the CYGWIN environment. So check for that special case and handle
10590# things accordingly.
10591#
drhf922ca42015-05-14 15:39:18 +000010592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010593$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010594if test "$config_BUILD_EXEEXT" = ".exe"; then
10595 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010597$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010598else
drhf922ca42015-05-14 15:39:18 +000010599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010600$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010601fi
10602if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010603
10604case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010605 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010606 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010607esac
drh75897232000-05-29 14:26:00 +000010608
drh75897232000-05-29 14:26:00 +000010609fi
10610if test "$CYGWIN" = "yes"; then
10611 BUILD_EXEEXT=.exe
10612else
dougcurrie6194a5f2003-12-19 20:09:51 +000010613 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010614fi
vapier7f19c022007-02-17 14:46:31 +000010615if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010616 TARGET_EXEEXT=$BUILD_EXEEXT
10617else
10618 TARGET_EXEEXT=$config_TARGET_EXEEXT
10619fi
10620if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010621 SQLITE_OS_UNIX=0
10622 SQLITE_OS_WIN=1
10623 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010624else
danielk197729bafea2008-06-26 10:41:19 +000010625 SQLITE_OS_UNIX=1
10626 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010627 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010628fi
drh75897232000-05-29 14:26:00 +000010629
a.rottmann84e63352003-03-24 09:42:16 +000010630
10631
10632
10633
10634
drh75897232000-05-29 14:26:00 +000010635##########
drh7b5717e2004-11-25 13:50:01 +000010636# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010637#
drh7b5717e2004-11-25 13:50:01 +000010638# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10639# macros in the in the tcl.m4 file of the standard TCL distribution.
10640# Those macros could not be used directly since we have to make some
10641# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010642#
drh8b727472009-01-19 18:18:40 +000010643# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010644if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010645 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010646else
drh7b5717e2004-11-25 13:50:01 +000010647 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010648fi
10649
drh7b5717e2004-11-25 13:50:01 +000010650if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010651
drh8b727472009-01-19 18:18:40 +000010652# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010653if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010654 withval=$with_tcl; with_tclconfig=${withval}
10655fi
10656
drhf922ca42015-05-14 15:39:18 +000010657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010658$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010659 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010660 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010661else
a.rottmann84e63352003-03-24 09:42:16 +000010662
drh7b5717e2004-11-25 13:50:01 +000010663 # First check to see if --with-tcl was specified.
10664 if test x"${with_tclconfig}" != x ; then
10665 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10666 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10667 else
drhf922ca42015-05-14 15:39:18 +000010668 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010669 fi
10670 fi
vapier6acb2cf2009-01-28 04:46:28 +000010671
10672 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010673 if test x"${ac_cv_c_tclconfig}" = x ; then
10674 if test x"$cross_compiling" = xno; then
10675 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10676 do
10677 if test -f "$i/tclConfig.sh" ; then
10678 ac_cv_c_tclconfig="$i"
10679 break
10680 fi
10681 done
10682 fi
vapier6acb2cf2009-01-28 04:46:28 +000010683 fi
10684
drhf960a642015-05-30 22:57:49 +000010685 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10686 # So try again after applying corrections.
10687 if test x"${ac_cv_c_tclconfig}" = x ; then
10688 if test x"$cross_compiling" = xno; then
10689 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10690 do
10691 if test -f "$i/tclConfig.sh" ; then
10692 ac_cv_c_tclconfig="$i"
10693 break
10694 fi
10695 done
10696 fi
10697 fi
10698
drh7b5717e2004-11-25 13:50:01 +000010699 # then check for a private Tcl installation
10700 if test x"${ac_cv_c_tclconfig}" = x ; then
10701 for i in \
10702 ../tcl \
10703 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10704 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10705 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10706 ../../tcl \
10707 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10708 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10709 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10710 ../../../tcl \
10711 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10712 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10713 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10714 do
10715 if test -f "$i/unix/tclConfig.sh" ; then
10716 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10717 break
10718 fi
10719 done
10720 fi
10721
10722 # check in a few common install locations
10723 if test x"${ac_cv_c_tclconfig}" = x ; then
10724 for i in \
10725 `ls -d ${libdir} 2>/dev/null` \
10726 `ls -d /usr/local/lib 2>/dev/null` \
10727 `ls -d /usr/contrib/lib 2>/dev/null` \
10728 `ls -d /usr/lib 2>/dev/null`
10729 do
10730 if test -f "$i/tclConfig.sh" ; then
10731 ac_cv_c_tclconfig=`(cd $i; pwd)`
10732 break
10733 fi
10734 done
10735 fi
10736
10737 # check in a few other private locations
10738 if test x"${ac_cv_c_tclconfig}" = x ; then
10739 for i in \
10740 ${srcdir}/../tcl \
10741 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10742 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10743 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10744 do
10745 if test -f "$i/unix/tclConfig.sh" ; then
10746 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10747 break
10748 fi
10749 done
10750 fi
10751
drh75897232000-05-29 14:26:00 +000010752fi
10753
drh7b5717e2004-11-25 13:50:01 +000010754
10755 if test x"${ac_cv_c_tclconfig}" = x ; then
10756 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010758$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010760$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010762$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010763 else
10764 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010766$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010767
drhf922ca42015-05-14 15:39:18 +000010768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010769$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010770 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010772$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010773 . $TCL_BIN_DIR/tclConfig.sh
10774 else
drhf922ca42015-05-14 15:39:18 +000010775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010776$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010777 fi
drh7b5717e2004-11-25 13:50:01 +000010778
10779 #
10780 # If the TCL_BIN_DIR is the build directory (not the install directory),
10781 # then set the common variable name to the value of the build variables.
10782 # For example, the variable TCL_LIB_SPEC will be set to the value
10783 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10784 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10785 # installed and uninstalled version of Tcl.
10786 #
10787
mlcreechab1c47b2008-03-09 02:51:10 +000010788 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010789 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10790 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10791 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10792 fi
10793
10794 #
10795 # eval is required to do the TCL_DBGX substitution
10796 #
10797
10798 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10799 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10800 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10801
10802 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10803 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10804 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
drhd881ce82015-03-31 17:01:52 +000010818
drh7b5717e2004-11-25 13:50:01 +000010819 fi
drh75897232000-05-29 14:26:00 +000010820fi
drh7b5717e2004-11-25 13:50:01 +000010821if test "${use_tcl}" = "no" ; then
10822 HAVE_TCL=""
10823else
10824 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010825fi
drh75897232000-05-29 14:26:00 +000010826
a.rottmann84e63352003-03-24 09:42:16 +000010827
drh75897232000-05-29 14:26:00 +000010828##########
10829# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010830# that use "readline()" library.
10831#
vapier7f19c022007-02-17 14:46:31 +000010832TARGET_READLINE_LIBS=""
10833TARGET_READLINE_INC=""
10834TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000010835# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010836if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010837 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010838else
vapier7f19c022007-02-17 14:46:31 +000010839 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010840fi
10841
vapier7f19c022007-02-17 14:46:31 +000010842
10843if test x"$with_readline" != xno; then
10844 found="yes"
10845
10846
drh8b727472009-01-19 18:18:40 +000010847# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010848if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010849 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010850else
10851 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000010852fi
10853
vapier7f19c022007-02-17 14:46:31 +000010854 if test "x$with_readline_lib" = xauto; then
10855 save_LIBS="$LIBS"
10856 LIBS=""
drhf922ca42015-05-14 15:39:18 +000010857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010858$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010859if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010860 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000010861else
drh71eb93e2001-09-28 01:34:43 +000010862 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010864/* end confdefs.h. */
10865
drh8b727472009-01-19 18:18:40 +000010866/* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000010869#ifdef __cplusplus
10870extern "C"
10871#endif
paul38372372003-04-22 08:04:49 +000010872char tgetent ();
10873int
10874main ()
10875{
drh8b727472009-01-19 18:18:40 +000010876return tgetent ();
paul38372372003-04-22 08:04:49 +000010877 ;
10878 return 0;
10879}
10880_ACEOF
drh8b727472009-01-19 18:18:40 +000010881for ac_lib in '' readline ncurses curses termcap; do
10882 if test -z "$ac_lib"; then
10883 ac_res="none required"
10884 else
10885 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010886 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010887 fi
drhf922ca42015-05-14 15:39:18 +000010888 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010889 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000010890fi
drhf922ca42015-05-14 15:39:18 +000010891rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext
10893 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000010894 break
drh866108f2008-05-13 00:57:21 +000010895fi
drh8b727472009-01-19 18:18:40 +000010896done
drhf922ca42015-05-14 15:39:18 +000010897if ${ac_cv_search_tgetent+:} false; then :
10898
drh8b727472009-01-19 18:18:40 +000010899else
10900 ac_cv_search_tgetent=no
10901fi
10902rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010903LIBS=$ac_func_search_save_LIBS
10904fi
drhf922ca42015-05-14 15:39:18 +000010905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000010906$as_echo "$ac_cv_search_tgetent" >&6; }
10907ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000010908if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000010910 term_LIBS="$LIBS"
10911else
10912 term_LIBS=""
paul38372372003-04-22 08:04:49 +000010913fi
10914
drhf922ca42015-05-14 15:39:18 +000010915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000010916$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010917if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000010918 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000010919else
10920 ac_check_lib_save_LIBS=$LIBS
10921LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000010922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010923/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000010924
drh8b727472009-01-19 18:18:40 +000010925/* Override any GCC internal prototype to avoid an error.
10926 Use char because int might match the return type of a GCC
10927 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000010928#ifdef __cplusplus
10929extern "C"
10930#endif
drh71eb93e2001-09-28 01:34:43 +000010931char readline ();
10932int
10933main ()
10934{
drh8b727472009-01-19 18:18:40 +000010935return readline ();
drh71eb93e2001-09-28 01:34:43 +000010936 ;
10937 return 0;
10938}
10939_ACEOF
drhf922ca42015-05-14 15:39:18 +000010940if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000010941 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000010942else
drhf922ca42015-05-14 15:39:18 +000010943 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000010944fi
drhf922ca42015-05-14 15:39:18 +000010945rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000010947LIBS=$ac_check_lib_save_LIBS
10948fi
drhf922ca42015-05-14 15:39:18 +000010949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000010950$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000010951if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000010952 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000010953else
vapier7f19c022007-02-17 14:46:31 +000010954 found="no"
10955fi
drhf1878b42006-01-23 18:06:52 +000010956
vapier7f19c022007-02-17 14:46:31 +000010957 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
10958 LIBS="$save_LIBS"
10959 else
10960 TARGET_READLINE_LIBS="$with_readline_lib"
10961 fi
10962
10963
drh8b727472009-01-19 18:18:40 +000010964# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000010965if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010966 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000010967else
vapier7f19c022007-02-17 14:46:31 +000010968 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000010969fi
10970
vapier7f19c022007-02-17 14:46:31 +000010971 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000010972 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10973if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000010974 found="yes"
10975else
drh75897232000-05-29 14:26:00 +000010976
vapier7f19c022007-02-17 14:46:31 +000010977 found="no"
10978 if test "$cross_compiling" != yes; then
10979 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
10980 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000010981 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000010982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000010983$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010984if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000010985 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000010986else
10987 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000010988 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000010989if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000010990 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000010991else
drh71eb93e2001-09-28 01:34:43 +000010992 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000010993fi
10994fi
drhf922ca42015-05-14 15:39:18 +000010995eval ac_res=\$$as_ac_File
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000010997$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000010998if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000010999 found=yes
drh75897232000-05-29 14:26:00 +000011000fi
11001
vapier7f19c022007-02-17 14:46:31 +000011002 if test "$found" = "yes"; then
11003 TARGET_READLINE_INC="-I$dir/$subdir"
11004 break
11005 fi
11006 done
11007 test "$found" = "yes" && break
11008 done
11009 fi
11010
11011fi
11012
11013
11014 else
11015 TARGET_READLINE_INC="$with_readline_inc"
11016 fi
11017
11018 if test x"$found" = xno; then
11019 TARGET_READLINE_LIBS=""
11020 TARGET_READLINE_INC=""
11021 TARGET_HAVE_READLINE=0
11022 else
11023 TARGET_HAVE_READLINE=1
11024 fi
11025fi
11026
11027
11028
11029
11030
11031##########
11032# Figure out what C libraries are required to compile programs
11033# that use "fdatasync()" function.
11034#
drhf922ca42015-05-14 15:39:18 +000011035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011036$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011037if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011038 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011039else
vapier7f19c022007-02-17 14:46:31 +000011040 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011042/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011043
drh8b727472009-01-19 18:18:40 +000011044/* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011047#ifdef __cplusplus
11048extern "C"
11049#endif
11050char fdatasync ();
11051int
11052main ()
11053{
drh8b727472009-01-19 18:18:40 +000011054return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011055 ;
11056 return 0;
11057}
11058_ACEOF
drh8b727472009-01-19 18:18:40 +000011059for ac_lib in '' rt; do
11060 if test -z "$ac_lib"; then
11061 ac_res="none required"
11062 else
11063 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011065 fi
drhf922ca42015-05-14 15:39:18 +000011066 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011067 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011068fi
drhf922ca42015-05-14 15:39:18 +000011069rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext
11071 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011072 break
drh866108f2008-05-13 00:57:21 +000011073fi
drh8b727472009-01-19 18:18:40 +000011074done
drhf922ca42015-05-14 15:39:18 +000011075if ${ac_cv_search_fdatasync+:} false; then :
11076
drh8b727472009-01-19 18:18:40 +000011077else
11078 ac_cv_search_fdatasync=no
11079fi
11080rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011081LIBS=$ac_func_search_save_LIBS
11082fi
drhf922ca42015-05-14 15:39:18 +000011083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011084$as_echo "$ac_cv_search_fdatasync" >&6; }
11085ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011086if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011088
vapier7f19c022007-02-17 14:46:31 +000011089fi
11090
a.rottmann84e63352003-03-24 09:42:16 +000011091
drh75897232000-05-29 14:26:00 +000011092#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011093# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011094# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011095if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011096 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011097else
11098 use_debug=no
drh8b727472009-01-19 18:18:40 +000011099fi
11100
tpoindex9d9f76c2005-01-03 21:28:56 +000011101if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011102 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011103else
11104 TARGET_DEBUG="-DNDEBUG"
11105fi
11106
11107
11108#########
mlcreech94984912008-03-04 19:03:08 +000011109# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011110# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011111if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011112 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011113else
11114 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011115fi
11116
mlcreechf3868112008-03-11 18:03:30 +000011117if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011118 USE_AMALGAMATION=0
11119fi
11120
11121
11122#########
mlcreecha4edab02008-03-06 04:14:17 +000011123# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011124# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011125if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011126 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011127else
drh05c7e0b2015-01-10 14:27:17 +000011128 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011129fi
11130
mlcreecha4edab02008-03-06 04:14:17 +000011131if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011132 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011134$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011135if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011136 $as_echo_n "(cached) " >&6
11137else
11138 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011140/* end confdefs.h. */
11141
11142/* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11145#ifdef __cplusplus
11146extern "C"
11147#endif
11148char dlopen ();
11149int
11150main ()
11151{
11152return dlopen ();
11153 ;
11154 return 0;
11155}
11156_ACEOF
11157for ac_lib in '' dl; do
11158 if test -z "$ac_lib"; then
11159 ac_res="none required"
11160 else
11161 ac_res=-l$ac_lib
11162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11163 fi
drhf922ca42015-05-14 15:39:18 +000011164 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011165 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011166fi
drhf922ca42015-05-14 15:39:18 +000011167rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext
11169 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011170 break
11171fi
11172done
drhf922ca42015-05-14 15:39:18 +000011173if ${ac_cv_search_dlopen+:} false; then :
11174
drhdbe4b882011-06-20 18:00:17 +000011175else
11176 ac_cv_search_dlopen=no
11177fi
11178rm conftest.$ac_ext
11179LIBS=$ac_func_search_save_LIBS
11180fi
drhf922ca42015-05-14 15:39:18 +000011181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011182$as_echo "$ac_cv_search_dlopen" >&6; }
11183ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011184if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11186
11187fi
11188
mlcreecha4edab02008-03-06 04:14:17 +000011189else
shanefbedede2008-07-22 05:05:01 +000011190 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011191fi
11192
mlcreechaac7b932008-04-01 02:45:22 +000011193#########
drhce1d9f52015-10-09 12:48:33 +000011194# See whether we should enable Full Text Search extensions
11195# Check whether --enable-fts3 was given.
11196if test "${enable_fts3+set}" = set; then :
11197 enableval=$enable_fts3; enable_fts3=yes
11198else
11199 enable_fts3=no
11200fi
11201
11202if test "${enable_fts3}" = "yes" ; then
11203 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11204fi
11205# Check whether --enable-fts4 was given.
11206if test "${enable_fts4+set}" = set; then :
11207 enableval=$enable_fts4; enable_fts4=yes
11208else
11209 enable_fts4=no
11210fi
11211
11212if test "${enable_fts4}" = "yes" ; then
11213 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11215$as_echo_n "checking for library containing log... " >&6; }
11216if ${ac_cv_search_log+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218else
11219 ac_func_search_save_LIBS=$LIBS
11220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221/* end confdefs.h. */
11222
11223/* Override any GCC internal prototype to avoid an error.
11224 Use char because int might match the return type of a GCC
11225 builtin and then its argument prototype would still apply. */
11226#ifdef __cplusplus
11227extern "C"
11228#endif
11229char log ();
11230int
11231main ()
11232{
11233return log ();
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238for ac_lib in '' m; do
11239 if test -z "$ac_lib"; then
11240 ac_res="none required"
11241 else
11242 ac_res=-l$ac_lib
11243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11244 fi
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 ac_cv_search_log=$ac_res
11247fi
11248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext
11250 if ${ac_cv_search_log+:} false; then :
11251 break
11252fi
11253done
11254if ${ac_cv_search_log+:} false; then :
11255
11256else
11257 ac_cv_search_log=no
11258fi
11259rm conftest.$ac_ext
11260LIBS=$ac_func_search_save_LIBS
11261fi
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11263$as_echo "$ac_cv_search_log" >&6; }
11264ac_res=$ac_cv_search_log
11265if test "$ac_res" != no; then :
11266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11267
11268fi
11269
11270fi
11271# Check whether --enable-fts5 was given.
11272if test "${enable_fts5+set}" = set; then :
11273 enableval=$enable_fts5; enable_fts5=yes
11274else
11275 enable_fts5=no
11276fi
11277
11278if test "${enable_fts5}" = "yes" ; then
11279 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11281$as_echo_n "checking for library containing log... " >&6; }
11282if ${ac_cv_search_log+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284else
11285 ac_func_search_save_LIBS=$LIBS
11286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287/* end confdefs.h. */
11288
11289/* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292#ifdef __cplusplus
11293extern "C"
11294#endif
11295char log ();
11296int
11297main ()
11298{
11299return log ();
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304for ac_lib in '' m; do
11305 if test -z "$ac_lib"; then
11306 ac_res="none required"
11307 else
11308 ac_res=-l$ac_lib
11309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11310 fi
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_search_log=$ac_res
11313fi
11314rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext
11316 if ${ac_cv_search_log+:} false; then :
11317 break
11318fi
11319done
11320if ${ac_cv_search_log+:} false; then :
11321
11322else
11323 ac_cv_search_log=no
11324fi
11325rm conftest.$ac_ext
11326LIBS=$ac_func_search_save_LIBS
11327fi
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11329$as_echo "$ac_cv_search_log" >&6; }
11330ac_res=$ac_cv_search_log
11331if test "$ac_res" != no; then :
11332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11333
11334fi
11335
11336fi
11337
11338#########
11339# See whether we should enable JSON1
11340# Check whether --enable-json1 was given.
11341if test "${enable_json1+set}" = set; then :
11342 enableval=$enable_json1; enable_json1=yes
11343else
11344 enable_json1=no
11345fi
11346
11347if test "${enable_json1}" = "yes" ; then
11348 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11349fi
11350
11351#########
11352# See whether we should enable RTREE
11353# Check whether --enable-rtree was given.
11354if test "${enable_rtree+set}" = set; then :
11355 enableval=$enable_rtree; enable_rtree=yes
11356else
11357 enable_rtree=no
11358fi
11359
11360if test "${enable_rtree}" = "yes" ; then
11361 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11362fi
11363
11364#########
shaneb1cd7302008-10-22 18:27:31 +000011365# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011366for option in $CFLAGS $CPPFLAGS
11367do
11368 case $option in
danielk197733a14782008-08-04 14:50:05 +000011369 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011370 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011371 esac
11372done
11373
11374
danielk197733a14782008-08-04 14:50:05 +000011375
shaneb1cd7302008-10-22 18:27:31 +000011376# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011377ac_temp_CFLAGS=""
11378for option in $CFLAGS
11379do
11380 case $option in
11381 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011382 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011383 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011384 esac
11385done
11386CFLAGS=$ac_temp_CFLAGS
11387
11388
shaneb1cd7302008-10-22 18:27:31 +000011389# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011390ac_temp_CPPFLAGS=""
11391for option in $CPPFLAGS
11392do
11393 case $option in
11394 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011395 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011396 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011397 esac
11398done
11399CPPFLAGS=$ac_temp_CPPFLAGS
11400
danielk197733a14782008-08-04 14:50:05 +000011401
drh8b727472009-01-19 18:18:40 +000011402# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011403ac_temp_BUILD_CFLAGS=""
11404for option in $BUILD_CFLAGS
11405do
11406 case $option in
11407 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011408 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011409 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011410 esac
11411done
11412BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11413
11414
11415#########
11416# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011417# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011418if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011419 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011420else
11421 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011422fi
11423
mlcreechaac7b932008-04-01 02:45:22 +000011424if test "${use_gcov}" = "yes" ; then
11425 USE_GCOV=1
11426else
11427 USE_GCOV=0
11428fi
11429
11430
danielk197733a14782008-08-04 14:50:05 +000011431
drh2dfbbca2000-07-28 14:32:48 +000011432#########
mlcreechb87057f2008-03-06 07:19:20 +000011433# Output the config header
drh8b727472009-01-19 18:18:40 +000011434ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011435
11436
11437#########
drh75897232000-05-29 14:26:00 +000011438# Generate the output files.
11439#
mlcreechdf59c7c2008-03-06 07:51:15 +000011440
drh8b727472009-01-19 18:18:40 +000011441ac_config_files="$ac_config_files Makefile sqlite3.pc"
11442
drh71eb93e2001-09-28 01:34:43 +000011443cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011444# This file is a shell script that caches the results of configure
11445# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011446# scripts and configure runs, see configure's option --config-cache.
11447# It is not useful on other systems. If it contains results you don't
11448# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011449#
drh71eb93e2001-09-28 01:34:43 +000011450# config.status only pays attention to the cache file if you give it
11451# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011452#
a.rottmann84e63352003-03-24 09:42:16 +000011453# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011454# loading this file, other *unset* `ac_cv_foo' will be assigned the
11455# following values.
11456
11457_ACEOF
11458
drh75897232000-05-29 14:26:00 +000011459# The following way of writing the cache mishandles newlines in values,
11460# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011461# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011462# Ultrix sh set writes to stderr and can't be redirected directly,
11463# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011464(
11465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11466 eval ac_val=\$$ac_var
11467 case $ac_val in #(
11468 *${as_nl}*)
11469 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011472 esac
11473 case $ac_var in #(
11474 _ | IFS | as_nl) ;; #(
11475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011476 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011477 esac ;;
11478 esac
11479 done
11480
drh71eb93e2001-09-28 01:34:43 +000011481 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11483 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011484 # `set' does not quote correctly, so add quotes: double-quote
11485 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011486 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011487 "s/'/'\\\\''/g;
11488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011489 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011490 *)
11491 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011493 ;;
drh8b727472009-01-19 18:18:40 +000011494 esac |
11495 sort
11496) |
drh71eb93e2001-09-28 01:34:43 +000011497 sed '
drh8b727472009-01-19 18:18:40 +000011498 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011499 t clear
drh8b727472009-01-19 18:18:40 +000011500 :clear
drh71eb93e2001-09-28 01:34:43 +000011501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11502 t end
drh8b727472009-01-19 18:18:40 +000011503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11504 :end' >>confcache
11505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11506 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011507 if test "x$cache_file" != "x/dev/null"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011509$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011510 if test ! -f "$cache_file" || test -h "$cache_file"; then
11511 cat confcache >"$cache_file"
11512 else
11513 case $cache_file in #(
11514 */* | ?:*)
11515 mv -f confcache "$cache_file"$$ &&
11516 mv -f "$cache_file"$$ "$cache_file" ;; #(
11517 *)
11518 mv -f confcache "$cache_file" ;;
11519 esac
11520 fi
11521 fi
drh75897232000-05-29 14:26:00 +000011522 else
drhf922ca42015-05-14 15:39:18 +000011523 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011524$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011525 fi
11526fi
11527rm -f confcache
11528
drh75897232000-05-29 14:26:00 +000011529test "x$prefix" = xNONE && prefix=$ac_default_prefix
11530# Let make expand exec_prefix.
11531test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11532
mlcreechb87057f2008-03-06 07:19:20 +000011533DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011534
11535ac_libobjs=
11536ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011537U=
a.rottmann84e63352003-03-24 09:42:16 +000011538for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11541 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11543 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011544 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11545 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011546done
11547LIBOBJS=$ac_libobjs
11548
11549LTLIBOBJS=$ac_ltlibobjs
11550
11551
11552
drhf922ca42015-05-14 15:39:18 +000011553: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011554ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011555ac_clean_files_save=$ac_clean_files
11556ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011557{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011558$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011559as_write_fail=0
11560cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011561#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011562# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011563# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011564# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011565# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011566
drh71eb93e2001-09-28 01:34:43 +000011567debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011568ac_cs_recheck=false
11569ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011570
drhf922ca42015-05-14 15:39:18 +000011571SHELL=\${CONFIG_SHELL-$SHELL}
11572export SHELL
11573_ASEOF
11574cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11575## -------------------- ##
11576## M4sh Initialization. ##
11577## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011578
drh8b727472009-01-19 18:18:40 +000011579# Be more Bourne compatible
11580DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011581if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011582 emulate sh
11583 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011584 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011585 # is contrary to our usage. Disable this feature.
11586 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011587 setopt NO_GLOB_SUBST
11588else
drhf922ca42015-05-14 15:39:18 +000011589 case `(set -o) 2>/dev/null` in #(
11590 *posix*) :
11591 set -o posix ;; #(
11592 *) :
11593 ;;
drh8b727472009-01-19 18:18:40 +000011594esac
a.rottmann84e63352003-03-24 09:42:16 +000011595fi
drh8b727472009-01-19 18:18:40 +000011596
11597
drh8b727472009-01-19 18:18:40 +000011598as_nl='
11599'
11600export as_nl
11601# Printing a long string crashes Solaris 7 /usr/bin/printf.
11602as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11604as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011605# Prefer a ksh shell builtin over an external printf program on Solaris,
11606# but without wasting forks for bash or zsh.
11607if test -z "$BASH_VERSION$ZSH_VERSION" \
11608 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11609 as_echo='print -r --'
11610 as_echo_n='print -rn --'
11611elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011612 as_echo='printf %s\n'
11613 as_echo_n='printf %s'
11614else
11615 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11616 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11617 as_echo_n='/usr/ucb/echo -n'
11618 else
11619 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11620 as_echo_n_body='eval
11621 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011622 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011623 *"$as_nl"*)
11624 expr "X$arg" : "X\\(.*\\)$as_nl";
11625 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11626 esac;
11627 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11628 '
11629 export as_echo_n_body
11630 as_echo_n='sh -c $as_echo_n_body as_echo'
11631 fi
11632 export as_echo_body
11633 as_echo='sh -c $as_echo_body as_echo'
11634fi
11635
11636# The user is always right.
11637if test "${PATH_SEPARATOR+set}" != set; then
11638 PATH_SEPARATOR=:
11639 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11640 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11641 PATH_SEPARATOR=';'
11642 }
11643fi
a.rottmann84e63352003-03-24 09:42:16 +000011644
mlcreech94984912008-03-04 19:03:08 +000011645
drh8b727472009-01-19 18:18:40 +000011646# IFS
11647# We need space, tab and new line, in precisely that order. Quoting is
11648# there to prevent editors from complaining about space-tab.
11649# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11650# splitting by setting IFS to empty value.)
11651IFS=" "" $as_nl"
11652
11653# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011654as_myself=
11655case $0 in #((
drh8b727472009-01-19 18:18:40 +000011656 *[\\/]* ) as_myself=$0 ;;
11657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660 IFS=$as_save_IFS
11661 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11663 done
drh8b727472009-01-19 18:18:40 +000011664IFS=$as_save_IFS
11665
11666 ;;
11667esac
11668# We did not find ourselves, most probably we were run as `sh COMMAND'
11669# in which case we are not to be found in the path.
11670if test "x$as_myself" = x; then
11671 as_myself=$0
11672fi
11673if test ! -f "$as_myself"; then
11674 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011675 exit 1
drh8b727472009-01-19 18:18:40 +000011676fi
11677
drhf922ca42015-05-14 15:39:18 +000011678# Unset variables that we do not need and which cause bugs (e.g. in
11679# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11680# suppresses any "Segmentation fault" message there. '((' could
11681# trigger a bug in pdksh 5.2.14.
11682for as_var in BASH_ENV ENV MAIL MAILPATH
11683do eval test x\${$as_var+set} = xset \
11684 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011685done
mlcreech94984912008-03-04 19:03:08 +000011686PS1='$ '
11687PS2='> '
11688PS4='+ '
11689
11690# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011691LC_ALL=C
11692export LC_ALL
11693LANGUAGE=C
11694export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011695
drhf922ca42015-05-14 15:39:18 +000011696# CDPATH.
11697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11698
11699
11700# as_fn_error STATUS ERROR [LINENO LOG_FD]
11701# ----------------------------------------
11702# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11703# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11704# script with STATUS, using 1 if that was 0.
11705as_fn_error ()
11706{
11707 as_status=$1; test $as_status -eq 0 && as_status=1
11708 if test "$4"; then
11709 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11710 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11711 fi
11712 $as_echo "$as_me: error: $2" >&2
11713 as_fn_exit $as_status
11714} # as_fn_error
11715
11716
11717# as_fn_set_status STATUS
11718# -----------------------
11719# Set $? to STATUS, without forking.
11720as_fn_set_status ()
11721{
11722 return $1
11723} # as_fn_set_status
11724
11725# as_fn_exit STATUS
11726# -----------------
11727# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11728as_fn_exit ()
11729{
11730 set +e
11731 as_fn_set_status $1
11732 exit $1
11733} # as_fn_exit
11734
11735# as_fn_unset VAR
11736# ---------------
11737# Portably unset VAR.
11738as_fn_unset ()
11739{
11740 { eval $1=; unset $1;}
11741}
11742as_unset=as_fn_unset
11743# as_fn_append VAR VALUE
11744# ----------------------
11745# Append the text in VALUE to the end of the definition contained in VAR. Take
11746# advantage of any shell optimizations that allow amortized linear growth over
11747# repeated appends, instead of the typical quadratic growth present in naive
11748# implementations.
11749if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11750 eval 'as_fn_append ()
11751 {
11752 eval $1+=\$2
11753 }'
11754else
11755 as_fn_append ()
11756 {
11757 eval $1=\$$1\$2
11758 }
11759fi # as_fn_append
11760
11761# as_fn_arith ARG...
11762# ------------------
11763# Perform arithmetic evaluation on the ARGs, and store the result in the
11764# global $as_val. Take advantage of shells that can avoid forks. The arguments
11765# must be portable across $(()) and expr.
11766if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11767 eval 'as_fn_arith ()
11768 {
11769 as_val=$(( $* ))
11770 }'
11771else
11772 as_fn_arith ()
11773 {
11774 as_val=`expr "$@" || test $? -eq 1`
11775 }
11776fi # as_fn_arith
11777
11778
drh8b727472009-01-19 18:18:40 +000011779if expr a : '\(a\)' >/dev/null 2>&1 &&
11780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011781 as_expr=expr
11782else
11783 as_expr=false
11784fi
11785
drh8b727472009-01-19 18:18:40 +000011786if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011787 as_basename=basename
11788else
11789 as_basename=false
11790fi
11791
drhf922ca42015-05-14 15:39:18 +000011792if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11793 as_dirname=dirname
11794else
11795 as_dirname=false
11796fi
mlcreech94984912008-03-04 19:03:08 +000011797
drh8b727472009-01-19 18:18:40 +000011798as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011799$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11800 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011801 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11802$as_echo X/"$0" |
11803 sed '/^.*\/\([^/][^/]*\)\/*$/{
11804 s//\1/
11805 q
11806 }
11807 /^X\/\(\/\/\)$/{
11808 s//\1/
11809 q
11810 }
11811 /^X\/\(\/\).*/{
11812 s//\1/
11813 q
11814 }
11815 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011816
drhf922ca42015-05-14 15:39:18 +000011817# Avoid depending upon Character Ranges.
11818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11821as_cr_digits='0123456789'
11822as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011823
drh8b727472009-01-19 18:18:40 +000011824ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011825case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011826-n*)
drhf922ca42015-05-14 15:39:18 +000011827 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011829 xy) ECHO_C='\c';;
11830 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11831 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011832 esac;;
11833*)
11834 ECHO_N='-n';;
11835esac
drh71eb93e2001-09-28 01:34:43 +000011836
11837rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000011838if test -d conf$$.dir; then
11839 rm -f conf$$.dir/conf$$.file
11840else
11841 rm -f conf$$.dir
11842 mkdir conf$$.dir 2>/dev/null
11843fi
11844if (echo >conf$$.file) 2>/dev/null; then
11845 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000011846 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000011847 # ... but there are two gotchas:
11848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000011850 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000011851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000011852 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000011853 elif ln conf$$.file conf$$ 2>/dev/null; then
11854 as_ln_s=ln
11855 else
drhf922ca42015-05-14 15:39:18 +000011856 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000011857 fi
drh71eb93e2001-09-28 01:34:43 +000011858else
drhf922ca42015-05-14 15:39:18 +000011859 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000011860fi
drh8b727472009-01-19 18:18:40 +000011861rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11862rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000011863
drhf922ca42015-05-14 15:39:18 +000011864
11865# as_fn_mkdir_p
11866# -------------
11867# Create "$as_dir" as a directory, including parents if necessary.
11868as_fn_mkdir_p ()
11869{
11870
11871 case $as_dir in #(
11872 -*) as_dir=./$as_dir;;
11873 esac
11874 test -d "$as_dir" || eval $as_mkdir_p || {
11875 as_dirs=
11876 while :; do
11877 case $as_dir in #(
11878 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11879 *) as_qdir=$as_dir;;
11880 esac
11881 as_dirs="'$as_qdir' $as_dirs"
11882 as_dir=`$as_dirname -- "$as_dir" ||
11883$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884 X"$as_dir" : 'X\(//\)[^/]' \| \
11885 X"$as_dir" : 'X\(//\)$' \| \
11886 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11887$as_echo X"$as_dir" |
11888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11889 s//\1/
11890 q
11891 }
11892 /^X\(\/\/\)[^/].*/{
11893 s//\1/
11894 q
11895 }
11896 /^X\(\/\/\)$/{
11897 s//\1/
11898 q
11899 }
11900 /^X\(\/\).*/{
11901 s//\1/
11902 q
11903 }
11904 s/.*/./; q'`
11905 test -d "$as_dir" && break
11906 done
11907 test -z "$as_dirs" || eval "mkdir $as_dirs"
11908 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11909
11910
11911} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000011912if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000011913 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000011914else
a.rottmann964dbb12004-02-26 19:47:42 +000011915 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000011916 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000011917fi
11918
drhf922ca42015-05-14 15:39:18 +000011919
11920# as_fn_executable_p FILE
11921# -----------------------
11922# Test if FILE is an executable regular file.
11923as_fn_executable_p ()
11924{
11925 test -f "$1" && test -x "$1"
11926} # as_fn_executable_p
11927as_test_x='test -x'
11928as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000011929
11930# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000011931as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011932
11933# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000011934as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000011935
drh71eb93e2001-09-28 01:34:43 +000011936
drh71eb93e2001-09-28 01:34:43 +000011937exec 6>&1
drhf922ca42015-05-14 15:39:18 +000011938## ----------------------------------- ##
11939## Main body of $CONFIG_STATUS script. ##
11940## ----------------------------------- ##
11941_ASEOF
11942test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011943
drhf922ca42015-05-14 15:39:18 +000011944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11945# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000011946# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000011947# values after options handling.
11948ac_log="
drhc4e6d172015-10-09 13:42:52 +000011949This file was extended by sqlite $as_me 3.9.0, which was
drhf922ca42015-05-14 15:39:18 +000011950generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000011951
11952 CONFIG_FILES = $CONFIG_FILES
11953 CONFIG_HEADERS = $CONFIG_HEADERS
11954 CONFIG_LINKS = $CONFIG_LINKS
11955 CONFIG_COMMANDS = $CONFIG_COMMANDS
11956 $ $0 $@
11957
drh8b727472009-01-19 18:18:40 +000011958on `(hostname || uname -n) 2>/dev/null | sed 1q`
11959"
11960
drh71eb93e2001-09-28 01:34:43 +000011961_ACEOF
11962
drhf922ca42015-05-14 15:39:18 +000011963case $ac_config_files in *"
11964"*) set x $ac_config_files; shift; ac_config_files=$*;;
11965esac
11966
11967case $ac_config_headers in *"
11968"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11969esac
11970
11971
drh8b727472009-01-19 18:18:40 +000011972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011973# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000011974config_files="$ac_config_files"
11975config_headers="$ac_config_headers"
11976config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000011977
drh8b727472009-01-19 18:18:40 +000011978_ACEOF
drh71eb93e2001-09-28 01:34:43 +000011979
drh8b727472009-01-19 18:18:40 +000011980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011981ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000011982\`$as_me' instantiates files and other configuration actions
11983from templates according to the current configuration. Unless the files
11984and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000011985
drhf922ca42015-05-14 15:39:18 +000011986Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000011987
11988 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000011989 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000011990 --config print configuration, then exit
11991 -q, --quiet, --silent
11992 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000011993 -d, --debug don't remove temporary files
11994 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000011995 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011996 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000011997 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000011998 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000011999
12000Configuration files:
12001$config_files
12002
mlcreechb87057f2008-03-06 07:19:20 +000012003Configuration headers:
12004$config_headers
12005
mlcreech636a9952008-05-05 22:52:56 +000012006Configuration commands:
12007$config_commands
12008
drhf922ca42015-05-14 15:39:18 +000012009Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012010
mlcreech94984912008-03-04 19:03:08 +000012011_ACEOF
drh8b727472009-01-19 18:18:40 +000012012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012013ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012014ac_cs_version="\\
drhc4e6d172015-10-09 13:42:52 +000012015sqlite config.status 3.9.0
drhf922ca42015-05-14 15:39:18 +000012016configured by $0, generated by GNU Autoconf 2.69,
12017 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012018
drhf922ca42015-05-14 15:39:18 +000012019Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012020This config.status script is free software; the Free Software Foundation
12021gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012022
12023ac_pwd='$ac_pwd'
12024srcdir='$srcdir'
12025INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012026test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012027_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012028
drh8b727472009-01-19 18:18:40 +000012029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12030# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012031ac_need_defaults=:
12032while test $# != 0
12033do
12034 case $1 in
drhf922ca42015-05-14 15:39:18 +000012035 --*=?*)
drh8b727472009-01-19 18:18:40 +000012036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012038 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012039 ;;
drhf922ca42015-05-14 15:39:18 +000012040 --*=)
12041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12042 ac_optarg=
12043 ac_shift=:
12044 ;;
drh8b727472009-01-19 18:18:40 +000012045 *)
a.rottmann84e63352003-03-24 09:42:16 +000012046 ac_option=$1
12047 ac_optarg=$2
12048 ac_shift=shift
12049 ;;
drh75897232000-05-29 14:26:00 +000012050 esac
12051
a.rottmann84e63352003-03-24 09:42:16 +000012052 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012053 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012055 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12057 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012058 --config | --confi | --conf | --con | --co | --c )
12059 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012060 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012061 debug=: ;;
12062 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012063 $ac_shift
drh8b727472009-01-19 18:18:40 +000012064 case $ac_optarg in
12065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012066 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012067 esac
drhf922ca42015-05-14 15:39:18 +000012068 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012069 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012070 --header | --heade | --head | --hea )
12071 $ac_shift
drh8b727472009-01-19 18:18:40 +000012072 case $ac_optarg in
12073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12074 esac
drhf922ca42015-05-14 15:39:18 +000012075 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012076 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012077 --he | --h)
12078 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012079 as_fn_error $? "ambiguous option: \`$1'
12080Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012081 --help | --hel | -h )
12082 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12084 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12085 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012086
drh71eb93e2001-09-28 01:34:43 +000012087 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012088 -*) as_fn_error $? "unrecognized option: \`$1'
12089Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012090
drhf922ca42015-05-14 15:39:18 +000012091 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012092 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012093
12094 esac
12095 shift
12096done
12097
a.rottmann84e63352003-03-24 09:42:16 +000012098ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012099
a.rottmann84e63352003-03-24 09:42:16 +000012100if $ac_cs_silent; then
12101 exec 6>/dev/null
12102 ac_configure_extra_args="$ac_configure_extra_args --silent"
12103fi
drh71eb93e2001-09-28 01:34:43 +000012104
12105_ACEOF
drh8b727472009-01-19 18:18:40 +000012106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012107if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012109 shift
12110 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12111 CONFIG_SHELL='$SHELL'
12112 export CONFIG_SHELL
12113 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012114fi
drh71eb93e2001-09-28 01:34:43 +000012115
a.rottmann84e63352003-03-24 09:42:16 +000012116_ACEOF
drh8b727472009-01-19 18:18:40 +000012117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12118exec 5>>config.log
12119{
12120 echo
12121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12122## Running $as_me. ##
12123_ASBOX
12124 $as_echo "$ac_log"
12125} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012126
drh8b727472009-01-19 18:18:40 +000012127_ACEOF
12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012129#
drh8b727472009-01-19 18:18:40 +000012130# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012131#
12132
12133
12134# The HP-UX ksh and POSIX shell print the target directory to stdout
12135# if CDPATH is set.
12136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12137
12138sed_quote_subst='$sed_quote_subst'
12139double_quote_subst='$double_quote_subst'
12140delay_variable_subst='$delay_variable_subst'
12141macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12142macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12143enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12144enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12145pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12146enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12147host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12148host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12149host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12150build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12151build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12152build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12153SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12154Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12155GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12156EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12157FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12158LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12159NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12160LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12161max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12162ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12163exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12164lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12165lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12166lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12167reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12168reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012169OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012170deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12171file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12172AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12173AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12174STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12175RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12176old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12177old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12178old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12179CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12180CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12181compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12182GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12183lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12184lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12185lt_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"`'
12186lt_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"`'
12187objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12188SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12189ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12190MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12191lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12192lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12193lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12194lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12195lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12196need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12197DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12198NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12199LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12200OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12201OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12202libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12203shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12204extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12206enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12207export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12208whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12209compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12210old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12211old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12212archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12213archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12214module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12215module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12216with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12217allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12218no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12219hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12220hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12221hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12222hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12223hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12224hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12225hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12226hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12227inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12228link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12229fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12230always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12231export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12232exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12233include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12234prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12235file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12236variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12237need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12238need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12239version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12240runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12241shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12242shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12243libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12244library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12245soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12246postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12247postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12248finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12249finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12250hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12251sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12252sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12253hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12254enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12255enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12256enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12257old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12258striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12259
12260LTCC='$LTCC'
12261LTCFLAGS='$LTCFLAGS'
12262compiler='$compiler_DEFAULT'
12263
12264# Quote evaled strings.
12265for var in SED \
12266GREP \
12267EGREP \
12268FGREP \
12269LD \
12270NM \
12271LN_S \
12272lt_SP2NL \
12273lt_NL2SP \
12274reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012275OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012276deplibs_check_method \
12277file_magic_cmd \
12278AR \
12279AR_FLAGS \
12280STRIP \
12281RANLIB \
12282CC \
12283CFLAGS \
12284compiler \
12285lt_cv_sys_global_symbol_pipe \
12286lt_cv_sys_global_symbol_to_cdecl \
12287lt_cv_sys_global_symbol_to_c_name_address \
12288lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12289SHELL \
12290ECHO \
12291lt_prog_compiler_no_builtin_flag \
12292lt_prog_compiler_wl \
12293lt_prog_compiler_pic \
12294lt_prog_compiler_static \
12295lt_cv_prog_compiler_c_o \
12296need_locks \
12297DSYMUTIL \
12298NMEDIT \
12299LIPO \
12300OTOOL \
12301OTOOL64 \
12302shrext_cmds \
12303export_dynamic_flag_spec \
12304whole_archive_flag_spec \
12305compiler_needs_object \
12306with_gnu_ld \
12307allow_undefined_flag \
12308no_undefined_flag \
12309hardcode_libdir_flag_spec \
12310hardcode_libdir_flag_spec_ld \
12311hardcode_libdir_separator \
12312fix_srcfile_path \
12313exclude_expsyms \
12314include_expsyms \
12315file_list_spec \
12316variables_saved_for_relink \
12317libname_spec \
12318library_names_spec \
12319soname_spec \
12320finish_eval \
12321old_striplib \
12322striplib; do
12323 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12324 *[\\\\\\\`\\"\\\$]*)
12325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12326 ;;
12327 *)
12328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12329 ;;
12330 esac
12331done
12332
12333# Double-quote double-evaled strings.
12334for var in reload_cmds \
12335old_postinstall_cmds \
12336old_postuninstall_cmds \
12337old_archive_cmds \
12338extract_expsyms_cmds \
12339old_archive_from_new_cmds \
12340old_archive_from_expsyms_cmds \
12341archive_cmds \
12342archive_expsym_cmds \
12343module_cmds \
12344module_expsym_cmds \
12345export_symbols_cmds \
12346prelink_cmds \
12347postinstall_cmds \
12348postuninstall_cmds \
12349finish_cmds \
12350sys_lib_search_path_spec \
12351sys_lib_dlsearch_path_spec; do
12352 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12353 *[\\\\\\\`\\"\\\$]*)
12354 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12355 ;;
12356 *)
12357 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12358 ;;
12359 esac
12360done
12361
12362# Fix-up fallback echo if it was mangled by the above quoting rules.
12363case \$lt_ECHO in
12364*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12365 ;;
12366esac
12367
12368ac_aux_dir='$ac_aux_dir'
12369xsi_shell='$xsi_shell'
12370lt_shell_append='$lt_shell_append'
12371
12372# See if we are running on zsh, and set the options which allow our
12373# commands through without removal of \ escapes INIT.
12374if test -n "\${ZSH_VERSION+set}" ; then
12375 setopt NO_GLOB_SUBST
12376fi
12377
12378
12379 PACKAGE='$PACKAGE'
12380 VERSION='$VERSION'
12381 TIMESTAMP='$TIMESTAMP'
12382 RM='$RM'
12383 ofile='$ofile'
12384
12385
12386
12387
mlcreech94984912008-03-04 19:03:08 +000012388_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012389
drh8b727472009-01-19 18:18:40 +000012390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012391
drh8b727472009-01-19 18:18:40 +000012392# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012393for ac_config_target in $ac_config_targets
12394do
drh8b727472009-01-19 18:18:40 +000012395 case $ac_config_target in
12396 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12397 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12398 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12399 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12400
drhf922ca42015-05-14 15:39:18 +000012401 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012402 esac
12403done
12404
drh8b727472009-01-19 18:18:40 +000012405
drh71eb93e2001-09-28 01:34:43 +000012406# If the user did not use the arguments to specify the items to instantiate,
12407# then the envvar interface is used. Set only those that are not.
12408# We use the long form for the default assignment because of an extremely
12409# bizarre bug on SunOS 4.1.3.
12410if $ac_need_defaults; then
12411 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012412 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012413 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012414fi
12415
a.rottmann84e63352003-03-24 09:42:16 +000012416# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012417# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012418# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012419# Hook for its removal unless debugging.
12420# Note that there is a small window in which the directory will not be cleaned:
12421# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012422$debug ||
12423{
drhf922ca42015-05-14 15:39:18 +000012424 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012425 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012426 : "${ac_tmp:=$tmp}"
12427 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012428' 0
drhf922ca42015-05-14 15:39:18 +000012429 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012430}
drh71eb93e2001-09-28 01:34:43 +000012431# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012432
drh71eb93e2001-09-28 01:34:43 +000012433{
drh8b727472009-01-19 18:18:40 +000012434 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012435 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012436} ||
12437{
drh8b727472009-01-19 18:18:40 +000012438 tmp=./conf$$-$RANDOM
12439 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012440} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12441ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012442
drh8b727472009-01-19 18:18:40 +000012443# Set up the scripts for CONFIG_FILES section.
12444# No need to generate them if there are no CONFIG_FILES.
12445# This happens for instance with `./config.status config.h'.
12446if test -n "$CONFIG_FILES"; then
12447
12448
drhf922ca42015-05-14 15:39:18 +000012449ac_cr=`echo X | tr X '\015'`
12450# On cygwin, bash can eat \r inside `` if the user requested igncr.
12451# But we know of no other shell where ac_cr would be empty at this
12452# point, so we can use a bashism as a fallback.
12453if test "x$ac_cr" = x; then
12454 eval ac_cr=\$\'\\r\'
12455fi
drh8b727472009-01-19 18:18:40 +000012456ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12457if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012458 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012459else
12460 ac_cs_awk_cr=$ac_cr
12461fi
12462
drhf922ca42015-05-14 15:39:18 +000012463echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012464_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012465
mlcreech94984912008-03-04 19:03:08 +000012466
drh8b727472009-01-19 18:18:40 +000012467{
12468 echo "cat >conf$$subs.awk <<_ACEOF" &&
12469 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12470 echo "_ACEOF"
12471} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012472 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12473ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012474ac_delim='%!_!# '
12475for ac_last_try in false false false false false :; do
12476 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012478
drhf922ca42015-05-14 15:39:18 +000012479 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12480 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012481 break
12482 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012484 else
12485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012486 fi
drh8b727472009-01-19 18:18:40 +000012487done
12488rm -f conf$$subs.sh
12489
12490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012491cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012492_ACEOF
12493sed -n '
12494h
12495s/^/S["/; s/!.*/"]=/
12496p
12497g
12498s/^[^!]*!//
12499:repl
12500t repl
12501s/'"$ac_delim"'$//
12502t delim
12503:nl
12504h
drhf922ca42015-05-14 15:39:18 +000012505s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012506t more1
12507s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12508p
12509n
12510b repl
12511:more1
12512s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12513p
12514g
12515s/.\{148\}//
12516t nl
12517:delim
12518h
drhf922ca42015-05-14 15:39:18 +000012519s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012520t more2
12521s/["\\]/\\&/g; s/^/"/; s/$/"/
12522p
12523b
12524:more2
12525s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12526p
12527g
12528s/.\{148\}//
12529t delim
12530' <conf$$subs.awk | sed '
12531/^[^""]/{
12532 N
12533 s/\n//
12534}
12535' >>$CONFIG_STATUS || ac_write_fail=1
12536rm -f conf$$subs.awk
12537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12538_ACAWK
drhf922ca42015-05-14 15:39:18 +000012539cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012540 for (key in S) S_is_set[key] = 1
12541 FS = ""
12542
12543}
12544{
12545 line = $ 0
12546 nfields = split(line, field, "@")
12547 substed = 0
12548 len = length(field[1])
12549 for (i = 2; i < nfields; i++) {
12550 key = field[i]
12551 keylen = length(key)
12552 if (S_is_set[key]) {
12553 value = S[key]
12554 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12555 len += length(value) + length(field[++i])
12556 substed = 1
12557 } else
12558 len += 1 + keylen
12559 }
12560
12561 print line
12562}
12563
12564_ACAWK
12565_ACEOF
12566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12567if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12568 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12569else
12570 cat
drhf922ca42015-05-14 15:39:18 +000012571fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12572 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012573_ACEOF
12574
drhf922ca42015-05-14 15:39:18 +000012575# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12576# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012577# trailing colons and then remove the whole line if VPATH becomes empty
12578# (actually we leave an empty line to preserve line numbers).
12579if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012580 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12581h
12582s///
12583s/^/:/
12584s/[ ]*$/:/
12585s/:\$(srcdir):/:/g
12586s/:\${srcdir}:/:/g
12587s/:@srcdir@:/:/g
12588s/^:*//
drh8b727472009-01-19 18:18:40 +000012589s/:*$//
drhf922ca42015-05-14 15:39:18 +000012590x
12591s/\(=[ ]*\).*/\1/
12592G
12593s/\n//
drh8b727472009-01-19 18:18:40 +000012594s/^[^=]*=[ ]*$//
12595}'
12596fi
12597
12598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012599fi # test -n "$CONFIG_FILES"
12600
drh8b727472009-01-19 18:18:40 +000012601# Set up the scripts for CONFIG_HEADERS section.
12602# No need to generate them if there are no CONFIG_HEADERS.
12603# This happens for instance with `./config.status Makefile'.
12604if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012605cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012606BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012607_ACEOF
drh8b727472009-01-19 18:18:40 +000012608
12609# Transform confdefs.h into an awk script `defines.awk', embedded as
12610# here-document in config.status, that substitutes the proper values into
12611# config.h.in to produce config.h.
12612
12613# Create a delimiter string that does not exist in confdefs.h, to ease
12614# handling of long lines.
12615ac_delim='%!_!# '
12616for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012617 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12618 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012619 break
12620 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012621 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012622 else
12623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12624 fi
12625done
12626
12627# For the awk script, D is an array of macro values keyed by name,
12628# likewise P contains macro parameters if any. Preserve backslash
12629# newline sequences.
12630
12631ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12632sed -n '
12633s/.\{148\}/&'"$ac_delim"'/g
12634t rset
12635:rset
12636s/^[ ]*#[ ]*define[ ][ ]*/ /
12637t def
12638d
12639:def
12640s/\\$//
12641t bsnl
12642s/["\\]/\\&/g
12643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12644D["\1"]=" \3"/p
12645s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12646d
12647:bsnl
12648s/["\\]/\\&/g
12649s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12650D["\1"]=" \3\\\\\\n"\\/p
12651t cont
12652s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12653t cont
12654d
12655:cont
12656n
12657s/.\{148\}/&'"$ac_delim"'/g
12658t clear
12659:clear
12660s/\\$//
12661t bsnlc
12662s/["\\]/\\&/g; s/^/"/; s/$/"/p
12663d
12664:bsnlc
12665s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12666b cont
12667' <confdefs.h | sed '
12668s/'"$ac_delim"'/"\\\
12669"/g' >>$CONFIG_STATUS || ac_write_fail=1
12670
12671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672 for (key in D) D_is_set[key] = 1
12673 FS = ""
12674}
12675/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12676 line = \$ 0
12677 split(line, arg, " ")
12678 if (arg[1] == "#") {
12679 defundef = arg[2]
12680 mac1 = arg[3]
12681 } else {
12682 defundef = substr(arg[1], 2)
12683 mac1 = arg[2]
12684 }
12685 split(mac1, mac2, "(") #)
12686 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012687 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012688 if (D_is_set[macro]) {
12689 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012690 print prefix "define", macro P[macro] D[macro]
12691 next
12692 } else {
12693 # Replace #undef with comments. This is necessary, for example,
12694 # in the case of _POSIX_SOURCE, which is predefined and required
12695 # on some systems where configure will not decide to define it.
12696 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012697 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012698 next
12699 }
12700 }
12701}
12702{ print }
12703_ACAWK
12704_ACEOF
12705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012706 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012707fi # test -n "$CONFIG_HEADERS"
12708
12709
12710eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12711shift
12712for ac_tag
12713do
12714 case $ac_tag in
12715 :[FHLC]) ac_mode=$ac_tag; continue;;
12716 esac
12717 case $ac_mode$ac_tag in
12718 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012719 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012720 :[FH]-) ac_tag=-:-;;
12721 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12722 esac
12723 ac_save_IFS=$IFS
12724 IFS=:
12725 set x $ac_tag
12726 IFS=$ac_save_IFS
12727 shift
12728 ac_file=$1
12729 shift
12730
12731 case $ac_mode in
12732 :L) ac_source=$1;;
12733 :[FH])
12734 ac_file_inputs=
12735 for ac_f
12736 do
12737 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012738 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012739 *) # Look for the file first in the build tree, then in the source tree
12740 # (if the path is not absolute). The absolute path cannot be DOS-style,
12741 # because $ac_f cannot contain `:'.
12742 test -f "$ac_f" ||
12743 case $ac_f in
12744 [\\/$]*) false;;
12745 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12746 esac ||
drhf922ca42015-05-14 15:39:18 +000012747 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012748 esac
12749 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012750 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012751 done
12752
12753 # Let's still pretend it is `configure' which instantiates (i.e., don't
12754 # use $as_me), people would be surprised to read:
12755 # /* config.h. Generated by config.status. */
12756 configure_input='Generated from '`
12757 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12758 `' by configure.'
12759 if test x"$ac_file" != x-; then
12760 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012761 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012762$as_echo "$as_me: creating $ac_file" >&6;}
12763 fi
12764 # Neutralize special characters interpreted by sed in replacement strings.
12765 case $configure_input in #(
12766 *\&* | *\|* | *\\* )
12767 ac_sed_conf_input=`$as_echo "$configure_input" |
12768 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12769 *) ac_sed_conf_input=$configure_input;;
12770 esac
12771
12772 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012773 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012775 esac
12776 ;;
drh71eb93e2001-09-28 01:34:43 +000012777 esac
12778
drh8b727472009-01-19 18:18:40 +000012779 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012780$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012781 X"$ac_file" : 'X\(//\)[^/]' \| \
12782 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012783 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12784$as_echo X"$ac_file" |
12785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12786 s//\1/
12787 q
12788 }
12789 /^X\(\/\/\)[^/].*/{
12790 s//\1/
12791 q
12792 }
12793 /^X\(\/\/\)$/{
12794 s//\1/
12795 q
12796 }
12797 /^X\(\/\).*/{
12798 s//\1/
12799 q
12800 }
12801 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012802 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012803 ac_builddir=.
12804
drh8b727472009-01-19 18:18:40 +000012805case "$ac_dir" in
12806.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12807*)
12808 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12809 # A ".." for each directory in $ac_dir_suffix.
12810 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12811 case $ac_top_builddir_sub in
12812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12814 esac ;;
12815esac
12816ac_abs_top_builddir=$ac_pwd
12817ac_abs_builddir=$ac_pwd$ac_dir_suffix
12818# for backward compatibility:
12819ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012820
12821case $srcdir in
drh8b727472009-01-19 18:18:40 +000012822 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012823 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012824 ac_top_srcdir=$ac_top_builddir_sub
12825 ac_abs_top_srcdir=$ac_pwd ;;
12826 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012827 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012828 ac_top_srcdir=$srcdir
12829 ac_abs_top_srcdir=$srcdir ;;
12830 *) # Relative name.
12831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12832 ac_top_srcdir=$ac_top_build_prefix$srcdir
12833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012834esac
drh8b727472009-01-19 18:18:40 +000012835ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012836
a.rottmann84e63352003-03-24 09:42:16 +000012837
drh8b727472009-01-19 18:18:40 +000012838 case $ac_mode in
12839 :F)
12840 #
12841 # CONFIG_FILE
12842 #
drh75897232000-05-29 14:26:00 +000012843
drh71eb93e2001-09-28 01:34:43 +000012844 case $INSTALL in
12845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000012846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000012847 esac
mlcreech94984912008-03-04 19:03:08 +000012848_ACEOF
drh8b727472009-01-19 18:18:40 +000012849
12850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12851# If the template does not know about datarootdir, expand it.
12852# FIXME: This hack should be removed a few years after 2.60.
12853ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000012854ac_sed_dataroot='
12855/datarootdir/ {
12856 p
12857 q
12858}
12859/@datadir@/p
12860/@docdir@/p
12861/@infodir@/p
12862/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000012863/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000012864case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12865*datarootdir*) ac_datarootdir_seen=yes;;
12866*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000012867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000012868$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12869_ACEOF
12870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12871 ac_datarootdir_hack='
12872 s&@datadir@&$datadir&g
12873 s&@docdir@&$docdir&g
12874 s&@infodir@&$infodir&g
12875 s&@localedir@&$localedir&g
12876 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000012877 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000012878esac
12879_ACEOF
12880
12881# Neutralize VPATH when `$srcdir' = `.'.
12882# Shell code in configure.ac might set extrasub.
12883# FIXME: do we really want to maintain this feature?
12884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12885ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000012886$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000012887_ACEOF
drh8b727472009-01-19 18:18:40 +000012888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012889:t
12890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000012891s|@configure_input@|$ac_sed_conf_input|;t t
12892s&@top_builddir@&$ac_top_builddir_sub&;t t
12893s&@top_build_prefix@&$ac_top_build_prefix&;t t
12894s&@srcdir@&$ac_srcdir&;t t
12895s&@abs_srcdir@&$ac_abs_srcdir&;t t
12896s&@top_srcdir@&$ac_top_srcdir&;t t
12897s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12898s&@builddir@&$ac_builddir&;t t
12899s&@abs_builddir@&$ac_abs_builddir&;t t
12900s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12901s&@INSTALL@&$ac_INSTALL&;t t
12902$ac_datarootdir_hack
12903"
drhf922ca42015-05-14 15:39:18 +000012904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12905 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012906
drh8b727472009-01-19 18:18:40 +000012907test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000012908 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12909 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12910 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12912which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000012913$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000012914which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000012915
drhf922ca42015-05-14 15:39:18 +000012916 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000012917 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000012918 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12919 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000012920 esac \
drhf922ca42015-05-14 15:39:18 +000012921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012922 ;;
12923 :H)
12924 #
12925 # CONFIG_HEADER
12926 #
drh866108f2008-05-13 00:57:21 +000012927 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000012928 {
12929 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12931 } >"$ac_tmp/config.h" \
12932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12933 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000012935$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000012936 else
drh8b727472009-01-19 18:18:40 +000012937 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000012938 mv "$ac_tmp/config.h" "$ac_file" \
12939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012940 fi
12941 else
drh8b727472009-01-19 18:18:40 +000012942 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000012943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12944 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000012945 fi
drh8b727472009-01-19 18:18:40 +000012946 ;;
drh866108f2008-05-13 00:57:21 +000012947
drhf922ca42015-05-14 15:39:18 +000012948 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000012949$as_echo "$as_me: executing $ac_file commands" >&6;}
12950 ;;
12951 esac
drh866108f2008-05-13 00:57:21 +000012952
12953
drh8b727472009-01-19 18:18:40 +000012954 case $ac_file$ac_mode in
12955 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000012956
12957 # See if we are running on zsh, and set the options which allow our
12958 # commands through without removal of \ escapes.
12959 if test -n "${ZSH_VERSION+set}" ; then
12960 setopt NO_GLOB_SUBST
12961 fi
12962
12963 cfgfile="${ofile}T"
12964 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12965 $RM "$cfgfile"
12966
12967 cat <<_LT_EOF >> "$cfgfile"
12968#! $SHELL
12969
12970# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12971# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12972# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12973# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12974#
12975# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12976# 2006, 2007, 2008 Free Software Foundation, Inc.
12977# Written by Gordon Matzigkeit, 1996
12978#
12979# This file is part of GNU Libtool.
12980#
12981# GNU Libtool is free software; you can redistribute it and/or
12982# modify it under the terms of the GNU General Public License as
12983# published by the Free Software Foundation; either version 2 of
12984# the License, or (at your option) any later version.
12985#
12986# As a special exception to the GNU General Public License,
12987# if you distribute this file as part of a program or library that
12988# is built using GNU Libtool, you may include this file under the
12989# same distribution terms that you use for the rest of that program.
12990#
12991# GNU Libtool is distributed in the hope that it will be useful,
12992# but WITHOUT ANY WARRANTY; without even the implied warranty of
12993# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12994# GNU General Public License for more details.
12995#
12996# You should have received a copy of the GNU General Public License
12997# along with GNU Libtool; see the file COPYING. If not, a copy
12998# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12999# obtained by writing to the Free Software Foundation, Inc.,
13000# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13001
13002
13003# The names of the tagged configurations supported by this script.
13004available_tags=""
13005
13006# ### BEGIN LIBTOOL CONFIG
13007
13008# Which release of libtool.m4 was used?
13009macro_version=$macro_version
13010macro_revision=$macro_revision
13011
13012# Whether or not to build shared libraries.
13013build_libtool_libs=$enable_shared
13014
13015# Whether or not to build static libraries.
13016build_old_libs=$enable_static
13017
13018# What type of objects to build.
13019pic_mode=$pic_mode
13020
13021# Whether or not to optimize for fast installation.
13022fast_install=$enable_fast_install
13023
13024# The host system.
13025host_alias=$host_alias
13026host=$host
13027host_os=$host_os
13028
13029# The build system.
13030build_alias=$build_alias
13031build=$build
13032build_os=$build_os
13033
13034# A sed program that does not truncate output.
13035SED=$lt_SED
13036
13037# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13038Xsed="\$SED -e 1s/^X//"
13039
13040# A grep program that handles long lines.
13041GREP=$lt_GREP
13042
13043# An ERE matcher.
13044EGREP=$lt_EGREP
13045
13046# A literal string matcher.
13047FGREP=$lt_FGREP
13048
13049# A BSD- or MS-compatible name lister.
13050NM=$lt_NM
13051
13052# Whether we need soft or hard links.
13053LN_S=$lt_LN_S
13054
13055# What is the maximum length of a command?
13056max_cmd_len=$max_cmd_len
13057
13058# Object file suffix (normally "o").
13059objext=$ac_objext
13060
13061# Executable file suffix (normally "").
13062exeext=$exeext
13063
13064# whether the shell understands "unset".
13065lt_unset=$lt_unset
13066
13067# turn spaces into newlines.
13068SP2NL=$lt_lt_SP2NL
13069
13070# turn newlines into spaces.
13071NL2SP=$lt_lt_NL2SP
13072
13073# How to create reloadable object files.
13074reload_flag=$lt_reload_flag
13075reload_cmds=$lt_reload_cmds
13076
vapier6acb2cf2009-01-28 04:46:28 +000013077# An object symbol dumper.
13078OBJDUMP=$lt_OBJDUMP
13079
mlcreech636a9952008-05-05 22:52:56 +000013080# Method to check whether dependent libraries are shared objects.
13081deplibs_check_method=$lt_deplibs_check_method
13082
13083# Command to use when deplibs_check_method == "file_magic".
13084file_magic_cmd=$lt_file_magic_cmd
13085
13086# The archiver.
13087AR=$lt_AR
13088AR_FLAGS=$lt_AR_FLAGS
13089
13090# A symbol stripping program.
13091STRIP=$lt_STRIP
13092
13093# Commands used to install an old-style archive.
13094RANLIB=$lt_RANLIB
13095old_postinstall_cmds=$lt_old_postinstall_cmds
13096old_postuninstall_cmds=$lt_old_postuninstall_cmds
13097
13098# A C compiler.
13099LTCC=$lt_CC
13100
13101# LTCC compiler flags.
13102LTCFLAGS=$lt_CFLAGS
13103
13104# Take the output of nm and produce a listing of raw symbols and C names.
13105global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13106
13107# Transform the output of nm in a proper C declaration.
13108global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13109
13110# Transform the output of nm in a C name address pair.
13111global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13112
13113# Transform the output of nm in a C name address pair when lib prefix is needed.
13114global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13115
13116# The name of the directory that contains temporary libtool files.
13117objdir=$objdir
13118
13119# Shell to use when invoking shell scripts.
13120SHELL=$lt_SHELL
13121
13122# An echo program that does not interpret backslashes.
13123ECHO=$lt_ECHO
13124
13125# Used to examine libraries when file_magic_cmd begins with "file".
13126MAGIC_CMD=$MAGIC_CMD
13127
13128# Must we lock files when doing compilation?
13129need_locks=$lt_need_locks
13130
13131# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13132DSYMUTIL=$lt_DSYMUTIL
13133
13134# Tool to change global to local symbols on Mac OS X.
13135NMEDIT=$lt_NMEDIT
13136
13137# Tool to manipulate fat objects and archives on Mac OS X.
13138LIPO=$lt_LIPO
13139
13140# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13141OTOOL=$lt_OTOOL
13142
13143# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13144OTOOL64=$lt_OTOOL64
13145
13146# Old archive suffix (normally "a").
13147libext=$libext
13148
13149# Shared library suffix (normally ".so").
13150shrext_cmds=$lt_shrext_cmds
13151
13152# The commands to extract the exported symbol list from a shared archive.
13153extract_expsyms_cmds=$lt_extract_expsyms_cmds
13154
13155# Variables whose values should be saved in libtool wrapper scripts and
13156# restored at link time.
13157variables_saved_for_relink=$lt_variables_saved_for_relink
13158
13159# Do we need the "lib" prefix for modules?
13160need_lib_prefix=$need_lib_prefix
13161
13162# Do we need a version for libraries?
13163need_version=$need_version
13164
13165# Library versioning type.
13166version_type=$version_type
13167
13168# Shared library runtime path variable.
13169runpath_var=$runpath_var
13170
13171# Shared library path variable.
13172shlibpath_var=$shlibpath_var
13173
13174# Is shlibpath searched before the hard-coded library search path?
13175shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13176
13177# Format of library name prefix.
13178libname_spec=$lt_libname_spec
13179
13180# List of archive names. First name is the real one, the rest are links.
13181# The last name is the one that the linker finds with -lNAME
13182library_names_spec=$lt_library_names_spec
13183
13184# The coded name of the library, if different from the real name.
13185soname_spec=$lt_soname_spec
13186
13187# Command to use after installation of a shared archive.
13188postinstall_cmds=$lt_postinstall_cmds
13189
13190# Command to use after uninstallation of a shared archive.
13191postuninstall_cmds=$lt_postuninstall_cmds
13192
13193# Commands used to finish a libtool library installation in a directory.
13194finish_cmds=$lt_finish_cmds
13195
13196# As "finish_cmds", except a single script fragment to be evaled but
13197# not shown.
13198finish_eval=$lt_finish_eval
13199
13200# Whether we should hardcode library paths into libraries.
13201hardcode_into_libs=$hardcode_into_libs
13202
13203# Compile-time system search path for libraries.
13204sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13205
13206# Run-time system search path for libraries.
13207sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13208
13209# Whether dlopen is supported.
13210dlopen_support=$enable_dlopen
13211
13212# Whether dlopen of programs is supported.
13213dlopen_self=$enable_dlopen_self
13214
13215# Whether dlopen of statically linked programs is supported.
13216dlopen_self_static=$enable_dlopen_self_static
13217
13218# Commands to strip libraries.
13219old_striplib=$lt_old_striplib
13220striplib=$lt_striplib
13221
13222
13223# The linker used to build libraries.
13224LD=$lt_LD
13225
13226# Commands used to build an old-style archive.
13227old_archive_cmds=$lt_old_archive_cmds
13228
13229# A language specific compiler.
13230CC=$lt_compiler
13231
13232# Is the compiler the GNU compiler?
13233with_gcc=$GCC
13234
13235# Compiler flag to turn off builtin functions.
13236no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13237
13238# How to pass a linker flag through the compiler.
13239wl=$lt_lt_prog_compiler_wl
13240
13241# Additional compiler flags for building library objects.
13242pic_flag=$lt_lt_prog_compiler_pic
13243
13244# Compiler flag to prevent dynamic linking.
13245link_static_flag=$lt_lt_prog_compiler_static
13246
13247# Does compiler simultaneously support -c and -o options?
13248compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13249
13250# Whether or not to add -lc for building shared libraries.
13251build_libtool_need_lc=$archive_cmds_need_lc
13252
13253# Whether or not to disallow shared libs when runtime libs are static.
13254allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13255
13256# Compiler flag to allow reflexive dlopens.
13257export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13258
13259# Compiler flag to generate shared objects directly from archives.
13260whole_archive_flag_spec=$lt_whole_archive_flag_spec
13261
13262# Whether the compiler copes with passing no objects directly.
13263compiler_needs_object=$lt_compiler_needs_object
13264
13265# Create an old-style archive from a shared archive.
13266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13267
13268# Create a temporary old-style archive to link instead of a shared archive.
13269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13270
13271# Commands used to build a shared archive.
13272archive_cmds=$lt_archive_cmds
13273archive_expsym_cmds=$lt_archive_expsym_cmds
13274
13275# Commands used to build a loadable module if different from building
13276# a shared archive.
13277module_cmds=$lt_module_cmds
13278module_expsym_cmds=$lt_module_expsym_cmds
13279
13280# Whether we are building with GNU ld or not.
13281with_gnu_ld=$lt_with_gnu_ld
13282
13283# Flag that allows shared libraries with undefined symbols to be built.
13284allow_undefined_flag=$lt_allow_undefined_flag
13285
13286# Flag that enforces no undefined symbols.
13287no_undefined_flag=$lt_no_undefined_flag
13288
13289# Flag to hardcode \$libdir into a binary during linking.
13290# This must work even if \$libdir does not exist
13291hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13292
13293# If ld is used when linking, flag to hardcode \$libdir into a binary
13294# during linking. This must work even if \$libdir does not exist.
13295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13296
13297# Whether we need a single "-rpath" flag with a separated argument.
13298hardcode_libdir_separator=$lt_hardcode_libdir_separator
13299
13300# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13301# DIR into the resulting binary.
13302hardcode_direct=$hardcode_direct
13303
13304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13305# DIR into the resulting binary and the resulting library dependency is
13306# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13307# library is relocated.
13308hardcode_direct_absolute=$hardcode_direct_absolute
13309
13310# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13311# into the resulting binary.
13312hardcode_minus_L=$hardcode_minus_L
13313
13314# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13315# into the resulting binary.
13316hardcode_shlibpath_var=$hardcode_shlibpath_var
13317
13318# Set to "yes" if building a shared library automatically hardcodes DIR
13319# into the library and all subsequent libraries and executables linked
13320# against it.
13321hardcode_automatic=$hardcode_automatic
13322
13323# Set to yes if linker adds runtime paths of dependent libraries
13324# to runtime path list.
13325inherit_rpath=$inherit_rpath
13326
13327# Whether libtool must link a program against all its dependency libraries.
13328link_all_deplibs=$link_all_deplibs
13329
13330# Fix the shell variable \$srcfile for the compiler.
13331fix_srcfile_path=$lt_fix_srcfile_path
13332
13333# Set to "yes" if exported symbols are required.
13334always_export_symbols=$always_export_symbols
13335
13336# The commands to list exported symbols.
13337export_symbols_cmds=$lt_export_symbols_cmds
13338
13339# Symbols that should not be listed in the preloaded symbols.
13340exclude_expsyms=$lt_exclude_expsyms
13341
13342# Symbols that must always be exported.
13343include_expsyms=$lt_include_expsyms
13344
13345# Commands necessary for linking programs (against libraries) with templates.
13346prelink_cmds=$lt_prelink_cmds
13347
13348# Specify filename containing input files.
13349file_list_spec=$lt_file_list_spec
13350
13351# How to hardcode a shared library path into an executable.
13352hardcode_action=$hardcode_action
13353
13354# ### END LIBTOOL CONFIG
13355
13356_LT_EOF
13357
13358 case $host_os in
13359 aix3*)
13360 cat <<\_LT_EOF >> "$cfgfile"
13361# AIX sometimes has problems with the GCC collect2 program. For some
13362# reason, if we set the COLLECT_NAMES environment variable, the problems
13363# vanish in a puff of smoke.
13364if test "X${COLLECT_NAMES+set}" != Xset; then
13365 COLLECT_NAMES=
13366 export COLLECT_NAMES
13367fi
13368_LT_EOF
13369 ;;
13370 esac
13371
13372
13373ltmain="$ac_aux_dir/ltmain.sh"
13374
13375
13376 # We use sed instead of cat because bash on DJGPP gets confused if
13377 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13378 # text mode, it properly converts lines to CR/LF. This bash problem
13379 # is reportedly fixed, but why not run on old versions too?
13380 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13381 || (rm -f "$cfgfile"; exit 1)
13382
13383 case $xsi_shell in
13384 yes)
13385 cat << \_LT_EOF >> "$cfgfile"
13386
13387# func_dirname file append nondir_replacement
13388# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13389# otherwise set result to NONDIR_REPLACEMENT.
13390func_dirname ()
13391{
13392 case ${1} in
13393 */*) func_dirname_result="${1%/*}${2}" ;;
13394 * ) func_dirname_result="${3}" ;;
13395 esac
13396}
13397
13398# func_basename file
13399func_basename ()
13400{
13401 func_basename_result="${1##*/}"
13402}
13403
13404# func_dirname_and_basename file append nondir_replacement
13405# perform func_basename and func_dirname in a single function
13406# call:
13407# dirname: Compute the dirname of FILE. If nonempty,
13408# add APPEND to the result, otherwise set result
13409# to NONDIR_REPLACEMENT.
13410# value returned in "$func_dirname_result"
13411# basename: Compute filename of FILE.
13412# value retuned in "$func_basename_result"
13413# Implementation must be kept synchronized with func_dirname
13414# and func_basename. For efficiency, we do not delegate to
13415# those functions but instead duplicate the functionality here.
13416func_dirname_and_basename ()
13417{
13418 case ${1} in
13419 */*) func_dirname_result="${1%/*}${2}" ;;
13420 * ) func_dirname_result="${3}" ;;
13421 esac
13422 func_basename_result="${1##*/}"
13423}
13424
13425# func_stripname prefix suffix name
13426# strip PREFIX and SUFFIX off of NAME.
13427# PREFIX and SUFFIX must not contain globbing or regex special
13428# characters, hashes, percent signs, but SUFFIX may contain a leading
13429# dot (in which case that matches only a dot).
13430func_stripname ()
13431{
13432 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13433 # positional parameters, so assign one to ordinary parameter first.
13434 func_stripname_result=${3}
13435 func_stripname_result=${func_stripname_result#"${1}"}
13436 func_stripname_result=${func_stripname_result%"${2}"}
13437}
13438
13439# func_opt_split
13440func_opt_split ()
13441{
13442 func_opt_split_opt=${1%%=*}
13443 func_opt_split_arg=${1#*=}
13444}
13445
13446# func_lo2o object
13447func_lo2o ()
13448{
13449 case ${1} in
13450 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13451 *) func_lo2o_result=${1} ;;
13452 esac
13453}
13454
13455# func_xform libobj-or-source
13456func_xform ()
13457{
13458 func_xform_result=${1%.*}.lo
13459}
13460
13461# func_arith arithmetic-term...
13462func_arith ()
13463{
13464 func_arith_result=$(( $* ))
13465}
13466
13467# func_len string
13468# STRING may not start with a hyphen.
13469func_len ()
13470{
13471 func_len_result=${#1}
13472}
13473
13474_LT_EOF
13475 ;;
13476 *) # Bourne compatible functions.
13477 cat << \_LT_EOF >> "$cfgfile"
13478
13479# func_dirname file append nondir_replacement
13480# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13481# otherwise set result to NONDIR_REPLACEMENT.
13482func_dirname ()
13483{
13484 # Extract subdirectory from the argument.
13485 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13486 if test "X$func_dirname_result" = "X${1}"; then
13487 func_dirname_result="${3}"
13488 else
13489 func_dirname_result="$func_dirname_result${2}"
13490 fi
13491}
13492
13493# func_basename file
13494func_basename ()
13495{
13496 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13497}
13498
13499
13500# func_stripname prefix suffix name
13501# strip PREFIX and SUFFIX off of NAME.
13502# PREFIX and SUFFIX must not contain globbing or regex special
13503# characters, hashes, percent signs, but SUFFIX may contain a leading
13504# dot (in which case that matches only a dot).
13505# func_strip_suffix prefix name
13506func_stripname ()
13507{
13508 case ${2} in
13509 .*) func_stripname_result=`$ECHO "X${3}" \
13510 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13511 *) func_stripname_result=`$ECHO "X${3}" \
13512 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13513 esac
13514}
13515
13516# sed scripts:
13517my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13518my_sed_long_arg='1s/^-[^=]*=//'
13519
13520# func_opt_split
13521func_opt_split ()
13522{
13523 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13524 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13525}
13526
13527# func_lo2o object
13528func_lo2o ()
13529{
13530 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13531}
13532
13533# func_xform libobj-or-source
13534func_xform ()
13535{
13536 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13537}
13538
13539# func_arith arithmetic-term...
13540func_arith ()
13541{
13542 func_arith_result=`expr "$@"`
13543}
13544
13545# func_len string
13546# STRING may not start with a hyphen.
13547func_len ()
13548{
13549 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13550}
13551
13552_LT_EOF
13553esac
13554
13555case $lt_shell_append in
13556 yes)
13557 cat << \_LT_EOF >> "$cfgfile"
13558
13559# func_append var value
13560# Append VALUE to the end of shell variable VAR.
13561func_append ()
13562{
13563 eval "$1+=\$2"
13564}
13565_LT_EOF
13566 ;;
13567 *)
13568 cat << \_LT_EOF >> "$cfgfile"
13569
13570# func_append var value
13571# Append VALUE to the end of shell variable VAR.
13572func_append ()
13573{
13574 eval "$1=\$$1\$2"
13575}
13576
13577_LT_EOF
13578 ;;
13579 esac
13580
13581
13582 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13583 || (rm -f "$cfgfile"; exit 1)
13584
13585 mv -f "$cfgfile" "$ofile" ||
13586 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13587 chmod +x "$ofile"
13588
13589 ;;
mlcreech94984912008-03-04 19:03:08 +000013590
drh8b727472009-01-19 18:18:40 +000013591 esac
13592done # for ac_tag
13593
drh71eb93e2001-09-28 01:34:43 +000013594
drhf922ca42015-05-14 15:39:18 +000013595as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013596_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013597ac_clean_files=$ac_clean_files_save
13598
drh8b727472009-01-19 18:18:40 +000013599test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013600 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013601
a.rottmann84e63352003-03-24 09:42:16 +000013602
drh71eb93e2001-09-28 01:34:43 +000013603# configure is writing to config.log, and then calls config.status.
13604# config.status does its own redirection, appending to config.log.
13605# Unfortunately, on DOS this fails, as config.log is still kept open
13606# by configure, so config.status won't be able to write to it; its
13607# output is simply discarded. So we exec the FD to /dev/null,
13608# effectively closing config.log, so it can be properly (re)opened and
13609# appended to by config.status. When coming back to configure, we
13610# need to make the FD available again.
13611if test "$no_create" != yes; then
13612 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013613 ac_config_status_args=
13614 test "$silent" = yes &&
13615 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013616 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013618 exec 5>>config.log
13619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13620 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013621 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013622fi
drh8b727472009-01-19 18:18:40 +000013623if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13625$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013626fi
drhbc7a22d2009-10-13 22:47:13 +000013627