blob: 562f3095f3d0c39f449e722e0729b1dcc672fdaf [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
jimblandydc4029a2010-02-02 17:39:51 +00003# Generated by GNU Autoconf 2.65 for breakpad 0.1.
brynercb91a2f2006-08-25 21:14:45 +00004#
5# Report bugs to <opensource@google.com>.
6#
jimblandydc4029a2010-02-02 17:39:51 +00007#
mmentovai8c2a4de2006-09-20 16:20:15 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
jimblandydc4029a2010-02-02 17:39:51 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
jimblandy92b1f832009-12-23 22:23:49 +000012#
brynercb91a2f2006-08-25 21:14:45 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
jimblandy92b1f832009-12-23 22:23:49 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000018
mmentovaiaf3c43f2007-05-17 18:34:37 +000019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000022 emulate sh
23 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000027 setopt NO_GLOB_SUBST
28else
jimblandy92b1f832009-12-23 22:23:49 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000034esac
brynercb91a2f2006-08-25 21:14:45 +000035fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000036
37
jimblandy92b1f832009-12-23 22:23:49 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
brynercb91a2f2006-08-25 21:14:45 +000075
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
mmentovai8c2a4de2006-09-20 16:20:15 +000083fi
brynercb91a2f2006-08-25 21:14:45 +000084
mmentovai8c2a4de2006-09-20 16:20:15 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000094case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +0000101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
mmentovai8c2a4de2006-09-20 16:20:15 +0000103IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +0000104
mmentovai8c2a4de2006-09-20 16:20:15 +0000105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +0000113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +0000115fi
116
jimblandy92b1f832009-12-23 22:23:49 +0000117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +0000124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +0000130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +0000134
jimblandy92b1f832009-12-23 22:23:49 +0000135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: opensource@google.com about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376} # as_fn_error
377
mmentovai8c2a4de2006-09-20 16:20:15 +0000378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
jimblandy92b1f832009-12-23 22:23:49 +0000391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000396
mmentovai8c2a4de2006-09-20 16:20:15 +0000397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +0000401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +0000402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
jimblandy92b1f832009-12-23 22:23:49 +0000416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +0000422
423
jimblandy92b1f832009-12-23 22:23:49 +0000424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
mmentovai8c2a4de2006-09-20 16:20:15 +0000429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
brynercb91a2f2006-08-25 21:14:45 +0000433 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +0000434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
brynercb91a2f2006-08-25 21:14:45 +0000438 N
mmentovai8c2a4de2006-09-20 16:20:15 +0000439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
brynercb91a2f2006-08-25 21:14:45 +0000441 t loop
mmentovai8c2a4de2006-09-20 16:20:15 +0000442 s/-\n.*//
brynercb91a2f2006-08-25 21:14:45 +0000443 ' >$as_me.lineno &&
mmentovai8c2a4de2006-09-20 16:20:15 +0000444 chmod +x "$as_me.lineno" ||
jimblandy92b1f832009-12-23 22:23:49 +0000445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
brynercb91a2f2006-08-25 21:14:45 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
mmentovai8c2a4de2006-09-20 16:20:15 +0000449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
brynercb91a2f2006-08-25 21:14:45 +0000451 # Exit status is that of the last command.
452 exit
453}
454
mmentovai8c2a4de2006-09-20 16:20:15 +0000455ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +0000456case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +0000457-n*)
jimblandy92b1f832009-12-23 22:23:49 +0000458 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +0000459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +0000460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +0000463 esac;;
464*)
465 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +0000466esac
467
brynercb91a2f2006-08-25 21:14:45 +0000468rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +0000469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +0000473 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +0000474fi
jimblandy92b1f832009-12-23 22:23:49 +0000475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
brynercb91a2f2006-08-25 21:14:45 +0000487 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +0000488 fi
brynercb91a2f2006-08-25 21:14:45 +0000489else
490 as_ln_s='cp -p'
491fi
mmentovai8c2a4de2006-09-20 16:20:15 +0000492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +0000494
495if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +0000496 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +0000497else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
500fi
501
mmentovaiaf3c43f2007-05-17 18:34:37 +0000502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +0000504else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +0000513 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +0000514 else
jimblandy92b1f832009-12-23 22:23:49 +0000515 case $1 in #(
516 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +0000517 esac;
jimblandy92b1f832009-12-23 22:23:49 +0000518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +0000519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
mmentovai8c2a4de2006-09-20 16:20:15 +0000522fi
mmentovaiaf3c43f2007-05-17 18:34:37 +0000523as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +0000524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
brynercb91a2f2006-08-25 21:14:45 +0000532
brynercb91a2f2006-08-25 21:14:45 +0000533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
jimblandy92b1f832009-12-23 22:23:49 +0000536case X$lt_ECHO in
brynercb91a2f2006-08-25 21:14:45 +0000537X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
jimblandy92b1f832009-12-23 22:23:49 +0000539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
brynercb91a2f2006-08-25 21:14:45 +0000540 ;;
541esac
542
jimblandy92b1f832009-12-23 22:23:49 +0000543ECHO=${lt_ECHO-echo}
brynercb91a2f2006-08-25 21:14:45 +0000544if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
549 :
jimblandy92b1f832009-12-23 22:23:49 +0000550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
brynercb91a2f2006-08-25 21:14:45 +0000552 :
553else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
jimblandy92b1f832009-12-23 22:23:49 +0000561 cat <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000562$*
jimblandy92b1f832009-12-23 22:23:49 +0000563_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +0000564 exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
mmentovai8c2a4de2006-09-20 16:20:15 +0000569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
brynercb91a2f2006-08-25 21:14:45 +0000570
jimblandy92b1f832009-12-23 22:23:49 +0000571if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
580 fi
581 done
582 fi
brynercb91a2f2006-08-25 21:14:45 +0000583
jimblandy92b1f832009-12-23 22:23:49 +0000584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
587 :
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
592 #
593 # So, first we look for a working echo in the user's PATH.
brynercb91a2f2006-08-25 21:14:45 +0000594
jimblandy92b1f832009-12-23 22:23:49 +0000595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
604 fi
605 done
brynercb91a2f2006-08-25 21:14:45 +0000606 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +0000607
jimblandy92b1f832009-12-23 22:23:49 +0000608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
brynercb91a2f2006-08-25 21:14:45 +0000623 else
jimblandy92b1f832009-12-23 22:23:49 +0000624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
630 :
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
brynercb91a2f2006-08-25 21:14:45 +0000648
jimblandy92b1f832009-12-23 22:23:49 +0000649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
653 fi
654 prev="$cmd"
655 done
656
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
brynercb91a2f2006-08-25 21:14:45 +0000664 fi
jimblandy92b1f832009-12-23 22:23:49 +0000665 fi
brynercb91a2f2006-08-25 21:14:45 +0000666 fi
667 fi
668 fi
669fi
brynercb91a2f2006-08-25 21:14:45 +0000670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
jimblandy92b1f832009-12-23 22:23:49 +0000673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
brynercb91a2f2006-08-25 21:14:45 +0000676fi
677
678
679
680
jimblandydc4029a2010-02-02 17:39:51 +0000681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
mmentovai8c2a4de2006-09-20 16:20:15 +0000683
brynercb91a2f2006-08-25 21:14:45 +0000684# Name of the host.
685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
brynercb91a2f2006-08-25 21:14:45 +0000689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
mmentovai8c2a4de2006-09-20 16:20:15 +0000693ac_clean_files=
brynercb91a2f2006-08-25 21:14:45 +0000694ac_config_libobj_dir=.
mmentovai8c2a4de2006-09-20 16:20:15 +0000695LIBOBJS=
brynercb91a2f2006-08-25 21:14:45 +0000696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
brynercb91a2f2006-08-25 21:14:45 +0000700
brynercb91a2f2006-08-25 21:14:45 +0000701# Identity of this package.
mmentovaie5dc6082007-02-14 19:51:05 +0000702PACKAGE_NAME='breakpad'
703PACKAGE_TARNAME='breakpad'
brynercb91a2f2006-08-25 21:14:45 +0000704PACKAGE_VERSION='0.1'
mmentovaie5dc6082007-02-14 19:51:05 +0000705PACKAGE_STRING='breakpad 0.1'
brynercb91a2f2006-08-25 21:14:45 +0000706PACKAGE_BUGREPORT='opensource@google.com'
jimblandy92b1f832009-12-23 22:23:49 +0000707PACKAGE_URL=''
brynercb91a2f2006-08-25 21:14:45 +0000708
709ac_unique_file="README"
710# Factoring default headers for most tests.
711ac_includes_default="\
712#include <stdio.h>
mmentovaiaf3c43f2007-05-17 18:34:37 +0000713#ifdef HAVE_SYS_TYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000714# include <sys/types.h>
715#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000716#ifdef HAVE_SYS_STAT_H
brynercb91a2f2006-08-25 21:14:45 +0000717# include <sys/stat.h>
718#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000719#ifdef STDC_HEADERS
brynercb91a2f2006-08-25 21:14:45 +0000720# include <stdlib.h>
721# include <stddef.h>
722#else
mmentovaiaf3c43f2007-05-17 18:34:37 +0000723# ifdef HAVE_STDLIB_H
brynercb91a2f2006-08-25 21:14:45 +0000724# include <stdlib.h>
725# endif
726#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000727#ifdef HAVE_STRING_H
728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
brynercb91a2f2006-08-25 21:14:45 +0000729# include <memory.h>
730# endif
731# include <string.h>
732#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000733#ifdef HAVE_STRINGS_H
brynercb91a2f2006-08-25 21:14:45 +0000734# include <strings.h>
735#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000736#ifdef HAVE_INTTYPES_H
brynercb91a2f2006-08-25 21:14:45 +0000737# include <inttypes.h>
mmentovai8c2a4de2006-09-20 16:20:15 +0000738#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000739#ifdef HAVE_STDINT_H
mmentovai8c2a4de2006-09-20 16:20:15 +0000740# include <stdint.h>
brynercb91a2f2006-08-25 21:14:45 +0000741#endif
mmentovaiaf3c43f2007-05-17 18:34:37 +0000742#ifdef HAVE_UNISTD_H
brynercb91a2f2006-08-25 21:14:45 +0000743# include <unistd.h>
744#endif"
745
jimblandy92b1f832009-12-23 22:23:49 +0000746ac_subst_vars='am__EXEEXT_FALSE
747am__EXEEXT_TRUE
748LTLIBOBJS
mmentovai8c2a4de2006-09-20 16:20:15 +0000749LIBOBJS
jimblandy92b1f832009-12-23 22:23:49 +0000750SELFTEST_FALSE
751SELFTEST_TRUE
752LIBTOOL_DEPS
753CXXCPP
754OTOOL64
755OTOOL
756LIPO
757NMEDIT
758DSYMUTIL
759lt_ECHO
760RANLIB
761AR
762OBJDUMP
763LN_S
764NM
765ac_ct_DUMPBIN
766DUMPBIN
767LD
768FGREP
769EGREP
770GREP
771SED
772host_os
773host_vendor
774host_cpu
775host
776build_os
777build_vendor
778build_cpu
779build
780LIBTOOL
781am__fastdepCXX_FALSE
782am__fastdepCXX_TRUE
783CXXDEPMODE
784ac_ct_CXX
785CXXFLAGS
786CXX
787CPP
788am__fastdepCC_FALSE
789am__fastdepCC_TRUE
790CCDEPMODE
791AMDEPBACKSLASH
792AMDEP_FALSE
793AMDEP_TRUE
794am__quote
795am__include
796DEPDIR
797OBJEXT
798EXEEXT
799ac_ct_CC
800CPPFLAGS
801LDFLAGS
802CFLAGS
803CC
804am__untar
805am__tar
806AMTAR
807am__leading_dot
808SET_MAKE
809AWK
810mkdir_p
811MKDIR_P
812INSTALL_STRIP_PROGRAM
813STRIP
814install_sh
815MAKEINFO
816AUTOHEADER
817AUTOMAKE
818AUTOCONF
819ACLOCAL
820VERSION
821PACKAGE
822CYGPATH_W
823am__isrc
824INSTALL_DATA
825INSTALL_SCRIPT
826INSTALL_PROGRAM
827target_alias
828host_alias
829build_alias
830LIBS
831ECHO_T
832ECHO_N
833ECHO_C
834DEFS
835mandir
836localedir
837libdir
838psdir
839pdfdir
840dvidir
841htmldir
842infodir
843docdir
844oldincludedir
845includedir
846localstatedir
847sharedstatedir
848sysconfdir
849datadir
850datarootdir
851libexecdir
852sbindir
853bindir
854program_transform_name
855prefix
856exec_prefix
857PACKAGE_URL
858PACKAGE_BUGREPORT
859PACKAGE_STRING
860PACKAGE_VERSION
861PACKAGE_TARNAME
862PACKAGE_NAME
863PATH_SEPARATOR
864SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000865ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000866ac_user_opts='
867enable_option_checking
868enable_dependency_tracking
869enable_shared
870enable_static
871with_pic
872enable_fast_install
873with_gnu_ld
874enable_libtool_lock
875enable_selftest
876'
mmentovai8c2a4de2006-09-20 16:20:15 +0000877 ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000883LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000884CPPFLAGS
885CPP
886CXX
887CXXFLAGS
888CCC
jimblandy92b1f832009-12-23 22:23:49 +0000889CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000890
brynercb91a2f2006-08-25 21:14:45 +0000891
892# Initialize some variables set by options.
893ac_init_help=
894ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000895ac_unrecognized_opts=
896ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000919# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000928includedir='${prefix}/include'
929oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000930docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000939
940ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000941ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000942for ac_option
943do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000946 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000947 ac_prev=
948 continue
949 fi
950
mmentovai8c2a4de2006-09-20 16:20:15 +0000951 case $ac_option in
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *) ac_optarg=yes ;;
954 esac
brynercb91a2f2006-08-25 21:14:45 +0000955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
mmentovai8c2a4de2006-09-20 16:20:15 +0000958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
mmentovai8c2a4de2006-09-20 16:20:15 +0000982 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000983 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000985 datadir=$ac_optarg ;;
986
mmentovai8c2a4de2006-09-20 16:20:15 +0000987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
brynercb91a2f2006-08-25 21:14:45 +0000994 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +0000995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +0000996 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +0000997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003"enable_$ac_useropt"
1004"*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001019
1020 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001022 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029"enable_$ac_useropt"
1030"*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
mmentovai8c2a4de2006-09-20 16:20:15 +00001061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
brynercb91a2f2006-08-25 21:14:45 +00001067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
mmentovai8c2a4de2006-09-20 16:20:15 +00001091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
brynercb91a2f2006-08-25 21:14:45 +00001096 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001097 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
mmentovai8c2a4de2006-09-20 16:20:15 +00001165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
brynercb91a2f2006-08-25 21:14:45 +00001175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001226 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001239
1240 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001242 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
jimblandy92b1f832009-12-23 22:23:49 +00001274 -*) as_fn_error "unrecognized option: \`$ac_option'
1275Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1284 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001285 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297done
1298
1299if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jimblandy92b1f832009-12-23 22:23:49 +00001301 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001302fi
1303
jimblandy92b1f832009-12-23 22:23:49 +00001304if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310fi
1311
1312# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001313for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001317do
mmentovai8c2a4de2006-09-20 16:20:15 +00001318 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001326 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001329 esac
jimblandy92b1f832009-12-23 22:23:49 +00001330 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001331done
1332
1333# There might be people who depend on the old broken behavior: `$host'
1334# used to hold the argument of --host etc.
1335# FIXME: To remove some day.
1336build=$build_alias
1337host=$host_alias
1338target=$target_alias
1339
1340# FIXME: To remove some day.
1341if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
jimblandy92b1f832009-12-23 22:23:49 +00001344 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
brynercb91a2f2006-08-25 21:14:45 +00001345 If a cross compiler is detected then cross compile mode will be used." >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1348 fi
1349fi
1350
1351ac_tool_prefix=
1352test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354test "$silent" = yes && exec 6>/dev/null
1355
1356
mmentovai8c2a4de2006-09-20 16:20:15 +00001357ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358ac_ls_di=`ls -di .` &&
1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jimblandy92b1f832009-12-23 22:23:49 +00001360 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001361test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jimblandy92b1f832009-12-23 22:23:49 +00001362 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001363
1364
brynercb91a2f2006-08-25 21:14:45 +00001365# Find the source files, if location was not specified.
1366if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001368 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001392 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001393 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001394 srcdir=..
1395 fi
1396else
1397 ac_srcdir_defaulted=no
1398fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001399if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jimblandy92b1f832009-12-23 22:23:49 +00001401 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001402fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404ac_abs_confdir=`(
jimblandy92b1f832009-12-23 22:23:49 +00001405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001406 pwd)`
1407# When building in place, set srcdir=.
1408if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1410fi
1411# Remove unnecessary trailing slashes from srcdir.
1412# Double slashes in file names in object file debugging info
1413# mess up M-x gdb in Emacs.
1414case $srcdir in
1415*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416esac
1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
brynercb91a2f2006-08-25 21:14:45 +00001423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001431\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
brynercb91a2f2006-08-25 21:14:45 +00001451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001453 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001455 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488Program names:
1489 --program-prefix=PREFIX prepend PREFIX to installed program names
1490 --program-suffix=SUFFIX append SUFFIX to installed program names
1491 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492
1493System types:
1494 --build=BUILD configure for building on BUILD [guessed]
1495 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496_ACEOF
1497fi
1498
1499if test -n "$ac_init_help"; then
1500 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001501 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001502 esac
1503 cat <<\_ACEOF
1504
1505Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001506 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001507 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1508 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1509 --disable-dependency-tracking speeds up one-time build
1510 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001511 --enable-shared[=PKGS] build shared libraries [default=yes]
1512 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001513 --enable-fast-install[=PKGS]
1514 optimize for fast installation [default=yes]
1515 --disable-libtool-lock avoid locking (might break parallel builds)
mmentovai0dbedc92006-09-25 21:16:15 +00001516 --enable-selftest Run extra tests with "make check" (may conflict with
1517 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001522 --with-pic try to use only PIC/non-PIC objects [default=use
1523 both]
jimblandy92b1f832009-12-23 22:23:49 +00001524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001525
1526Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001531 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001533 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001534 CPP C preprocessor
1535 CXX C++ compiler command
1536 CXXFLAGS C++ compiler flags
1537 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001538
1539Use these variables to override the choices made by `configure' or to help
1540it to find libraries and programs with nonstandard names/locations.
1541
1542Report bugs to <opensource@google.com>.
1543_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001544ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
brynercb91a2f2006-08-25 21:14:45 +00001553 ac_builddir=.
1554
mmentovai8c2a4de2006-09-20 16:20:15 +00001555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
jimblandy92b1f832009-12-23 22:23:49 +00001558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001559 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001570
1571case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001572 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001573 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001577 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001584esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001586
mmentovai8c2a4de2006-09-20 16:20:15 +00001587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001595 else
jimblandy92b1f832009-12-23 22:23:49 +00001596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001599 done
1600fi
1601
mmentovai8c2a4de2006-09-20 16:20:15 +00001602test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001603if $ac_init_version; then
1604 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001605breakpad configure 0.1
jimblandydc4029a2010-02-02 17:39:51 +00001606generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001607
jimblandy92b1f832009-12-23 22:23:49 +00001608Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001609This configure script is free software; the Free Software Foundation
1610gives unlimited permission to copy, distribute and modify it.
1611_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001612 exit
brynercb91a2f2006-08-25 21:14:45 +00001613fi
jimblandy92b1f832009-12-23 22:23:49 +00001614
1615## ------------------------ ##
1616## Autoconf initialization. ##
1617## ------------------------ ##
1618
1619# ac_fn_c_try_compile LINENO
1620# --------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_compile ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646else
1647 $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651fi
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001653 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001654
1655} # ac_fn_c_try_compile
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001690 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_cxx_try_compile LINENO
1695# ----------------------------
1696# Try to compile conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_cxx_try_compile ()
1698{
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext
1701 if { { ac_try="$ac_compile"
1702case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_compile") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_cxx_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest.$ac_objext; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001728 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001729
1730} # ac_fn_cxx_try_compile
1731
1732# ac_fn_c_try_link LINENO
1733# -----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded.
1735ac_fn_c_try_link ()
1736{
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 rm -f conftest.$ac_objext conftest$ac_exeext
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>conftest.err
1747 ac_status=$?
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1752 fi
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && {
1755 test -z "$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1757 } && test -s conftest$ac_exeext && {
1758 test "$cross_compiling" = yes ||
1759 $as_test_x conftest$ac_exeext
1760 }; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1770 # interfere with the next link command; also delete a directory that is
1771 # left behind by Apple's compiler. We do this before executing the actions.
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001774 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001775
1776} # ac_fn_c_try_link
1777
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
1787if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1789else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797else
1798 eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_compile
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001847 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_func LINENO FUNC VAR
1852# ----------------------------------
1853# Tests whether FUNC exists, setting the cache variable VAR accordingly
1854ac_fn_c_check_func ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858$as_echo_n "checking for $2... " >&6; }
1859if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1861else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863/* end confdefs.h. */
1864/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866#define $2 innocuous_$2
1867
1868/* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (); below.
1870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1871 <limits.h> exists even on freestanding compilers. */
1872
1873#ifdef __STDC__
1874# include <limits.h>
1875#else
1876# include <assert.h>
1877#endif
1878
1879#undef $2
1880
1881/* Override any GCC internal prototype to avoid an error.
1882 Use char because int might match the return type of a GCC
1883 builtin and then its argument prototype would still apply. */
1884#ifdef __cplusplus
1885extern "C"
1886#endif
1887char $2 ();
1888/* The GNU C library defines this for functions which it implements
1889 to always fail with ENOSYS. Some functions are actually named
1890 something starting with __ and the normal name is an alias. */
1891#if defined __stub_$2 || defined __stub___$2
1892choke me
1893#endif
1894
1895int
1896main ()
1897{
1898return $2 ();
1899 ;
1900 return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_link "$LINENO"; then :
1904 eval "$3=yes"
1905else
1906 eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext \
1909 conftest$ac_exeext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_func
1917
1918# ac_fn_cxx_try_cpp LINENO
1919# ------------------------
1920# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921ac_fn_cxx_try_cpp ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_cpp conftest.$ac_ext"
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } >/dev/null && {
1940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 }; then :
1943 ac_retval=0
1944else
1945 $as_echo "$as_me: failed program was:" >&5
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=1
1949fi
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001951 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001952
1953} # ac_fn_cxx_try_cpp
1954
1955# ac_fn_cxx_try_link LINENO
1956# -------------------------
1957# Try to link conftest.$ac_ext, and return whether this succeeded.
1958ac_fn_cxx_try_link ()
1959{
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext conftest$ac_exeext
1962 if { { ac_try="$ac_link"
1963case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1975 fi
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest$ac_exeext && {
1981 test "$cross_compiling" = yes ||
1982 $as_test_x conftest$ac_exeext
1983 }; then :
1984 ac_retval=0
1985else
1986 $as_echo "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990fi
1991 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993 # interfere with the next link command; also delete a directory that is
1994 # left behind by Apple's compiler. We do this before executing the actions.
1995 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001997 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001998
1999} # ac_fn_cxx_try_link
mmentovai8c2a4de2006-09-20 16:20:15 +00002000cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002001This file contains any messages produced by compilers while
2002running configure, to aid debugging if configure makes a mistake.
2003
mmentovaie5dc6082007-02-14 19:51:05 +00002004It was created by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +00002005generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002006
2007 $ $0 $@
2008
2009_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002010exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002011{
2012cat <<_ASUNAME
2013## --------- ##
2014## Platform. ##
2015## --------- ##
2016
2017hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2018uname -m = `(uname -m) 2>/dev/null || echo unknown`
2019uname -r = `(uname -r) 2>/dev/null || echo unknown`
2020uname -s = `(uname -s) 2>/dev/null || echo unknown`
2021uname -v = `(uname -v) 2>/dev/null || echo unknown`
2022
2023/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2024/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2025
2026/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2027/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2028/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002029/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002030/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2031/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2032/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033
2034_ASUNAME
2035
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039 IFS=$as_save_IFS
2040 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002041 $as_echo "PATH: $as_dir"
2042 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002043IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002044
2045} >&5
2046
2047cat >&5 <<_ACEOF
2048
2049
2050## ----------- ##
2051## Core tests. ##
2052## ----------- ##
2053
2054_ACEOF
2055
2056
2057# Keep a trace of the command line.
2058# Strip out --no-create and --no-recursion so they do not pile up.
2059# Strip out --silent because we don't want to record it for future runs.
2060# Also quote any args containing shell meta-characters.
2061# Make two passes to allow for proper duplicate-argument suppression.
2062ac_configure_args=
2063ac_configure_args0=
2064ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002065ac_must_keep_next=false
2066for ac_pass in 1 2
2067do
2068 for ac_arg
2069 do
2070 case $ac_arg in
2071 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2073 | -silent | --silent | --silen | --sile | --sil)
2074 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002075 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002076 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002077 esac
2078 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002079 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002080 2)
jimblandy92b1f832009-12-23 22:23:49 +00002081 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002082 if test $ac_must_keep_next = true; then
2083 ac_must_keep_next=false # Got value, back to normal.
2084 else
2085 case $ac_arg in
2086 *=* | --config-cache | -C | -disable-* | --disable-* \
2087 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2088 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2089 | -with-* | --with-* | -without-* | --without-* | --x)
2090 case "$ac_configure_args0 " in
2091 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2092 esac
2093 ;;
2094 -* ) ac_must_keep_next=true ;;
2095 esac
2096 fi
jimblandy92b1f832009-12-23 22:23:49 +00002097 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002098 ;;
2099 esac
2100 done
2101done
jimblandy92b1f832009-12-23 22:23:49 +00002102{ ac_configure_args0=; unset ac_configure_args0;}
2103{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002104
2105# When interrupted or exit'd, cleanup temporary files, and complete
2106# config.log. We remove comments because anyway the quotes in there
2107# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002108# WARNING: Use '\'' to represent an apostrophe within the trap.
2109# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002110trap 'exit_status=$?
2111 # Save into config.log some information that might help in debugging.
2112 {
2113 echo
2114
2115 cat <<\_ASBOX
2116## ---------------- ##
2117## Cache variables. ##
2118## ---------------- ##
2119_ASBOX
2120 echo
2121 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002122(
2123 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2124 eval ac_val=\$$ac_var
2125 case $ac_val in #(
2126 *${as_nl}*)
2127 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002130 esac
2131 case $ac_var in #(
2132 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2134 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002135 esac ;;
2136 esac
2137 done
brynercb91a2f2006-08-25 21:14:45 +00002138 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002139 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2140 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002141 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002142 "s/'\''/'\''\\\\'\'''\''/g;
2143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2144 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002145 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002147 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002148 esac |
2149 sort
2150)
brynercb91a2f2006-08-25 21:14:45 +00002151 echo
2152
2153 cat <<\_ASBOX
2154## ----------------- ##
2155## Output variables. ##
2156## ----------------- ##
2157_ASBOX
2158 echo
2159 for ac_var in $ac_subst_vars
2160 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002161 eval ac_val=\$$ac_var
2162 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002164 esac
jimblandy92b1f832009-12-23 22:23:49 +00002165 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002166 done | sort
2167 echo
2168
2169 if test -n "$ac_subst_files"; then
2170 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00002171## ------------------- ##
2172## File substitutions. ##
2173## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002174_ASBOX
2175 echo
2176 for ac_var in $ac_subst_files
2177 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002178 eval ac_val=\$$ac_var
2179 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002180 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002181 esac
jimblandy92b1f832009-12-23 22:23:49 +00002182 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002183 done | sort
2184 echo
2185 fi
2186
2187 if test -s confdefs.h; then
2188 cat <<\_ASBOX
2189## ----------- ##
2190## confdefs.h. ##
2191## ----------- ##
2192_ASBOX
2193 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002194 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002195 echo
2196 fi
2197 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002198 $as_echo "$as_me: caught signal $ac_signal"
2199 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002200 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002201 rm -f core *.core core.conftest.* &&
2202 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002203 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002204' 0
brynercb91a2f2006-08-25 21:14:45 +00002205for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002206 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002207done
2208ac_signal=0
2209
2210# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002211rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002212
jimblandy92b1f832009-12-23 22:23:49 +00002213$as_echo "/* confdefs.h */" > confdefs.h
2214
brynercb91a2f2006-08-25 21:14:45 +00002215# Predefined preprocessor variables.
2216
2217cat >>confdefs.h <<_ACEOF
2218#define PACKAGE_NAME "$PACKAGE_NAME"
2219_ACEOF
2220
brynercb91a2f2006-08-25 21:14:45 +00002221cat >>confdefs.h <<_ACEOF
2222#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2223_ACEOF
2224
brynercb91a2f2006-08-25 21:14:45 +00002225cat >>confdefs.h <<_ACEOF
2226#define PACKAGE_VERSION "$PACKAGE_VERSION"
2227_ACEOF
2228
brynercb91a2f2006-08-25 21:14:45 +00002229cat >>confdefs.h <<_ACEOF
2230#define PACKAGE_STRING "$PACKAGE_STRING"
2231_ACEOF
2232
brynercb91a2f2006-08-25 21:14:45 +00002233cat >>confdefs.h <<_ACEOF
2234#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2235_ACEOF
2236
jimblandy92b1f832009-12-23 22:23:49 +00002237cat >>confdefs.h <<_ACEOF
2238#define PACKAGE_URL "$PACKAGE_URL"
2239_ACEOF
2240
brynercb91a2f2006-08-25 21:14:45 +00002241
2242# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002243# Prefer an explicitly selected file to automatically selected ones.
2244ac_site_file1=NONE
2245ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002246if test -n "$CONFIG_SITE"; then
jimblandy92b1f832009-12-23 22:23:49 +00002247 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002248elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002249 ac_site_file1=$prefix/share/config.site
2250 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002251else
jimblandy92b1f832009-12-23 22:23:49 +00002252 ac_site_file1=$ac_default_prefix/share/config.site
2253 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002254fi
jimblandy92b1f832009-12-23 22:23:49 +00002255for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002256do
jimblandy92b1f832009-12-23 22:23:49 +00002257 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002258 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2260$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002261 sed 's/^/| /' "$ac_site_file" >&5
2262 . "$ac_site_file"
2263 fi
2264done
2265
2266if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002267 # Some versions of bash will fail to source /dev/null (special files
2268 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2269 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002272 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002273 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002275 esac
2276 fi
2277else
jimblandy92b1f832009-12-23 22:23:49 +00002278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002280 >$cache_file
2281fi
2282
2283# Check that the precious variables saved in the cache have kept the same
2284# value.
2285ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002286for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2288 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002289 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2290 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002291 case $ac_old_set,$ac_new_set in
2292 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2294$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002295 ac_cache_corrupted=: ;;
2296 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2298$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002299 ac_cache_corrupted=: ;;
2300 ,);;
2301 *)
2302 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002303 # differences in whitespace do not lead to failure.
2304 ac_old_val_w=`echo x $ac_old_val`
2305 ac_new_val_w=`echo x $ac_new_val`
2306 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2308$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2309 ac_cache_corrupted=:
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2312$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2313 eval $ac_var=\$ac_old_val
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2316$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2318$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002319 fi;;
2320 esac
2321 # Pass precious variables to config.status.
2322 if test "$ac_new_set" = set; then
2323 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002324 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002325 *) ac_arg=$ac_var=$ac_new_val ;;
2326 esac
2327 case " $ac_configure_args " in
2328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002329 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002330 esac
2331 fi
2332done
2333if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2337$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2338 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002339fi
jimblandy92b1f832009-12-23 22:23:49 +00002340## -------------------- ##
2341## Main body of script. ##
2342## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002343
brynercb91a2f2006-08-25 21:14:45 +00002344ac_ext=c
2345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350
2351
brynercb91a2f2006-08-25 21:14:45 +00002352ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002353for ac_dir in autotools "$srcdir"/autotools; do
jimblandy92b1f832009-12-23 22:23:49 +00002354 for ac_t in install-sh install.sh shtool; do
2355 if test -f "$ac_dir/$ac_t"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/$ac_t -c"
2358 break 2
2359 fi
2360 done
brynercb91a2f2006-08-25 21:14:45 +00002361done
2362if test -z "$ac_aux_dir"; then
jimblandy92b1f832009-12-23 22:23:49 +00002363 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002364fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002365
2366# These three variables are undocumented and unsupported,
2367# and are intended to be withdrawn in a future Autoconf release.
2368# They can cause serious problems if a builder's source tree is in a directory
2369# whose full name contains unusual characters.
2370ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2373
brynercb91a2f2006-08-25 21:14:45 +00002374
mmentovai425d2562006-08-30 20:05:05 +00002375
jimblandy92b1f832009-12-23 22:23:49 +00002376am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002377
brynercb91a2f2006-08-25 21:14:45 +00002378# Find a good install program. We prefer a C program (faster),
2379# so one script is as good as another. But avoid the broken or
2380# incompatible versions:
2381# SysV /etc/install, /usr/sbin/install
2382# SunOS /usr/etc/install
2383# IRIX /sbin/install
2384# AIX /bin/install
2385# AmigaOS /C/install, which installs bootblocks on floppy discs
2386# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389# OS/2's system install, which has a completely different semantic
2390# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002391# Reject install programs that cannot install multiple files.
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002394if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002395if test "${ac_cv_path_install+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002397else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002403 # Account for people who put trailing slashes in PATH elements.
2404case $as_dir/ in #((
2405 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002407 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002408 /usr/ucb/* ) ;;
2409 *)
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2412 # by default.
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002415 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2419 :
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2423 :
2424 else
jimblandy92b1f832009-12-23 22:23:49 +00002425 rm -rf conftest.one conftest.two conftest.dir
2426 echo one > conftest.one
2427 echo two > conftest.two
2428 mkdir conftest.dir
2429 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430 test -s conftest.one && test -s conftest.two &&
2431 test -s conftest.dir/conftest.one &&
2432 test -s conftest.dir/conftest.two
2433 then
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2436 fi
brynercb91a2f2006-08-25 21:14:45 +00002437 fi
2438 fi
2439 done
2440 done
2441 ;;
2442esac
jimblandy92b1f832009-12-23 22:23:49 +00002443
2444 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002445IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002446
jimblandy92b1f832009-12-23 22:23:49 +00002447rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002448
2449fi
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2452 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002453 # As a last resort, use the slow shell script. Don't cache a
2454 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002455 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002456 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002457 INSTALL=$ac_install_sh
2458 fi
2459fi
jimblandy92b1f832009-12-23 22:23:49 +00002460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002462
2463# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464# It thinks the first close brace ends the variable substitution.
2465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2466
2467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2468
2469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2470
jimblandy92b1f832009-12-23 22:23:49 +00002471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002473# Just in case
2474sleep 1
2475echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002476# Reject unsafe characters in $srcdir or the absolute working directory
2477# name. Accept space and tab only in the latter.
2478am_lf='
2479'
2480case `pwd` in
2481 *[\\\"\#\$\&\'\`$am_lf]*)
2482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2483esac
2484case $srcdir in
2485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487esac
2488
brynercb91a2f2006-08-25 21:14:45 +00002489# Do `set' in a subshell so we don't clobber the current shell's
2490# arguments. Must try -L first in case configure is actually a
2491# symlink; some systems play weird games with the mod time of symlinks
2492# (eg FreeBSD returns the mod time of the symlink's containing
2493# directory).
2494if (
jimblandy92b1f832009-12-23 22:23:49 +00002495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002496 if test "$*" = "X"; then
2497 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002498 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002499 fi
2500 rm -f conftest.file
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2503
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
jimblandy92b1f832009-12-23 22:23:49 +00002508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2509alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002510 fi
2511
2512 test "$2" = conftest.file
2513 )
2514then
2515 # Ok.
2516 :
2517else
jimblandy92b1f832009-12-23 22:23:49 +00002518 as_fn_error "newly created file is older than distributed files!
2519Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002520fi
jimblandy92b1f832009-12-23 22:23:49 +00002521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002523test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002524 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002525# Use a double $ so make ignores it.
2526test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002527 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002528# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002529# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002530ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2531program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002532
2533# expand $ac_aux_dir to an absolute path
2534am_aux_dir=`cd $ac_aux_dir && pwd`
2535
jimblandy92b1f832009-12-23 22:23:49 +00002536if test x"${MISSING+set}" != xset; then
2537 case $am_aux_dir in
2538 *\ * | *\ *)
2539 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540 *)
2541 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2542 esac
2543fi
brynercb91a2f2006-08-25 21:14:45 +00002544# Use eval to expand $SHELL
2545if eval "$MISSING --run true"; then
2546 am_missing_run="$MISSING --run "
2547else
2548 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2550$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002551fi
2552
jimblandy92b1f832009-12-23 22:23:49 +00002553if test x"${install_sh}" != xset; then
2554 case $am_aux_dir in
2555 *\ * | *\ *)
2556 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557 *)
2558 install_sh="\${SHELL} $am_aux_dir/install-sh"
2559 esac
2560fi
2561
2562# Installed binaries are usually stripped using `strip' when the user
2563# run `make install-strip'. However `strip' might not be the right
2564# tool to use in cross-compilation environments, therefore Automake
2565# will honor the `STRIP' environment variable to overrule this program.
2566if test "$cross_compiling" != no; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}strip; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if test "${ac_cv_prog_STRIP+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 if test -n "$STRIP"; then
2576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590 done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595STRIP=$ac_cv_prog_STRIP
2596if test -n "$STRIP"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2598$as_echo "$STRIP" >&6; }
2599else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604
2605fi
2606if test -z "$ac_cv_prog_STRIP"; then
2607 ac_ct_STRIP=$STRIP
2608 # Extract the first word of "strip", so it can be a program name with args.
2609set dummy strip; ac_word=$2
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611$as_echo_n "checking for $ac_word... " >&6; }
2612if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2614else
2615 if test -n "$ac_ct_STRIP"; then
2616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2617else
2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_STRIP="strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629done
2630 done
2631IFS=$as_save_IFS
2632
2633fi
2634fi
2635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2636if test -n "$ac_ct_STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2638$as_echo "$ac_ct_STRIP" >&6; }
2639else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641$as_echo "no" >&6; }
2642fi
2643
2644 if test "x$ac_ct_STRIP" = x; then
2645 STRIP=":"
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648yes:)
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651ac_tool_warned=yes ;;
2652esac
2653 STRIP=$ac_ct_STRIP
2654 fi
2655else
2656 STRIP="$ac_cv_prog_STRIP"
2657fi
2658
2659fi
2660INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2663$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002664if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002665 if test "${ac_cv_path_mkdir+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002667else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002673 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2676 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2677 'mkdir (GNU coreutils) '* | \
2678 'mkdir (coreutils) '* | \
2679 'mkdir (fileutils) '4.1*)
2680 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2681 break 3;;
2682 esac
2683 done
2684 done
jimblandy92b1f832009-12-23 22:23:49 +00002685 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002686IFS=$as_save_IFS
2687
2688fi
2689
jimblandydc4029a2010-02-02 17:39:51 +00002690 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002691 if test "${ac_cv_path_mkdir+set}" = set; then
2692 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002693 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002694 # As a last resort, use the slow shell script. Don't cache a
2695 # value for MKDIR_P within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002698 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002699 fi
2700fi
jimblandy92b1f832009-12-23 22:23:49 +00002701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2702$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002703
2704mkdir_p="$MKDIR_P"
2705case $mkdir_p in
2706 [\\/$]* | ?:[\\/]*) ;;
2707 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2708esac
brynercb91a2f2006-08-25 21:14:45 +00002709
2710for ac_prog in gawk mawk nawk awk
2711do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if test "${ac_cv_prog_AWK+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002718else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002727 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002729 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002731 break 2
2732 fi
2733done
jimblandy92b1f832009-12-23 22:23:49 +00002734 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002735IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002736
2737fi
2738fi
2739AWK=$ac_cv_prog_AWK
2740if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002743else
jimblandy92b1f832009-12-23 22:23:49 +00002744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002746fi
2747
mmentovai8c2a4de2006-09-20 16:20:15 +00002748
brynercb91a2f2006-08-25 21:14:45 +00002749 test -n "$AWK" && break
2750done
2751
jimblandy92b1f832009-12-23 22:23:49 +00002752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2754set x ${MAKE-make}
2755ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002758else
2759 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002760SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002761all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002762 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002763_ACEOF
2764# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002765case `${MAKE-make} -f conftest.make 2>/dev/null` in
2766 *@@@%%%=?*=@@@%%%*)
2767 eval ac_cv_prog_make_${ac_make}_set=yes;;
2768 *)
2769 eval ac_cv_prog_make_${ac_make}_set=no;;
2770esac
brynercb91a2f2006-08-25 21:14:45 +00002771rm -f conftest.make
2772fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002773if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002776 SET_MAKE=
2777else
jimblandy92b1f832009-12-23 22:23:49 +00002778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002780 SET_MAKE="MAKE=${MAKE-make}"
2781fi
2782
2783rm -rf .tst 2>/dev/null
2784mkdir .tst 2>/dev/null
2785if test -d .tst; then
2786 am__leading_dot=.
2787else
2788 am__leading_dot=_
2789fi
2790rmdir .tst 2>/dev/null
2791
mmentovaiaf3c43f2007-05-17 18:34:37 +00002792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794 # is not polluted with repeated "-I."
2795 am__isrc=' -I$(srcdir)'
2796 # test to see if srcdir already configured
2797 if test -f $srcdir/config.status; then
jimblandy92b1f832009-12-23 22:23:49 +00002798 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002799 fi
brynercb91a2f2006-08-25 21:14:45 +00002800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804 if (cygpath --version) >/dev/null 2>/dev/null; then
2805 CYGPATH_W='cygpath -w'
2806 else
2807 CYGPATH_W=echo
2808 fi
2809fi
2810
2811
2812# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002813 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002814 VERSION='0.1'
2815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
brynercb91a2f2006-08-25 21:14:45 +00002842# We need awk for the "check" target. The system "awk" is bad on
2843# some platforms.
2844# Always define AMTAR for backward compatibility.
2845
2846AMTAR=${AMTAR-"${am_missing_run}tar"}
2847
mmentovaidb3342a2006-12-05 22:52:28 +00002848
jimblandy92b1f832009-12-23 22:23:49 +00002849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2850$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002851# Loop over all known methods to create a tar archive until one works.
2852_am_tools='gnutar plaintar pax cpio none'
2853_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2854# Do not fold the above two line into one, because Tru64 sh and
2855# Solaris sh will not grok spaces in the rhs of `-'.
2856for _am_tool in $_am_tools
2857do
2858 case $_am_tool in
2859 gnutar)
2860 for _am_tar in tar gnutar gtar;
2861 do
2862 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2863 ($_am_tar --version) >&5 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } && break
2867 done
2868 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2869 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2870 am__untar="$_am_tar -xf -"
2871 ;;
2872 plaintar)
2873 # Must skip GNU tar: if it does not support --format= it doesn't create
2874 # ustar tarball either.
2875 (tar --version) >/dev/null 2>&1 && continue
2876 am__tar='tar chf - "$$tardir"'
2877 am__tar_='tar chf - "$tardir"'
2878 am__untar='tar xf -'
2879 ;;
2880 pax)
2881 am__tar='pax -L -x ustar -w "$$tardir"'
2882 am__tar_='pax -L -x ustar -w "$tardir"'
2883 am__untar='pax -r'
2884 ;;
2885 cpio)
2886 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2887 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2888 am__untar='cpio -i -H ustar -d'
2889 ;;
2890 none)
2891 am__tar=false
2892 am__tar_=false
2893 am__untar=false
2894 ;;
2895 esac
2896
2897 # If the value was cached, stop now. We just wanted to have am__tar
2898 # and am__untar set.
2899 test -n "${am_cv_prog_tar_ustar}" && break
2900
2901 # tar/untar a dummy directory, and stop if the command works
2902 rm -rf conftest.dir
2903 mkdir conftest.dir
2904 echo GrepMe > conftest.dir/file
2905 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2906 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2910 rm -rf conftest.dir
2911 if test -s conftest.tar; then
2912 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2913 ($am__untar <conftest.tar) >&5 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2917 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2918 fi
2919done
2920rm -rf conftest.dir
2921
jimblandy92b1f832009-12-23 22:23:49 +00002922if test "${am_cv_prog_tar_ustar+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002924else
2925 am_cv_prog_tar_ustar=$_am_tool
2926fi
2927
jimblandy92b1f832009-12-23 22:23:49 +00002928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2929$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002930
2931
2932
2933
2934
mmentovai8c2a4de2006-09-20 16:20:15 +00002935ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002936
2937
brynercb91a2f2006-08-25 21:14:45 +00002938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_CC+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002950else
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002959 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00002961 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002963 break 2
2964 fi
2965done
jimblandy92b1f832009-12-23 22:23:49 +00002966 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002967IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002975else
jimblandy92b1f832009-12-23 22:23:49 +00002976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002978fi
2979
mmentovai8c2a4de2006-09-20 16:20:15 +00002980
brynercb91a2f2006-08-25 21:14:45 +00002981fi
2982if test -z "$ac_cv_prog_CC"; then
2983 ac_ct_CC=$CC
2984 # Extract the first word of "gcc", so it can be a program name with args.
2985set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
2988if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002990else
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002999 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003001 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003003 break 2
3004 fi
3005done
jimblandy92b1f832009-12-23 22:23:49 +00003006 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003007IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003008
3009fi
3010fi
3011ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003015else
jimblandy92b1f832009-12-23 22:23:49 +00003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003018fi
3019
mmentovai8c2a4de2006-09-20 16:20:15 +00003020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003027ac_tool_warned=yes ;;
3028esac
3029 CC=$ac_ct_CC
3030 fi
brynercb91a2f2006-08-25 21:14:45 +00003031else
3032 CC="$ac_cv_prog_CC"
3033fi
3034
3035if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003038set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040$as_echo_n "checking for $ac_word... " >&6; }
3041if test "${ac_cv_prog_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048for as_dir in $PATH
3049do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003052 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003054 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003056 break 2
3057 fi
3058done
jimblandy92b1f832009-12-23 22:23:49 +00003059 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003060IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003061
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003068else
jimblandy92b1f832009-12-23 22:23:49 +00003069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003071fi
3072
mmentovai8c2a4de2006-09-20 16:20:15 +00003073
brynercb91a2f2006-08-25 21:14:45 +00003074 fi
brynercb91a2f2006-08-25 21:14:45 +00003075fi
3076if test -z "$CC"; then
3077 # Extract the first word of "cc", so it can be a program name with args.
3078set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080$as_echo_n "checking for $ac_word... " >&6; }
3081if test "${ac_cv_prog_CC+set}" = set; then :
3082 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003083else
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3086else
3087 ac_prog_rejected=no
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003093 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096 ac_prog_rejected=yes
3097 continue
3098 fi
3099 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003101 break 2
3102 fi
3103done
jimblandy92b1f832009-12-23 22:23:49 +00003104 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003105IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003106
3107if test $ac_prog_rejected = yes; then
3108 # We found a bogon in the path, so make sure we never use it.
3109 set dummy $ac_cv_prog_CC
3110 shift
3111 if test $# != 0; then
3112 # We chose a different compiler from the bogus one.
3113 # However, it has the same basename, so the bogon will be chosen
3114 # first if we set CC to just the basename; use the full file name.
3115 shift
3116 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117 fi
3118fi
3119fi
3120fi
3121CC=$ac_cv_prog_CC
3122if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003125else
jimblandy92b1f832009-12-23 22:23:49 +00003126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003128fi
3129
mmentovai8c2a4de2006-09-20 16:20:15 +00003130
brynercb91a2f2006-08-25 21:14:45 +00003131fi
3132if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003134 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003135 do
3136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139$as_echo_n "checking for $ac_word... " >&6; }
3140if test "${ac_cv_prog_CC+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003142else
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC="$CC" # Let the user override the test.
3145else
3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147for as_dir in $PATH
3148do
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003151 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003155 break 2
3156 fi
3157done
jimblandy92b1f832009-12-23 22:23:49 +00003158 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003159IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003160
3161fi
3162fi
3163CC=$ac_cv_prog_CC
3164if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003167else
jimblandy92b1f832009-12-23 22:23:49 +00003168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003170fi
3171
mmentovai8c2a4de2006-09-20 16:20:15 +00003172
brynercb91a2f2006-08-25 21:14:45 +00003173 test -n "$CC" && break
3174 done
3175fi
3176if test -z "$CC"; then
3177 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003178 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003179do
3180 # Extract the first word of "$ac_prog", so it can be a program name with args.
3181set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003186else
3187 if test -n "$ac_ct_CC"; then
3188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003195 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00003197 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003199 break 2
3200 fi
3201done
jimblandy92b1f832009-12-23 22:23:49 +00003202 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003203IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003204
3205fi
3206fi
3207ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3210$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003211else
jimblandy92b1f832009-12-23 22:23:49 +00003212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003214fi
3215
mmentovai8c2a4de2006-09-20 16:20:15 +00003216
brynercb91a2f2006-08-25 21:14:45 +00003217 test -n "$ac_ct_CC" && break
3218done
3219
mmentovai8c2a4de2006-09-20 16:20:15 +00003220 if test "x$ac_ct_CC" = x; then
3221 CC=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003227ac_tool_warned=yes ;;
3228esac
3229 CC=$ac_ct_CC
3230 fi
brynercb91a2f2006-08-25 21:14:45 +00003231fi
3232
3233fi
3234
3235
jimblandy92b1f832009-12-23 22:23:49 +00003236test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error "no acceptable C compiler found in \$PATH
3239See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003240
3241# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003242$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3243set X $ac_compile
3244ac_compiler=$2
3245for ac_option in --version -v -V -qversion; do
3246 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
jimblandy92b1f832009-12-23 22:23:49 +00003251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003254 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003255 if test -s conftest.err; then
3256 sed '10a\
3257... rest of stderr output deleted ...
3258 10q' conftest.err >conftest.er1
3259 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003260 fi
jimblandydc4029a2010-02-02 17:39:51 +00003261 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3263 test $ac_status = 0; }
3264done
brynercb91a2f2006-08-25 21:14:45 +00003265
jimblandy92b1f832009-12-23 22:23:49 +00003266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003267/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003268
brynercb91a2f2006-08-25 21:14:45 +00003269int
3270main ()
3271{
3272
3273 ;
3274 return 0;
3275}
3276_ACEOF
3277ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003278ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003279# Try to create an executable without -o first, disregard a.out.
3280# It will help us diagnose broken compilers, and finding out an intuition
3281# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3283$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003284ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3285
3286# The possible output files:
3287ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3288
mmentovai8c2a4de2006-09-20 16:20:15 +00003289ac_rmfiles=
3290for ac_file in $ac_files
3291do
3292 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003294 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3295 esac
3296done
3297rm -f $ac_rmfiles
3298
jimblandy92b1f832009-12-23 22:23:49 +00003299if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
jimblandy92b1f832009-12-23 22:23:49 +00003304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003306 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003307 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003310 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3311# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3312# in a Makefile. We should not override ac_cv_exeext if it was cached,
3313# so that the user can short-circuit this test for compilers unknown to
3314# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003315for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003316do
3317 test -f "$ac_file" || continue
3318 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003320 ;;
3321 [ab].out )
3322 # We found the default executable, but exeext='' is most
3323 # certainly right.
3324 break;;
3325 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003326 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003327 then :; else
3328 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3329 fi
3330 # We set ac_cv_exeext here because the later test for it is not
3331 # safe: cross compilers may not add the suffix if given an `-o'
3332 # argument, so we may need to know it at that point already.
3333 # Even if this section looks crufty: it has the advantage of
3334 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003335 break;;
3336 * )
3337 break;;
3338 esac
3339done
mmentovai8c2a4de2006-09-20 16:20:15 +00003340test "$ac_cv_exeext" = no && ac_cv_exeext=
3341
brynercb91a2f2006-08-25 21:14:45 +00003342else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003343 ac_file=''
3344fi
jimblandy92b1f832009-12-23 22:23:49 +00003345if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003349sed 's/^/| /' conftest.$ac_ext >&5
3350
jimblandy92b1f832009-12-23 22:23:49 +00003351{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353{ as_fn_set_status 77
3354as_fn_error "C compiler cannot create executables
3355See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003356else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003359fi
jimblandydc4029a2010-02-02 17:39:51 +00003360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361$as_echo_n "checking for C compiler default output file name... " >&6; }
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003364ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003365
jimblandydc4029a2010-02-02 17:39:51 +00003366rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003367ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369$as_echo_n "checking for suffix of executables... " >&6; }
3370if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003371case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
jimblandy92b1f832009-12-23 22:23:49 +00003375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003377 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003378 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383# work properly (i.e., refer to `conftest.exe'), while it won't with
3384# `rm'.
3385for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003390 break;;
3391 * ) break;;
3392 esac
3393done
3394else
jimblandy92b1f832009-12-23 22:23:49 +00003395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397as_fn_error "cannot compute suffix of executables: cannot compile and link
3398See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003399fi
jimblandydc4029a2010-02-02 17:39:51 +00003400rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003403
3404rm -f conftest.$ac_ext
3405EXEEXT=$ac_cv_exeext
3406ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408/* end confdefs.h. */
3409#include <stdio.h>
3410int
3411main ()
3412{
3413FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3415
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420ac_clean_files="$ac_clean_files conftest.out"
3421# Check that the compiler produces executables we can run. If not, either
3422# the compiler is broken, or we cross compile.
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424$as_echo_n "checking whether we are cross compiling... " >&6; }
3425if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443$as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455as_fn_error "cannot run C compiled programs.
3456If you meant to cross compile, use \`--host'.
3457See \`config.log' for more details." "$LINENO" 5; }
3458 fi
3459 fi
3460fi
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462$as_echo "$cross_compiling" >&6; }
3463
3464rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467$as_echo_n "checking for suffix of object files... " >&6; }
3468if test "${ac_cv_objext+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003470else
jimblandy92b1f832009-12-23 22:23:49 +00003471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003472/* end confdefs.h. */
3473
3474int
3475main ()
3476{
3477
3478 ;
3479 return 0;
3480}
3481_ACEOF
3482rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003483if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
jimblandy92b1f832009-12-23 22:23:49 +00003488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003490 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003491 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003496 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501done
3502else
jimblandy92b1f832009-12-23 22:23:49 +00003503 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003504sed 's/^/| /' conftest.$ac_ext >&5
3505
jimblandy92b1f832009-12-23 22:23:49 +00003506{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508as_fn_error "cannot compute suffix of object files: cannot compile
3509See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003510fi
brynercb91a2f2006-08-25 21:14:45 +00003511rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512fi
jimblandy92b1f832009-12-23 22:23:49 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003515OBJEXT=$ac_cv_objext
3516ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003521else
jimblandy92b1f832009-12-23 22:23:49 +00003522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528#ifndef __GNUC__
3529 choke me
3530#endif
3531
3532 ;
3533 return 0;
3534}
3535_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003536if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003537 ac_compiler_gnu=yes
3538else
jimblandy92b1f832009-12-23 22:23:49 +00003539 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003540fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003542ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544fi
jimblandy92b1f832009-12-23 22:23:49 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549else
3550 GCC=
3551fi
brynercb91a2f2006-08-25 21:14:45 +00003552ac_test_CFLAGS=${CFLAGS+set}
3553ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555$as_echo_n "checking whether $CC accepts -g... " >&6; }
3556if test "${ac_cv_prog_cc_g+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003558else
mmentovai8c2a4de2006-09-20 16:20:15 +00003559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003564/* end confdefs.h. */
3565
3566int
3567main ()
3568{
3569
3570 ;
3571 return 0;
3572}
3573_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003574if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003575 ac_cv_prog_cc_g=yes
3576else
jimblandy92b1f832009-12-23 22:23:49 +00003577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003579/* end confdefs.h. */
3580
3581int
3582main ()
3583{
3584
3585 ;
3586 return 0;
3587}
3588_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003589if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003590
jimblandy92b1f832009-12-23 22:23:49 +00003591else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003593 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003595/* end confdefs.h. */
3596
3597int
3598main ()
3599{
3600
3601 ;
3602 return 0;
3603}
3604_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003605if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003606 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003607fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003609fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614fi
jimblandy92b1f832009-12-23 22:23:49 +00003615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003617if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631fi
jimblandy92b1f832009-12-23 22:23:49 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634if test "${ac_cv_prog_cc_c89+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003636else
mmentovai8c2a4de2006-09-20 16:20:15 +00003637 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003638ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003640/* end confdefs.h. */
3641#include <stdarg.h>
3642#include <stdio.h>
3643#include <sys/types.h>
3644#include <sys/stat.h>
3645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3646struct buf { int x; };
3647FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648static char *e (p, i)
3649 char **p;
3650 int i;
3651{
3652 return p[i];
3653}
3654static char *f (char * (*g) (char **, int), char **p, ...)
3655{
3656 char *s;
3657 va_list v;
3658 va_start (v,p);
3659 s = g (p, va_arg (v,int));
3660 va_end (v);
3661 return s;
3662}
3663
3664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3665 function prototypes and stuff, but not '\xHH' hex character constants.
3666 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003667 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3669 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003670 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3672
mmentovai8c2a4de2006-09-20 16:20:15 +00003673/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674 inside strings and character constants. */
3675#define FOO(x) 'x'
3676int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3677
brynercb91a2f2006-08-25 21:14:45 +00003678int test (int i, double x);
3679struct s1 {int (*f) (int a);};
3680struct s2 {int (*f) (double a);};
3681int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682int argc;
3683char **argv;
3684int
3685main ()
3686{
3687return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3688 ;
3689 return 0;
3690}
3691_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003692for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003694do
3695 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003696 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003697 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003698fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003699rm -f core conftest.err conftest.$ac_objext
3700 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003701done
mmentovai8c2a4de2006-09-20 16:20:15 +00003702rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003703CC=$ac_save_CC
3704
3705fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003706# AC_CACHE_VAL
3707case "x$ac_cv_prog_cc_c89" in
3708 x)
jimblandy92b1f832009-12-23 22:23:49 +00003709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003711 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3713$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003714 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003715 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3717$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003718esac
jimblandy92b1f832009-12-23 22:23:49 +00003719if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003720
jimblandy92b1f832009-12-23 22:23:49 +00003721fi
brynercb91a2f2006-08-25 21:14:45 +00003722
brynercb91a2f2006-08-25 21:14:45 +00003723ac_ext=c
3724ac_cpp='$CPP $CPPFLAGS'
3725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728DEPDIR="${am__leading_dot}deps"
3729
mmentovai8c2a4de2006-09-20 16:20:15 +00003730ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003731
3732
3733am_make=${MAKE-make}
3734cat > confinc << 'END'
3735am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003736 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003737.PHONY: am__doit
3738END
3739# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3741$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003742am__include="#"
3743am__quote=
3744_am_result=none
3745# First try GNU make style include.
3746echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003747# Ignore all kinds of additional output from `make'.
3748case `$am_make -s -f confmf 2> /dev/null` in #(
3749*the\ am__doit\ target*)
3750 am__include=include
3751 am__quote=
3752 _am_result=GNU
3753 ;;
3754esac
brynercb91a2f2006-08-25 21:14:45 +00003755# Now try BSD make style include.
3756if test "$am__include" = "#"; then
3757 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003758 case `$am_make -s -f confmf 2> /dev/null` in #(
3759 *the\ am__doit\ target*)
3760 am__include=.include
3761 am__quote="\""
3762 _am_result=BSD
3763 ;;
3764 esac
brynercb91a2f2006-08-25 21:14:45 +00003765fi
3766
3767
jimblandy92b1f832009-12-23 22:23:49 +00003768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3769$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003770rm -f confinc confmf
3771
mmentovai8c2a4de2006-09-20 16:20:15 +00003772# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003773if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003774 enableval=$enable_dependency_tracking;
3775fi
brynercb91a2f2006-08-25 21:14:45 +00003776
brynercb91a2f2006-08-25 21:14:45 +00003777if test "x$enable_dependency_tracking" != xno; then
3778 am_depcomp="$ac_aux_dir/depcomp"
3779 AMDEPBACKSLASH='\'
3780fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003781 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003782 AMDEP_TRUE=
3783 AMDEP_FALSE='#'
3784else
3785 AMDEP_TRUE='#'
3786 AMDEP_FALSE=
3787fi
3788
3789
3790
brynercb91a2f2006-08-25 21:14:45 +00003791depcc="$CC" am_compiler_list=
3792
jimblandy92b1f832009-12-23 22:23:49 +00003793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3794$as_echo_n "checking dependency style of $depcc... " >&6; }
3795if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003797else
3798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3799 # We make a subdir and do the tests there. Otherwise we can end up
3800 # making bogus files that we don't know about and never remove. For
3801 # instance it was reported that on HP-UX the gcc test will end up
3802 # making a dummy file named `D' -- because `-MD' means `put the output
3803 # in D'.
3804 mkdir conftest.dir
3805 # Copy depcomp to subdir because otherwise we won't find it if we're
3806 # using a relative directory.
3807 cp "$am_depcomp" conftest.dir
3808 cd conftest.dir
3809 # We will build objects and dependencies in a subdirectory because
3810 # it helps to detect inapplicable dependency modes. For instance
3811 # both Tru64's cc and ICC support -MD to output dependencies as a
3812 # side effect of compilation, but ICC will put the dependencies in
3813 # the current directory while Tru64 will put them in the object
3814 # directory.
3815 mkdir sub
3816
3817 am_cv_CC_dependencies_compiler_type=none
3818 if test "$am_compiler_list" = ""; then
3819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3820 fi
jimblandy92b1f832009-12-23 22:23:49 +00003821 am__universal=false
3822 case " $depcc " in #(
3823 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3824 esac
3825
brynercb91a2f2006-08-25 21:14:45 +00003826 for depmode in $am_compiler_list; do
3827 # Setup a source with many dependencies, because some compilers
3828 # like to wrap large dependency lists on column 80 (with \), and
3829 # we should not choose a depcomp mode which is confused by this.
3830 #
3831 # We need to recreate these files for each test, as the compiler may
3832 # overwrite some of them when testing with obscure command lines.
3833 # This happens at least with the AIX C compiler.
3834 : > sub/conftest.c
3835 for i in 1 2 3 4 5 6; do
3836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3837 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3838 # Solaris 8's {/usr,}/bin/sh.
3839 touch sub/conftst$i.h
3840 done
3841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842
jimblandy92b1f832009-12-23 22:23:49 +00003843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3844 # mode. It turns out that the SunPro C++ compiler does not properly
3845 # handle `-M -o', and we need to detect this. Also, some Intel
3846 # versions had trouble with output in subdirs
3847 am__obj=sub/conftest.${OBJEXT-o}
3848 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003849 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003850 gcc)
3851 # This depmode causes a compiler race in universal mode.
3852 test "$am__universal" = false || continue
3853 ;;
brynercb91a2f2006-08-25 21:14:45 +00003854 nosideeffect)
3855 # after this tag, mechanisms are not by side-effect, so they'll
3856 # only be used when explicitly requested
3857 if test "x$enable_dependency_tracking" = xyes; then
3858 continue
3859 else
3860 break
3861 fi
3862 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003863 msvisualcpp | msvcmsys)
3864 # This compiler won't grok `-c -o', but also, the minuso test has
3865 # not run yet. These depmodes are late enough in the game, and
3866 # so weak that their functioning should not be impacted.
3867 am__obj=conftest.${OBJEXT-o}
3868 am__minus_obj=
3869 ;;
brynercb91a2f2006-08-25 21:14:45 +00003870 none) break ;;
3871 esac
brynercb91a2f2006-08-25 21:14:45 +00003872 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003873 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003876 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3881 # icc doesn't choke on unknown options, it will just issue warnings
3882 # or remarks (even with -Werror). So we grep stderr for any message
3883 # that says an option was ignored or not supported.
3884 # When given -MP, icc 7.0 and 7.1 complain thusly:
3885 # icc: Command line warning: ignoring option '-M'; no argument required
3886 # The diagnosis changed in icc 8.0:
3887 # icc: Command line remark: option '-MP' not supported
3888 if (grep 'ignoring option' conftest.err ||
3889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3890 am_cv_CC_dependencies_compiler_type=$depmode
3891 break
3892 fi
3893 fi
3894 done
3895
3896 cd ..
3897 rm -rf conftest.dir
3898else
3899 am_cv_CC_dependencies_compiler_type=none
3900fi
3901
3902fi
jimblandy92b1f832009-12-23 22:23:49 +00003903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3904$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003905CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3906
mmentovaiaf3c43f2007-05-17 18:34:37 +00003907 if
brynercb91a2f2006-08-25 21:14:45 +00003908 test "x$enable_dependency_tracking" != xno \
3909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3910 am__fastdepCC_TRUE=
3911 am__fastdepCC_FALSE='#'
3912else
3913 am__fastdepCC_TRUE='#'
3914 am__fastdepCC_FALSE=
3915fi
3916
3917
3918ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3924$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003925# On Suns, sometimes $CPP names a directory.
3926if test -n "$CPP" && test -d "$CPP"; then
3927 CPP=
3928fi
3929if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003930 if test "${ac_cv_prog_CPP+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003932else
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3935 do
3936 ac_preproc_ok=false
3937for ac_c_preproc_warn_flag in '' yes
3938do
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003946/* end confdefs.h. */
3947#ifdef __STDC__
3948# include <limits.h>
3949#else
3950# include <assert.h>
3951#endif
3952 Syntax error
3953_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003954if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003955
jimblandy92b1f832009-12-23 22:23:49 +00003956else
brynercb91a2f2006-08-25 21:14:45 +00003957 # Broken: fails on valid input.
3958continue
3959fi
3960rm -f conftest.err conftest.$ac_ext
3961
mmentovai8c2a4de2006-09-20 16:20:15 +00003962 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003963 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003965/* end confdefs.h. */
3966#include <ac_nonexistent.h>
3967_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003968if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003969 # Broken: success on invalid input.
3970continue
3971else
brynercb91a2f2006-08-25 21:14:45 +00003972 # Passes both tests.
3973ac_preproc_ok=:
3974break
3975fi
3976rm -f conftest.err conftest.$ac_ext
3977
3978done
3979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00003981if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00003982 break
3983fi
3984
3985 done
3986 ac_cv_prog_CPP=$CPP
3987
3988fi
3989 CPP=$ac_cv_prog_CPP
3990else
3991 ac_cv_prog_CPP=$CPP
3992fi
jimblandy92b1f832009-12-23 22:23:49 +00003993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3994$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003995ac_preproc_ok=false
3996for ac_c_preproc_warn_flag in '' yes
3997do
3998 # Use a header file that comes with gcc, so configuring glibc
3999 # with a fresh cross-compiler works.
4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4001 # <limits.h> exists even on freestanding compilers.
4002 # On the NeXT, cc -E runs the code through the compiler's parser,
4003 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004005/* end confdefs.h. */
4006#ifdef __STDC__
4007# include <limits.h>
4008#else
4009# include <assert.h>
4010#endif
4011 Syntax error
4012_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004013if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004014
jimblandy92b1f832009-12-23 22:23:49 +00004015else
brynercb91a2f2006-08-25 21:14:45 +00004016 # Broken: fails on valid input.
4017continue
4018fi
4019rm -f conftest.err conftest.$ac_ext
4020
mmentovai8c2a4de2006-09-20 16:20:15 +00004021 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004022 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004024/* end confdefs.h. */
4025#include <ac_nonexistent.h>
4026_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004027if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004028 # Broken: success on invalid input.
4029continue
4030else
brynercb91a2f2006-08-25 21:14:45 +00004031 # Passes both tests.
4032ac_preproc_ok=:
4033break
4034fi
4035rm -f conftest.err conftest.$ac_ext
4036
4037done
4038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004040if $ac_preproc_ok; then :
4041
brynercb91a2f2006-08-25 21:14:45 +00004042else
jimblandy92b1f832009-12-23 22:23:49 +00004043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4045as_fn_error "C preprocessor \"$CPP\" fails sanity check
4046See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004047fi
4048
4049ac_ext=c
4050ac_cpp='$CPP $CPPFLAGS'
4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053ac_compiler_gnu=$ac_cv_c_compiler_gnu
4054
mmentovai8c2a4de2006-09-20 16:20:15 +00004055ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004056ac_cpp='$CXXCPP $CPPFLAGS'
4057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004060if test -z "$CXX"; then
4061 if test -n "$CCC"; then
4062 CXX=$CCC
4063 else
4064 if test -n "$ac_tool_prefix"; then
4065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004066 do
4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070$as_echo_n "checking for $ac_word... " >&6; }
4071if test "${ac_cv_prog_CXX+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004073else
4074 if test -n "$CXX"; then
4075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4076else
4077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078for as_dir in $PATH
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004082 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004086 break 2
4087 fi
4088done
jimblandy92b1f832009-12-23 22:23:49 +00004089 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004090IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004091
4092fi
4093fi
4094CXX=$ac_cv_prog_CXX
4095if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4097$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004098else
jimblandy92b1f832009-12-23 22:23:49 +00004099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004101fi
4102
mmentovai8c2a4de2006-09-20 16:20:15 +00004103
brynercb91a2f2006-08-25 21:14:45 +00004104 test -n "$CXX" && break
4105 done
4106fi
4107if test -z "$CXX"; then
4108 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
brynercb91a2f2006-08-25 21:14:45 +00004110do
4111 # Extract the first word of "$ac_prog", so it can be a program name with args.
4112set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114$as_echo_n "checking for $ac_word... " >&6; }
4115if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004117else
4118 if test -n "$ac_ct_CXX"; then
4119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4120else
4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004126 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
brynercb91a2f2006-08-25 21:14:45 +00004128 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004130 break 2
4131 fi
4132done
jimblandy92b1f832009-12-23 22:23:49 +00004133 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004134IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004135
4136fi
4137fi
4138ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4139if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4141$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004142else
jimblandy92b1f832009-12-23 22:23:49 +00004143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004145fi
4146
mmentovai8c2a4de2006-09-20 16:20:15 +00004147
brynercb91a2f2006-08-25 21:14:45 +00004148 test -n "$ac_ct_CXX" && break
4149done
brynercb91a2f2006-08-25 21:14:45 +00004150
mmentovai8c2a4de2006-09-20 16:20:15 +00004151 if test "x$ac_ct_CXX" = x; then
4152 CXX="g++"
4153 else
4154 case $cross_compiling:$ac_tool_warned in
4155yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004158ac_tool_warned=yes ;;
4159esac
4160 CXX=$ac_ct_CXX
4161 fi
brynercb91a2f2006-08-25 21:14:45 +00004162fi
4163
mmentovai8c2a4de2006-09-20 16:20:15 +00004164 fi
4165fi
brynercb91a2f2006-08-25 21:14:45 +00004166# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004167$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4168set X $ac_compile
4169ac_compiler=$2
4170for ac_option in --version -v -V -qversion; do
4171 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004172case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175esac
jimblandy92b1f832009-12-23 22:23:49 +00004176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177$as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004179 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004180 if test -s conftest.err; then
4181 sed '10a\
4182... rest of stderr output deleted ...
4183 10q' conftest.err >conftest.er1
4184 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004185 fi
jimblandydc4029a2010-02-02 17:39:51 +00004186 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4189done
brynercb91a2f2006-08-25 21:14:45 +00004190
jimblandy92b1f832009-12-23 22:23:49 +00004191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4192$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4193if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004195else
jimblandy92b1f832009-12-23 22:23:49 +00004196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004197/* end confdefs.h. */
4198
4199int
4200main ()
4201{
4202#ifndef __GNUC__
4203 choke me
4204#endif
4205
4206 ;
4207 return 0;
4208}
4209_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004210if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004211 ac_compiler_gnu=yes
4212else
jimblandy92b1f832009-12-23 22:23:49 +00004213 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004214fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004216ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4217
4218fi
jimblandy92b1f832009-12-23 22:23:49 +00004219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4220$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4221if test $ac_compiler_gnu = yes; then
4222 GXX=yes
4223else
4224 GXX=
4225fi
brynercb91a2f2006-08-25 21:14:45 +00004226ac_test_CXXFLAGS=${CXXFLAGS+set}
4227ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4229$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4230if test "${ac_cv_prog_cxx_g+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004232else
mmentovai8c2a4de2006-09-20 16:20:15 +00004233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4234 ac_cxx_werror_flag=yes
4235 ac_cv_prog_cxx_g=no
4236 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004238/* end confdefs.h. */
4239
4240int
4241main ()
4242{
4243
4244 ;
4245 return 0;
4246}
4247_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004248if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004249 ac_cv_prog_cxx_g=yes
4250else
jimblandy92b1f832009-12-23 22:23:49 +00004251 CXXFLAGS=""
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004253/* end confdefs.h. */
4254
4255int
4256main ()
4257{
4258
4259 ;
4260 return 0;
4261}
4262_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004263if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004264
jimblandy92b1f832009-12-23 22:23:49 +00004265else
4266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004267 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004269/* end confdefs.h. */
4270
4271int
4272main ()
4273{
4274
4275 ;
4276 return 0;
4277}
4278_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004279if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004280 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004281fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004283fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4288fi
jimblandy92b1f832009-12-23 22:23:49 +00004289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4290$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004291if test "$ac_test_CXXFLAGS" = set; then
4292 CXXFLAGS=$ac_save_CXXFLAGS
4293elif test $ac_cv_prog_cxx_g = yes; then
4294 if test "$GXX" = yes; then
4295 CXXFLAGS="-g -O2"
4296 else
4297 CXXFLAGS="-g"
4298 fi
4299else
4300 if test "$GXX" = yes; then
4301 CXXFLAGS="-O2"
4302 else
4303 CXXFLAGS=
4304 fi
4305fi
brynercb91a2f2006-08-25 21:14:45 +00004306ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312depcc="$CXX" am_compiler_list=
4313
jimblandy92b1f832009-12-23 22:23:49 +00004314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4315$as_echo_n "checking dependency style of $depcc... " >&6; }
4316if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004318else
4319 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4320 # We make a subdir and do the tests there. Otherwise we can end up
4321 # making bogus files that we don't know about and never remove. For
4322 # instance it was reported that on HP-UX the gcc test will end up
4323 # making a dummy file named `D' -- because `-MD' means `put the output
4324 # in D'.
4325 mkdir conftest.dir
4326 # Copy depcomp to subdir because otherwise we won't find it if we're
4327 # using a relative directory.
4328 cp "$am_depcomp" conftest.dir
4329 cd conftest.dir
4330 # We will build objects and dependencies in a subdirectory because
4331 # it helps to detect inapplicable dependency modes. For instance
4332 # both Tru64's cc and ICC support -MD to output dependencies as a
4333 # side effect of compilation, but ICC will put the dependencies in
4334 # the current directory while Tru64 will put them in the object
4335 # directory.
4336 mkdir sub
4337
4338 am_cv_CXX_dependencies_compiler_type=none
4339 if test "$am_compiler_list" = ""; then
4340 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4341 fi
jimblandy92b1f832009-12-23 22:23:49 +00004342 am__universal=false
4343 case " $depcc " in #(
4344 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4345 esac
4346
brynercb91a2f2006-08-25 21:14:45 +00004347 for depmode in $am_compiler_list; do
4348 # Setup a source with many dependencies, because some compilers
4349 # like to wrap large dependency lists on column 80 (with \), and
4350 # we should not choose a depcomp mode which is confused by this.
4351 #
4352 # We need to recreate these files for each test, as the compiler may
4353 # overwrite some of them when testing with obscure command lines.
4354 # This happens at least with the AIX C compiler.
4355 : > sub/conftest.c
4356 for i in 1 2 3 4 5 6; do
4357 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4358 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4359 # Solaris 8's {/usr,}/bin/sh.
4360 touch sub/conftst$i.h
4361 done
4362 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4363
jimblandy92b1f832009-12-23 22:23:49 +00004364 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4365 # mode. It turns out that the SunPro C++ compiler does not properly
4366 # handle `-M -o', and we need to detect this. Also, some Intel
4367 # versions had trouble with output in subdirs
4368 am__obj=sub/conftest.${OBJEXT-o}
4369 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004370 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004371 gcc)
4372 # This depmode causes a compiler race in universal mode.
4373 test "$am__universal" = false || continue
4374 ;;
brynercb91a2f2006-08-25 21:14:45 +00004375 nosideeffect)
4376 # after this tag, mechanisms are not by side-effect, so they'll
4377 # only be used when explicitly requested
4378 if test "x$enable_dependency_tracking" = xyes; then
4379 continue
4380 else
4381 break
4382 fi
4383 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004384 msvisualcpp | msvcmsys)
4385 # This compiler won't grok `-c -o', but also, the minuso test has
4386 # not run yet. These depmodes are late enough in the game, and
4387 # so weak that their functioning should not be impacted.
4388 am__obj=conftest.${OBJEXT-o}
4389 am__minus_obj=
4390 ;;
brynercb91a2f2006-08-25 21:14:45 +00004391 none) break ;;
4392 esac
brynercb91a2f2006-08-25 21:14:45 +00004393 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004394 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004395 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004396 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004397 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004398 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004399 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004400 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004401 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4402 # icc doesn't choke on unknown options, it will just issue warnings
4403 # or remarks (even with -Werror). So we grep stderr for any message
4404 # that says an option was ignored or not supported.
4405 # When given -MP, icc 7.0 and 7.1 complain thusly:
4406 # icc: Command line warning: ignoring option '-M'; no argument required
4407 # The diagnosis changed in icc 8.0:
4408 # icc: Command line remark: option '-MP' not supported
4409 if (grep 'ignoring option' conftest.err ||
4410 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4411 am_cv_CXX_dependencies_compiler_type=$depmode
4412 break
4413 fi
4414 fi
4415 done
4416
4417 cd ..
4418 rm -rf conftest.dir
4419else
4420 am_cv_CXX_dependencies_compiler_type=none
4421fi
4422
4423fi
jimblandy92b1f832009-12-23 22:23:49 +00004424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4425$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004426CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4427
mmentovaiaf3c43f2007-05-17 18:34:37 +00004428 if
brynercb91a2f2006-08-25 21:14:45 +00004429 test "x$enable_dependency_tracking" != xno \
4430 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4431 am__fastdepCXX_TRUE=
4432 am__fastdepCXX_FALSE='#'
4433else
4434 am__fastdepCXX_TRUE='#'
4435 am__fastdepCXX_FALSE=
4436fi
4437
4438
4439
jimblandy92b1f832009-12-23 22:23:49 +00004440case `pwd` in
4441 *\ * | *\ *)
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4443$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4444esac
brynercb91a2f2006-08-25 21:14:45 +00004445
mmentovai8c2a4de2006-09-20 16:20:15 +00004446
jimblandy92b1f832009-12-23 22:23:49 +00004447
jimblandydc4029a2010-02-02 17:39:51 +00004448macro_version='2.2.6b'
4449macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004450
mmentovai8c2a4de2006-09-20 16:20:15 +00004451
mmentovai8c2a4de2006-09-20 16:20:15 +00004452
brynercb91a2f2006-08-25 21:14:45 +00004453
jimblandy92b1f832009-12-23 22:23:49 +00004454
4455
4456
4457
4458
4459
4460
4461
4462
4463ltmain="$ac_aux_dir/ltmain.sh"
4464
brynercb91a2f2006-08-25 21:14:45 +00004465# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004466$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
jimblandy92b1f832009-12-23 22:23:49 +00004467 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004468
jimblandy92b1f832009-12-23 22:23:49 +00004469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4470$as_echo_n "checking build system type... " >&6; }
4471if test "${ac_cv_build+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004473else
mmentovai8c2a4de2006-09-20 16:20:15 +00004474 ac_build_alias=$build_alias
4475test "x$ac_build_alias" = x &&
4476 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4477test "x$ac_build_alias" = x &&
jimblandy92b1f832009-12-23 22:23:49 +00004478 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004479ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004480 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004481
4482fi
jimblandy92b1f832009-12-23 22:23:49 +00004483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4484$as_echo "$ac_cv_build" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004485case $ac_cv_build in
4486*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004487*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004488esac
brynercb91a2f2006-08-25 21:14:45 +00004489build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004490ac_save_IFS=$IFS; IFS='-'
4491set x $ac_cv_build
4492shift
4493build_cpu=$1
4494build_vendor=$2
4495shift; shift
4496# Remember, the first character of IFS is used to create $*,
4497# except with old shells:
4498build_os=$*
4499IFS=$ac_save_IFS
4500case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004501
4502
jimblandy92b1f832009-12-23 22:23:49 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4504$as_echo_n "checking host system type... " >&6; }
4505if test "${ac_cv_host+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004507else
mmentovai8c2a4de2006-09-20 16:20:15 +00004508 if test "x$host_alias" = x; then
4509 ac_cv_host=$ac_cv_build
4510else
4511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004512 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004513fi
brynercb91a2f2006-08-25 21:14:45 +00004514
4515fi
jimblandy92b1f832009-12-23 22:23:49 +00004516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4517$as_echo "$ac_cv_host" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004518case $ac_cv_host in
4519*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004520*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004521esac
brynercb91a2f2006-08-25 21:14:45 +00004522host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004523ac_save_IFS=$IFS; IFS='-'
4524set x $ac_cv_host
4525shift
4526host_cpu=$1
4527host_vendor=$2
4528shift; shift
4529# Remember, the first character of IFS is used to create $*,
4530# except with old shells:
4531host_os=$*
4532IFS=$ac_save_IFS
4533case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004534
4535
jimblandy92b1f832009-12-23 22:23:49 +00004536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4537$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4538if test "${ac_cv_path_SED+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004540else
jimblandy92b1f832009-12-23 22:23:49 +00004541 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4542 for ac_i in 1 2 3 4 5 6 7; do
4543 ac_script="$ac_script$as_nl$ac_script"
4544 done
4545 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4546 { ac_script=; unset ac_script;}
4547 if test -z "$SED"; then
4548 ac_path_SED_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004555 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004556 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004557 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4558 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4559# Check for GNU ac_path_SED and select it if it is found.
4560 # Check for GNU $ac_path_SED
4561case `"$ac_path_SED" --version 2>&1` in
4562*GNU*)
4563 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4564*)
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4568 do
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo '' >> "conftest.nl"
4573 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_SED_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_SED="$ac_path_SED"
4579 ac_path_SED_max=$ac_count
4580 fi
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585esac
4586
4587 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004588 done
4589 done
brynercb91a2f2006-08-25 21:14:45 +00004590 done
jimblandy92b1f832009-12-23 22:23:49 +00004591IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_SED"; then
4593 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4594 fi
4595else
4596 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004597fi
4598
jimblandy92b1f832009-12-23 22:23:49 +00004599fi
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4601$as_echo "$ac_cv_path_SED" >&6; }
4602 SED="$ac_cv_path_SED"
4603 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004604
jimblandy92b1f832009-12-23 22:23:49 +00004605test -z "$SED" && SED=sed
4606Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004607
jimblandy92b1f832009-12-23 22:23:49 +00004608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4619$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4620if test "${ac_cv_path_GREP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004622else
jimblandy92b1f832009-12-23 22:23:49 +00004623 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004624 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004627for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628do
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004631 for ac_prog in grep ggrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4635# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004636 # Check for GNU $ac_path_GREP
4637case `"$ac_path_GREP" --version 2>&1` in
4638*GNU*)
4639 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4640*)
4641 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004642 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004643 while :
4644 do
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004648 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004649 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004651 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004652 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_GREP="$ac_path_GREP"
4655 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004656 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4659 done
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661esac
4662
jimblandy92b1f832009-12-23 22:23:49 +00004663 $ac_path_GREP_found && break 3
4664 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004665 done
jimblandy92b1f832009-12-23 22:23:49 +00004666 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004667IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004668 if test -z "$ac_cv_path_GREP"; then
4669 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004671else
4672 ac_cv_path_GREP=$GREP
4673fi
4674
mmentovai8c2a4de2006-09-20 16:20:15 +00004675fi
jimblandy92b1f832009-12-23 22:23:49 +00004676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4677$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004678 GREP="$ac_cv_path_GREP"
4679
4680
jimblandy92b1f832009-12-23 22:23:49 +00004681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4682$as_echo_n "checking for egrep... " >&6; }
4683if test "${ac_cv_path_EGREP+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004685else
4686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4687 then ac_cv_path_EGREP="$GREP -E"
4688 else
jimblandy92b1f832009-12-23 22:23:49 +00004689 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004690 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004691 # Loop through the user's path and test for each of PROGNAME-LIST
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004693for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004697 for ac_prog in egrep; do
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4700 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4701# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004702 # Check for GNU $ac_path_EGREP
4703case `"$ac_path_EGREP" --version 2>&1` in
4704*GNU*)
4705 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4706*)
4707 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004708 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004709 while :
4710 do
4711 cat "conftest.in" "conftest.in" >"conftest.tmp"
4712 mv "conftest.tmp" "conftest.in"
4713 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004714 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004715 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004717 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004718 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4719 # Best one so far, save it but keep looking for a better one
4720 ac_cv_path_EGREP="$ac_path_EGREP"
4721 ac_path_EGREP_max=$ac_count
4722 fi
4723 # 10*(2^10) chars as input seems more than enough
4724 test $ac_count -gt 10 && break
4725 done
4726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4727esac
4728
jimblandy92b1f832009-12-23 22:23:49 +00004729 $ac_path_EGREP_found && break 3
4730 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004731 done
jimblandy92b1f832009-12-23 22:23:49 +00004732 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004733IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004734 if test -z "$ac_cv_path_EGREP"; then
4735 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004737else
4738 ac_cv_path_EGREP=$EGREP
4739fi
4740
jimblandy92b1f832009-12-23 22:23:49 +00004741 fi
4742fi
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4744$as_echo "$ac_cv_path_EGREP" >&6; }
4745 EGREP="$ac_cv_path_EGREP"
4746
4747
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4749$as_echo_n "checking for fgrep... " >&6; }
4750if test "${ac_cv_path_FGREP+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752else
4753 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4754 then ac_cv_path_FGREP="$GREP -F"
4755 else
4756 if test -z "$FGREP"; then
4757 ac_path_FGREP_found=false
4758 # Loop through the user's path and test for each of PROGNAME-LIST
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761do
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_prog in fgrep; do
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4767 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4768# Check for GNU ac_path_FGREP and select it if it is found.
4769 # Check for GNU $ac_path_FGREP
4770case `"$ac_path_FGREP" --version 2>&1` in
4771*GNU*)
4772 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4773*)
4774 ac_count=0
4775 $as_echo_n 0123456789 >"conftest.in"
4776 while :
4777 do
4778 cat "conftest.in" "conftest.in" >"conftest.tmp"
4779 mv "conftest.tmp" "conftest.in"
4780 cp "conftest.in" "conftest.nl"
4781 $as_echo 'FGREP' >> "conftest.nl"
4782 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4784 as_fn_arith $ac_count + 1 && ac_count=$as_val
4785 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4786 # Best one so far, save it but keep looking for a better one
4787 ac_cv_path_FGREP="$ac_path_FGREP"
4788 ac_path_FGREP_max=$ac_count
4789 fi
4790 # 10*(2^10) chars as input seems more than enough
4791 test $ac_count -gt 10 && break
4792 done
4793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794esac
4795
4796 $ac_path_FGREP_found && break 3
4797 done
4798 done
4799 done
4800IFS=$as_save_IFS
4801 if test -z "$ac_cv_path_FGREP"; then
4802 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 fi
4804else
4805 ac_cv_path_FGREP=$FGREP
4806fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004807
4808 fi
4809fi
jimblandy92b1f832009-12-23 22:23:49 +00004810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4811$as_echo "$ac_cv_path_FGREP" >&6; }
4812 FGREP="$ac_cv_path_FGREP"
4813
4814
4815test -z "$GREP" && GREP=grep
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
brynercb91a2f2006-08-25 21:14:45 +00004832
4833
4834
mmentovai8c2a4de2006-09-20 16:20:15 +00004835# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004836if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004837 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004838else
4839 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004840fi
4841
brynercb91a2f2006-08-25 21:14:45 +00004842ac_prog=ld
4843if test "$GCC" = yes; then
4844 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4846$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004847 case $host in
4848 *-*-mingw*)
4849 # gcc leaves a trailing carriage return which upsets mingw
4850 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4851 *)
4852 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4853 esac
4854 case $ac_prog in
4855 # Accept absolute paths.
4856 [\\/]* | ?:[\\/]*)
4857 re_direlt='/[^/][^/]*/\.\./'
4858 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004859 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4860 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4861 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004862 done
4863 test -z "$LD" && LD="$ac_prog"
4864 ;;
4865 "")
4866 # If it fails, then pretend we aren't using GCC.
4867 ac_prog=ld
4868 ;;
4869 *)
4870 # If it is relative, then search for the first ld in PATH.
4871 with_gnu_ld=unknown
4872 ;;
4873 esac
4874elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4876$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004877else
jimblandy92b1f832009-12-23 22:23:49 +00004878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4879$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004880fi
jimblandy92b1f832009-12-23 22:23:49 +00004881if test "${lt_cv_path_LD+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004883else
4884 if test -z "$LD"; then
4885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4886 for ac_dir in $PATH; do
4887 IFS="$lt_save_ifs"
4888 test -z "$ac_dir" && ac_dir=.
4889 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4890 lt_cv_path_LD="$ac_dir/$ac_prog"
4891 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004892 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004893 # Break only if it was the GNU/non-GNU ld that we prefer.
4894 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4895 *GNU* | *'with BFD'*)
4896 test "$with_gnu_ld" != no && break
4897 ;;
4898 *)
4899 test "$with_gnu_ld" != yes && break
4900 ;;
4901 esac
4902 fi
4903 done
4904 IFS="$lt_save_ifs"
4905else
4906 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4907fi
4908fi
4909
4910LD="$lt_cv_path_LD"
4911if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4913$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004914else
jimblandy92b1f832009-12-23 22:23:49 +00004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004917fi
jimblandy92b1f832009-12-23 22:23:49 +00004918test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4920$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4921if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004923else
mmentovai8c2a4de2006-09-20 16:20:15 +00004924 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004925case `$LD -v 2>&1 </dev/null` in
4926*GNU* | *'with BFD'*)
4927 lt_cv_prog_gnu_ld=yes
4928 ;;
4929*)
4930 lt_cv_prog_gnu_ld=no
4931 ;;
4932esac
4933fi
jimblandy92b1f832009-12-23 22:23:49 +00004934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4935$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004936with_gnu_ld=$lt_cv_prog_gnu_ld
4937
4938
brynercb91a2f2006-08-25 21:14:45 +00004939
jimblandy92b1f832009-12-23 22:23:49 +00004940
4941
4942
4943
4944
4945
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4947$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4948if test "${lt_cv_path_NM+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004950else
4951 if test -n "$NM"; then
4952 # Let the user override the test.
4953 lt_cv_path_NM="$NM"
4954else
mmentovai8c2a4de2006-09-20 16:20:15 +00004955 lt_nm_to_check="${ac_tool_prefix}nm"
4956 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4957 lt_nm_to_check="$lt_nm_to_check nm"
4958 fi
4959 for lt_tmp_nm in $lt_nm_to_check; do
4960 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4961 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4962 IFS="$lt_save_ifs"
4963 test -z "$ac_dir" && ac_dir=.
4964 tmp_nm="$ac_dir/$lt_tmp_nm"
4965 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4966 # Check to see if the nm accepts a BSD-compat flag.
4967 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4968 # nm: unknown option "B" ignored
4969 # Tru64's nm complains that /dev/null is an invalid object file
4970 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4971 */dev/null* | *'Invalid file or object type'*)
4972 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004973 break
4974 ;;
4975 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004976 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4977 */dev/null*)
4978 lt_cv_path_NM="$tmp_nm -p"
4979 break
4980 ;;
4981 *)
4982 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4983 continue # so that we can try to find one that supports BSD flags
4984 ;;
4985 esac
brynercb91a2f2006-08-25 21:14:45 +00004986 ;;
4987 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004988 fi
4989 done
4990 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004991 done
jimblandy92b1f832009-12-23 22:23:49 +00004992 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00004993fi
4994fi
jimblandy92b1f832009-12-23 22:23:49 +00004995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4996$as_echo "$lt_cv_path_NM" >&6; }
4997if test "$lt_cv_path_NM" != "no"; then
4998 NM="$lt_cv_path_NM"
4999else
5000 # Didn't find any BSD compatible name lister, look for dumpbin.
5001 if test -n "$ac_tool_prefix"; then
5002 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5003 do
5004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007$as_echo_n "checking for $ac_word... " >&6; }
5008if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010else
5011 if test -n "$DUMPBIN"; then
5012 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5013else
5014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015for as_dir in $PATH
5016do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025done
5026 done
5027IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005028
jimblandy92b1f832009-12-23 22:23:49 +00005029fi
5030fi
5031DUMPBIN=$ac_cv_prog_DUMPBIN
5032if test -n "$DUMPBIN"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5034$as_echo "$DUMPBIN" >&6; }
5035else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040
5041 test -n "$DUMPBIN" && break
5042 done
5043fi
5044if test -z "$DUMPBIN"; then
5045 ac_ct_DUMPBIN=$DUMPBIN
5046 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5047do
5048 # Extract the first word of "$ac_prog", so it can be a program name with args.
5049set dummy $ac_prog; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -n "$ac_ct_DUMPBIN"; then
5056 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5057else
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069done
5070 done
5071IFS=$as_save_IFS
5072
5073fi
5074fi
5075ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5076if test -n "$ac_ct_DUMPBIN"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5078$as_echo "$ac_ct_DUMPBIN" >&6; }
5079else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
5082fi
5083
5084
5085 test -n "$ac_ct_DUMPBIN" && break
5086done
5087
5088 if test "x$ac_ct_DUMPBIN" = x; then
5089 DUMPBIN=":"
5090 else
5091 case $cross_compiling:$ac_tool_warned in
5092yes:)
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095ac_tool_warned=yes ;;
5096esac
5097 DUMPBIN=$ac_ct_DUMPBIN
5098 fi
5099fi
5100
5101
5102 if test "$DUMPBIN" != ":"; then
5103 NM="$DUMPBIN"
5104 fi
5105fi
5106test -z "$NM" && NM=nm
5107
5108
5109
5110
5111
5112
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5114$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5115if test "${lt_cv_nm_interface+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117else
5118 lt_cv_nm_interface="BSD nm"
5119 echo "int some_variable = 0;" > conftest.$ac_ext
jimblandydc4029a2010-02-02 17:39:51 +00005120 (eval echo "\"\$as_me:5120: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005121 (eval "$ac_compile" 2>conftest.err)
5122 cat conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00005123 (eval echo "\"\$as_me:5123: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005124 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5125 cat conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00005126 (eval echo "\"\$as_me:5126: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005127 cat conftest.out >&5
5128 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5129 lt_cv_nm_interface="MS dumpbin"
5130 fi
5131 rm -f conftest*
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5134$as_echo "$lt_cv_nm_interface" >&6; }
5135
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5137$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005138LN_S=$as_ln_s
5139if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5141$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005142else
jimblandy92b1f832009-12-23 22:23:49 +00005143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5144$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005145fi
5146
jimblandy92b1f832009-12-23 22:23:49 +00005147# find the maximum length of command line arguments
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5149$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5150if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 i=0
5154 teststring="ABCD"
5155
5156 case $build_os in
5157 msdosdjgpp*)
5158 # On DJGPP, this test can blow up pretty badly due to problems in libc
5159 # (any single argument exceeding 2000 bytes causes a buffer overrun
5160 # during glob expansion). Even if it were fixed, the result of this
5161 # check would be larger than it should be.
5162 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5163 ;;
5164
5165 gnu*)
5166 # Under GNU Hurd, this test is not required because there is
5167 # no limit to the length of command line arguments.
5168 # Libtool will interpret -1 as no limit whatsoever
5169 lt_cv_sys_max_cmd_len=-1;
5170 ;;
5171
5172 cygwin* | mingw* | cegcc*)
5173 # On Win9x/ME, this test blows up -- it succeeds, but takes
5174 # about 5 minutes as the teststring grows exponentially.
5175 # Worse, since 9x/ME are not pre-emptively multitasking,
5176 # you end up with a "frozen" computer, even though with patience
5177 # the test eventually succeeds (with a max line length of 256k).
5178 # Instead, let's just punt: use the minimum linelength reported by
5179 # all of the supported platforms: 8192 (on NT/2K/XP).
5180 lt_cv_sys_max_cmd_len=8192;
5181 ;;
5182
5183 amigaos*)
5184 # On AmigaOS with pdksh, this test takes hours, literally.
5185 # So we just punt and use a minimum line length of 8192.
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
5189 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5190 # This has been around since 386BSD, at least. Likely further.
5191 if test -x /sbin/sysctl; then
5192 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5193 elif test -x /usr/sbin/sysctl; then
5194 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5195 else
5196 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5197 fi
5198 # And add a safety zone
5199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5201 ;;
5202
5203 interix*)
5204 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5205 lt_cv_sys_max_cmd_len=196608
5206 ;;
5207
5208 osf*)
5209 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5210 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5211 # nice to cause kernel panics so lets avoid the loop below.
5212 # First set a reasonable default.
5213 lt_cv_sys_max_cmd_len=16384
5214 #
5215 if test -x /sbin/sysconfig; then
5216 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5217 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5218 esac
5219 fi
5220 ;;
5221 sco3.2v5*)
5222 lt_cv_sys_max_cmd_len=102400
5223 ;;
5224 sysv5* | sco5v6* | sysv4.2uw2*)
5225 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5226 if test -n "$kargmax"; then
5227 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5228 else
5229 lt_cv_sys_max_cmd_len=32768
5230 fi
5231 ;;
5232 *)
5233 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5234 if test -n "$lt_cv_sys_max_cmd_len"; then
5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5237 else
5238 # Make teststring a little bigger before we do anything with it.
5239 # a 1K string should be a reasonable start.
5240 for i in 1 2 3 4 5 6 7 8 ; do
5241 teststring=$teststring$teststring
5242 done
5243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5244 # If test is not a shell built-in, we'll probably end up computing a
5245 # maximum length that is only half of the actual maximum length, but
5246 # we can't tell.
5247 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5248 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5249 test $i != 17 # 1/2 MB should be enough
5250 do
5251 i=`expr $i + 1`
5252 teststring=$teststring$teststring
5253 done
5254 # Only check the string length outside the loop.
5255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5256 teststring=
5257 # Add a significant safety factor because C++ compilers can tack on
5258 # massive amounts of additional arguments before passing them to the
5259 # linker. It appears as though 1/2 is a usable value.
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5261 fi
5262 ;;
5263 esac
5264
5265fi
5266
5267if test -n $lt_cv_sys_max_cmd_len ; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5269$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5270else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5272$as_echo "none" >&6; }
5273fi
5274max_cmd_len=$lt_cv_sys_max_cmd_len
5275
5276
5277
5278
5279
5280
5281: ${CP="cp -f"}
5282: ${MV="mv -f"}
5283: ${RM="rm -f"}
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5286$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5287# Try some XSI features
5288xsi_shell=no
5289( _lt_dummy="a/b/c"
5290 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5291 = c,a/b,, \
5292 && eval 'test $(( 1 + 1 )) -eq 2 \
5293 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5294 && xsi_shell=yes
5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5296$as_echo "$xsi_shell" >&6; }
5297
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5300$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5301lt_shell_append=no
5302( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5303 >/dev/null 2>&1 \
5304 && lt_shell_append=yes
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5306$as_echo "$lt_shell_append" >&6; }
5307
5308
5309if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5310 lt_unset=unset
5311else
5312 lt_unset=false
5313fi
5314
5315
5316
5317
5318
5319# test EBCDIC or ASCII
5320case `echo X|tr X '\101'` in
5321 A) # ASCII based system
5322 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5323 lt_SP2NL='tr \040 \012'
5324 lt_NL2SP='tr \015\012 \040\040'
5325 ;;
5326 *) # EBCDIC based system
5327 lt_SP2NL='tr \100 \n'
5328 lt_NL2SP='tr \r\n \100\100'
5329 ;;
5330esac
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5341$as_echo_n "checking for $LD option to reload object files... " >&6; }
5342if test "${lt_cv_ld_reload_flag+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344else
5345 lt_cv_ld_reload_flag='-r'
5346fi
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5348$as_echo "$lt_cv_ld_reload_flag" >&6; }
5349reload_flag=$lt_cv_ld_reload_flag
5350case $reload_flag in
5351"" | " "*) ;;
5352*) reload_flag=" $reload_flag" ;;
5353esac
5354reload_cmds='$LD$reload_flag -o $output$reload_objs'
5355case $host_os in
5356 darwin*)
5357 if test "$GCC" = yes; then
5358 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5359 else
5360 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361 fi
5362 ;;
5363esac
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373if test -n "$ac_tool_prefix"; then
5374 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5375set dummy ${ac_tool_prefix}objdump; ac_word=$2
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377$as_echo_n "checking for $ac_word... " >&6; }
5378if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380else
5381 if test -n "$OBJDUMP"; then
5382 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395done
5396 done
5397IFS=$as_save_IFS
5398
5399fi
5400fi
5401OBJDUMP=$ac_cv_prog_OBJDUMP
5402if test -n "$OBJDUMP"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5404$as_echo "$OBJDUMP" >&6; }
5405else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }
5408fi
5409
5410
5411fi
5412if test -z "$ac_cv_prog_OBJDUMP"; then
5413 ac_ct_OBJDUMP=$OBJDUMP
5414 # Extract the first word of "objdump", so it can be a program name with args.
5415set dummy objdump; ac_word=$2
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417$as_echo_n "checking for $ac_word... " >&6; }
5418if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5420else
5421 if test -n "$ac_ct_OBJDUMP"; then
5422 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435done
5436 done
5437IFS=$as_save_IFS
5438
5439fi
5440fi
5441ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5442if test -n "$ac_ct_OBJDUMP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5444$as_echo "$ac_ct_OBJDUMP" >&6; }
5445else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450 if test "x$ac_ct_OBJDUMP" = x; then
5451 OBJDUMP="false"
5452 else
5453 case $cross_compiling:$ac_tool_warned in
5454yes:)
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457ac_tool_warned=yes ;;
5458esac
5459 OBJDUMP=$ac_ct_OBJDUMP
5460 fi
5461else
5462 OBJDUMP="$ac_cv_prog_OBJDUMP"
5463fi
5464
5465test -z "$OBJDUMP" && OBJDUMP=objdump
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5476$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5477if test "${lt_cv_deplibs_check_method+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005479else
5480 lt_cv_file_magic_cmd='$MAGIC_CMD'
5481lt_cv_file_magic_test_file=
5482lt_cv_deplibs_check_method='unknown'
5483# Need to set the preceding variable on all platforms that support
5484# interlibrary dependencies.
5485# 'none' -- dependencies not supported.
5486# `unknown' -- same as none, but documents that we really don't know.
5487# 'pass_all' -- all dependencies passed with no checks.
5488# 'test_compile' -- check by making test program.
5489# 'file_magic [[regex]]' -- check by looking for files in library path
5490# which responds to the $file_magic_cmd with a given extended regex.
5491# If you have `file' or equivalent on your system and you're not sure
5492# whether `pass_all' will *always* work, you probably want this one.
5493
5494case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005495aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005496 lt_cv_deplibs_check_method=pass_all
5497 ;;
5498
5499beos*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
5502
mmentovai8c2a4de2006-09-20 16:20:15 +00005503bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5505 lt_cv_file_magic_cmd='/usr/bin/file -L'
5506 lt_cv_file_magic_test_file=/shlib/libc.so
5507 ;;
5508
5509cygwin*)
5510 # func_win32_libid is a shell function defined in ltmain.sh
5511 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5512 lt_cv_file_magic_cmd='func_win32_libid'
5513 ;;
5514
5515mingw* | pw32*)
5516 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005517 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5518 # unless we find 'file', for example because we are cross-compiling.
5519 if ( file / ) >/dev/null 2>&1; then
5520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5521 lt_cv_file_magic_cmd='func_win32_libid'
5522 else
5523 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5524 lt_cv_file_magic_cmd='$OBJDUMP -f'
5525 fi
brynercb91a2f2006-08-25 21:14:45 +00005526 ;;
5527
jimblandy92b1f832009-12-23 22:23:49 +00005528cegcc)
5529 # use the weaker test based on 'objdump'. See mingw*.
5530 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5531 lt_cv_file_magic_cmd='$OBJDUMP -f'
5532 ;;
5533
brynercb91a2f2006-08-25 21:14:45 +00005534darwin* | rhapsody*)
5535 lt_cv_deplibs_check_method=pass_all
5536 ;;
5537
ted.mielczarek1adb1842009-12-21 13:12:20 +00005538freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005539 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005540 case $host_cpu in
5541 i*86 )
5542 # Not sure whether the presence of OpenBSD here was a mistake.
5543 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005544 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
brynercb91a2f2006-08-25 21:14:45 +00005545 lt_cv_file_magic_cmd=/usr/bin/file
5546 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5547 ;;
5548 esac
5549 else
5550 lt_cv_deplibs_check_method=pass_all
5551 fi
5552 ;;
5553
5554gnu*)
5555 lt_cv_deplibs_check_method=pass_all
5556 ;;
5557
5558hpux10.20* | hpux11*)
5559 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005560 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005561 ia64*)
5562 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5563 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5564 ;;
5565 hppa*64*)
5566 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]'
5567 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5568 ;;
5569 *)
5570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5571 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5572 ;;
5573 esac
5574 ;;
5575
ted.mielczarek1adb1842009-12-21 13:12:20 +00005576interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005577 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5579 ;;
5580
brynercb91a2f2006-08-25 21:14:45 +00005581irix5* | irix6* | nonstopux*)
5582 case $LD in
5583 *-32|*"-32 ") libmagic=32-bit;;
5584 *-n32|*"-n32 ") libmagic=N32;;
5585 *-64|*"-64 ") libmagic=64-bit;;
5586 *) libmagic=never-match;;
5587 esac
5588 lt_cv_deplibs_check_method=pass_all
5589 ;;
5590
5591# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +00005592linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595
jimblandydc4029a2010-02-02 17:39:51 +00005596netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5599 else
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5601 fi
5602 ;;
5603
5604newos6*)
5605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5606 lt_cv_file_magic_cmd=/usr/bin/file
5607 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5608 ;;
5609
jimblandy92b1f832009-12-23 22:23:49 +00005610*nto* | *qnx*)
5611 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005612 ;;
5613
5614openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005617 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005619 fi
5620 ;;
5621
5622osf3* | osf4* | osf5*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625
ted.mielczarek1adb1842009-12-21 13:12:20 +00005626rdos*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
brynercb91a2f2006-08-25 21:14:45 +00005630solaris*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
jimblandy92b1f832009-12-23 22:23:49 +00005634sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
mmentovai8c2a4de2006-09-20 16:20:15 +00005638sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005639 case $host_vendor in
5640 motorola)
5641 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]'
5642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5643 ;;
5644 ncr)
5645 lt_cv_deplibs_check_method=pass_all
5646 ;;
5647 sequent)
5648 lt_cv_file_magic_cmd='/bin/file'
5649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5650 ;;
5651 sni)
5652 lt_cv_file_magic_cmd='/bin/file'
5653 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5654 lt_cv_file_magic_test_file=/lib/libc.so
5655 ;;
5656 siemens)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005659 pc)
5660 lt_cv_deplibs_check_method=pass_all
5661 ;;
brynercb91a2f2006-08-25 21:14:45 +00005662 esac
5663 ;;
5664
jimblandy92b1f832009-12-23 22:23:49 +00005665tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668esac
5669
5670fi
jimblandy92b1f832009-12-23 22:23:49 +00005671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5672$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005673file_magic_cmd=$lt_cv_file_magic_cmd
5674deplibs_check_method=$lt_cv_deplibs_check_method
5675test -z "$deplibs_check_method" && deplibs_check_method=unknown
5676
5677
5678
5679
jimblandy92b1f832009-12-23 22:23:49 +00005680
5681
5682
5683
5684
5685
5686
5687
5688if test -n "$ac_tool_prefix"; then
5689 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5690set dummy ${ac_tool_prefix}ar; ac_word=$2
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692$as_echo_n "checking for $ac_word... " >&6; }
5693if test "${ac_cv_prog_AR+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695else
5696 if test -n "$AR"; then
5697 ac_cv_prog_AR="$AR" # Let the user override the test.
5698else
5699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_AR="${ac_tool_prefix}ar"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710done
5711 done
5712IFS=$as_save_IFS
5713
5714fi
5715fi
5716AR=$ac_cv_prog_AR
5717if test -n "$AR"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5719$as_echo "$AR" >&6; }
5720else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722$as_echo "no" >&6; }
5723fi
5724
5725
5726fi
5727if test -z "$ac_cv_prog_AR"; then
5728 ac_ct_AR=$AR
5729 # Extract the first word of "ar", so it can be a program name with args.
5730set dummy ar; ac_word=$2
5731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732$as_echo_n "checking for $ac_word... " >&6; }
5733if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735else
5736 if test -n "$ac_ct_AR"; then
5737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5738else
5739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740for as_dir in $PATH
5741do
5742 IFS=$as_save_IFS
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_prog_ac_ct_AR="ar"
5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 break 2
5749 fi
5750done
5751 done
5752IFS=$as_save_IFS
5753
5754fi
5755fi
5756ac_ct_AR=$ac_cv_prog_ac_ct_AR
5757if test -n "$ac_ct_AR"; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5759$as_echo "$ac_ct_AR" >&6; }
5760else
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762$as_echo "no" >&6; }
5763fi
5764
5765 if test "x$ac_ct_AR" = x; then
5766 AR="false"
5767 else
5768 case $cross_compiling:$ac_tool_warned in
5769yes:)
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772ac_tool_warned=yes ;;
5773esac
5774 AR=$ac_ct_AR
5775 fi
5776else
5777 AR="$ac_cv_prog_AR"
5778fi
5779
5780test -z "$AR" && AR=ar
5781test -z "$AR_FLAGS" && AR_FLAGS=cru
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5795set dummy ${ac_tool_prefix}strip; ac_word=$2
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797$as_echo_n "checking for $ac_word... " >&6; }
5798if test "${ac_cv_prog_STRIP+set}" = set; then :
5799 $as_echo_n "(cached) " >&6
5800else
5801 if test -n "$STRIP"; then
5802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5803else
5804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805for as_dir in $PATH
5806do
5807 IFS=$as_save_IFS
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815done
5816 done
5817IFS=$as_save_IFS
5818
5819fi
5820fi
5821STRIP=$ac_cv_prog_STRIP
5822if test -n "$STRIP"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5824$as_echo "$STRIP" >&6; }
5825else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827$as_echo "no" >&6; }
5828fi
5829
5830
5831fi
5832if test -z "$ac_cv_prog_STRIP"; then
5833 ac_ct_STRIP=$STRIP
5834 # Extract the first word of "strip", so it can be a program name with args.
5835set dummy strip; ac_word=$2
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837$as_echo_n "checking for $ac_word... " >&6; }
5838if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840else
5841 if test -n "$ac_ct_STRIP"; then
5842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5843else
5844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845for as_dir in $PATH
5846do
5847 IFS=$as_save_IFS
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851 ac_cv_prog_ac_ct_STRIP="strip"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853 break 2
5854 fi
5855done
5856 done
5857IFS=$as_save_IFS
5858
5859fi
5860fi
5861ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5862if test -n "$ac_ct_STRIP"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5864$as_echo "$ac_ct_STRIP" >&6; }
5865else
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870 if test "x$ac_ct_STRIP" = x; then
5871 STRIP=":"
5872 else
5873 case $cross_compiling:$ac_tool_warned in
5874yes:)
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877ac_tool_warned=yes ;;
5878esac
5879 STRIP=$ac_ct_STRIP
5880 fi
5881else
5882 STRIP="$ac_cv_prog_STRIP"
5883fi
5884
5885test -z "$STRIP" && STRIP=:
5886
5887
5888
5889
5890
5891
5892if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5894set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896$as_echo_n "checking for $ac_word... " >&6; }
5897if test "${ac_cv_prog_RANLIB+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899else
5900 if test -n "$RANLIB"; then
5901 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5902else
5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904for as_dir in $PATH
5905do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914done
5915 done
5916IFS=$as_save_IFS
5917
5918fi
5919fi
5920RANLIB=$ac_cv_prog_RANLIB
5921if test -n "$RANLIB"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5923$as_echo "$RANLIB" >&6; }
5924else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }
5927fi
5928
5929
5930fi
5931if test -z "$ac_cv_prog_RANLIB"; then
5932 ac_ct_RANLIB=$RANLIB
5933 # Extract the first word of "ranlib", so it can be a program name with args.
5934set dummy ranlib; ac_word=$2
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936$as_echo_n "checking for $ac_word... " >&6; }
5937if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940 if test -n "$ac_ct_RANLIB"; then
5941 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_RANLIB="ranlib"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954done
5955 done
5956IFS=$as_save_IFS
5957
5958fi
5959fi
5960ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5961if test -n "$ac_ct_RANLIB"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5963$as_echo "$ac_ct_RANLIB" >&6; }
5964else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966$as_echo "no" >&6; }
5967fi
5968
5969 if test "x$ac_ct_RANLIB" = x; then
5970 RANLIB=":"
5971 else
5972 case $cross_compiling:$ac_tool_warned in
5973yes:)
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976ac_tool_warned=yes ;;
5977esac
5978 RANLIB=$ac_ct_RANLIB
5979 fi
5980else
5981 RANLIB="$ac_cv_prog_RANLIB"
5982fi
5983
5984test -z "$RANLIB" && RANLIB=:
5985
5986
5987
5988
5989
5990
5991# Determine commands to create old-style static archives.
5992old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5993old_postinstall_cmds='chmod 644 $oldlib'
5994old_postuninstall_cmds=
5995
5996if test -n "$RANLIB"; then
5997 case $host_os in
5998 openbsd*)
5999 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6000 ;;
6001 *)
6002 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6003 ;;
6004 esac
6005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6006fi
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
brynercb91a2f2006-08-25 21:14:45 +00006041# If no C compiler was specified, use CC.
6042LTCC=${LTCC-"$CC"}
6043
mmentovai8c2a4de2006-09-20 16:20:15 +00006044# If no C compiler flags were specified, use CFLAGS.
6045LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6046
brynercb91a2f2006-08-25 21:14:45 +00006047# Allow CC to be a program name with arguments.
6048compiler=$CC
6049
6050
brynercb91a2f2006-08-25 21:14:45 +00006051# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6053$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6054if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006056else
6057
6058# These are sane defaults that work on at least a few old systems.
6059# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6060
6061# Character class describing NM global symbol codes.
6062symcode='[BCDEGRST]'
6063
6064# Regexp to match symbols that can be accessed directly from C.
6065sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6066
brynercb91a2f2006-08-25 21:14:45 +00006067# Define system-specific variables.
6068case $host_os in
6069aix*)
6070 symcode='[BCDT]'
6071 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006072cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006073 symcode='[ABCDGISTW]'
6074 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006075hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006076 if test "$host_cpu" = ia64; then
6077 symcode='[ABCDEGRST]'
6078 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006079 ;;
brynercb91a2f2006-08-25 21:14:45 +00006080irix* | nonstopux*)
6081 symcode='[BCDEGRST]'
6082 ;;
6083osf*)
6084 symcode='[BCDEGQRST]'
6085 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006086solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006087 symcode='[BDRT]'
6088 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006089sco3.2v5*)
6090 symcode='[DT]'
6091 ;;
6092sysv4.2uw2*)
6093 symcode='[DT]'
6094 ;;
6095sysv5* | sco5v6* | unixware* | OpenUNIX*)
6096 symcode='[ABDT]'
6097 ;;
brynercb91a2f2006-08-25 21:14:45 +00006098sysv4)
6099 symcode='[DFNSTU]'
6100 ;;
6101esac
6102
brynercb91a2f2006-08-25 21:14:45 +00006103# If we're using GNU nm, then use its standard symbol codes.
6104case `$NM -V 2>&1` in
6105*GNU* | *'with BFD'*)
6106 symcode='[ABCDGIRSTW]' ;;
6107esac
6108
jimblandy92b1f832009-12-23 22:23:49 +00006109# Transform an extracted symbol line into a proper C declaration.
6110# Some systems (esp. on ia64) link data and code symbols differently,
6111# so use this general approach.
6112lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6113
6114# Transform an extracted symbol line into symbol name and symbol address
6115lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6116lt_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'"
6117
6118# Handle CRLF in mingw tool chain
6119opt_cr=
6120case $build_os in
6121mingw*)
6122 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6123 ;;
6124esac
6125
6126# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006127for ac_symprfx in "" "_"; do
6128
mmentovai8c2a4de2006-09-20 16:20:15 +00006129 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6130 symxfrm="\\1 $ac_symprfx\\2 \\2"
6131
brynercb91a2f2006-08-25 21:14:45 +00006132 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006133 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6134 # Fake it for dumpbin and say T for any non-static function
6135 # and D for any global variable.
6136 # Also find C++ and __fastcall symbols from MSVC++,
6137 # which start with @ or ?.
6138 lt_cv_sys_global_symbol_pipe="$AWK '"\
6139" {last_section=section; section=\$ 3};"\
6140" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6141" \$ 0!~/External *\|/{next};"\
6142" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6143" {if(hide[section]) next};"\
6144" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6145" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6146" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6147" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6148" ' prfx=^$ac_symprfx"
6149 else
6150 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6151 fi
brynercb91a2f2006-08-25 21:14:45 +00006152
6153 # Check to see that the pipe works correctly.
6154 pipe_works=no
6155
6156 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006157 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006158#ifdef __cplusplus
6159extern "C" {
6160#endif
6161char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006162void nm_test_func(void);
6163void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006164#ifdef __cplusplus
6165}
6166#endif
6167int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006168_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006169
jimblandy92b1f832009-12-23 22:23:49 +00006170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006171 (eval $ac_compile) 2>&5
6172 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006175 # Now try to grab the symbols.
6176 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6179 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006182 # Try sorting and uniquifying the output.
6183 if sort "$nlist" | uniq > "$nlist"T; then
6184 mv -f "$nlist"T "$nlist"
6185 else
6186 rm -f "$nlist"T
6187 fi
6188
6189 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006190 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6191 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6192 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006193#ifdef __cplusplus
6194extern "C" {
6195#endif
6196
jimblandy92b1f832009-12-23 22:23:49 +00006197_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006198 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006200
jimblandy92b1f832009-12-23 22:23:49 +00006201 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006202
jimblandy92b1f832009-12-23 22:23:49 +00006203/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006204const struct {
6205 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006206 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006207}
jimblandy92b1f832009-12-23 22:23:49 +00006208lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006209{
jimblandy92b1f832009-12-23 22:23:49 +00006210 { "@PROGRAM@", (void *) 0 },
6211_LT_EOF
6212 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6213 cat <<\_LT_EOF >> conftest.$ac_ext
6214 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006215};
6216
jimblandy92b1f832009-12-23 22:23:49 +00006217/* This works around a problem in FreeBSD linker */
6218#ifdef FREEBSD_WORKAROUND
6219static const void *lt_preloaded_setup() {
6220 return lt__PROGRAM__LTX_preloaded_symbols;
6221}
6222#endif
6223
brynercb91a2f2006-08-25 21:14:45 +00006224#ifdef __cplusplus
6225}
6226#endif
jimblandy92b1f832009-12-23 22:23:49 +00006227_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006228 # Now try linking the two files.
6229 mv conftest.$ac_objext conftstm.$ac_objext
6230 lt_save_LIBS="$LIBS"
6231 lt_save_CFLAGS="$CFLAGS"
6232 LIBS="conftstm.$ac_objext"
6233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006235 (eval $ac_link) 2>&5
6236 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006239 pipe_works=yes
6240 fi
6241 LIBS="$lt_save_LIBS"
6242 CFLAGS="$lt_save_CFLAGS"
6243 else
6244 echo "cannot find nm_test_func in $nlist" >&5
6245 fi
6246 else
6247 echo "cannot find nm_test_var in $nlist" >&5
6248 fi
6249 else
6250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6251 fi
6252 else
6253 echo "$progname: failed program was:" >&5
6254 cat conftest.$ac_ext >&5
6255 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006256 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006257
6258 # Do not use the global_symbol_pipe unless it works.
6259 if test "$pipe_works" = yes; then
6260 break
6261 else
6262 lt_cv_sys_global_symbol_pipe=
6263 fi
6264done
6265
6266fi
6267
6268if test -z "$lt_cv_sys_global_symbol_pipe"; then
6269 lt_cv_sys_global_symbol_to_cdecl=
6270fi
6271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6273$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006274else
jimblandy92b1f832009-12-23 22:23:49 +00006275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6276$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006277fi
6278
jimblandy92b1f832009-12-23 22:23:49 +00006279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301# Check whether --enable-libtool-lock was given.
6302if test "${enable_libtool_lock+set}" = set; then :
6303 enableval=$enable_libtool_lock;
6304fi
6305
6306test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6307
6308# Some flags need to be propagated to the compiler or linker for good
6309# libtool support.
6310case $host in
6311ia64-*-hpux*)
6312 # Find out which ABI we are using.
6313 echo 'int i;' > conftest.$ac_ext
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315 (eval $ac_compile) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; then
6319 case `/usr/bin/file conftest.$ac_objext` in
6320 *ELF-32*)
6321 HPUX_IA64_MODE="32"
6322 ;;
6323 *ELF-64*)
6324 HPUX_IA64_MODE="64"
6325 ;;
6326 esac
6327 fi
6328 rm -rf conftest*
6329 ;;
6330*-*-irix6*)
6331 # Find out which ABI we are using.
jimblandydc4029a2010-02-02 17:39:51 +00006332 echo '#line 6332 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6334 (eval $ac_compile) 2>&5
6335 ac_status=$?
6336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337 test $ac_status = 0; }; then
6338 if test "$lt_cv_prog_gnu_ld" = yes; then
6339 case `/usr/bin/file conftest.$ac_objext` in
6340 *32-bit*)
6341 LD="${LD-ld} -melf32bsmip"
6342 ;;
6343 *N32*)
6344 LD="${LD-ld} -melf32bmipn32"
6345 ;;
6346 *64-bit*)
6347 LD="${LD-ld} -melf64bmip"
6348 ;;
6349 esac
6350 else
6351 case `/usr/bin/file conftest.$ac_objext` in
6352 *32-bit*)
6353 LD="${LD-ld} -32"
6354 ;;
6355 *N32*)
6356 LD="${LD-ld} -n32"
6357 ;;
6358 *64-bit*)
6359 LD="${LD-ld} -64"
6360 ;;
6361 esac
6362 fi
6363 fi
6364 rm -rf conftest*
6365 ;;
6366
6367x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6368s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6369 # Find out which ABI we are using.
6370 echo 'int i;' > conftest.$ac_ext
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 (eval $ac_compile) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; then
6376 case `/usr/bin/file conftest.o` in
6377 *32-bit*)
6378 case $host in
6379 x86_64-*kfreebsd*-gnu)
6380 LD="${LD-ld} -m elf_i386_fbsd"
6381 ;;
6382 x86_64-*linux*)
6383 LD="${LD-ld} -m elf_i386"
6384 ;;
6385 ppc64-*linux*|powerpc64-*linux*)
6386 LD="${LD-ld} -m elf32ppclinux"
6387 ;;
6388 s390x-*linux*)
6389 LD="${LD-ld} -m elf_s390"
6390 ;;
6391 sparc64-*linux*)
6392 LD="${LD-ld} -m elf32_sparc"
6393 ;;
6394 esac
6395 ;;
6396 *64-bit*)
6397 case $host in
6398 x86_64-*kfreebsd*-gnu)
6399 LD="${LD-ld} -m elf_x86_64_fbsd"
6400 ;;
6401 x86_64-*linux*)
6402 LD="${LD-ld} -m elf_x86_64"
6403 ;;
6404 ppc*-*linux*|powerpc*-*linux*)
6405 LD="${LD-ld} -m elf64ppc"
6406 ;;
6407 s390*-*linux*|s390*-*tpf*)
6408 LD="${LD-ld} -m elf64_s390"
6409 ;;
6410 sparc*-*linux*)
6411 LD="${LD-ld} -m elf64_sparc"
6412 ;;
6413 esac
6414 ;;
6415 esac
6416 fi
6417 rm -rf conftest*
6418 ;;
6419
6420*-*-sco3.2v5*)
6421 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6422 SAVE_CFLAGS="$CFLAGS"
6423 CFLAGS="$CFLAGS -belf"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6425$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6426if test "${lt_cv_cc_needs_belf+set}" = set; then :
6427 $as_echo_n "(cached) " >&6
6428else
6429 ac_ext=c
6430ac_cpp='$CPP $CPPFLAGS'
6431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433ac_compiler_gnu=$ac_cv_c_compiler_gnu
6434
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436/* end confdefs.h. */
6437
6438int
6439main ()
6440{
6441
6442 ;
6443 return 0;
6444}
6445_ACEOF
6446if ac_fn_c_try_link "$LINENO"; then :
6447 lt_cv_cc_needs_belf=yes
6448else
6449 lt_cv_cc_needs_belf=no
6450fi
6451rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 ac_ext=c
6454ac_cpp='$CPP $CPPFLAGS'
6455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458
6459fi
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6461$as_echo "$lt_cv_cc_needs_belf" >&6; }
6462 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6463 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6464 CFLAGS="$SAVE_CFLAGS"
6465 fi
6466 ;;
6467sparc*-*solaris*)
6468 # Find out which ABI we are using.
6469 echo 'int i;' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 case `/usr/bin/file conftest.o` in
6476 *64-bit*)
6477 case $lt_cv_prog_gnu_ld in
6478 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6479 *)
6480 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6481 LD="${LD-ld} -64"
6482 fi
6483 ;;
6484 esac
6485 ;;
6486 esac
6487 fi
6488 rm -rf conftest*
6489 ;;
6490esac
6491
6492need_locks="$enable_libtool_lock"
6493
6494
6495 case $host_os in
6496 rhapsody* | darwin*)
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501$as_echo_n "checking for $ac_word... " >&6; }
6502if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
6504else
6505 if test -n "$DSYMUTIL"; then
6506 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6507else
6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509for as_dir in $PATH
6510do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519done
6520 done
6521IFS=$as_save_IFS
6522
6523fi
6524fi
6525DSYMUTIL=$ac_cv_prog_DSYMUTIL
6526if test -n "$DSYMUTIL"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6528$as_echo "$DSYMUTIL" >&6; }
6529else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531$as_echo "no" >&6; }
6532fi
6533
6534
6535fi
6536if test -z "$ac_cv_prog_DSYMUTIL"; then
6537 ac_ct_DSYMUTIL=$DSYMUTIL
6538 # Extract the first word of "dsymutil", so it can be a program name with args.
6539set dummy dsymutil; ac_word=$2
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$ac_ct_DSYMUTIL"; then
6546 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559done
6560 done
6561IFS=$as_save_IFS
6562
6563fi
6564fi
6565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6566if test -n "$ac_ct_DSYMUTIL"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6568$as_echo "$ac_ct_DSYMUTIL" >&6; }
6569else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
6573
6574 if test "x$ac_ct_DSYMUTIL" = x; then
6575 DSYMUTIL=":"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578yes:)
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581ac_tool_warned=yes ;;
6582esac
6583 DSYMUTIL=$ac_ct_DSYMUTIL
6584 fi
6585else
6586 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6587fi
6588
6589 if test -n "$ac_tool_prefix"; then
6590 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6596else
6597 if test -n "$NMEDIT"; then
6598 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603 IFS=$as_save_IFS
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 break 2
6610 fi
6611done
6612 done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617NMEDIT=$ac_cv_prog_NMEDIT
6618if test -n "$NMEDIT"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6620$as_echo "$NMEDIT" >&6; }
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_NMEDIT"; then
6629 ac_ct_NMEDIT=$NMEDIT
6630 # Extract the first word of "nmedit", so it can be a program name with args.
6631set dummy nmedit; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636else
6637 if test -n "$ac_ct_NMEDIT"; then
6638 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643 IFS=$as_save_IFS
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 break 2
6650 fi
6651done
6652 done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6658if test -n "$ac_ct_NMEDIT"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6660$as_echo "$ac_ct_NMEDIT" >&6; }
6661else
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666 if test "x$ac_ct_NMEDIT" = x; then
6667 NMEDIT=":"
6668 else
6669 case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675 NMEDIT=$ac_ct_NMEDIT
6676 fi
6677else
6678 NMEDIT="$ac_cv_prog_NMEDIT"
6679fi
6680
6681 if test -n "$ac_tool_prefix"; then
6682 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6683set dummy ${ac_tool_prefix}lipo; ac_word=$2
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685$as_echo_n "checking for $ac_word... " >&6; }
6686if test "${ac_cv_prog_LIPO+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 if test -n "$LIPO"; then
6690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6691else
6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704 done
6705IFS=$as_save_IFS
6706
6707fi
6708fi
6709LIPO=$ac_cv_prog_LIPO
6710if test -n "$LIPO"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6712$as_echo "$LIPO" >&6; }
6713else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717
6718
6719fi
6720if test -z "$ac_cv_prog_LIPO"; then
6721 ac_ct_LIPO=$LIPO
6722 # Extract the first word of "lipo", so it can be a program name with args.
6723set dummy lipo; ac_word=$2
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725$as_echo_n "checking for $ac_word... " >&6; }
6726if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6727 $as_echo_n "(cached) " >&6
6728else
6729 if test -n "$ac_ct_LIPO"; then
6730 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739 ac_cv_prog_ac_ct_LIPO="lipo"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743done
6744 done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6750if test -n "$ac_ct_LIPO"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6752$as_echo "$ac_ct_LIPO" >&6; }
6753else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755$as_echo "no" >&6; }
6756fi
6757
6758 if test "x$ac_ct_LIPO" = x; then
6759 LIPO=":"
6760 else
6761 case $cross_compiling:$ac_tool_warned in
6762yes:)
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765ac_tool_warned=yes ;;
6766esac
6767 LIPO=$ac_ct_LIPO
6768 fi
6769else
6770 LIPO="$ac_cv_prog_LIPO"
6771fi
6772
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6775set dummy ${ac_tool_prefix}otool; ac_word=$2
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777$as_echo_n "checking for $ac_word... " >&6; }
6778if test "${ac_cv_prog_OTOOL+set}" = set; then :
6779 $as_echo_n "(cached) " >&6
6780else
6781 if test -n "$OTOOL"; then
6782 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6783else
6784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 break 2
6794 fi
6795done
6796 done
6797IFS=$as_save_IFS
6798
6799fi
6800fi
6801OTOOL=$ac_cv_prog_OTOOL
6802if test -n "$OTOOL"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6804$as_echo "$OTOOL" >&6; }
6805else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807$as_echo "no" >&6; }
6808fi
6809
6810
6811fi
6812if test -z "$ac_cv_prog_OTOOL"; then
6813 ac_ct_OTOOL=$OTOOL
6814 # Extract the first word of "otool", so it can be a program name with args.
6815set dummy otool; ac_word=$2
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817$as_echo_n "checking for $ac_word... " >&6; }
6818if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6820else
6821 if test -n "$ac_ct_OTOOL"; then
6822 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6823else
6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_OTOOL="otool"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836 done
6837IFS=$as_save_IFS
6838
6839fi
6840fi
6841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6842if test -n "$ac_ct_OTOOL"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6844$as_echo "$ac_ct_OTOOL" >&6; }
6845else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847$as_echo "no" >&6; }
6848fi
6849
6850 if test "x$ac_ct_OTOOL" = x; then
6851 OTOOL=":"
6852 else
6853 case $cross_compiling:$ac_tool_warned in
6854yes:)
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857ac_tool_warned=yes ;;
6858esac
6859 OTOOL=$ac_ct_OTOOL
6860 fi
6861else
6862 OTOOL="$ac_cv_prog_OTOOL"
6863fi
6864
6865 if test -n "$ac_tool_prefix"; then
6866 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6867set dummy ${ac_tool_prefix}otool64; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6871 $as_echo_n "(cached) " >&6
6872else
6873 if test -n "$OTOOL64"; then
6874 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888 done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893OTOOL64=$ac_cv_prog_OTOOL64
6894if test -n "$OTOOL64"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6896$as_echo "$OTOOL64" >&6; }
6897else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903fi
6904if test -z "$ac_cv_prog_OTOOL64"; then
6905 ac_ct_OTOOL64=$OTOOL64
6906 # Extract the first word of "otool64", so it can be a program name with args.
6907set dummy otool64; ac_word=$2
6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909$as_echo_n "checking for $ac_word... " >&6; }
6910if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6911 $as_echo_n "(cached) " >&6
6912else
6913 if test -n "$ac_ct_OTOOL64"; then
6914 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6915else
6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_prog_ac_ct_OTOOL64="otool64"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928 done
6929IFS=$as_save_IFS
6930
6931fi
6932fi
6933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6934if test -n "$ac_ct_OTOOL64"; then
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6936$as_echo "$ac_ct_OTOOL64" >&6; }
6937else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939$as_echo "no" >&6; }
6940fi
6941
6942 if test "x$ac_ct_OTOOL64" = x; then
6943 OTOOL64=":"
6944 else
6945 case $cross_compiling:$ac_tool_warned in
6946yes:)
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951 OTOOL64=$ac_ct_OTOOL64
6952 fi
6953else
6954 OTOOL64="$ac_cv_prog_OTOOL64"
6955fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6984$as_echo_n "checking for -single_module linker flag... " >&6; }
6985if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987else
6988 lt_cv_apple_cc_single_mod=no
6989 if test -z "${LT_MULTI_MODULE}"; then
6990 # By default we will add the -single_module flag. You can override
6991 # by either setting the environment variable LT_MULTI_MODULE
6992 # non-empty at configure time, or by adding -multi_module to the
6993 # link flags.
6994 rm -rf libconftest.dylib*
6995 echo "int foo(void){return 1;}" > conftest.c
6996 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6997-dynamiclib -Wl,-single_module conftest.c" >&5
6998 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6999 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7000 _lt_result=$?
7001 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7002 lt_cv_apple_cc_single_mod=yes
7003 else
7004 cat conftest.err >&5
7005 fi
7006 rm -rf libconftest.dylib*
7007 rm -f conftest.*
7008 fi
7009fi
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7013$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7014if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016else
7017 lt_cv_ld_exported_symbols_list=no
7018 save_LDFLAGS=$LDFLAGS
7019 echo "_main" > conftest.sym
7020 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h. */
7023
7024int
7025main ()
7026{
7027
7028 ;
7029 return 0;
7030}
7031_ACEOF
7032if ac_fn_c_try_link "$LINENO"; then :
7033 lt_cv_ld_exported_symbols_list=yes
7034else
7035 lt_cv_ld_exported_symbols_list=no
7036fi
7037rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LDFLAGS="$save_LDFLAGS"
7040
7041fi
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7043$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7044 case $host_os in
7045 rhapsody* | darwin1.[012])
7046 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7047 darwin1.*)
7048 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7049 darwin*) # darwin 5.x on
7050 # if running on 10.5 or later, the deployment target defaults
7051 # to the OS version, if on x86, and 10.4, the deployment
7052 # target defaults to 10.4. Don't you love it?
7053 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7054 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7055 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7056 10.[012]*)
7057 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7058 10.*)
7059 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7060 esac
7061 ;;
7062 esac
7063 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7064 _lt_dar_single_mod='$single_module'
7065 fi
7066 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7067 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7068 else
7069 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7070 fi
7071 if test "$DSYMUTIL" != ":"; then
7072 _lt_dsymutil='~$DSYMUTIL $lib || :'
7073 else
7074 _lt_dsymutil=
7075 fi
7076 ;;
7077 esac
7078
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7081$as_echo_n "checking for ANSI C header files... " >&6; }
7082if test "${ac_cv_header_stdc+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7084else
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086/* end confdefs.h. */
7087#include <stdlib.h>
7088#include <stdarg.h>
7089#include <string.h>
7090#include <float.h>
7091
7092int
7093main ()
7094{
7095
7096 ;
7097 return 0;
7098}
7099_ACEOF
7100if ac_fn_c_try_compile "$LINENO"; then :
7101 ac_cv_header_stdc=yes
7102else
7103 ac_cv_header_stdc=no
7104fi
7105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106
7107if test $ac_cv_header_stdc = yes; then
7108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h. */
7111#include <string.h>
7112
7113_ACEOF
7114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7115 $EGREP "memchr" >/dev/null 2>&1; then :
7116
7117else
7118 ac_cv_header_stdc=no
7119fi
7120rm -f conftest*
7121
7122fi
7123
7124if test $ac_cv_header_stdc = yes; then
7125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127/* end confdefs.h. */
7128#include <stdlib.h>
7129
7130_ACEOF
7131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "free" >/dev/null 2>&1; then :
7133
7134else
7135 ac_cv_header_stdc=no
7136fi
7137rm -f conftest*
7138
7139fi
7140
7141if test $ac_cv_header_stdc = yes; then
7142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7143 if test "$cross_compiling" = yes; then :
7144 :
7145else
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h. */
7148#include <ctype.h>
7149#include <stdlib.h>
7150#if ((' ' & 0x0FF) == 0x020)
7151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7153#else
7154# define ISLOWER(c) \
7155 (('a' <= (c) && (c) <= 'i') \
7156 || ('j' <= (c) && (c) <= 'r') \
7157 || ('s' <= (c) && (c) <= 'z'))
7158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7159#endif
7160
7161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7162int
7163main ()
7164{
7165 int i;
7166 for (i = 0; i < 256; i++)
7167 if (XOR (islower (i), ISLOWER (i))
7168 || toupper (i) != TOUPPER (i))
7169 return 2;
7170 return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_run "$LINENO"; then :
7174
7175else
7176 ac_cv_header_stdc=no
7177fi
7178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7179 conftest.$ac_objext conftest.beam conftest.$ac_ext
7180fi
7181
7182fi
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7185$as_echo "$ac_cv_header_stdc" >&6; }
7186if test $ac_cv_header_stdc = yes; then
7187
7188$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7189
7190fi
7191
7192# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7194 inttypes.h stdint.h unistd.h
7195do :
7196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7197ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7198"
7199eval as_val=\$$as_ac_Header
7200 if test "x$as_val" = x""yes; then :
7201 cat >>confdefs.h <<_ACEOF
7202#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7203_ACEOF
7204
7205fi
7206
7207done
7208
7209
7210for ac_header in dlfcn.h
7211do :
7212 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7213"
7214if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7215 cat >>confdefs.h <<_ACEOF
7216#define HAVE_DLFCN_H 1
7217_ACEOF
7218
7219fi
7220
7221done
7222
7223
7224
7225ac_ext=cpp
7226ac_cpp='$CXXCPP $CPPFLAGS'
7227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7230if test -z "$CXX"; then
7231 if test -n "$CCC"; then
7232 CXX=$CCC
7233 else
7234 if test -n "$ac_tool_prefix"; then
7235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7236 do
7237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7238set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240$as_echo_n "checking for $ac_word... " >&6; }
7241if test "${ac_cv_prog_CXX+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243else
7244 if test -n "$CXX"; then
7245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7246else
7247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248for as_dir in $PATH
7249do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258done
7259 done
7260IFS=$as_save_IFS
7261
7262fi
7263fi
7264CXX=$ac_cv_prog_CXX
7265if test -n "$CXX"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7267$as_echo "$CXX" >&6; }
7268else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273
7274 test -n "$CXX" && break
7275 done
7276fi
7277if test -z "$CXX"; then
7278 ac_ct_CXX=$CXX
7279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7280do
7281 # Extract the first word of "$ac_prog", so it can be a program name with args.
7282set dummy $ac_prog; ac_word=$2
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
7285if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287else
7288 if test -n "$ac_ct_CXX"; then
7289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_ac_ct_CXX="$ac_prog"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302done
7303 done
7304IFS=$as_save_IFS
7305
7306fi
7307fi
7308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7309if test -n "$ac_ct_CXX"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7311$as_echo "$ac_ct_CXX" >&6; }
7312else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
7315fi
7316
7317
7318 test -n "$ac_ct_CXX" && break
7319done
7320
7321 if test "x$ac_ct_CXX" = x; then
7322 CXX="g++"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325yes:)
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328ac_tool_warned=yes ;;
7329esac
7330 CXX=$ac_ct_CXX
7331 fi
7332fi
7333
7334 fi
7335fi
7336# Provide some information about the compiler.
7337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7338set X $ac_compile
7339ac_compiler=$2
7340for ac_option in --version -v -V -qversion; do
7341 { { ac_try="$ac_compiler $ac_option >&5"
7342case "(($ac_try" in
7343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7344 *) ac_try_echo=$ac_try;;
7345esac
7346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7347$as_echo "$ac_try_echo"; } >&5
7348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7349 ac_status=$?
7350 if test -s conftest.err; then
7351 sed '10a\
7352... rest of stderr output deleted ...
7353 10q' conftest.err >conftest.er1
7354 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007355 fi
jimblandydc4029a2010-02-02 17:39:51 +00007356 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7358 test $ac_status = 0; }
7359done
7360
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7362$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7363if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7364 $as_echo_n "(cached) " >&6
7365else
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368
7369int
7370main ()
7371{
7372#ifndef __GNUC__
7373 choke me
7374#endif
7375
7376 ;
7377 return 0;
7378}
7379_ACEOF
7380if ac_fn_cxx_try_compile "$LINENO"; then :
7381 ac_compiler_gnu=yes
7382else
7383 ac_compiler_gnu=no
7384fi
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7387
7388fi
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7390$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7391if test $ac_compiler_gnu = yes; then
7392 GXX=yes
7393else
7394 GXX=
7395fi
7396ac_test_CXXFLAGS=${CXXFLAGS+set}
7397ac_save_CXXFLAGS=$CXXFLAGS
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7399$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7400if test "${ac_cv_prog_cxx_g+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7402else
7403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7404 ac_cxx_werror_flag=yes
7405 ac_cv_prog_cxx_g=no
7406 CXXFLAGS="-g"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h. */
7409
7410int
7411main ()
7412{
7413
7414 ;
7415 return 0;
7416}
7417_ACEOF
7418if ac_fn_cxx_try_compile "$LINENO"; then :
7419 ac_cv_prog_cxx_g=yes
7420else
7421 CXXFLAGS=""
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h. */
7424
7425int
7426main ()
7427{
7428
7429 ;
7430 return 0;
7431}
7432_ACEOF
7433if ac_fn_cxx_try_compile "$LINENO"; then :
7434
7435else
7436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7437 CXXFLAGS="-g"
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h. */
7440
7441int
7442main ()
7443{
7444
7445 ;
7446 return 0;
7447}
7448_ACEOF
7449if ac_fn_cxx_try_compile "$LINENO"; then :
7450 ac_cv_prog_cxx_g=yes
7451fi
7452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7460$as_echo "$ac_cv_prog_cxx_g" >&6; }
7461if test "$ac_test_CXXFLAGS" = set; then
7462 CXXFLAGS=$ac_save_CXXFLAGS
7463elif test $ac_cv_prog_cxx_g = yes; then
7464 if test "$GXX" = yes; then
7465 CXXFLAGS="-g -O2"
7466 else
7467 CXXFLAGS="-g"
7468 fi
7469else
7470 if test "$GXX" = yes; then
7471 CXXFLAGS="-O2"
7472 else
7473 CXXFLAGS=
7474 fi
7475fi
7476ac_ext=c
7477ac_cpp='$CPP $CPPFLAGS'
7478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482depcc="$CXX" am_compiler_list=
7483
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7485$as_echo_n "checking dependency style of $depcc... " >&6; }
7486if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7490 # We make a subdir and do the tests there. Otherwise we can end up
7491 # making bogus files that we don't know about and never remove. For
7492 # instance it was reported that on HP-UX the gcc test will end up
7493 # making a dummy file named `D' -- because `-MD' means `put the output
7494 # in D'.
7495 mkdir conftest.dir
7496 # Copy depcomp to subdir because otherwise we won't find it if we're
7497 # using a relative directory.
7498 cp "$am_depcomp" conftest.dir
7499 cd conftest.dir
7500 # We will build objects and dependencies in a subdirectory because
7501 # it helps to detect inapplicable dependency modes. For instance
7502 # both Tru64's cc and ICC support -MD to output dependencies as a
7503 # side effect of compilation, but ICC will put the dependencies in
7504 # the current directory while Tru64 will put them in the object
7505 # directory.
7506 mkdir sub
7507
7508 am_cv_CXX_dependencies_compiler_type=none
7509 if test "$am_compiler_list" = ""; then
7510 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7511 fi
7512 am__universal=false
7513 case " $depcc " in #(
7514 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7515 esac
7516
7517 for depmode in $am_compiler_list; do
7518 # Setup a source with many dependencies, because some compilers
7519 # like to wrap large dependency lists on column 80 (with \), and
7520 # we should not choose a depcomp mode which is confused by this.
7521 #
7522 # We need to recreate these files for each test, as the compiler may
7523 # overwrite some of them when testing with obscure command lines.
7524 # This happens at least with the AIX C compiler.
7525 : > sub/conftest.c
7526 for i in 1 2 3 4 5 6; do
7527 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7528 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7529 # Solaris 8's {/usr,}/bin/sh.
7530 touch sub/conftst$i.h
7531 done
7532 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7533
7534 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7535 # mode. It turns out that the SunPro C++ compiler does not properly
7536 # handle `-M -o', and we need to detect this. Also, some Intel
7537 # versions had trouble with output in subdirs
7538 am__obj=sub/conftest.${OBJEXT-o}
7539 am__minus_obj="-o $am__obj"
7540 case $depmode in
7541 gcc)
7542 # This depmode causes a compiler race in universal mode.
7543 test "$am__universal" = false || continue
7544 ;;
7545 nosideeffect)
7546 # after this tag, mechanisms are not by side-effect, so they'll
7547 # only be used when explicitly requested
7548 if test "x$enable_dependency_tracking" = xyes; then
7549 continue
7550 else
7551 break
7552 fi
7553 ;;
7554 msvisualcpp | msvcmsys)
7555 # This compiler won't grok `-c -o', but also, the minuso test has
7556 # not run yet. These depmodes are late enough in the game, and
7557 # so weak that their functioning should not be impacted.
7558 am__obj=conftest.${OBJEXT-o}
7559 am__minus_obj=
7560 ;;
7561 none) break ;;
7562 esac
7563 if depmode=$depmode \
7564 source=sub/conftest.c object=$am__obj \
7565 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7566 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7567 >/dev/null 2>conftest.err &&
7568 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7569 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7570 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7572 # icc doesn't choke on unknown options, it will just issue warnings
7573 # or remarks (even with -Werror). So we grep stderr for any message
7574 # that says an option was ignored or not supported.
7575 # When given -MP, icc 7.0 and 7.1 complain thusly:
7576 # icc: Command line warning: ignoring option '-M'; no argument required
7577 # The diagnosis changed in icc 8.0:
7578 # icc: Command line remark: option '-MP' not supported
7579 if (grep 'ignoring option' conftest.err ||
7580 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7581 am_cv_CXX_dependencies_compiler_type=$depmode
7582 break
7583 fi
7584 fi
7585 done
7586
7587 cd ..
7588 rm -rf conftest.dir
7589else
7590 am_cv_CXX_dependencies_compiler_type=none
7591fi
7592
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7595$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7596CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7597
7598 if
7599 test "x$enable_dependency_tracking" != xno \
7600 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7601 am__fastdepCXX_TRUE=
7602 am__fastdepCXX_FALSE='#'
7603else
7604 am__fastdepCXX_TRUE='#'
7605 am__fastdepCXX_FALSE=
7606fi
7607
7608
7609if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7610 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7611 (test "X$CXX" != "Xg++"))) ; then
7612 ac_ext=cpp
7613ac_cpp='$CXXCPP $CPPFLAGS'
7614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7618$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7619if test -z "$CXXCPP"; then
7620 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622else
7623 # Double quotes because CXXCPP needs to be expanded
7624 for CXXCPP in "$CXX -E" "/lib/cpp"
7625 do
7626 ac_preproc_ok=false
7627for ac_cxx_preproc_warn_flag in '' yes
7628do
7629 # Use a header file that comes with gcc, so configuring glibc
7630 # with a fresh cross-compiler works.
7631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7632 # <limits.h> exists even on freestanding compilers.
7633 # On the NeXT, cc -E runs the code through the compiler's parser,
7634 # not just through cpp. "Syntax error" is here to catch this case.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637#ifdef __STDC__
7638# include <limits.h>
7639#else
7640# include <assert.h>
7641#endif
7642 Syntax error
7643_ACEOF
7644if ac_fn_cxx_try_cpp "$LINENO"; then :
7645
7646else
7647 # Broken: fails on valid input.
7648continue
7649fi
7650rm -f conftest.err conftest.$ac_ext
7651
7652 # OK, works on sane cases. Now check whether nonexistent headers
7653 # can be detected and how.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h. */
7656#include <ac_nonexistent.h>
7657_ACEOF
7658if ac_fn_cxx_try_cpp "$LINENO"; then :
7659 # Broken: success on invalid input.
7660continue
7661else
7662 # Passes both tests.
7663ac_preproc_ok=:
7664break
7665fi
7666rm -f conftest.err conftest.$ac_ext
7667
7668done
7669# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7670rm -f conftest.err conftest.$ac_ext
7671if $ac_preproc_ok; then :
7672 break
7673fi
7674
7675 done
7676 ac_cv_prog_CXXCPP=$CXXCPP
7677
7678fi
7679 CXXCPP=$ac_cv_prog_CXXCPP
7680else
7681 ac_cv_prog_CXXCPP=$CXXCPP
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7684$as_echo "$CXXCPP" >&6; }
7685ac_preproc_ok=false
7686for ac_cxx_preproc_warn_flag in '' yes
7687do
7688 # Use a header file that comes with gcc, so configuring glibc
7689 # with a fresh cross-compiler works.
7690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7691 # <limits.h> exists even on freestanding compilers.
7692 # On the NeXT, cc -E runs the code through the compiler's parser,
7693 # not just through cpp. "Syntax error" is here to catch this case.
7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h. */
7696#ifdef __STDC__
7697# include <limits.h>
7698#else
7699# include <assert.h>
7700#endif
7701 Syntax error
7702_ACEOF
7703if ac_fn_cxx_try_cpp "$LINENO"; then :
7704
7705else
7706 # Broken: fails on valid input.
7707continue
7708fi
7709rm -f conftest.err conftest.$ac_ext
7710
7711 # OK, works on sane cases. Now check whether nonexistent headers
7712 # can be detected and how.
7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7714/* end confdefs.h. */
7715#include <ac_nonexistent.h>
7716_ACEOF
7717if ac_fn_cxx_try_cpp "$LINENO"; then :
7718 # Broken: success on invalid input.
7719continue
7720else
7721 # Passes both tests.
7722ac_preproc_ok=:
7723break
7724fi
7725rm -f conftest.err conftest.$ac_ext
7726
7727done
7728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7729rm -f conftest.err conftest.$ac_ext
7730if $ac_preproc_ok; then :
7731
7732else
7733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7735_lt_caught_CXX_error=yes; }
7736fi
7737
7738ac_ext=c
7739ac_cpp='$CPP $CPPFLAGS'
7740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742ac_compiler_gnu=$ac_cv_c_compiler_gnu
7743
7744else
7745 _lt_caught_CXX_error=yes
7746fi
7747
7748
7749
7750
7751
7752# Set options
7753
7754
7755
7756 enable_dlopen=no
7757
7758
7759 enable_win32_dll=no
7760
7761
7762 # Check whether --enable-shared was given.
7763if test "${enable_shared+set}" = set; then :
7764 enableval=$enable_shared; p=${PACKAGE-default}
7765 case $enableval in
7766 yes) enable_shared=yes ;;
7767 no) enable_shared=no ;;
7768 *)
7769 enable_shared=no
7770 # Look at the argument we got. We use all the common list separators.
7771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7772 for pkg in $enableval; do
7773 IFS="$lt_save_ifs"
7774 if test "X$pkg" = "X$p"; then
7775 enable_shared=yes
7776 fi
7777 done
7778 IFS="$lt_save_ifs"
7779 ;;
7780 esac
7781else
7782 enable_shared=yes
7783fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793 # Check whether --enable-static was given.
7794if test "${enable_static+set}" = set; then :
7795 enableval=$enable_static; p=${PACKAGE-default}
7796 case $enableval in
7797 yes) enable_static=yes ;;
7798 no) enable_static=no ;;
7799 *)
7800 enable_static=no
7801 # Look at the argument we got. We use all the common list separators.
7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803 for pkg in $enableval; do
7804 IFS="$lt_save_ifs"
7805 if test "X$pkg" = "X$p"; then
7806 enable_static=yes
7807 fi
7808 done
7809 IFS="$lt_save_ifs"
7810 ;;
7811 esac
7812else
7813 enable_static=yes
7814fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825# Check whether --with-pic was given.
7826if test "${with_pic+set}" = set; then :
7827 withval=$with_pic; pic_mode="$withval"
7828else
7829 pic_mode=default
7830fi
7831
7832
7833test -z "$pic_mode" && pic_mode=default
7834
7835
7836
7837
7838
7839
7840
7841 # Check whether --enable-fast-install was given.
7842if test "${enable_fast_install+set}" = set; then :
7843 enableval=$enable_fast_install; p=${PACKAGE-default}
7844 case $enableval in
7845 yes) enable_fast_install=yes ;;
7846 no) enable_fast_install=no ;;
7847 *)
7848 enable_fast_install=no
7849 # Look at the argument we got. We use all the common list separators.
7850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7851 for pkg in $enableval; do
7852 IFS="$lt_save_ifs"
7853 if test "X$pkg" = "X$p"; then
7854 enable_fast_install=yes
7855 fi
7856 done
7857 IFS="$lt_save_ifs"
7858 ;;
7859 esac
7860else
7861 enable_fast_install=yes
7862fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874# This can be used to rebuild libtool when needed
7875LIBTOOL_DEPS="$ltmain"
7876
7877# Always use our own libtool.
7878LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904test -z "$LN_S" && LN_S="ln -s"
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919if test -n "${ZSH_VERSION+set}" ; then
7920 setopt NO_GLOB_SUBST
7921fi
7922
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7924$as_echo_n "checking for objdir... " >&6; }
7925if test "${lt_cv_objdir+set}" = set; then :
7926 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007927else
7928 rm -f .libs 2>/dev/null
7929mkdir .libs 2>/dev/null
7930if test -d .libs; then
7931 lt_cv_objdir=.libs
7932else
7933 # MS-DOS does not allow filenames that begin with a dot.
7934 lt_cv_objdir=_libs
7935fi
7936rmdir .libs 2>/dev/null
7937fi
jimblandy92b1f832009-12-23 22:23:49 +00007938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7939$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007940objdir=$lt_cv_objdir
7941
7942
7943
7944
7945
jimblandy92b1f832009-12-23 22:23:49 +00007946cat >>confdefs.h <<_ACEOF
7947#define LT_OBJDIR "$lt_cv_objdir/"
7948_ACEOF
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
brynercb91a2f2006-08-25 21:14:45 +00007966case $host_os in
7967aix3*)
7968 # AIX sometimes has problems with the GCC collect2 program. For some
7969 # reason, if we set the COLLECT_NAMES environment variable, the problems
7970 # vanish in a puff of smoke.
7971 if test "X${COLLECT_NAMES+set}" != Xset; then
7972 COLLECT_NAMES=
7973 export COLLECT_NAMES
7974 fi
7975 ;;
7976esac
7977
7978# Sed substitution that helps us do robust quoting. It backslashifies
7979# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00007980sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007981
7982# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00007983double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007984
7985# Sed substitution to delay expansion of an escaped shell variable in a
7986# double_quote_subst'ed string.
7987delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7988
jimblandy92b1f832009-12-23 22:23:49 +00007989# Sed substitution to delay expansion of an escaped single quote.
7990delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7991
brynercb91a2f2006-08-25 21:14:45 +00007992# Sed substitution to avoid accidental globbing in evaled expressions
7993no_glob_subst='s/\*/\\\*/g'
7994
brynercb91a2f2006-08-25 21:14:45 +00007995# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00007996ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00007997can_build_shared=yes
7998
mmentovai8c2a4de2006-09-20 16:20:15 +00007999# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008000# which needs '.lib').
8001libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008002
brynercb91a2f2006-08-25 21:14:45 +00008003with_gnu_ld="$lt_cv_prog_gnu_ld"
8004
brynercb91a2f2006-08-25 21:14:45 +00008005old_CC="$CC"
8006old_CFLAGS="$CFLAGS"
8007
8008# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008009test -z "$CC" && CC=cc
8010test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008011test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008012test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008013test -z "$ac_objext" && ac_objext=o
8014
mmentovai8c2a4de2006-09-20 16:20:15 +00008015for cc_temp in $compiler""; do
8016 case $cc_temp in
8017 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8018 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8019 \-*) ;;
8020 *) break;;
8021 esac
8022done
jimblandy92b1f832009-12-23 22:23:49 +00008023cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008024
8025
brynercb91a2f2006-08-25 21:14:45 +00008026# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008027test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008028case $deplibs_check_method in
8029file_magic*)
8030 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8032$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8033if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008035else
8036 case $MAGIC_CMD in
8037[\\/*] | ?:[\\/]*)
8038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8039 ;;
8040*)
8041 lt_save_MAGIC_CMD="$MAGIC_CMD"
8042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8043 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8044 for ac_dir in $ac_dummy; do
8045 IFS="$lt_save_ifs"
8046 test -z "$ac_dir" && ac_dir=.
8047 if test -f $ac_dir/${ac_tool_prefix}file; then
8048 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8049 if test -n "$file_magic_test_file"; then
8050 case $deplibs_check_method in
8051 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008052 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008053 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8054 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8055 $EGREP "$file_magic_regex" > /dev/null; then
8056 :
8057 else
jimblandy92b1f832009-12-23 22:23:49 +00008058 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008059
8060*** Warning: the command libtool uses to detect shared libraries,
8061*** $file_magic_cmd, produces output that libtool cannot recognize.
8062*** The result is that libtool may fail to recognize shared libraries
8063*** as such. This will affect the creation of libtool libraries that
8064*** depend on shared libraries, but programs linked with such libtool
8065*** libraries will work regardless of this problem. Nevertheless, you
8066*** may want to report the problem to your system manager and/or to
8067*** bug-libtool@gnu.org
8068
jimblandy92b1f832009-12-23 22:23:49 +00008069_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008070 fi ;;
8071 esac
8072 fi
8073 break
8074 fi
8075 done
8076 IFS="$lt_save_ifs"
8077 MAGIC_CMD="$lt_save_MAGIC_CMD"
8078 ;;
8079esac
8080fi
8081
8082MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8083if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8085$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008086else
jimblandy92b1f832009-12-23 22:23:49 +00008087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008089fi
8090
jimblandy92b1f832009-12-23 22:23:49 +00008091
8092
8093
8094
brynercb91a2f2006-08-25 21:14:45 +00008095if test -z "$lt_cv_path_MAGIC_CMD"; then
8096 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8098$as_echo_n "checking for file... " >&6; }
8099if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008101else
8102 case $MAGIC_CMD in
8103[\\/*] | ?:[\\/]*)
8104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8105 ;;
8106*)
8107 lt_save_MAGIC_CMD="$MAGIC_CMD"
8108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110 for ac_dir in $ac_dummy; do
8111 IFS="$lt_save_ifs"
8112 test -z "$ac_dir" && ac_dir=.
8113 if test -f $ac_dir/file; then
8114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8115 if test -n "$file_magic_test_file"; then
8116 case $deplibs_check_method in
8117 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121 $EGREP "$file_magic_regex" > /dev/null; then
8122 :
8123 else
jimblandy92b1f832009-12-23 22:23:49 +00008124 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008125
8126*** Warning: the command libtool uses to detect shared libraries,
8127*** $file_magic_cmd, produces output that libtool cannot recognize.
8128*** The result is that libtool may fail to recognize shared libraries
8129*** as such. This will affect the creation of libtool libraries that
8130*** depend on shared libraries, but programs linked with such libtool
8131*** libraries will work regardless of this problem. Nevertheless, you
8132*** may want to report the problem to your system manager and/or to
8133*** bug-libtool@gnu.org
8134
jimblandy92b1f832009-12-23 22:23:49 +00008135_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008136 fi ;;
8137 esac
8138 fi
8139 break
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 MAGIC_CMD="$lt_save_MAGIC_CMD"
8144 ;;
8145esac
8146fi
8147
8148MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8149if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008152else
jimblandy92b1f832009-12-23 22:23:49 +00008153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008155fi
8156
jimblandy92b1f832009-12-23 22:23:49 +00008157
brynercb91a2f2006-08-25 21:14:45 +00008158 else
8159 MAGIC_CMD=:
8160 fi
8161fi
8162
8163 fi
8164 ;;
8165esac
8166
brynercb91a2f2006-08-25 21:14:45 +00008167# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008168
brynercb91a2f2006-08-25 21:14:45 +00008169lt_save_CC="$CC"
8170ac_ext=c
8171ac_cpp='$CPP $CPPFLAGS'
8172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174ac_compiler_gnu=$ac_cv_c_compiler_gnu
8175
8176
8177# Source file extension for C test sources.
8178ac_ext=c
8179
8180# Object file extension for compiled C test sources.
8181objext=o
8182objext=$objext
8183
8184# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008185lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008186
8187# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008188lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008189
8190
jimblandy92b1f832009-12-23 22:23:49 +00008191
8192
8193
8194
8195
brynercb91a2f2006-08-25 21:14:45 +00008196# If no C compiler was specified, use CC.
8197LTCC=${LTCC-"$CC"}
8198
mmentovai8c2a4de2006-09-20 16:20:15 +00008199# If no C compiler flags were specified, use CFLAGS.
8200LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8201
brynercb91a2f2006-08-25 21:14:45 +00008202# Allow CC to be a program name with arguments.
8203compiler=$CC
8204
jimblandy92b1f832009-12-23 22:23:49 +00008205# Save the default compiler, since it gets overwritten when the other
8206# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8207compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008208
mmentovai8c2a4de2006-09-20 16:20:15 +00008209# save warnings/boilerplate of simple test code
8210ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008211echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008212eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8213_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008214$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008215
mmentovai8c2a4de2006-09-20 16:20:15 +00008216ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008217echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008218eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8219_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008220$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008221
8222
jimblandy92b1f832009-12-23 22:23:49 +00008223if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008224
8225lt_prog_compiler_no_builtin_flag=
8226
8227if test "$GCC" = yes; then
8228 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8229
jimblandy92b1f832009-12-23 22:23:49 +00008230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8231$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8232if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008234else
8235 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008236 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008238 lt_compiler_flag="-fno-rtti -fno-exceptions"
8239 # Insert the option either (1) after the last *FLAGS variable, or
8240 # (2) before a word containing "conftest.", or (3) at the end.
8241 # Note that $ac_compile itself does not contain backslashes and begins
8242 # with a dollar sign (not a hyphen), so the echo should work correctly.
8243 # The option is referenced via a variable to avoid confusing sed.
8244 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8247 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +00008248 (eval echo "\"\$as_me:8248: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008249 (eval "$lt_compile" 2>conftest.err)
8250 ac_status=$?
8251 cat conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00008252 echo "$as_me:8252: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008253 if (exit $ac_status) && test -s "$ac_outfile"; then
8254 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008255 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008256 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008259 lt_cv_prog_compiler_rtti_exceptions=yes
8260 fi
8261 fi
jimblandy92b1f832009-12-23 22:23:49 +00008262 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008263
8264fi
jimblandy92b1f832009-12-23 22:23:49 +00008265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8266$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008267
8268if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8269 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8270else
8271 :
8272fi
8273
8274fi
8275
jimblandy92b1f832009-12-23 22:23:49 +00008276
8277
8278
8279
8280
8281 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008282lt_prog_compiler_pic=
8283lt_prog_compiler_static=
8284
jimblandy92b1f832009-12-23 22:23:49 +00008285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8286$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008287
8288 if test "$GCC" = yes; then
8289 lt_prog_compiler_wl='-Wl,'
8290 lt_prog_compiler_static='-static'
8291
8292 case $host_os in
8293 aix*)
8294 # All AIX code is PIC.
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 now supports IA64 processor
8297 lt_prog_compiler_static='-Bstatic'
8298 fi
8299 ;;
8300
8301 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008302 case $host_cpu in
8303 powerpc)
8304 # see comment about AmigaOS4 .so support
8305 lt_prog_compiler_pic='-fPIC'
8306 ;;
8307 m68k)
8308 # FIXME: we need at least 68020 code to build shared libraries, but
8309 # adding the `-m68020' flag to GCC prevents building anything better,
8310 # like `-m68040'.
8311 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8312 ;;
8313 esac
brynercb91a2f2006-08-25 21:14:45 +00008314 ;;
8315
ted.mielczarek1adb1842009-12-21 13:12:20 +00008316 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008317 # PIC is the default for these OSes.
8318 ;;
8319
jimblandy92b1f832009-12-23 22:23:49 +00008320 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008321 # This hack is so that the source file can tell whether it is being
8322 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008323 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8324 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008325 lt_prog_compiler_pic='-DDLL_EXPORT'
8326 ;;
8327
8328 darwin* | rhapsody*)
8329 # PIC is the default on this platform
8330 # Common symbols not allowed in MH_DYLIB files
8331 lt_prog_compiler_pic='-fno-common'
8332 ;;
8333
jimblandy92b1f832009-12-23 22:23:49 +00008334 hpux*)
8335 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8336 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8337 # sets the default TLS model and affects inlining.
8338 case $host_cpu in
8339 hppa*64*)
8340 # +Z the default
8341 ;;
8342 *)
8343 lt_prog_compiler_pic='-fPIC'
8344 ;;
8345 esac
8346 ;;
8347
ted.mielczarek1adb1842009-12-21 13:12:20 +00008348 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8350 # Instead, we relocate shared libraries at runtime.
8351 ;;
8352
brynercb91a2f2006-08-25 21:14:45 +00008353 msdosdjgpp*)
8354 # Just because we use GCC doesn't mean we suddenly get shared libraries
8355 # on systems that don't support them.
8356 lt_prog_compiler_can_build_shared=no
8357 enable_shared=no
8358 ;;
8359
jimblandy92b1f832009-12-23 22:23:49 +00008360 *nto* | *qnx*)
8361 # QNX uses GNU C++, but need to define -shared option too, otherwise
8362 # it will coredump.
8363 lt_prog_compiler_pic='-fPIC -shared'
8364 ;;
8365
brynercb91a2f2006-08-25 21:14:45 +00008366 sysv4*MP*)
8367 if test -d /usr/nec; then
8368 lt_prog_compiler_pic=-Kconform_pic
8369 fi
8370 ;;
8371
brynercb91a2f2006-08-25 21:14:45 +00008372 *)
8373 lt_prog_compiler_pic='-fPIC'
8374 ;;
8375 esac
8376 else
8377 # PORTME Check for flag to pass linker flags through the system compiler.
8378 case $host_os in
8379 aix*)
8380 lt_prog_compiler_wl='-Wl,'
8381 if test "$host_cpu" = ia64; then
8382 # AIX 5 now supports IA64 processor
8383 lt_prog_compiler_static='-Bstatic'
8384 else
8385 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8386 fi
8387 ;;
8388
jimblandy92b1f832009-12-23 22:23:49 +00008389 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008390 # This hack is so that the source file can tell whether it is being
8391 # built for inclusion in a dll (and should export symbols for example).
8392 lt_prog_compiler_pic='-DDLL_EXPORT'
8393 ;;
8394
8395 hpux9* | hpux10* | hpux11*)
8396 lt_prog_compiler_wl='-Wl,'
8397 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8398 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008399 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008400 hppa*64*|ia64*)
8401 # +Z the default
8402 ;;
8403 *)
8404 lt_prog_compiler_pic='+Z'
8405 ;;
8406 esac
8407 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8408 lt_prog_compiler_static='${wl}-a ${wl}archive'
8409 ;;
8410
8411 irix5* | irix6* | nonstopux*)
8412 lt_prog_compiler_wl='-Wl,'
8413 # PIC (with -KPIC) is the default.
8414 lt_prog_compiler_static='-non_shared'
8415 ;;
8416
ted.mielczarek1adb1842009-12-21 13:12:20 +00008417 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008418 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008419 # old Intel for x86_64 which still supported -KPIC.
8420 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-static'
8424 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008425 # icc used to be incompatible with GCC.
8426 # ICC 10 doesn't accept -KPIC any more.
8427 icc* | ifort*)
8428 lt_prog_compiler_wl='-Wl,'
8429 lt_prog_compiler_pic='-fPIC'
8430 lt_prog_compiler_static='-static'
8431 ;;
8432 # Lahey Fortran 8.1.
8433 lf95*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='--shared'
8436 lt_prog_compiler_static='--static'
8437 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008438 pgcc* | pgf77* | pgf90* | pgf95*)
8439 # Portland Group compilers (*not* the Pentium gcc compiler,
8440 # which looks to be a dead project)
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-fpic'
8443 lt_prog_compiler_static='-Bstatic'
8444 ;;
brynercb91a2f2006-08-25 21:14:45 +00008445 ccc*)
8446 lt_prog_compiler_wl='-Wl,'
8447 # All Alpha code is PIC.
8448 lt_prog_compiler_static='-non_shared'
8449 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008450 xl*)
8451 # IBM XL C 8.0/Fortran 10.1 on PPC
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_pic='-qpic'
8454 lt_prog_compiler_static='-qstaticlink'
8455 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008456 *)
jimblandy92b1f832009-12-23 22:23:49 +00008457 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008458 *Sun\ C*)
8459 # Sun C 5.9
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Wl,'
8463 ;;
8464 *Sun\ F*)
8465 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_wl=''
8469 ;;
8470 esac
8471 ;;
brynercb91a2f2006-08-25 21:14:45 +00008472 esac
8473 ;;
8474
jimblandy92b1f832009-12-23 22:23:49 +00008475 newsos6)
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 ;;
8479
8480 *nto* | *qnx*)
8481 # QNX uses GNU C++, but need to define -shared option too, otherwise
8482 # it will coredump.
8483 lt_prog_compiler_pic='-fPIC -shared'
8484 ;;
8485
brynercb91a2f2006-08-25 21:14:45 +00008486 osf3* | osf4* | osf5*)
8487 lt_prog_compiler_wl='-Wl,'
8488 # All OSF/1 code is PIC.
8489 lt_prog_compiler_static='-non_shared'
8490 ;;
8491
ted.mielczarek1adb1842009-12-21 13:12:20 +00008492 rdos*)
8493 lt_prog_compiler_static='-non_shared'
8494 ;;
8495
brynercb91a2f2006-08-25 21:14:45 +00008496 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008497 lt_prog_compiler_pic='-KPIC'
8498 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008499 case $cc_basename in
8500 f77* | f90* | f95*)
8501 lt_prog_compiler_wl='-Qoption ld ';;
8502 *)
8503 lt_prog_compiler_wl='-Wl,';;
8504 esac
brynercb91a2f2006-08-25 21:14:45 +00008505 ;;
8506
8507 sunos4*)
8508 lt_prog_compiler_wl='-Qoption ld '
8509 lt_prog_compiler_pic='-PIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 ;;
8512
mmentovai8c2a4de2006-09-20 16:20:15 +00008513 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_pic='-KPIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518
8519 sysv4*MP*)
8520 if test -d /usr/nec ;then
8521 lt_prog_compiler_pic='-Kconform_pic'
8522 lt_prog_compiler_static='-Bstatic'
8523 fi
8524 ;;
8525
mmentovai8c2a4de2006-09-20 16:20:15 +00008526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8527 lt_prog_compiler_wl='-Wl,'
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 ;;
8531
8532 unicos*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_can_build_shared=no
8535 ;;
8536
brynercb91a2f2006-08-25 21:14:45 +00008537 uts4*)
8538 lt_prog_compiler_pic='-pic'
8539 lt_prog_compiler_static='-Bstatic'
8540 ;;
8541
8542 *)
8543 lt_prog_compiler_can_build_shared=no
8544 ;;
8545 esac
8546 fi
8547
jimblandy92b1f832009-12-23 22:23:49 +00008548case $host_os in
8549 # For platforms which do not support PIC, -DPIC is meaningless:
8550 *djgpp*)
8551 lt_prog_compiler_pic=
8552 ;;
8553 *)
8554 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8555 ;;
8556esac
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8558$as_echo "$lt_prog_compiler_pic" >&6; }
8559
8560
8561
8562
8563
brynercb91a2f2006-08-25 21:14:45 +00008564
8565#
8566# Check to make sure the PIC flag actually works.
8567#
8568if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8570$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8571if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008573else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008574 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008575 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008577 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 # The option is referenced via a variable to avoid confusing sed.
8583 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +00008587 (eval echo "\"\$as_me:8587: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008588 (eval "$lt_compile" 2>conftest.err)
8589 ac_status=$?
8590 cat conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00008591 echo "$as_me:8591: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008592 if (exit $ac_status) && test -s "$ac_outfile"; then
8593 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008594 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008595 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008598 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008599 fi
8600 fi
jimblandy92b1f832009-12-23 22:23:49 +00008601 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008602
8603fi
jimblandy92b1f832009-12-23 22:23:49 +00008604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8605$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008606
ted.mielczarek1adb1842009-12-21 13:12:20 +00008607if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008608 case $lt_prog_compiler_pic in
8609 "" | " "*) ;;
8610 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8611 esac
8612else
8613 lt_prog_compiler_pic=
8614 lt_prog_compiler_can_build_shared=no
8615fi
8616
8617fi
jimblandy92b1f832009-12-23 22:23:49 +00008618
8619
8620
8621
8622
brynercb91a2f2006-08-25 21:14:45 +00008623
mmentovai8c2a4de2006-09-20 16:20:15 +00008624#
8625# Check to make sure the static flag actually works.
8626#
8627wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8629$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8630if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008632else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008633 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008634 save_LDFLAGS="$LDFLAGS"
8635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008636 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8638 # The linker can only warn and ignore the option if not recognized
8639 # So say no if there are warnings
8640 if test -s conftest.err; then
8641 # Append any errors to the config.log.
8642 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008643 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8645 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008646 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008647 fi
8648 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008649 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008650 fi
8651 fi
jimblandy92b1f832009-12-23 22:23:49 +00008652 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008653 LDFLAGS="$save_LDFLAGS"
8654
8655fi
jimblandy92b1f832009-12-23 22:23:49 +00008656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8657$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008658
ted.mielczarek1adb1842009-12-21 13:12:20 +00008659if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008660 :
8661else
8662 lt_prog_compiler_static=
8663fi
8664
8665
jimblandy92b1f832009-12-23 22:23:49 +00008666
8667
8668
8669
8670
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8672$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8673if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8674 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008675else
8676 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008677 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008678 mkdir conftest
8679 cd conftest
8680 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008682
8683 lt_compiler_flag="-o out/conftest2.$ac_objext"
8684 # Insert the option either (1) after the last *FLAGS variable, or
8685 # (2) before a word containing "conftest.", or (3) at the end.
8686 # Note that $ac_compile itself does not contain backslashes and begins
8687 # with a dollar sign (not a hyphen), so the echo should work correctly.
8688 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +00008692 (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008693 (eval "$lt_compile" 2>out/conftest.err)
8694 ac_status=$?
8695 cat out/conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00008696 echo "$as_me:8696: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8698 then
8699 # The compiler can only warn and ignore the option if not recognized
8700 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008701 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008704 lt_cv_prog_compiler_c_o=yes
8705 fi
8706 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008707 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008708 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008709 # SGI C++ compiler will create directory out/ii_files/ for
8710 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8712 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008713 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008714 $RM -r conftest
8715 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008716
8717fi
jimblandy92b1f832009-12-23 22:23:49 +00008718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8719$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8720
8721
8722
8723
8724
8725
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8728if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8730else
8731 lt_cv_prog_compiler_c_o=no
8732 $RM -r conftest 2>/dev/null
8733 mkdir conftest
8734 cd conftest
8735 mkdir out
8736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8737
8738 lt_compiler_flag="-o out/conftest2.$ac_objext"
8739 # Insert the option either (1) after the last *FLAGS variable, or
8740 # (2) before a word containing "conftest.", or (3) at the end.
8741 # Note that $ac_compile itself does not contain backslashes and begins
8742 # with a dollar sign (not a hyphen), so the echo should work correctly.
8743 lt_compile=`echo "$ac_compile" | $SED \
8744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +00008747 (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008748 (eval "$lt_compile" 2>out/conftest.err)
8749 ac_status=$?
8750 cat out/conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +00008751 echo "$as_me:8751: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8753 then
8754 # The compiler can only warn and ignore the option if not recognized
8755 # So say no if there are warnings
8756 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_c_o=yes
8760 fi
8761 fi
8762 chmod u+w . 2>&5
8763 $RM conftest*
8764 # SGI C++ compiler will create directory out/ii_files/ for
8765 # template instantiation
8766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8767 $RM out/* && rmdir out
8768 cd ..
8769 $RM -r conftest
8770 $RM conftest*
8771
8772fi
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8774$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8775
8776
brynercb91a2f2006-08-25 21:14:45 +00008777
8778
8779hard_links="nottested"
8780if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8781 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8783$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008784 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008785 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8787 touch conftest.a
8788 ln conftest.a conftest.b 2>&5 || hard_links=no
8789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8791$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008792 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8794$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008795 need_locks=warn
8796 fi
8797else
8798 need_locks=no
8799fi
8800
jimblandy92b1f832009-12-23 22:23:49 +00008801
8802
8803
8804
8805
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8807$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008808
8809 runpath_var=
8810 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008811 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008812 archive_cmds=
8813 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008814 compiler_needs_object=no
8815 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008816 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8818 hardcode_automatic=no
8819 hardcode_direct=no
8820 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008821 hardcode_libdir_flag_spec=
8822 hardcode_libdir_flag_spec_ld=
8823 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008824 hardcode_minus_L=no
8825 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008826 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008827 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008828 module_cmds=
8829 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008830 old_archive_from_new_cmds=
8831 old_archive_from_expsyms_cmds=
8832 thread_safe_flag_spec=
8833 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008834 # include_expsyms should be a list of space-separated symbols to be *always*
8835 # included in the symbol list
8836 include_expsyms=
8837 # exclude_expsyms can be an extended regexp of symbols to exclude
8838 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8839 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8840 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008841 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008842 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8843 # platforms (ab)use it in PIC code, but their linkers get confused if
8844 # the symbol is explicitly referenced. Since portable code cannot
8845 # rely on this symbol name, it's probably fine to never include it in
8846 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008847 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008848 extract_expsyms_cmds=
8849
8850 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008851 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008852 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8853 # When not using gcc, we currently assume that we are using
8854 # Microsoft Visual C++.
8855 if test "$GCC" != yes; then
8856 with_gnu_ld=no
8857 fi
8858 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008859 interix*)
8860 # we just hope/assume this is gcc and not c89 (= MSVC++)
8861 with_gnu_ld=yes
8862 ;;
brynercb91a2f2006-08-25 21:14:45 +00008863 openbsd*)
8864 with_gnu_ld=no
8865 ;;
8866 esac
8867
8868 ld_shlibs=yes
8869 if test "$with_gnu_ld" = yes; then
8870 # If archive_cmds runs LD, not CC, wlarc should be empty
8871 wlarc='${wl}'
8872
mmentovai8c2a4de2006-09-20 16:20:15 +00008873 # Set some defaults for GNU ld with shared library support. These
8874 # are reset later if shared libraries are not supported. Putting them
8875 # here allows them to be overridden if necessary.
8876 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008878 export_dynamic_flag_spec='${wl}--export-dynamic'
8879 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008880 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8881 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8882 else
8883 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008884 fi
8885 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008886 case `$LD -v 2>&1` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8890 *\ 2.11.*) ;; # other 2.11 versions
8891 *) supports_anon_versioning=yes ;;
8892 esac
8893
brynercb91a2f2006-08-25 21:14:45 +00008894 # See if GNU ld supports shared libraries.
8895 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008896 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008897 # On AIX/PPC, the GNU linker is very broken
8898 if test "$host_cpu" != ia64; then
8899 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008900 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008901
8902*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8903*** to be unable to reliably create shared libraries on AIX.
8904*** Therefore, libtool is disabling shared libraries support. If you
8905*** really care for shared libraries, you may want to modify your PATH
8906*** so that a non-GNU linker is found, and then restart.
8907
jimblandy92b1f832009-12-23 22:23:49 +00008908_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008909 fi
8910 ;;
8911
8912 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008913 case $host_cpu in
8914 powerpc)
8915 # see comment about AmigaOS4 .so support
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds=''
8918 ;;
8919 m68k)
8920 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)'
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_minus_L=yes
8923 ;;
8924 esac
brynercb91a2f2006-08-25 21:14:45 +00008925 ;;
8926
8927 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00008928 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008929 allow_undefined_flag=unsupported
8930 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8931 # support --undefined. This deserves some investigation. FIXME
8932 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 else
8934 ld_shlibs=no
8935 fi
8936 ;;
8937
jimblandy92b1f832009-12-23 22:23:49 +00008938 cygwin* | mingw* | pw32* | cegcc*)
8939 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00008940 # as there is no search path for DLLs.
8941 hardcode_libdir_flag_spec='-L$libdir'
8942 allow_undefined_flag=unsupported
8943 always_export_symbols=no
8944 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00008945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +00008946
jimblandy92b1f832009-12-23 22:23:49 +00008947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00008949 # If the export-symbols file already is a .def file (1st line
8950 # is EXPORTS), use it as is; otherwise, prepend...
8951 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8952 cp $export_symbols $output_objdir/$soname.def;
8953 else
8954 echo EXPORTS > $output_objdir/$soname.def;
8955 cat $export_symbols >> $output_objdir/$soname.def;
8956 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00008957 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
brynercb91a2f2006-08-25 21:14:45 +00008958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
ted.mielczarek1adb1842009-12-21 13:12:20 +00008963 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008964 hardcode_direct=no
8965 hardcode_shlibpath_var=no
8966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8967 export_dynamic_flag_spec='${wl}-E'
8968 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8969 # Instead, shared libraries are loaded at an image base (0x10000000 by
8970 # default) and relocated if they conflict, which is a slow very memory
8971 # consuming and fragmenting process. To avoid this, we pick a random,
8972 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8973 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8975 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'
8976 ;;
8977
jimblandy92b1f832009-12-23 22:23:49 +00008978 gnu* | linux* | tpf* | k*bsd*-gnu)
8979 tmp_diet=no
8980 if test "$host_os" = linux-dietlibc; then
8981 case $cc_basename in
8982 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8983 esac
8984 fi
8985 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8986 && test "$tmp_diet" = no
8987 then
mmentovai8c2a4de2006-09-20 16:20:15 +00008988 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00008989 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008990 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00008991 pgcc*) # Portland Group C compiler
8992 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'
mmentovai8c2a4de2006-09-20 16:20:15 +00008993 tmp_addflag=' $pic_flag'
8994 ;;
8995 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00008996 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'
mmentovai8c2a4de2006-09-20 16:20:15 +00008997 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00008998 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00008999 tmp_addflag=' -i_dynamic' ;;
9000 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9001 tmp_addflag=' -i_dynamic -nofor_main' ;;
9002 ifc* | ifort*) # Intel Fortran compiler
9003 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009004 lf95*) # Lahey Fortran 8.1
9005 whole_archive_flag_spec=
9006 tmp_sharedflag='--shared' ;;
9007 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9008 tmp_sharedflag='-qmkshrobj'
9009 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009010 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009011 case `$CC -V 2>&1 | sed 5q` in
9012 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009013 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'
9014 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009015 tmp_sharedflag='-G' ;;
9016 *Sun\ F*) # Sun Fortran 8.3
9017 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009018 esac
9019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009020
jimblandy92b1f832009-12-23 22:23:49 +00009021 if test "x$supports_anon_versioning" = xyes; then
9022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9024 echo "local: *; };" >> $output_objdir/$libname.ver~
9025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9026 fi
9027
9028 case $cc_basename in
9029 xlf*)
9030 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9031 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9032 hardcode_libdir_flag_spec=
9033 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9034 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9035 if test "x$supports_anon_versioning" = xyes; then
9036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9038 echo "local: *; };" >> $output_objdir/$libname.ver~
9039 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9040 fi
9041 ;;
9042 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009043 else
jimblandy92b1f832009-12-23 22:23:49 +00009044 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009045 fi
9046 ;;
9047
jimblandydc4029a2010-02-02 17:39:51 +00009048 netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00009049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9051 wlarc=
9052 else
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055 fi
9056 ;;
9057
mmentovai8c2a4de2006-09-20 16:20:15 +00009058 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009060 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009061 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009062
9063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9064*** create shared libraries on Solaris systems. Therefore, libtool
9065*** is disabling shared libraries support. We urge you to upgrade GNU
9066*** binutils to release 2.9.1 or newer. Another option is to modify
9067*** your PATH or compiler configuration so that the native linker is
9068*** used, and then restart.
9069
jimblandy92b1f832009-12-23 22:23:49 +00009070_LT_EOF
9071 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9074 else
9075 ld_shlibs=no
9076 fi
9077 ;;
9078
mmentovai8c2a4de2006-09-20 16:20:15 +00009079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9080 case `$LD -v 2>&1` in
9081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9082 ld_shlibs=no
9083 cat <<_LT_EOF 1>&2
9084
9085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9086*** reliably create shared libraries on SCO systems. Therefore, libtool
9087*** is disabling shared libraries support. We urge you to upgrade GNU
9088*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9089*** your PATH or compiler configuration so that the native linker is
9090*** used, and then restart.
9091
9092_LT_EOF
9093 ;;
9094 *)
jimblandy92b1f832009-12-23 22:23:49 +00009095 # For security reasons, it is highly recommended that you always
9096 # use absolute paths for naming shared libraries, and exclude the
9097 # DT_RUNPATH tag from executables and libraries. But doing so
9098 # requires that you compile everything twice, which is a pain.
9099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009103 else
9104 ld_shlibs=no
9105 fi
9106 ;;
9107 esac
9108 ;;
9109
brynercb91a2f2006-08-25 21:14:45 +00009110 sunos4*)
9111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9112 wlarc=
9113 hardcode_direct=yes
9114 hardcode_shlibpath_var=no
9115 ;;
9116
brynercb91a2f2006-08-25 21:14:45 +00009117 *)
jimblandy92b1f832009-12-23 22:23:49 +00009118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121 else
9122 ld_shlibs=no
9123 fi
9124 ;;
9125 esac
9126
mmentovai8c2a4de2006-09-20 16:20:15 +00009127 if test "$ld_shlibs" = no; then
9128 runpath_var=
9129 hardcode_libdir_flag_spec=
9130 export_dynamic_flag_spec=
9131 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009132 fi
9133 else
9134 # PORTME fill in a description of your system's linker (not GNU ld)
9135 case $host_os in
9136 aix3*)
9137 allow_undefined_flag=unsupported
9138 always_export_symbols=yes
9139 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'
9140 # Note: this linker hardcodes the directories in LIBPATH if there
9141 # are no directories specified by -L.
9142 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009144 # Neither direct hardcoding nor static linking is supported with a
9145 # broken collect2.
9146 hardcode_direct=unsupported
9147 fi
9148 ;;
9149
ted.mielczarek1adb1842009-12-21 13:12:20 +00009150 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009151 if test "$host_cpu" = ia64; then
9152 # On IA64, the linker does run time linking by default, so we don't
9153 # have to do anything special.
9154 aix_use_runtimelinking=no
9155 exp_sym_flag='-Bexport'
9156 no_entry_flag=""
9157 else
9158 # If we're using GNU nm, then we don't want the "-C" option.
9159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9161 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'
brynercb91a2f2006-08-25 21:14:45 +00009162 else
jimblandy92b1f832009-12-23 22:23:49 +00009163 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'
brynercb91a2f2006-08-25 21:14:45 +00009164 fi
9165 aix_use_runtimelinking=no
9166
9167 # Test if we are trying to use run time linking or normal
9168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9169 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009171 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9173 aix_use_runtimelinking=yes
9174 break
9175 fi
brynercb91a2f2006-08-25 21:14:45 +00009176 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009177 ;;
brynercb91a2f2006-08-25 21:14:45 +00009178 esac
9179
9180 exp_sym_flag='-bexport'
9181 no_entry_flag='-bnoentry'
9182 fi
9183
9184 # When large executables or shared objects are built, AIX ld can
9185 # have problems creating the table of contents. If linking a library
9186 # or program results in "error TOC overflow" add -mminimal-toc to
9187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9189
9190 archive_cmds=''
9191 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009192 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009193 hardcode_libdir_separator=':'
9194 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009195 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009196
9197 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009198 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009199 # We only want to do this on AIX 4.2 and lower, the check
9200 # below for broken collect2 doesn't work under 4.3+
9201 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009202 if test -f "$collect2name" &&
9203 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009204 then
jimblandy92b1f832009-12-23 22:23:49 +00009205 # We have reworked collect2
9206 :
brynercb91a2f2006-08-25 21:14:45 +00009207 else
jimblandy92b1f832009-12-23 22:23:49 +00009208 # We have old collect2
9209 hardcode_direct=unsupported
9210 # It fails to find uninstalled libraries when the uninstalled
9211 # path is not listed in the libpath. Setting hardcode_minus_L
9212 # to unsupported forces relinking
9213 hardcode_minus_L=yes
9214 hardcode_libdir_flag_spec='-L$libdir'
9215 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009216 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009217 ;;
brynercb91a2f2006-08-25 21:14:45 +00009218 esac
9219 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009220 if test "$aix_use_runtimelinking" = yes; then
9221 shared_flag="$shared_flag "'${wl}-G'
9222 fi
brynercb91a2f2006-08-25 21:14:45 +00009223 else
9224 # not using gcc
9225 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9227 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009228 shared_flag='-G'
9229 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009230 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009231 shared_flag='${wl}-G'
9232 else
9233 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009234 fi
brynercb91a2f2006-08-25 21:14:45 +00009235 fi
9236 fi
9237
jimblandy92b1f832009-12-23 22:23:49 +00009238 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009239 # It seems that -bexpall does not export symbols beginning with
9240 # underscore (_), so it is better to generate a list of symbols to export.
9241 always_export_symbols=yes
9242 if test "$aix_use_runtimelinking" = yes; then
9243 # Warning - without using the other runtime loading flags (-brtl),
9244 # -berok will link without error, but may produce a broken library.
9245 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009246 # Determine the default libpath from the value encoded in an
9247 # empty executable.
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009249/* end confdefs.h. */
9250
9251int
9252main ()
9253{
9254
9255 ;
9256 return 0;
9257}
9258_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009259if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009260
ted.mielczarek1adb1842009-12-21 13:12:20 +00009261lt_aix_libpath_sed='
9262 /Import File Strings/,/^$/ {
9263 /^0/ {
9264 s/^0 *\(.*\)$/\1/
9265 p
9266 }
9267 }'
9268aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009269# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009270if test -z "$aix_libpath"; then
9271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9272fi
brynercb91a2f2006-08-25 21:14:45 +00009273fi
jimblandy92b1f832009-12-23 22:23:49 +00009274rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9277
jimblandy92b1f832009-12-23 22:23:49 +00009278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9279 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"
9280 else
brynercb91a2f2006-08-25 21:14:45 +00009281 if test "$host_cpu" = ia64; then
9282 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9283 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009284 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"
brynercb91a2f2006-08-25 21:14:45 +00009285 else
jimblandy92b1f832009-12-23 22:23:49 +00009286 # Determine the default libpath from the value encoded in an
9287 # empty executable.
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009289/* end confdefs.h. */
9290
9291int
9292main ()
9293{
9294
9295 ;
9296 return 0;
9297}
9298_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009299if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009300
ted.mielczarek1adb1842009-12-21 13:12:20 +00009301lt_aix_libpath_sed='
9302 /Import File Strings/,/^$/ {
9303 /^0/ {
9304 s/^0 *\(.*\)$/\1/
9305 p
9306 }
9307 }'
9308aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009309# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009310if test -z "$aix_libpath"; then
9311 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9312fi
brynercb91a2f2006-08-25 21:14:45 +00009313fi
jimblandy92b1f832009-12-23 22:23:49 +00009314rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9317
9318 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9319 # Warning - without using the other run time loading flags,
9320 # -berok will link without error, but may produce a broken library.
9321 no_undefined_flag=' ${wl}-bernotok'
9322 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009323 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009324 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009325 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009326 # This is similar to how AIX traditionally builds its shared libraries.
9327 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'
brynercb91a2f2006-08-25 21:14:45 +00009328 fi
9329 fi
9330 ;;
9331
9332 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009333 case $host_cpu in
9334 powerpc)
9335 # see comment about AmigaOS4 .so support
9336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337 archive_expsym_cmds=''
9338 ;;
9339 m68k)
9340 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)'
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 hardcode_minus_L=yes
9343 ;;
9344 esac
brynercb91a2f2006-08-25 21:14:45 +00009345 ;;
9346
mmentovai8c2a4de2006-09-20 16:20:15 +00009347 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009348 export_dynamic_flag_spec=-rdynamic
9349 ;;
9350
jimblandy92b1f832009-12-23 22:23:49 +00009351 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009352 # When not using gcc, we currently assume that we are using
9353 # Microsoft Visual C++.
9354 # hardcode_libdir_flag_spec is actually meaningless, as there is
9355 # no search path for DLLs.
9356 hardcode_libdir_flag_spec=' '
9357 allow_undefined_flag=unsupported
9358 # Tell ltmain to make .lib files, not .a files.
9359 libext=lib
9360 # Tell ltmain to make .dll files, not .so files.
9361 shrext_cmds=".dll"
9362 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009363 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009364 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009365 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009366 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009367 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009368 fix_srcfile_path='`cygpath -w "$srcfile"`'
9369 enable_shared_with_static_runtimes=yes
9370 ;;
9371
9372 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009373
9374
9375 archive_cmds_need_lc=no
9376 hardcode_direct=no
9377 hardcode_automatic=yes
9378 hardcode_shlibpath_var=unsupported
9379 whole_archive_flag_spec=''
9380 link_all_deplibs=yes
9381 allow_undefined_flag="$_lt_dar_allow_undefined"
9382 case $cc_basename in
9383 ifort*) _lt_dar_can_shared=yes ;;
9384 *) _lt_dar_can_shared=$GCC ;;
9385 esac
9386 if test "$_lt_dar_can_shared" = "yes"; then
9387 output_verbose_link_cmd=echo
9388 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9389 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9390 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}"
9391 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}"
9392
9393 else
9394 ld_shlibs=no
9395 fi
9396
brynercb91a2f2006-08-25 21:14:45 +00009397 ;;
9398
9399 dgux*)
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_shlibpath_var=no
9403 ;;
9404
9405 freebsd1*)
9406 ld_shlibs=no
9407 ;;
9408
9409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9410 # support. Future versions do this automatically, but an explicit c++rt0.o
9411 # does not break anything, and helps significantly (at the cost of a little
9412 # extra space).
9413 freebsd2.2*)
9414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9415 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9421 freebsd2*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_direct=yes
9424 hardcode_minus_L=yes
9425 hardcode_shlibpath_var=no
9426 ;;
9427
9428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009429 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009430 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9431 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_direct=yes
9433 hardcode_shlibpath_var=no
9434 ;;
9435
9436 hpux9*)
9437 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009438 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'
brynercb91a2f2006-08-25 21:14:45 +00009439 else
jimblandy92b1f832009-12-23 22:23:49 +00009440 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'
brynercb91a2f2006-08-25 21:14:45 +00009441 fi
9442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 hardcode_direct=yes
9445
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9449 export_dynamic_flag_spec='${wl}-E'
9450 ;;
9451
mmentovai8c2a4de2006-09-20 16:20:15 +00009452 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 else
9456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457 fi
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009460 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009461 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009462 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009463 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009464 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009465 # hardcode_minus_L: Not really in the search PATH,
9466 # but as the default location of the library.
9467 hardcode_minus_L=yes
9468 fi
9469 ;;
9470
9471 hpux11*)
9472 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9473 case $host_cpu in
9474 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009475 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009477 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009479 ;;
brynercb91a2f2006-08-25 21:14:45 +00009480 *)
9481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482 ;;
9483 esac
9484 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009485 case $host_cpu in
9486 hppa*64*)
9487 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 ;;
9489 ia64*)
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009491 ;;
9492 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009493 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009494 ;;
9495 esac
9496 fi
9497 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009498 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9499 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009500
mmentovai8c2a4de2006-09-20 16:20:15 +00009501 case $host_cpu in
9502 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009503 hardcode_direct=no
9504 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009505 ;;
brynercb91a2f2006-08-25 21:14:45 +00009506 *)
brynercb91a2f2006-08-25 21:14:45 +00009507 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009508 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009509 export_dynamic_flag_spec='${wl}-E'
9510
9511 # hardcode_minus_L: Not really in the search PATH,
9512 # but as the default location of the library.
9513 hardcode_minus_L=yes
9514 ;;
9515 esac
9516 fi
9517 ;;
9518
9519 irix5* | irix6* | nonstopux*)
9520 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009521 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'
9522 # Try to use the -exported_symbol ld option, if it does not
9523 # work, assume that -exports_file does not work either and
9524 # implicitly export all symbols.
9525 save_LDFLAGS="$LDFLAGS"
9526 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h. */
9529int foo(void) {}
9530_ACEOF
9531if ac_fn_c_try_link "$LINENO"; then :
9532 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'
9533
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009538 else
jimblandy92b1f832009-12-23 22:23:49 +00009539 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'
9540 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'
brynercb91a2f2006-08-25 21:14:45 +00009541 fi
jimblandy92b1f832009-12-23 22:23:49 +00009542 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9544 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009545 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009546 link_all_deplibs=yes
9547 ;;
9548
jimblandydc4029a2010-02-02 17:39:51 +00009549 netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00009550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9552 else
9553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9554 fi
9555 hardcode_libdir_flag_spec='-R$libdir'
9556 hardcode_direct=yes
9557 hardcode_shlibpath_var=no
9558 ;;
9559
9560 newsos6)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_direct=yes
9563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564 hardcode_libdir_separator=:
9565 hardcode_shlibpath_var=no
9566 ;;
9567
jimblandy92b1f832009-12-23 22:23:49 +00009568 *nto* | *qnx*)
9569 ;;
9570
brynercb91a2f2006-08-25 21:14:45 +00009571 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009572 if test -f /usr/libexec/ld.so; then
9573 hardcode_direct=yes
9574 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009575 hardcode_direct_absolute=yes
9576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00009577 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9579 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9580 export_dynamic_flag_spec='${wl}-E'
9581 else
9582 case $host_os in
9583 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec='-R$libdir'
9586 ;;
9587 *)
9588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590 ;;
9591 esac
jimblandy92b1f832009-12-23 22:23:49 +00009592 fi
brynercb91a2f2006-08-25 21:14:45 +00009593 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009594 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009595 fi
9596 ;;
9597
9598 os2*)
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_minus_L=yes
9601 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009602 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'
9603 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009604 ;;
9605
9606 osf3*)
9607 if test "$GCC" = yes; then
9608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009609 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'
brynercb91a2f2006-08-25 21:14:45 +00009610 else
9611 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009612 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'
brynercb91a2f2006-08-25 21:14:45 +00009613 fi
jimblandy92b1f832009-12-23 22:23:49 +00009614 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 hardcode_libdir_separator=:
9617 ;;
9618
9619 osf4* | osf5*) # as osf3* with the addition of -msym flag
9620 if test "$GCC" = yes; then
9621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009622 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'
brynercb91a2f2006-08-25 21:14:45 +00009623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9624 else
9625 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009626 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'
9627 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~
9628 $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'
brynercb91a2f2006-08-25 21:14:45 +00009629
9630 # Both c and cxx compiler support -rpath directly
9631 hardcode_libdir_flag_spec='-rpath $libdir'
9632 fi
jimblandy92b1f832009-12-23 22:23:49 +00009633 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009634 hardcode_libdir_separator=:
9635 ;;
9636
brynercb91a2f2006-08-25 21:14:45 +00009637 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009638 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009639 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009640 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009641 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9643 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
brynercb91a2f2006-08-25 21:14:45 +00009644 else
jimblandy92b1f832009-12-23 22:23:49 +00009645 case `$CC -V 2>&1` in
9646 *"Compilers 5.0"*)
9647 wlarc=''
9648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9651 ;;
9652 *)
9653 wlarc='${wl}'
9654 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9657 ;;
9658 esac
brynercb91a2f2006-08-25 21:14:45 +00009659 fi
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9662 case $host_os in
9663 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009664 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009665 # The compiler driver will combine and reorder linker options,
9666 # but understands `-z linker_flag'. GCC discards it without `$wl',
9667 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009668 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009669 if test "$GCC" = yes; then
9670 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9671 else
9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9673 fi
9674 ;;
brynercb91a2f2006-08-25 21:14:45 +00009675 esac
9676 link_all_deplibs=yes
9677 ;;
9678
9679 sunos4*)
9680 if test "x$host_vendor" = xsequent; then
9681 # Use $CC to link under sequent, because it throws in some extra .o
9682 # files that make .init and .fini sections work.
9683 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9684 else
9685 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9686 fi
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_direct=yes
9689 hardcode_minus_L=yes
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 sysv4)
9694 case $host_vendor in
9695 sni)
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_direct=yes # is this really true???
9698 ;;
9699 siemens)
9700 ## LD is ld it makes a PLAMLIB
9701 ## CC just makes a GrossModule.
9702 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9703 reload_cmds='$CC -r -o $output$reload_objs'
9704 hardcode_direct=no
9705 ;;
9706 motorola)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9709 ;;
9710 esac
9711 runpath_var='LD_RUN_PATH'
9712 hardcode_shlibpath_var=no
9713 ;;
9714
9715 sysv4.3*)
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_shlibpath_var=no
9718 export_dynamic_flag_spec='-Bexport'
9719 ;;
9720
9721 sysv4*MP*)
9722 if test -d /usr/nec; then
9723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724 hardcode_shlibpath_var=no
9725 runpath_var=LD_RUN_PATH
9726 hardcode_runpath_var=yes
9727 ld_shlibs=yes
9728 fi
9729 ;;
9730
ted.mielczarek1adb1842009-12-21 13:12:20 +00009731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009732 no_undefined_flag='${wl}-z,text'
9733 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009734 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009735 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009736
mmentovai3261e8b2006-09-06 02:56:44 +00009737 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009740 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009743 fi
brynerd5e66382006-09-08 02:35:53 +00009744 ;;
9745
mmentovai8c2a4de2006-09-20 16:20:15 +00009746 sysv5* | sco3.2v5* | sco5v6*)
9747 # Note: We can NOT use -z defs as we might desire, because we do not
9748 # link with -lc, and that would cause any symbols used from libc to
9749 # always be unresolved, which means just about no library would
9750 # ever link correctly. If we're not using GNU ld we use -z text
9751 # though, which does catch some bad symbols but isn't as heavy-handed
9752 # as -z defs.
9753 no_undefined_flag='${wl}-z,text'
9754 allow_undefined_flag='${wl}-z,nodefs'
9755 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009756 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009757 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009758 hardcode_libdir_separator=':'
9759 link_all_deplibs=yes
9760 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009761 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009762
9763 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009766 else
jimblandy92b1f832009-12-23 22:23:49 +00009767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009769 fi
brynercb91a2f2006-08-25 21:14:45 +00009770 ;;
9771
9772 uts4*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 *)
9779 ld_shlibs=no
9780 ;;
9781 esac
jimblandy92b1f832009-12-23 22:23:49 +00009782
9783 if test x$host_vendor = xsni; then
9784 case $host in
9785 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9786 export_dynamic_flag_spec='${wl}-Blargedynsym'
9787 ;;
9788 esac
9789 fi
brynercb91a2f2006-08-25 21:14:45 +00009790 fi
9791
jimblandy92b1f832009-12-23 22:23:49 +00009792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9793$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009794test "$ld_shlibs" = no && can_build_shared=no
9795
jimblandy92b1f832009-12-23 22:23:49 +00009796with_gnu_ld=$with_gnu_ld
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
brynercb91a2f2006-08-25 21:14:45 +00009812#
9813# Do we need to explicitly link libc?
9814#
9815case "x$archive_cmds_need_lc" in
9816x|xyes)
9817 # Assume -lc should be added
9818 archive_cmds_need_lc=yes
9819
9820 if test "$enable_shared" = yes && test "$GCC" = yes; then
9821 case $archive_cmds in
9822 *'~'*)
9823 # FIXME: we may have to deal with multi-command sequences.
9824 ;;
9825 '$CC '*)
9826 # Test whether the compiler implicitly links with -lc since on some
9827 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9828 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9830$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9831 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009833
jimblandy92b1f832009-12-23 22:23:49 +00009834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009835 (eval $ac_compile) 2>&5
9836 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009839 soname=conftest
9840 lib=conftest
9841 libobjs=conftest.$ac_objext
9842 deplibs=
9843 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009844 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009845 compiler_flags=-v
9846 linker_flags=-v
9847 verstring=
9848 output_objdir=.
9849 libname=conftest
9850 lt_save_allow_undefined_flag=$allow_undefined_flag
9851 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9853 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009854 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9856 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009857 then
9858 archive_cmds_need_lc=no
9859 else
9860 archive_cmds_need_lc=yes
9861 fi
9862 allow_undefined_flag=$lt_save_allow_undefined_flag
9863 else
9864 cat conftest.err 1>&5
9865 fi
jimblandy92b1f832009-12-23 22:23:49 +00009866 $RM conftest*
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9868$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009869 ;;
9870 esac
9871 fi
9872 ;;
9873esac
9874
jimblandy92b1f832009-12-23 22:23:49 +00009875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10032$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010033
brynercb91a2f2006-08-25 21:14:45 +000010034if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010035 case $host_os in
10036 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10037 *) lt_awk_arg="/^libraries:/" ;;
10038 esac
10039 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
jimblandy92b1f832009-12-23 22:23:49 +000010040 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010041 # if the path contains ";" then we assume it to be the separator
10042 # otherwise default to the standard path separator (i.e. ":") - it is
10043 # assumed that no part of a normal pathname contains ";" but that should
10044 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010046 else
jimblandy92b1f832009-12-23 22:23:49 +000010047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010048 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010049 # Ok, now we have the path, separated by spaces, we can step through it
10050 # and add multilib dir if necessary.
10051 lt_tmp_lt_search_path_spec=
10052 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10053 for lt_sys_path in $lt_search_path_spec; do
10054 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10055 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10056 else
10057 test -d "$lt_sys_path" && \
10058 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10059 fi
10060 done
jimblandy92b1f832009-12-23 22:23:49 +000010061 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010062BEGIN {RS=" "; FS="/|\n";} {
10063 lt_foo="";
10064 lt_count=0;
10065 for (lt_i = NF; lt_i > 0; lt_i--) {
10066 if ($lt_i != "" && $lt_i != ".") {
10067 if ($lt_i == "..") {
10068 lt_count++;
10069 } else {
10070 if (lt_count == 0) {
10071 lt_foo="/" $lt_i lt_foo;
10072 } else {
10073 lt_count--;
10074 }
10075 }
10076 }
10077 }
10078 if (lt_foo != "") { lt_freq[lt_foo]++; }
10079 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10080}'`
jimblandy92b1f832009-12-23 22:23:49 +000010081 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010082else
10083 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10084fi
jimblandy92b1f832009-12-23 22:23:49 +000010085library_names_spec=
10086libname_spec='lib$name'
10087soname_spec=
10088shrext_cmds=".so"
10089postinstall_cmds=
10090postuninstall_cmds=
10091finish_cmds=
10092finish_eval=
10093shlibpath_var=
10094shlibpath_overrides_runpath=unknown
10095version_type=none
10096dynamic_linker="$host_os ld.so"
10097sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010098need_lib_prefix=unknown
10099hardcode_into_libs=no
10100
10101# when you set need_version to no, make sure it does not cause -set_version
10102# flags to be left without arguments
10103need_version=unknown
10104
10105case $host_os in
10106aix3*)
10107 version_type=linux
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10109 shlibpath_var=LIBPATH
10110
10111 # AIX 3 has no versioning support, so we append a major version to the name.
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 ;;
10114
ted.mielczarek1adb1842009-12-21 13:12:20 +000010115aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010116 version_type=linux
10117 need_lib_prefix=no
10118 need_version=no
10119 hardcode_into_libs=yes
10120 if test "$host_cpu" = ia64; then
10121 # AIX 5 supports IA64
10122 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 else
10125 # With GCC up to 2.95.x, collect2 would create an import file
10126 # for dependence libraries. The import file would start with
10127 # the line `#! .'. This would cause the generated library to
10128 # depend on `.', always an invalid library. This was fixed in
10129 # development snapshots of GCC prior to 3.0.
10130 case $host_os in
10131 aix4 | aix4.[01] | aix4.[01].*)
10132 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10133 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010134 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010135 :
10136 else
10137 can_build_shared=no
10138 fi
10139 ;;
10140 esac
10141 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10142 # soname into executable. Probably we can add versioning support to
10143 # collect2, so additional links can be useful in future.
10144 if test "$aix_use_runtimelinking" = yes; then
10145 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10146 # instead of lib<name>.a to let people know that these are not
10147 # typical AIX shared libraries.
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 else
10150 # We preserve .a as extension for shared libraries through AIX4.2
10151 # and later when we are not doing run time linking.
10152 library_names_spec='${libname}${release}.a $libname.a'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 fi
10155 shlibpath_var=LIBPATH
10156 fi
10157 ;;
10158
10159amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010160 case $host_cpu in
10161 powerpc)
10162 # Since July 2007 AmigaOS4 officially supports .so libraries.
10163 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 ;;
10166 m68k)
10167 library_names_spec='$libname.ixlibrary $libname.a'
10168 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10169 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'
10170 ;;
10171 esac
brynercb91a2f2006-08-25 21:14:45 +000010172 ;;
10173
10174beos*)
10175 library_names_spec='${libname}${shared_ext}'
10176 dynamic_linker="$host_os ld.so"
10177 shlibpath_var=LIBRARY_PATH
10178 ;;
10179
mmentovai8c2a4de2006-09-20 16:20:15 +000010180bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010181 version_type=linux
10182 need_version=no
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10185 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10186 shlibpath_var=LD_LIBRARY_PATH
10187 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10188 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10189 # the default ld.so.conf also contains /usr/contrib/lib and
10190 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10191 # libtool to hard-code these into programs
10192 ;;
10193
jimblandy92b1f832009-12-23 22:23:49 +000010194cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010195 version_type=windows
10196 shrext_cmds=".dll"
10197 need_version=no
10198 need_lib_prefix=no
10199
10200 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010201 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010202 library_names_spec='$libname.dll.a'
10203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10204 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010206 dldir=$destdir/`dirname \$dlpath`~
10207 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010208 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010209 chmod a+x \$dldir/$dlname~
10210 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10211 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10212 fi'
brynercb91a2f2006-08-25 21:14:45 +000010213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10214 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010215 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010216 shlibpath_overrides_runpath=yes
10217
10218 case $host_os in
10219 cygwin*)
10220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10222 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10223 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010224 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010225 # MinGW DLLs use traditional 'lib' prefix
10226 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010227 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10228 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010229 # It is most probably a Windows format PATH printed by
10230 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10231 # path with ; separators, and with drive letters. We can handle the
10232 # drive letters (cygwin fileutils understands them), so leave them,
10233 # especially as we might pass files found there to a mingw objdump,
10234 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010236 else
jimblandy92b1f832009-12-23 22:23:49 +000010237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010238 fi
10239 ;;
10240 pw32*)
10241 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000010243 ;;
10244 esac
10245 ;;
10246
10247 *)
10248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10249 ;;
10250 esac
10251 dynamic_linker='Win32 ld.exe'
10252 # FIXME: first we should search . and the directory the executable is in
10253 shlibpath_var=PATH
10254 ;;
10255
10256darwin* | rhapsody*)
10257 dynamic_linker="$host_os dyld"
10258 version_type=darwin
10259 need_lib_prefix=no
10260 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010262 soname_spec='${libname}${release}${major}$shared_ext'
10263 shlibpath_overrides_runpath=yes
10264 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010266
10267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10269 ;;
10270
10271dgux*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 ;;
10279
10280freebsd1*)
10281 dynamic_linker=no
10282 ;;
10283
mmentovai8c2a4de2006-09-20 16:20:15 +000010284freebsd* | dragonfly*)
10285 # DragonFly does not have aout. When/if they implement a new
10286 # versioning mechanism, adjust this.
10287 if test -x /usr/bin/objformat; then
10288 objformat=`/usr/bin/objformat`
10289 else
10290 case $host_os in
10291 freebsd[123]*) objformat=aout ;;
10292 *) objformat=elf ;;
10293 esac
10294 fi
brynercb91a2f2006-08-25 21:14:45 +000010295 version_type=freebsd-$objformat
10296 case $version_type in
10297 freebsd-elf*)
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10299 need_version=no
10300 need_lib_prefix=no
10301 ;;
10302 freebsd-*)
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10304 need_version=yes
10305 ;;
10306 esac
10307 shlibpath_var=LD_LIBRARY_PATH
10308 case $host_os in
10309 freebsd2*)
10310 shlibpath_overrides_runpath=yes
10311 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010312 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010313 shlibpath_overrides_runpath=yes
10314 hardcode_into_libs=yes
10315 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010318 shlibpath_overrides_runpath=no
10319 hardcode_into_libs=yes
10320 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010321 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010322 shlibpath_overrides_runpath=yes
10323 hardcode_into_libs=yes
10324 ;;
brynercb91a2f2006-08-25 21:14:45 +000010325 esac
10326 ;;
10327
10328gnu*)
10329 version_type=linux
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 hardcode_into_libs=yes
10336 ;;
10337
10338hpux9* | hpux10* | hpux11*)
10339 # Give a soname corresponding to the major version so that dld.sl refuses to
10340 # link against other versions.
10341 version_type=sunos
10342 need_lib_prefix=no
10343 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010344 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010345 ia64*)
10346 shrext_cmds='.so'
10347 hardcode_into_libs=yes
10348 dynamic_linker="$host_os dld.so"
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 if test "X$HPUX_IA64_MODE" = X32; then
10354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10355 else
10356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10357 fi
10358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10359 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010360 hppa*64*)
10361 shrext_cmds='.sl'
10362 hardcode_into_libs=yes
10363 dynamic_linker="$host_os dld.sl"
10364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10370 ;;
10371 *)
brynercb91a2f2006-08-25 21:14:45 +000010372 shrext_cmds='.sl'
10373 dynamic_linker="$host_os dld.sl"
10374 shlibpath_var=SHLIB_PATH
10375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 ;;
10379 esac
10380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10381 postinstall_cmds='chmod 555 $lib'
10382 ;;
10383
ted.mielczarek1adb1842009-12-21 13:12:20 +000010384interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010385 version_type=linux
10386 need_lib_prefix=no
10387 need_version=no
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 ;;
10395
brynercb91a2f2006-08-25 21:14:45 +000010396irix5* | irix6* | nonstopux*)
10397 case $host_os in
10398 nonstopux*) version_type=nonstopux ;;
10399 *)
10400 if test "$lt_cv_prog_gnu_ld" = yes; then
10401 version_type=linux
10402 else
10403 version_type=irix
10404 fi ;;
10405 esac
10406 need_lib_prefix=no
10407 need_version=no
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10410 case $host_os in
10411 irix5* | nonstopux*)
10412 libsuff= shlibsuff=
10413 ;;
10414 *)
10415 case $LD in # libtool.m4 will add one of these switches to LD
10416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10417 libsuff= shlibsuff= libmagic=32-bit;;
10418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10419 libsuff=32 shlibsuff=N32 libmagic=N32;;
10420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10422 *) libsuff= shlibsuff= libmagic=never-match;;
10423 esac
10424 ;;
10425 esac
10426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10427 shlibpath_overrides_runpath=no
10428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10430 hardcode_into_libs=yes
10431 ;;
10432
10433# No shared lib support for Linux oldld, aout, or coff.
10434linux*oldld* | linux*aout* | linux*coff*)
10435 dynamic_linker=no
10436 ;;
10437
10438# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000010439linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010440 version_type=linux
10441 need_lib_prefix=no
10442 need_version=no
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 soname_spec='${libname}${release}${shared_ext}$major'
10445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010448 # Some binutils ld are patched to set DT_RUNPATH
10449 save_LDFLAGS=$LDFLAGS
10450 save_libdir=$libdir
10451 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10452 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h. */
10455
10456int
10457main ()
10458{
10459
10460 ;
10461 return 0;
10462}
10463_ACEOF
10464if ac_fn_c_try_link "$LINENO"; then :
10465 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10466 shlibpath_overrides_runpath=yes
10467fi
10468fi
10469rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LDFLAGS=$save_LDFLAGS
10472 libdir=$save_libdir
10473
brynercb91a2f2006-08-25 21:14:45 +000010474 # This implies no fast_install, which is unacceptable.
10475 # Some rework will be needed to allow for fast_install
10476 # before this can be enabled.
10477 hardcode_into_libs=yes
10478
10479 # Append ld.so.conf contents to the search path
10480 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010481 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000010482 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10483 fi
10484
10485 # We used to test for /lib/ld.so.1 and disable shared libraries on
10486 # powerpc, because MkLinux only supported shared libraries with the
10487 # GNU dynamic linker. Since this was broken with cross compilers,
10488 # most powerpc-linux boxes support dynamic linking these days and
10489 # people can always --disable-shared, the test was removed, and we
10490 # assume the GNU/Linux dynamic linker is in use.
10491 dynamic_linker='GNU/Linux ld.so'
10492 ;;
10493
brynercb91a2f2006-08-25 21:14:45 +000010494netbsd*)
10495 version_type=sunos
10496 need_lib_prefix=no
10497 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501 dynamic_linker='NetBSD (a.out) ld.so'
10502 else
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10504 soname_spec='${libname}${release}${shared_ext}$major'
10505 dynamic_linker='NetBSD ld.elf_so'
10506 fi
10507 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=yes
10509 hardcode_into_libs=yes
10510 ;;
10511
10512newsos6)
10513 version_type=linux
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=yes
10517 ;;
10518
jimblandy92b1f832009-12-23 22:23:49 +000010519*nto* | *qnx*)
10520 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010526 shlibpath_overrides_runpath=no
10527 hardcode_into_libs=yes
10528 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010529 ;;
10530
10531openbsd*)
10532 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010533 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010534 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10536 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10538 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010539 esac
brynercb91a2f2006-08-25 21:14:45 +000010540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10542 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010544 case $host_os in
10545 openbsd2.[89] | openbsd2.[89].*)
10546 shlibpath_overrides_runpath=no
10547 ;;
10548 *)
10549 shlibpath_overrides_runpath=yes
10550 ;;
10551 esac
10552 else
10553 shlibpath_overrides_runpath=yes
10554 fi
10555 ;;
10556
10557os2*)
10558 libname_spec='$name'
10559 shrext_cmds=".dll"
10560 need_lib_prefix=no
10561 library_names_spec='$libname${shared_ext} $libname.a'
10562 dynamic_linker='OS/2 ld.exe'
10563 shlibpath_var=LIBPATH
10564 ;;
10565
10566osf3* | osf4* | osf5*)
10567 version_type=osf
10568 need_lib_prefix=no
10569 need_version=no
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10575 ;;
10576
ted.mielczarek1adb1842009-12-21 13:12:20 +000010577rdos*)
10578 dynamic_linker=no
10579 ;;
10580
brynercb91a2f2006-08-25 21:14:45 +000010581solaris*)
10582 version_type=linux
10583 need_lib_prefix=no
10584 need_version=no
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 hardcode_into_libs=yes
10590 # ldd complains unless libraries are executable
10591 postinstall_cmds='chmod +x $lib'
10592 ;;
10593
10594sunos4*)
10595 version_type=sunos
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 shlibpath_overrides_runpath=yes
10600 if test "$with_gnu_ld" = yes; then
10601 need_lib_prefix=no
10602 fi
10603 need_version=yes
10604 ;;
10605
mmentovai8c2a4de2006-09-20 16:20:15 +000010606sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010607 version_type=linux
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10609 soname_spec='${libname}${release}${shared_ext}$major'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 case $host_vendor in
10612 sni)
10613 shlibpath_overrides_runpath=no
10614 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010615 runpath_var=LD_RUN_PATH
10616 ;;
10617 siemens)
10618 need_lib_prefix=no
10619 ;;
10620 motorola)
10621 need_lib_prefix=no
10622 need_version=no
10623 shlibpath_overrides_runpath=no
10624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10625 ;;
10626 esac
10627 ;;
10628
10629sysv4*MP*)
10630 if test -d /usr/nec ;then
10631 version_type=linux
10632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10633 soname_spec='$libname${shared_ext}.$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 fi
10636 ;;
10637
mmentovai8c2a4de2006-09-20 16:20:15 +000010638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10639 version_type=freebsd-elf
10640 need_lib_prefix=no
10641 need_version=no
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10643 soname_spec='${libname}${release}${shared_ext}$major'
10644 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010645 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010646 hardcode_into_libs=yes
10647 if test "$with_gnu_ld" = yes; then
10648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010649 else
10650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010651 case $host_os in
10652 sco3.2v5*)
10653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10654 ;;
10655 esac
10656 fi
10657 sys_lib_dlsearch_path_spec='/usr/lib'
10658 ;;
10659
jimblandy92b1f832009-12-23 22:23:49 +000010660tpf*)
10661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10662 version_type=linux
10663 need_lib_prefix=no
10664 need_version=no
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 shlibpath_overrides_runpath=no
10668 hardcode_into_libs=yes
10669 ;;
10670
brynercb91a2f2006-08-25 21:14:45 +000010671uts4*)
10672 version_type=linux
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 ;;
10677
10678*)
10679 dynamic_linker=no
10680 ;;
10681esac
jimblandy92b1f832009-12-23 22:23:49 +000010682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10683$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010684test "$dynamic_linker" = no && can_build_shared=no
10685
mmentovai8c2a4de2006-09-20 16:20:15 +000010686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10687if test "$GCC" = yes; then
10688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10689fi
10690
jimblandy92b1f832009-12-23 22:23:49 +000010691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10693fi
10694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10696fi
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010786hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010787if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010789 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010790
jimblandy92b1f832009-12-23 22:23:49 +000010791 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010792 if test "$hardcode_direct" != no &&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010797 test "$hardcode_minus_L" != no; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action=relink
10800 else
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action=immediate
10803 fi
10804else
10805 # We cannot hardcode anything, or else we can only hardcode existing
10806 # directories.
10807 hardcode_action=unsupported
10808fi
jimblandy92b1f832009-12-23 22:23:49 +000010809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010811
jimblandy92b1f832009-12-23 22:23:49 +000010812if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010814 # Fast installation is not supported
10815 enable_fast_install=no
10816elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no; then
10818 # Fast installation is not necessary
10819 enable_fast_install=needless
10820fi
10821
brynercb91a2f2006-08-25 21:14:45 +000010822
jimblandy92b1f832009-12-23 22:23:49 +000010823
10824
10825
10826
10827 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010828 enable_dlopen=unknown
10829 enable_dlopen_self=unknown
10830 enable_dlopen_self_static=unknown
10831else
10832 lt_cv_dlopen=no
10833 lt_cv_dlopen_libs=
10834
10835 case $host_os in
10836 beos*)
10837 lt_cv_dlopen="load_add_on"
10838 lt_cv_dlopen_libs=
10839 lt_cv_dlopen_self=yes
10840 ;;
10841
jimblandy92b1f832009-12-23 22:23:49 +000010842 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010843 lt_cv_dlopen="LoadLibrary"
10844 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010845 ;;
brynercb91a2f2006-08-25 21:14:45 +000010846
10847 cygwin*)
10848 lt_cv_dlopen="dlopen"
10849 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010850 ;;
brynercb91a2f2006-08-25 21:14:45 +000010851
10852 darwin*)
10853 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855$as_echo_n "checking for dlopen in -ldl... " >&6; }
10856if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010858else
10859 ac_check_lib_save_LIBS=$LIBS
10860LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010862/* end confdefs.h. */
10863
mmentovai8c2a4de2006-09-20 16:20:15 +000010864/* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010867#ifdef __cplusplus
10868extern "C"
10869#endif
brynercb91a2f2006-08-25 21:14:45 +000010870char dlopen ();
10871int
10872main ()
10873{
mmentovai8c2a4de2006-09-20 16:20:15 +000010874return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010875 ;
10876 return 0;
10877}
10878_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010879if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010880 ac_cv_lib_dl_dlopen=yes
10881else
jimblandy92b1f832009-12-23 22:23:49 +000010882 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010883fi
jimblandy92b1f832009-12-23 22:23:49 +000010884rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010886LIBS=$ac_check_lib_save_LIBS
10887fi
jimblandy92b1f832009-12-23 22:23:49 +000010888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892else
10893
10894 lt_cv_dlopen="dyld"
10895 lt_cv_dlopen_libs=
10896 lt_cv_dlopen_self=yes
10897
10898fi
10899
jimblandy92b1f832009-12-23 22:23:49 +000010900 ;;
brynercb91a2f2006-08-25 21:14:45 +000010901
10902 *)
jimblandy92b1f832009-12-23 22:23:49 +000010903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010905 lt_cv_dlopen="shl_load"
10906else
jimblandy92b1f832009-12-23 22:23:49 +000010907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908$as_echo_n "checking for shl_load in -ldld... " >&6; }
10909if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010911else
10912 ac_check_lib_save_LIBS=$LIBS
10913LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010915/* end confdefs.h. */
10916
mmentovai8c2a4de2006-09-20 16:20:15 +000010917/* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010920#ifdef __cplusplus
10921extern "C"
10922#endif
brynercb91a2f2006-08-25 21:14:45 +000010923char shl_load ();
10924int
10925main ()
10926{
mmentovai8c2a4de2006-09-20 16:20:15 +000010927return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000010928 ;
10929 return 0;
10930}
10931_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010932if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010933 ac_cv_lib_dld_shl_load=yes
10934else
jimblandy92b1f832009-12-23 22:23:49 +000010935 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000010936fi
jimblandy92b1f832009-12-23 22:23:49 +000010937rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010939LIBS=$ac_check_lib_save_LIBS
10940fi
jimblandy92b1f832009-12-23 22:23:49 +000010941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000010944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000010945else
jimblandy92b1f832009-12-23 22:23:49 +000010946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010948 lt_cv_dlopen="dlopen"
10949else
jimblandy92b1f832009-12-23 22:23:49 +000010950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951$as_echo_n "checking for dlopen in -ldl... " >&6; }
10952if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010954else
10955 ac_check_lib_save_LIBS=$LIBS
10956LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010958/* end confdefs.h. */
10959
mmentovai8c2a4de2006-09-20 16:20:15 +000010960/* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010963#ifdef __cplusplus
10964extern "C"
10965#endif
brynercb91a2f2006-08-25 21:14:45 +000010966char dlopen ();
10967int
10968main ()
10969{
mmentovai8c2a4de2006-09-20 16:20:15 +000010970return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010971 ;
10972 return 0;
10973}
10974_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010975if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010976 ac_cv_lib_dl_dlopen=yes
10977else
jimblandy92b1f832009-12-23 22:23:49 +000010978 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010979fi
jimblandy92b1f832009-12-23 22:23:49 +000010980rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010982LIBS=$ac_check_lib_save_LIBS
10983fi
jimblandy92b1f832009-12-23 22:23:49 +000010984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10988else
jimblandy92b1f832009-12-23 22:23:49 +000010989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010993else
10994 ac_check_lib_save_LIBS=$LIBS
10995LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010997/* end confdefs.h. */
10998
mmentovai8c2a4de2006-09-20 16:20:15 +000010999/* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011002#ifdef __cplusplus
11003extern "C"
11004#endif
brynercb91a2f2006-08-25 21:14:45 +000011005char dlopen ();
11006int
11007main ()
11008{
mmentovai8c2a4de2006-09-20 16:20:15 +000011009return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011010 ;
11011 return 0;
11012}
11013_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011014if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011015 ac_cv_lib_svld_dlopen=yes
11016else
jimblandy92b1f832009-12-23 22:23:49 +000011017 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011018fi
jimblandy92b1f832009-12-23 22:23:49 +000011019rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011021LIBS=$ac_check_lib_save_LIBS
11022fi
jimblandy92b1f832009-12-23 22:23:49 +000011023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11027else
jimblandy92b1f832009-12-23 22:23:49 +000011028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029$as_echo_n "checking for dld_link in -ldld... " >&6; }
11030if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011032else
11033 ac_check_lib_save_LIBS=$LIBS
11034LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011036/* end confdefs.h. */
11037
mmentovai8c2a4de2006-09-20 16:20:15 +000011038/* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011041#ifdef __cplusplus
11042extern "C"
11043#endif
brynercb91a2f2006-08-25 21:14:45 +000011044char dld_link ();
11045int
11046main ()
11047{
mmentovai8c2a4de2006-09-20 16:20:15 +000011048return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011049 ;
11050 return 0;
11051}
11052_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011053if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011054 ac_cv_lib_dld_dld_link=yes
11055else
jimblandy92b1f832009-12-23 22:23:49 +000011056 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011057fi
jimblandy92b1f832009-12-23 22:23:49 +000011058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011060LIBS=$ac_check_lib_save_LIBS
11061fi
jimblandy92b1f832009-12-23 22:23:49 +000011062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011066fi
11067
11068
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077
11078fi
11079
11080
11081fi
11082
11083 ;;
11084 esac
11085
11086 if test "x$lt_cv_dlopen" != xno; then
11087 enable_dlopen=yes
11088 else
11089 enable_dlopen=no
11090 fi
11091
11092 case $lt_cv_dlopen in
11093 dlopen)
11094 save_CPPFLAGS="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11096
11097 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011099
11100 save_LIBS="$LIBS"
11101 LIBS="$lt_cv_dlopen_libs $LIBS"
11102
jimblandy92b1f832009-12-23 22:23:49 +000011103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105if test "${lt_cv_dlopen_self+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011107else
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self=cross
11110else
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011113 cat > conftest.$ac_ext <<_LT_EOF
jimblandydc4029a2010-02-02 17:39:51 +000011114#line 11114 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011115#include "confdefs.h"
11116
11117#if HAVE_DLFCN_H
11118#include <dlfcn.h>
11119#endif
11120
11121#include <stdio.h>
11122
11123#ifdef RTLD_GLOBAL
11124# define LT_DLGLOBAL RTLD_GLOBAL
11125#else
11126# ifdef DL_GLOBAL
11127# define LT_DLGLOBAL DL_GLOBAL
11128# else
11129# define LT_DLGLOBAL 0
11130# endif
11131#endif
11132
11133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135#ifndef LT_DLLAZY_OR_NOW
11136# ifdef RTLD_LAZY
11137# define LT_DLLAZY_OR_NOW RTLD_LAZY
11138# else
11139# ifdef DL_LAZY
11140# define LT_DLLAZY_OR_NOW DL_LAZY
11141# else
11142# ifdef RTLD_NOW
11143# define LT_DLLAZY_OR_NOW RTLD_NOW
11144# else
11145# ifdef DL_NOW
11146# define LT_DLLAZY_OR_NOW DL_NOW
11147# else
11148# define LT_DLLAZY_OR_NOW 0
11149# endif
11150# endif
11151# endif
11152# endif
11153#endif
11154
brynercb91a2f2006-08-25 21:14:45 +000011155void fnord() { int i=42;}
11156int main ()
11157{
11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159 int status = $lt_dlunknown;
11160
11161 if (self)
11162 {
11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11165 /* dlclose (self); */
11166 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011167 else
11168 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011169
jimblandy92b1f832009-12-23 22:23:49 +000011170 return status;
brynercb91a2f2006-08-25 21:14:45 +000011171}
jimblandy92b1f832009-12-23 22:23:49 +000011172_LT_EOF
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011174 (eval $ac_link) 2>&5
11175 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011178 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011179 lt_status=$?
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011184 esac
11185 else :
11186 # compilation failed
11187 lt_cv_dlopen_self=no
11188 fi
11189fi
11190rm -fr conftest*
11191
11192
11193fi
jimblandy92b1f832009-12-23 22:23:49 +000011194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011196
11197 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201if test "${lt_cv_dlopen_self_static+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011203else
11204 if test "$cross_compiling" = yes; then :
11205 lt_cv_dlopen_self_static=cross
11206else
11207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011209 cat > conftest.$ac_ext <<_LT_EOF
jimblandydc4029a2010-02-02 17:39:51 +000011210#line 11210 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011211#include "confdefs.h"
11212
11213#if HAVE_DLFCN_H
11214#include <dlfcn.h>
11215#endif
11216
11217#include <stdio.h>
11218
11219#ifdef RTLD_GLOBAL
11220# define LT_DLGLOBAL RTLD_GLOBAL
11221#else
11222# ifdef DL_GLOBAL
11223# define LT_DLGLOBAL DL_GLOBAL
11224# else
11225# define LT_DLGLOBAL 0
11226# endif
11227#endif
11228
11229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230 find out it does not work in some platform. */
11231#ifndef LT_DLLAZY_OR_NOW
11232# ifdef RTLD_LAZY
11233# define LT_DLLAZY_OR_NOW RTLD_LAZY
11234# else
11235# ifdef DL_LAZY
11236# define LT_DLLAZY_OR_NOW DL_LAZY
11237# else
11238# ifdef RTLD_NOW
11239# define LT_DLLAZY_OR_NOW RTLD_NOW
11240# else
11241# ifdef DL_NOW
11242# define LT_DLLAZY_OR_NOW DL_NOW
11243# else
11244# define LT_DLLAZY_OR_NOW 0
11245# endif
11246# endif
11247# endif
11248# endif
11249#endif
11250
brynercb91a2f2006-08-25 21:14:45 +000011251void fnord() { int i=42;}
11252int main ()
11253{
11254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11255 int status = $lt_dlunknown;
11256
11257 if (self)
11258 {
11259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11261 /* dlclose (self); */
11262 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011263 else
11264 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011265
jimblandy92b1f832009-12-23 22:23:49 +000011266 return status;
brynercb91a2f2006-08-25 21:14:45 +000011267}
jimblandy92b1f832009-12-23 22:23:49 +000011268_LT_EOF
11269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011270 (eval $ac_link) 2>&5
11271 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11273 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011274 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011275 lt_status=$?
11276 case x$lt_status in
11277 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11278 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011279 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011280 esac
11281 else :
11282 # compilation failed
11283 lt_cv_dlopen_self_static=no
11284 fi
11285fi
11286rm -fr conftest*
11287
11288
11289fi
jimblandy92b1f832009-12-23 22:23:49 +000011290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11291$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011292 fi
11293
11294 CPPFLAGS="$save_CPPFLAGS"
11295 LDFLAGS="$save_LDFLAGS"
11296 LIBS="$save_LIBS"
11297 ;;
11298 esac
11299
11300 case $lt_cv_dlopen_self in
11301 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11302 *) enable_dlopen_self=unknown ;;
11303 esac
11304
11305 case $lt_cv_dlopen_self_static in
11306 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11307 *) enable_dlopen_self_static=unknown ;;
11308 esac
11309fi
11310
11311
brynercb91a2f2006-08-25 21:14:45 +000011312
brynercb91a2f2006-08-25 21:14:45 +000011313
brynercb91a2f2006-08-25 21:14:45 +000011314
jimblandy92b1f832009-12-23 22:23:49 +000011315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327striplib=
11328old_striplib=
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11330$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11331if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11332 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11333 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11335$as_echo "yes" >&6; }
11336else
11337# FIXME - insert some real tests, host_os isn't really good enough
11338 case $host_os in
11339 darwin*)
11340 if test -n "$STRIP" ; then
11341 striplib="$STRIP -x"
11342 old_striplib="$STRIP -S"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11344$as_echo "yes" >&6; }
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
11348 fi
brynercb91a2f2006-08-25 21:14:45 +000011349 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011350 *)
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011353 ;;
11354 esac
jimblandy92b1f832009-12-23 22:23:49 +000011355fi
brynercb91a2f2006-08-25 21:14:45 +000011356
brynercb91a2f2006-08-25 21:14:45 +000011357
brynercb91a2f2006-08-25 21:14:45 +000011358
brynercb91a2f2006-08-25 21:14:45 +000011359
brynercb91a2f2006-08-25 21:14:45 +000011360
brynercb91a2f2006-08-25 21:14:45 +000011361
brynercb91a2f2006-08-25 21:14:45 +000011362
brynercb91a2f2006-08-25 21:14:45 +000011363
brynercb91a2f2006-08-25 21:14:45 +000011364
brynercb91a2f2006-08-25 21:14:45 +000011365
brynercb91a2f2006-08-25 21:14:45 +000011366
brynercb91a2f2006-08-25 21:14:45 +000011367
jimblandy92b1f832009-12-23 22:23:49 +000011368 # Report which library types will actually be built
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11370$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11372$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011373
jimblandy92b1f832009-12-23 22:23:49 +000011374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11375$as_echo_n "checking whether to build shared libraries... " >&6; }
11376 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011377
jimblandy92b1f832009-12-23 22:23:49 +000011378 # On AIX, shared libraries and static libraries use the same namespace, and
11379 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011380 case $host_os in
11381 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011382 test "$enable_shared" = yes && enable_static=no
11383 if test -n "$RANLIB"; then
11384 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11385 postinstall_cmds='$RANLIB $lib'
11386 fi
11387 ;;
brynercb91a2f2006-08-25 21:14:45 +000011388
jimblandy92b1f832009-12-23 22:23:49 +000011389 aix[4-9]*)
11390 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11391 test "$enable_shared" = yes && enable_static=no
11392 fi
brynercb91a2f2006-08-25 21:14:45 +000011393 ;;
11394 esac
jimblandy92b1f832009-12-23 22:23:49 +000011395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11396$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011397
jimblandy92b1f832009-12-23 22:23:49 +000011398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11399$as_echo_n "checking whether to build static libraries... " >&6; }
11400 # Make sure either enable_shared or enable_static is yes.
11401 test "$enable_shared" = yes || enable_static=yes
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11403$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011404
brynercb91a2f2006-08-25 21:14:45 +000011405
jimblandy92b1f832009-12-23 22:23:49 +000011406
11407
brynercb91a2f2006-08-25 21:14:45 +000011408fi
brynercb91a2f2006-08-25 21:14:45 +000011409ac_ext=c
11410ac_cpp='$CPP $CPPFLAGS'
11411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413ac_compiler_gnu=$ac_cv_c_compiler_gnu
11414
11415CC="$lt_save_CC"
11416
11417
jimblandy92b1f832009-12-23 22:23:49 +000011418ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011419ac_cpp='$CXXCPP $CPPFLAGS'
11420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11423
brynercb91a2f2006-08-25 21:14:45 +000011424archive_cmds_need_lc_CXX=no
11425allow_undefined_flag_CXX=
11426always_export_symbols_CXX=no
11427archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011428compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011429export_dynamic_flag_spec_CXX=
11430hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011431hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011432hardcode_libdir_flag_spec_CXX=
11433hardcode_libdir_flag_spec_ld_CXX=
11434hardcode_libdir_separator_CXX=
11435hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011436hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011437hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011438inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011439module_cmds_CXX=
11440module_expsym_cmds_CXX=
11441link_all_deplibs_CXX=unknown
11442old_archive_cmds_CXX=$old_archive_cmds
11443no_undefined_flag_CXX=
11444whole_archive_flag_spec_CXX=
11445enable_shared_with_static_runtimes_CXX=no
11446
brynercb91a2f2006-08-25 21:14:45 +000011447# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011448ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011449
11450# Object file extension for compiled C++ test sources.
11451objext=o
11452objext_CXX=$objext
11453
jimblandy92b1f832009-12-23 22:23:49 +000011454# No sense in running all these tests if we already determined that
11455# the CXX compiler isn't working. Some variables (like enable_shared)
11456# are currently assumed to apply to all compilers on this platform,
11457# and will be corrupted by setting them based on a non-working compiler.
11458if test "$_lt_caught_CXX_error" != yes; then
11459 # Code to be used in simple compile tests
11460 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011461
jimblandy92b1f832009-12-23 22:23:49 +000011462 # Code to be used in simple link tests
11463 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011464
jimblandy92b1f832009-12-23 22:23:49 +000011465 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11466
11467
11468
11469
11470
brynercb91a2f2006-08-25 21:14:45 +000011471
11472# If no C compiler was specified, use CC.
11473LTCC=${LTCC-"$CC"}
11474
mmentovai8c2a4de2006-09-20 16:20:15 +000011475# If no C compiler flags were specified, use CFLAGS.
11476LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11477
brynercb91a2f2006-08-25 21:14:45 +000011478# Allow CC to be a program name with arguments.
11479compiler=$CC
11480
11481
jimblandy92b1f832009-12-23 22:23:49 +000011482 # save warnings/boilerplate of simple test code
11483 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011484echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011485eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11486_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011487$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011488
jimblandy92b1f832009-12-23 22:23:49 +000011489 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011490echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011491eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011493$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011494
11495
jimblandy92b1f832009-12-23 22:23:49 +000011496 # Allow CC to be a program name with arguments.
11497 lt_save_CC=$CC
11498 lt_save_LD=$LD
11499 lt_save_GCC=$GCC
11500 GCC=$GXX
11501 lt_save_with_gnu_ld=$with_gnu_ld
11502 lt_save_path_LD=$lt_cv_path_LD
11503 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11504 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11505 else
11506 $as_unset lt_cv_prog_gnu_ld
11507 fi
11508 if test -n "${lt_cv_path_LDCXX+set}"; then
11509 lt_cv_path_LD=$lt_cv_path_LDCXX
11510 else
11511 $as_unset lt_cv_path_LD
11512 fi
11513 test -z "${LDCXX+set}" || LD=$LDCXX
11514 CC=${CXX-"c++"}
11515 compiler=$CC
11516 compiler_CXX=$CC
11517 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011518 case $cc_temp in
11519 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11520 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11521 \-*) ;;
11522 *) break;;
11523 esac
11524done
jimblandy92b1f832009-12-23 22:23:49 +000011525cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011526
brynercb91a2f2006-08-25 21:14:45 +000011527
jimblandy92b1f832009-12-23 22:23:49 +000011528 if test -n "$compiler"; then
11529 # We don't want -fno-exception when compiling C++ code, so set the
11530 # no_builtin_flag separately
11531 if test "$GXX" = yes; then
11532 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11533 else
11534 lt_prog_compiler_no_builtin_flag_CXX=
11535 fi
brynercb91a2f2006-08-25 21:14:45 +000011536
jimblandy92b1f832009-12-23 22:23:49 +000011537 if test "$GXX" = yes; then
11538 # Set up default GNU C++ configuration
11539
brynercb91a2f2006-08-25 21:14:45 +000011540
11541
mmentovai8c2a4de2006-09-20 16:20:15 +000011542# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011543if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011544 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011545else
11546 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011547fi
11548
brynercb91a2f2006-08-25 21:14:45 +000011549ac_prog=ld
11550if test "$GCC" = yes; then
11551 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11553$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011554 case $host in
11555 *-*-mingw*)
11556 # gcc leaves a trailing carriage return which upsets mingw
11557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11558 *)
11559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11560 esac
11561 case $ac_prog in
11562 # Accept absolute paths.
11563 [\\/]* | ?:[\\/]*)
11564 re_direlt='/[^/][^/]*/\.\./'
11565 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011569 done
11570 test -z "$LD" && LD="$ac_prog"
11571 ;;
11572 "")
11573 # If it fails, then pretend we aren't using GCC.
11574 ac_prog=ld
11575 ;;
11576 *)
11577 # If it is relative, then search for the first ld in PATH.
11578 with_gnu_ld=unknown
11579 ;;
11580 esac
11581elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11583$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011584else
jimblandy92b1f832009-12-23 22:23:49 +000011585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11586$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011587fi
jimblandy92b1f832009-12-23 22:23:49 +000011588if test "${lt_cv_path_LD+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011590else
11591 if test -z "$LD"; then
11592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11593 for ac_dir in $PATH; do
11594 IFS="$lt_save_ifs"
11595 test -z "$ac_dir" && ac_dir=.
11596 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11597 lt_cv_path_LD="$ac_dir/$ac_prog"
11598 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011599 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011600 # Break only if it was the GNU/non-GNU ld that we prefer.
11601 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11602 *GNU* | *'with BFD'*)
11603 test "$with_gnu_ld" != no && break
11604 ;;
11605 *)
11606 test "$with_gnu_ld" != yes && break
11607 ;;
11608 esac
11609 fi
11610 done
11611 IFS="$lt_save_ifs"
11612else
11613 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11614fi
11615fi
11616
11617LD="$lt_cv_path_LD"
11618if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11620$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011621else
jimblandy92b1f832009-12-23 22:23:49 +000011622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011624fi
jimblandy92b1f832009-12-23 22:23:49 +000011625test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11628if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011630else
mmentovai8c2a4de2006-09-20 16:20:15 +000011631 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011632case `$LD -v 2>&1 </dev/null` in
11633*GNU* | *'with BFD'*)
11634 lt_cv_prog_gnu_ld=yes
11635 ;;
11636*)
11637 lt_cv_prog_gnu_ld=no
11638 ;;
11639esac
11640fi
jimblandy92b1f832009-12-23 22:23:49 +000011641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011643with_gnu_ld=$lt_cv_prog_gnu_ld
11644
11645
11646
brynercb91a2f2006-08-25 21:14:45 +000011647
brynercb91a2f2006-08-25 21:14:45 +000011648
brynercb91a2f2006-08-25 21:14:45 +000011649
brynercb91a2f2006-08-25 21:14:45 +000011650
jimblandy92b1f832009-12-23 22:23:49 +000011651 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11652 # archiving commands below assume that GNU ld is being used.
11653 if test "$with_gnu_ld" = yes; then
11654 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11655 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011656
jimblandy92b1f832009-12-23 22:23:49 +000011657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011659
jimblandy92b1f832009-12-23 22:23:49 +000011660 # If archive_cmds runs LD, not CC, wlarc should be empty
11661 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11662 # investigate it a little bit more. (MM)
11663 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011664
jimblandy92b1f832009-12-23 22:23:49 +000011665 # ancient GNU ld didn't support --whole-archive et. al.
11666 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11667 $GREP 'no-whole-archive' > /dev/null; then
11668 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11669 else
11670 whole_archive_flag_spec_CXX=
11671 fi
brynercb91a2f2006-08-25 21:14:45 +000011672 else
jimblandy92b1f832009-12-23 22:23:49 +000011673 with_gnu_ld=no
11674 wlarc=
11675
11676 # A generic and very simple default shared library creation
11677 # command for GNU C++ for the case where it uses the native
11678 # linker, instead of GNU ld. If possible, this setting should
11679 # overridden to take advantage of the native linker features on
11680 # the platform it is being used on.
11681 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011682 fi
brynercb91a2f2006-08-25 21:14:45 +000011683
brynercb91a2f2006-08-25 21:14:45 +000011684 # Commands to make compiler produce verbose output that lists
11685 # what "hidden" libraries, object files and flags are used when
11686 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011687 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11688
11689 else
11690 GXX=no
11691 with_gnu_ld=no
11692 wlarc=
11693 fi
11694
11695 # PORTME: fill in a description of your system's C++ link characteristics
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11697$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11698 ld_shlibs_CXX=yes
11699 case $host_os in
11700 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011703 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011704 aix[4-9]*)
11705 if test "$host_cpu" = ia64; then
11706 # On IA64, the linker does run time linking by default, so we don't
11707 # have to do anything special.
11708 aix_use_runtimelinking=no
11709 exp_sym_flag='-Bexport'
11710 no_entry_flag=""
11711 else
11712 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011713
jimblandy92b1f832009-12-23 22:23:49 +000011714 # Test if we are trying to use run time linking or normal
11715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11716 # need to do runtime linking.
11717 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11718 for ld_flag in $LDFLAGS; do
11719 case $ld_flag in
11720 *-brtl*)
11721 aix_use_runtimelinking=yes
11722 break
11723 ;;
11724 esac
11725 done
11726 ;;
11727 esac
11728
11729 exp_sym_flag='-bexport'
11730 no_entry_flag='-bnoentry'
11731 fi
11732
11733 # When large executables or shared objects are built, AIX ld can
11734 # have problems creating the table of contents. If linking a library
11735 # or program results in "error TOC overflow" add -mminimal-toc to
11736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11738
11739 archive_cmds_CXX=''
11740 hardcode_direct_CXX=yes
11741 hardcode_direct_absolute_CXX=yes
11742 hardcode_libdir_separator_CXX=':'
11743 link_all_deplibs_CXX=yes
11744 file_list_spec_CXX='${wl}-f,'
11745
11746 if test "$GXX" = yes; then
11747 case $host_os in aix4.[012]|aix4.[012].*)
11748 # We only want to do this on AIX 4.2 and lower, the check
11749 # below for broken collect2 doesn't work under 4.3+
11750 collect2name=`${CC} -print-prog-name=collect2`
11751 if test -f "$collect2name" &&
11752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11753 then
11754 # We have reworked collect2
11755 :
11756 else
11757 # We have old collect2
11758 hardcode_direct_CXX=unsupported
11759 # It fails to find uninstalled libraries when the uninstalled
11760 # path is not listed in the libpath. Setting hardcode_minus_L
11761 # to unsupported forces relinking
11762 hardcode_minus_L_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='-L$libdir'
11764 hardcode_libdir_separator_CXX=
11765 fi
11766 esac
11767 shared_flag='-shared'
11768 if test "$aix_use_runtimelinking" = yes; then
11769 shared_flag="$shared_flag "'${wl}-G'
11770 fi
11771 else
11772 # not using gcc
11773 if test "$host_cpu" = ia64; then
11774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11775 # chokes on -Wl,-G. The following line is correct:
11776 shared_flag='-G'
11777 else
11778 if test "$aix_use_runtimelinking" = yes; then
11779 shared_flag='${wl}-G'
11780 else
11781 shared_flag='${wl}-bM:SRE'
11782 fi
11783 fi
11784 fi
11785
11786 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11787 # It seems that -bexpall does not export symbols beginning with
11788 # underscore (_), so it is better to generate a list of symbols to
11789 # export.
11790 always_export_symbols_CXX=yes
11791 if test "$aix_use_runtimelinking" = yes; then
11792 # Warning - without using the other runtime loading flags (-brtl),
11793 # -berok will link without error, but may produce a broken library.
11794 allow_undefined_flag_CXX='-berok'
11795 # Determine the default libpath from the value encoded in an empty
11796 # executable.
11797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798/* end confdefs.h. */
11799
11800int
11801main ()
11802{
11803
11804 ;
11805 return 0;
11806}
11807_ACEOF
11808if ac_fn_cxx_try_link "$LINENO"; then :
11809
11810lt_aix_libpath_sed='
11811 /Import File Strings/,/^$/ {
11812 /^0/ {
11813 s/^0 *\(.*\)$/\1/
11814 p
11815 }
11816 }'
11817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11818# Check for a 64-bit object if we didn't find anything.
11819if test -z "$aix_libpath"; then
11820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11821fi
11822fi
11823rm -f core conftest.err conftest.$ac_objext \
11824 conftest$ac_exeext conftest.$ac_ext
11825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11826
11827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11828
11829 archive_expsym_cmds_CXX='$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"
11830 else
11831 if test "$host_cpu" = ia64; then
11832 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11833 allow_undefined_flag_CXX="-z nodefs"
11834 archive_expsym_cmds_CXX="\$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"
11835 else
11836 # Determine the default libpath from the value encoded in an
11837 # empty executable.
11838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11839/* end confdefs.h. */
11840
11841int
11842main ()
11843{
11844
11845 ;
11846 return 0;
11847}
11848_ACEOF
11849if ac_fn_cxx_try_link "$LINENO"; then :
11850
11851lt_aix_libpath_sed='
11852 /Import File Strings/,/^$/ {
11853 /^0/ {
11854 s/^0 *\(.*\)$/\1/
11855 p
11856 }
11857 }'
11858aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11859# Check for a 64-bit object if we didn't find anything.
11860if test -z "$aix_libpath"; then
11861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11862fi
11863fi
11864rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11867
11868 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11869 # Warning - without using the other run time loading flags,
11870 # -berok will link without error, but may produce a broken library.
11871 no_undefined_flag_CXX=' ${wl}-bernotok'
11872 allow_undefined_flag_CXX=' ${wl}-berok'
11873 # Exported symbols can be pulled into shared objects from archives
11874 whole_archive_flag_spec_CXX='$convenience'
11875 archive_cmds_need_lc_CXX=yes
11876 # This is similar to how AIX traditionally builds its shared
11877 # libraries.
11878 archive_expsym_cmds_CXX="\$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'
11879 fi
11880 fi
11881 ;;
11882
11883 beos*)
11884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11885 allow_undefined_flag_CXX=unsupported
11886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11887 # support --undefined. This deserves some investigation. FIXME
11888 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889 else
11890 ld_shlibs_CXX=no
11891 fi
brynercb91a2f2006-08-25 21:14:45 +000011892 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011893
11894 chorus*)
11895 case $cc_basename in
11896 *)
11897 # FIXME: insert proper C++ library support
11898 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011899 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011900 esac
11901 ;;
11902
11903 cygwin* | mingw* | pw32* | cegcc*)
11904 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11905 # as there is no search path for DLLs.
11906 hardcode_libdir_flag_spec_CXX='-L$libdir'
11907 allow_undefined_flag_CXX=unsupported
11908 always_export_symbols_CXX=no
11909 enable_shared_with_static_runtimes_CXX=yes
11910
11911 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11913 # If the export-symbols file already is a .def file (1st line
11914 # is EXPORTS), use it as is; otherwise, prepend...
11915 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11916 cp $export_symbols $output_objdir/$soname.def;
11917 else
11918 echo EXPORTS > $output_objdir/$soname.def;
11919 cat $export_symbols >> $output_objdir/$soname.def;
11920 fi~
11921 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11922 else
11923 ld_shlibs_CXX=no
11924 fi
11925 ;;
11926 darwin* | rhapsody*)
11927
11928
11929 archive_cmds_need_lc_CXX=no
11930 hardcode_direct_CXX=no
11931 hardcode_automatic_CXX=yes
11932 hardcode_shlibpath_var_CXX=unsupported
11933 whole_archive_flag_spec_CXX=''
11934 link_all_deplibs_CXX=yes
11935 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11936 case $cc_basename in
11937 ifort*) _lt_dar_can_shared=yes ;;
11938 *) _lt_dar_can_shared=$GCC ;;
11939 esac
11940 if test "$_lt_dar_can_shared" = "yes"; then
11941 output_verbose_link_cmd=echo
11942 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11943 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11944 archive_expsym_cmds_CXX="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}"
11945 module_expsym_cmds_CXX="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}"
11946 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11947 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11948 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11949 fi
11950
11951 else
11952 ld_shlibs_CXX=no
11953 fi
11954
brynercb91a2f2006-08-25 21:14:45 +000011955 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011956
11957 dgux*)
11958 case $cc_basename in
11959 ec++*)
11960 # FIXME: insert proper C++ library support
11961 ld_shlibs_CXX=no
11962 ;;
11963 ghcx*)
11964 # Green Hills C++ Compiler
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968 *)
11969 # FIXME: insert proper C++ library support
11970 ld_shlibs_CXX=no
11971 ;;
11972 esac
11973 ;;
11974
11975 freebsd[12]*)
11976 # C++ shared libraries reported to be fairly broken before
11977 # switch to ELF
11978 ld_shlibs_CXX=no
11979 ;;
11980
11981 freebsd-elf*)
11982 archive_cmds_need_lc_CXX=no
11983 ;;
11984
11985 freebsd* | dragonfly*)
11986 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11987 # conventions
11988 ld_shlibs_CXX=yes
11989 ;;
11990
11991 gnu*)
11992 ;;
11993
11994 hpux9*)
11995 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11996 hardcode_libdir_separator_CXX=:
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 hardcode_direct_CXX=yes
11999 hardcode_minus_L_CXX=yes # Not in the search PATH,
12000 # but as the default
12001 # location of the library.
12002
12003 case $cc_basename in
12004 CC*)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 aCC*)
12009 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12010 # Commands to make compiler produce verbose output that lists
12011 # what "hidden" libraries, object files and flags are used when
12012 # linking a shared library.
12013 #
12014 # There doesn't appear to be a way to prevent this compiler from
12015 # explicitly linking system object files so we need to strip them
12016 # from the output so that they don't get included in the library
12017 # dependencies.
12018 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12019 ;;
12020 *)
12021 if test "$GXX" = yes; then
12022 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12023 else
12024 # FIXME: insert proper C++ library support
12025 ld_shlibs_CXX=no
12026 fi
12027 ;;
12028 esac
12029 ;;
12030
12031 hpux10*|hpux11*)
12032 if test $with_gnu_ld = no; then
12033 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12034 hardcode_libdir_separator_CXX=:
12035
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12038 ;;
12039 *)
12040 export_dynamic_flag_spec_CXX='${wl}-E'
12041 ;;
12042 esac
12043 fi
12044 case $host_cpu in
12045 hppa*64*|ia64*)
12046 hardcode_direct_CXX=no
12047 hardcode_shlibpath_var_CXX=no
12048 ;;
12049 *)
12050 hardcode_direct_CXX=yes
12051 hardcode_direct_absolute_CXX=yes
12052 hardcode_minus_L_CXX=yes # Not in the search PATH,
12053 # but as the default
12054 # location of the library.
12055 ;;
12056 esac
12057
12058 case $cc_basename in
12059 CC*)
12060 # FIXME: insert proper C++ library support
12061 ld_shlibs_CXX=no
12062 ;;
12063 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012064 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012065 hppa*64*)
12066 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12067 ;;
12068 ia64*)
12069 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12070 ;;
12071 *)
12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 ;;
12074 esac
12075 # Commands to make compiler produce verbose output that lists
12076 # what "hidden" libraries, object files and flags are used when
12077 # linking a shared library.
12078 #
12079 # There doesn't appear to be a way to prevent this compiler from
12080 # explicitly linking system object files so we need to strip them
12081 # from the output so that they don't get included in the library
12082 # dependencies.
12083 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12084 ;;
12085 *)
12086 if test "$GXX" = yes; then
12087 if test $with_gnu_ld = no; then
12088 case $host_cpu in
12089 hppa*64*)
12090 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12091 ;;
12092 ia64*)
12093 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12094 ;;
12095 *)
12096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097 ;;
12098 esac
12099 fi
12100 else
12101 # FIXME: insert proper C++ library support
12102 ld_shlibs_CXX=no
12103 fi
12104 ;;
12105 esac
12106 ;;
12107
12108 interix[3-9]*)
12109 hardcode_direct_CXX=no
12110 hardcode_shlibpath_var_CXX=no
12111 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12112 export_dynamic_flag_spec_CXX='${wl}-E'
12113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12114 # Instead, shared libraries are loaded at an image base (0x10000000 by
12115 # default) and relocated if they conflict, which is a slow very memory
12116 # consuming and fragmenting process. To avoid this, we pick a random,
12117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12119 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12120 archive_expsym_cmds_CXX='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'
12121 ;;
12122 irix5* | irix6*)
12123 case $cc_basename in
12124 CC*)
12125 # SGI C++
12126 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12127
12128 # Archives containing C++ object files must be created using
12129 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12130 # necessary to make sure instantiated templates are included
12131 # in the archive.
12132 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12133 ;;
12134 *)
12135 if test "$GXX" = yes; then
12136 if test "$with_gnu_ld" = no; then
12137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12138 else
12139 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12140 fi
12141 fi
12142 link_all_deplibs_CXX=yes
12143 ;;
12144 esac
12145 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12146 hardcode_libdir_separator_CXX=:
12147 inherit_rpath_CXX=yes
12148 ;;
12149
12150 linux* | k*bsd*-gnu)
12151 case $cc_basename in
12152 KCC*)
12153 # Kuck and Associates, Inc. (KAI) C++ Compiler
12154
12155 # KCC will only create a shared library if the output file
12156 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12157 # to its proper name (with version) after linking.
12158 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12159 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12160 # Commands to make compiler produce verbose output that lists
12161 # what "hidden" libraries, object files and flags are used when
12162 # linking a shared library.
12163 #
12164 # There doesn't appear to be a way to prevent this compiler from
12165 # explicitly linking system object files so we need to strip them
12166 # from the output so that they don't get included in the library
12167 # dependencies.
12168 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12169
12170 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12172
12173 # Archives containing C++ object files must be created using
12174 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12175 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12176 ;;
12177 icpc* | ecpc* )
12178 # Intel C++
12179 with_gnu_ld=yes
12180 # version 8.0 and above of icpc choke on multiply defined symbols
12181 # if we add $predep_objects and $postdep_objects, however 7.1 and
12182 # earlier do not add the objects themselves.
12183 case `$CC -V 2>&1` in
12184 *"Version 7."*)
12185 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12186 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12187 ;;
12188 *) # Version 8.0 or newer
12189 tmp_idyn=
12190 case $host_cpu in
12191 ia64*) tmp_idyn=' -i_dynamic';;
12192 esac
12193 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12194 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12195 ;;
12196 esac
12197 archive_cmds_need_lc_CXX=no
12198 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12199 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12200 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12201 ;;
12202 pgCC* | pgcpp*)
12203 # Portland Group C++ compiler
12204 case `$CC -V` in
12205 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12206 prelink_cmds_CXX='tpldir=Template.dir~
12207 rm -rf $tpldir~
12208 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12209 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12210 old_archive_cmds_CXX='tpldir=Template.dir~
12211 rm -rf $tpldir~
12212 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12213 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12214 $RANLIB $oldlib'
12215 archive_cmds_CXX='tpldir=Template.dir~
12216 rm -rf $tpldir~
12217 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12218 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12219 archive_expsym_cmds_CXX='tpldir=Template.dir~
12220 rm -rf $tpldir~
12221 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12222 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000012223 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012224 *) # Version 6 will use weak symbols
12225 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12226 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000012227 ;;
12228 esac
brynercb91a2f2006-08-25 21:14:45 +000012229
jimblandy92b1f832009-12-23 22:23:49 +000012230 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12231 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12232 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12233 ;;
12234 cxx*)
12235 # Compaq C++
12236 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000012238
jimblandy92b1f832009-12-23 22:23:49 +000012239 runpath_var=LD_RUN_PATH
12240 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12241 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012242
jimblandy92b1f832009-12-23 22:23:49 +000012243 # Commands to make compiler produce verbose output that lists
12244 # what "hidden" libraries, object files and flags are used when
12245 # linking a shared library.
12246 #
12247 # There doesn't appear to be a way to prevent this compiler from
12248 # explicitly linking system object files so we need to strip them
12249 # from the output so that they don't get included in the library
12250 # dependencies.
12251 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12252 ;;
12253 xl*)
12254 # IBM XL 8.0 on PPC, with GNU ld
12255 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12256 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12257 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 if test "x$supports_anon_versioning" = xyes; then
12259 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12261 echo "local: *; };" >> $output_objdir/$libname.ver~
12262 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12263 fi
12264 ;;
12265 *)
12266 case `$CC -V 2>&1 | sed 5q` in
12267 *Sun\ C*)
12268 # Sun C++ 5.9
12269 no_undefined_flag_CXX=' -zdefs'
12270 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12271 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12272 hardcode_libdir_flag_spec_CXX='-R$libdir'
12273 whole_archive_flag_spec_CXX='${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'
12274 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012275
jimblandy92b1f832009-12-23 22:23:49 +000012276 # Not sure whether something based on
12277 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12278 # would be better.
12279 output_verbose_link_cmd='echo'
12280
12281 # Archives containing C++ object files must be created using
12282 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12283 # necessary to make sure instantiated templates are included
12284 # in the archive.
12285 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12286 ;;
12287 esac
12288 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012289 esac
brynercb91a2f2006-08-25 21:14:45 +000012290 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012291
jimblandy92b1f832009-12-23 22:23:49 +000012292 lynxos*)
12293 # FIXME: insert proper C++ library support
12294 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012295 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012296
12297 m88k*)
12298 # FIXME: insert proper C++ library support
12299 ld_shlibs_CXX=no
12300 ;;
12301
12302 mvs*)
12303 case $cc_basename in
12304 cxx*)
12305 # FIXME: insert proper C++ library support
12306 ld_shlibs_CXX=no
12307 ;;
12308 *)
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12311 ;;
12312 esac
12313 ;;
12314
12315 netbsd*)
12316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12317 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12318 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012319 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012320 hardcode_direct_CXX=yes
12321 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012322 fi
jimblandy92b1f832009-12-23 22:23:49 +000012323 # Workaround some broken pre-1.5 toolchains
12324 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
brynercb91a2f2006-08-25 21:14:45 +000012325 ;;
brynercb91a2f2006-08-25 21:14:45 +000012326
jimblandy92b1f832009-12-23 22:23:49 +000012327 *nto* | *qnx*)
12328 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012329 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012330
12331 openbsd2*)
12332 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012333 ld_shlibs_CXX=no
12334 ;;
brynercb91a2f2006-08-25 21:14:45 +000012335
jimblandy92b1f832009-12-23 22:23:49 +000012336 openbsd*)
12337 if test -f /usr/libexec/ld.so; then
12338 hardcode_direct_CXX=yes
12339 hardcode_shlibpath_var_CXX=no
12340 hardcode_direct_absolute_CXX=yes
12341 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12344 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12345 export_dynamic_flag_spec_CXX='${wl}-E'
12346 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012347 fi
jimblandy92b1f832009-12-23 22:23:49 +000012348 output_verbose_link_cmd=echo
12349 else
12350 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012351 fi
12352 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012353
jimblandy92b1f832009-12-23 22:23:49 +000012354 osf3* | osf4* | osf5*)
12355 case $cc_basename in
12356 KCC*)
12357 # Kuck and Associates, Inc. (KAI) C++ Compiler
12358
12359 # KCC will only create a shared library if the output file
12360 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12361 # to its proper name (with version) after linking.
12362 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12363
12364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12365 hardcode_libdir_separator_CXX=:
12366
12367 # Archives containing C++ object files must be created using
12368 # the KAI C++ compiler.
12369 case $host in
12370 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12371 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12372 esac
12373 ;;
12374 RCC*)
12375 # Rational C++ 2.4.1
12376 # FIXME: insert proper C++ library support
12377 ld_shlibs_CXX=no
12378 ;;
12379 cxx*)
12380 case $host in
12381 osf3*)
12382 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12383 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12385 ;;
12386 *)
12387 allow_undefined_flag_CXX=' -expect_unresolved \*'
12388 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12389 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12390 echo "-hidden">> $lib.exp~
12391 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12392 $RM $lib.exp'
12393 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12394 ;;
12395 esac
12396
12397 hardcode_libdir_separator_CXX=:
12398
12399 # Commands to make compiler produce verbose output that lists
12400 # what "hidden" libraries, object files and flags are used when
12401 # linking a shared library.
12402 #
12403 # There doesn't appear to be a way to prevent this compiler from
12404 # explicitly linking system object files so we need to strip them
12405 # from the output so that they don't get included in the library
12406 # dependencies.
12407 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12408 ;;
12409 *)
12410 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12411 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12412 case $host in
12413 osf3*)
12414 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
12415 ;;
12416 *)
12417 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12418 ;;
12419 esac
12420
12421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12422 hardcode_libdir_separator_CXX=:
12423
12424 # Commands to make compiler produce verbose output that lists
12425 # what "hidden" libraries, object files and flags are used when
12426 # linking a shared library.
12427 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12428
12429 else
12430 # FIXME: insert proper C++ library support
12431 ld_shlibs_CXX=no
12432 fi
12433 ;;
12434 esac
12435 ;;
12436
12437 psos*)
12438 # FIXME: insert proper C++ library support
12439 ld_shlibs_CXX=no
12440 ;;
12441
12442 sunos4*)
12443 case $cc_basename in
12444 CC*)
12445 # Sun C++ 4.x
12446 # FIXME: insert proper C++ library support
12447 ld_shlibs_CXX=no
12448 ;;
12449 lcc*)
12450 # Lucid
12451 # FIXME: insert proper C++ library support
12452 ld_shlibs_CXX=no
12453 ;;
12454 *)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 esac
12459 ;;
12460
12461 solaris*)
12462 case $cc_basename in
12463 CC*)
12464 # Sun C++ 4.2, 5.x and Centerline C++
12465 archive_cmds_need_lc_CXX=yes
12466 no_undefined_flag_CXX=' -zdefs'
12467 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12468 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12469 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12470
12471 hardcode_libdir_flag_spec_CXX='-R$libdir'
12472 hardcode_shlibpath_var_CXX=no
12473 case $host_os in
12474 solaris2.[0-5] | solaris2.[0-5].*) ;;
12475 *)
12476 # The compiler driver will combine and reorder linker options,
12477 # but understands `-z linker_flag'.
12478 # Supported since Solaris 2.6 (maybe 2.5.1?)
12479 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12480 ;;
12481 esac
12482 link_all_deplibs_CXX=yes
12483
12484 output_verbose_link_cmd='echo'
12485
12486 # Archives containing C++ object files must be created using
12487 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12488 # necessary to make sure instantiated templates are included
12489 # in the archive.
12490 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12491 ;;
12492 gcx*)
12493 # Green Hills C++ Compiler
12494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12495
12496 # The C++ compiler must be used to create the archive.
12497 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12498 ;;
12499 *)
12500 # GNU C++ compiler with Solaris linker
12501 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12502 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12503 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12504 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12505 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12506 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12507
12508 # Commands to make compiler produce verbose output that lists
12509 # what "hidden" libraries, object files and flags are used when
12510 # linking a shared library.
12511 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12512 else
12513 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12514 # platform.
12515 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12516 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12517 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12518
12519 # Commands to make compiler produce verbose output that lists
12520 # what "hidden" libraries, object files and flags are used when
12521 # linking a shared library.
12522 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12523 fi
12524
12525 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12526 case $host_os in
12527 solaris2.[0-5] | solaris2.[0-5].*) ;;
12528 *)
12529 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12530 ;;
12531 esac
12532 fi
12533 ;;
12534 esac
12535 ;;
12536
12537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12538 no_undefined_flag_CXX='${wl}-z,text'
12539 archive_cmds_need_lc_CXX=no
12540 hardcode_shlibpath_var_CXX=no
12541 runpath_var='LD_RUN_PATH'
12542
12543 case $cc_basename in
12544 CC*)
12545 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12546 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 ;;
12548 *)
12549 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12550 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12551 ;;
12552 esac
12553 ;;
12554
12555 sysv5* | sco3.2v5* | sco5v6*)
12556 # Note: We can NOT use -z defs as we might desire, because we do not
12557 # link with -lc, and that would cause any symbols used from libc to
12558 # always be unresolved, which means just about no library would
12559 # ever link correctly. If we're not using GNU ld we use -z text
12560 # though, which does catch some bad symbols but isn't as heavy-handed
12561 # as -z defs.
12562 no_undefined_flag_CXX='${wl}-z,text'
12563 allow_undefined_flag_CXX='${wl}-z,nodefs'
12564 archive_cmds_need_lc_CXX=no
12565 hardcode_shlibpath_var_CXX=no
12566 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12567 hardcode_libdir_separator_CXX=':'
12568 link_all_deplibs_CXX=yes
12569 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12570 runpath_var='LD_RUN_PATH'
12571
12572 case $cc_basename in
12573 CC*)
12574 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12575 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12576 ;;
12577 *)
12578 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12579 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12580 ;;
12581 esac
12582 ;;
12583
12584 tandem*)
12585 case $cc_basename in
12586 NCC*)
12587 # NonStop-UX NCC 3.20
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12590 ;;
12591 *)
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12594 ;;
12595 esac
12596 ;;
12597
12598 vxworks*)
12599 # FIXME: insert proper C++ library support
12600 ld_shlibs_CXX=no
12601 ;;
12602
mmentovai8c2a4de2006-09-20 16:20:15 +000012603 *)
jimblandy92b1f832009-12-23 22:23:49 +000012604 # FIXME: insert proper C++ library support
12605 ld_shlibs_CXX=no
12606 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012607 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012608
jimblandy92b1f832009-12-23 22:23:49 +000012609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12610$as_echo "$ld_shlibs_CXX" >&6; }
12611 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012612
jimblandy92b1f832009-12-23 22:23:49 +000012613 GCC_CXX="$GXX"
12614 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012615
jimblandy92b1f832009-12-23 22:23:49 +000012616 ## CAVEAT EMPTOR:
12617 ## There is no encapsulation within the following macros, do not change
12618 ## the running order or otherwise move them around unless you know exactly
12619 ## what you are doing...
12620 # Dependencies to place before and after the object being linked:
12621predep_objects_CXX=
12622postdep_objects_CXX=
12623predeps_CXX=
12624postdeps_CXX=
12625compiler_lib_search_path_CXX=
12626
12627cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012628class Foo
12629{
12630public:
12631 Foo (void) { a = 0; }
12632private:
12633 int a;
12634};
jimblandy92b1f832009-12-23 22:23:49 +000012635_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012636
jimblandy92b1f832009-12-23 22:23:49 +000012637if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012638 (eval $ac_compile) 2>&5
12639 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012642 # Parse the compiler output and extract the necessary
12643 # objects, libraries and library flags.
12644
12645 # Sentinel used to keep track of whether or not we are before
12646 # the conftest object file.
12647 pre_test_object_deps_done=no
12648
jimblandy92b1f832009-12-23 22:23:49 +000012649 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012650 case $p in
12651
12652 -L* | -R* | -l*)
12653 # Some compilers place space between "-{L,R}" and the path.
12654 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012655 if test $p = "-L" ||
12656 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012657 prev=$p
12658 continue
12659 else
12660 prev=
12661 fi
12662
12663 if test "$pre_test_object_deps_done" = no; then
12664 case $p in
12665 -L* | -R*)
12666 # Internal compiler library paths should come after those
12667 # provided the user. The postdeps already come after the
12668 # user supplied libs so there is no need to process them.
12669 if test -z "$compiler_lib_search_path_CXX"; then
12670 compiler_lib_search_path_CXX="${prev}${p}"
12671 else
12672 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12673 fi
12674 ;;
12675 # The "-l" case would never come before the object being
12676 # linked, so don't bother handling this case.
12677 esac
12678 else
12679 if test -z "$postdeps_CXX"; then
12680 postdeps_CXX="${prev}${p}"
12681 else
12682 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12683 fi
12684 fi
12685 ;;
12686
12687 *.$objext)
12688 # This assumes that the test object file only shows up
12689 # once in the compiler output.
12690 if test "$p" = "conftest.$objext"; then
12691 pre_test_object_deps_done=yes
12692 continue
12693 fi
12694
12695 if test "$pre_test_object_deps_done" = no; then
12696 if test -z "$predep_objects_CXX"; then
12697 predep_objects_CXX="$p"
12698 else
12699 predep_objects_CXX="$predep_objects_CXX $p"
12700 fi
12701 else
12702 if test -z "$postdep_objects_CXX"; then
12703 postdep_objects_CXX="$p"
12704 else
12705 postdep_objects_CXX="$postdep_objects_CXX $p"
12706 fi
12707 fi
12708 ;;
12709
12710 *) ;; # Ignore the rest.
12711
12712 esac
12713 done
12714
12715 # Clean up.
12716 rm -f a.out a.exe
12717else
12718 echo "libtool.m4: error: problem compiling CXX test program"
12719fi
12720
jimblandy92b1f832009-12-23 22:23:49 +000012721$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012722
mmentovai8c2a4de2006-09-20 16:20:15 +000012723# PORTME: override above test on systems where it is broken
12724case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012725interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012726 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12727 # hack all around it, let's just trust "g++" to DTRT.
12728 predep_objects_CXX=
12729 postdep_objects_CXX=
12730 postdeps_CXX=
12731 ;;
12732
ted.mielczarek1adb1842009-12-21 13:12:20 +000012733linux*)
12734 case `$CC -V 2>&1 | sed 5q` in
12735 *Sun\ C*)
12736 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012737
ted.mielczarek1adb1842009-12-21 13:12:20 +000012738 # The more standards-conforming stlport4 library is
12739 # incompatible with the Cstd library. Avoid specifying
12740 # it if it's in CXXFLAGS. Ignore libCrun as
12741 # -library=stlport4 depends on it.
12742 case " $CXX $CXXFLAGS " in
12743 *" -library=stlport4 "*)
12744 solaris_use_stlport4=yes
12745 ;;
12746 esac
jimblandy92b1f832009-12-23 22:23:49 +000012747
ted.mielczarek1adb1842009-12-21 13:12:20 +000012748 if test "$solaris_use_stlport4" != yes; then
12749 postdeps_CXX='-library=Cstd -library=Crun'
12750 fi
12751 ;;
12752 esac
12753 ;;
12754
mmentovai8c2a4de2006-09-20 16:20:15 +000012755solaris*)
12756 case $cc_basename in
12757 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012758 # The more standards-conforming stlport4 library is
12759 # incompatible with the Cstd library. Avoid specifying
12760 # it if it's in CXXFLAGS. Ignore libCrun as
12761 # -library=stlport4 depends on it.
12762 case " $CXX $CXXFLAGS " in
12763 *" -library=stlport4 "*)
12764 solaris_use_stlport4=yes
12765 ;;
12766 esac
12767
mmentovai8c2a4de2006-09-20 16:20:15 +000012768 # Adding this requires a known-good setup of shared libraries for
12769 # Sun compiler versions before 5.6, else PIC objects from an old
12770 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012771 if test "$solaris_use_stlport4" != yes; then
12772 postdeps_CXX='-library=Cstd -library=Crun'
12773 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012774 ;;
12775 esac
12776 ;;
12777esac
12778
jimblandy92b1f832009-12-23 22:23:49 +000012779
brynercb91a2f2006-08-25 21:14:45 +000012780case " $postdeps_CXX " in
12781*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12782esac
jimblandy92b1f832009-12-23 22:23:49 +000012783 compiler_lib_search_dirs_CXX=
12784if test -n "${compiler_lib_search_path_CXX}"; then
12785 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12786fi
brynercb91a2f2006-08-25 21:14:45 +000012787
jimblandy92b1f832009-12-23 22:23:49 +000012788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012819lt_prog_compiler_pic_CXX=
12820lt_prog_compiler_static_CXX=
12821
jimblandy92b1f832009-12-23 22:23:49 +000012822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12823$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012824
12825 # C++ specific cases for pic, static, wl, etc.
12826 if test "$GXX" = yes; then
12827 lt_prog_compiler_wl_CXX='-Wl,'
12828 lt_prog_compiler_static_CXX='-static'
12829
12830 case $host_os in
12831 aix*)
12832 # All AIX code is PIC.
12833 if test "$host_cpu" = ia64; then
12834 # AIX 5 now supports IA64 processor
12835 lt_prog_compiler_static_CXX='-Bstatic'
12836 fi
12837 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012838
brynercb91a2f2006-08-25 21:14:45 +000012839 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012840 case $host_cpu in
12841 powerpc)
12842 # see comment about AmigaOS4 .so support
12843 lt_prog_compiler_pic_CXX='-fPIC'
12844 ;;
12845 m68k)
12846 # FIXME: we need at least 68020 code to build shared libraries, but
12847 # adding the `-m68020' flag to GCC prevents building anything better,
12848 # like `-m68040'.
12849 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12850 ;;
12851 esac
brynercb91a2f2006-08-25 21:14:45 +000012852 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012853
ted.mielczarek1adb1842009-12-21 13:12:20 +000012854 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012855 # PIC is the default for these OSes.
12856 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012857 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012858 # This hack is so that the source file can tell whether it is being
12859 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012860 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12861 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012862 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12863 ;;
12864 darwin* | rhapsody*)
12865 # PIC is the default on this platform
12866 # Common symbols not allowed in MH_DYLIB files
12867 lt_prog_compiler_pic_CXX='-fno-common'
12868 ;;
12869 *djgpp*)
12870 # DJGPP does not support shared libraries at all
12871 lt_prog_compiler_pic_CXX=
12872 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012873 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12875 # Instead, we relocate shared libraries at runtime.
12876 ;;
brynercb91a2f2006-08-25 21:14:45 +000012877 sysv4*MP*)
12878 if test -d /usr/nec; then
12879 lt_prog_compiler_pic_CXX=-Kconform_pic
12880 fi
12881 ;;
12882 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012883 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12884 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12885 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012886 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012887 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012888 ;;
12889 *)
12890 lt_prog_compiler_pic_CXX='-fPIC'
12891 ;;
12892 esac
12893 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012894 *qnx* | *nto*)
12895 # QNX uses GNU C++, but need to define -shared option too, otherwise
12896 # it will coredump.
12897 lt_prog_compiler_pic_CXX='-fPIC -shared'
12898 ;;
brynercb91a2f2006-08-25 21:14:45 +000012899 *)
12900 lt_prog_compiler_pic_CXX='-fPIC'
12901 ;;
12902 esac
12903 else
12904 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012905 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012906 # All AIX code is PIC.
12907 if test "$host_cpu" = ia64; then
12908 # AIX 5 now supports IA64 processor
12909 lt_prog_compiler_static_CXX='-Bstatic'
12910 else
12911 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12912 fi
12913 ;;
12914 chorus*)
12915 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012916 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012917 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000012918 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
brynercb91a2f2006-08-25 21:14:45 +000012919 ;;
12920 esac
12921 ;;
12922 dgux*)
12923 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012924 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012925 lt_prog_compiler_pic_CXX='-KPIC'
12926 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012927 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012928 # Green Hills C++ Compiler
12929 lt_prog_compiler_pic_CXX='-pic'
12930 ;;
12931 *)
12932 ;;
12933 esac
12934 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012935 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012936 # FreeBSD uses GNU C++
12937 ;;
12938 hpux9* | hpux10* | hpux11*)
12939 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012940 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012941 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012942 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012943 if test "$host_cpu" != ia64; then
12944 lt_prog_compiler_pic_CXX='+Z'
12945 fi
12946 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012947 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012948 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012949 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12950 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012951 hppa*64*|ia64*)
12952 # +Z the default
12953 ;;
12954 *)
12955 lt_prog_compiler_pic_CXX='+Z'
12956 ;;
12957 esac
12958 ;;
12959 *)
12960 ;;
12961 esac
12962 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012963 interix*)
12964 # This is c89, which is MS Visual C++ (no shared libs)
12965 # Anyone wants to do a port?
12966 ;;
brynercb91a2f2006-08-25 21:14:45 +000012967 irix5* | irix6* | nonstopux*)
12968 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012969 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012970 lt_prog_compiler_wl_CXX='-Wl,'
12971 lt_prog_compiler_static_CXX='-non_shared'
12972 # CC pic flag -KPIC is the default.
12973 ;;
12974 *)
12975 ;;
12976 esac
12977 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012978 linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000012979 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012980 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012981 # KAI C++ Compiler
12982 lt_prog_compiler_wl_CXX='--backend -Wl,'
12983 lt_prog_compiler_pic_CXX='-fPIC'
12984 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012985 ecpc* )
12986 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000012987 lt_prog_compiler_wl_CXX='-Wl,'
12988 lt_prog_compiler_pic_CXX='-KPIC'
12989 lt_prog_compiler_static_CXX='-static'
12990 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012991 icpc* )
12992 # Intel C++, used to be incompatible with GCC.
12993 # ICC 10 doesn't accept -KPIC any more.
12994 lt_prog_compiler_wl_CXX='-Wl,'
12995 lt_prog_compiler_pic_CXX='-fPIC'
12996 lt_prog_compiler_static_CXX='-static'
12997 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012998 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000012999 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013000 lt_prog_compiler_wl_CXX='-Wl,'
13001 lt_prog_compiler_pic_CXX='-fpic'
13002 lt_prog_compiler_static_CXX='-Bstatic'
13003 ;;
13004 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013005 # Compaq C++
13006 # Make sure the PIC flag is empty. It appears that all Alpha
13007 # Linux and Compaq Tru64 Unix objects are PIC.
13008 lt_prog_compiler_pic_CXX=
13009 lt_prog_compiler_static_CXX='-non_shared'
13010 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013011 xlc* | xlC*)
13012 # IBM XL 8.0 on PPC
13013 lt_prog_compiler_wl_CXX='-Wl,'
13014 lt_prog_compiler_pic_CXX='-qpic'
13015 lt_prog_compiler_static_CXX='-qstaticlink'
13016 ;;
brynercb91a2f2006-08-25 21:14:45 +000013017 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013018 case `$CC -V 2>&1 | sed 5q` in
13019 *Sun\ C*)
13020 # Sun C++ 5.9
13021 lt_prog_compiler_pic_CXX='-KPIC'
13022 lt_prog_compiler_static_CXX='-Bstatic'
13023 lt_prog_compiler_wl_CXX='-Qoption ld '
13024 ;;
13025 esac
brynercb91a2f2006-08-25 21:14:45 +000013026 ;;
13027 esac
13028 ;;
13029 lynxos*)
13030 ;;
13031 m88k*)
13032 ;;
13033 mvs*)
13034 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013035 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013036 lt_prog_compiler_pic_CXX='-W c,exportall'
13037 ;;
13038 *)
13039 ;;
13040 esac
13041 ;;
jimblandydc4029a2010-02-02 17:39:51 +000013042 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000013043 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013044 *qnx* | *nto*)
13045 # QNX uses GNU C++, but need to define -shared option too, otherwise
13046 # it will coredump.
13047 lt_prog_compiler_pic_CXX='-fPIC -shared'
13048 ;;
brynercb91a2f2006-08-25 21:14:45 +000013049 osf3* | osf4* | osf5*)
13050 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013051 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013052 lt_prog_compiler_wl_CXX='--backend -Wl,'
13053 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013054 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013055 # Rational C++ 2.4.1
13056 lt_prog_compiler_pic_CXX='-pic'
13057 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013058 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013059 # Digital/Compaq C++
13060 lt_prog_compiler_wl_CXX='-Wl,'
13061 # Make sure the PIC flag is empty. It appears that all Alpha
13062 # Linux and Compaq Tru64 Unix objects are PIC.
13063 lt_prog_compiler_pic_CXX=
13064 lt_prog_compiler_static_CXX='-non_shared'
13065 ;;
13066 *)
13067 ;;
13068 esac
13069 ;;
13070 psos*)
13071 ;;
brynercb91a2f2006-08-25 21:14:45 +000013072 solaris*)
13073 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013074 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013075 # Sun C++ 4.2, 5.x and Centerline C++
13076 lt_prog_compiler_pic_CXX='-KPIC'
13077 lt_prog_compiler_static_CXX='-Bstatic'
13078 lt_prog_compiler_wl_CXX='-Qoption ld '
13079 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013080 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013081 # Green Hills C++ Compiler
13082 lt_prog_compiler_pic_CXX='-PIC'
13083 ;;
13084 *)
13085 ;;
13086 esac
13087 ;;
13088 sunos4*)
13089 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013090 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013091 # Sun C++ 4.x
13092 lt_prog_compiler_pic_CXX='-pic'
13093 lt_prog_compiler_static_CXX='-Bstatic'
13094 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013095 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013096 # Lucid
13097 lt_prog_compiler_pic_CXX='-pic'
13098 ;;
13099 *)
13100 ;;
13101 esac
13102 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13104 case $cc_basename in
13105 CC*)
13106 lt_prog_compiler_wl_CXX='-Wl,'
13107 lt_prog_compiler_pic_CXX='-KPIC'
13108 lt_prog_compiler_static_CXX='-Bstatic'
13109 ;;
13110 esac
13111 ;;
brynercb91a2f2006-08-25 21:14:45 +000013112 tandem*)
13113 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013114 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013115 # NonStop-UX NCC 3.20
13116 lt_prog_compiler_pic_CXX='-KPIC'
13117 ;;
13118 *)
13119 ;;
13120 esac
13121 ;;
brynercb91a2f2006-08-25 21:14:45 +000013122 vxworks*)
13123 ;;
13124 *)
13125 lt_prog_compiler_can_build_shared_CXX=no
13126 ;;
13127 esac
13128 fi
13129
jimblandy92b1f832009-12-23 22:23:49 +000013130case $host_os in
13131 # For platforms which do not support PIC, -DPIC is meaningless:
13132 *djgpp*)
13133 lt_prog_compiler_pic_CXX=
13134 ;;
13135 *)
13136 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13137 ;;
13138esac
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13140$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13141
13142
brynercb91a2f2006-08-25 21:14:45 +000013143
13144#
13145# Check to make sure the PIC flag actually works.
13146#
13147if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13149$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13150if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013152else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013153 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013154 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013156 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13157 # Insert the option either (1) after the last *FLAGS variable, or
13158 # (2) before a word containing "conftest.", or (3) at the end.
13159 # Note that $ac_compile itself does not contain backslashes and begins
13160 # with a dollar sign (not a hyphen), so the echo should work correctly.
13161 # The option is referenced via a variable to avoid confusing sed.
13162 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13165 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +000013166 (eval echo "\"\$as_me:13166: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013167 (eval "$lt_compile" 2>conftest.err)
13168 ac_status=$?
13169 cat conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +000013170 echo "$as_me:13170: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013171 if (exit $ac_status) && test -s "$ac_outfile"; then
13172 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013173 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13176 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013177 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013178 fi
13179 fi
jimblandy92b1f832009-12-23 22:23:49 +000013180 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013181
13182fi
jimblandy92b1f832009-12-23 22:23:49 +000013183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13184$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013185
ted.mielczarek1adb1842009-12-21 13:12:20 +000013186if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013187 case $lt_prog_compiler_pic_CXX in
13188 "" | " "*) ;;
13189 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13190 esac
13191else
13192 lt_prog_compiler_pic_CXX=
13193 lt_prog_compiler_can_build_shared_CXX=no
13194fi
13195
13196fi
jimblandy92b1f832009-12-23 22:23:49 +000013197
13198
brynercb91a2f2006-08-25 21:14:45 +000013199
mmentovai8c2a4de2006-09-20 16:20:15 +000013200#
13201# Check to make sure the static flag actually works.
13202#
13203wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13205$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13206if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013208else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013209 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013210 save_LDFLAGS="$LDFLAGS"
13211 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013212 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013213 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13214 # The linker can only warn and ignore the option if not recognized
13215 # So say no if there are warnings
13216 if test -s conftest.err; then
13217 # Append any errors to the config.log.
13218 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013219 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13221 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013222 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013223 fi
13224 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013225 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013226 fi
13227 fi
jimblandy92b1f832009-12-23 22:23:49 +000013228 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013229 LDFLAGS="$save_LDFLAGS"
13230
13231fi
jimblandy92b1f832009-12-23 22:23:49 +000013232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13233$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013234
ted.mielczarek1adb1842009-12-21 13:12:20 +000013235if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013236 :
13237else
13238 lt_prog_compiler_static_CXX=
13239fi
13240
13241
jimblandy92b1f832009-12-23 22:23:49 +000013242
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13245$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13246if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013248else
13249 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013250 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013251 mkdir conftest
13252 cd conftest
13253 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013255
13256 lt_compiler_flag="-o out/conftest2.$ac_objext"
13257 # Insert the option either (1) after the last *FLAGS variable, or
13258 # (2) before a word containing "conftest.", or (3) at the end.
13259 # Note that $ac_compile itself does not contain backslashes and begins
13260 # with a dollar sign (not a hyphen), so the echo should work correctly.
13261 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13264 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +000013265 (eval echo "\"\$as_me:13265: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013266 (eval "$lt_compile" 2>out/conftest.err)
13267 ac_status=$?
13268 cat out/conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +000013269 echo "$as_me:13269: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013270 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13271 then
13272 # The compiler can only warn and ignore the option if not recognized
13273 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013274 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013275 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13276 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013277 lt_cv_prog_compiler_c_o_CXX=yes
13278 fi
13279 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013280 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013281 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013282 # SGI C++ compiler will create directory out/ii_files/ for
13283 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013284 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13285 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013286 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013287 $RM -r conftest
13288 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013289
13290fi
jimblandy92b1f832009-12-23 22:23:49 +000013291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13292$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13293
13294
13295
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13297$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13298if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13299 $as_echo_n "(cached) " >&6
13300else
13301 lt_cv_prog_compiler_c_o_CXX=no
13302 $RM -r conftest 2>/dev/null
13303 mkdir conftest
13304 cd conftest
13305 mkdir out
13306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13307
13308 lt_compiler_flag="-o out/conftest2.$ac_objext"
13309 # Insert the option either (1) after the last *FLAGS variable, or
13310 # (2) before a word containing "conftest.", or (3) at the end.
13311 # Note that $ac_compile itself does not contain backslashes and begins
13312 # with a dollar sign (not a hyphen), so the echo should work correctly.
13313 lt_compile=`echo "$ac_compile" | $SED \
13314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13316 -e 's:$: $lt_compiler_flag:'`
jimblandydc4029a2010-02-02 17:39:51 +000013317 (eval echo "\"\$as_me:13317: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013318 (eval "$lt_compile" 2>out/conftest.err)
13319 ac_status=$?
13320 cat out/conftest.err >&5
jimblandydc4029a2010-02-02 17:39:51 +000013321 echo "$as_me:13321: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13323 then
13324 # The compiler can only warn and ignore the option if not recognized
13325 # So say no if there are warnings
13326 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13327 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13328 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13329 lt_cv_prog_compiler_c_o_CXX=yes
13330 fi
13331 fi
13332 chmod u+w . 2>&5
13333 $RM conftest*
13334 # SGI C++ compiler will create directory out/ii_files/ for
13335 # template instantiation
13336 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13337 $RM out/* && rmdir out
13338 cd ..
13339 $RM -r conftest
13340 $RM conftest*
13341
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13344$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13345
13346
brynercb91a2f2006-08-25 21:14:45 +000013347
13348
13349hard_links="nottested"
13350if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13351 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13353$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013354 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013355 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13357 touch conftest.a
13358 ln conftest.a conftest.b 2>&5 || hard_links=no
13359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13361$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013362 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13364$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013365 need_locks=warn
13366 fi
13367else
13368 need_locks=no
13369fi
13370
jimblandy92b1f832009-12-23 22:23:49 +000013371
13372
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13374$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013375
13376 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13377 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013378 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013379 # If we're using GNU nm, then we don't want the "-C" option.
13380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013381 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13382 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013383 else
jimblandy92b1f832009-12-23 22:23:49 +000013384 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
brynercb91a2f2006-08-25 21:14:45 +000013385 fi
13386 ;;
13387 pw32*)
13388 export_symbols_cmds_CXX="$ltdll_cmds"
13389 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013390 cygwin* | mingw* | cegcc*)
13391 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13392 ;;
brynercb91a2f2006-08-25 21:14:45 +000013393 *)
13394 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13395 ;;
13396 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013397 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013398
jimblandy92b1f832009-12-23 22:23:49 +000013399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13400$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013401test "$ld_shlibs_CXX" = no && can_build_shared=no
13402
jimblandy92b1f832009-12-23 22:23:49 +000013403with_gnu_ld_CXX=$with_gnu_ld
13404
13405
13406
13407
13408
13409
brynercb91a2f2006-08-25 21:14:45 +000013410#
13411# Do we need to explicitly link libc?
13412#
13413case "x$archive_cmds_need_lc_CXX" in
13414x|xyes)
13415 # Assume -lc should be added
13416 archive_cmds_need_lc_CXX=yes
13417
13418 if test "$enable_shared" = yes && test "$GCC" = yes; then
13419 case $archive_cmds_CXX in
13420 *'~'*)
13421 # FIXME: we may have to deal with multi-command sequences.
13422 ;;
13423 '$CC '*)
13424 # Test whether the compiler implicitly links with -lc since on some
13425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13426 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13428$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13429 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013431
jimblandy92b1f832009-12-23 22:23:49 +000013432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013433 (eval $ac_compile) 2>&5
13434 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013437 soname=conftest
13438 lib=conftest
13439 libobjs=conftest.$ac_objext
13440 deplibs=
13441 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013442 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013443 compiler_flags=-v
13444 linker_flags=-v
13445 verstring=
13446 output_objdir=.
13447 libname=conftest
13448 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13449 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13451 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013452 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13454 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013455 then
13456 archive_cmds_need_lc_CXX=no
13457 else
13458 archive_cmds_need_lc_CXX=yes
13459 fi
13460 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13461 else
13462 cat conftest.err 1>&5
13463 fi
jimblandy92b1f832009-12-23 22:23:49 +000013464 $RM conftest*
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13466$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013467 ;;
13468 esac
13469 fi
13470 ;;
13471esac
13472
jimblandy92b1f832009-12-23 22:23:49 +000013473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13537$as_echo_n "checking dynamic linker characteristics... " >&6; }
13538
brynercb91a2f2006-08-25 21:14:45 +000013539library_names_spec=
13540libname_spec='lib$name'
13541soname_spec=
13542shrext_cmds=".so"
13543postinstall_cmds=
13544postuninstall_cmds=
13545finish_cmds=
13546finish_eval=
13547shlibpath_var=
13548shlibpath_overrides_runpath=unknown
13549version_type=none
13550dynamic_linker="$host_os ld.so"
13551sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013552need_lib_prefix=unknown
13553hardcode_into_libs=no
13554
13555# when you set need_version to no, make sure it does not cause -set_version
13556# flags to be left without arguments
13557need_version=unknown
13558
13559case $host_os in
13560aix3*)
13561 version_type=linux
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13563 shlibpath_var=LIBPATH
13564
13565 # AIX 3 has no versioning support, so we append a major version to the name.
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 ;;
13568
ted.mielczarek1adb1842009-12-21 13:12:20 +000013569aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013570 version_type=linux
13571 need_lib_prefix=no
13572 need_version=no
13573 hardcode_into_libs=yes
13574 if test "$host_cpu" = ia64; then
13575 # AIX 5 supports IA64
13576 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13577 shlibpath_var=LD_LIBRARY_PATH
13578 else
13579 # With GCC up to 2.95.x, collect2 would create an import file
13580 # for dependence libraries. The import file would start with
13581 # the line `#! .'. This would cause the generated library to
13582 # depend on `.', always an invalid library. This was fixed in
13583 # development snapshots of GCC prior to 3.0.
13584 case $host_os in
13585 aix4 | aix4.[01] | aix4.[01].*)
13586 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13587 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013588 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013589 :
13590 else
13591 can_build_shared=no
13592 fi
13593 ;;
13594 esac
13595 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13596 # soname into executable. Probably we can add versioning support to
13597 # collect2, so additional links can be useful in future.
13598 if test "$aix_use_runtimelinking" = yes; then
13599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13600 # instead of lib<name>.a to let people know that these are not
13601 # typical AIX shared libraries.
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603 else
13604 # We preserve .a as extension for shared libraries through AIX4.2
13605 # and later when we are not doing run time linking.
13606 library_names_spec='${libname}${release}.a $libname.a'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 fi
13609 shlibpath_var=LIBPATH
13610 fi
13611 ;;
13612
13613amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013614 case $host_cpu in
13615 powerpc)
13616 # Since July 2007 AmigaOS4 officially supports .so libraries.
13617 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619 ;;
13620 m68k)
13621 library_names_spec='$libname.ixlibrary $libname.a'
13622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13623 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'
13624 ;;
13625 esac
brynercb91a2f2006-08-25 21:14:45 +000013626 ;;
13627
13628beos*)
13629 library_names_spec='${libname}${shared_ext}'
13630 dynamic_linker="$host_os ld.so"
13631 shlibpath_var=LIBRARY_PATH
13632 ;;
13633
mmentovai8c2a4de2006-09-20 16:20:15 +000013634bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013635 version_type=linux
13636 need_version=no
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13640 shlibpath_var=LD_LIBRARY_PATH
13641 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13642 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13643 # the default ld.so.conf also contains /usr/contrib/lib and
13644 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13645 # libtool to hard-code these into programs
13646 ;;
13647
jimblandy92b1f832009-12-23 22:23:49 +000013648cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013649 version_type=windows
13650 shrext_cmds=".dll"
13651 need_version=no
13652 need_lib_prefix=no
13653
13654 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013655 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013656 library_names_spec='$libname.dll.a'
13657 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13658 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013660 dldir=$destdir/`dirname \$dlpath`~
13661 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013662 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013663 chmod a+x \$dldir/$dlname~
13664 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13665 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13666 fi'
brynercb91a2f2006-08-25 21:14:45 +000013667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13668 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013669 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013670 shlibpath_overrides_runpath=yes
13671
13672 case $host_os in
13673 cygwin*)
13674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13677 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013678 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013679 # MinGW DLLs use traditional 'lib' prefix
13680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013681 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13682 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013683 # It is most probably a Windows format PATH printed by
13684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13685 # path with ; separators, and with drive letters. We can handle the
13686 # drive letters (cygwin fileutils understands them), so leave them,
13687 # especially as we might pass files found there to a mingw objdump,
13688 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013689 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013690 else
jimblandy92b1f832009-12-23 22:23:49 +000013691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013692 fi
13693 ;;
13694 pw32*)
13695 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
brynercb91a2f2006-08-25 21:14:45 +000013697 ;;
13698 esac
13699 ;;
13700
13701 *)
13702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13703 ;;
13704 esac
13705 dynamic_linker='Win32 ld.exe'
13706 # FIXME: first we should search . and the directory the executable is in
13707 shlibpath_var=PATH
13708 ;;
13709
13710darwin* | rhapsody*)
13711 dynamic_linker="$host_os dyld"
13712 version_type=darwin
13713 need_lib_prefix=no
13714 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013715 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013716 soname_spec='${libname}${release}${major}$shared_ext'
13717 shlibpath_overrides_runpath=yes
13718 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013720
brynercb91a2f2006-08-25 21:14:45 +000013721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13722 ;;
13723
13724dgux*)
13725 version_type=linux
13726 need_lib_prefix=no
13727 need_version=no
13728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13729 soname_spec='${libname}${release}${shared_ext}$major'
13730 shlibpath_var=LD_LIBRARY_PATH
13731 ;;
13732
13733freebsd1*)
13734 dynamic_linker=no
13735 ;;
13736
mmentovai8c2a4de2006-09-20 16:20:15 +000013737freebsd* | dragonfly*)
13738 # DragonFly does not have aout. When/if they implement a new
13739 # versioning mechanism, adjust this.
13740 if test -x /usr/bin/objformat; then
13741 objformat=`/usr/bin/objformat`
13742 else
13743 case $host_os in
13744 freebsd[123]*) objformat=aout ;;
13745 *) objformat=elf ;;
13746 esac
13747 fi
brynercb91a2f2006-08-25 21:14:45 +000013748 version_type=freebsd-$objformat
13749 case $version_type in
13750 freebsd-elf*)
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13752 need_version=no
13753 need_lib_prefix=no
13754 ;;
13755 freebsd-*)
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13757 need_version=yes
13758 ;;
13759 esac
13760 shlibpath_var=LD_LIBRARY_PATH
13761 case $host_os in
13762 freebsd2*)
13763 shlibpath_overrides_runpath=yes
13764 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013765 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013766 shlibpath_overrides_runpath=yes
13767 hardcode_into_libs=yes
13768 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013769 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13770 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013771 shlibpath_overrides_runpath=no
13772 hardcode_into_libs=yes
13773 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013774 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013775 shlibpath_overrides_runpath=yes
13776 hardcode_into_libs=yes
13777 ;;
brynercb91a2f2006-08-25 21:14:45 +000013778 esac
13779 ;;
13780
13781gnu*)
13782 version_type=linux
13783 need_lib_prefix=no
13784 need_version=no
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 shlibpath_var=LD_LIBRARY_PATH
13788 hardcode_into_libs=yes
13789 ;;
13790
13791hpux9* | hpux10* | hpux11*)
13792 # Give a soname corresponding to the major version so that dld.sl refuses to
13793 # link against other versions.
13794 version_type=sunos
13795 need_lib_prefix=no
13796 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013797 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013798 ia64*)
13799 shrext_cmds='.so'
13800 hardcode_into_libs=yes
13801 dynamic_linker="$host_os dld.so"
13802 shlibpath_var=LD_LIBRARY_PATH
13803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805 soname_spec='${libname}${release}${shared_ext}$major'
13806 if test "X$HPUX_IA64_MODE" = X32; then
13807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13808 else
13809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13810 fi
13811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13812 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013813 hppa*64*)
13814 shrext_cmds='.sl'
13815 hardcode_into_libs=yes
13816 dynamic_linker="$host_os dld.sl"
13817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820 soname_spec='${libname}${release}${shared_ext}$major'
13821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13823 ;;
13824 *)
brynercb91a2f2006-08-25 21:14:45 +000013825 shrext_cmds='.sl'
13826 dynamic_linker="$host_os dld.sl"
13827 shlibpath_var=SHLIB_PATH
13828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830 soname_spec='${libname}${release}${shared_ext}$major'
13831 ;;
13832 esac
13833 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13834 postinstall_cmds='chmod 555 $lib'
13835 ;;
13836
ted.mielczarek1adb1842009-12-21 13:12:20 +000013837interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013838 version_type=linux
13839 need_lib_prefix=no
13840 need_version=no
13841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13842 soname_spec='${libname}${release}${shared_ext}$major'
13843 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13844 shlibpath_var=LD_LIBRARY_PATH
13845 shlibpath_overrides_runpath=no
13846 hardcode_into_libs=yes
13847 ;;
13848
brynercb91a2f2006-08-25 21:14:45 +000013849irix5* | irix6* | nonstopux*)
13850 case $host_os in
13851 nonstopux*) version_type=nonstopux ;;
13852 *)
13853 if test "$lt_cv_prog_gnu_ld" = yes; then
13854 version_type=linux
13855 else
13856 version_type=irix
13857 fi ;;
13858 esac
13859 need_lib_prefix=no
13860 need_version=no
13861 soname_spec='${libname}${release}${shared_ext}$major'
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13863 case $host_os in
13864 irix5* | nonstopux*)
13865 libsuff= shlibsuff=
13866 ;;
13867 *)
13868 case $LD in # libtool.m4 will add one of these switches to LD
13869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13870 libsuff= shlibsuff= libmagic=32-bit;;
13871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13872 libsuff=32 shlibsuff=N32 libmagic=N32;;
13873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13875 *) libsuff= shlibsuff= libmagic=never-match;;
13876 esac
13877 ;;
13878 esac
13879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13880 shlibpath_overrides_runpath=no
13881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13883 hardcode_into_libs=yes
13884 ;;
13885
13886# No shared lib support for Linux oldld, aout, or coff.
13887linux*oldld* | linux*aout* | linux*coff*)
13888 dynamic_linker=no
13889 ;;
13890
13891# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000013892linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013893 version_type=linux
13894 need_lib_prefix=no
13895 need_version=no
13896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13897 soname_spec='${libname}${release}${shared_ext}$major'
13898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013901 # Some binutils ld are patched to set DT_RUNPATH
13902 save_LDFLAGS=$LDFLAGS
13903 save_libdir=$libdir
13904 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13905 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h. */
13908
13909int
13910main ()
13911{
13912
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917if ac_fn_cxx_try_link "$LINENO"; then :
13918 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13919 shlibpath_overrides_runpath=yes
13920fi
13921fi
13922rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 LDFLAGS=$save_LDFLAGS
13925 libdir=$save_libdir
13926
brynercb91a2f2006-08-25 21:14:45 +000013927 # This implies no fast_install, which is unacceptable.
13928 # Some rework will be needed to allow for fast_install
13929 # before this can be enabled.
13930 hardcode_into_libs=yes
13931
13932 # Append ld.so.conf contents to the search path
13933 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000013934 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' ' '`
brynercb91a2f2006-08-25 21:14:45 +000013935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13936 fi
13937
13938 # We used to test for /lib/ld.so.1 and disable shared libraries on
13939 # powerpc, because MkLinux only supported shared libraries with the
13940 # GNU dynamic linker. Since this was broken with cross compilers,
13941 # most powerpc-linux boxes support dynamic linking these days and
13942 # people can always --disable-shared, the test was removed, and we
13943 # assume the GNU/Linux dynamic linker is in use.
13944 dynamic_linker='GNU/Linux ld.so'
13945 ;;
13946
brynercb91a2f2006-08-25 21:14:45 +000013947netbsd*)
13948 version_type=sunos
13949 need_lib_prefix=no
13950 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13954 dynamic_linker='NetBSD (a.out) ld.so'
13955 else
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 dynamic_linker='NetBSD ld.elf_so'
13959 fi
13960 shlibpath_var=LD_LIBRARY_PATH
13961 shlibpath_overrides_runpath=yes
13962 hardcode_into_libs=yes
13963 ;;
13964
13965newsos6)
13966 version_type=linux
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 shlibpath_var=LD_LIBRARY_PATH
13969 shlibpath_overrides_runpath=yes
13970 ;;
13971
jimblandy92b1f832009-12-23 22:23:49 +000013972*nto* | *qnx*)
13973 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000013974 need_lib_prefix=no
13975 need_version=no
13976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13977 soname_spec='${libname}${release}${shared_ext}$major'
13978 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000013979 shlibpath_overrides_runpath=no
13980 hardcode_into_libs=yes
13981 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000013982 ;;
13983
13984openbsd*)
13985 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013986 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013987 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13989 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013990 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13991 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013992 esac
brynercb91a2f2006-08-25 21:14:45 +000013993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13995 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000013996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000013997 case $host_os in
13998 openbsd2.[89] | openbsd2.[89].*)
13999 shlibpath_overrides_runpath=no
14000 ;;
14001 *)
14002 shlibpath_overrides_runpath=yes
14003 ;;
14004 esac
14005 else
14006 shlibpath_overrides_runpath=yes
14007 fi
14008 ;;
14009
14010os2*)
14011 libname_spec='$name'
14012 shrext_cmds=".dll"
14013 need_lib_prefix=no
14014 library_names_spec='$libname${shared_ext} $libname.a'
14015 dynamic_linker='OS/2 ld.exe'
14016 shlibpath_var=LIBPATH
14017 ;;
14018
14019osf3* | osf4* | osf5*)
14020 version_type=osf
14021 need_lib_prefix=no
14022 need_version=no
14023 soname_spec='${libname}${release}${shared_ext}$major'
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 shlibpath_var=LD_LIBRARY_PATH
14026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14028 ;;
14029
ted.mielczarek1adb1842009-12-21 13:12:20 +000014030rdos*)
14031 dynamic_linker=no
14032 ;;
14033
brynercb91a2f2006-08-25 21:14:45 +000014034solaris*)
14035 version_type=linux
14036 need_lib_prefix=no
14037 need_version=no
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039 soname_spec='${libname}${release}${shared_ext}$major'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 shlibpath_overrides_runpath=yes
14042 hardcode_into_libs=yes
14043 # ldd complains unless libraries are executable
14044 postinstall_cmds='chmod +x $lib'
14045 ;;
14046
14047sunos4*)
14048 version_type=sunos
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14051 shlibpath_var=LD_LIBRARY_PATH
14052 shlibpath_overrides_runpath=yes
14053 if test "$with_gnu_ld" = yes; then
14054 need_lib_prefix=no
14055 fi
14056 need_version=yes
14057 ;;
14058
mmentovai8c2a4de2006-09-20 16:20:15 +000014059sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014060 version_type=linux
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14062 soname_spec='${libname}${release}${shared_ext}$major'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 case $host_vendor in
14065 sni)
14066 shlibpath_overrides_runpath=no
14067 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014068 runpath_var=LD_RUN_PATH
14069 ;;
14070 siemens)
14071 need_lib_prefix=no
14072 ;;
14073 motorola)
14074 need_lib_prefix=no
14075 need_version=no
14076 shlibpath_overrides_runpath=no
14077 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14078 ;;
14079 esac
14080 ;;
14081
14082sysv4*MP*)
14083 if test -d /usr/nec ;then
14084 version_type=linux
14085 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14086 soname_spec='$libname${shared_ext}.$major'
14087 shlibpath_var=LD_LIBRARY_PATH
14088 fi
14089 ;;
14090
mmentovai8c2a4de2006-09-20 16:20:15 +000014091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14092 version_type=freebsd-elf
14093 need_lib_prefix=no
14094 need_version=no
14095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14096 soname_spec='${libname}${release}${shared_ext}$major'
14097 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014098 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014099 hardcode_into_libs=yes
14100 if test "$with_gnu_ld" = yes; then
14101 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014102 else
14103 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014104 case $host_os in
14105 sco3.2v5*)
14106 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14107 ;;
14108 esac
14109 fi
14110 sys_lib_dlsearch_path_spec='/usr/lib'
14111 ;;
14112
jimblandy92b1f832009-12-23 22:23:49 +000014113tpf*)
14114 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14115 version_type=linux
14116 need_lib_prefix=no
14117 need_version=no
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 shlibpath_overrides_runpath=no
14121 hardcode_into_libs=yes
14122 ;;
14123
brynercb91a2f2006-08-25 21:14:45 +000014124uts4*)
14125 version_type=linux
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 ;;
14130
14131*)
14132 dynamic_linker=no
14133 ;;
14134esac
jimblandy92b1f832009-12-23 22:23:49 +000014135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14136$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014137test "$dynamic_linker" = no && can_build_shared=no
14138
mmentovai8c2a4de2006-09-20 16:20:15 +000014139variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14140if test "$GCC" = yes; then
14141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14142fi
14143
jimblandy92b1f832009-12-23 22:23:49 +000014144if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14145 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14146fi
14147if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14148 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14149fi
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14187$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014188hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014189if test -n "$hardcode_libdir_flag_spec_CXX" ||
14190 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014191 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014192
jimblandy92b1f832009-12-23 22:23:49 +000014193 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014194 if test "$hardcode_direct_CXX" != no &&
14195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14196 # have to relink, otherwise we might link with an installed library
14197 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014198 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014199 test "$hardcode_minus_L_CXX" != no; then
14200 # Linking always hardcodes the temporary library directory.
14201 hardcode_action_CXX=relink
14202 else
14203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14204 hardcode_action_CXX=immediate
14205 fi
14206else
14207 # We cannot hardcode anything, or else we can only hardcode existing
14208 # directories.
14209 hardcode_action_CXX=unsupported
14210fi
jimblandy92b1f832009-12-23 22:23:49 +000014211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14212$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014213
jimblandy92b1f832009-12-23 22:23:49 +000014214if test "$hardcode_action_CXX" = relink ||
14215 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014216 # Fast installation is not supported
14217 enable_fast_install=no
14218elif test "$shlibpath_overrides_runpath" = yes ||
14219 test "$enable_shared" = no; then
14220 # Fast installation is not necessary
14221 enable_fast_install=needless
14222fi
14223
brynercb91a2f2006-08-25 21:14:45 +000014224
brynercb91a2f2006-08-25 21:14:45 +000014225
brynercb91a2f2006-08-25 21:14:45 +000014226
brynercb91a2f2006-08-25 21:14:45 +000014227
brynercb91a2f2006-08-25 21:14:45 +000014228
brynercb91a2f2006-08-25 21:14:45 +000014229
jimblandy92b1f832009-12-23 22:23:49 +000014230 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014231
jimblandy92b1f832009-12-23 22:23:49 +000014232 CC=$lt_save_CC
14233 LDCXX=$LD
14234 LD=$lt_save_LD
14235 GCC=$lt_save_GCC
14236 with_gnu_ld=$lt_save_with_gnu_ld
14237 lt_cv_path_LDCXX=$lt_cv_path_LD
14238 lt_cv_path_LD=$lt_save_path_LD
14239 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14240 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14241fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014242
14243ac_ext=c
14244ac_cpp='$CPP $CPPFLAGS'
14245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248
brynercb91a2f2006-08-25 21:14:45 +000014249
14250
brynercb91a2f2006-08-25 21:14:45 +000014251
14252
mmentovai8c2a4de2006-09-20 16:20:15 +000014253
14254
brynercb91a2f2006-08-25 21:14:45 +000014255
brynercb91a2f2006-08-25 21:14:45 +000014256
mmentovai8c2a4de2006-09-20 16:20:15 +000014257
brynercb91a2f2006-08-25 21:14:45 +000014258
brynercb91a2f2006-08-25 21:14:45 +000014259
brynerd5e66382006-09-08 02:35:53 +000014260
jimblandy92b1f832009-12-23 22:23:49 +000014261 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014262
brynercb91a2f2006-08-25 21:14:45 +000014263
brynercb91a2f2006-08-25 21:14:45 +000014264
brynercb91a2f2006-08-25 21:14:45 +000014265
jimblandy92b1f832009-12-23 22:23:49 +000014266# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014267
brynercb91a2f2006-08-25 21:14:45 +000014268
brynercb91a2f2006-08-25 21:14:45 +000014269
brynercb91a2f2006-08-25 21:14:45 +000014270
jimblandy92b1f832009-12-23 22:23:49 +000014271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14272$as_echo_n "checking for ANSI C header files... " >&6; }
14273if test "${ac_cv_header_stdc+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014275else
jimblandy92b1f832009-12-23 22:23:49 +000014276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014277/* end confdefs.h. */
14278#include <stdlib.h>
14279#include <stdarg.h>
14280#include <string.h>
14281#include <float.h>
14282
14283int
14284main ()
14285{
14286
14287 ;
14288 return 0;
14289}
14290_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014291if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014292 ac_cv_header_stdc=yes
14293else
jimblandy92b1f832009-12-23 22:23:49 +000014294 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014295fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014297
14298if test $ac_cv_header_stdc = yes; then
14299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014301/* end confdefs.h. */
14302#include <string.h>
14303
14304_ACEOF
14305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014306 $EGREP "memchr" >/dev/null 2>&1; then :
14307
brynercb91a2f2006-08-25 21:14:45 +000014308else
14309 ac_cv_header_stdc=no
14310fi
14311rm -f conftest*
14312
14313fi
14314
14315if test $ac_cv_header_stdc = yes; then
14316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014318/* end confdefs.h. */
14319#include <stdlib.h>
14320
14321_ACEOF
14322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014323 $EGREP "free" >/dev/null 2>&1; then :
14324
brynercb91a2f2006-08-25 21:14:45 +000014325else
14326 ac_cv_header_stdc=no
14327fi
14328rm -f conftest*
14329
14330fi
14331
14332if test $ac_cv_header_stdc = yes; then
14333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014334 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014335 :
14336else
jimblandy92b1f832009-12-23 22:23:49 +000014337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014338/* end confdefs.h. */
14339#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014340#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014341#if ((' ' & 0x0FF) == 0x020)
14342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14344#else
14345# define ISLOWER(c) \
14346 (('a' <= (c) && (c) <= 'i') \
14347 || ('j' <= (c) && (c) <= 'r') \
14348 || ('s' <= (c) && (c) <= 'z'))
14349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14350#endif
14351
14352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14353int
14354main ()
14355{
14356 int i;
14357 for (i = 0; i < 256; i++)
14358 if (XOR (islower (i), ISLOWER (i))
14359 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014360 return 2;
14361 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014362}
14363_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014364if ac_fn_c_try_run "$LINENO"; then :
14365
brynercb91a2f2006-08-25 21:14:45 +000014366else
jimblandy92b1f832009-12-23 22:23:49 +000014367 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014368fi
jimblandy92b1f832009-12-23 22:23:49 +000014369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14370 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014371fi
14372
brynercb91a2f2006-08-25 21:14:45 +000014373fi
14374fi
jimblandy92b1f832009-12-23 22:23:49 +000014375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14376$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014377if test $ac_cv_header_stdc = yes; then
14378
jimblandy92b1f832009-12-23 22:23:49 +000014379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014380
14381fi
14382
14383
mmentovai0dbedc92006-09-25 21:16:15 +000014384# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014385if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014386 enableval=$enable_selftest; case "${enableval}" in
14387 yes)
14388 selftest=true
14389 ;;
14390 no)
14391 selftest=false
14392 ;;
14393 *)
jimblandy92b1f832009-12-23 22:23:49 +000014394 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014395 ;;
14396 esac
14397else
14398 selftest=false
14399fi
14400
mmentovaiaf3c43f2007-05-17 18:34:37 +000014401 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000014402 SELFTEST_TRUE=
14403 SELFTEST_FALSE='#'
14404else
14405 SELFTEST_TRUE='#'
14406 SELFTEST_FALSE=
14407fi
14408
14409
mmentovai8c2a4de2006-09-20 16:20:15 +000014410ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000014411
14412cat >confcache <<\_ACEOF
14413# This file is a shell script that caches the results of configure
14414# tests run on this system so they can be shared between configure
14415# scripts and configure runs, see configure's option --config-cache.
14416# It is not useful on other systems. If it contains results you don't
14417# want to keep, you may remove or edit it.
14418#
14419# config.status only pays attention to the cache file if you give it
14420# the --recheck option to rerun configure.
14421#
14422# `ac_cv_env_foo' variables (set or unset) will be overridden when
14423# loading this file, other *unset* `ac_cv_foo' will be assigned the
14424# following values.
14425
14426_ACEOF
14427
14428# The following way of writing the cache mishandles newlines in values,
14429# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000014430# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000014431# Ultrix sh set writes to stderr and can't be redirected directly,
14432# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000014433(
14434 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14435 eval ac_val=\$$ac_var
14436 case $ac_val in #(
14437 *${as_nl}*)
14438 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000014439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014441 esac
14442 case $ac_var in #(
14443 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000014444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14445 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014446 esac ;;
14447 esac
14448 done
14449
brynercb91a2f2006-08-25 21:14:45 +000014450 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000014451 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14452 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000014453 # `set' does not quote correctly, so add quotes: double-quote
14454 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000014455 sed -n \
14456 "s/'/'\\\\''/g;
14457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000014458 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000014459 *)
14460 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000014461 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000014462 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014463 esac |
14464 sort
14465) |
brynercb91a2f2006-08-25 21:14:45 +000014466 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000014467 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000014468 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000014469 :clear
brynercb91a2f2006-08-25 21:14:45 +000014470 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14471 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000014472 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14473 :end' >>confcache
14474if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14475 if test -w "$cache_file"; then
14476 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000014477 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14478$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014479 cat confcache >$cache_file
14480 else
jimblandy92b1f832009-12-23 22:23:49 +000014481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14482$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014483 fi
14484fi
14485rm -f confcache
14486
14487test "x$prefix" = xNONE && prefix=$ac_default_prefix
14488# Let make expand exec_prefix.
14489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14490
brynercb91a2f2006-08-25 21:14:45 +000014491DEFS=-DHAVE_CONFIG_H
14492
14493ac_libobjs=
14494ac_ltlibobjs=
14495for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14496 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000014497 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000014498 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000014499 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14500 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000014501 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14502 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000014503done
14504LIBOBJS=$ac_libobjs
14505
14506LTLIBOBJS=$ac_ltlibobjs
14507
14508
jimblandy92b1f832009-12-23 22:23:49 +000014509 if test -n "$EXEEXT"; then
14510 am__EXEEXT_TRUE=
14511 am__EXEEXT_FALSE='#'
14512else
14513 am__EXEEXT_TRUE='#'
14514 am__EXEEXT_FALSE=
14515fi
14516
brynercb91a2f2006-08-25 21:14:45 +000014517if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014518 as_fn_error "conditional \"AMDEP\" was never defined.
14519Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014520fi
14521if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014522 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14523Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014524fi
14525if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014526 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14527Usually this means the macro was only invoked conditionally." "$LINENO" 5
14528fi
14529if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14530 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14531Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014532fi
mmentovai0dbedc92006-09-25 21:16:15 +000014533if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014534 as_fn_error "conditional \"SELFTEST\" was never defined.
14535Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014536fi
brynercb91a2f2006-08-25 21:14:45 +000014537
14538: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000014539ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000014540ac_clean_files_save=$ac_clean_files
14541ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000014542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14544as_write_fail=0
14545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014546#! $SHELL
14547# Generated by $as_me.
14548# Run this file to recreate the current configuration.
14549# Compiler output produced by configure, useful for debugging
14550# configure, is in config.log if it exists.
14551
14552debug=false
14553ac_cs_recheck=false
14554ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000014555
jimblandy92b1f832009-12-23 22:23:49 +000014556SHELL=\${CONFIG_SHELL-$SHELL}
14557export SHELL
14558_ASEOF
14559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14560## -------------------- ##
14561## M4sh Initialization. ##
14562## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000014563
mmentovaiaf3c43f2007-05-17 18:34:37 +000014564# Be more Bourne compatible
14565DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000014566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000014567 emulate sh
14568 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000014569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000014570 # is contrary to our usage. Disable this feature.
14571 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000014572 setopt NO_GLOB_SUBST
14573else
jimblandy92b1f832009-12-23 22:23:49 +000014574 case `(set -o) 2>/dev/null` in #(
14575 *posix*) :
14576 set -o posix ;; #(
14577 *) :
14578 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000014579esac
brynercb91a2f2006-08-25 21:14:45 +000014580fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000014581
14582
jimblandy92b1f832009-12-23 22:23:49 +000014583as_nl='
14584'
14585export as_nl
14586# Printing a long string crashes Solaris 7 /usr/bin/printf.
14587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14590# Prefer a ksh shell builtin over an external printf program on Solaris,
14591# but without wasting forks for bash or zsh.
14592if test -z "$BASH_VERSION$ZSH_VERSION" \
14593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14594 as_echo='print -r --'
14595 as_echo_n='print -rn --'
14596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14597 as_echo='printf %s\n'
14598 as_echo_n='printf %s'
14599else
14600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14602 as_echo_n='/usr/ucb/echo -n'
14603 else
14604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14605 as_echo_n_body='eval
14606 arg=$1;
14607 case $arg in #(
14608 *"$as_nl"*)
14609 expr "X$arg" : "X\\(.*\\)$as_nl";
14610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14611 esac;
14612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14613 '
14614 export as_echo_n_body
14615 as_echo_n='sh -c $as_echo_n_body as_echo'
14616 fi
14617 export as_echo_body
14618 as_echo='sh -c $as_echo_body as_echo'
14619fi
brynercb91a2f2006-08-25 21:14:45 +000014620
14621# The user is always right.
14622if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000014623 PATH_SEPARATOR=:
14624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14626 PATH_SEPARATOR=';'
14627 }
mmentovai8c2a4de2006-09-20 16:20:15 +000014628fi
brynercb91a2f2006-08-25 21:14:45 +000014629
mmentovai8c2a4de2006-09-20 16:20:15 +000014630
14631# IFS
14632# We need space, tab and new line, in precisely that order. Quoting is
14633# there to prevent editors from complaining about space-tab.
14634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14635# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000014636IFS=" "" $as_nl"
14637
14638# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000014639case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000014640 *[\\/]* ) as_myself=$0 ;;
14641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000014642for as_dir in $PATH
14643do
14644 IFS=$as_save_IFS
14645 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000014646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14647 done
mmentovai8c2a4de2006-09-20 16:20:15 +000014648IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000014649
mmentovai8c2a4de2006-09-20 16:20:15 +000014650 ;;
14651esac
14652# We did not find ourselves, most probably we were run as `sh COMMAND'
14653# in which case we are not to be found in the path.
14654if test "x$as_myself" = x; then
14655 as_myself=$0
14656fi
14657if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000014658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14659 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000014660fi
14661
jimblandy92b1f832009-12-23 22:23:49 +000014662# Unset variables that we do not need and which cause bugs (e.g. in
14663# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14664# suppresses any "Segmentation fault" message there. '((' could
14665# trigger a bug in pdksh 5.2.14.
14666for as_var in BASH_ENV ENV MAIL MAILPATH
14667do eval test x\${$as_var+set} = xset \
14668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000014669done
14670PS1='$ '
14671PS2='> '
14672PS4='+ '
14673
14674# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000014675LC_ALL=C
14676export LC_ALL
14677LANGUAGE=C
14678export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000014679
jimblandy92b1f832009-12-23 22:23:49 +000014680# CDPATH.
14681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14682
14683
14684# as_fn_error ERROR [LINENO LOG_FD]
14685# ---------------------------------
14686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14688# script with status $?, using 1 if that was 0.
14689as_fn_error ()
14690{
14691 as_status=$?; test $as_status -eq 0 && as_status=1
14692 if test "$3"; then
14693 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14695 fi
14696 $as_echo "$as_me: error: $1" >&2
14697 as_fn_exit $as_status
14698} # as_fn_error
14699
14700
14701# as_fn_set_status STATUS
14702# -----------------------
14703# Set $? to STATUS, without forking.
14704as_fn_set_status ()
14705{
14706 return $1
14707} # as_fn_set_status
14708
14709# as_fn_exit STATUS
14710# -----------------
14711# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14712as_fn_exit ()
14713{
14714 set +e
14715 as_fn_set_status $1
14716 exit $1
14717} # as_fn_exit
14718
14719# as_fn_unset VAR
14720# ---------------
14721# Portably unset VAR.
14722as_fn_unset ()
14723{
14724 { eval $1=; unset $1;}
14725}
14726as_unset=as_fn_unset
14727# as_fn_append VAR VALUE
14728# ----------------------
14729# Append the text in VALUE to the end of the definition contained in VAR. Take
14730# advantage of any shell optimizations that allow amortized linear growth over
14731# repeated appends, instead of the typical quadratic growth present in naive
14732# implementations.
14733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14734 eval 'as_fn_append ()
14735 {
14736 eval $1+=\$2
14737 }'
14738else
14739 as_fn_append ()
14740 {
14741 eval $1=\$$1\$2
14742 }
14743fi # as_fn_append
14744
14745# as_fn_arith ARG...
14746# ------------------
14747# Perform arithmetic evaluation on the ARGs, and store the result in the
14748# global $as_val. Take advantage of shells that can avoid forks. The arguments
14749# must be portable across $(()) and expr.
14750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14751 eval 'as_fn_arith ()
14752 {
14753 as_val=$(( $* ))
14754 }'
14755else
14756 as_fn_arith ()
14757 {
14758 as_val=`expr "$@" || test $? -eq 1`
14759 }
14760fi # as_fn_arith
14761
14762
mmentovai8c2a4de2006-09-20 16:20:15 +000014763if expr a : '\(a\)' >/dev/null 2>&1 &&
14764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14765 as_expr=expr
14766else
14767 as_expr=false
14768fi
14769
14770if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14771 as_basename=basename
14772else
14773 as_basename=false
14774fi
14775
jimblandy92b1f832009-12-23 22:23:49 +000014776if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14777 as_dirname=dirname
14778else
14779 as_dirname=false
14780fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014781
mmentovai8c2a4de2006-09-20 16:20:15 +000014782as_me=`$as_basename -- "$0" ||
14783$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14784 X"$0" : 'X\(//\)$' \| \
14785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000014786$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000014787 sed '/^.*\/\([^/][^/]*\)\/*$/{
14788 s//\1/
14789 q
14790 }
14791 /^X\/\(\/\/\)$/{
14792 s//\1/
14793 q
14794 }
14795 /^X\/\(\/\).*/{
14796 s//\1/
14797 q
14798 }
14799 s/.*/./; q'`
14800
jimblandy92b1f832009-12-23 22:23:49 +000014801# Avoid depending upon Character Ranges.
14802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14805as_cr_digits='0123456789'
14806as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000014807
14808ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000014809case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000014810-n*)
jimblandy92b1f832009-12-23 22:23:49 +000014811 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000014812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000014813 xy) ECHO_C='\c';;
14814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14815 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000014816 esac;;
14817*)
14818 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000014819esac
14820
brynercb91a2f2006-08-25 21:14:45 +000014821rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000014822if test -d conf$$.dir; then
14823 rm -f conf$$.dir/conf$$.file
14824else
14825 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000014826 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000014827fi
jimblandy92b1f832009-12-23 22:23:49 +000014828if (echo >conf$$.file) 2>/dev/null; then
14829 if ln -s conf$$.file conf$$ 2>/dev/null; then
14830 as_ln_s='ln -s'
14831 # ... but there are two gotchas:
14832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14834 # In both cases, we have to default to `cp -p'.
14835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14836 as_ln_s='cp -p'
14837 elif ln conf$$.file conf$$ 2>/dev/null; then
14838 as_ln_s=ln
14839 else
brynercb91a2f2006-08-25 21:14:45 +000014840 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000014841 fi
brynercb91a2f2006-08-25 21:14:45 +000014842else
14843 as_ln_s='cp -p'
14844fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014845rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14846rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000014847
jimblandy92b1f832009-12-23 22:23:49 +000014848
14849# as_fn_mkdir_p
14850# -------------
14851# Create "$as_dir" as a directory, including parents if necessary.
14852as_fn_mkdir_p ()
14853{
14854
14855 case $as_dir in #(
14856 -*) as_dir=./$as_dir;;
14857 esac
14858 test -d "$as_dir" || eval $as_mkdir_p || {
14859 as_dirs=
14860 while :; do
14861 case $as_dir in #(
14862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14863 *) as_qdir=$as_dir;;
14864 esac
14865 as_dirs="'$as_qdir' $as_dirs"
14866 as_dir=`$as_dirname -- "$as_dir" ||
14867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14868 X"$as_dir" : 'X\(//\)[^/]' \| \
14869 X"$as_dir" : 'X\(//\)$' \| \
14870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14871$as_echo X"$as_dir" |
14872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\(\/\/\)[^/].*/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\/\)$/{
14881 s//\1/
14882 q
14883 }
14884 /^X\(\/\).*/{
14885 s//\1/
14886 q
14887 }
14888 s/.*/./; q'`
14889 test -d "$as_dir" && break
14890 done
14891 test -z "$as_dirs" || eval "mkdir $as_dirs"
14892 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14893
14894
14895} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000014896if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000014897 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000014898else
14899 test -d ./-p && rmdir ./-p
14900 as_mkdir_p=false
14901fi
14902
mmentovaiaf3c43f2007-05-17 18:34:37 +000014903if test -x / >/dev/null 2>&1; then
14904 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000014905else
mmentovaiaf3c43f2007-05-17 18:34:37 +000014906 if ls -dL / >/dev/null 2>&1; then
14907 as_ls_L_option=L
14908 else
14909 as_ls_L_option=
14910 fi
14911 as_test_x='
14912 eval sh -c '\''
14913 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000014914 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000014915 else
jimblandy92b1f832009-12-23 22:23:49 +000014916 case $1 in #(
14917 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000014918 esac;
jimblandy92b1f832009-12-23 22:23:49 +000014919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000014920 ???[sx]*):;;*)false;;esac;fi
14921 '\'' sh
14922 '
mmentovai8c2a4de2006-09-20 16:20:15 +000014923fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000014924as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000014925
14926# Sed expression to map a string onto a valid CPP name.
14927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14928
14929# Sed expression to map a string onto a valid variable name.
14930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14931
14932
brynercb91a2f2006-08-25 21:14:45 +000014933exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000014934## ----------------------------------- ##
14935## Main body of $CONFIG_STATUS script. ##
14936## ----------------------------------- ##
14937_ASEOF
14938test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014939
jimblandy92b1f832009-12-23 22:23:49 +000014940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14941# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000014942# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000014943# values after options handling.
14944ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000014945This file was extended by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +000014946generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000014947
14948 CONFIG_FILES = $CONFIG_FILES
14949 CONFIG_HEADERS = $CONFIG_HEADERS
14950 CONFIG_LINKS = $CONFIG_LINKS
14951 CONFIG_COMMANDS = $CONFIG_COMMANDS
14952 $ $0 $@
14953
mmentovai8c2a4de2006-09-20 16:20:15 +000014954on `(hostname || uname -n) 2>/dev/null | sed 1q`
14955"
14956
brynercb91a2f2006-08-25 21:14:45 +000014957_ACEOF
14958
jimblandy92b1f832009-12-23 22:23:49 +000014959case $ac_config_files in *"
14960"*) set x $ac_config_files; shift; ac_config_files=$*;;
14961esac
14962
14963case $ac_config_headers in *"
14964"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14965esac
14966
14967
14968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014969# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000014970config_files="$ac_config_files"
14971config_headers="$ac_config_headers"
14972config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000014973
mmentovai8c2a4de2006-09-20 16:20:15 +000014974_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000014975
jimblandy92b1f832009-12-23 22:23:49 +000014976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000014977ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000014978\`$as_me' instantiates files and other configuration actions
14979from templates according to the current configuration. Unless the files
14980and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000014981
jimblandy92b1f832009-12-23 22:23:49 +000014982Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000014983
14984 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000014985 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000014986 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000014987 -q, --quiet, --silent
14988 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000014989 -d, --debug don't remove temporary files
14990 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000014991 --file=FILE[:TEMPLATE]
14992 instantiate the configuration file FILE
14993 --header=FILE[:TEMPLATE]
14994 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000014995
14996Configuration files:
14997$config_files
14998
14999Configuration headers:
15000$config_headers
15001
15002Configuration commands:
15003$config_commands
15004
jimblandy92b1f832009-12-23 22:23:49 +000015005Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015006
mmentovai8c2a4de2006-09-20 16:20:15 +000015007_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015009ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015010ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015011breakpad config.status 0.1
jimblandydc4029a2010-02-02 17:39:51 +000015012configured by $0, generated by GNU Autoconf 2.65,
15013 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015014
jimblandy92b1f832009-12-23 22:23:49 +000015015Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015016This config.status script is free software; the Free Software Foundation
15017gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015018
15019ac_pwd='$ac_pwd'
15020srcdir='$srcdir'
15021INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015022MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015023AWK='$AWK'
15024test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015025_ACEOF
15026
jimblandy92b1f832009-12-23 22:23:49 +000015027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15028# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015029ac_need_defaults=:
15030while test $# != 0
15031do
15032 case $1 in
15033 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15035 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015036 ac_shift=:
15037 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015038 *)
brynercb91a2f2006-08-25 21:14:45 +000015039 ac_option=$1
15040 ac_optarg=$2
15041 ac_shift=shift
15042 ;;
brynercb91a2f2006-08-25 21:14:45 +000015043 esac
15044
15045 case $ac_option in
15046 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15048 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015049 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015050 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015051 --config | --confi | --conf | --con | --co | --c )
15052 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015053 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015054 debug=: ;;
15055 --file | --fil | --fi | --f )
15056 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015057 case $ac_optarg in
15058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15059 esac
15060 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015061 ac_need_defaults=false;;
15062 --header | --heade | --head | --hea )
15063 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015064 case $ac_optarg in
15065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15066 esac
15067 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015068 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015069 --he | --h)
15070 # Conflict between --help and --header
jimblandy92b1f832009-12-23 22:23:49 +000015071 as_fn_error "ambiguous option: \`$1'
15072Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015073 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015074 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15077 ac_cs_silent=: ;;
15078
15079 # This is an error.
jimblandy92b1f832009-12-23 22:23:49 +000015080 -*) as_fn_error "unrecognized option: \`$1'
15081Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015082
jimblandy92b1f832009-12-23 22:23:49 +000015083 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015084 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015085
15086 esac
15087 shift
15088done
15089
15090ac_configure_extra_args=
15091
15092if $ac_cs_silent; then
15093 exec 6>/dev/null
15094 ac_configure_extra_args="$ac_configure_extra_args --silent"
15095fi
15096
15097_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015099if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015100 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15101 shift
15102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15103 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015104 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015105 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015106fi
15107
15108_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015110exec 5>>config.log
15111{
15112 echo
15113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15114## Running $as_me. ##
15115_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015116 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015117} >&5
brynercb91a2f2006-08-25 21:14:45 +000015118
mmentovai8c2a4de2006-09-20 16:20:15 +000015119_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015121#
mmentovai8c2a4de2006-09-20 16:20:15 +000015122# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015123#
brynercb91a2f2006-08-25 21:14:45 +000015124AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15125
jimblandy92b1f832009-12-23 22:23:49 +000015126
15127# The HP-UX ksh and POSIX shell print the target directory to stdout
15128# if CDPATH is set.
15129(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15130
15131sed_quote_subst='$sed_quote_subst'
15132double_quote_subst='$double_quote_subst'
15133delay_variable_subst='$delay_variable_subst'
15134macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15135macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15136enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15137enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15138pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15139enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15140host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15141host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15142host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15143build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15144build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15145build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15146SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15147Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15148GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15149EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15150FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15151LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15152NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15153LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15154max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15155ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15156exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15157lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15158lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15159lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15160reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15161reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15162OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15163deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15164file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15165AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15166AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15167STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15168RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15169old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15170old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15171old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15172CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15173CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15174compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15175GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15176lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15177lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15178lt_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"`'
15179lt_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"`'
15180objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15181SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15182ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15183MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15184lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15185lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15186lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15187lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15188lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15189need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15190DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15191NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15192LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15193OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15194OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15195libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15196shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15197extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15198archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15199enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15200export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15201whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15202compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15203old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15204old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15205archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15206archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15207module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15208module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15209with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15210allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15211no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15212hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15213hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15214hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15215hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15216hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15217hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15218hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15219hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15220inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15221link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15222fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15223always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15224export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15225exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15226include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15227prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15228file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15229variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15230need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15231need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15232version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15233runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15234shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15235shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15236libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15237library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15238soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15239postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15240postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15241finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15242finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15243hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15244sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15245sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15246hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15247enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15248enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15249enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15250old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15251striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15252compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15253predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15254postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15255predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15256postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15257compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15258LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15259old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15260compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15261GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15262lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15263lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15264lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15265lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15266lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15267archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15268enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15269export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15270whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15271compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15272old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15273old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15274archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15275archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15276module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15277module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15278with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15279allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15280no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15281hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15282hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15283hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15284hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15285hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15286hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15287hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15288hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15289inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15290link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15291fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15292always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15293export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15294exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15295include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15296prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15297file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15298hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15299compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15300predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15301postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15302predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15303postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15304compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15305
15306LTCC='$LTCC'
15307LTCFLAGS='$LTCFLAGS'
15308compiler='$compiler_DEFAULT'
15309
15310# Quote evaled strings.
15311for var in SED \
15312GREP \
15313EGREP \
15314FGREP \
15315LD \
15316NM \
15317LN_S \
15318lt_SP2NL \
15319lt_NL2SP \
15320reload_flag \
15321OBJDUMP \
15322deplibs_check_method \
15323file_magic_cmd \
15324AR \
15325AR_FLAGS \
15326STRIP \
15327RANLIB \
15328CC \
15329CFLAGS \
15330compiler \
15331lt_cv_sys_global_symbol_pipe \
15332lt_cv_sys_global_symbol_to_cdecl \
15333lt_cv_sys_global_symbol_to_c_name_address \
15334lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15335SHELL \
15336ECHO \
15337lt_prog_compiler_no_builtin_flag \
15338lt_prog_compiler_wl \
15339lt_prog_compiler_pic \
15340lt_prog_compiler_static \
15341lt_cv_prog_compiler_c_o \
15342need_locks \
15343DSYMUTIL \
15344NMEDIT \
15345LIPO \
15346OTOOL \
15347OTOOL64 \
15348shrext_cmds \
15349export_dynamic_flag_spec \
15350whole_archive_flag_spec \
15351compiler_needs_object \
15352with_gnu_ld \
15353allow_undefined_flag \
15354no_undefined_flag \
15355hardcode_libdir_flag_spec \
15356hardcode_libdir_flag_spec_ld \
15357hardcode_libdir_separator \
15358fix_srcfile_path \
15359exclude_expsyms \
15360include_expsyms \
15361file_list_spec \
15362variables_saved_for_relink \
15363libname_spec \
15364library_names_spec \
15365soname_spec \
15366finish_eval \
15367old_striplib \
15368striplib \
15369compiler_lib_search_dirs \
15370predep_objects \
15371postdep_objects \
15372predeps \
15373postdeps \
15374compiler_lib_search_path \
15375LD_CXX \
15376compiler_CXX \
15377lt_prog_compiler_no_builtin_flag_CXX \
15378lt_prog_compiler_wl_CXX \
15379lt_prog_compiler_pic_CXX \
15380lt_prog_compiler_static_CXX \
15381lt_cv_prog_compiler_c_o_CXX \
15382export_dynamic_flag_spec_CXX \
15383whole_archive_flag_spec_CXX \
15384compiler_needs_object_CXX \
15385with_gnu_ld_CXX \
15386allow_undefined_flag_CXX \
15387no_undefined_flag_CXX \
15388hardcode_libdir_flag_spec_CXX \
15389hardcode_libdir_flag_spec_ld_CXX \
15390hardcode_libdir_separator_CXX \
15391fix_srcfile_path_CXX \
15392exclude_expsyms_CXX \
15393include_expsyms_CXX \
15394file_list_spec_CXX \
15395compiler_lib_search_dirs_CXX \
15396predep_objects_CXX \
15397postdep_objects_CXX \
15398predeps_CXX \
15399postdeps_CXX \
15400compiler_lib_search_path_CXX; do
15401 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15402 *[\\\\\\\`\\"\\\$]*)
15403 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15404 ;;
15405 *)
15406 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15407 ;;
15408 esac
15409done
15410
15411# Double-quote double-evaled strings.
15412for var in reload_cmds \
15413old_postinstall_cmds \
15414old_postuninstall_cmds \
15415old_archive_cmds \
15416extract_expsyms_cmds \
15417old_archive_from_new_cmds \
15418old_archive_from_expsyms_cmds \
15419archive_cmds \
15420archive_expsym_cmds \
15421module_cmds \
15422module_expsym_cmds \
15423export_symbols_cmds \
15424prelink_cmds \
15425postinstall_cmds \
15426postuninstall_cmds \
15427finish_cmds \
15428sys_lib_search_path_spec \
15429sys_lib_dlsearch_path_spec \
15430old_archive_cmds_CXX \
15431old_archive_from_new_cmds_CXX \
15432old_archive_from_expsyms_cmds_CXX \
15433archive_cmds_CXX \
15434archive_expsym_cmds_CXX \
15435module_cmds_CXX \
15436module_expsym_cmds_CXX \
15437export_symbols_cmds_CXX \
15438prelink_cmds_CXX; do
15439 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15440 *[\\\\\\\`\\"\\\$]*)
15441 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15442 ;;
15443 *)
15444 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15445 ;;
15446 esac
15447done
15448
15449# Fix-up fallback echo if it was mangled by the above quoting rules.
15450case \$lt_ECHO in
15451*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15452 ;;
15453esac
15454
15455ac_aux_dir='$ac_aux_dir'
15456xsi_shell='$xsi_shell'
15457lt_shell_append='$lt_shell_append'
15458
15459# See if we are running on zsh, and set the options which allow our
15460# commands through without removal of \ escapes INIT.
15461if test -n "\${ZSH_VERSION+set}" ; then
15462 setopt NO_GLOB_SUBST
15463fi
15464
15465
15466 PACKAGE='$PACKAGE'
15467 VERSION='$VERSION'
15468 TIMESTAMP='$TIMESTAMP'
15469 RM='$RM'
15470 ofile='$ofile'
15471
15472
15473
15474
15475
15476
brynercb91a2f2006-08-25 21:14:45 +000015477_ACEOF
15478
jimblandy92b1f832009-12-23 22:23:49 +000015479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015480
15481# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000015482for ac_config_target in $ac_config_targets
15483do
mmentovai8c2a4de2006-09-20 16:20:15 +000015484 case $ac_config_target in
15485 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15486 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000015487 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15489
jimblandy92b1f832009-12-23 22:23:49 +000015490 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000015491 esac
15492done
15493
mmentovai8c2a4de2006-09-20 16:20:15 +000015494
brynercb91a2f2006-08-25 21:14:45 +000015495# If the user did not use the arguments to specify the items to instantiate,
15496# then the envvar interface is used. Set only those that are not.
15497# We use the long form for the default assignment because of an extremely
15498# bizarre bug on SunOS 4.1.3.
15499if $ac_need_defaults; then
15500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15502 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15503fi
15504
15505# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000015506# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000015507# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000015508# Hook for its removal unless debugging.
15509# Note that there is a small window in which the directory will not be cleaned:
15510# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000015511$debug ||
15512{
mmentovai8c2a4de2006-09-20 16:20:15 +000015513 tmp=
15514 trap 'exit_status=$?
15515 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15516' 0
jimblandy92b1f832009-12-23 22:23:49 +000015517 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000015518}
brynercb91a2f2006-08-25 21:14:45 +000015519# Create a (secure) tmp directory for tmp files.
15520
15521{
mmentovai8c2a4de2006-09-20 16:20:15 +000015522 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000015523 test -n "$tmp" && test -d "$tmp"
15524} ||
15525{
mmentovai8c2a4de2006-09-20 16:20:15 +000015526 tmp=./conf$$-$RANDOM
15527 (umask 077 && mkdir "$tmp")
jimblandy92b1f832009-12-23 22:23:49 +000015528} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015529
jimblandy92b1f832009-12-23 22:23:49 +000015530# Set up the scripts for CONFIG_FILES section.
15531# No need to generate them if there are no CONFIG_FILES.
15532# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000015533if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000015534
jimblandy92b1f832009-12-23 22:23:49 +000015535
15536ac_cr=`echo X | tr X '\015'`
15537# On cygwin, bash can eat \r inside `` if the user requested igncr.
15538# But we know of no other shell where ac_cr would be empty at this
15539# point, so we can use a bashism as a fallback.
15540if test "x$ac_cr" = x; then
15541 eval ac_cr=\$\'\\r\'
15542fi
15543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15545 ac_cs_awk_cr='\r'
15546else
15547 ac_cs_awk_cr=$ac_cr
15548fi
15549
15550echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000015551_ACEOF
15552
mmentovai8c2a4de2006-09-20 16:20:15 +000015553
jimblandy92b1f832009-12-23 22:23:49 +000015554{
15555 echo "cat >conf$$subs.awk <<_ACEOF" &&
15556 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15557 echo "_ACEOF"
15558} >conf$$subs.sh ||
15559 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15560ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015561ac_delim='%!_!# '
15562for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000015563 . ./conf$$subs.sh ||
15564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015565
jimblandy92b1f832009-12-23 22:23:49 +000015566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15567 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000015568 break
15569 elif $ac_last_try; then
jimblandy92b1f832009-12-23 22:23:49 +000015570 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015571 else
15572 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000015573 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015574done
jimblandy92b1f832009-12-23 22:23:49 +000015575rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000015576
jimblandy92b1f832009-12-23 22:23:49 +000015577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000015579_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015580sed -n '
15581h
15582s/^/S["/; s/!.*/"]=/
15583p
15584g
15585s/^[^!]*!//
15586:repl
15587t repl
15588s/'"$ac_delim"'$//
15589t delim
15590:nl
15591h
jimblandydc4029a2010-02-02 17:39:51 +000015592s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000015593t more1
15594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15595p
15596n
15597b repl
15598:more1
15599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15600p
15601g
15602s/.\{148\}//
15603t nl
15604:delim
15605h
jimblandydc4029a2010-02-02 17:39:51 +000015606s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000015607t more2
15608s/["\\]/\\&/g; s/^/"/; s/$/"/
15609p
15610b
15611:more2
15612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15613p
15614g
15615s/.\{148\}//
15616t delim
15617' <conf$$subs.awk | sed '
15618/^[^""]/{
15619 N
15620 s/\n//
15621}
15622' >>$CONFIG_STATUS || ac_write_fail=1
15623rm -f conf$$subs.awk
15624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15625_ACAWK
15626cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15627 for (key in S) S_is_set[key] = 1
15628 FS = ""
15629
15630}
15631{
15632 line = $ 0
15633 nfields = split(line, field, "@")
15634 substed = 0
15635 len = length(field[1])
15636 for (i = 2; i < nfields; i++) {
15637 key = field[i]
15638 keylen = length(key)
15639 if (S_is_set[key]) {
15640 value = S[key]
15641 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15642 len += length(value) + length(field[++i])
15643 substed = 1
15644 } else
15645 len += 1 + keylen
15646 }
15647
15648 print line
15649}
15650
15651_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000015652_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15655 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15656else
15657 cat
15658fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15659 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000015660_ACEOF
15661
mmentovai8c2a4de2006-09-20 16:20:15 +000015662# VPATH may cause trouble with some makes, so we remove $(srcdir),
15663# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15664# trailing colons and then remove the whole line if VPATH becomes empty
15665# (actually we leave an empty line to preserve line numbers).
15666if test "x$srcdir" = x.; then
15667 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15668s/:*\$(srcdir):*/:/
15669s/:*\${srcdir}:*/:/
15670s/:*@srcdir@:*/:/
15671s/^\([^=]*=[ ]*\):*/\1/
15672s/:*$//
15673s/^[^=]*=[ ]*$//
15674}'
15675fi
15676
jimblandy92b1f832009-12-23 22:23:49 +000015677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015678fi # test -n "$CONFIG_FILES"
15679
jimblandy92b1f832009-12-23 22:23:49 +000015680# Set up the scripts for CONFIG_HEADERS section.
15681# No need to generate them if there are no CONFIG_HEADERS.
15682# This happens for instance with `./config.status Makefile'.
15683if test -n "$CONFIG_HEADERS"; then
15684cat >"$tmp/defines.awk" <<\_ACAWK ||
15685BEGIN {
15686_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000015687
jimblandy92b1f832009-12-23 22:23:49 +000015688# Transform confdefs.h into an awk script `defines.awk', embedded as
15689# here-document in config.status, that substitutes the proper values into
15690# config.h.in to produce config.h.
15691
15692# Create a delimiter string that does not exist in confdefs.h, to ease
15693# handling of long lines.
15694ac_delim='%!_!# '
15695for ac_last_try in false false :; do
15696 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15697 if test -z "$ac_t"; then
15698 break
15699 elif $ac_last_try; then
15700 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15701 else
15702 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15703 fi
15704done
15705
15706# For the awk script, D is an array of macro values keyed by name,
15707# likewise P contains macro parameters if any. Preserve backslash
15708# newline sequences.
15709
15710ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15711sed -n '
15712s/.\{148\}/&'"$ac_delim"'/g
15713t rset
15714:rset
15715s/^[ ]*#[ ]*define[ ][ ]*/ /
15716t def
15717d
15718:def
15719s/\\$//
15720t bsnl
15721s/["\\]/\\&/g
15722s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15723D["\1"]=" \3"/p
15724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15725d
15726:bsnl
15727s/["\\]/\\&/g
15728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15729D["\1"]=" \3\\\\\\n"\\/p
15730t cont
15731s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15732t cont
15733d
15734:cont
15735n
15736s/.\{148\}/&'"$ac_delim"'/g
15737t clear
15738:clear
15739s/\\$//
15740t bsnlc
15741s/["\\]/\\&/g; s/^/"/; s/$/"/p
15742d
15743:bsnlc
15744s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15745b cont
15746' <confdefs.h | sed '
15747s/'"$ac_delim"'/"\\\
15748"/g' >>$CONFIG_STATUS || ac_write_fail=1
15749
15750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15751 for (key in D) D_is_set[key] = 1
15752 FS = ""
15753}
15754/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15755 line = \$ 0
15756 split(line, arg, " ")
15757 if (arg[1] == "#") {
15758 defundef = arg[2]
15759 mac1 = arg[3]
15760 } else {
15761 defundef = substr(arg[1], 2)
15762 mac1 = arg[2]
15763 }
15764 split(mac1, mac2, "(") #)
15765 macro = mac2[1]
15766 prefix = substr(line, 1, index(line, defundef) - 1)
15767 if (D_is_set[macro]) {
15768 # Preserve the white space surrounding the "#".
15769 print prefix "define", macro P[macro] D[macro]
15770 next
15771 } else {
15772 # Replace #undef with comments. This is necessary, for example,
15773 # in the case of _POSIX_SOURCE, which is predefined and required
15774 # on some systems where configure will not decide to define it.
15775 if (defundef == "undef") {
15776 print "/*", prefix defundef, macro, "*/"
15777 next
15778 }
15779 }
15780}
15781{ print }
15782_ACAWK
15783_ACEOF
15784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15786fi # test -n "$CONFIG_HEADERS"
15787
15788
15789eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15790shift
15791for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000015792do
15793 case $ac_tag in
15794 :[FHLC]) ac_mode=$ac_tag; continue;;
15795 esac
15796 case $ac_mode$ac_tag in
15797 :[FHL]*:*);;
jimblandy92b1f832009-12-23 22:23:49 +000015798 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015799 :[FH]-) ac_tag=-:-;;
15800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15801 esac
15802 ac_save_IFS=$IFS
15803 IFS=:
15804 set x $ac_tag
15805 IFS=$ac_save_IFS
15806 shift
15807 ac_file=$1
15808 shift
15809
15810 case $ac_mode in
15811 :L) ac_source=$1;;
15812 :[FH])
15813 ac_file_inputs=
15814 for ac_f
15815 do
15816 case $ac_f in
15817 -) ac_f="$tmp/stdin";;
15818 *) # Look for the file first in the build tree, then in the source tree
15819 # (if the path is not absolute). The absolute path cannot be DOS-style,
15820 # because $ac_f cannot contain `:'.
15821 test -f "$ac_f" ||
15822 case $ac_f in
15823 [\\/$]*) false;;
15824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15825 esac ||
jimblandy92b1f832009-12-23 22:23:49 +000015826 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015827 esac
jimblandy92b1f832009-12-23 22:23:49 +000015828 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15829 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000015830 done
15831
15832 # Let's still pretend it is `configure' which instantiates (i.e., don't
15833 # use $as_me), people would be surprised to read:
15834 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000015835 configure_input='Generated from '`
15836 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15837 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000015838 if test x"$ac_file" != x-; then
15839 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000015840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15841$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000015842 fi
jimblandy92b1f832009-12-23 22:23:49 +000015843 # Neutralize special characters interpreted by sed in replacement strings.
15844 case $configure_input in #(
15845 *\&* | *\|* | *\\* )
15846 ac_sed_conf_input=`$as_echo "$configure_input" |
15847 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15848 *) ac_sed_conf_input=$configure_input;;
15849 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015850
15851 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000015852 *:-:* | *:-) cat >"$tmp/stdin" \
15853 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015854 esac
15855 ;;
brynercb91a2f2006-08-25 21:14:45 +000015856 esac
15857
mmentovai8c2a4de2006-09-20 16:20:15 +000015858 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000015859$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15860 X"$ac_file" : 'X\(//\)[^/]' \| \
15861 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000015862 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015863$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15865 s//\1/
15866 q
15867 }
15868 /^X\(\/\/\)[^/].*/{
15869 s//\1/
15870 q
15871 }
15872 /^X\(\/\/\)$/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\).*/{
15877 s//\1/
15878 q
15879 }
15880 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000015881 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015882 ac_builddir=.
15883
mmentovai8c2a4de2006-09-20 16:20:15 +000015884case "$ac_dir" in
15885.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15886*)
jimblandy92b1f832009-12-23 22:23:49 +000015887 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015888 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000015889 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000015890 case $ac_top_builddir_sub in
15891 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15892 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15893 esac ;;
15894esac
15895ac_abs_top_builddir=$ac_pwd
15896ac_abs_builddir=$ac_pwd$ac_dir_suffix
15897# for backward compatibility:
15898ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000015899
15900case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000015901 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000015902 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000015903 ac_top_srcdir=$ac_top_builddir_sub
15904 ac_abs_top_srcdir=$ac_pwd ;;
15905 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000015906 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000015907 ac_top_srcdir=$srcdir
15908 ac_abs_top_srcdir=$srcdir ;;
15909 *) # Relative name.
15910 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15911 ac_top_srcdir=$ac_top_build_prefix$srcdir
15912 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000015913esac
mmentovai8c2a4de2006-09-20 16:20:15 +000015914ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000015915
brynercb91a2f2006-08-25 21:14:45 +000015916
mmentovai8c2a4de2006-09-20 16:20:15 +000015917 case $ac_mode in
15918 :F)
15919 #
15920 # CONFIG_FILE
15921 #
brynercb91a2f2006-08-25 21:14:45 +000015922
15923 case $INSTALL in
15924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015925 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000015926 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000015927 ac_MKDIR_P=$MKDIR_P
15928 case $MKDIR_P in
15929 [\\/$]* | ?:[\\/]* ) ;;
15930 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15931 esac
brynercb91a2f2006-08-25 21:14:45 +000015932_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000015933
jimblandy92b1f832009-12-23 22:23:49 +000015934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015935# If the template does not know about datarootdir, expand it.
15936# FIXME: This hack should be removed a few years after 2.60.
15937ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000015938ac_sed_dataroot='
15939/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000015940 p
15941 q
15942}
15943/@datadir@/p
15944/@docdir@/p
15945/@infodir@/p
15946/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000015947/@mandir@/p'
15948case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015949*datarootdir*) ac_datarootdir_seen=yes;;
15950*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000015951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15952$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000015953_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015955 ac_datarootdir_hack='
15956 s&@datadir@&$datadir&g
15957 s&@docdir@&$docdir&g
15958 s&@infodir@&$infodir&g
15959 s&@localedir@&$localedir&g
15960 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000015961 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015962esac
15963_ACEOF
15964
15965# Neutralize VPATH when `$srcdir' = `.'.
15966# Shell code in configure.ac might set extrasub.
15967# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000015968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15969ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000015970$extrasub
15971_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015973:t
15974/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000015975s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015976s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000015977s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015978s&@srcdir@&$ac_srcdir&;t t
15979s&@abs_srcdir@&$ac_abs_srcdir&;t t
15980s&@top_srcdir@&$ac_top_srcdir&;t t
15981s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15982s&@builddir@&$ac_builddir&;t t
15983s&@abs_builddir@&$ac_abs_builddir&;t t
15984s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15985s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000015986s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000015987$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000015988"
15989eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15990 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015991
mmentovai8c2a4de2006-09-20 16:20:15 +000015992test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15993 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15994 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000015995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000015996which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000015997$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000015998which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000015999
mmentovai8c2a4de2006-09-20 16:20:15 +000016000 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016001 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016002 -) cat "$tmp/out" && rm -f "$tmp/out";;
16003 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16004 esac \
16005 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016006 ;;
16007 :H)
16008 #
16009 # CONFIG_HEADER
16010 #
brynercb91a2f2006-08-25 21:14:45 +000016011 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016012 {
16013 $as_echo "/* $configure_input */" \
16014 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16015 } >"$tmp/config.h" \
16016 || as_fn_error "could not create $ac_file" "$LINENO" 5
16017 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16019$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016020 else
jimblandy92b1f832009-12-23 22:23:49 +000016021 rm -f "$ac_file"
16022 mv "$tmp/config.h" "$ac_file" \
16023 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016024 fi
16025 else
jimblandy92b1f832009-12-23 22:23:49 +000016026 $as_echo "/* $configure_input */" \
16027 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16028 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016029 fi
jimblandy92b1f832009-12-23 22:23:49 +000016030# Compute "$ac_file"'s index in $config_headers.
16031_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016032_am_stamp_count=1
16033for _am_header in $config_headers :; do
16034 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016035 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016036 break ;;
16037 * )
16038 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16039 esac
16040done
jimblandy92b1f832009-12-23 22:23:49 +000016041echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16042$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16043 X"$_am_arg" : 'X\(//\)[^/]' \| \
16044 X"$_am_arg" : 'X\(//\)$' \| \
16045 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16046$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 s//\1/
16049 q
16050 }
16051 /^X\(\/\/\)[^/].*/{
16052 s//\1/
16053 q
16054 }
16055 /^X\(\/\/\)$/{
16056 s//\1/
16057 q
16058 }
16059 /^X\(\/\).*/{
16060 s//\1/
16061 q
16062 }
16063 s/.*/./; q'`/stamp-h$_am_stamp_count
16064 ;;
brynercb91a2f2006-08-25 21:14:45 +000016065
jimblandy92b1f832009-12-23 22:23:49 +000016066 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16067$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016068 ;;
16069 esac
brynercb91a2f2006-08-25 21:14:45 +000016070
16071
mmentovai8c2a4de2006-09-20 16:20:15 +000016072 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016073 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16074 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16075 # are listed without --file. Let's play safe and only enable the eval
16076 # if we detect the quoting.
16077 case $CONFIG_FILES in
16078 *\'*) eval set x "$CONFIG_FILES" ;;
16079 *) set x $CONFIG_FILES ;;
16080 esac
16081 shift
16082 for mf
16083 do
16084 # Strip MF so we end up with the name of the file.
16085 mf=`echo "$mf" | sed -e 's/:.*$//'`
16086 # Check whether this is an Automake generated Makefile or not.
16087 # We used to match only the files named `Makefile.in', but
16088 # some people rename them; so instead we look at the file content.
16089 # Grep'ing the first line is not enough: some people post-process
16090 # each Makefile.in and add a new line on top of each file to say so.
16091 # Grep'ing the whole file is not good either: AIX grep has a line
16092 # limit of 2048, but all sed's we know have understand at least 4000.
16093 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16094 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016095$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$mf" : 'X\(//\)[^/]' \| \
16097 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016098 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016099$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101 s//\1/
16102 q
16103 }
16104 /^X\(\/\/\)[^/].*/{
16105 s//\1/
16106 q
16107 }
16108 /^X\(\/\/\)$/{
16109 s//\1/
16110 q
16111 }
16112 /^X\(\/\).*/{
16113 s//\1/
16114 q
16115 }
16116 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016117 else
16118 continue
16119 fi
16120 # Extract the definition of DEPDIR, am__include, and am__quote
16121 # from the Makefile without running `make'.
16122 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16123 test -z "$DEPDIR" && continue
16124 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16125 test -z "am__include" && continue
16126 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16127 # When using ansi2knr, U may be empty or an underscore; expand it
16128 U=`sed -n 's/^U = //p' < "$mf"`
16129 # Find all dependency output files, they are included files with
16130 # $(DEPDIR) in their names. We invoke sed twice because it is the
16131 # simplest approach to changing $(DEPDIR) to its actual value in the
16132 # expansion.
16133 for file in `sed -n "
16134 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16135 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16136 # Make sure the directory exists.
16137 test -f "$dirpart/$file" && continue
16138 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016139$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16140 X"$file" : 'X\(//\)[^/]' \| \
16141 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016142 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016143$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16145 s//\1/
16146 q
16147 }
16148 /^X\(\/\/\)[^/].*/{
16149 s//\1/
16150 q
16151 }
16152 /^X\(\/\/\)$/{
16153 s//\1/
16154 q
16155 }
16156 /^X\(\/\).*/{
16157 s//\1/
16158 q
16159 }
16160 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016161 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16162 # echo "creating $dirpart/$file"
16163 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016164 done
brynercb91a2f2006-08-25 21:14:45 +000016165 done
jimblandy92b1f832009-12-23 22:23:49 +000016166}
16167 ;;
16168 "libtool":C)
16169
16170 # See if we are running on zsh, and set the options which allow our
16171 # commands through without removal of \ escapes.
16172 if test -n "${ZSH_VERSION+set}" ; then
16173 setopt NO_GLOB_SUBST
16174 fi
16175
16176 cfgfile="${ofile}T"
16177 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16178 $RM "$cfgfile"
16179
16180 cat <<_LT_EOF >> "$cfgfile"
16181#! $SHELL
16182
16183# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16184# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16186# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16187#
16188# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16189# 2006, 2007, 2008 Free Software Foundation, Inc.
16190# Written by Gordon Matzigkeit, 1996
16191#
16192# This file is part of GNU Libtool.
16193#
16194# GNU Libtool is free software; you can redistribute it and/or
16195# modify it under the terms of the GNU General Public License as
16196# published by the Free Software Foundation; either version 2 of
16197# the License, or (at your option) any later version.
16198#
16199# As a special exception to the GNU General Public License,
16200# if you distribute this file as part of a program or library that
16201# is built using GNU Libtool, you may include this file under the
16202# same distribution terms that you use for the rest of that program.
16203#
16204# GNU Libtool is distributed in the hope that it will be useful,
16205# but WITHOUT ANY WARRANTY; without even the implied warranty of
16206# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16207# GNU General Public License for more details.
16208#
16209# You should have received a copy of the GNU General Public License
16210# along with GNU Libtool; see the file COPYING. If not, a copy
16211# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16212# obtained by writing to the Free Software Foundation, Inc.,
16213# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16214
16215
16216# The names of the tagged configurations supported by this script.
16217available_tags="CXX "
16218
16219# ### BEGIN LIBTOOL CONFIG
16220
16221# Which release of libtool.m4 was used?
16222macro_version=$macro_version
16223macro_revision=$macro_revision
16224
16225# Whether or not to build shared libraries.
16226build_libtool_libs=$enable_shared
16227
16228# Whether or not to build static libraries.
16229build_old_libs=$enable_static
16230
16231# What type of objects to build.
16232pic_mode=$pic_mode
16233
16234# Whether or not to optimize for fast installation.
16235fast_install=$enable_fast_install
16236
16237# The host system.
16238host_alias=$host_alias
16239host=$host
16240host_os=$host_os
16241
16242# The build system.
16243build_alias=$build_alias
16244build=$build
16245build_os=$build_os
16246
16247# A sed program that does not truncate output.
16248SED=$lt_SED
16249
16250# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16251Xsed="\$SED -e 1s/^X//"
16252
16253# A grep program that handles long lines.
16254GREP=$lt_GREP
16255
16256# An ERE matcher.
16257EGREP=$lt_EGREP
16258
16259# A literal string matcher.
16260FGREP=$lt_FGREP
16261
16262# A BSD- or MS-compatible name lister.
16263NM=$lt_NM
16264
16265# Whether we need soft or hard links.
16266LN_S=$lt_LN_S
16267
16268# What is the maximum length of a command?
16269max_cmd_len=$max_cmd_len
16270
16271# Object file suffix (normally "o").
16272objext=$ac_objext
16273
16274# Executable file suffix (normally "").
16275exeext=$exeext
16276
16277# whether the shell understands "unset".
16278lt_unset=$lt_unset
16279
16280# turn spaces into newlines.
16281SP2NL=$lt_lt_SP2NL
16282
16283# turn newlines into spaces.
16284NL2SP=$lt_lt_NL2SP
16285
16286# How to create reloadable object files.
16287reload_flag=$lt_reload_flag
16288reload_cmds=$lt_reload_cmds
16289
16290# An object symbol dumper.
16291OBJDUMP=$lt_OBJDUMP
16292
16293# Method to check whether dependent libraries are shared objects.
16294deplibs_check_method=$lt_deplibs_check_method
16295
16296# Command to use when deplibs_check_method == "file_magic".
16297file_magic_cmd=$lt_file_magic_cmd
16298
16299# The archiver.
16300AR=$lt_AR
16301AR_FLAGS=$lt_AR_FLAGS
16302
16303# A symbol stripping program.
16304STRIP=$lt_STRIP
16305
16306# Commands used to install an old-style archive.
16307RANLIB=$lt_RANLIB
16308old_postinstall_cmds=$lt_old_postinstall_cmds
16309old_postuninstall_cmds=$lt_old_postuninstall_cmds
16310
16311# A C compiler.
16312LTCC=$lt_CC
16313
16314# LTCC compiler flags.
16315LTCFLAGS=$lt_CFLAGS
16316
16317# Take the output of nm and produce a listing of raw symbols and C names.
16318global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16319
16320# Transform the output of nm in a proper C declaration.
16321global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16322
16323# Transform the output of nm in a C name address pair.
16324global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16325
16326# Transform the output of nm in a C name address pair when lib prefix is needed.
16327global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16328
16329# The name of the directory that contains temporary libtool files.
16330objdir=$objdir
16331
16332# Shell to use when invoking shell scripts.
16333SHELL=$lt_SHELL
16334
16335# An echo program that does not interpret backslashes.
16336ECHO=$lt_ECHO
16337
16338# Used to examine libraries when file_magic_cmd begins with "file".
16339MAGIC_CMD=$MAGIC_CMD
16340
16341# Must we lock files when doing compilation?
16342need_locks=$lt_need_locks
16343
16344# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16345DSYMUTIL=$lt_DSYMUTIL
16346
16347# Tool to change global to local symbols on Mac OS X.
16348NMEDIT=$lt_NMEDIT
16349
16350# Tool to manipulate fat objects and archives on Mac OS X.
16351LIPO=$lt_LIPO
16352
16353# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16354OTOOL=$lt_OTOOL
16355
16356# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16357OTOOL64=$lt_OTOOL64
16358
16359# Old archive suffix (normally "a").
16360libext=$libext
16361
16362# Shared library suffix (normally ".so").
16363shrext_cmds=$lt_shrext_cmds
16364
16365# The commands to extract the exported symbol list from a shared archive.
16366extract_expsyms_cmds=$lt_extract_expsyms_cmds
16367
16368# Variables whose values should be saved in libtool wrapper scripts and
16369# restored at link time.
16370variables_saved_for_relink=$lt_variables_saved_for_relink
16371
16372# Do we need the "lib" prefix for modules?
16373need_lib_prefix=$need_lib_prefix
16374
16375# Do we need a version for libraries?
16376need_version=$need_version
16377
16378# Library versioning type.
16379version_type=$version_type
16380
16381# Shared library runtime path variable.
16382runpath_var=$runpath_var
16383
16384# Shared library path variable.
16385shlibpath_var=$shlibpath_var
16386
16387# Is shlibpath searched before the hard-coded library search path?
16388shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16389
16390# Format of library name prefix.
16391libname_spec=$lt_libname_spec
16392
16393# List of archive names. First name is the real one, the rest are links.
16394# The last name is the one that the linker finds with -lNAME
16395library_names_spec=$lt_library_names_spec
16396
16397# The coded name of the library, if different from the real name.
16398soname_spec=$lt_soname_spec
16399
16400# Command to use after installation of a shared archive.
16401postinstall_cmds=$lt_postinstall_cmds
16402
16403# Command to use after uninstallation of a shared archive.
16404postuninstall_cmds=$lt_postuninstall_cmds
16405
16406# Commands used to finish a libtool library installation in a directory.
16407finish_cmds=$lt_finish_cmds
16408
16409# As "finish_cmds", except a single script fragment to be evaled but
16410# not shown.
16411finish_eval=$lt_finish_eval
16412
16413# Whether we should hardcode library paths into libraries.
16414hardcode_into_libs=$hardcode_into_libs
16415
16416# Compile-time system search path for libraries.
16417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16418
16419# Run-time system search path for libraries.
16420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16421
16422# Whether dlopen is supported.
16423dlopen_support=$enable_dlopen
16424
16425# Whether dlopen of programs is supported.
16426dlopen_self=$enable_dlopen_self
16427
16428# Whether dlopen of statically linked programs is supported.
16429dlopen_self_static=$enable_dlopen_self_static
16430
16431# Commands to strip libraries.
16432old_striplib=$lt_old_striplib
16433striplib=$lt_striplib
16434
16435
16436# The linker used to build libraries.
16437LD=$lt_LD
16438
16439# Commands used to build an old-style archive.
16440old_archive_cmds=$lt_old_archive_cmds
16441
16442# A language specific compiler.
16443CC=$lt_compiler
16444
16445# Is the compiler the GNU compiler?
16446with_gcc=$GCC
16447
16448# Compiler flag to turn off builtin functions.
16449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16450
16451# How to pass a linker flag through the compiler.
16452wl=$lt_lt_prog_compiler_wl
16453
16454# Additional compiler flags for building library objects.
16455pic_flag=$lt_lt_prog_compiler_pic
16456
16457# Compiler flag to prevent dynamic linking.
16458link_static_flag=$lt_lt_prog_compiler_static
16459
16460# Does compiler simultaneously support -c and -o options?
16461compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16462
16463# Whether or not to add -lc for building shared libraries.
16464build_libtool_need_lc=$archive_cmds_need_lc
16465
16466# Whether or not to disallow shared libs when runtime libs are static.
16467allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16468
16469# Compiler flag to allow reflexive dlopens.
16470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16471
16472# Compiler flag to generate shared objects directly from archives.
16473whole_archive_flag_spec=$lt_whole_archive_flag_spec
16474
16475# Whether the compiler copes with passing no objects directly.
16476compiler_needs_object=$lt_compiler_needs_object
16477
16478# Create an old-style archive from a shared archive.
16479old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16480
16481# Create a temporary old-style archive to link instead of a shared archive.
16482old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16483
16484# Commands used to build a shared archive.
16485archive_cmds=$lt_archive_cmds
16486archive_expsym_cmds=$lt_archive_expsym_cmds
16487
16488# Commands used to build a loadable module if different from building
16489# a shared archive.
16490module_cmds=$lt_module_cmds
16491module_expsym_cmds=$lt_module_expsym_cmds
16492
16493# Whether we are building with GNU ld or not.
16494with_gnu_ld=$lt_with_gnu_ld
16495
16496# Flag that allows shared libraries with undefined symbols to be built.
16497allow_undefined_flag=$lt_allow_undefined_flag
16498
16499# Flag that enforces no undefined symbols.
16500no_undefined_flag=$lt_no_undefined_flag
16501
16502# Flag to hardcode \$libdir into a binary during linking.
16503# This must work even if \$libdir does not exist
16504hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16505
16506# If ld is used when linking, flag to hardcode \$libdir into a binary
16507# during linking. This must work even if \$libdir does not exist.
16508hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16509
16510# Whether we need a single "-rpath" flag with a separated argument.
16511hardcode_libdir_separator=$lt_hardcode_libdir_separator
16512
16513# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16514# DIR into the resulting binary.
16515hardcode_direct=$hardcode_direct
16516
16517# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16518# DIR into the resulting binary and the resulting library dependency is
16519# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16520# library is relocated.
16521hardcode_direct_absolute=$hardcode_direct_absolute
16522
16523# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16524# into the resulting binary.
16525hardcode_minus_L=$hardcode_minus_L
16526
16527# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16528# into the resulting binary.
16529hardcode_shlibpath_var=$hardcode_shlibpath_var
16530
16531# Set to "yes" if building a shared library automatically hardcodes DIR
16532# into the library and all subsequent libraries and executables linked
16533# against it.
16534hardcode_automatic=$hardcode_automatic
16535
16536# Set to yes if linker adds runtime paths of dependent libraries
16537# to runtime path list.
16538inherit_rpath=$inherit_rpath
16539
16540# Whether libtool must link a program against all its dependency libraries.
16541link_all_deplibs=$link_all_deplibs
16542
16543# Fix the shell variable \$srcfile for the compiler.
16544fix_srcfile_path=$lt_fix_srcfile_path
16545
16546# Set to "yes" if exported symbols are required.
16547always_export_symbols=$always_export_symbols
16548
16549# The commands to list exported symbols.
16550export_symbols_cmds=$lt_export_symbols_cmds
16551
16552# Symbols that should not be listed in the preloaded symbols.
16553exclude_expsyms=$lt_exclude_expsyms
16554
16555# Symbols that must always be exported.
16556include_expsyms=$lt_include_expsyms
16557
16558# Commands necessary for linking programs (against libraries) with templates.
16559prelink_cmds=$lt_prelink_cmds
16560
16561# Specify filename containing input files.
16562file_list_spec=$lt_file_list_spec
16563
16564# How to hardcode a shared library path into an executable.
16565hardcode_action=$hardcode_action
16566
16567# The directories searched by this compiler when creating a shared library.
16568compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16569
16570# Dependencies to place before and after the objects being linked to
16571# create a shared library.
16572predep_objects=$lt_predep_objects
16573postdep_objects=$lt_postdep_objects
16574predeps=$lt_predeps
16575postdeps=$lt_postdeps
16576
16577# The library search path used internally by the compiler when linking
16578# a shared library.
16579compiler_lib_search_path=$lt_compiler_lib_search_path
16580
16581# ### END LIBTOOL CONFIG
16582
16583_LT_EOF
16584
16585 case $host_os in
16586 aix3*)
16587 cat <<\_LT_EOF >> "$cfgfile"
16588# AIX sometimes has problems with the GCC collect2 program. For some
16589# reason, if we set the COLLECT_NAMES environment variable, the problems
16590# vanish in a puff of smoke.
16591if test "X${COLLECT_NAMES+set}" != Xset; then
16592 COLLECT_NAMES=
16593 export COLLECT_NAMES
16594fi
16595_LT_EOF
16596 ;;
16597 esac
16598
16599
16600ltmain="$ac_aux_dir/ltmain.sh"
16601
16602
16603 # We use sed instead of cat because bash on DJGPP gets confused if
16604 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16605 # text mode, it properly converts lines to CR/LF. This bash problem
16606 # is reportedly fixed, but why not run on old versions too?
16607 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16608 || (rm -f "$cfgfile"; exit 1)
16609
16610 case $xsi_shell in
16611 yes)
16612 cat << \_LT_EOF >> "$cfgfile"
16613
16614# func_dirname file append nondir_replacement
16615# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16616# otherwise set result to NONDIR_REPLACEMENT.
16617func_dirname ()
16618{
16619 case ${1} in
16620 */*) func_dirname_result="${1%/*}${2}" ;;
16621 * ) func_dirname_result="${3}" ;;
16622 esac
16623}
16624
16625# func_basename file
16626func_basename ()
16627{
16628 func_basename_result="${1##*/}"
16629}
16630
16631# func_dirname_and_basename file append nondir_replacement
16632# perform func_basename and func_dirname in a single function
16633# call:
16634# dirname: Compute the dirname of FILE. If nonempty,
16635# add APPEND to the result, otherwise set result
16636# to NONDIR_REPLACEMENT.
16637# value returned in "$func_dirname_result"
16638# basename: Compute filename of FILE.
16639# value retuned in "$func_basename_result"
16640# Implementation must be kept synchronized with func_dirname
16641# and func_basename. For efficiency, we do not delegate to
16642# those functions but instead duplicate the functionality here.
16643func_dirname_and_basename ()
16644{
16645 case ${1} in
16646 */*) func_dirname_result="${1%/*}${2}" ;;
16647 * ) func_dirname_result="${3}" ;;
16648 esac
16649 func_basename_result="${1##*/}"
16650}
16651
16652# func_stripname prefix suffix name
16653# strip PREFIX and SUFFIX off of NAME.
16654# PREFIX and SUFFIX must not contain globbing or regex special
16655# characters, hashes, percent signs, but SUFFIX may contain a leading
16656# dot (in which case that matches only a dot).
16657func_stripname ()
16658{
16659 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16660 # positional parameters, so assign one to ordinary parameter first.
16661 func_stripname_result=${3}
16662 func_stripname_result=${func_stripname_result#"${1}"}
16663 func_stripname_result=${func_stripname_result%"${2}"}
16664}
16665
16666# func_opt_split
16667func_opt_split ()
16668{
16669 func_opt_split_opt=${1%%=*}
16670 func_opt_split_arg=${1#*=}
16671}
16672
16673# func_lo2o object
16674func_lo2o ()
16675{
16676 case ${1} in
16677 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16678 *) func_lo2o_result=${1} ;;
16679 esac
16680}
16681
16682# func_xform libobj-or-source
16683func_xform ()
16684{
16685 func_xform_result=${1%.*}.lo
16686}
16687
16688# func_arith arithmetic-term...
16689func_arith ()
16690{
16691 func_arith_result=$(( $* ))
16692}
16693
16694# func_len string
16695# STRING may not start with a hyphen.
16696func_len ()
16697{
16698 func_len_result=${#1}
16699}
16700
16701_LT_EOF
16702 ;;
16703 *) # Bourne compatible functions.
16704 cat << \_LT_EOF >> "$cfgfile"
16705
16706# func_dirname file append nondir_replacement
16707# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16708# otherwise set result to NONDIR_REPLACEMENT.
16709func_dirname ()
16710{
16711 # Extract subdirectory from the argument.
16712 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16713 if test "X$func_dirname_result" = "X${1}"; then
16714 func_dirname_result="${3}"
16715 else
16716 func_dirname_result="$func_dirname_result${2}"
16717 fi
16718}
16719
16720# func_basename file
16721func_basename ()
16722{
16723 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16724}
16725
16726
16727# func_stripname prefix suffix name
16728# strip PREFIX and SUFFIX off of NAME.
16729# PREFIX and SUFFIX must not contain globbing or regex special
16730# characters, hashes, percent signs, but SUFFIX may contain a leading
16731# dot (in which case that matches only a dot).
16732# func_strip_suffix prefix name
16733func_stripname ()
16734{
16735 case ${2} in
16736 .*) func_stripname_result=`$ECHO "X${3}" \
16737 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16738 *) func_stripname_result=`$ECHO "X${3}" \
16739 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16740 esac
16741}
16742
16743# sed scripts:
16744my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16745my_sed_long_arg='1s/^-[^=]*=//'
16746
16747# func_opt_split
16748func_opt_split ()
16749{
16750 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16751 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16752}
16753
16754# func_lo2o object
16755func_lo2o ()
16756{
16757 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16758}
16759
16760# func_xform libobj-or-source
16761func_xform ()
16762{
16763 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16764}
16765
16766# func_arith arithmetic-term...
16767func_arith ()
16768{
16769 func_arith_result=`expr "$@"`
16770}
16771
16772# func_len string
16773# STRING may not start with a hyphen.
16774func_len ()
16775{
16776 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16777}
16778
16779_LT_EOF
16780esac
16781
16782case $lt_shell_append in
16783 yes)
16784 cat << \_LT_EOF >> "$cfgfile"
16785
16786# func_append var value
16787# Append VALUE to the end of shell variable VAR.
16788func_append ()
16789{
16790 eval "$1+=\$2"
16791}
16792_LT_EOF
16793 ;;
16794 *)
16795 cat << \_LT_EOF >> "$cfgfile"
16796
16797# func_append var value
16798# Append VALUE to the end of shell variable VAR.
16799func_append ()
16800{
16801 eval "$1=\$$1\$2"
16802}
16803
16804_LT_EOF
16805 ;;
16806 esac
16807
16808
16809 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16810 || (rm -f "$cfgfile"; exit 1)
16811
16812 mv -f "$cfgfile" "$ofile" ||
16813 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16814 chmod +x "$ofile"
16815
16816
16817 cat <<_LT_EOF >> "$ofile"
16818
16819# ### BEGIN LIBTOOL TAG CONFIG: CXX
16820
16821# The linker used to build libraries.
16822LD=$lt_LD_CXX
16823
16824# Commands used to build an old-style archive.
16825old_archive_cmds=$lt_old_archive_cmds_CXX
16826
16827# A language specific compiler.
16828CC=$lt_compiler_CXX
16829
16830# Is the compiler the GNU compiler?
16831with_gcc=$GCC_CXX
16832
16833# Compiler flag to turn off builtin functions.
16834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16835
16836# How to pass a linker flag through the compiler.
16837wl=$lt_lt_prog_compiler_wl_CXX
16838
16839# Additional compiler flags for building library objects.
16840pic_flag=$lt_lt_prog_compiler_pic_CXX
16841
16842# Compiler flag to prevent dynamic linking.
16843link_static_flag=$lt_lt_prog_compiler_static_CXX
16844
16845# Does compiler simultaneously support -c and -o options?
16846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16847
16848# Whether or not to add -lc for building shared libraries.
16849build_libtool_need_lc=$archive_cmds_need_lc_CXX
16850
16851# Whether or not to disallow shared libs when runtime libs are static.
16852allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16853
16854# Compiler flag to allow reflexive dlopens.
16855export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16856
16857# Compiler flag to generate shared objects directly from archives.
16858whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16859
16860# Whether the compiler copes with passing no objects directly.
16861compiler_needs_object=$lt_compiler_needs_object_CXX
16862
16863# Create an old-style archive from a shared archive.
16864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16865
16866# Create a temporary old-style archive to link instead of a shared archive.
16867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16868
16869# Commands used to build a shared archive.
16870archive_cmds=$lt_archive_cmds_CXX
16871archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16872
16873# Commands used to build a loadable module if different from building
16874# a shared archive.
16875module_cmds=$lt_module_cmds_CXX
16876module_expsym_cmds=$lt_module_expsym_cmds_CXX
16877
16878# Whether we are building with GNU ld or not.
16879with_gnu_ld=$lt_with_gnu_ld_CXX
16880
16881# Flag that allows shared libraries with undefined symbols to be built.
16882allow_undefined_flag=$lt_allow_undefined_flag_CXX
16883
16884# Flag that enforces no undefined symbols.
16885no_undefined_flag=$lt_no_undefined_flag_CXX
16886
16887# Flag to hardcode \$libdir into a binary during linking.
16888# This must work even if \$libdir does not exist
16889hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16890
16891# If ld is used when linking, flag to hardcode \$libdir into a binary
16892# during linking. This must work even if \$libdir does not exist.
16893hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16894
16895# Whether we need a single "-rpath" flag with a separated argument.
16896hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16897
16898# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16899# DIR into the resulting binary.
16900hardcode_direct=$hardcode_direct_CXX
16901
16902# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16903# DIR into the resulting binary and the resulting library dependency is
16904# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16905# library is relocated.
16906hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16907
16908# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16909# into the resulting binary.
16910hardcode_minus_L=$hardcode_minus_L_CXX
16911
16912# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16913# into the resulting binary.
16914hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16915
16916# Set to "yes" if building a shared library automatically hardcodes DIR
16917# into the library and all subsequent libraries and executables linked
16918# against it.
16919hardcode_automatic=$hardcode_automatic_CXX
16920
16921# Set to yes if linker adds runtime paths of dependent libraries
16922# to runtime path list.
16923inherit_rpath=$inherit_rpath_CXX
16924
16925# Whether libtool must link a program against all its dependency libraries.
16926link_all_deplibs=$link_all_deplibs_CXX
16927
16928# Fix the shell variable \$srcfile for the compiler.
16929fix_srcfile_path=$lt_fix_srcfile_path_CXX
16930
16931# Set to "yes" if exported symbols are required.
16932always_export_symbols=$always_export_symbols_CXX
16933
16934# The commands to list exported symbols.
16935export_symbols_cmds=$lt_export_symbols_cmds_CXX
16936
16937# Symbols that should not be listed in the preloaded symbols.
16938exclude_expsyms=$lt_exclude_expsyms_CXX
16939
16940# Symbols that must always be exported.
16941include_expsyms=$lt_include_expsyms_CXX
16942
16943# Commands necessary for linking programs (against libraries) with templates.
16944prelink_cmds=$lt_prelink_cmds_CXX
16945
16946# Specify filename containing input files.
16947file_list_spec=$lt_file_list_spec_CXX
16948
16949# How to hardcode a shared library path into an executable.
16950hardcode_action=$hardcode_action_CXX
16951
16952# The directories searched by this compiler when creating a shared library.
16953compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16954
16955# Dependencies to place before and after the objects being linked to
16956# create a shared library.
16957predep_objects=$lt_predep_objects_CXX
16958postdep_objects=$lt_postdep_objects_CXX
16959predeps=$lt_predeps_CXX
16960postdeps=$lt_postdeps_CXX
16961
16962# The library search path used internally by the compiler when linking
16963# a shared library.
16964compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16965
16966# ### END LIBTOOL TAG CONFIG: CXX
16967_LT_EOF
16968
brynercb91a2f2006-08-25 21:14:45 +000016969 ;;
brynercb91a2f2006-08-25 21:14:45 +000016970
mmentovai8c2a4de2006-09-20 16:20:15 +000016971 esac
16972done # for ac_tag
16973
brynercb91a2f2006-08-25 21:14:45 +000016974
jimblandy92b1f832009-12-23 22:23:49 +000016975as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000016976_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000016977ac_clean_files=$ac_clean_files_save
16978
jimblandy92b1f832009-12-23 22:23:49 +000016979test $ac_write_fail = 0 ||
16980 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16981
brynercb91a2f2006-08-25 21:14:45 +000016982
16983# configure is writing to config.log, and then calls config.status.
16984# config.status does its own redirection, appending to config.log.
16985# Unfortunately, on DOS this fails, as config.log is still kept open
16986# by configure, so config.status won't be able to write to it; its
16987# output is simply discarded. So we exec the FD to /dev/null,
16988# effectively closing config.log, so it can be properly (re)opened and
16989# appended to by config.status. When coming back to configure, we
16990# need to make the FD available again.
16991if test "$no_create" != yes; then
16992 ac_cs_success=:
16993 ac_config_status_args=
16994 test "$silent" = yes &&
16995 ac_config_status_args="$ac_config_status_args --quiet"
16996 exec 5>/dev/null
16997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16998 exec 5>>config.log
16999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17000 # would make configure fail if this is the last instruction.
jimblandy92b1f832009-12-23 22:23:49 +000017001 $ac_cs_success || as_fn_exit $?
17002fi
17003if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17005$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017006fi
17007