blob: 7f769999429f038070d82c84875400ea514756a1 [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
nealsidde545c02010-03-02 00:39:48 +0000752PTHREAD_CFLAGS
753PTHREAD_LIBS
754PTHREAD_CC
755ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000756LIBTOOL_DEPS
757CXXCPP
758OTOOL64
759OTOOL
760LIPO
761NMEDIT
762DSYMUTIL
763lt_ECHO
764RANLIB
765AR
766OBJDUMP
767LN_S
768NM
769ac_ct_DUMPBIN
770DUMPBIN
771LD
772FGREP
773EGREP
774GREP
775SED
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784LIBTOOL
785am__fastdepCXX_FALSE
786am__fastdepCXX_TRUE
787CXXDEPMODE
788ac_ct_CXX
789CXXFLAGS
790CXX
791CPP
792am__fastdepCC_FALSE
793am__fastdepCC_TRUE
794CCDEPMODE
795AMDEPBACKSLASH
796AMDEP_FALSE
797AMDEP_TRUE
798am__quote
799am__include
800DEPDIR
801OBJEXT
802EXEEXT
803ac_ct_CC
804CPPFLAGS
805LDFLAGS
806CFLAGS
807CC
808am__untar
809am__tar
810AMTAR
811am__leading_dot
812SET_MAKE
813AWK
814mkdir_p
815MKDIR_P
816INSTALL_STRIP_PROGRAM
817STRIP
818install_sh
819MAKEINFO
820AUTOHEADER
821AUTOMAKE
822AUTOCONF
823ACLOCAL
824VERSION
825PACKAGE
826CYGPATH_W
827am__isrc
828INSTALL_DATA
829INSTALL_SCRIPT
830INSTALL_PROGRAM
831target_alias
832host_alias
833build_alias
834LIBS
835ECHO_T
836ECHO_N
837ECHO_C
838DEFS
839mandir
840localedir
841libdir
842psdir
843pdfdir
844dvidir
845htmldir
846infodir
847docdir
848oldincludedir
849includedir
850localstatedir
851sharedstatedir
852sysconfdir
853datadir
854datarootdir
855libexecdir
856sbindir
857bindir
858program_transform_name
859prefix
860exec_prefix
861PACKAGE_URL
862PACKAGE_BUGREPORT
863PACKAGE_STRING
864PACKAGE_VERSION
865PACKAGE_TARNAME
866PACKAGE_NAME
867PATH_SEPARATOR
868SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000869ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000870ac_user_opts='
871enable_option_checking
872enable_dependency_tracking
873enable_shared
874enable_static
875with_pic
876enable_fast_install
877with_gnu_ld
878enable_libtool_lock
nealsidde545c02010-03-02 00:39:48 +0000879enable_m32
jimblandy92b1f832009-12-23 22:23:49 +0000880enable_selftest
881'
mmentovai8c2a4de2006-09-20 16:20:15 +0000882 ac_precious_vars='build_alias
883host_alias
884target_alias
885CC
886CFLAGS
887LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000888LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000889CPPFLAGS
890CPP
891CXX
892CXXFLAGS
893CCC
jimblandy92b1f832009-12-23 22:23:49 +0000894CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000895
brynercb91a2f2006-08-25 21:14:45 +0000896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000900ac_unrecognized_opts=
901ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000902# The variables have the same names as the options, with
903# dashes changed to underlines.
904cache_file=/dev/null
905exec_prefix=NONE
906no_create=
907no_recursion=
908prefix=NONE
909program_prefix=NONE
910program_suffix=NONE
911program_transform_name=s,x,x,
912silent=
913site=
914srcdir=
915verbose=
916x_includes=NONE
917x_libraries=NONE
918
919# Installation directory options.
920# These are left unexpanded so users can "make install exec_prefix=/foo"
921# and all the variables that are supposed to be based on exec_prefix
922# by default will actually change.
923# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000924# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000925bindir='${exec_prefix}/bin'
926sbindir='${exec_prefix}/sbin'
927libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000928datarootdir='${prefix}/share'
929datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000930sysconfdir='${prefix}/etc'
931sharedstatedir='${prefix}/com'
932localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000933includedir='${prefix}/include'
934oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936infodir='${datarootdir}/info'
937htmldir='${docdir}'
938dvidir='${docdir}'
939pdfdir='${docdir}'
940psdir='${docdir}'
941libdir='${exec_prefix}/lib'
942localedir='${datarootdir}/locale'
943mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000944
945ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000946ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000947for ac_option
948do
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000951 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000952 ac_prev=
953 continue
954 fi
955
mmentovai8c2a4de2006-09-20 16:20:15 +0000956 case $ac_option in
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 *) ac_optarg=yes ;;
959 esac
brynercb91a2f2006-08-25 21:14:45 +0000960
961 # Accept the important Cygnus configure options, so we can diagnose typos.
962
mmentovai8c2a4de2006-09-20 16:20:15 +0000963 case $ac_dashdash$ac_option in
964 --)
965 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000966
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 ac_prev=bindir ;;
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 bindir=$ac_optarg ;;
971
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
976
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
983
984 --config-cache | -C)
985 cache_file=config.cache ;;
986
mmentovai8c2a4de2006-09-20 16:20:15 +0000987 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000988 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000990 datadir=$ac_optarg ;;
991
mmentovai8c2a4de2006-09-20 16:20:15 +0000992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
998
brynercb91a2f2006-08-25 21:14:45 +0000999 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001000 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001001 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001024
1025 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001026 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001027 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034"enable_$ac_useropt"
1035"*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001040
1041 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1042 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1043 | --exec | --exe | --ex)
1044 ac_prev=exec_prefix ;;
1045 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1046 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1047 | --exec=* | --exe=* | --ex=*)
1048 exec_prefix=$ac_optarg ;;
1049
1050 -gas | --gas | --ga | --g)
1051 # Obsolete; use --with-gas.
1052 with_gas=yes ;;
1053
1054 -help | --help | --hel | --he | -h)
1055 ac_init_help=long ;;
1056 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1057 ac_init_help=recursive ;;
1058 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1059 ac_init_help=short ;;
1060
1061 -host | --host | --hos | --ho)
1062 ac_prev=host_alias ;;
1063 -host=* | --host=* | --hos=* | --ho=*)
1064 host_alias=$ac_optarg ;;
1065
mmentovai8c2a4de2006-09-20 16:20:15 +00001066 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 ac_prev=htmldir ;;
1068 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 | --ht=*)
1070 htmldir=$ac_optarg ;;
1071
brynercb91a2f2006-08-25 21:14:45 +00001072 -includedir | --includedir | --includedi | --included | --include \
1073 | --includ | --inclu | --incl | --inc)
1074 ac_prev=includedir ;;
1075 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1076 | --includ=* | --inclu=* | --incl=* | --inc=*)
1077 includedir=$ac_optarg ;;
1078
1079 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 ac_prev=infodir ;;
1081 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1082 infodir=$ac_optarg ;;
1083
1084 -libdir | --libdir | --libdi | --libd)
1085 ac_prev=libdir ;;
1086 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1087 libdir=$ac_optarg ;;
1088
1089 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1090 | --libexe | --libex | --libe)
1091 ac_prev=libexecdir ;;
1092 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1093 | --libexe=* | --libex=* | --libe=*)
1094 libexecdir=$ac_optarg ;;
1095
mmentovai8c2a4de2006-09-20 16:20:15 +00001096 -localedir | --localedir | --localedi | --localed | --locale)
1097 ac_prev=localedir ;;
1098 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1099 localedir=$ac_optarg ;;
1100
brynercb91a2f2006-08-25 21:14:45 +00001101 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001102 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001103 ac_prev=localstatedir ;;
1104 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001105 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001106 localstatedir=$ac_optarg ;;
1107
1108 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 ac_prev=mandir ;;
1110 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1111 mandir=$ac_optarg ;;
1112
1113 -nfp | --nfp | --nf)
1114 # Obsolete; use --without-fp.
1115 with_fp=no ;;
1116
1117 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1118 | --no-cr | --no-c | -n)
1119 no_create=yes ;;
1120
1121 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1122 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 no_recursion=yes ;;
1124
1125 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1126 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1127 | --oldin | --oldi | --old | --ol | --o)
1128 ac_prev=oldincludedir ;;
1129 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1130 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1131 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1132 oldincludedir=$ac_optarg ;;
1133
1134 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 ac_prev=prefix ;;
1136 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1137 prefix=$ac_optarg ;;
1138
1139 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1140 | --program-pre | --program-pr | --program-p)
1141 ac_prev=program_prefix ;;
1142 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1143 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1144 program_prefix=$ac_optarg ;;
1145
1146 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1147 | --program-suf | --program-su | --program-s)
1148 ac_prev=program_suffix ;;
1149 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1150 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1151 program_suffix=$ac_optarg ;;
1152
1153 -program-transform-name | --program-transform-name \
1154 | --program-transform-nam | --program-transform-na \
1155 | --program-transform-n | --program-transform- \
1156 | --program-transform | --program-transfor \
1157 | --program-transfo | --program-transf \
1158 | --program-trans | --program-tran \
1159 | --progr-tra | --program-tr | --program-t)
1160 ac_prev=program_transform_name ;;
1161 -program-transform-name=* | --program-transform-name=* \
1162 | --program-transform-nam=* | --program-transform-na=* \
1163 | --program-transform-n=* | --program-transform-=* \
1164 | --program-transform=* | --program-transfor=* \
1165 | --program-transfo=* | --program-transf=* \
1166 | --program-trans=* | --program-tran=* \
1167 | --progr-tra=* | --program-tr=* | --program-t=*)
1168 program_transform_name=$ac_optarg ;;
1169
mmentovai8c2a4de2006-09-20 16:20:15 +00001170 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 ac_prev=pdfdir ;;
1172 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1173 pdfdir=$ac_optarg ;;
1174
1175 -psdir | --psdir | --psdi | --psd | --ps)
1176 ac_prev=psdir ;;
1177 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 psdir=$ac_optarg ;;
1179
brynercb91a2f2006-08-25 21:14:45 +00001180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1181 | -silent | --silent | --silen | --sile | --sil)
1182 silent=yes ;;
1183
1184 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 ac_prev=sbindir ;;
1186 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 | --sbi=* | --sb=*)
1188 sbindir=$ac_optarg ;;
1189
1190 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192 | --sharedst | --shareds | --shared | --share | --shar \
1193 | --sha | --sh)
1194 ac_prev=sharedstatedir ;;
1195 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 | --sha=* | --sh=*)
1199 sharedstatedir=$ac_optarg ;;
1200
1201 -site | --site | --sit)
1202 ac_prev=site ;;
1203 -site=* | --site=* | --sit=*)
1204 site=$ac_optarg ;;
1205
1206 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 ac_prev=srcdir ;;
1208 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1209 srcdir=$ac_optarg ;;
1210
1211 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212 | --syscon | --sysco | --sysc | --sys | --sy)
1213 ac_prev=sysconfdir ;;
1214 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1216 sysconfdir=$ac_optarg ;;
1217
1218 -target | --target | --targe | --targ | --tar | --ta | --t)
1219 ac_prev=target_alias ;;
1220 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1221 target_alias=$ac_optarg ;;
1222
1223 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 verbose=yes ;;
1225
1226 -version | --version | --versio | --versi | --vers | -V)
1227 ac_init_version=: ;;
1228
1229 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001230 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001231 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001244
1245 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001246 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001247 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1253 *"
1254"with_$ac_useropt"
1255"*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001260
1261 --x)
1262 # Obsolete; use --with-x.
1263 with_x=yes ;;
1264
1265 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266 | --x-incl | --x-inc | --x-in | --x-i)
1267 ac_prev=x_includes ;;
1268 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1270 x_includes=$ac_optarg ;;
1271
1272 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274 ac_prev=x_libraries ;;
1275 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1277 x_libraries=$ac_optarg ;;
1278
jimblandy92b1f832009-12-23 22:23:49 +00001279 -*) as_fn_error "unrecognized option: \`$ac_option'
1280Try \`$0 --help' for more information."
brynercb91a2f2006-08-25 21:14:45 +00001281 ;;
1282
1283 *=*)
1284 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001286 case $ac_envvar in #(
1287 '' | [0-9]* | *[!_$as_cr_alnum]* )
1288 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1289 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001290 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001291 export $ac_envvar ;;
1292
1293 *)
1294 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001295 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001296 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001297 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001298 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 ;;
1300
1301 esac
1302done
1303
1304if test -n "$ac_prev"; then
1305 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
jimblandy92b1f832009-12-23 22:23:49 +00001306 as_fn_error "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001307fi
1308
jimblandy92b1f832009-12-23 22:23:49 +00001309if test -n "$ac_unrecognized_opts"; then
1310 case $enable_option_checking in
1311 no) ;;
1312 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1313 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 esac
1315fi
1316
1317# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001318for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319 datadir sysconfdir sharedstatedir localstatedir includedir \
1320 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001322do
mmentovai8c2a4de2006-09-20 16:20:15 +00001323 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001324 # Remove trailing slashes.
1325 case $ac_val in
1326 */ )
1327 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328 eval $ac_var=\$ac_val;;
1329 esac
1330 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001331 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001332 [\\/$]* | ?:[\\/]* ) continue;;
1333 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001334 esac
jimblandy92b1f832009-12-23 22:23:49 +00001335 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001336done
1337
1338# There might be people who depend on the old broken behavior: `$host'
1339# used to hold the argument of --host etc.
1340# FIXME: To remove some day.
1341build=$build_alias
1342host=$host_alias
1343target=$target_alias
1344
1345# FIXME: To remove some day.
1346if test "x$host_alias" != x; then
1347 if test "x$build_alias" = x; then
1348 cross_compiling=maybe
jimblandy92b1f832009-12-23 22:23:49 +00001349 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
brynercb91a2f2006-08-25 21:14:45 +00001350 If a cross compiler is detected then cross compile mode will be used." >&2
1351 elif test "x$build_alias" != "x$host_alias"; then
1352 cross_compiling=yes
1353 fi
1354fi
1355
1356ac_tool_prefix=
1357test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358
1359test "$silent" = yes && exec 6>/dev/null
1360
1361
mmentovai8c2a4de2006-09-20 16:20:15 +00001362ac_pwd=`pwd` && test -n "$ac_pwd" &&
1363ac_ls_di=`ls -di .` &&
1364ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
jimblandy92b1f832009-12-23 22:23:49 +00001365 as_fn_error "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001366test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
jimblandy92b1f832009-12-23 22:23:49 +00001367 as_fn_error "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001368
1369
brynercb91a2f2006-08-25 21:14:45 +00001370# Find the source files, if location was not specified.
1371if test -z "$srcdir"; then
1372 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001373 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001374 ac_confdir=`$as_dirname -- "$as_myself" ||
1375$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 s//\1/
1382 q
1383 }
1384 /^X\(\/\/\)[^/].*/{
1385 s//\1/
1386 q
1387 }
1388 /^X\(\/\/\)$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\).*/{
1393 s//\1/
1394 q
1395 }
1396 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001397 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001398 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001399 srcdir=..
1400 fi
1401else
1402 ac_srcdir_defaulted=no
1403fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001404if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
jimblandy92b1f832009-12-23 22:23:49 +00001406 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001407fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001408ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409ac_abs_confdir=`(
jimblandy92b1f832009-12-23 22:23:49 +00001410 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001411 pwd)`
1412# When building in place, set srcdir=.
1413if test "$ac_abs_confdir" = "$ac_pwd"; then
1414 srcdir=.
1415fi
1416# Remove unnecessary trailing slashes from srcdir.
1417# Double slashes in file names in object file debugging info
1418# mess up M-x gdb in Emacs.
1419case $srcdir in
1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421esac
1422for ac_var in $ac_precious_vars; do
1423 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_${ac_var}_value=\$${ac_var}
1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427done
brynercb91a2f2006-08-25 21:14:45 +00001428
1429#
1430# Report the --help message.
1431#
1432if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1435 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001436\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001437
1438Usage: $0 [OPTION]... [VAR=VALUE]...
1439
1440To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441VAR=VALUE. See below for descriptions of some of the useful variables.
1442
1443Defaults for the options are specified in brackets.
1444
1445Configuration:
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455
brynercb91a2f2006-08-25 21:14:45 +00001456Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001458 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001460 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001461
1462By default, \`make install' will install all the files in
1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465for instance \`--prefix=\$HOME'.
1466
1467For better control, use the options below.
1468
1469Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001489_ACEOF
1490
1491 cat <<\_ACEOF
1492
1493Program names:
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497
1498System types:
1499 --build=BUILD configure for building on BUILD [guessed]
1500 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501_ACEOF
1502fi
1503
1504if test -n "$ac_init_help"; then
1505 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001506 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001507 esac
1508 cat <<\_ACEOF
1509
1510Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001511 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
nealsidde545c02010-03-02 00:39:48 +00001521 --enable-m32 Compile/build with -m32 (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001522 --enable-selftest Run extra tests with "make check" (may conflict with
1523 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001524
1525Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001528 --with-pic try to use only PIC/non-PIC objects [default=use
1529 both]
jimblandy92b1f832009-12-23 22:23:49 +00001530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001537 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001539 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001540 CPP C preprocessor
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001544
1545Use these variables to override the choices made by `configure' or to help
1546it to find libraries and programs with nonstandard names/locations.
1547
1548Report bugs to <opensource@google.com>.
1549_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001550ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001551fi
1552
1553if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
brynercb91a2f2006-08-25 21:14:45 +00001559 ac_builddir=.
1560
mmentovai8c2a4de2006-09-20 16:20:15 +00001561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
jimblandy92b1f832009-12-23 22:23:49 +00001564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001565 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001576
1577case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001578 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001579 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001583 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001590esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001592
mmentovai8c2a4de2006-09-20 16:20:15 +00001593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001601 else
jimblandy92b1f832009-12-23 22:23:49 +00001602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001605 done
1606fi
1607
mmentovai8c2a4de2006-09-20 16:20:15 +00001608test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001609if $ac_init_version; then
1610 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001611breakpad configure 0.1
jimblandydc4029a2010-02-02 17:39:51 +00001612generated by GNU Autoconf 2.65
brynercb91a2f2006-08-25 21:14:45 +00001613
jimblandy92b1f832009-12-23 22:23:49 +00001614Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001615This configure script is free software; the Free Software Foundation
1616gives unlimited permission to copy, distribute and modify it.
1617_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001618 exit
brynercb91a2f2006-08-25 21:14:45 +00001619fi
jimblandy92b1f832009-12-23 22:23:49 +00001620
1621## ------------------------ ##
1622## Autoconf initialization. ##
1623## ------------------------ ##
1624
1625# ac_fn_c_try_compile LINENO
1626# --------------------------
1627# Try to compile conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_compile ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001659 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001660
1661} # ac_fn_c_try_compile
1662
1663# ac_fn_c_try_cpp LINENO
1664# ----------------------
1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_cpp ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } >/dev/null && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001696 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001697
1698} # ac_fn_c_try_cpp
1699
1700# ac_fn_cxx_try_compile LINENO
1701# ----------------------------
1702# Try to compile conftest.$ac_ext, and return whether this succeeded.
1703ac_fn_cxx_try_compile ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_cxx_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001734 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001735
1736} # ac_fn_cxx_try_compile
1737
1738# ac_fn_c_try_link LINENO
1739# -----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001780 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001781
1782} # ac_fn_c_try_link
1783
1784# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785# -------------------------------------------------------
1786# Tests whether HEADER exists and can be compiled using the include files in
1787# INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799#include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803else
1804 eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812
1813} # ac_fn_c_check_header_compile
1814
1815# ac_fn_c_try_run LINENO
1816# ----------------------
1817# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818# that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001853 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001854
1855} # ac_fn_c_try_run
1856
1857# ac_fn_c_check_func LINENO FUNC VAR
1858# ----------------------------------
1859# Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911else
1912 eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921
1922} # ac_fn_c_check_func
1923
1924# ac_fn_cxx_try_cpp LINENO
1925# ------------------------
1926# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_cpp ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } >/dev/null && {
1946 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950else
1951 $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955fi
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001957 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001958
1959} # ac_fn_cxx_try_cpp
1960
1961# ac_fn_cxx_try_link LINENO
1962# -------------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded.
1964ac_fn_cxx_try_link ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1976 ac_status=$?
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1981 fi
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_cxx_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 $as_test_x conftest$ac_exeext
1989 }; then :
1990 ac_retval=0
1991else
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=1
1996fi
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00002003 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00002004
2005} # ac_fn_cxx_try_link
mmentovai8c2a4de2006-09-20 16:20:15 +00002006cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002007This file contains any messages produced by compilers while
2008running configure, to aid debugging if configure makes a mistake.
2009
mmentovaie5dc6082007-02-14 19:51:05 +00002010It was created by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +00002011generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002012
2013 $ $0 $@
2014
2015_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002016exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002017{
2018cat <<_ASUNAME
2019## --------- ##
2020## Platform. ##
2021## --------- ##
2022
2023hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2024uname -m = `(uname -m) 2>/dev/null || echo unknown`
2025uname -r = `(uname -r) 2>/dev/null || echo unknown`
2026uname -s = `(uname -s) 2>/dev/null || echo unknown`
2027uname -v = `(uname -v) 2>/dev/null || echo unknown`
2028
2029/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2030/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2031
2032/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2033/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2034/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002035/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002036/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2037/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2038/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2039
2040_ASUNAME
2041
2042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043for as_dir in $PATH
2044do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002047 $as_echo "PATH: $as_dir"
2048 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002049IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002050
2051} >&5
2052
2053cat >&5 <<_ACEOF
2054
2055
2056## ----------- ##
2057## Core tests. ##
2058## ----------- ##
2059
2060_ACEOF
2061
2062
2063# Keep a trace of the command line.
2064# Strip out --no-create and --no-recursion so they do not pile up.
2065# Strip out --silent because we don't want to record it for future runs.
2066# Also quote any args containing shell meta-characters.
2067# Make two passes to allow for proper duplicate-argument suppression.
2068ac_configure_args=
2069ac_configure_args0=
2070ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002071ac_must_keep_next=false
2072for ac_pass in 1 2
2073do
2074 for ac_arg
2075 do
2076 case $ac_arg in
2077 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2079 | -silent | --silent | --silen | --sile | --sil)
2080 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002081 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002082 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002083 esac
2084 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002085 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002086 2)
jimblandy92b1f832009-12-23 22:23:49 +00002087 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002088 if test $ac_must_keep_next = true; then
2089 ac_must_keep_next=false # Got value, back to normal.
2090 else
2091 case $ac_arg in
2092 *=* | --config-cache | -C | -disable-* | --disable-* \
2093 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2094 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2095 | -with-* | --with-* | -without-* | --without-* | --x)
2096 case "$ac_configure_args0 " in
2097 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2098 esac
2099 ;;
2100 -* ) ac_must_keep_next=true ;;
2101 esac
2102 fi
jimblandy92b1f832009-12-23 22:23:49 +00002103 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002104 ;;
2105 esac
2106 done
2107done
jimblandy92b1f832009-12-23 22:23:49 +00002108{ ac_configure_args0=; unset ac_configure_args0;}
2109{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002110
2111# When interrupted or exit'd, cleanup temporary files, and complete
2112# config.log. We remove comments because anyway the quotes in there
2113# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002114# WARNING: Use '\'' to represent an apostrophe within the trap.
2115# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002116trap 'exit_status=$?
2117 # Save into config.log some information that might help in debugging.
2118 {
2119 echo
2120
2121 cat <<\_ASBOX
2122## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##
2125_ASBOX
2126 echo
2127 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002128(
2129 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2130 eval ac_val=\$$ac_var
2131 case $ac_val in #(
2132 *${as_nl}*)
2133 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2135$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002136 esac
2137 case $ac_var in #(
2138 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2140 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002141 esac ;;
2142 esac
2143 done
brynercb91a2f2006-08-25 21:14:45 +00002144 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002145 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2146 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002147 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002148 "s/'\''/'\''\\\\'\'''\''/g;
2149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2150 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002151 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002153 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002154 esac |
2155 sort
2156)
brynercb91a2f2006-08-25 21:14:45 +00002157 echo
2158
2159 cat <<\_ASBOX
2160## ----------------- ##
2161## Output variables. ##
2162## ----------------- ##
2163_ASBOX
2164 echo
2165 for ac_var in $ac_subst_vars
2166 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002167 eval ac_val=\$$ac_var
2168 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002169 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002170 esac
jimblandy92b1f832009-12-23 22:23:49 +00002171 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002172 done | sort
2173 echo
2174
2175 if test -n "$ac_subst_files"; then
2176 cat <<\_ASBOX
mmentovai8c2a4de2006-09-20 16:20:15 +00002177## ------------------- ##
2178## File substitutions. ##
2179## ------------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002180_ASBOX
2181 echo
2182 for ac_var in $ac_subst_files
2183 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002184 eval ac_val=\$$ac_var
2185 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002187 esac
jimblandy92b1f832009-12-23 22:23:49 +00002188 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002189 done | sort
2190 echo
2191 fi
2192
2193 if test -s confdefs.h; then
2194 cat <<\_ASBOX
2195## ----------- ##
2196## confdefs.h. ##
2197## ----------- ##
2198_ASBOX
2199 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002200 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002201 echo
2202 fi
2203 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002204 $as_echo "$as_me: caught signal $ac_signal"
2205 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002206 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002207 rm -f core *.core core.conftest.* &&
2208 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002209 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002210' 0
brynercb91a2f2006-08-25 21:14:45 +00002211for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002212 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002213done
2214ac_signal=0
2215
2216# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002217rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002218
jimblandy92b1f832009-12-23 22:23:49 +00002219$as_echo "/* confdefs.h */" > confdefs.h
2220
brynercb91a2f2006-08-25 21:14:45 +00002221# Predefined preprocessor variables.
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_NAME "$PACKAGE_NAME"
2225_ACEOF
2226
brynercb91a2f2006-08-25 21:14:45 +00002227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2229_ACEOF
2230
brynercb91a2f2006-08-25 21:14:45 +00002231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_VERSION "$PACKAGE_VERSION"
2233_ACEOF
2234
brynercb91a2f2006-08-25 21:14:45 +00002235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_STRING "$PACKAGE_STRING"
2237_ACEOF
2238
brynercb91a2f2006-08-25 21:14:45 +00002239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2241_ACEOF
2242
jimblandy92b1f832009-12-23 22:23:49 +00002243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_URL "$PACKAGE_URL"
2245_ACEOF
2246
brynercb91a2f2006-08-25 21:14:45 +00002247
2248# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002249# Prefer an explicitly selected file to automatically selected ones.
2250ac_site_file1=NONE
2251ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002252if test -n "$CONFIG_SITE"; then
jimblandy92b1f832009-12-23 22:23:49 +00002253 ac_site_file1=$CONFIG_SITE
mmentovai8c2a4de2006-09-20 16:20:15 +00002254elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002255 ac_site_file1=$prefix/share/config.site
2256 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002257else
jimblandy92b1f832009-12-23 22:23:49 +00002258 ac_site_file1=$ac_default_prefix/share/config.site
2259 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002260fi
jimblandy92b1f832009-12-23 22:23:49 +00002261for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002262do
jimblandy92b1f832009-12-23 22:23:49 +00002263 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002264 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002265 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002267 sed 's/^/| /' "$ac_site_file" >&5
2268 . "$ac_site_file"
2269 fi
2270done
2271
2272if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002273 # Some versions of bash will fail to source /dev/null (special files
2274 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2275 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2277$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002278 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002279 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2280 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002281 esac
2282 fi
2283else
jimblandy92b1f832009-12-23 22:23:49 +00002284 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2285$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002286 >$cache_file
2287fi
2288
2289# Check that the precious variables saved in the cache have kept the same
2290# value.
2291ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002292for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002293 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2294 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002295 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2296 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002297 case $ac_old_set,$ac_new_set in
2298 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2300$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002301 ac_cache_corrupted=: ;;
2302 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2304$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002305 ac_cache_corrupted=: ;;
2306 ,);;
2307 *)
2308 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002309 # differences in whitespace do not lead to failure.
2310 ac_old_val_w=`echo x $ac_old_val`
2311 ac_new_val_w=`echo x $ac_new_val`
2312 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2314$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2315 ac_cache_corrupted=:
2316 else
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2318$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2319 eval $ac_var=\$ac_old_val
2320 fi
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2322$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2324$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002325 fi;;
2326 esac
2327 # Pass precious variables to config.status.
2328 if test "$ac_new_set" = set; then
2329 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002330 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002331 *) ac_arg=$ac_var=$ac_new_val ;;
2332 esac
2333 case " $ac_configure_args " in
2334 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002335 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002336 esac
2337 fi
2338done
2339if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2343$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002345fi
jimblandy92b1f832009-12-23 22:23:49 +00002346## -------------------- ##
2347## Main body of script. ##
2348## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002349
brynercb91a2f2006-08-25 21:14:45 +00002350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
brynercb91a2f2006-08-25 21:14:45 +00002358ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002359for ac_dir in autotools "$srcdir"/autotools; do
jimblandy92b1f832009-12-23 22:23:49 +00002360 for ac_t in install-sh install.sh shtool; do
2361 if test -f "$ac_dir/$ac_t"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/$ac_t -c"
2364 break 2
2365 fi
2366 done
brynercb91a2f2006-08-25 21:14:45 +00002367done
2368if test -z "$ac_aux_dir"; then
jimblandy92b1f832009-12-23 22:23:49 +00002369 as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002370fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002371
2372# These three variables are undocumented and unsupported,
2373# and are intended to be withdrawn in a future Autoconf release.
2374# They can cause serious problems if a builder's source tree is in a directory
2375# whose full name contains unusual characters.
2376ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2379
brynercb91a2f2006-08-25 21:14:45 +00002380
mmentovai425d2562006-08-30 20:05:05 +00002381
jimblandy92b1f832009-12-23 22:23:49 +00002382am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002383
brynercb91a2f2006-08-25 21:14:45 +00002384# Find a good install program. We prefer a C program (faster),
2385# so one script is as good as another. But avoid the broken or
2386# incompatible versions:
2387# SysV /etc/install, /usr/sbin/install
2388# SunOS /usr/etc/install
2389# IRIX /sbin/install
2390# AIX /bin/install
2391# AmigaOS /C/install, which installs bootblocks on floppy discs
2392# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395# OS/2's system install, which has a completely different semantic
2396# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002397# Reject install programs that cannot install multiple files.
2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002400if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002401if test "${ac_cv_path_install+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002403else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002409 # Account for people who put trailing slashes in PATH elements.
2410case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002414 /usr/ucb/* ) ;;
2415 *)
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002421 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 +00002422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2425 :
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2429 :
2430 else
jimblandy92b1f832009-12-23 22:23:49 +00002431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2442 fi
brynercb91a2f2006-08-25 21:14:45 +00002443 fi
2444 fi
2445 done
2446 done
2447 ;;
2448esac
jimblandy92b1f832009-12-23 22:23:49 +00002449
2450 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002451IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002452
jimblandy92b1f832009-12-23 22:23:49 +00002453rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002454
2455fi
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002461 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002462 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002463 INSTALL=$ac_install_sh
2464 fi
2465fi
jimblandy92b1f832009-12-23 22:23:49 +00002466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002468
2469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470# It thinks the first close brace ends the variable substitution.
2471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2472
2473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2474
2475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2476
jimblandy92b1f832009-12-23 22:23:49 +00002477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002479# Just in case
2480sleep 1
2481echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002482# Reject unsafe characters in $srcdir or the absolute working directory
2483# name. Accept space and tab only in the latter.
2484am_lf='
2485'
2486case `pwd` in
2487 *[\\\"\#\$\&\'\`$am_lf]*)
2488 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2489esac
2490case $srcdir in
2491 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2492 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2493esac
2494
brynercb91a2f2006-08-25 21:14:45 +00002495# Do `set' in a subshell so we don't clobber the current shell's
2496# arguments. Must try -L first in case configure is actually a
2497# symlink; some systems play weird games with the mod time of symlinks
2498# (eg FreeBSD returns the mod time of the symlink's containing
2499# directory).
2500if (
jimblandy92b1f832009-12-23 22:23:49 +00002501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002502 if test "$*" = "X"; then
2503 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002504 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002505 fi
2506 rm -f conftest.file
2507 if test "$*" != "X $srcdir/configure conftest.file" \
2508 && test "$*" != "X conftest.file $srcdir/configure"; then
2509
2510 # If neither matched, then we have a broken ls. This can happen
2511 # if, for instance, CONFIG_SHELL is bash and it inherits a
2512 # broken ls alias from the environment. This has actually
2513 # happened. Such a system could not be considered "sane".
jimblandy92b1f832009-12-23 22:23:49 +00002514 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2515alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002516 fi
2517
2518 test "$2" = conftest.file
2519 )
2520then
2521 # Ok.
2522 :
2523else
jimblandy92b1f832009-12-23 22:23:49 +00002524 as_fn_error "newly created file is older than distributed files!
2525Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002526fi
jimblandy92b1f832009-12-23 22:23:49 +00002527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2528$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002529test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002531# Use a double $ so make ignores it.
2532test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002534# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002535# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002536ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2537program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002538
2539# expand $ac_aux_dir to an absolute path
2540am_aux_dir=`cd $ac_aux_dir && pwd`
2541
jimblandy92b1f832009-12-23 22:23:49 +00002542if test x"${MISSING+set}" != xset; then
2543 case $am_aux_dir in
2544 *\ * | *\ *)
2545 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2546 *)
2547 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2548 esac
2549fi
brynercb91a2f2006-08-25 21:14:45 +00002550# Use eval to expand $SHELL
2551if eval "$MISSING --run true"; then
2552 am_missing_run="$MISSING --run "
2553else
2554 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2556$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002557fi
2558
jimblandy92b1f832009-12-23 22:23:49 +00002559if test x"${install_sh}" != xset; then
2560 case $am_aux_dir in
2561 *\ * | *\ *)
2562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2563 *)
2564 install_sh="\${SHELL} $am_aux_dir/install-sh"
2565 esac
2566fi
2567
2568# Installed binaries are usually stripped using `strip' when the user
2569# run `make install-strip'. However `strip' might not be the right
2570# tool to use in cross-compilation environments, therefore Automake
2571# will honor the `STRIP' environment variable to overrule this program.
2572if test "$cross_compiling" != no; then
2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2575set dummy ${ac_tool_prefix}strip; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if test "${ac_cv_prog_STRIP+set}" = set; then :
2579 $as_echo_n "(cached) " >&6
2580else
2581 if test -n "$STRIP"; then
2582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596 done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601STRIP=$ac_cv_prog_STRIP
2602if test -n "$STRIP"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2604$as_echo "$STRIP" >&6; }
2605else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610
2611fi
2612if test -z "$ac_cv_prog_STRIP"; then
2613 ac_ct_STRIP=$STRIP
2614 # Extract the first word of "strip", so it can be a program name with args.
2615set dummy strip; ac_word=$2
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
2620else
2621 if test -n "$ac_ct_STRIP"; then
2622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_ac_ct_STRIP="strip"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635done
2636 done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2642if test -n "$ac_ct_STRIP"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2644$as_echo "$ac_ct_STRIP" >&6; }
2645else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650 if test "x$ac_ct_STRIP" = x; then
2651 STRIP=":"
2652 else
2653 case $cross_compiling:$ac_tool_warned in
2654yes:)
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2657ac_tool_warned=yes ;;
2658esac
2659 STRIP=$ac_ct_STRIP
2660 fi
2661else
2662 STRIP="$ac_cv_prog_STRIP"
2663fi
2664
2665fi
2666INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2669$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002670if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002671 if test "${ac_cv_path_mkdir+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002673else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002679 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2682 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2683 'mkdir (GNU coreutils) '* | \
2684 'mkdir (coreutils) '* | \
2685 'mkdir (fileutils) '4.1*)
2686 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2687 break 3;;
2688 esac
2689 done
2690 done
jimblandy92b1f832009-12-23 22:23:49 +00002691 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002692IFS=$as_save_IFS
2693
2694fi
2695
jimblandydc4029a2010-02-02 17:39:51 +00002696 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002697 if test "${ac_cv_path_mkdir+set}" = set; then
2698 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002699 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002700 # As a last resort, use the slow shell script. Don't cache a
2701 # value for MKDIR_P within a source directory, because that will
2702 # break other packages using the cache if that directory is
2703 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002704 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002705 fi
2706fi
jimblandy92b1f832009-12-23 22:23:49 +00002707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2708$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002709
2710mkdir_p="$MKDIR_P"
2711case $mkdir_p in
2712 [\\/$]* | ?:[\\/]*) ;;
2713 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2714esac
brynercb91a2f2006-08-25 21:14:45 +00002715
2716for ac_prog in gawk mawk nawk awk
2717do
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
2722if test "${ac_cv_prog_AWK+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002724else
2725 if test -n "$AWK"; then
2726 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002733 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002734 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 +00002735 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002737 break 2
2738 fi
2739done
jimblandy92b1f832009-12-23 22:23:49 +00002740 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002741IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002742
2743fi
2744fi
2745AWK=$ac_cv_prog_AWK
2746if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2748$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002749else
jimblandy92b1f832009-12-23 22:23:49 +00002750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002752fi
2753
mmentovai8c2a4de2006-09-20 16:20:15 +00002754
brynercb91a2f2006-08-25 21:14:45 +00002755 test -n "$AWK" && break
2756done
2757
jimblandy92b1f832009-12-23 22:23:49 +00002758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2759$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760set x ${MAKE-make}
2761ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2762if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2763 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002764else
2765 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002766SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002767all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002768 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002769_ACEOF
2770# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002771case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 *@@@%%%=?*=@@@%%%*)
2773 eval ac_cv_prog_make_${ac_make}_set=yes;;
2774 *)
2775 eval ac_cv_prog_make_${ac_make}_set=no;;
2776esac
brynercb91a2f2006-08-25 21:14:45 +00002777rm -f conftest.make
2778fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002779if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002782 SET_MAKE=
2783else
jimblandy92b1f832009-12-23 22:23:49 +00002784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002786 SET_MAKE="MAKE=${MAKE-make}"
2787fi
2788
2789rm -rf .tst 2>/dev/null
2790mkdir .tst 2>/dev/null
2791if test -d .tst; then
2792 am__leading_dot=.
2793else
2794 am__leading_dot=_
2795fi
2796rmdir .tst 2>/dev/null
2797
mmentovaiaf3c43f2007-05-17 18:34:37 +00002798if test "`cd $srcdir && pwd`" != "`pwd`"; then
2799 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2800 # is not polluted with repeated "-I."
2801 am__isrc=' -I$(srcdir)'
2802 # test to see if srcdir already configured
2803 if test -f $srcdir/config.status; then
jimblandy92b1f832009-12-23 22:23:49 +00002804 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002805 fi
brynercb91a2f2006-08-25 21:14:45 +00002806fi
2807
2808# test whether we have cygpath
2809if test -z "$CYGPATH_W"; then
2810 if (cygpath --version) >/dev/null 2>/dev/null; then
2811 CYGPATH_W='cygpath -w'
2812 else
2813 CYGPATH_W=echo
2814 fi
2815fi
2816
2817
2818# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002819 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002820 VERSION='0.1'
2821
2822
2823cat >>confdefs.h <<_ACEOF
2824#define PACKAGE "$PACKAGE"
2825_ACEOF
2826
2827
2828cat >>confdefs.h <<_ACEOF
2829#define VERSION "$VERSION"
2830_ACEOF
2831
2832# Some tools Automake needs.
2833
2834ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2835
2836
2837AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2838
2839
2840AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2841
2842
2843AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2844
2845
2846MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2847
brynercb91a2f2006-08-25 21:14:45 +00002848# We need awk for the "check" target. The system "awk" is bad on
2849# some platforms.
2850# Always define AMTAR for backward compatibility.
2851
2852AMTAR=${AMTAR-"${am_missing_run}tar"}
2853
mmentovaidb3342a2006-12-05 22:52:28 +00002854
jimblandy92b1f832009-12-23 22:23:49 +00002855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2856$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002857# Loop over all known methods to create a tar archive until one works.
2858_am_tools='gnutar plaintar pax cpio none'
2859_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2860# Do not fold the above two line into one, because Tru64 sh and
2861# Solaris sh will not grok spaces in the rhs of `-'.
2862for _am_tool in $_am_tools
2863do
2864 case $_am_tool in
2865 gnutar)
2866 for _am_tar in tar gnutar gtar;
2867 do
2868 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2869 ($_am_tar --version) >&5 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } && break
2873 done
2874 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2875 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2876 am__untar="$_am_tar -xf -"
2877 ;;
2878 plaintar)
2879 # Must skip GNU tar: if it does not support --format= it doesn't create
2880 # ustar tarball either.
2881 (tar --version) >/dev/null 2>&1 && continue
2882 am__tar='tar chf - "$$tardir"'
2883 am__tar_='tar chf - "$tardir"'
2884 am__untar='tar xf -'
2885 ;;
2886 pax)
2887 am__tar='pax -L -x ustar -w "$$tardir"'
2888 am__tar_='pax -L -x ustar -w "$tardir"'
2889 am__untar='pax -r'
2890 ;;
2891 cpio)
2892 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2893 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2894 am__untar='cpio -i -H ustar -d'
2895 ;;
2896 none)
2897 am__tar=false
2898 am__tar_=false
2899 am__untar=false
2900 ;;
2901 esac
2902
2903 # If the value was cached, stop now. We just wanted to have am__tar
2904 # and am__untar set.
2905 test -n "${am_cv_prog_tar_ustar}" && break
2906
2907 # tar/untar a dummy directory, and stop if the command works
2908 rm -rf conftest.dir
2909 mkdir conftest.dir
2910 echo GrepMe > conftest.dir/file
2911 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2912 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 rm -rf conftest.dir
2917 if test -s conftest.tar; then
2918 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2919 ($am__untar <conftest.tar) >&5 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2924 fi
2925done
2926rm -rf conftest.dir
2927
jimblandy92b1f832009-12-23 22:23:49 +00002928if test "${am_cv_prog_tar_ustar+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00002930else
2931 am_cv_prog_tar_ustar=$_am_tool
2932fi
2933
jimblandy92b1f832009-12-23 22:23:49 +00002934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2935$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002936
2937
2938
2939
2940
mmentovai8c2a4de2006-09-20 16:20:15 +00002941ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00002942
2943
brynercb91a2f2006-08-25 21:14:45 +00002944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2951set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953$as_echo_n "checking for $ac_word... " >&6; }
2954if test "${ac_cv_prog_CC+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002956else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002965 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002966 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 +00002967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00002968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002969 break 2
2970 fi
2971done
jimblandy92b1f832009-12-23 22:23:49 +00002972 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002973IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002974
2975fi
2976fi
2977CC=$ac_cv_prog_CC
2978if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00002979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002981else
jimblandy92b1f832009-12-23 22:23:49 +00002982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002984fi
2985
mmentovai8c2a4de2006-09-20 16:20:15 +00002986
brynercb91a2f2006-08-25 21:14:45 +00002987fi
2988if test -z "$ac_cv_prog_CC"; then
2989 ac_ct_CC=$CC
2990 # Extract the first word of "gcc", so it can be a program name with args.
2991set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002996else
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2999else
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003005 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003006 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 +00003007 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003009 break 2
3010 fi
3011done
jimblandy92b1f832009-12-23 22:23:49 +00003012 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003013IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003014
3015fi
3016fi
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003021else
jimblandy92b1f832009-12-23 22:23:49 +00003022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003024fi
3025
mmentovai8c2a4de2006-09-20 16:20:15 +00003026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003033ac_tool_warned=yes ;;
3034esac
3035 CC=$ac_ct_CC
3036 fi
brynercb91a2f2006-08-25 21:14:45 +00003037else
3038 CC="$ac_cv_prog_CC"
3039fi
3040
3041if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003044set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if test "${ac_cv_prog_CC+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003049else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052else
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003058 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003059 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 +00003060 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003062 break 2
3063 fi
3064done
jimblandy92b1f832009-12-23 22:23:49 +00003065 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003066IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003067
3068fi
3069fi
3070CC=$ac_cv_prog_CC
3071if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003074else
jimblandy92b1f832009-12-23 22:23:49 +00003075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003077fi
3078
mmentovai8c2a4de2006-09-20 16:20:15 +00003079
brynercb91a2f2006-08-25 21:14:45 +00003080 fi
brynercb91a2f2006-08-25 21:14:45 +00003081fi
3082if test -z "$CC"; then
3083 # Extract the first word of "cc", so it can be a program name with args.
3084set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if test "${ac_cv_prog_CC+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003089else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093 ac_prog_rejected=no
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003099 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003100 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 +00003101 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3102 ac_prog_rejected=yes
3103 continue
3104 fi
3105 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003107 break 2
3108 fi
3109done
jimblandy92b1f832009-12-23 22:23:49 +00003110 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003111IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003112
3113if test $ac_prog_rejected = yes; then
3114 # We found a bogon in the path, so make sure we never use it.
3115 set dummy $ac_cv_prog_CC
3116 shift
3117 if test $# != 0; then
3118 # We chose a different compiler from the bogus one.
3119 # However, it has the same basename, so the bogon will be chosen
3120 # first if we set CC to just the basename; use the full file name.
3121 shift
3122 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3123 fi
3124fi
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003131else
jimblandy92b1f832009-12-23 22:23:49 +00003132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003134fi
3135
mmentovai8c2a4de2006-09-20 16:20:15 +00003136
brynercb91a2f2006-08-25 21:14:45 +00003137fi
3138if test -z "$CC"; then
3139 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003140 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003141 do
3142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003148else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003157 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003158 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 +00003159 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003161 break 2
3162 fi
3163done
jimblandy92b1f832009-12-23 22:23:49 +00003164 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003165IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003166
3167fi
3168fi
3169CC=$ac_cv_prog_CC
3170if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003173else
jimblandy92b1f832009-12-23 22:23:49 +00003174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003176fi
3177
mmentovai8c2a4de2006-09-20 16:20:15 +00003178
brynercb91a2f2006-08-25 21:14:45 +00003179 test -n "$CC" && break
3180 done
3181fi
3182if test -z "$CC"; then
3183 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003184 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003185do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003192else
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003201 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003202 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 +00003203 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003205 break 2
3206 fi
3207done
jimblandy92b1f832009-12-23 22:23:49 +00003208 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003209IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003210
3211fi
3212fi
3213ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003217else
jimblandy92b1f832009-12-23 22:23:49 +00003218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003220fi
3221
mmentovai8c2a4de2006-09-20 16:20:15 +00003222
brynercb91a2f2006-08-25 21:14:45 +00003223 test -n "$ac_ct_CC" && break
3224done
3225
mmentovai8c2a4de2006-09-20 16:20:15 +00003226 if test "x$ac_ct_CC" = x; then
3227 CC=""
3228 else
3229 case $cross_compiling:$ac_tool_warned in
3230yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003233ac_tool_warned=yes ;;
3234esac
3235 CC=$ac_ct_CC
3236 fi
brynercb91a2f2006-08-25 21:14:45 +00003237fi
3238
3239fi
3240
3241
jimblandy92b1f832009-12-23 22:23:49 +00003242test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244as_fn_error "no acceptable C compiler found in \$PATH
3245See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003246
3247# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3249set X $ac_compile
3250ac_compiler=$2
3251for ac_option in --version -v -V -qversion; do
3252 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
jimblandy92b1f832009-12-23 22:23:49 +00003257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003260 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003261 if test -s conftest.err; then
3262 sed '10a\
3263... rest of stderr output deleted ...
3264 10q' conftest.err >conftest.er1
3265 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003266 fi
jimblandydc4029a2010-02-02 17:39:51 +00003267 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270done
brynercb91a2f2006-08-25 21:14:45 +00003271
jimblandy92b1f832009-12-23 22:23:49 +00003272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003273/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003274
brynercb91a2f2006-08-25 21:14:45 +00003275int
3276main ()
3277{
3278
3279 ;
3280 return 0;
3281}
3282_ACEOF
3283ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003284ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003285# Try to create an executable without -o first, disregard a.out.
3286# It will help us diagnose broken compilers, and finding out an intuition
3287# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3289$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003290ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3291
3292# The possible output files:
3293ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3294
mmentovai8c2a4de2006-09-20 16:20:15 +00003295ac_rmfiles=
3296for ac_file in $ac_files
3297do
3298 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3301 esac
3302done
3303rm -f $ac_rmfiles
3304
jimblandy92b1f832009-12-23 22:23:49 +00003305if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
jimblandy92b1f832009-12-23 22:23:49 +00003310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003312 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003313 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3317# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3318# in a Makefile. We should not override ac_cv_exeext if it was cached,
3319# so that the user can short-circuit this test for compilers unknown to
3320# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003321for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003322do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003326 ;;
3327 [ab].out )
3328 # We found the default executable, but exeext='' is most
3329 # certainly right.
3330 break;;
3331 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003333 then :; else
3334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 fi
3336 # We set ac_cv_exeext here because the later test for it is not
3337 # safe: cross compilers may not add the suffix if given an `-o'
3338 # argument, so we may need to know it at that point already.
3339 # Even if this section looks crufty: it has the advantage of
3340 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003341 break;;
3342 * )
3343 break;;
3344 esac
3345done
mmentovai8c2a4de2006-09-20 16:20:15 +00003346test "$ac_cv_exeext" = no && ac_cv_exeext=
3347
brynercb91a2f2006-08-25 21:14:45 +00003348else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003349 ac_file=''
3350fi
jimblandy92b1f832009-12-23 22:23:49 +00003351if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003355sed 's/^/| /' conftest.$ac_ext >&5
3356
jimblandy92b1f832009-12-23 22:23:49 +00003357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359{ as_fn_set_status 77
3360as_fn_error "C compiler cannot create executables
3361See \`config.log' for more details." "$LINENO" 5; }; }
jimblandydc4029a2010-02-02 17:39:51 +00003362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003365fi
jimblandydc4029a2010-02-02 17:39:51 +00003366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3367$as_echo_n "checking for C compiler default output file name... " >&6; }
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003370ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003371
jimblandydc4029a2010-02-02 17:39:51 +00003372rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003373ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3375$as_echo_n "checking for suffix of executables... " >&6; }
3376if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380esac
jimblandy92b1f832009-12-23 22:23:49 +00003381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003383 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003384 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003387 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3388# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3389# work properly (i.e., refer to `conftest.exe'), while it won't with
3390# `rm'.
3391for ac_file in conftest.exe conftest conftest.*; do
3392 test -f "$ac_file" || continue
3393 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003396 break;;
3397 * ) break;;
3398 esac
3399done
3400else
jimblandy92b1f832009-12-23 22:23:49 +00003401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error "cannot compute suffix of executables: cannot compile and link
3404See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003405fi
jimblandydc4029a2010-02-02 17:39:51 +00003406rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3408$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003409
3410rm -f conftest.$ac_ext
3411EXEEXT=$ac_cv_exeext
3412ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414/* end confdefs.h. */
3415#include <stdio.h>
3416int
3417main ()
3418{
3419FILE *f = fopen ("conftest.out", "w");
3420 return ferror (f) || fclose (f) != 0;
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426ac_clean_files="$ac_clean_files conftest.out"
3427# Check that the compiler produces executables we can run. If not, either
3428# the compiler is broken, or we cross compile.
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3430$as_echo_n "checking whether we are cross compiling... " >&6; }
3431if test "$cross_compiling" != yes; then
3432 { { ac_try="$ac_link"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 if { ac_try='./conftest$ac_cv_exeext'
3444 { { case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_try") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; }; then
3454 cross_compiling=no
3455 else
3456 if test "$cross_compiling" = maybe; then
3457 cross_compiling=yes
3458 else
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error "cannot run C compiled programs.
3462If you meant to cross compile, use \`--host'.
3463See \`config.log' for more details." "$LINENO" 5; }
3464 fi
3465 fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468$as_echo "$cross_compiling" >&6; }
3469
3470rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3471ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3473$as_echo_n "checking for suffix of object files... " >&6; }
3474if test "${ac_cv_objext+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003476else
jimblandy92b1f832009-12-23 22:23:49 +00003477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003478/* end confdefs.h. */
3479
3480int
3481main ()
3482{
3483
3484 ;
3485 return 0;
3486}
3487_ACEOF
3488rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003489if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
jimblandy92b1f832009-12-23 22:23:49 +00003494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003496 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003497 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003502 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507done
3508else
jimblandy92b1f832009-12-23 22:23:49 +00003509 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003510sed 's/^/| /' conftest.$ac_ext >&5
3511
jimblandy92b1f832009-12-23 22:23:49 +00003512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error "cannot compute suffix of object files: cannot compile
3515See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003516fi
brynercb91a2f2006-08-25 21:14:45 +00003517rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518fi
jimblandy92b1f832009-12-23 22:23:49 +00003519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3520$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003521OBJEXT=$ac_cv_objext
3522ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003527else
jimblandy92b1f832009-12-23 22:23:49 +00003528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003529/* end confdefs.h. */
3530
3531int
3532main ()
3533{
3534#ifndef __GNUC__
3535 choke me
3536#endif
3537
3538 ;
3539 return 0;
3540}
3541_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003542if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003543 ac_compiler_gnu=yes
3544else
jimblandy92b1f832009-12-23 22:23:49 +00003545 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003546fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003548ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549
3550fi
jimblandy92b1f832009-12-23 22:23:49 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553if test $ac_compiler_gnu = yes; then
3554 GCC=yes
3555else
3556 GCC=
3557fi
brynercb91a2f2006-08-25 21:14:45 +00003558ac_test_CFLAGS=${CFLAGS+set}
3559ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561$as_echo_n "checking whether $CC accepts -g... " >&6; }
3562if test "${ac_cv_prog_cc_g+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003564else
mmentovai8c2a4de2006-09-20 16:20:15 +00003565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003570/* end confdefs.h. */
3571
3572int
3573main ()
3574{
3575
3576 ;
3577 return 0;
3578}
3579_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003580if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003581 ac_cv_prog_cc_g=yes
3582else
jimblandy92b1f832009-12-23 22:23:49 +00003583 CFLAGS=""
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003585/* end confdefs.h. */
3586
3587int
3588main ()
3589{
3590
3591 ;
3592 return 0;
3593}
3594_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003595if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003596
jimblandy92b1f832009-12-23 22:23:49 +00003597else
3598 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003599 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003601/* end confdefs.h. */
3602
3603int
3604main ()
3605{
3606
3607 ;
3608 return 0;
3609}
3610_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003611if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003612 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003613fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003615fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3620fi
jimblandy92b1f832009-12-23 22:23:49 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003623if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS=$ac_save_CFLAGS
3625elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3630 fi
3631else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3636 fi
3637fi
jimblandy92b1f832009-12-23 22:23:49 +00003638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640if test "${ac_cv_prog_cc_c89+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003642else
mmentovai8c2a4de2006-09-20 16:20:15 +00003643 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003644ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003646/* end confdefs.h. */
3647#include <stdarg.h>
3648#include <stdio.h>
3649#include <sys/types.h>
3650#include <sys/stat.h>
3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652struct buf { int x; };
3653FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654static char *e (p, i)
3655 char **p;
3656 int i;
3657{
3658 return p[i];
3659}
3660static char *f (char * (*g) (char **, int), char **p, ...)
3661{
3662 char *s;
3663 va_list v;
3664 va_start (v,p);
3665 s = g (p, va_arg (v,int));
3666 va_end (v);
3667 return s;
3668}
3669
3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003673 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003676 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678
mmentovai8c2a4de2006-09-20 16:20:15 +00003679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3681#define FOO(x) 'x'
3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683
brynercb91a2f2006-08-25 21:14:45 +00003684int test (int i, double x);
3685struct s1 {int (*f) (int a);};
3686struct s2 {int (*f) (double a);};
3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688int argc;
3689char **argv;
3690int
3691main ()
3692{
3693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3694 ;
3695 return 0;
3696}
3697_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003700do
3701 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003702 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003703 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003704fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003705rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003707done
mmentovai8c2a4de2006-09-20 16:20:15 +00003708rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003709CC=$ac_save_CC
3710
3711fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003712# AC_CACHE_VAL
3713case "x$ac_cv_prog_cc_c89" in
3714 x)
jimblandy92b1f832009-12-23 22:23:49 +00003715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003717 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003720 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003721 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003724esac
jimblandy92b1f832009-12-23 22:23:49 +00003725if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003726
jimblandy92b1f832009-12-23 22:23:49 +00003727fi
brynercb91a2f2006-08-25 21:14:45 +00003728
brynercb91a2f2006-08-25 21:14:45 +00003729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734DEPDIR="${am__leading_dot}deps"
3735
mmentovai8c2a4de2006-09-20 16:20:15 +00003736ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003737
3738
3739am_make=${MAKE-make}
3740cat > confinc << 'END'
3741am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003742 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003743.PHONY: am__doit
3744END
3745# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3747$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003748am__include="#"
3749am__quote=
3750_am_result=none
3751# First try GNU make style include.
3752echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003753# Ignore all kinds of additional output from `make'.
3754case `$am_make -s -f confmf 2> /dev/null` in #(
3755*the\ am__doit\ target*)
3756 am__include=include
3757 am__quote=
3758 _am_result=GNU
3759 ;;
3760esac
brynercb91a2f2006-08-25 21:14:45 +00003761# Now try BSD make style include.
3762if test "$am__include" = "#"; then
3763 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003764 case `$am_make -s -f confmf 2> /dev/null` in #(
3765 *the\ am__doit\ target*)
3766 am__include=.include
3767 am__quote="\""
3768 _am_result=BSD
3769 ;;
3770 esac
brynercb91a2f2006-08-25 21:14:45 +00003771fi
3772
3773
jimblandy92b1f832009-12-23 22:23:49 +00003774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3775$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003776rm -f confinc confmf
3777
mmentovai8c2a4de2006-09-20 16:20:15 +00003778# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003779if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003780 enableval=$enable_dependency_tracking;
3781fi
brynercb91a2f2006-08-25 21:14:45 +00003782
brynercb91a2f2006-08-25 21:14:45 +00003783if test "x$enable_dependency_tracking" != xno; then
3784 am_depcomp="$ac_aux_dir/depcomp"
3785 AMDEPBACKSLASH='\'
3786fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003787 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003788 AMDEP_TRUE=
3789 AMDEP_FALSE='#'
3790else
3791 AMDEP_TRUE='#'
3792 AMDEP_FALSE=
3793fi
3794
3795
3796
brynercb91a2f2006-08-25 21:14:45 +00003797depcc="$CC" am_compiler_list=
3798
jimblandy92b1f832009-12-23 22:23:49 +00003799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3800$as_echo_n "checking dependency style of $depcc... " >&6; }
3801if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003803else
3804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805 # We make a subdir and do the tests there. Otherwise we can end up
3806 # making bogus files that we don't know about and never remove. For
3807 # instance it was reported that on HP-UX the gcc test will end up
3808 # making a dummy file named `D' -- because `-MD' means `put the output
3809 # in D'.
3810 mkdir conftest.dir
3811 # Copy depcomp to subdir because otherwise we won't find it if we're
3812 # using a relative directory.
3813 cp "$am_depcomp" conftest.dir
3814 cd conftest.dir
3815 # We will build objects and dependencies in a subdirectory because
3816 # it helps to detect inapplicable dependency modes. For instance
3817 # both Tru64's cc and ICC support -MD to output dependencies as a
3818 # side effect of compilation, but ICC will put the dependencies in
3819 # the current directory while Tru64 will put them in the object
3820 # directory.
3821 mkdir sub
3822
3823 am_cv_CC_dependencies_compiler_type=none
3824 if test "$am_compiler_list" = ""; then
3825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3826 fi
jimblandy92b1f832009-12-23 22:23:49 +00003827 am__universal=false
3828 case " $depcc " in #(
3829 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3830 esac
3831
brynercb91a2f2006-08-25 21:14:45 +00003832 for depmode in $am_compiler_list; do
3833 # Setup a source with many dependencies, because some compilers
3834 # like to wrap large dependency lists on column 80 (with \), and
3835 # we should not choose a depcomp mode which is confused by this.
3836 #
3837 # We need to recreate these files for each test, as the compiler may
3838 # overwrite some of them when testing with obscure command lines.
3839 # This happens at least with the AIX C compiler.
3840 : > sub/conftest.c
3841 for i in 1 2 3 4 5 6; do
3842 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3843 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3844 # Solaris 8's {/usr,}/bin/sh.
3845 touch sub/conftst$i.h
3846 done
3847 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3848
jimblandy92b1f832009-12-23 22:23:49 +00003849 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3850 # mode. It turns out that the SunPro C++ compiler does not properly
3851 # handle `-M -o', and we need to detect this. Also, some Intel
3852 # versions had trouble with output in subdirs
3853 am__obj=sub/conftest.${OBJEXT-o}
3854 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003855 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003856 gcc)
3857 # This depmode causes a compiler race in universal mode.
3858 test "$am__universal" = false || continue
3859 ;;
brynercb91a2f2006-08-25 21:14:45 +00003860 nosideeffect)
3861 # after this tag, mechanisms are not by side-effect, so they'll
3862 # only be used when explicitly requested
3863 if test "x$enable_dependency_tracking" = xyes; then
3864 continue
3865 else
3866 break
3867 fi
3868 ;;
jimblandy92b1f832009-12-23 22:23:49 +00003869 msvisualcpp | msvcmsys)
3870 # This compiler won't grok `-c -o', but also, the minuso test has
3871 # not run yet. These depmodes are late enough in the game, and
3872 # so weak that their functioning should not be impacted.
3873 am__obj=conftest.${OBJEXT-o}
3874 am__minus_obj=
3875 ;;
brynercb91a2f2006-08-25 21:14:45 +00003876 none) break ;;
3877 esac
brynercb91a2f2006-08-25 21:14:45 +00003878 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00003879 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00003880 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00003881 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00003882 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00003883 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00003885 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00003886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887 # icc doesn't choke on unknown options, it will just issue warnings
3888 # or remarks (even with -Werror). So we grep stderr for any message
3889 # that says an option was ignored or not supported.
3890 # When given -MP, icc 7.0 and 7.1 complain thusly:
3891 # icc: Command line warning: ignoring option '-M'; no argument required
3892 # The diagnosis changed in icc 8.0:
3893 # icc: Command line remark: option '-MP' not supported
3894 if (grep 'ignoring option' conftest.err ||
3895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896 am_cv_CC_dependencies_compiler_type=$depmode
3897 break
3898 fi
3899 fi
3900 done
3901
3902 cd ..
3903 rm -rf conftest.dir
3904else
3905 am_cv_CC_dependencies_compiler_type=none
3906fi
3907
3908fi
jimblandy92b1f832009-12-23 22:23:49 +00003909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3910$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003911CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3912
mmentovaiaf3c43f2007-05-17 18:34:37 +00003913 if
brynercb91a2f2006-08-25 21:14:45 +00003914 test "x$enable_dependency_tracking" != xno \
3915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3916 am__fastdepCC_TRUE=
3917 am__fastdepCC_FALSE='#'
3918else
3919 am__fastdepCC_TRUE='#'
3920 am__fastdepCC_FALSE=
3921fi
3922
3923
3924ac_ext=c
3925ac_cpp='$CPP $CPPFLAGS'
3926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00003929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3930$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003931# On Suns, sometimes $CPP names a directory.
3932if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3934fi
3935if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00003936 if test "${ac_cv_prog_CPP+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003938else
3939 # Double quotes because CPP needs to be expanded
3940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3941 do
3942 ac_preproc_ok=false
3943for ac_c_preproc_warn_flag in '' yes
3944do
3945 # Use a header file that comes with gcc, so configuring glibc
3946 # with a fresh cross-compiler works.
3947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3948 # <limits.h> exists even on freestanding compilers.
3949 # On the NeXT, cc -E runs the code through the compiler's parser,
3950 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00003951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003952/* end confdefs.h. */
3953#ifdef __STDC__
3954# include <limits.h>
3955#else
3956# include <assert.h>
3957#endif
3958 Syntax error
3959_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003960if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003961
jimblandy92b1f832009-12-23 22:23:49 +00003962else
brynercb91a2f2006-08-25 21:14:45 +00003963 # Broken: fails on valid input.
3964continue
3965fi
3966rm -f conftest.err conftest.$ac_ext
3967
mmentovai8c2a4de2006-09-20 16:20:15 +00003968 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00003969 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00003970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003971/* end confdefs.h. */
3972#include <ac_nonexistent.h>
3973_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003974if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003975 # Broken: success on invalid input.
3976continue
3977else
brynercb91a2f2006-08-25 21:14:45 +00003978 # Passes both tests.
3979ac_preproc_ok=:
3980break
3981fi
3982rm -f conftest.err conftest.$ac_ext
3983
3984done
3985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00003987if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00003988 break
3989fi
3990
3991 done
3992 ac_cv_prog_CPP=$CPP
3993
3994fi
3995 CPP=$ac_cv_prog_CPP
3996else
3997 ac_cv_prog_CPP=$CPP
3998fi
jimblandy92b1f832009-12-23 22:23:49 +00003999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4000$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004001ac_preproc_ok=false
4002for ac_c_preproc_warn_flag in '' yes
4003do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004011/* end confdefs.h. */
4012#ifdef __STDC__
4013# include <limits.h>
4014#else
4015# include <assert.h>
4016#endif
4017 Syntax error
4018_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004019if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004020
jimblandy92b1f832009-12-23 22:23:49 +00004021else
brynercb91a2f2006-08-25 21:14:45 +00004022 # Broken: fails on valid input.
4023continue
4024fi
4025rm -f conftest.err conftest.$ac_ext
4026
mmentovai8c2a4de2006-09-20 16:20:15 +00004027 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004028 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004030/* end confdefs.h. */
4031#include <ac_nonexistent.h>
4032_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004033if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004034 # Broken: success on invalid input.
4035continue
4036else
brynercb91a2f2006-08-25 21:14:45 +00004037 # Passes both tests.
4038ac_preproc_ok=:
4039break
4040fi
4041rm -f conftest.err conftest.$ac_ext
4042
4043done
4044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045rm -f conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004046if $ac_preproc_ok; then :
4047
brynercb91a2f2006-08-25 21:14:45 +00004048else
jimblandy92b1f832009-12-23 22:23:49 +00004049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051as_fn_error "C preprocessor \"$CPP\" fails sanity check
4052See \`config.log' for more details." "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004053fi
4054
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
mmentovai8c2a4de2006-09-20 16:20:15 +00004061ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004062ac_cpp='$CXXCPP $CPPFLAGS'
4063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004066if test -z "$CXX"; then
4067 if test -n "$CCC"; then
4068 CXX=$CCC
4069 else
4070 if test -n "$ac_tool_prefix"; then
4071 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 +00004072 do
4073 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076$as_echo_n "checking for $ac_word... " >&6; }
4077if test "${ac_cv_prog_CXX+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004079else
4080 if test -n "$CXX"; then
4081 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4082else
4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004088 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004089 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 +00004090 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004092 break 2
4093 fi
4094done
jimblandy92b1f832009-12-23 22:23:49 +00004095 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004096IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004097
4098fi
4099fi
4100CXX=$ac_cv_prog_CXX
4101if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4103$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004104else
jimblandy92b1f832009-12-23 22:23:49 +00004105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004107fi
4108
mmentovai8c2a4de2006-09-20 16:20:15 +00004109
brynercb91a2f2006-08-25 21:14:45 +00004110 test -n "$CXX" && break
4111 done
4112fi
4113if test -z "$CXX"; then
4114 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004115 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 +00004116do
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004123else
4124 if test -n "$ac_ct_CXX"; then
4125 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004132 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004133 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 +00004134 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004136 break 2
4137 fi
4138done
jimblandy92b1f832009-12-23 22:23:49 +00004139 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004140IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004141
4142fi
4143fi
4144ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4145if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4147$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004148else
jimblandy92b1f832009-12-23 22:23:49 +00004149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004151fi
4152
mmentovai8c2a4de2006-09-20 16:20:15 +00004153
brynercb91a2f2006-08-25 21:14:45 +00004154 test -n "$ac_ct_CXX" && break
4155done
brynercb91a2f2006-08-25 21:14:45 +00004156
mmentovai8c2a4de2006-09-20 16:20:15 +00004157 if test "x$ac_ct_CXX" = x; then
4158 CXX="g++"
4159 else
4160 case $cross_compiling:$ac_tool_warned in
4161yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004164ac_tool_warned=yes ;;
4165esac
4166 CXX=$ac_ct_CXX
4167 fi
brynercb91a2f2006-08-25 21:14:45 +00004168fi
4169
mmentovai8c2a4de2006-09-20 16:20:15 +00004170 fi
4171fi
brynercb91a2f2006-08-25 21:14:45 +00004172# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004173$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4174set X $ac_compile
4175ac_compiler=$2
4176for ac_option in --version -v -V -qversion; do
4177 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004178case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181esac
jimblandy92b1f832009-12-23 22:23:49 +00004182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183$as_echo "$ac_try_echo"; } >&5
4184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004185 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004186 if test -s conftest.err; then
4187 sed '10a\
4188... rest of stderr output deleted ...
4189 10q' conftest.err >conftest.er1
4190 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004191 fi
jimblandydc4029a2010-02-02 17:39:51 +00004192 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }
4195done
brynercb91a2f2006-08-25 21:14:45 +00004196
jimblandy92b1f832009-12-23 22:23:49 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4198$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4199if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004201else
jimblandy92b1f832009-12-23 22:23:49 +00004202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004203/* end confdefs.h. */
4204
4205int
4206main ()
4207{
4208#ifndef __GNUC__
4209 choke me
4210#endif
4211
4212 ;
4213 return 0;
4214}
4215_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004216if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004217 ac_compiler_gnu=yes
4218else
jimblandy92b1f832009-12-23 22:23:49 +00004219 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004220fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004222ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4223
4224fi
jimblandy92b1f832009-12-23 22:23:49 +00004225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4226$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4227if test $ac_compiler_gnu = yes; then
4228 GXX=yes
4229else
4230 GXX=
4231fi
brynercb91a2f2006-08-25 21:14:45 +00004232ac_test_CXXFLAGS=${CXXFLAGS+set}
4233ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4235$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4236if test "${ac_cv_prog_cxx_g+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004238else
mmentovai8c2a4de2006-09-20 16:20:15 +00004239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4240 ac_cxx_werror_flag=yes
4241 ac_cv_prog_cxx_g=no
4242 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004244/* end confdefs.h. */
4245
4246int
4247main ()
4248{
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004254if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004255 ac_cv_prog_cxx_g=yes
4256else
jimblandy92b1f832009-12-23 22:23:49 +00004257 CXXFLAGS=""
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004259/* end confdefs.h. */
4260
4261int
4262main ()
4263{
4264
4265 ;
4266 return 0;
4267}
4268_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004269if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004270
jimblandy92b1f832009-12-23 22:23:49 +00004271else
4272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004273 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004285if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004286 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004287fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004289fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4294fi
jimblandy92b1f832009-12-23 22:23:49 +00004295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4296$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004297if test "$ac_test_CXXFLAGS" = set; then
4298 CXXFLAGS=$ac_save_CXXFLAGS
4299elif test $ac_cv_prog_cxx_g = yes; then
4300 if test "$GXX" = yes; then
4301 CXXFLAGS="-g -O2"
4302 else
4303 CXXFLAGS="-g"
4304 fi
4305else
4306 if test "$GXX" = yes; then
4307 CXXFLAGS="-O2"
4308 else
4309 CXXFLAGS=
4310 fi
4311fi
brynercb91a2f2006-08-25 21:14:45 +00004312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318depcc="$CXX" am_compiler_list=
4319
jimblandy92b1f832009-12-23 22:23:49 +00004320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4321$as_echo_n "checking dependency style of $depcc... " >&6; }
4322if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004324else
4325 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4326 # We make a subdir and do the tests there. Otherwise we can end up
4327 # making bogus files that we don't know about and never remove. For
4328 # instance it was reported that on HP-UX the gcc test will end up
4329 # making a dummy file named `D' -- because `-MD' means `put the output
4330 # in D'.
4331 mkdir conftest.dir
4332 # Copy depcomp to subdir because otherwise we won't find it if we're
4333 # using a relative directory.
4334 cp "$am_depcomp" conftest.dir
4335 cd conftest.dir
4336 # We will build objects and dependencies in a subdirectory because
4337 # it helps to detect inapplicable dependency modes. For instance
4338 # both Tru64's cc and ICC support -MD to output dependencies as a
4339 # side effect of compilation, but ICC will put the dependencies in
4340 # the current directory while Tru64 will put them in the object
4341 # directory.
4342 mkdir sub
4343
4344 am_cv_CXX_dependencies_compiler_type=none
4345 if test "$am_compiler_list" = ""; then
4346 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 fi
jimblandy92b1f832009-12-23 22:23:49 +00004348 am__universal=false
4349 case " $depcc " in #(
4350 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4351 esac
4352
brynercb91a2f2006-08-25 21:14:45 +00004353 for depmode in $am_compiler_list; do
4354 # Setup a source with many dependencies, because some compilers
4355 # like to wrap large dependency lists on column 80 (with \), and
4356 # we should not choose a depcomp mode which is confused by this.
4357 #
4358 # We need to recreate these files for each test, as the compiler may
4359 # overwrite some of them when testing with obscure command lines.
4360 # This happens at least with the AIX C compiler.
4361 : > sub/conftest.c
4362 for i in 1 2 3 4 5 6; do
4363 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4364 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4365 # Solaris 8's {/usr,}/bin/sh.
4366 touch sub/conftst$i.h
4367 done
4368 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369
jimblandy92b1f832009-12-23 22:23:49 +00004370 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4371 # mode. It turns out that the SunPro C++ compiler does not properly
4372 # handle `-M -o', and we need to detect this. Also, some Intel
4373 # versions had trouble with output in subdirs
4374 am__obj=sub/conftest.${OBJEXT-o}
4375 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004376 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004377 gcc)
4378 # This depmode causes a compiler race in universal mode.
4379 test "$am__universal" = false || continue
4380 ;;
brynercb91a2f2006-08-25 21:14:45 +00004381 nosideeffect)
4382 # after this tag, mechanisms are not by side-effect, so they'll
4383 # only be used when explicitly requested
4384 if test "x$enable_dependency_tracking" = xyes; then
4385 continue
4386 else
4387 break
4388 fi
4389 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004390 msvisualcpp | msvcmsys)
4391 # This compiler won't grok `-c -o', but also, the minuso test has
4392 # not run yet. These depmodes are late enough in the game, and
4393 # so weak that their functioning should not be impacted.
4394 am__obj=conftest.${OBJEXT-o}
4395 am__minus_obj=
4396 ;;
brynercb91a2f2006-08-25 21:14:45 +00004397 none) break ;;
4398 esac
brynercb91a2f2006-08-25 21:14:45 +00004399 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004400 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004402 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004403 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004404 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004406 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408 # icc doesn't choke on unknown options, it will just issue warnings
4409 # or remarks (even with -Werror). So we grep stderr for any message
4410 # that says an option was ignored or not supported.
4411 # When given -MP, icc 7.0 and 7.1 complain thusly:
4412 # icc: Command line warning: ignoring option '-M'; no argument required
4413 # The diagnosis changed in icc 8.0:
4414 # icc: Command line remark: option '-MP' not supported
4415 if (grep 'ignoring option' conftest.err ||
4416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417 am_cv_CXX_dependencies_compiler_type=$depmode
4418 break
4419 fi
4420 fi
4421 done
4422
4423 cd ..
4424 rm -rf conftest.dir
4425else
4426 am_cv_CXX_dependencies_compiler_type=none
4427fi
4428
4429fi
jimblandy92b1f832009-12-23 22:23:49 +00004430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4431$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004432CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4433
mmentovaiaf3c43f2007-05-17 18:34:37 +00004434 if
brynercb91a2f2006-08-25 21:14:45 +00004435 test "x$enable_dependency_tracking" != xno \
4436 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4437 am__fastdepCXX_TRUE=
4438 am__fastdepCXX_FALSE='#'
4439else
4440 am__fastdepCXX_TRUE='#'
4441 am__fastdepCXX_FALSE=
4442fi
4443
4444
4445
jimblandy92b1f832009-12-23 22:23:49 +00004446case `pwd` in
4447 *\ * | *\ *)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4449$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4450esac
brynercb91a2f2006-08-25 21:14:45 +00004451
mmentovai8c2a4de2006-09-20 16:20:15 +00004452
jimblandy92b1f832009-12-23 22:23:49 +00004453
jimblandydc4029a2010-02-02 17:39:51 +00004454macro_version='2.2.6b'
4455macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004456
mmentovai8c2a4de2006-09-20 16:20:15 +00004457
mmentovai8c2a4de2006-09-20 16:20:15 +00004458
brynercb91a2f2006-08-25 21:14:45 +00004459
jimblandy92b1f832009-12-23 22:23:49 +00004460
4461
4462
4463
4464
4465
4466
4467
4468
4469ltmain="$ac_aux_dir/ltmain.sh"
4470
brynercb91a2f2006-08-25 21:14:45 +00004471# Make sure we can run config.sub.
mmentovai8c2a4de2006-09-20 16:20:15 +00004472$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
jimblandy92b1f832009-12-23 22:23:49 +00004473 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004474
jimblandy92b1f832009-12-23 22:23:49 +00004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4476$as_echo_n "checking build system type... " >&6; }
4477if test "${ac_cv_build+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004479else
mmentovai8c2a4de2006-09-20 16:20:15 +00004480 ac_build_alias=$build_alias
4481test "x$ac_build_alias" = x &&
4482 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4483test "x$ac_build_alias" = x &&
jimblandy92b1f832009-12-23 22:23:49 +00004484 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004485ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004486 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00004487
4488fi
jimblandy92b1f832009-12-23 22:23:49 +00004489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4490$as_echo "$ac_cv_build" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004491case $ac_cv_build in
4492*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004493*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004494esac
brynercb91a2f2006-08-25 21:14:45 +00004495build=$ac_cv_build
mmentovai8c2a4de2006-09-20 16:20:15 +00004496ac_save_IFS=$IFS; IFS='-'
4497set x $ac_cv_build
4498shift
4499build_cpu=$1
4500build_vendor=$2
4501shift; shift
4502# Remember, the first character of IFS is used to create $*,
4503# except with old shells:
4504build_os=$*
4505IFS=$ac_save_IFS
4506case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004507
4508
jimblandy92b1f832009-12-23 22:23:49 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4510$as_echo_n "checking host system type... " >&6; }
4511if test "${ac_cv_host+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004513else
mmentovai8c2a4de2006-09-20 16:20:15 +00004514 if test "x$host_alias" = x; then
4515 ac_cv_host=$ac_cv_build
4516else
4517 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
jimblandy92b1f832009-12-23 22:23:49 +00004518 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +00004519fi
brynercb91a2f2006-08-25 21:14:45 +00004520
4521fi
jimblandy92b1f832009-12-23 22:23:49 +00004522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4523$as_echo "$ac_cv_host" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004524case $ac_cv_host in
4525*-*-*) ;;
jimblandy92b1f832009-12-23 22:23:49 +00004526*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +00004527esac
brynercb91a2f2006-08-25 21:14:45 +00004528host=$ac_cv_host
mmentovai8c2a4de2006-09-20 16:20:15 +00004529ac_save_IFS=$IFS; IFS='-'
4530set x $ac_cv_host
4531shift
4532host_cpu=$1
4533host_vendor=$2
4534shift; shift
4535# Remember, the first character of IFS is used to create $*,
4536# except with old shells:
4537host_os=$*
4538IFS=$ac_save_IFS
4539case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
brynercb91a2f2006-08-25 21:14:45 +00004540
4541
jimblandy92b1f832009-12-23 22:23:49 +00004542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4543$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4544if test "${ac_cv_path_SED+set}" = set; then :
4545 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004546else
jimblandy92b1f832009-12-23 22:23:49 +00004547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4548 for ac_i in 1 2 3 4 5 6 7; do
4549 ac_script="$ac_script$as_nl$ac_script"
4550 done
4551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4552 { ac_script=; unset ac_script;}
4553 if test -z "$SED"; then
4554 ac_path_SED_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004561 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004563 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4564 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4565# Check for GNU ac_path_SED and select it if it is found.
4566 # Check for GNU $ac_path_SED
4567case `"$ac_path_SED" --version 2>&1` in
4568*GNU*)
4569 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4570*)
4571 ac_count=0
4572 $as_echo_n 0123456789 >"conftest.in"
4573 while :
4574 do
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo '' >> "conftest.nl"
4579 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_SED_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_SED="$ac_path_SED"
4585 ac_path_SED_max=$ac_count
4586 fi
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591esac
4592
4593 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004594 done
4595 done
brynercb91a2f2006-08-25 21:14:45 +00004596 done
jimblandy92b1f832009-12-23 22:23:49 +00004597IFS=$as_save_IFS
4598 if test -z "$ac_cv_path_SED"; then
4599 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4600 fi
4601else
4602 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004603fi
4604
jimblandy92b1f832009-12-23 22:23:49 +00004605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4607$as_echo "$ac_cv_path_SED" >&6; }
4608 SED="$ac_cv_path_SED"
4609 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004610
jimblandy92b1f832009-12-23 22:23:49 +00004611test -z "$SED" && SED=sed
4612Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004613
jimblandy92b1f832009-12-23 22:23:49 +00004614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626if test "${ac_cv_path_GREP+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004628else
jimblandy92b1f832009-12-23 22:23:49 +00004629 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004630 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4641# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004642 # Check for GNU $ac_path_GREP
4643case `"$ac_path_GREP" --version 2>&1` in
4644*GNU*)
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646*)
4647 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004648 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004654 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004657 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004662 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667esac
4668
jimblandy92b1f832009-12-23 22:23:49 +00004669 $ac_path_GREP_found && break 3
4670 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004671 done
jimblandy92b1f832009-12-23 22:23:49 +00004672 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004673IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004677else
4678 ac_cv_path_GREP=$GREP
4679fi
4680
mmentovai8c2a4de2006-09-20 16:20:15 +00004681fi
jimblandy92b1f832009-12-23 22:23:49 +00004682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004684 GREP="$ac_cv_path_GREP"
4685
4686
jimblandy92b1f832009-12-23 22:23:49 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688$as_echo_n "checking for egrep... " >&6; }
4689if test "${ac_cv_path_EGREP+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004691else
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4694 else
jimblandy92b1f832009-12-23 22:23:49 +00004695 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004696 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4707# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004708 # Check for GNU $ac_path_EGREP
4709case `"$ac_path_EGREP" --version 2>&1` in
4710*GNU*)
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712*)
4713 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004714 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004715 while :
4716 do
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004720 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004723 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4728 fi
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4731 done
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733esac
4734
jimblandy92b1f832009-12-23 22:23:49 +00004735 $ac_path_EGREP_found && break 3
4736 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004737 done
jimblandy92b1f832009-12-23 22:23:49 +00004738 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004739IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004743else
4744 ac_cv_path_EGREP=$EGREP
4745fi
4746
jimblandy92b1f832009-12-23 22:23:49 +00004747 fi
4748fi
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750$as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4752
4753
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4755$as_echo_n "checking for fgrep... " >&6; }
4756if test "${ac_cv_path_FGREP+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4758else
4759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4760 then ac_cv_path_FGREP="$GREP -F"
4761 else
4762 if test -z "$FGREP"; then
4763 ac_path_FGREP_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_prog in fgrep; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4774# Check for GNU ac_path_FGREP and select it if it is found.
4775 # Check for GNU $ac_path_FGREP
4776case `"$ac_path_FGREP" --version 2>&1` in
4777*GNU*)
4778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4779*)
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo 'FGREP' >> "conftest.nl"
4788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790 as_fn_arith $ac_count + 1 && ac_count=$as_val
4791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_FGREP="$ac_path_FGREP"
4794 ac_path_FGREP_max=$ac_count
4795 fi
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800esac
4801
4802 $ac_path_FGREP_found && break 3
4803 done
4804 done
4805 done
4806IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_FGREP"; then
4808 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 fi
4810else
4811 ac_cv_path_FGREP=$FGREP
4812fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004813
4814 fi
4815fi
jimblandy92b1f832009-12-23 22:23:49 +00004816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4817$as_echo "$ac_cv_path_FGREP" >&6; }
4818 FGREP="$ac_cv_path_FGREP"
4819
4820
4821test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
brynercb91a2f2006-08-25 21:14:45 +00004838
4839
4840
mmentovai8c2a4de2006-09-20 16:20:15 +00004841# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004842if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004844else
4845 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004846fi
4847
brynercb91a2f2006-08-25 21:14:45 +00004848ac_prog=ld
4849if test "$GCC" = yes; then
4850 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4852$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004853 case $host in
4854 *-*-mingw*)
4855 # gcc leaves a trailing carriage return which upsets mingw
4856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 *)
4858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859 esac
4860 case $ac_prog in
4861 # Accept absolute paths.
4862 [\\/]* | ?:[\\/]*)
4863 re_direlt='/[^/][^/]*/\.\./'
4864 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004868 done
4869 test -z "$LD" && LD="$ac_prog"
4870 ;;
4871 "")
4872 # If it fails, then pretend we aren't using GCC.
4873 ac_prog=ld
4874 ;;
4875 *)
4876 # If it is relative, then search for the first ld in PATH.
4877 with_gnu_ld=unknown
4878 ;;
4879 esac
4880elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4882$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004883else
jimblandy92b1f832009-12-23 22:23:49 +00004884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4885$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004886fi
jimblandy92b1f832009-12-23 22:23:49 +00004887if test "${lt_cv_path_LD+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004889else
4890 if test -z "$LD"; then
4891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892 for ac_dir in $PATH; do
4893 IFS="$lt_save_ifs"
4894 test -z "$ac_dir" && ac_dir=.
4895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896 lt_cv_path_LD="$ac_dir/$ac_prog"
4897 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004898 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004899 # Break only if it was the GNU/non-GNU ld that we prefer.
4900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901 *GNU* | *'with BFD'*)
4902 test "$with_gnu_ld" != no && break
4903 ;;
4904 *)
4905 test "$with_gnu_ld" != yes && break
4906 ;;
4907 esac
4908 fi
4909 done
4910 IFS="$lt_save_ifs"
4911else
4912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913fi
4914fi
4915
4916LD="$lt_cv_path_LD"
4917if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4919$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004920else
jimblandy92b1f832009-12-23 22:23:49 +00004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004923fi
jimblandy92b1f832009-12-23 22:23:49 +00004924test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4926$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4927if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004929else
mmentovai8c2a4de2006-09-20 16:20:15 +00004930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004931case `$LD -v 2>&1 </dev/null` in
4932*GNU* | *'with BFD'*)
4933 lt_cv_prog_gnu_ld=yes
4934 ;;
4935*)
4936 lt_cv_prog_gnu_ld=no
4937 ;;
4938esac
4939fi
jimblandy92b1f832009-12-23 22:23:49 +00004940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4941$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004942with_gnu_ld=$lt_cv_prog_gnu_ld
4943
4944
brynercb91a2f2006-08-25 21:14:45 +00004945
jimblandy92b1f832009-12-23 22:23:49 +00004946
4947
4948
4949
4950
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4953$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4954if test "${lt_cv_path_NM+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004956else
4957 if test -n "$NM"; then
4958 # Let the user override the test.
4959 lt_cv_path_NM="$NM"
4960else
mmentovai8c2a4de2006-09-20 16:20:15 +00004961 lt_nm_to_check="${ac_tool_prefix}nm"
4962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4963 lt_nm_to_check="$lt_nm_to_check nm"
4964 fi
4965 for lt_tmp_nm in $lt_nm_to_check; do
4966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968 IFS="$lt_save_ifs"
4969 test -z "$ac_dir" && ac_dir=.
4970 tmp_nm="$ac_dir/$lt_tmp_nm"
4971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4972 # Check to see if the nm accepts a BSD-compat flag.
4973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4974 # nm: unknown option "B" ignored
4975 # Tru64's nm complains that /dev/null is an invalid object file
4976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4977 */dev/null* | *'Invalid file or object type'*)
4978 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00004979 break
4980 ;;
4981 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00004982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983 */dev/null*)
4984 lt_cv_path_NM="$tmp_nm -p"
4985 break
4986 ;;
4987 *)
4988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4989 continue # so that we can try to find one that supports BSD flags
4990 ;;
4991 esac
brynercb91a2f2006-08-25 21:14:45 +00004992 ;;
4993 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00004994 fi
4995 done
4996 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00004997 done
jimblandy92b1f832009-12-23 22:23:49 +00004998 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00004999fi
5000fi
jimblandy92b1f832009-12-23 22:23:49 +00005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5002$as_echo "$lt_cv_path_NM" >&6; }
5003if test "$lt_cv_path_NM" != "no"; then
5004 NM="$lt_cv_path_NM"
5005else
5006 # Didn't find any BSD compatible name lister, look for dumpbin.
5007 if test -n "$ac_tool_prefix"; then
5008 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5009 do
5010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5011set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016else
5017 if test -n "$DUMPBIN"; then
5018 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031done
5032 done
5033IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005034
jimblandy92b1f832009-12-23 22:23:49 +00005035fi
5036fi
5037DUMPBIN=$ac_cv_prog_DUMPBIN
5038if test -n "$DUMPBIN"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5040$as_echo "$DUMPBIN" >&6; }
5041else
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047 test -n "$DUMPBIN" && break
5048 done
5049fi
5050if test -z "$DUMPBIN"; then
5051 ac_ct_DUMPBIN=$DUMPBIN
5052 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5053do
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055set dummy $ac_prog; ac_word=$2
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060else
5061 if test -n "$ac_ct_DUMPBIN"; then
5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5074 fi
5075done
5076 done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5082if test -n "$ac_ct_DUMPBIN"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5084$as_echo "$ac_ct_DUMPBIN" >&6; }
5085else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091 test -n "$ac_ct_DUMPBIN" && break
5092done
5093
5094 if test "x$ac_ct_DUMPBIN" = x; then
5095 DUMPBIN=":"
5096 else
5097 case $cross_compiling:$ac_tool_warned in
5098yes:)
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5101ac_tool_warned=yes ;;
5102esac
5103 DUMPBIN=$ac_ct_DUMPBIN
5104 fi
5105fi
5106
5107
5108 if test "$DUMPBIN" != ":"; then
5109 NM="$DUMPBIN"
5110 fi
5111fi
5112test -z "$NM" && NM=nm
5113
5114
5115
5116
5117
5118
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5120$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5121if test "${lt_cv_nm_interface+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123else
5124 lt_cv_nm_interface="BSD nm"
5125 echo "int some_variable = 0;" > conftest.$ac_ext
nealsidde545c02010-03-02 00:39:48 +00005126 (eval echo "\"\$as_me:5126: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005127 (eval "$ac_compile" 2>conftest.err)
5128 cat conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00005129 (eval echo "\"\$as_me:5129: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005130 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5131 cat conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00005132 (eval echo "\"\$as_me:5132: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005133 cat conftest.out >&5
5134 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5135 lt_cv_nm_interface="MS dumpbin"
5136 fi
5137 rm -f conftest*
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5140$as_echo "$lt_cv_nm_interface" >&6; }
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5143$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005144LN_S=$as_ln_s
5145if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005148else
jimblandy92b1f832009-12-23 22:23:49 +00005149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5150$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005151fi
5152
jimblandy92b1f832009-12-23 22:23:49 +00005153# find the maximum length of command line arguments
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158else
5159 i=0
5160 teststring="ABCD"
5161
5162 case $build_os in
5163 msdosdjgpp*)
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5169 ;;
5170
5171 gnu*)
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5176 ;;
5177
5178 cygwin* | mingw* | cegcc*)
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5187 ;;
5188
5189 amigaos*)
5190 # On AmigaOS with pdksh, this test takes hours, literally.
5191 # So we just punt and use a minimum line length of 8192.
5192 lt_cv_sys_max_cmd_len=8192;
5193 ;;
5194
5195 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5196 # This has been around since 386BSD, at least. Likely further.
5197 if test -x /sbin/sysctl; then
5198 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5199 elif test -x /usr/sbin/sysctl; then
5200 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5201 else
5202 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5203 fi
5204 # And add a safety zone
5205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5207 ;;
5208
5209 interix*)
5210 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5211 lt_cv_sys_max_cmd_len=196608
5212 ;;
5213
5214 osf*)
5215 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5216 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5217 # nice to cause kernel panics so lets avoid the loop below.
5218 # First set a reasonable default.
5219 lt_cv_sys_max_cmd_len=16384
5220 #
5221 if test -x /sbin/sysconfig; then
5222 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5223 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5224 esac
5225 fi
5226 ;;
5227 sco3.2v5*)
5228 lt_cv_sys_max_cmd_len=102400
5229 ;;
5230 sysv5* | sco5v6* | sysv4.2uw2*)
5231 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5232 if test -n "$kargmax"; then
5233 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5234 else
5235 lt_cv_sys_max_cmd_len=32768
5236 fi
5237 ;;
5238 *)
5239 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5240 if test -n "$lt_cv_sys_max_cmd_len"; then
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5243 else
5244 # Make teststring a little bigger before we do anything with it.
5245 # a 1K string should be a reasonable start.
5246 for i in 1 2 3 4 5 6 7 8 ; do
5247 teststring=$teststring$teststring
5248 done
5249 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5250 # If test is not a shell built-in, we'll probably end up computing a
5251 # maximum length that is only half of the actual maximum length, but
5252 # we can't tell.
5253 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5254 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5255 test $i != 17 # 1/2 MB should be enough
5256 do
5257 i=`expr $i + 1`
5258 teststring=$teststring$teststring
5259 done
5260 # Only check the string length outside the loop.
5261 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5262 teststring=
5263 # Add a significant safety factor because C++ compilers can tack on
5264 # massive amounts of additional arguments before passing them to the
5265 # linker. It appears as though 1/2 is a usable value.
5266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5267 fi
5268 ;;
5269 esac
5270
5271fi
5272
5273if test -n $lt_cv_sys_max_cmd_len ; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5275$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5276else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5278$as_echo "none" >&6; }
5279fi
5280max_cmd_len=$lt_cv_sys_max_cmd_len
5281
5282
5283
5284
5285
5286
5287: ${CP="cp -f"}
5288: ${MV="mv -f"}
5289: ${RM="rm -f"}
5290
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5292$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5293# Try some XSI features
5294xsi_shell=no
5295( _lt_dummy="a/b/c"
5296 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5297 = c,a/b,, \
5298 && eval 'test $(( 1 + 1 )) -eq 2 \
5299 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5300 && xsi_shell=yes
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5302$as_echo "$xsi_shell" >&6; }
5303
5304
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5306$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5307lt_shell_append=no
5308( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5309 >/dev/null 2>&1 \
5310 && lt_shell_append=yes
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5312$as_echo "$lt_shell_append" >&6; }
5313
5314
5315if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5316 lt_unset=unset
5317else
5318 lt_unset=false
5319fi
5320
5321
5322
5323
5324
5325# test EBCDIC or ASCII
5326case `echo X|tr X '\101'` in
5327 A) # ASCII based system
5328 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5329 lt_SP2NL='tr \040 \012'
5330 lt_NL2SP='tr \015\012 \040\040'
5331 ;;
5332 *) # EBCDIC based system
5333 lt_SP2NL='tr \100 \n'
5334 lt_NL2SP='tr \r\n \100\100'
5335 ;;
5336esac
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5347$as_echo_n "checking for $LD option to reload object files... " >&6; }
5348if test "${lt_cv_ld_reload_flag+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350else
5351 lt_cv_ld_reload_flag='-r'
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5354$as_echo "$lt_cv_ld_reload_flag" >&6; }
5355reload_flag=$lt_cv_ld_reload_flag
5356case $reload_flag in
5357"" | " "*) ;;
5358*) reload_flag=" $reload_flag" ;;
5359esac
5360reload_cmds='$LD$reload_flag -o $output$reload_objs'
5361case $host_os in
5362 darwin*)
5363 if test "$GCC" = yes; then
5364 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5365 else
5366 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5367 fi
5368 ;;
5369esac
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5381set dummy ${ac_tool_prefix}objdump; ac_word=$2
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383$as_echo_n "checking for $ac_word... " >&6; }
5384if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386else
5387 if test -n "$OBJDUMP"; then
5388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402 done
5403IFS=$as_save_IFS
5404
5405fi
5406fi
5407OBJDUMP=$ac_cv_prog_OBJDUMP
5408if test -n "$OBJDUMP"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5410$as_echo "$OBJDUMP" >&6; }
5411else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413$as_echo "no" >&6; }
5414fi
5415
5416
5417fi
5418if test -z "$ac_cv_prog_OBJDUMP"; then
5419 ac_ct_OBJDUMP=$OBJDUMP
5420 # Extract the first word of "objdump", so it can be a program name with args.
5421set dummy objdump; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$ac_ct_OBJDUMP"; then
5428 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5429else
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442 done
5443IFS=$as_save_IFS
5444
5445fi
5446fi
5447ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5448if test -n "$ac_ct_OBJDUMP"; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5450$as_echo "$ac_ct_OBJDUMP" >&6; }
5451else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455
5456 if test "x$ac_ct_OBJDUMP" = x; then
5457 OBJDUMP="false"
5458 else
5459 case $cross_compiling:$ac_tool_warned in
5460yes:)
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463ac_tool_warned=yes ;;
5464esac
5465 OBJDUMP=$ac_ct_OBJDUMP
5466 fi
5467else
5468 OBJDUMP="$ac_cv_prog_OBJDUMP"
5469fi
5470
5471test -z "$OBJDUMP" && OBJDUMP=objdump
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5482$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5483if test "${lt_cv_deplibs_check_method+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005485else
5486 lt_cv_file_magic_cmd='$MAGIC_CMD'
5487lt_cv_file_magic_test_file=
5488lt_cv_deplibs_check_method='unknown'
5489# Need to set the preceding variable on all platforms that support
5490# interlibrary dependencies.
5491# 'none' -- dependencies not supported.
5492# `unknown' -- same as none, but documents that we really don't know.
5493# 'pass_all' -- all dependencies passed with no checks.
5494# 'test_compile' -- check by making test program.
5495# 'file_magic [[regex]]' -- check by looking for files in library path
5496# which responds to the $file_magic_cmd with a given extended regex.
5497# If you have `file' or equivalent on your system and you're not sure
5498# whether `pass_all' will *always* work, you probably want this one.
5499
5500case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005501aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005502 lt_cv_deplibs_check_method=pass_all
5503 ;;
5504
5505beos*)
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
mmentovai8c2a4de2006-09-20 16:20:15 +00005509bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5511 lt_cv_file_magic_cmd='/usr/bin/file -L'
5512 lt_cv_file_magic_test_file=/shlib/libc.so
5513 ;;
5514
5515cygwin*)
5516 # func_win32_libid is a shell function defined in ltmain.sh
5517 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5518 lt_cv_file_magic_cmd='func_win32_libid'
5519 ;;
5520
5521mingw* | pw32*)
5522 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005523 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5524 # unless we find 'file', for example because we are cross-compiling.
5525 if ( file / ) >/dev/null 2>&1; then
5526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5527 lt_cv_file_magic_cmd='func_win32_libid'
5528 else
5529 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5530 lt_cv_file_magic_cmd='$OBJDUMP -f'
5531 fi
brynercb91a2f2006-08-25 21:14:45 +00005532 ;;
5533
jimblandy92b1f832009-12-23 22:23:49 +00005534cegcc)
5535 # use the weaker test based on 'objdump'. See mingw*.
5536 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5537 lt_cv_file_magic_cmd='$OBJDUMP -f'
5538 ;;
5539
brynercb91a2f2006-08-25 21:14:45 +00005540darwin* | rhapsody*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
ted.mielczarek1adb1842009-12-21 13:12:20 +00005544freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005545 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005546 case $host_cpu in
5547 i*86 )
5548 # Not sure whether the presence of OpenBSD here was a mistake.
5549 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005550 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 +00005551 lt_cv_file_magic_cmd=/usr/bin/file
5552 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5553 ;;
5554 esac
5555 else
5556 lt_cv_deplibs_check_method=pass_all
5557 fi
5558 ;;
5559
5560gnu*)
5561 lt_cv_deplibs_check_method=pass_all
5562 ;;
5563
5564hpux10.20* | hpux11*)
5565 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005566 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005567 ia64*)
5568 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5569 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5570 ;;
5571 hppa*64*)
5572 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]'
5573 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5574 ;;
5575 *)
5576 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5577 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5578 ;;
5579 esac
5580 ;;
5581
ted.mielczarek1adb1842009-12-21 13:12:20 +00005582interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005583 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5585 ;;
5586
brynercb91a2f2006-08-25 21:14:45 +00005587irix5* | irix6* | nonstopux*)
5588 case $LD in
5589 *-32|*"-32 ") libmagic=32-bit;;
5590 *-n32|*"-n32 ") libmagic=N32;;
5591 *-64|*"-64 ") libmagic=64-bit;;
5592 *) libmagic=never-match;;
5593 esac
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +00005598linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005599 lt_cv_deplibs_check_method=pass_all
5600 ;;
5601
jimblandydc4029a2010-02-02 17:39:51 +00005602netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005603 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605 else
5606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5607 fi
5608 ;;
5609
5610newos6*)
5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5612 lt_cv_file_magic_cmd=/usr/bin/file
5613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5614 ;;
5615
jimblandy92b1f832009-12-23 22:23:49 +00005616*nto* | *qnx*)
5617 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005618 ;;
5619
5620openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005623 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005625 fi
5626 ;;
5627
5628osf3* | osf4* | osf5*)
5629 lt_cv_deplibs_check_method=pass_all
5630 ;;
5631
ted.mielczarek1adb1842009-12-21 13:12:20 +00005632rdos*)
5633 lt_cv_deplibs_check_method=pass_all
5634 ;;
5635
brynercb91a2f2006-08-25 21:14:45 +00005636solaris*)
5637 lt_cv_deplibs_check_method=pass_all
5638 ;;
5639
jimblandy92b1f832009-12-23 22:23:49 +00005640sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5641 lt_cv_deplibs_check_method=pass_all
5642 ;;
5643
mmentovai8c2a4de2006-09-20 16:20:15 +00005644sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005645 case $host_vendor in
5646 motorola)
5647 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]'
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5649 ;;
5650 ncr)
5651 lt_cv_deplibs_check_method=pass_all
5652 ;;
5653 sequent)
5654 lt_cv_file_magic_cmd='/bin/file'
5655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5656 ;;
5657 sni)
5658 lt_cv_file_magic_cmd='/bin/file'
5659 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5660 lt_cv_file_magic_test_file=/lib/libc.so
5661 ;;
5662 siemens)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005665 pc)
5666 lt_cv_deplibs_check_method=pass_all
5667 ;;
brynercb91a2f2006-08-25 21:14:45 +00005668 esac
5669 ;;
5670
jimblandy92b1f832009-12-23 22:23:49 +00005671tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674esac
5675
5676fi
jimblandy92b1f832009-12-23 22:23:49 +00005677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5678$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005679file_magic_cmd=$lt_cv_file_magic_cmd
5680deplibs_check_method=$lt_cv_deplibs_check_method
5681test -z "$deplibs_check_method" && deplibs_check_method=unknown
5682
5683
5684
5685
jimblandy92b1f832009-12-23 22:23:49 +00005686
5687
5688
5689
5690
5691
5692
5693
5694if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}ar; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if test "${ac_cv_prog_AR+set}" = set; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$AR"; then
5703 ac_cv_prog_AR="$AR" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_AR="${ac_tool_prefix}ar"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717 done
5718IFS=$as_save_IFS
5719
5720fi
5721fi
5722AR=$ac_cv_prog_AR
5723if test -n "$AR"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5725$as_echo "$AR" >&6; }
5726else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
5730
5731
5732fi
5733if test -z "$ac_cv_prog_AR"; then
5734 ac_ct_AR=$AR
5735 # Extract the first word of "ar", so it can be a program name with args.
5736set dummy ar; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 if test -n "$ac_ct_AR"; then
5743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752 ac_cv_prog_ac_ct_AR="ar"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756done
5757 done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_AR=$ac_cv_prog_ac_ct_AR
5763if test -n "$ac_ct_AR"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5765$as_echo "$ac_ct_AR" >&6; }
5766else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771 if test "x$ac_ct_AR" = x; then
5772 AR="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780 AR=$ac_ct_AR
5781 fi
5782else
5783 AR="$ac_cv_prog_AR"
5784fi
5785
5786test -z "$AR" && AR=ar
5787test -z "$AR_FLAGS" && AR_FLAGS=cru
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5801set dummy ${ac_tool_prefix}strip; ac_word=$2
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803$as_echo_n "checking for $ac_word... " >&6; }
5804if test "${ac_cv_prog_STRIP+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 if test -n "$STRIP"; then
5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5809else
5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819 break 2
5820 fi
5821done
5822 done
5823IFS=$as_save_IFS
5824
5825fi
5826fi
5827STRIP=$ac_cv_prog_STRIP
5828if test -n "$STRIP"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5830$as_echo "$STRIP" >&6; }
5831else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833$as_echo "no" >&6; }
5834fi
5835
5836
5837fi
5838if test -z "$ac_cv_prog_STRIP"; then
5839 ac_ct_STRIP=$STRIP
5840 # Extract the first word of "strip", so it can be a program name with args.
5841set dummy strip; ac_word=$2
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843$as_echo_n "checking for $ac_word... " >&6; }
5844if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5846else
5847 if test -n "$ac_ct_STRIP"; then
5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5849else
5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853 IFS=$as_save_IFS
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_STRIP="strip"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 break 2
5860 fi
5861done
5862 done
5863IFS=$as_save_IFS
5864
5865fi
5866fi
5867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5868if test -n "$ac_ct_STRIP"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5870$as_echo "$ac_ct_STRIP" >&6; }
5871else
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873$as_echo "no" >&6; }
5874fi
5875
5876 if test "x$ac_ct_STRIP" = x; then
5877 STRIP=":"
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880yes:)
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883ac_tool_warned=yes ;;
5884esac
5885 STRIP=$ac_ct_STRIP
5886 fi
5887else
5888 STRIP="$ac_cv_prog_STRIP"
5889fi
5890
5891test -z "$STRIP" && STRIP=:
5892
5893
5894
5895
5896
5897
5898if test -n "$ac_tool_prefix"; then
5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5900set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if test "${ac_cv_prog_RANLIB+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905else
5906 if test -n "$RANLIB"; then
5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921 done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926RANLIB=$ac_cv_prog_RANLIB
5927if test -n "$RANLIB"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5929$as_echo "$RANLIB" >&6; }
5930else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935
5936fi
5937if test -z "$ac_cv_prog_RANLIB"; then
5938 ac_ct_RANLIB=$RANLIB
5939 # Extract the first word of "ranlib", so it can be a program name with args.
5940set dummy ranlib; ac_word=$2
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942$as_echo_n "checking for $ac_word... " >&6; }
5943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945else
5946 if test -n "$ac_ct_RANLIB"; then
5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5948else
5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950for as_dir in $PATH
5951do
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_ac_ct_RANLIB="ranlib"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5959 fi
5960done
5961 done
5962IFS=$as_save_IFS
5963
5964fi
5965fi
5966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5967if test -n "$ac_ct_RANLIB"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5969$as_echo "$ac_ct_RANLIB" >&6; }
5970else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972$as_echo "no" >&6; }
5973fi
5974
5975 if test "x$ac_ct_RANLIB" = x; then
5976 RANLIB=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979yes:)
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982ac_tool_warned=yes ;;
5983esac
5984 RANLIB=$ac_ct_RANLIB
5985 fi
5986else
5987 RANLIB="$ac_cv_prog_RANLIB"
5988fi
5989
5990test -z "$RANLIB" && RANLIB=:
5991
5992
5993
5994
5995
5996
5997# Determine commands to create old-style static archives.
5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5999old_postinstall_cmds='chmod 644 $oldlib'
6000old_postuninstall_cmds=
6001
6002if test -n "$RANLIB"; then
6003 case $host_os in
6004 openbsd*)
6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6006 ;;
6007 *)
6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6009 ;;
6010 esac
6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6012fi
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
6041
6042
6043
6044
6045
6046
brynercb91a2f2006-08-25 21:14:45 +00006047# If no C compiler was specified, use CC.
6048LTCC=${LTCC-"$CC"}
6049
mmentovai8c2a4de2006-09-20 16:20:15 +00006050# If no C compiler flags were specified, use CFLAGS.
6051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6052
brynercb91a2f2006-08-25 21:14:45 +00006053# Allow CC to be a program name with arguments.
6054compiler=$CC
6055
6056
brynercb91a2f2006-08-25 21:14:45 +00006057# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6059$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6060if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006062else
6063
6064# These are sane defaults that work on at least a few old systems.
6065# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6066
6067# Character class describing NM global symbol codes.
6068symcode='[BCDEGRST]'
6069
6070# Regexp to match symbols that can be accessed directly from C.
6071sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6072
brynercb91a2f2006-08-25 21:14:45 +00006073# Define system-specific variables.
6074case $host_os in
6075aix*)
6076 symcode='[BCDT]'
6077 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006078cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006079 symcode='[ABCDGISTW]'
6080 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006081hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006082 if test "$host_cpu" = ia64; then
6083 symcode='[ABCDEGRST]'
6084 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006085 ;;
brynercb91a2f2006-08-25 21:14:45 +00006086irix* | nonstopux*)
6087 symcode='[BCDEGRST]'
6088 ;;
6089osf*)
6090 symcode='[BCDEGQRST]'
6091 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006092solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006093 symcode='[BDRT]'
6094 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006095sco3.2v5*)
6096 symcode='[DT]'
6097 ;;
6098sysv4.2uw2*)
6099 symcode='[DT]'
6100 ;;
6101sysv5* | sco5v6* | unixware* | OpenUNIX*)
6102 symcode='[ABDT]'
6103 ;;
brynercb91a2f2006-08-25 21:14:45 +00006104sysv4)
6105 symcode='[DFNSTU]'
6106 ;;
6107esac
6108
brynercb91a2f2006-08-25 21:14:45 +00006109# If we're using GNU nm, then use its standard symbol codes.
6110case `$NM -V 2>&1` in
6111*GNU* | *'with BFD'*)
6112 symcode='[ABCDGIRSTW]' ;;
6113esac
6114
jimblandy92b1f832009-12-23 22:23:49 +00006115# Transform an extracted symbol line into a proper C declaration.
6116# Some systems (esp. on ia64) link data and code symbols differently,
6117# so use this general approach.
6118lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6119
6120# Transform an extracted symbol line into symbol name and symbol address
6121lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6122lt_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'"
6123
6124# Handle CRLF in mingw tool chain
6125opt_cr=
6126case $build_os in
6127mingw*)
6128 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 ;;
6130esac
6131
6132# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006133for ac_symprfx in "" "_"; do
6134
mmentovai8c2a4de2006-09-20 16:20:15 +00006135 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6136 symxfrm="\\1 $ac_symprfx\\2 \\2"
6137
brynercb91a2f2006-08-25 21:14:45 +00006138 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6140 # Fake it for dumpbin and say T for any non-static function
6141 # and D for any global variable.
6142 # Also find C++ and __fastcall symbols from MSVC++,
6143 # which start with @ or ?.
6144 lt_cv_sys_global_symbol_pipe="$AWK '"\
6145" {last_section=section; section=\$ 3};"\
6146" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6147" \$ 0!~/External *\|/{next};"\
6148" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6149" {if(hide[section]) next};"\
6150" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6151" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6152" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6153" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6154" ' prfx=^$ac_symprfx"
6155 else
6156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6157 fi
brynercb91a2f2006-08-25 21:14:45 +00006158
6159 # Check to see that the pipe works correctly.
6160 pipe_works=no
6161
6162 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006163 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006164#ifdef __cplusplus
6165extern "C" {
6166#endif
6167char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006168void nm_test_func(void);
6169void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006170#ifdef __cplusplus
6171}
6172#endif
6173int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006174_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006175
jimblandy92b1f832009-12-23 22:23:49 +00006176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006177 (eval $ac_compile) 2>&5
6178 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006181 # Now try to grab the symbols.
6182 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006183 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 +00006184 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6185 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006188 # Try sorting and uniquifying the output.
6189 if sort "$nlist" | uniq > "$nlist"T; then
6190 mv -f "$nlist"T "$nlist"
6191 else
6192 rm -f "$nlist"T
6193 fi
6194
6195 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006196 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006199#ifdef __cplusplus
6200extern "C" {
6201#endif
6202
jimblandy92b1f832009-12-23 22:23:49 +00006203_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006204 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006205 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006206
jimblandy92b1f832009-12-23 22:23:49 +00006207 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006208
jimblandy92b1f832009-12-23 22:23:49 +00006209/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006210const struct {
6211 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006212 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006213}
jimblandy92b1f832009-12-23 22:23:49 +00006214lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006215{
jimblandy92b1f832009-12-23 22:23:49 +00006216 { "@PROGRAM@", (void *) 0 },
6217_LT_EOF
6218 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6219 cat <<\_LT_EOF >> conftest.$ac_ext
6220 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006221};
6222
jimblandy92b1f832009-12-23 22:23:49 +00006223/* This works around a problem in FreeBSD linker */
6224#ifdef FREEBSD_WORKAROUND
6225static const void *lt_preloaded_setup() {
6226 return lt__PROGRAM__LTX_preloaded_symbols;
6227}
6228#endif
6229
brynercb91a2f2006-08-25 21:14:45 +00006230#ifdef __cplusplus
6231}
6232#endif
jimblandy92b1f832009-12-23 22:23:49 +00006233_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006234 # Now try linking the two files.
6235 mv conftest.$ac_objext conftstm.$ac_objext
6236 lt_save_LIBS="$LIBS"
6237 lt_save_CFLAGS="$CFLAGS"
6238 LIBS="conftstm.$ac_objext"
6239 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006241 (eval $ac_link) 2>&5
6242 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006245 pipe_works=yes
6246 fi
6247 LIBS="$lt_save_LIBS"
6248 CFLAGS="$lt_save_CFLAGS"
6249 else
6250 echo "cannot find nm_test_func in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot find nm_test_var in $nlist" >&5
6254 fi
6255 else
6256 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6257 fi
6258 else
6259 echo "$progname: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006262 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006263
6264 # Do not use the global_symbol_pipe unless it works.
6265 if test "$pipe_works" = yes; then
6266 break
6267 else
6268 lt_cv_sys_global_symbol_pipe=
6269 fi
6270done
6271
6272fi
6273
6274if test -z "$lt_cv_sys_global_symbol_pipe"; then
6275 lt_cv_sys_global_symbol_to_cdecl=
6276fi
6277if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6279$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006280else
jimblandy92b1f832009-12-23 22:23:49 +00006281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6282$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006283fi
6284
jimblandy92b1f832009-12-23 22:23:49 +00006285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307# Check whether --enable-libtool-lock was given.
6308if test "${enable_libtool_lock+set}" = set; then :
6309 enableval=$enable_libtool_lock;
6310fi
6311
6312test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6313
6314# Some flags need to be propagated to the compiler or linker for good
6315# libtool support.
6316case $host in
6317ia64-*-hpux*)
6318 # Find out which ABI we are using.
6319 echo 'int i;' > conftest.$ac_ext
6320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6321 (eval $ac_compile) 2>&5
6322 ac_status=$?
6323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6324 test $ac_status = 0; }; then
6325 case `/usr/bin/file conftest.$ac_objext` in
6326 *ELF-32*)
6327 HPUX_IA64_MODE="32"
6328 ;;
6329 *ELF-64*)
6330 HPUX_IA64_MODE="64"
6331 ;;
6332 esac
6333 fi
6334 rm -rf conftest*
6335 ;;
6336*-*-irix6*)
6337 # Find out which ABI we are using.
nealsidde545c02010-03-02 00:39:48 +00006338 echo '#line 6338 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6340 (eval $ac_compile) 2>&5
6341 ac_status=$?
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; then
6344 if test "$lt_cv_prog_gnu_ld" = yes; then
6345 case `/usr/bin/file conftest.$ac_objext` in
6346 *32-bit*)
6347 LD="${LD-ld} -melf32bsmip"
6348 ;;
6349 *N32*)
6350 LD="${LD-ld} -melf32bmipn32"
6351 ;;
6352 *64-bit*)
6353 LD="${LD-ld} -melf64bmip"
6354 ;;
6355 esac
6356 else
6357 case `/usr/bin/file conftest.$ac_objext` in
6358 *32-bit*)
6359 LD="${LD-ld} -32"
6360 ;;
6361 *N32*)
6362 LD="${LD-ld} -n32"
6363 ;;
6364 *64-bit*)
6365 LD="${LD-ld} -64"
6366 ;;
6367 esac
6368 fi
6369 fi
6370 rm -rf conftest*
6371 ;;
6372
6373x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6374s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6375 # Find out which ABI we are using.
6376 echo 'int i;' > conftest.$ac_ext
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6378 (eval $ac_compile) 2>&5
6379 ac_status=$?
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; }; then
6382 case `/usr/bin/file conftest.o` in
6383 *32-bit*)
6384 case $host in
6385 x86_64-*kfreebsd*-gnu)
6386 LD="${LD-ld} -m elf_i386_fbsd"
6387 ;;
6388 x86_64-*linux*)
6389 LD="${LD-ld} -m elf_i386"
6390 ;;
6391 ppc64-*linux*|powerpc64-*linux*)
6392 LD="${LD-ld} -m elf32ppclinux"
6393 ;;
6394 s390x-*linux*)
6395 LD="${LD-ld} -m elf_s390"
6396 ;;
6397 sparc64-*linux*)
6398 LD="${LD-ld} -m elf32_sparc"
6399 ;;
6400 esac
6401 ;;
6402 *64-bit*)
6403 case $host in
6404 x86_64-*kfreebsd*-gnu)
6405 LD="${LD-ld} -m elf_x86_64_fbsd"
6406 ;;
6407 x86_64-*linux*)
6408 LD="${LD-ld} -m elf_x86_64"
6409 ;;
6410 ppc*-*linux*|powerpc*-*linux*)
6411 LD="${LD-ld} -m elf64ppc"
6412 ;;
6413 s390*-*linux*|s390*-*tpf*)
6414 LD="${LD-ld} -m elf64_s390"
6415 ;;
6416 sparc*-*linux*)
6417 LD="${LD-ld} -m elf64_sparc"
6418 ;;
6419 esac
6420 ;;
6421 esac
6422 fi
6423 rm -rf conftest*
6424 ;;
6425
6426*-*-sco3.2v5*)
6427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6428 SAVE_CFLAGS="$CFLAGS"
6429 CFLAGS="$CFLAGS -belf"
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6431$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6432if test "${lt_cv_cc_needs_belf+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
6434else
6435 ac_ext=c
6436ac_cpp='$CPP $CPPFLAGS'
6437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439ac_compiler_gnu=$ac_cv_c_compiler_gnu
6440
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442/* end confdefs.h. */
6443
6444int
6445main ()
6446{
6447
6448 ;
6449 return 0;
6450}
6451_ACEOF
6452if ac_fn_c_try_link "$LINENO"; then :
6453 lt_cv_cc_needs_belf=yes
6454else
6455 lt_cv_cc_needs_belf=no
6456fi
6457rm -f core conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459 ac_ext=c
6460ac_cpp='$CPP $CPPFLAGS'
6461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_c_compiler_gnu
6464
6465fi
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6467$as_echo "$lt_cv_cc_needs_belf" >&6; }
6468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6470 CFLAGS="$SAVE_CFLAGS"
6471 fi
6472 ;;
6473sparc*-*solaris*)
6474 # Find out which ABI we are using.
6475 echo 'int i;' > conftest.$ac_ext
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477 (eval $ac_compile) 2>&5
6478 ac_status=$?
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
6481 case `/usr/bin/file conftest.o` in
6482 *64-bit*)
6483 case $lt_cv_prog_gnu_ld in
6484 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6485 *)
6486 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6487 LD="${LD-ld} -64"
6488 fi
6489 ;;
6490 esac
6491 ;;
6492 esac
6493 fi
6494 rm -rf conftest*
6495 ;;
6496esac
6497
6498need_locks="$enable_libtool_lock"
6499
6500
6501 case $host_os in
6502 rhapsody* | darwin*)
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6505set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
6510else
6511 if test -n "$DSYMUTIL"; then
6512 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6524 fi
6525done
6526 done
6527IFS=$as_save_IFS
6528
6529fi
6530fi
6531DSYMUTIL=$ac_cv_prog_DSYMUTIL
6532if test -n "$DSYMUTIL"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6534$as_echo "$DSYMUTIL" >&6; }
6535else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
6538fi
6539
6540
6541fi
6542if test -z "$ac_cv_prog_DSYMUTIL"; then
6543 ac_ct_DSYMUTIL=$DSYMUTIL
6544 # Extract the first word of "dsymutil", so it can be a program name with args.
6545set dummy dsymutil; ac_word=$2
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547$as_echo_n "checking for $ac_word... " >&6; }
6548if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550else
6551 if test -n "$ac_ct_DSYMUTIL"; then
6552 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6553else
6554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555for as_dir in $PATH
6556do
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565done
6566 done
6567IFS=$as_save_IFS
6568
6569fi
6570fi
6571ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6572if test -n "$ac_ct_DSYMUTIL"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6574$as_echo "$ac_ct_DSYMUTIL" >&6; }
6575else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577$as_echo "no" >&6; }
6578fi
6579
6580 if test "x$ac_ct_DSYMUTIL" = x; then
6581 DSYMUTIL=":"
6582 else
6583 case $cross_compiling:$ac_tool_warned in
6584yes:)
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6587ac_tool_warned=yes ;;
6588esac
6589 DSYMUTIL=$ac_ct_DSYMUTIL
6590 fi
6591else
6592 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6593fi
6594
6595 if test -n "$ac_tool_prefix"; then
6596 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6597set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6599$as_echo_n "checking for $ac_word... " >&6; }
6600if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6602else
6603 if test -n "$NMEDIT"; then
6604 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618 done
6619IFS=$as_save_IFS
6620
6621fi
6622fi
6623NMEDIT=$ac_cv_prog_NMEDIT
6624if test -n "$NMEDIT"; then
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6626$as_echo "$NMEDIT" >&6; }
6627else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }
6630fi
6631
6632
6633fi
6634if test -z "$ac_cv_prog_NMEDIT"; then
6635 ac_ct_NMEDIT=$NMEDIT
6636 # Extract the first word of "nmedit", so it can be a program name with args.
6637set dummy nmedit; ac_word=$2
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639$as_echo_n "checking for $ac_word... " >&6; }
6640if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642else
6643 if test -n "$ac_ct_NMEDIT"; then
6644 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6645else
6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647for as_dir in $PATH
6648do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657done
6658 done
6659IFS=$as_save_IFS
6660
6661fi
6662fi
6663ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6664if test -n "$ac_ct_NMEDIT"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6666$as_echo "$ac_ct_NMEDIT" >&6; }
6667else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669$as_echo "no" >&6; }
6670fi
6671
6672 if test "x$ac_ct_NMEDIT" = x; then
6673 NMEDIT=":"
6674 else
6675 case $cross_compiling:$ac_tool_warned in
6676yes:)
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6679ac_tool_warned=yes ;;
6680esac
6681 NMEDIT=$ac_ct_NMEDIT
6682 fi
6683else
6684 NMEDIT="$ac_cv_prog_NMEDIT"
6685fi
6686
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6689set dummy ${ac_tool_prefix}lipo; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_LIPO+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694else
6695 if test -n "$LIPO"; then
6696 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715LIPO=$ac_cv_prog_LIPO
6716if test -n "$LIPO"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6718$as_echo "$LIPO" >&6; }
6719else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724
6725fi
6726if test -z "$ac_cv_prog_LIPO"; then
6727 ac_ct_LIPO=$LIPO
6728 # Extract the first word of "lipo", so it can be a program name with args.
6729set dummy lipo; ac_word=$2
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731$as_echo_n "checking for $ac_word... " >&6; }
6732if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734else
6735 if test -n "$ac_ct_LIPO"; then
6736 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6737else
6738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_ac_ct_LIPO="lipo"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750 done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6756if test -n "$ac_ct_LIPO"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6758$as_echo "$ac_ct_LIPO" >&6; }
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761$as_echo "no" >&6; }
6762fi
6763
6764 if test "x$ac_ct_LIPO" = x; then
6765 LIPO=":"
6766 else
6767 case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773 LIPO=$ac_ct_LIPO
6774 fi
6775else
6776 LIPO="$ac_cv_prog_LIPO"
6777fi
6778
6779 if test -n "$ac_tool_prefix"; then
6780 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6781set dummy ${ac_tool_prefix}otool; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if test "${ac_cv_prog_OTOOL+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 if test -n "$OTOOL"; then
6788 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802 done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807OTOOL=$ac_cv_prog_OTOOL
6808if test -n "$OTOOL"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6810$as_echo "$OTOOL" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816
6817fi
6818if test -z "$ac_cv_prog_OTOOL"; then
6819 ac_ct_OTOOL=$OTOOL
6820 # Extract the first word of "otool", so it can be a program name with args.
6821set dummy otool; ac_word=$2
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823$as_echo_n "checking for $ac_word... " >&6; }
6824if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6826else
6827 if test -n "$ac_ct_OTOOL"; then
6828 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_ac_ct_OTOOL="otool"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842 done
6843IFS=$as_save_IFS
6844
6845fi
6846fi
6847ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6848if test -n "$ac_ct_OTOOL"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6850$as_echo "$ac_ct_OTOOL" >&6; }
6851else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853$as_echo "no" >&6; }
6854fi
6855
6856 if test "x$ac_ct_OTOOL" = x; then
6857 OTOOL=":"
6858 else
6859 case $cross_compiling:$ac_tool_warned in
6860yes:)
6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6863ac_tool_warned=yes ;;
6864esac
6865 OTOOL=$ac_ct_OTOOL
6866 fi
6867else
6868 OTOOL="$ac_cv_prog_OTOOL"
6869fi
6870
6871 if test -n "$ac_tool_prefix"; then
6872 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6873set dummy ${ac_tool_prefix}otool64; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$OTOOL64"; then
6880 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899OTOOL64=$ac_cv_prog_OTOOL64
6900if test -n "$OTOOL64"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6902$as_echo "$OTOOL64" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908
6909fi
6910if test -z "$ac_cv_prog_OTOOL64"; then
6911 ac_ct_OTOOL64=$OTOOL64
6912 # Extract the first word of "otool64", so it can be a program name with args.
6913set dummy otool64; ac_word=$2
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915$as_echo_n "checking for $ac_word... " >&6; }
6916if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6918else
6919 if test -n "$ac_ct_OTOOL64"; then
6920 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_prog_ac_ct_OTOOL64="otool64"
6930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934 done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6940if test -n "$ac_ct_OTOOL64"; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6942$as_echo "$ac_ct_OTOOL64" >&6; }
6943else
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945$as_echo "no" >&6; }
6946fi
6947
6948 if test "x$ac_ct_OTOOL64" = x; then
6949 OTOOL64=":"
6950 else
6951 case $cross_compiling:$ac_tool_warned in
6952yes:)
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6955ac_tool_warned=yes ;;
6956esac
6957 OTOOL64=$ac_ct_OTOOL64
6958 fi
6959else
6960 OTOOL64="$ac_cv_prog_OTOOL64"
6961fi
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6990$as_echo_n "checking for -single_module linker flag... " >&6; }
6991if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6993else
6994 lt_cv_apple_cc_single_mod=no
6995 if test -z "${LT_MULTI_MODULE}"; then
6996 # By default we will add the -single_module flag. You can override
6997 # by either setting the environment variable LT_MULTI_MODULE
6998 # non-empty at configure time, or by adding -multi_module to the
6999 # link flags.
7000 rm -rf libconftest.dylib*
7001 echo "int foo(void){return 1;}" > conftest.c
7002 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7003-dynamiclib -Wl,-single_module conftest.c" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7005 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7006 _lt_result=$?
7007 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7008 lt_cv_apple_cc_single_mod=yes
7009 else
7010 cat conftest.err >&5
7011 fi
7012 rm -rf libconftest.dylib*
7013 rm -f conftest.*
7014 fi
7015fi
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7017$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7019$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7020if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022else
7023 lt_cv_ld_exported_symbols_list=no
7024 save_LDFLAGS=$LDFLAGS
7025 echo "_main" > conftest.sym
7026 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028/* end confdefs.h. */
7029
7030int
7031main ()
7032{
7033
7034 ;
7035 return 0;
7036}
7037_ACEOF
7038if ac_fn_c_try_link "$LINENO"; then :
7039 lt_cv_ld_exported_symbols_list=yes
7040else
7041 lt_cv_ld_exported_symbols_list=no
7042fi
7043rm -f core conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 LDFLAGS="$save_LDFLAGS"
7046
7047fi
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7049$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7050 case $host_os in
7051 rhapsody* | darwin1.[012])
7052 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7053 darwin1.*)
7054 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7055 darwin*) # darwin 5.x on
7056 # if running on 10.5 or later, the deployment target defaults
7057 # to the OS version, if on x86, and 10.4, the deployment
7058 # target defaults to 10.4. Don't you love it?
7059 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7060 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7061 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7062 10.[012]*)
7063 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7064 10.*)
7065 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7066 esac
7067 ;;
7068 esac
7069 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7070 _lt_dar_single_mod='$single_module'
7071 fi
7072 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7073 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7074 else
7075 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7076 fi
7077 if test "$DSYMUTIL" != ":"; then
7078 _lt_dsymutil='~$DSYMUTIL $lib || :'
7079 else
7080 _lt_dsymutil=
7081 fi
7082 ;;
7083 esac
7084
7085
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7087$as_echo_n "checking for ANSI C header files... " >&6; }
7088if test "${ac_cv_header_stdc+set}" = set; then :
7089 $as_echo_n "(cached) " >&6
7090else
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h. */
7093#include <stdlib.h>
7094#include <stdarg.h>
7095#include <string.h>
7096#include <float.h>
7097
7098int
7099main ()
7100{
7101
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106if ac_fn_c_try_compile "$LINENO"; then :
7107 ac_cv_header_stdc=yes
7108else
7109 ac_cv_header_stdc=no
7110fi
7111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7112
7113if test $ac_cv_header_stdc = yes; then
7114 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116/* end confdefs.h. */
7117#include <string.h>
7118
7119_ACEOF
7120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121 $EGREP "memchr" >/dev/null 2>&1; then :
7122
7123else
7124 ac_cv_header_stdc=no
7125fi
7126rm -f conftest*
7127
7128fi
7129
7130if test $ac_cv_header_stdc = yes; then
7131 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h. */
7134#include <stdlib.h>
7135
7136_ACEOF
7137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7138 $EGREP "free" >/dev/null 2>&1; then :
7139
7140else
7141 ac_cv_header_stdc=no
7142fi
7143rm -f conftest*
7144
7145fi
7146
7147if test $ac_cv_header_stdc = yes; then
7148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7149 if test "$cross_compiling" = yes; then :
7150 :
7151else
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153/* end confdefs.h. */
7154#include <ctype.h>
7155#include <stdlib.h>
7156#if ((' ' & 0x0FF) == 0x020)
7157# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7158# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7159#else
7160# define ISLOWER(c) \
7161 (('a' <= (c) && (c) <= 'i') \
7162 || ('j' <= (c) && (c) <= 'r') \
7163 || ('s' <= (c) && (c) <= 'z'))
7164# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7165#endif
7166
7167#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7168int
7169main ()
7170{
7171 int i;
7172 for (i = 0; i < 256; i++)
7173 if (XOR (islower (i), ISLOWER (i))
7174 || toupper (i) != TOUPPER (i))
7175 return 2;
7176 return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_run "$LINENO"; then :
7180
7181else
7182 ac_cv_header_stdc=no
7183fi
7184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7185 conftest.$ac_objext conftest.beam conftest.$ac_ext
7186fi
7187
7188fi
7189fi
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7191$as_echo "$ac_cv_header_stdc" >&6; }
7192if test $ac_cv_header_stdc = yes; then
7193
7194$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7195
7196fi
7197
7198# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7199for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7200 inttypes.h stdint.h unistd.h
7201do :
7202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7203ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7204"
7205eval as_val=\$$as_ac_Header
7206 if test "x$as_val" = x""yes; then :
7207 cat >>confdefs.h <<_ACEOF
7208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7209_ACEOF
7210
7211fi
7212
7213done
7214
7215
7216for ac_header in dlfcn.h
7217do :
7218 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7219"
7220if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7221 cat >>confdefs.h <<_ACEOF
7222#define HAVE_DLFCN_H 1
7223_ACEOF
7224
7225fi
7226
7227done
7228
7229
7230
7231ac_ext=cpp
7232ac_cpp='$CXXCPP $CPPFLAGS'
7233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7236if test -z "$CXX"; then
7237 if test -n "$CCC"; then
7238 CXX=$CCC
7239 else
7240 if test -n "$ac_tool_prefix"; then
7241 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7242 do
7243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7244set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246$as_echo_n "checking for $ac_word... " >&6; }
7247if test "${ac_cv_prog_CXX+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7249else
7250 if test -n "$CXX"; then
7251 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7252else
7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256 IFS=$as_save_IFS
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262 break 2
7263 fi
7264done
7265 done
7266IFS=$as_save_IFS
7267
7268fi
7269fi
7270CXX=$ac_cv_prog_CXX
7271if test -n "$CXX"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7273$as_echo "$CXX" >&6; }
7274else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276$as_echo "no" >&6; }
7277fi
7278
7279
7280 test -n "$CXX" && break
7281 done
7282fi
7283if test -z "$CXX"; then
7284 ac_ct_CXX=$CXX
7285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7286do
7287 # Extract the first word of "$ac_prog", so it can be a program name with args.
7288set dummy $ac_prog; ac_word=$2
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290$as_echo_n "checking for $ac_word... " >&6; }
7291if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293else
7294 if test -n "$ac_ct_CXX"; then
7295 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7296else
7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_CXX="$ac_prog"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308done
7309 done
7310IFS=$as_save_IFS
7311
7312fi
7313fi
7314ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7315if test -n "$ac_ct_CXX"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7317$as_echo "$ac_ct_CXX" >&6; }
7318else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
7322
7323
7324 test -n "$ac_ct_CXX" && break
7325done
7326
7327 if test "x$ac_ct_CXX" = x; then
7328 CXX="g++"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331yes:)
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334ac_tool_warned=yes ;;
7335esac
7336 CXX=$ac_ct_CXX
7337 fi
7338fi
7339
7340 fi
7341fi
7342# Provide some information about the compiler.
7343$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7344set X $ac_compile
7345ac_compiler=$2
7346for ac_option in --version -v -V -qversion; do
7347 { { ac_try="$ac_compiler $ac_option >&5"
7348case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351esac
7352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7353$as_echo "$ac_try_echo"; } >&5
7354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7355 ac_status=$?
7356 if test -s conftest.err; then
7357 sed '10a\
7358... rest of stderr output deleted ...
7359 10q' conftest.err >conftest.er1
7360 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007361 fi
jimblandydc4029a2010-02-02 17:39:51 +00007362 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7364 test $ac_status = 0; }
7365done
7366
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7368$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7369if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7371else
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373/* end confdefs.h. */
7374
7375int
7376main ()
7377{
7378#ifndef __GNUC__
7379 choke me
7380#endif
7381
7382 ;
7383 return 0;
7384}
7385_ACEOF
7386if ac_fn_cxx_try_compile "$LINENO"; then :
7387 ac_compiler_gnu=yes
7388else
7389 ac_compiler_gnu=no
7390fi
7391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7393
7394fi
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7396$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7397if test $ac_compiler_gnu = yes; then
7398 GXX=yes
7399else
7400 GXX=
7401fi
7402ac_test_CXXFLAGS=${CXXFLAGS+set}
7403ac_save_CXXFLAGS=$CXXFLAGS
7404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7405$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7406if test "${ac_cv_prog_cxx_g+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7408else
7409 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7410 ac_cxx_werror_flag=yes
7411 ac_cv_prog_cxx_g=no
7412 CXXFLAGS="-g"
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h. */
7415
7416int
7417main ()
7418{
7419
7420 ;
7421 return 0;
7422}
7423_ACEOF
7424if ac_fn_cxx_try_compile "$LINENO"; then :
7425 ac_cv_prog_cxx_g=yes
7426else
7427 CXXFLAGS=""
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h. */
7430
7431int
7432main ()
7433{
7434
7435 ;
7436 return 0;
7437}
7438_ACEOF
7439if ac_fn_cxx_try_compile "$LINENO"; then :
7440
7441else
7442 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7443 CXXFLAGS="-g"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h. */
7446
7447int
7448main ()
7449{
7450
7451 ;
7452 return 0;
7453}
7454_ACEOF
7455if ac_fn_cxx_try_compile "$LINENO"; then :
7456 ac_cv_prog_cxx_g=yes
7457fi
7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7464fi
7465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7466$as_echo "$ac_cv_prog_cxx_g" >&6; }
7467if test "$ac_test_CXXFLAGS" = set; then
7468 CXXFLAGS=$ac_save_CXXFLAGS
7469elif test $ac_cv_prog_cxx_g = yes; then
7470 if test "$GXX" = yes; then
7471 CXXFLAGS="-g -O2"
7472 else
7473 CXXFLAGS="-g"
7474 fi
7475else
7476 if test "$GXX" = yes; then
7477 CXXFLAGS="-O2"
7478 else
7479 CXXFLAGS=
7480 fi
7481fi
7482ac_ext=c
7483ac_cpp='$CPP $CPPFLAGS'
7484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488depcc="$CXX" am_compiler_list=
7489
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7491$as_echo_n "checking dependency style of $depcc... " >&6; }
7492if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7496 # We make a subdir and do the tests there. Otherwise we can end up
7497 # making bogus files that we don't know about and never remove. For
7498 # instance it was reported that on HP-UX the gcc test will end up
7499 # making a dummy file named `D' -- because `-MD' means `put the output
7500 # in D'.
7501 mkdir conftest.dir
7502 # Copy depcomp to subdir because otherwise we won't find it if we're
7503 # using a relative directory.
7504 cp "$am_depcomp" conftest.dir
7505 cd conftest.dir
7506 # We will build objects and dependencies in a subdirectory because
7507 # it helps to detect inapplicable dependency modes. For instance
7508 # both Tru64's cc and ICC support -MD to output dependencies as a
7509 # side effect of compilation, but ICC will put the dependencies in
7510 # the current directory while Tru64 will put them in the object
7511 # directory.
7512 mkdir sub
7513
7514 am_cv_CXX_dependencies_compiler_type=none
7515 if test "$am_compiler_list" = ""; then
7516 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7517 fi
7518 am__universal=false
7519 case " $depcc " in #(
7520 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7521 esac
7522
7523 for depmode in $am_compiler_list; do
7524 # Setup a source with many dependencies, because some compilers
7525 # like to wrap large dependency lists on column 80 (with \), and
7526 # we should not choose a depcomp mode which is confused by this.
7527 #
7528 # We need to recreate these files for each test, as the compiler may
7529 # overwrite some of them when testing with obscure command lines.
7530 # This happens at least with the AIX C compiler.
7531 : > sub/conftest.c
7532 for i in 1 2 3 4 5 6; do
7533 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7534 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7535 # Solaris 8's {/usr,}/bin/sh.
7536 touch sub/conftst$i.h
7537 done
7538 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7539
7540 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7541 # mode. It turns out that the SunPro C++ compiler does not properly
7542 # handle `-M -o', and we need to detect this. Also, some Intel
7543 # versions had trouble with output in subdirs
7544 am__obj=sub/conftest.${OBJEXT-o}
7545 am__minus_obj="-o $am__obj"
7546 case $depmode in
7547 gcc)
7548 # This depmode causes a compiler race in universal mode.
7549 test "$am__universal" = false || continue
7550 ;;
7551 nosideeffect)
7552 # after this tag, mechanisms are not by side-effect, so they'll
7553 # only be used when explicitly requested
7554 if test "x$enable_dependency_tracking" = xyes; then
7555 continue
7556 else
7557 break
7558 fi
7559 ;;
7560 msvisualcpp | msvcmsys)
7561 # This compiler won't grok `-c -o', but also, the minuso test has
7562 # not run yet. These depmodes are late enough in the game, and
7563 # so weak that their functioning should not be impacted.
7564 am__obj=conftest.${OBJEXT-o}
7565 am__minus_obj=
7566 ;;
7567 none) break ;;
7568 esac
7569 if depmode=$depmode \
7570 source=sub/conftest.c object=$am__obj \
7571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7572 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7573 >/dev/null 2>conftest.err &&
7574 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7575 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7576 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7577 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7578 # icc doesn't choke on unknown options, it will just issue warnings
7579 # or remarks (even with -Werror). So we grep stderr for any message
7580 # that says an option was ignored or not supported.
7581 # When given -MP, icc 7.0 and 7.1 complain thusly:
7582 # icc: Command line warning: ignoring option '-M'; no argument required
7583 # The diagnosis changed in icc 8.0:
7584 # icc: Command line remark: option '-MP' not supported
7585 if (grep 'ignoring option' conftest.err ||
7586 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7587 am_cv_CXX_dependencies_compiler_type=$depmode
7588 break
7589 fi
7590 fi
7591 done
7592
7593 cd ..
7594 rm -rf conftest.dir
7595else
7596 am_cv_CXX_dependencies_compiler_type=none
7597fi
7598
7599fi
7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7601$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7602CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7603
7604 if
7605 test "x$enable_dependency_tracking" != xno \
7606 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7607 am__fastdepCXX_TRUE=
7608 am__fastdepCXX_FALSE='#'
7609else
7610 am__fastdepCXX_TRUE='#'
7611 am__fastdepCXX_FALSE=
7612fi
7613
7614
7615if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7616 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7617 (test "X$CXX" != "Xg++"))) ; then
7618 ac_ext=cpp
7619ac_cpp='$CXXCPP $CPPFLAGS'
7620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7624$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7625if test -z "$CXXCPP"; then
7626 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7628else
7629 # Double quotes because CXXCPP needs to be expanded
7630 for CXXCPP in "$CXX -E" "/lib/cpp"
7631 do
7632 ac_preproc_ok=false
7633for ac_cxx_preproc_warn_flag in '' yes
7634do
7635 # Use a header file that comes with gcc, so configuring glibc
7636 # with a fresh cross-compiler works.
7637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7638 # <limits.h> exists even on freestanding compilers.
7639 # On the NeXT, cc -E runs the code through the compiler's parser,
7640 # not just through cpp. "Syntax error" is here to catch this case.
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642/* end confdefs.h. */
7643#ifdef __STDC__
7644# include <limits.h>
7645#else
7646# include <assert.h>
7647#endif
7648 Syntax error
7649_ACEOF
7650if ac_fn_cxx_try_cpp "$LINENO"; then :
7651
7652else
7653 # Broken: fails on valid input.
7654continue
7655fi
7656rm -f conftest.err conftest.$ac_ext
7657
7658 # OK, works on sane cases. Now check whether nonexistent headers
7659 # can be detected and how.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661/* end confdefs.h. */
7662#include <ac_nonexistent.h>
7663_ACEOF
7664if ac_fn_cxx_try_cpp "$LINENO"; then :
7665 # Broken: success on invalid input.
7666continue
7667else
7668 # Passes both tests.
7669ac_preproc_ok=:
7670break
7671fi
7672rm -f conftest.err conftest.$ac_ext
7673
7674done
7675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7676rm -f conftest.err conftest.$ac_ext
7677if $ac_preproc_ok; then :
7678 break
7679fi
7680
7681 done
7682 ac_cv_prog_CXXCPP=$CXXCPP
7683
7684fi
7685 CXXCPP=$ac_cv_prog_CXXCPP
7686else
7687 ac_cv_prog_CXXCPP=$CXXCPP
7688fi
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7690$as_echo "$CXXCPP" >&6; }
7691ac_preproc_ok=false
7692for ac_cxx_preproc_warn_flag in '' yes
7693do
7694 # Use a header file that comes with gcc, so configuring glibc
7695 # with a fresh cross-compiler works.
7696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7697 # <limits.h> exists even on freestanding compilers.
7698 # On the NeXT, cc -E runs the code through the compiler's parser,
7699 # not just through cpp. "Syntax error" is here to catch this case.
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701/* end confdefs.h. */
7702#ifdef __STDC__
7703# include <limits.h>
7704#else
7705# include <assert.h>
7706#endif
7707 Syntax error
7708_ACEOF
7709if ac_fn_cxx_try_cpp "$LINENO"; then :
7710
7711else
7712 # Broken: fails on valid input.
7713continue
7714fi
7715rm -f conftest.err conftest.$ac_ext
7716
7717 # OK, works on sane cases. Now check whether nonexistent headers
7718 # can be detected and how.
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h. */
7721#include <ac_nonexistent.h>
7722_ACEOF
7723if ac_fn_cxx_try_cpp "$LINENO"; then :
7724 # Broken: success on invalid input.
7725continue
7726else
7727 # Passes both tests.
7728ac_preproc_ok=:
7729break
7730fi
7731rm -f conftest.err conftest.$ac_ext
7732
7733done
7734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7735rm -f conftest.err conftest.$ac_ext
7736if $ac_preproc_ok; then :
7737
7738else
7739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741_lt_caught_CXX_error=yes; }
7742fi
7743
7744ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750else
7751 _lt_caught_CXX_error=yes
7752fi
7753
7754
7755
7756
7757
7758# Set options
7759
7760
7761
7762 enable_dlopen=no
7763
7764
7765 enable_win32_dll=no
7766
7767
7768 # Check whether --enable-shared was given.
7769if test "${enable_shared+set}" = set; then :
7770 enableval=$enable_shared; p=${PACKAGE-default}
7771 case $enableval in
7772 yes) enable_shared=yes ;;
7773 no) enable_shared=no ;;
7774 *)
7775 enable_shared=no
7776 # Look at the argument we got. We use all the common list separators.
7777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7778 for pkg in $enableval; do
7779 IFS="$lt_save_ifs"
7780 if test "X$pkg" = "X$p"; then
7781 enable_shared=yes
7782 fi
7783 done
7784 IFS="$lt_save_ifs"
7785 ;;
7786 esac
7787else
7788 enable_shared=yes
7789fi
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 # Check whether --enable-static was given.
7800if test "${enable_static+set}" = set; then :
7801 enableval=$enable_static; p=${PACKAGE-default}
7802 case $enableval in
7803 yes) enable_static=yes ;;
7804 no) enable_static=no ;;
7805 *)
7806 enable_static=no
7807 # Look at the argument we got. We use all the common list separators.
7808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7809 for pkg in $enableval; do
7810 IFS="$lt_save_ifs"
7811 if test "X$pkg" = "X$p"; then
7812 enable_static=yes
7813 fi
7814 done
7815 IFS="$lt_save_ifs"
7816 ;;
7817 esac
7818else
7819 enable_static=yes
7820fi
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831# Check whether --with-pic was given.
7832if test "${with_pic+set}" = set; then :
7833 withval=$with_pic; pic_mode="$withval"
7834else
7835 pic_mode=default
7836fi
7837
7838
7839test -z "$pic_mode" && pic_mode=default
7840
7841
7842
7843
7844
7845
7846
7847 # Check whether --enable-fast-install was given.
7848if test "${enable_fast_install+set}" = set; then :
7849 enableval=$enable_fast_install; p=${PACKAGE-default}
7850 case $enableval in
7851 yes) enable_fast_install=yes ;;
7852 no) enable_fast_install=no ;;
7853 *)
7854 enable_fast_install=no
7855 # Look at the argument we got. We use all the common list separators.
7856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7857 for pkg in $enableval; do
7858 IFS="$lt_save_ifs"
7859 if test "X$pkg" = "X$p"; then
7860 enable_fast_install=yes
7861 fi
7862 done
7863 IFS="$lt_save_ifs"
7864 ;;
7865 esac
7866else
7867 enable_fast_install=yes
7868fi
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880# This can be used to rebuild libtool when needed
7881LIBTOOL_DEPS="$ltmain"
7882
7883# Always use our own libtool.
7884LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910test -z "$LN_S" && LN_S="ln -s"
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925if test -n "${ZSH_VERSION+set}" ; then
7926 setopt NO_GLOB_SUBST
7927fi
7928
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7930$as_echo_n "checking for objdir... " >&6; }
7931if test "${lt_cv_objdir+set}" = set; then :
7932 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007933else
7934 rm -f .libs 2>/dev/null
7935mkdir .libs 2>/dev/null
7936if test -d .libs; then
7937 lt_cv_objdir=.libs
7938else
7939 # MS-DOS does not allow filenames that begin with a dot.
7940 lt_cv_objdir=_libs
7941fi
7942rmdir .libs 2>/dev/null
7943fi
jimblandy92b1f832009-12-23 22:23:49 +00007944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7945$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00007946objdir=$lt_cv_objdir
7947
7948
7949
7950
7951
jimblandy92b1f832009-12-23 22:23:49 +00007952cat >>confdefs.h <<_ACEOF
7953#define LT_OBJDIR "$lt_cv_objdir/"
7954_ACEOF
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
brynercb91a2f2006-08-25 21:14:45 +00007972case $host_os in
7973aix3*)
7974 # AIX sometimes has problems with the GCC collect2 program. For some
7975 # reason, if we set the COLLECT_NAMES environment variable, the problems
7976 # vanish in a puff of smoke.
7977 if test "X${COLLECT_NAMES+set}" != Xset; then
7978 COLLECT_NAMES=
7979 export COLLECT_NAMES
7980 fi
7981 ;;
7982esac
7983
7984# Sed substitution that helps us do robust quoting. It backslashifies
7985# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00007986sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007987
7988# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00007989double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00007990
7991# Sed substitution to delay expansion of an escaped shell variable in a
7992# double_quote_subst'ed string.
7993delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7994
jimblandy92b1f832009-12-23 22:23:49 +00007995# Sed substitution to delay expansion of an escaped single quote.
7996delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7997
brynercb91a2f2006-08-25 21:14:45 +00007998# Sed substitution to avoid accidental globbing in evaled expressions
7999no_glob_subst='s/\*/\\\*/g'
8000
brynercb91a2f2006-08-25 21:14:45 +00008001# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00008002ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00008003can_build_shared=yes
8004
mmentovai8c2a4de2006-09-20 16:20:15 +00008005# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008006# which needs '.lib').
8007libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008008
brynercb91a2f2006-08-25 21:14:45 +00008009with_gnu_ld="$lt_cv_prog_gnu_ld"
8010
brynercb91a2f2006-08-25 21:14:45 +00008011old_CC="$CC"
8012old_CFLAGS="$CFLAGS"
8013
8014# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008015test -z "$CC" && CC=cc
8016test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008017test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008018test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008019test -z "$ac_objext" && ac_objext=o
8020
mmentovai8c2a4de2006-09-20 16:20:15 +00008021for cc_temp in $compiler""; do
8022 case $cc_temp in
8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8025 \-*) ;;
8026 *) break;;
8027 esac
8028done
jimblandy92b1f832009-12-23 22:23:49 +00008029cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008030
8031
brynercb91a2f2006-08-25 21:14:45 +00008032# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008033test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008034case $deplibs_check_method in
8035file_magic*)
8036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8038$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8039if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008041else
8042 case $MAGIC_CMD in
8043[\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8045 ;;
8046*)
8047 lt_save_MAGIC_CMD="$MAGIC_CMD"
8048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS="$lt_save_ifs"
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f $ac_dir/${ac_tool_prefix}file; then
8054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
jimblandy92b1f832009-12-23 22:23:49 +00008064 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008065
8066*** Warning: the command libtool uses to detect shared libraries,
8067*** $file_magic_cmd, produces output that libtool cannot recognize.
8068*** The result is that libtool may fail to recognize shared libraries
8069*** as such. This will affect the creation of libtool libraries that
8070*** depend on shared libraries, but programs linked with such libtool
8071*** libraries will work regardless of this problem. Nevertheless, you
8072*** may want to report the problem to your system manager and/or to
8073*** bug-libtool@gnu.org
8074
jimblandy92b1f832009-12-23 22:23:49 +00008075_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS="$lt_save_ifs"
8083 MAGIC_CMD="$lt_save_MAGIC_CMD"
8084 ;;
8085esac
8086fi
8087
8088MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8089if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008092else
jimblandy92b1f832009-12-23 22:23:49 +00008093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008095fi
8096
jimblandy92b1f832009-12-23 22:23:49 +00008097
8098
8099
8100
brynercb91a2f2006-08-25 21:14:45 +00008101if test -z "$lt_cv_path_MAGIC_CMD"; then
8102 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8104$as_echo_n "checking for file... " >&6; }
8105if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008107else
8108 case $MAGIC_CMD in
8109[\\/*] | ?:[\\/]*)
8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8111 ;;
8112*)
8113 lt_save_MAGIC_CMD="$MAGIC_CMD"
8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116 for ac_dir in $ac_dummy; do
8117 IFS="$lt_save_ifs"
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f $ac_dir/file; then
8120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8121 if test -n "$file_magic_test_file"; then
8122 case $deplibs_check_method in
8123 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127 $EGREP "$file_magic_regex" > /dev/null; then
8128 :
8129 else
jimblandy92b1f832009-12-23 22:23:49 +00008130 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008131
8132*** Warning: the command libtool uses to detect shared libraries,
8133*** $file_magic_cmd, produces output that libtool cannot recognize.
8134*** The result is that libtool may fail to recognize shared libraries
8135*** as such. This will affect the creation of libtool libraries that
8136*** depend on shared libraries, but programs linked with such libtool
8137*** libraries will work regardless of this problem. Nevertheless, you
8138*** may want to report the problem to your system manager and/or to
8139*** bug-libtool@gnu.org
8140
jimblandy92b1f832009-12-23 22:23:49 +00008141_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008142 fi ;;
8143 esac
8144 fi
8145 break
8146 fi
8147 done
8148 IFS="$lt_save_ifs"
8149 MAGIC_CMD="$lt_save_MAGIC_CMD"
8150 ;;
8151esac
8152fi
8153
8154MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8157$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008158else
jimblandy92b1f832009-12-23 22:23:49 +00008159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008161fi
8162
jimblandy92b1f832009-12-23 22:23:49 +00008163
brynercb91a2f2006-08-25 21:14:45 +00008164 else
8165 MAGIC_CMD=:
8166 fi
8167fi
8168
8169 fi
8170 ;;
8171esac
8172
brynercb91a2f2006-08-25 21:14:45 +00008173# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008174
brynercb91a2f2006-08-25 21:14:45 +00008175lt_save_CC="$CC"
8176ac_ext=c
8177ac_cpp='$CPP $CPPFLAGS'
8178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180ac_compiler_gnu=$ac_cv_c_compiler_gnu
8181
8182
8183# Source file extension for C test sources.
8184ac_ext=c
8185
8186# Object file extension for compiled C test sources.
8187objext=o
8188objext=$objext
8189
8190# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008191lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008192
8193# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008194lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008195
8196
jimblandy92b1f832009-12-23 22:23:49 +00008197
8198
8199
8200
8201
brynercb91a2f2006-08-25 21:14:45 +00008202# If no C compiler was specified, use CC.
8203LTCC=${LTCC-"$CC"}
8204
mmentovai8c2a4de2006-09-20 16:20:15 +00008205# If no C compiler flags were specified, use CFLAGS.
8206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8207
brynercb91a2f2006-08-25 21:14:45 +00008208# Allow CC to be a program name with arguments.
8209compiler=$CC
8210
jimblandy92b1f832009-12-23 22:23:49 +00008211# Save the default compiler, since it gets overwritten when the other
8212# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8213compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008214
mmentovai8c2a4de2006-09-20 16:20:15 +00008215# save warnings/boilerplate of simple test code
8216ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008217echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8219_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008220$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008221
mmentovai8c2a4de2006-09-20 16:20:15 +00008222ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008223echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008224eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8225_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008226$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008227
8228
jimblandy92b1f832009-12-23 22:23:49 +00008229if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008230
8231lt_prog_compiler_no_builtin_flag=
8232
8233if test "$GCC" = yes; then
8234 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8235
jimblandy92b1f832009-12-23 22:23:49 +00008236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8237$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8238if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008240else
8241 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008242 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008244 lt_compiler_flag="-fno-rtti -fno-exceptions"
8245 # Insert the option either (1) after the last *FLAGS variable, or
8246 # (2) before a word containing "conftest.", or (3) at the end.
8247 # Note that $ac_compile itself does not contain backslashes and begins
8248 # with a dollar sign (not a hyphen), so the echo should work correctly.
8249 # The option is referenced via a variable to avoid confusing sed.
8250 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8253 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +00008254 (eval echo "\"\$as_me:8254: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008255 (eval "$lt_compile" 2>conftest.err)
8256 ac_status=$?
8257 cat conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00008258 echo "$as_me:8258: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008259 if (exit $ac_status) && test -s "$ac_outfile"; then
8260 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008261 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008262 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008265 lt_cv_prog_compiler_rtti_exceptions=yes
8266 fi
8267 fi
jimblandy92b1f832009-12-23 22:23:49 +00008268 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008269
8270fi
jimblandy92b1f832009-12-23 22:23:49 +00008271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8272$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008273
8274if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8275 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8276else
8277 :
8278fi
8279
8280fi
8281
jimblandy92b1f832009-12-23 22:23:49 +00008282
8283
8284
8285
8286
8287 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008288lt_prog_compiler_pic=
8289lt_prog_compiler_static=
8290
jimblandy92b1f832009-12-23 22:23:49 +00008291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8292$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008293
8294 if test "$GCC" = yes; then
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_static='-static'
8297
8298 case $host_os in
8299 aix*)
8300 # All AIX code is PIC.
8301 if test "$host_cpu" = ia64; then
8302 # AIX 5 now supports IA64 processor
8303 lt_prog_compiler_static='-Bstatic'
8304 fi
8305 ;;
8306
8307 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008308 case $host_cpu in
8309 powerpc)
8310 # see comment about AmigaOS4 .so support
8311 lt_prog_compiler_pic='-fPIC'
8312 ;;
8313 m68k)
8314 # FIXME: we need at least 68020 code to build shared libraries, but
8315 # adding the `-m68020' flag to GCC prevents building anything better,
8316 # like `-m68040'.
8317 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8318 ;;
8319 esac
brynercb91a2f2006-08-25 21:14:45 +00008320 ;;
8321
ted.mielczarek1adb1842009-12-21 13:12:20 +00008322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008323 # PIC is the default for these OSes.
8324 ;;
8325
jimblandy92b1f832009-12-23 22:23:49 +00008326 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008327 # This hack is so that the source file can tell whether it is being
8328 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008329 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8330 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008331 lt_prog_compiler_pic='-DDLL_EXPORT'
8332 ;;
8333
8334 darwin* | rhapsody*)
8335 # PIC is the default on this platform
8336 # Common symbols not allowed in MH_DYLIB files
8337 lt_prog_compiler_pic='-fno-common'
8338 ;;
8339
jimblandy92b1f832009-12-23 22:23:49 +00008340 hpux*)
8341 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8342 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8343 # sets the default TLS model and affects inlining.
8344 case $host_cpu in
8345 hppa*64*)
8346 # +Z the default
8347 ;;
8348 *)
8349 lt_prog_compiler_pic='-fPIC'
8350 ;;
8351 esac
8352 ;;
8353
ted.mielczarek1adb1842009-12-21 13:12:20 +00008354 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8356 # Instead, we relocate shared libraries at runtime.
8357 ;;
8358
brynercb91a2f2006-08-25 21:14:45 +00008359 msdosdjgpp*)
8360 # Just because we use GCC doesn't mean we suddenly get shared libraries
8361 # on systems that don't support them.
8362 lt_prog_compiler_can_build_shared=no
8363 enable_shared=no
8364 ;;
8365
jimblandy92b1f832009-12-23 22:23:49 +00008366 *nto* | *qnx*)
8367 # QNX uses GNU C++, but need to define -shared option too, otherwise
8368 # it will coredump.
8369 lt_prog_compiler_pic='-fPIC -shared'
8370 ;;
8371
brynercb91a2f2006-08-25 21:14:45 +00008372 sysv4*MP*)
8373 if test -d /usr/nec; then
8374 lt_prog_compiler_pic=-Kconform_pic
8375 fi
8376 ;;
8377
brynercb91a2f2006-08-25 21:14:45 +00008378 *)
8379 lt_prog_compiler_pic='-fPIC'
8380 ;;
8381 esac
8382 else
8383 # PORTME Check for flag to pass linker flags through the system compiler.
8384 case $host_os in
8385 aix*)
8386 lt_prog_compiler_wl='-Wl,'
8387 if test "$host_cpu" = ia64; then
8388 # AIX 5 now supports IA64 processor
8389 lt_prog_compiler_static='-Bstatic'
8390 else
8391 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8392 fi
8393 ;;
8394
jimblandy92b1f832009-12-23 22:23:49 +00008395 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008396 # This hack is so that the source file can tell whether it is being
8397 # built for inclusion in a dll (and should export symbols for example).
8398 lt_prog_compiler_pic='-DDLL_EXPORT'
8399 ;;
8400
8401 hpux9* | hpux10* | hpux11*)
8402 lt_prog_compiler_wl='-Wl,'
8403 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8404 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008405 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008406 hppa*64*|ia64*)
8407 # +Z the default
8408 ;;
8409 *)
8410 lt_prog_compiler_pic='+Z'
8411 ;;
8412 esac
8413 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8414 lt_prog_compiler_static='${wl}-a ${wl}archive'
8415 ;;
8416
8417 irix5* | irix6* | nonstopux*)
8418 lt_prog_compiler_wl='-Wl,'
8419 # PIC (with -KPIC) is the default.
8420 lt_prog_compiler_static='-non_shared'
8421 ;;
8422
ted.mielczarek1adb1842009-12-21 13:12:20 +00008423 linux* | k*bsd*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008424 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008425 # old Intel for x86_64 which still supported -KPIC.
8426 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_pic='-KPIC'
8429 lt_prog_compiler_static='-static'
8430 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008431 # icc used to be incompatible with GCC.
8432 # ICC 10 doesn't accept -KPIC any more.
8433 icc* | ifort*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-fPIC'
8436 lt_prog_compiler_static='-static'
8437 ;;
8438 # Lahey Fortran 8.1.
8439 lf95*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_pic='--shared'
8442 lt_prog_compiler_static='--static'
8443 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008444 pgcc* | pgf77* | pgf90* | pgf95*)
8445 # Portland Group compilers (*not* the Pentium gcc compiler,
8446 # which looks to be a dead project)
8447 lt_prog_compiler_wl='-Wl,'
8448 lt_prog_compiler_pic='-fpic'
8449 lt_prog_compiler_static='-Bstatic'
8450 ;;
brynercb91a2f2006-08-25 21:14:45 +00008451 ccc*)
8452 lt_prog_compiler_wl='-Wl,'
8453 # All Alpha code is PIC.
8454 lt_prog_compiler_static='-non_shared'
8455 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008456 xl*)
8457 # IBM XL C 8.0/Fortran 10.1 on PPC
8458 lt_prog_compiler_wl='-Wl,'
8459 lt_prog_compiler_pic='-qpic'
8460 lt_prog_compiler_static='-qstaticlink'
8461 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008462 *)
jimblandy92b1f832009-12-23 22:23:49 +00008463 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008464 *Sun\ C*)
8465 # Sun C 5.9
8466 lt_prog_compiler_pic='-KPIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 lt_prog_compiler_wl='-Wl,'
8469 ;;
8470 *Sun\ F*)
8471 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8472 lt_prog_compiler_pic='-KPIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 lt_prog_compiler_wl=''
8475 ;;
8476 esac
8477 ;;
brynercb91a2f2006-08-25 21:14:45 +00008478 esac
8479 ;;
8480
jimblandy92b1f832009-12-23 22:23:49 +00008481 newsos6)
8482 lt_prog_compiler_pic='-KPIC'
8483 lt_prog_compiler_static='-Bstatic'
8484 ;;
8485
8486 *nto* | *qnx*)
8487 # QNX uses GNU C++, but need to define -shared option too, otherwise
8488 # it will coredump.
8489 lt_prog_compiler_pic='-fPIC -shared'
8490 ;;
8491
brynercb91a2f2006-08-25 21:14:45 +00008492 osf3* | osf4* | osf5*)
8493 lt_prog_compiler_wl='-Wl,'
8494 # All OSF/1 code is PIC.
8495 lt_prog_compiler_static='-non_shared'
8496 ;;
8497
ted.mielczarek1adb1842009-12-21 13:12:20 +00008498 rdos*)
8499 lt_prog_compiler_static='-non_shared'
8500 ;;
8501
brynercb91a2f2006-08-25 21:14:45 +00008502 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008505 case $cc_basename in
8506 f77* | f90* | f95*)
8507 lt_prog_compiler_wl='-Qoption ld ';;
8508 *)
8509 lt_prog_compiler_wl='-Wl,';;
8510 esac
brynercb91a2f2006-08-25 21:14:45 +00008511 ;;
8512
8513 sunos4*)
8514 lt_prog_compiler_wl='-Qoption ld '
8515 lt_prog_compiler_pic='-PIC'
8516 lt_prog_compiler_static='-Bstatic'
8517 ;;
8518
mmentovai8c2a4de2006-09-20 16:20:15 +00008519 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524
8525 sysv4*MP*)
8526 if test -d /usr/nec ;then
8527 lt_prog_compiler_pic='-Kconform_pic'
8528 lt_prog_compiler_static='-Bstatic'
8529 fi
8530 ;;
8531
mmentovai8c2a4de2006-09-20 16:20:15 +00008532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-Bstatic'
8536 ;;
8537
8538 unicos*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_can_build_shared=no
8541 ;;
8542
brynercb91a2f2006-08-25 21:14:45 +00008543 uts4*)
8544 lt_prog_compiler_pic='-pic'
8545 lt_prog_compiler_static='-Bstatic'
8546 ;;
8547
8548 *)
8549 lt_prog_compiler_can_build_shared=no
8550 ;;
8551 esac
8552 fi
8553
jimblandy92b1f832009-12-23 22:23:49 +00008554case $host_os in
8555 # For platforms which do not support PIC, -DPIC is meaningless:
8556 *djgpp*)
8557 lt_prog_compiler_pic=
8558 ;;
8559 *)
8560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8561 ;;
8562esac
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8564$as_echo "$lt_prog_compiler_pic" >&6; }
8565
8566
8567
8568
8569
brynercb91a2f2006-08-25 21:14:45 +00008570
8571#
8572# Check to make sure the PIC flag actually works.
8573#
8574if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8576$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8577if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008579else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008580 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008581 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8584 # Insert the option either (1) after the last *FLAGS variable, or
8585 # (2) before a word containing "conftest.", or (3) at the end.
8586 # Note that $ac_compile itself does not contain backslashes and begins
8587 # with a dollar sign (not a hyphen), so the echo should work correctly.
8588 # The option is referenced via a variable to avoid confusing sed.
8589 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +00008593 (eval echo "\"\$as_me:8593: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008594 (eval "$lt_compile" 2>conftest.err)
8595 ac_status=$?
8596 cat conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00008597 echo "$as_me:8597: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008598 if (exit $ac_status) && test -s "$ac_outfile"; then
8599 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008600 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008601 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008604 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008605 fi
8606 fi
jimblandy92b1f832009-12-23 22:23:49 +00008607 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008608
8609fi
jimblandy92b1f832009-12-23 22:23:49 +00008610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8611$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008612
ted.mielczarek1adb1842009-12-21 13:12:20 +00008613if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008614 case $lt_prog_compiler_pic in
8615 "" | " "*) ;;
8616 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8617 esac
8618else
8619 lt_prog_compiler_pic=
8620 lt_prog_compiler_can_build_shared=no
8621fi
8622
8623fi
jimblandy92b1f832009-12-23 22:23:49 +00008624
8625
8626
8627
8628
brynercb91a2f2006-08-25 21:14:45 +00008629
mmentovai8c2a4de2006-09-20 16:20:15 +00008630#
8631# Check to make sure the static flag actually works.
8632#
8633wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8635$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8636if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008638else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008639 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008640 save_LDFLAGS="$LDFLAGS"
8641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8644 # The linker can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 if test -s conftest.err; then
8647 # Append any errors to the config.log.
8648 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008649 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8651 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008652 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008653 fi
8654 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008655 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008656 fi
8657 fi
jimblandy92b1f832009-12-23 22:23:49 +00008658 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008659 LDFLAGS="$save_LDFLAGS"
8660
8661fi
jimblandy92b1f832009-12-23 22:23:49 +00008662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8663$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008664
ted.mielczarek1adb1842009-12-21 13:12:20 +00008665if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008666 :
8667else
8668 lt_prog_compiler_static=
8669fi
8670
8671
jimblandy92b1f832009-12-23 22:23:49 +00008672
8673
8674
8675
8676
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8678$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8679if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008681else
8682 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008683 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008684 mkdir conftest
8685 cd conftest
8686 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008688
8689 lt_compiler_flag="-o out/conftest2.$ac_objext"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +00008698 (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008699 (eval "$lt_compile" 2>out/conftest.err)
8700 ac_status=$?
8701 cat out/conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00008702 echo "$as_me:8702: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8704 then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008710 lt_cv_prog_compiler_c_o=yes
8711 fi
8712 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008713 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008714 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008715 # SGI C++ compiler will create directory out/ii_files/ for
8716 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8718 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008719 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008720 $RM -r conftest
8721 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008722
8723fi
jimblandy92b1f832009-12-23 22:23:49 +00008724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8725$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8726
8727
8728
8729
8730
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8733$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8734if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736else
8737 lt_cv_prog_compiler_c_o=no
8738 $RM -r conftest 2>/dev/null
8739 mkdir conftest
8740 cd conftest
8741 mkdir out
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743
8744 lt_compiler_flag="-o out/conftest2.$ac_objext"
8745 # Insert the option either (1) after the last *FLAGS variable, or
8746 # (2) before a word containing "conftest.", or (3) at the end.
8747 # Note that $ac_compile itself does not contain backslashes and begins
8748 # with a dollar sign (not a hyphen), so the echo should work correctly.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +00008753 (eval echo "\"\$as_me:8753: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008754 (eval "$lt_compile" 2>out/conftest.err)
8755 ac_status=$?
8756 cat out/conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +00008757 echo "$as_me:8757: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8759 then
8760 # The compiler can only warn and ignore the option if not recognized
8761 # So say no if there are warnings
8762 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler_c_o=yes
8766 fi
8767 fi
8768 chmod u+w . 2>&5
8769 $RM conftest*
8770 # SGI C++ compiler will create directory out/ii_files/ for
8771 # template instantiation
8772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8773 $RM out/* && rmdir out
8774 cd ..
8775 $RM -r conftest
8776 $RM conftest*
8777
8778fi
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8780$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8781
8782
brynercb91a2f2006-08-25 21:14:45 +00008783
8784
8785hard_links="nottested"
8786if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8787 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8789$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008790 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008791 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8793 touch conftest.a
8794 ln conftest.a conftest.b 2>&5 || hard_links=no
8795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8797$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008798 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8800$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008801 need_locks=warn
8802 fi
8803else
8804 need_locks=no
8805fi
8806
jimblandy92b1f832009-12-23 22:23:49 +00008807
8808
8809
8810
8811
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8813$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008814
8815 runpath_var=
8816 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008817 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008818 archive_cmds=
8819 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008820 compiler_needs_object=no
8821 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008822 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8824 hardcode_automatic=no
8825 hardcode_direct=no
8826 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008827 hardcode_libdir_flag_spec=
8828 hardcode_libdir_flag_spec_ld=
8829 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008830 hardcode_minus_L=no
8831 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008832 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008833 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008834 module_cmds=
8835 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008836 old_archive_from_new_cmds=
8837 old_archive_from_expsyms_cmds=
8838 thread_safe_flag_spec=
8839 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008840 # include_expsyms should be a list of space-separated symbols to be *always*
8841 # included in the symbol list
8842 include_expsyms=
8843 # exclude_expsyms can be an extended regexp of symbols to exclude
8844 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8845 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8846 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008847 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008848 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8849 # platforms (ab)use it in PIC code, but their linkers get confused if
8850 # the symbol is explicitly referenced. Since portable code cannot
8851 # rely on this symbol name, it's probably fine to never include it in
8852 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008853 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008854 extract_expsyms_cmds=
8855
8856 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008857 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8859 # When not using gcc, we currently assume that we are using
8860 # Microsoft Visual C++.
8861 if test "$GCC" != yes; then
8862 with_gnu_ld=no
8863 fi
8864 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008865 interix*)
8866 # we just hope/assume this is gcc and not c89 (= MSVC++)
8867 with_gnu_ld=yes
8868 ;;
brynercb91a2f2006-08-25 21:14:45 +00008869 openbsd*)
8870 with_gnu_ld=no
8871 ;;
8872 esac
8873
8874 ld_shlibs=yes
8875 if test "$with_gnu_ld" = yes; then
8876 # If archive_cmds runs LD, not CC, wlarc should be empty
8877 wlarc='${wl}'
8878
mmentovai8c2a4de2006-09-20 16:20:15 +00008879 # Set some defaults for GNU ld with shared library support. These
8880 # are reset later if shared libraries are not supported. Putting them
8881 # here allows them to be overridden if necessary.
8882 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008884 export_dynamic_flag_spec='${wl}--export-dynamic'
8885 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008886 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8887 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8888 else
8889 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008890 fi
8891 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008892 case `$LD -v 2>&1` in
mmentovai8c2a4de2006-09-20 16:20:15 +00008893 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8894 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8895 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8896 *\ 2.11.*) ;; # other 2.11 versions
8897 *) supports_anon_versioning=yes ;;
8898 esac
8899
brynercb91a2f2006-08-25 21:14:45 +00008900 # See if GNU ld supports shared libraries.
8901 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008902 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008903 # On AIX/PPC, the GNU linker is very broken
8904 if test "$host_cpu" != ia64; then
8905 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008906 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008907
8908*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8909*** to be unable to reliably create shared libraries on AIX.
8910*** Therefore, libtool is disabling shared libraries support. If you
8911*** really care for shared libraries, you may want to modify your PATH
8912*** so that a non-GNU linker is found, and then restart.
8913
jimblandy92b1f832009-12-23 22:23:49 +00008914_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008915 fi
8916 ;;
8917
8918 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008919 case $host_cpu in
8920 powerpc)
8921 # see comment about AmigaOS4 .so support
8922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 archive_expsym_cmds=''
8924 ;;
8925 m68k)
8926 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)'
8927 hardcode_libdir_flag_spec='-L$libdir'
8928 hardcode_minus_L=yes
8929 ;;
8930 esac
brynercb91a2f2006-08-25 21:14:45 +00008931 ;;
8932
8933 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00008934 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008935 allow_undefined_flag=unsupported
8936 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8937 # support --undefined. This deserves some investigation. FIXME
8938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 else
8940 ld_shlibs=no
8941 fi
8942 ;;
8943
jimblandy92b1f832009-12-23 22:23:49 +00008944 cygwin* | mingw* | pw32* | cegcc*)
8945 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00008946 # as there is no search path for DLLs.
8947 hardcode_libdir_flag_spec='-L$libdir'
8948 allow_undefined_flag=unsupported
8949 always_export_symbols=no
8950 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00008951 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 +00008952
jimblandy92b1f832009-12-23 22:23:49 +00008953 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008954 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 +00008955 # If the export-symbols file already is a .def file (1st line
8956 # is EXPORTS), use it as is; otherwise, prepend...
8957 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8958 cp $export_symbols $output_objdir/$soname.def;
8959 else
8960 echo EXPORTS > $output_objdir/$soname.def;
8961 cat $export_symbols >> $output_objdir/$soname.def;
8962 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00008963 $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 +00008964 else
8965 ld_shlibs=no
8966 fi
8967 ;;
8968
ted.mielczarek1adb1842009-12-21 13:12:20 +00008969 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008970 hardcode_direct=no
8971 hardcode_shlibpath_var=no
8972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8973 export_dynamic_flag_spec='${wl}-E'
8974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8975 # Instead, shared libraries are loaded at an image base (0x10000000 by
8976 # default) and relocated if they conflict, which is a slow very memory
8977 # consuming and fragmenting process. To avoid this, we pick a random,
8978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8981 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'
8982 ;;
8983
jimblandy92b1f832009-12-23 22:23:49 +00008984 gnu* | linux* | tpf* | k*bsd*-gnu)
8985 tmp_diet=no
8986 if test "$host_os" = linux-dietlibc; then
8987 case $cc_basename in
8988 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8989 esac
8990 fi
8991 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8992 && test "$tmp_diet" = no
8993 then
mmentovai8c2a4de2006-09-20 16:20:15 +00008994 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00008995 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00008996 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00008997 pgcc*) # Portland Group C compiler
8998 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 +00008999 tmp_addflag=' $pic_flag'
9000 ;;
9001 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00009002 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 +00009003 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00009005 tmp_addflag=' -i_dynamic' ;;
9006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9007 tmp_addflag=' -i_dynamic -nofor_main' ;;
9008 ifc* | ifort*) # Intel Fortran compiler
9009 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009010 lf95*) # Lahey Fortran 8.1
9011 whole_archive_flag_spec=
9012 tmp_sharedflag='--shared' ;;
9013 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9014 tmp_sharedflag='-qmkshrobj'
9015 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009016 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009017 case `$CC -V 2>&1 | sed 5q` in
9018 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009019 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'
9020 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009021 tmp_sharedflag='-G' ;;
9022 *Sun\ F*) # Sun Fortran 8.3
9023 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009024 esac
9025 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009026
jimblandy92b1f832009-12-23 22:23:49 +00009027 if test "x$supports_anon_versioning" = xyes; then
9028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9030 echo "local: *; };" >> $output_objdir/$libname.ver~
9031 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9032 fi
9033
9034 case $cc_basename in
9035 xlf*)
9036 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9037 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9038 hardcode_libdir_flag_spec=
9039 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9040 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9041 if test "x$supports_anon_versioning" = xyes; then
9042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9044 echo "local: *; };" >> $output_objdir/$libname.ver~
9045 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9046 fi
9047 ;;
9048 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009049 else
jimblandy92b1f832009-12-23 22:23:49 +00009050 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009051 fi
9052 ;;
9053
jimblandydc4029a2010-02-02 17:39:51 +00009054 netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00009055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009056 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9057 wlarc=
9058 else
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 fi
9062 ;;
9063
mmentovai8c2a4de2006-09-20 16:20:15 +00009064 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009065 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009066 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009067 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009068
9069*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9070*** create shared libraries on Solaris systems. Therefore, libtool
9071*** is disabling shared libraries support. We urge you to upgrade GNU
9072*** binutils to release 2.9.1 or newer. Another option is to modify
9073*** your PATH or compiler configuration so that the native linker is
9074*** used, and then restart.
9075
jimblandy92b1f832009-12-23 22:23:49 +00009076_LT_EOF
9077 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9080 else
9081 ld_shlibs=no
9082 fi
9083 ;;
9084
mmentovai8c2a4de2006-09-20 16:20:15 +00009085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9086 case `$LD -v 2>&1` in
9087 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9088 ld_shlibs=no
9089 cat <<_LT_EOF 1>&2
9090
9091*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9092*** reliably create shared libraries on SCO systems. Therefore, libtool
9093*** is disabling shared libraries support. We urge you to upgrade GNU
9094*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9095*** your PATH or compiler configuration so that the native linker is
9096*** used, and then restart.
9097
9098_LT_EOF
9099 ;;
9100 *)
jimblandy92b1f832009-12-23 22:23:49 +00009101 # For security reasons, it is highly recommended that you always
9102 # use absolute paths for naming shared libraries, and exclude the
9103 # DT_RUNPATH tag from executables and libraries. But doing so
9104 # requires that you compile everything twice, which is a pain.
9105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 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 +00009109 else
9110 ld_shlibs=no
9111 fi
9112 ;;
9113 esac
9114 ;;
9115
brynercb91a2f2006-08-25 21:14:45 +00009116 sunos4*)
9117 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9118 wlarc=
9119 hardcode_direct=yes
9120 hardcode_shlibpath_var=no
9121 ;;
9122
brynercb91a2f2006-08-25 21:14:45 +00009123 *)
jimblandy92b1f832009-12-23 22:23:49 +00009124 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127 else
9128 ld_shlibs=no
9129 fi
9130 ;;
9131 esac
9132
mmentovai8c2a4de2006-09-20 16:20:15 +00009133 if test "$ld_shlibs" = no; then
9134 runpath_var=
9135 hardcode_libdir_flag_spec=
9136 export_dynamic_flag_spec=
9137 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009138 fi
9139 else
9140 # PORTME fill in a description of your system's linker (not GNU ld)
9141 case $host_os in
9142 aix3*)
9143 allow_undefined_flag=unsupported
9144 always_export_symbols=yes
9145 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'
9146 # Note: this linker hardcodes the directories in LIBPATH if there
9147 # are no directories specified by -L.
9148 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009149 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009150 # Neither direct hardcoding nor static linking is supported with a
9151 # broken collect2.
9152 hardcode_direct=unsupported
9153 fi
9154 ;;
9155
ted.mielczarek1adb1842009-12-21 13:12:20 +00009156 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009157 if test "$host_cpu" = ia64; then
9158 # On IA64, the linker does run time linking by default, so we don't
9159 # have to do anything special.
9160 aix_use_runtimelinking=no
9161 exp_sym_flag='-Bexport'
9162 no_entry_flag=""
9163 else
9164 # If we're using GNU nm, then we don't want the "-C" option.
9165 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009166 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9167 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 +00009168 else
jimblandy92b1f832009-12-23 22:23:49 +00009169 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 +00009170 fi
9171 aix_use_runtimelinking=no
9172
9173 # Test if we are trying to use run time linking or normal
9174 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9175 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009176 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009177 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009178 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9179 aix_use_runtimelinking=yes
9180 break
9181 fi
brynercb91a2f2006-08-25 21:14:45 +00009182 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009183 ;;
brynercb91a2f2006-08-25 21:14:45 +00009184 esac
9185
9186 exp_sym_flag='-bexport'
9187 no_entry_flag='-bnoentry'
9188 fi
9189
9190 # When large executables or shared objects are built, AIX ld can
9191 # have problems creating the table of contents. If linking a library
9192 # or program results in "error TOC overflow" add -mminimal-toc to
9193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9195
9196 archive_cmds=''
9197 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009198 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009199 hardcode_libdir_separator=':'
9200 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009201 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009202
9203 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009204 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009205 # We only want to do this on AIX 4.2 and lower, the check
9206 # below for broken collect2 doesn't work under 4.3+
9207 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009208 if test -f "$collect2name" &&
9209 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009210 then
jimblandy92b1f832009-12-23 22:23:49 +00009211 # We have reworked collect2
9212 :
brynercb91a2f2006-08-25 21:14:45 +00009213 else
jimblandy92b1f832009-12-23 22:23:49 +00009214 # We have old collect2
9215 hardcode_direct=unsupported
9216 # It fails to find uninstalled libraries when the uninstalled
9217 # path is not listed in the libpath. Setting hardcode_minus_L
9218 # to unsupported forces relinking
9219 hardcode_minus_L=yes
9220 hardcode_libdir_flag_spec='-L$libdir'
9221 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009222 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009223 ;;
brynercb91a2f2006-08-25 21:14:45 +00009224 esac
9225 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009226 if test "$aix_use_runtimelinking" = yes; then
9227 shared_flag="$shared_flag "'${wl}-G'
9228 fi
brynercb91a2f2006-08-25 21:14:45 +00009229 else
9230 # not using gcc
9231 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009232 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9233 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009234 shared_flag='-G'
9235 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009236 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009237 shared_flag='${wl}-G'
9238 else
9239 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009240 fi
brynercb91a2f2006-08-25 21:14:45 +00009241 fi
9242 fi
9243
jimblandy92b1f832009-12-23 22:23:49 +00009244 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009245 # It seems that -bexpall does not export symbols beginning with
9246 # underscore (_), so it is better to generate a list of symbols to export.
9247 always_export_symbols=yes
9248 if test "$aix_use_runtimelinking" = yes; then
9249 # Warning - without using the other runtime loading flags (-brtl),
9250 # -berok will link without error, but may produce a broken library.
9251 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009252 # Determine the default libpath from the value encoded in an
9253 # empty executable.
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009255/* end confdefs.h. */
9256
9257int
9258main ()
9259{
9260
9261 ;
9262 return 0;
9263}
9264_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009265if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009266
ted.mielczarek1adb1842009-12-21 13:12:20 +00009267lt_aix_libpath_sed='
9268 /Import File Strings/,/^$/ {
9269 /^0/ {
9270 s/^0 *\(.*\)$/\1/
9271 p
9272 }
9273 }'
9274aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009275# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009276if test -z "$aix_libpath"; then
9277 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9278fi
brynercb91a2f2006-08-25 21:14:45 +00009279fi
jimblandy92b1f832009-12-23 22:23:49 +00009280rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009282if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9283
jimblandy92b1f832009-12-23 22:23:49 +00009284 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9285 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"
9286 else
brynercb91a2f2006-08-25 21:14:45 +00009287 if test "$host_cpu" = ia64; then
9288 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9289 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009290 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 +00009291 else
jimblandy92b1f832009-12-23 22:23:49 +00009292 # Determine the default libpath from the value encoded in an
9293 # empty executable.
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009295/* end confdefs.h. */
9296
9297int
9298main ()
9299{
9300
9301 ;
9302 return 0;
9303}
9304_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009305if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009306
ted.mielczarek1adb1842009-12-21 13:12:20 +00009307lt_aix_libpath_sed='
9308 /Import File Strings/,/^$/ {
9309 /^0/ {
9310 s/^0 *\(.*\)$/\1/
9311 p
9312 }
9313 }'
9314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009315# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009316if test -z "$aix_libpath"; then
9317 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9318fi
brynercb91a2f2006-08-25 21:14:45 +00009319fi
jimblandy92b1f832009-12-23 22:23:49 +00009320rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9323
9324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9325 # Warning - without using the other run time loading flags,
9326 # -berok will link without error, but may produce a broken library.
9327 no_undefined_flag=' ${wl}-bernotok'
9328 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009329 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009330 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009331 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009332 # This is similar to how AIX traditionally builds its shared libraries.
9333 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 +00009334 fi
9335 fi
9336 ;;
9337
9338 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009339 case $host_cpu in
9340 powerpc)
9341 # see comment about AmigaOS4 .so support
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds=''
9344 ;;
9345 m68k)
9346 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)'
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 hardcode_minus_L=yes
9349 ;;
9350 esac
brynercb91a2f2006-08-25 21:14:45 +00009351 ;;
9352
mmentovai8c2a4de2006-09-20 16:20:15 +00009353 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009354 export_dynamic_flag_spec=-rdynamic
9355 ;;
9356
jimblandy92b1f832009-12-23 22:23:49 +00009357 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009358 # When not using gcc, we currently assume that we are using
9359 # Microsoft Visual C++.
9360 # hardcode_libdir_flag_spec is actually meaningless, as there is
9361 # no search path for DLLs.
9362 hardcode_libdir_flag_spec=' '
9363 allow_undefined_flag=unsupported
9364 # Tell ltmain to make .lib files, not .a files.
9365 libext=lib
9366 # Tell ltmain to make .dll files, not .so files.
9367 shrext_cmds=".dll"
9368 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009369 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009370 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009371 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009372 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009373 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009374 fix_srcfile_path='`cygpath -w "$srcfile"`'
9375 enable_shared_with_static_runtimes=yes
9376 ;;
9377
9378 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009379
9380
9381 archive_cmds_need_lc=no
9382 hardcode_direct=no
9383 hardcode_automatic=yes
9384 hardcode_shlibpath_var=unsupported
9385 whole_archive_flag_spec=''
9386 link_all_deplibs=yes
9387 allow_undefined_flag="$_lt_dar_allow_undefined"
9388 case $cc_basename in
9389 ifort*) _lt_dar_can_shared=yes ;;
9390 *) _lt_dar_can_shared=$GCC ;;
9391 esac
9392 if test "$_lt_dar_can_shared" = "yes"; then
9393 output_verbose_link_cmd=echo
9394 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9395 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9396 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}"
9397 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}"
9398
9399 else
9400 ld_shlibs=no
9401 fi
9402
brynercb91a2f2006-08-25 21:14:45 +00009403 ;;
9404
9405 dgux*)
9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 hardcode_shlibpath_var=no
9409 ;;
9410
9411 freebsd1*)
9412 ld_shlibs=no
9413 ;;
9414
9415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9416 # support. Future versions do this automatically, but an explicit c++rt0.o
9417 # does not break anything, and helps significantly (at the cost of a little
9418 # extra space).
9419 freebsd2.2*)
9420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9421 hardcode_libdir_flag_spec='-R$libdir'
9422 hardcode_direct=yes
9423 hardcode_shlibpath_var=no
9424 ;;
9425
9426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9427 freebsd2*)
9428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_direct=yes
9430 hardcode_minus_L=yes
9431 hardcode_shlibpath_var=no
9432 ;;
9433
9434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009435 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009436 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9437 hardcode_libdir_flag_spec='-R$libdir'
9438 hardcode_direct=yes
9439 hardcode_shlibpath_var=no
9440 ;;
9441
9442 hpux9*)
9443 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009444 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 +00009445 else
jimblandy92b1f832009-12-23 22:23:49 +00009446 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 +00009447 fi
9448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449 hardcode_libdir_separator=:
9450 hardcode_direct=yes
9451
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9455 export_dynamic_flag_spec='${wl}-E'
9456 ;;
9457
mmentovai8c2a4de2006-09-20 16:20:15 +00009458 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9461 else
9462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9463 fi
9464 if test "$with_gnu_ld" = no; then
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009466 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009467 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009468 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009469 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009470 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9474 fi
9475 ;;
9476
9477 hpux11*)
9478 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9479 case $host_cpu in
9480 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009481 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009483 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009484 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009485 ;;
brynercb91a2f2006-08-25 21:14:45 +00009486 *)
9487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9488 ;;
9489 esac
9490 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009491 case $host_cpu in
9492 hppa*64*)
9493 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 ;;
9495 ia64*)
9496 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009497 ;;
9498 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009499 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 +00009500 ;;
9501 esac
9502 fi
9503 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9505 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009506
mmentovai8c2a4de2006-09-20 16:20:15 +00009507 case $host_cpu in
9508 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009509 hardcode_direct=no
9510 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009511 ;;
brynercb91a2f2006-08-25 21:14:45 +00009512 *)
brynercb91a2f2006-08-25 21:14:45 +00009513 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009514 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009515 export_dynamic_flag_spec='${wl}-E'
9516
9517 # hardcode_minus_L: Not really in the search PATH,
9518 # but as the default location of the library.
9519 hardcode_minus_L=yes
9520 ;;
9521 esac
9522 fi
9523 ;;
9524
9525 irix5* | irix6* | nonstopux*)
9526 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009527 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'
9528 # Try to use the -exported_symbol ld option, if it does not
9529 # work, assume that -exports_file does not work either and
9530 # implicitly export all symbols.
9531 save_LDFLAGS="$LDFLAGS"
9532 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534/* end confdefs.h. */
9535int foo(void) {}
9536_ACEOF
9537if ac_fn_c_try_link "$LINENO"; then :
9538 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'
9539
9540fi
9541rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009544 else
jimblandy92b1f832009-12-23 22:23:49 +00009545 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'
9546 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 +00009547 fi
jimblandy92b1f832009-12-23 22:23:49 +00009548 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009551 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009552 link_all_deplibs=yes
9553 ;;
9554
jimblandydc4029a2010-02-02 17:39:51 +00009555 netbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00009556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9558 else
9559 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9560 fi
9561 hardcode_libdir_flag_spec='-R$libdir'
9562 hardcode_direct=yes
9563 hardcode_shlibpath_var=no
9564 ;;
9565
9566 newsos6)
9567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_direct=yes
9569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9570 hardcode_libdir_separator=:
9571 hardcode_shlibpath_var=no
9572 ;;
9573
jimblandy92b1f832009-12-23 22:23:49 +00009574 *nto* | *qnx*)
9575 ;;
9576
brynercb91a2f2006-08-25 21:14:45 +00009577 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009578 if test -f /usr/libexec/ld.so; then
9579 hardcode_direct=yes
9580 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009581 hardcode_direct_absolute=yes
9582 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 +00009583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9585 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9586 export_dynamic_flag_spec='${wl}-E'
9587 else
9588 case $host_os in
9589 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_libdir_flag_spec='-R$libdir'
9592 ;;
9593 *)
9594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9596 ;;
9597 esac
jimblandy92b1f832009-12-23 22:23:49 +00009598 fi
brynercb91a2f2006-08-25 21:14:45 +00009599 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009600 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009601 fi
9602 ;;
9603
9604 os2*)
9605 hardcode_libdir_flag_spec='-L$libdir'
9606 hardcode_minus_L=yes
9607 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009608 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'
9609 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009610 ;;
9611
9612 osf3*)
9613 if test "$GCC" = yes; then
9614 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009615 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 +00009616 else
9617 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009618 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 +00009619 fi
jimblandy92b1f832009-12-23 22:23:49 +00009620 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9622 hardcode_libdir_separator=:
9623 ;;
9624
9625 osf4* | osf5*) # as osf3* with the addition of -msym flag
9626 if test "$GCC" = yes; then
9627 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009628 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 +00009629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9630 else
9631 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009632 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'
9633 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~
9634 $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 +00009635
9636 # Both c and cxx compiler support -rpath directly
9637 hardcode_libdir_flag_spec='-rpath $libdir'
9638 fi
jimblandy92b1f832009-12-23 22:23:49 +00009639 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009640 hardcode_libdir_separator=:
9641 ;;
9642
brynercb91a2f2006-08-25 21:14:45 +00009643 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009644 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009645 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009646 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009647 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9649 $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 +00009650 else
jimblandy92b1f832009-12-23 22:23:49 +00009651 case `$CC -V 2>&1` in
9652 *"Compilers 5.0"*)
9653 wlarc=''
9654 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9656 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9657 ;;
9658 *)
9659 wlarc='${wl}'
9660 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9662 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9663 ;;
9664 esac
brynercb91a2f2006-08-25 21:14:45 +00009665 fi
9666 hardcode_libdir_flag_spec='-R$libdir'
9667 hardcode_shlibpath_var=no
9668 case $host_os in
9669 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009670 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009671 # The compiler driver will combine and reorder linker options,
9672 # but understands `-z linker_flag'. GCC discards it without `$wl',
9673 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009674 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009675 if test "$GCC" = yes; then
9676 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9677 else
9678 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9679 fi
9680 ;;
brynercb91a2f2006-08-25 21:14:45 +00009681 esac
9682 link_all_deplibs=yes
9683 ;;
9684
9685 sunos4*)
9686 if test "x$host_vendor" = xsequent; then
9687 # Use $CC to link under sequent, because it throws in some extra .o
9688 # files that make .init and .fini sections work.
9689 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9690 else
9691 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9692 fi
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_direct=yes
9695 hardcode_minus_L=yes
9696 hardcode_shlibpath_var=no
9697 ;;
9698
9699 sysv4)
9700 case $host_vendor in
9701 sni)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_direct=yes # is this really true???
9704 ;;
9705 siemens)
9706 ## LD is ld it makes a PLAMLIB
9707 ## CC just makes a GrossModule.
9708 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9709 reload_cmds='$CC -r -o $output$reload_objs'
9710 hardcode_direct=no
9711 ;;
9712 motorola)
9713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9715 ;;
9716 esac
9717 runpath_var='LD_RUN_PATH'
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 sysv4.3*)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_shlibpath_var=no
9724 export_dynamic_flag_spec='-Bexport'
9725 ;;
9726
9727 sysv4*MP*)
9728 if test -d /usr/nec; then
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_shlibpath_var=no
9731 runpath_var=LD_RUN_PATH
9732 hardcode_runpath_var=yes
9733 ld_shlibs=yes
9734 fi
9735 ;;
9736
ted.mielczarek1adb1842009-12-21 13:12:20 +00009737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009738 no_undefined_flag='${wl}-z,text'
9739 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009740 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009741 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009742
mmentovai3261e8b2006-09-06 02:56:44 +00009743 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009744 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009746 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009747 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009749 fi
brynerd5e66382006-09-08 02:35:53 +00009750 ;;
9751
mmentovai8c2a4de2006-09-20 16:20:15 +00009752 sysv5* | sco3.2v5* | sco5v6*)
9753 # Note: We can NOT use -z defs as we might desire, because we do not
9754 # link with -lc, and that would cause any symbols used from libc to
9755 # always be unresolved, which means just about no library would
9756 # ever link correctly. If we're not using GNU ld we use -z text
9757 # though, which does catch some bad symbols but isn't as heavy-handed
9758 # as -z defs.
9759 no_undefined_flag='${wl}-z,text'
9760 allow_undefined_flag='${wl}-z,nodefs'
9761 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009762 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009763 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009764 hardcode_libdir_separator=':'
9765 link_all_deplibs=yes
9766 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009767 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009768
9769 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009770 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009772 else
jimblandy92b1f832009-12-23 22:23:49 +00009773 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009775 fi
brynercb91a2f2006-08-25 21:14:45 +00009776 ;;
9777
9778 uts4*)
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_shlibpath_var=no
9782 ;;
9783
9784 *)
9785 ld_shlibs=no
9786 ;;
9787 esac
jimblandy92b1f832009-12-23 22:23:49 +00009788
9789 if test x$host_vendor = xsni; then
9790 case $host in
9791 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9792 export_dynamic_flag_spec='${wl}-Blargedynsym'
9793 ;;
9794 esac
9795 fi
brynercb91a2f2006-08-25 21:14:45 +00009796 fi
9797
jimblandy92b1f832009-12-23 22:23:49 +00009798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9799$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009800test "$ld_shlibs" = no && can_build_shared=no
9801
jimblandy92b1f832009-12-23 22:23:49 +00009802with_gnu_ld=$with_gnu_ld
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
brynercb91a2f2006-08-25 21:14:45 +00009818#
9819# Do we need to explicitly link libc?
9820#
9821case "x$archive_cmds_need_lc" in
9822x|xyes)
9823 # Assume -lc should be added
9824 archive_cmds_need_lc=yes
9825
9826 if test "$enable_shared" = yes && test "$GCC" = yes; then
9827 case $archive_cmds in
9828 *'~'*)
9829 # FIXME: we may have to deal with multi-command sequences.
9830 ;;
9831 '$CC '*)
9832 # Test whether the compiler implicitly links with -lc since on some
9833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9834 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9836$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9837 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009839
jimblandy92b1f832009-12-23 22:23:49 +00009840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009841 (eval $ac_compile) 2>&5
9842 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009845 soname=conftest
9846 lib=conftest
9847 libobjs=conftest.$ac_objext
9848 deplibs=
9849 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009850 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009851 compiler_flags=-v
9852 linker_flags=-v
9853 verstring=
9854 output_objdir=.
9855 libname=conftest
9856 lt_save_allow_undefined_flag=$allow_undefined_flag
9857 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9859 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009860 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009863 then
9864 archive_cmds_need_lc=no
9865 else
9866 archive_cmds_need_lc=yes
9867 fi
9868 allow_undefined_flag=$lt_save_allow_undefined_flag
9869 else
9870 cat conftest.err 1>&5
9871 fi
jimblandy92b1f832009-12-23 22:23:49 +00009872 $RM conftest*
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9874$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009875 ;;
9876 esac
9877 fi
9878 ;;
9879esac
9880
jimblandy92b1f832009-12-23 22:23:49 +00009881
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
10032
10033
10034
10035
10036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10038$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010039
brynercb91a2f2006-08-25 21:14:45 +000010040if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010041 case $host_os in
10042 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10043 *) lt_awk_arg="/^libraries:/" ;;
10044 esac
10045 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 +000010046 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010047 # if the path contains ";" then we assume it to be the separator
10048 # otherwise default to the standard path separator (i.e. ":") - it is
10049 # assumed that no part of a normal pathname contains ";" but that should
10050 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010052 else
jimblandy92b1f832009-12-23 22:23:49 +000010053 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010054 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010055 # Ok, now we have the path, separated by spaces, we can step through it
10056 # and add multilib dir if necessary.
10057 lt_tmp_lt_search_path_spec=
10058 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10059 for lt_sys_path in $lt_search_path_spec; do
10060 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10061 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10062 else
10063 test -d "$lt_sys_path" && \
10064 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10065 fi
10066 done
jimblandy92b1f832009-12-23 22:23:49 +000010067 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010068BEGIN {RS=" "; FS="/|\n";} {
10069 lt_foo="";
10070 lt_count=0;
10071 for (lt_i = NF; lt_i > 0; lt_i--) {
10072 if ($lt_i != "" && $lt_i != ".") {
10073 if ($lt_i == "..") {
10074 lt_count++;
10075 } else {
10076 if (lt_count == 0) {
10077 lt_foo="/" $lt_i lt_foo;
10078 } else {
10079 lt_count--;
10080 }
10081 }
10082 }
10083 }
10084 if (lt_foo != "") { lt_freq[lt_foo]++; }
10085 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10086}'`
jimblandy92b1f832009-12-23 22:23:49 +000010087 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010088else
10089 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10090fi
jimblandy92b1f832009-12-23 22:23:49 +000010091library_names_spec=
10092libname_spec='lib$name'
10093soname_spec=
10094shrext_cmds=".so"
10095postinstall_cmds=
10096postuninstall_cmds=
10097finish_cmds=
10098finish_eval=
10099shlibpath_var=
10100shlibpath_overrides_runpath=unknown
10101version_type=none
10102dynamic_linker="$host_os ld.so"
10103sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010104need_lib_prefix=unknown
10105hardcode_into_libs=no
10106
10107# when you set need_version to no, make sure it does not cause -set_version
10108# flags to be left without arguments
10109need_version=unknown
10110
10111case $host_os in
10112aix3*)
10113 version_type=linux
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10115 shlibpath_var=LIBPATH
10116
10117 # AIX 3 has no versioning support, so we append a major version to the name.
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 ;;
10120
ted.mielczarek1adb1842009-12-21 13:12:20 +000010121aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010122 version_type=linux
10123 need_lib_prefix=no
10124 need_version=no
10125 hardcode_into_libs=yes
10126 if test "$host_cpu" = ia64; then
10127 # AIX 5 supports IA64
10128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10129 shlibpath_var=LD_LIBRARY_PATH
10130 else
10131 # With GCC up to 2.95.x, collect2 would create an import file
10132 # for dependence libraries. The import file would start with
10133 # the line `#! .'. This would cause the generated library to
10134 # depend on `.', always an invalid library. This was fixed in
10135 # development snapshots of GCC prior to 3.0.
10136 case $host_os in
10137 aix4 | aix4.[01] | aix4.[01].*)
10138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10139 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010140 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010141 :
10142 else
10143 can_build_shared=no
10144 fi
10145 ;;
10146 esac
10147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10148 # soname into executable. Probably we can add versioning support to
10149 # collect2, so additional links can be useful in future.
10150 if test "$aix_use_runtimelinking" = yes; then
10151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10152 # instead of lib<name>.a to let people know that these are not
10153 # typical AIX shared libraries.
10154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155 else
10156 # We preserve .a as extension for shared libraries through AIX4.2
10157 # and later when we are not doing run time linking.
10158 library_names_spec='${libname}${release}.a $libname.a'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 fi
10161 shlibpath_var=LIBPATH
10162 fi
10163 ;;
10164
10165amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010166 case $host_cpu in
10167 powerpc)
10168 # Since July 2007 AmigaOS4 officially supports .so libraries.
10169 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 ;;
10172 m68k)
10173 library_names_spec='$libname.ixlibrary $libname.a'
10174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10175 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'
10176 ;;
10177 esac
brynercb91a2f2006-08-25 21:14:45 +000010178 ;;
10179
10180beos*)
10181 library_names_spec='${libname}${shared_ext}'
10182 dynamic_linker="$host_os ld.so"
10183 shlibpath_var=LIBRARY_PATH
10184 ;;
10185
mmentovai8c2a4de2006-09-20 16:20:15 +000010186bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010187 version_type=linux
10188 need_version=no
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10190 soname_spec='${libname}${release}${shared_ext}$major'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10194 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10195 # the default ld.so.conf also contains /usr/contrib/lib and
10196 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10197 # libtool to hard-code these into programs
10198 ;;
10199
jimblandy92b1f832009-12-23 22:23:49 +000010200cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010201 version_type=windows
10202 shrext_cmds=".dll"
10203 need_version=no
10204 need_lib_prefix=no
10205
10206 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010207 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010208 library_names_spec='$libname.dll.a'
10209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10210 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010212 dldir=$destdir/`dirname \$dlpath`~
10213 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010214 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010215 chmod a+x \$dldir/$dlname~
10216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10218 fi'
brynercb91a2f2006-08-25 21:14:45 +000010219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10220 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010221 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010222 shlibpath_overrides_runpath=yes
10223
10224 case $host_os in
10225 cygwin*)
10226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10229 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010230 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010231 # MinGW DLLs use traditional 'lib' prefix
10232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010233 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10234 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010235 # It is most probably a Windows format PATH printed by
10236 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10237 # path with ; separators, and with drive letters. We can handle the
10238 # drive letters (cygwin fileutils understands them), so leave them,
10239 # especially as we might pass files found there to a mingw objdump,
10240 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010242 else
jimblandy92b1f832009-12-23 22:23:49 +000010243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010244 fi
10245 ;;
10246 pw32*)
10247 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010248 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 +000010249 ;;
10250 esac
10251 ;;
10252
10253 *)
10254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10255 ;;
10256 esac
10257 dynamic_linker='Win32 ld.exe'
10258 # FIXME: first we should search . and the directory the executable is in
10259 shlibpath_var=PATH
10260 ;;
10261
10262darwin* | rhapsody*)
10263 dynamic_linker="$host_os dyld"
10264 version_type=darwin
10265 need_lib_prefix=no
10266 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010268 soname_spec='${libname}${release}${major}$shared_ext'
10269 shlibpath_overrides_runpath=yes
10270 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010272
10273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10275 ;;
10276
10277dgux*)
10278 version_type=linux
10279 need_lib_prefix=no
10280 need_version=no
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 ;;
10285
10286freebsd1*)
10287 dynamic_linker=no
10288 ;;
10289
mmentovai8c2a4de2006-09-20 16:20:15 +000010290freebsd* | dragonfly*)
10291 # DragonFly does not have aout. When/if they implement a new
10292 # versioning mechanism, adjust this.
10293 if test -x /usr/bin/objformat; then
10294 objformat=`/usr/bin/objformat`
10295 else
10296 case $host_os in
10297 freebsd[123]*) objformat=aout ;;
10298 *) objformat=elf ;;
10299 esac
10300 fi
brynercb91a2f2006-08-25 21:14:45 +000010301 version_type=freebsd-$objformat
10302 case $version_type in
10303 freebsd-elf*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 need_version=no
10306 need_lib_prefix=no
10307 ;;
10308 freebsd-*)
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10310 need_version=yes
10311 ;;
10312 esac
10313 shlibpath_var=LD_LIBRARY_PATH
10314 case $host_os in
10315 freebsd2*)
10316 shlibpath_overrides_runpath=yes
10317 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010318 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010319 shlibpath_overrides_runpath=yes
10320 hardcode_into_libs=yes
10321 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10326 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010327 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010328 shlibpath_overrides_runpath=yes
10329 hardcode_into_libs=yes
10330 ;;
brynercb91a2f2006-08-25 21:14:45 +000010331 esac
10332 ;;
10333
10334gnu*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10339 soname_spec='${libname}${release}${shared_ext}$major'
10340 shlibpath_var=LD_LIBRARY_PATH
10341 hardcode_into_libs=yes
10342 ;;
10343
10344hpux9* | hpux10* | hpux11*)
10345 # Give a soname corresponding to the major version so that dld.sl refuses to
10346 # link against other versions.
10347 version_type=sunos
10348 need_lib_prefix=no
10349 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010350 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010351 ia64*)
10352 shrext_cmds='.so'
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.so"
10355 shlibpath_var=LD_LIBRARY_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 if test "X$HPUX_IA64_MODE" = X32; then
10360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10361 else
10362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10363 fi
10364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10365 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010366 hppa*64*)
10367 shrext_cmds='.sl'
10368 hardcode_into_libs=yes
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10376 ;;
10377 *)
brynercb91a2f2006-08-25 21:14:45 +000010378 shrext_cmds='.sl'
10379 dynamic_linker="$host_os dld.sl"
10380 shlibpath_var=SHLIB_PATH
10381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 ;;
10385 esac
10386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10387 postinstall_cmds='chmod 555 $lib'
10388 ;;
10389
ted.mielczarek1adb1842009-12-21 13:12:20 +000010390interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010391 version_type=linux
10392 need_lib_prefix=no
10393 need_version=no
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 shlibpath_overrides_runpath=no
10399 hardcode_into_libs=yes
10400 ;;
10401
brynercb91a2f2006-08-25 21:14:45 +000010402irix5* | irix6* | nonstopux*)
10403 case $host_os in
10404 nonstopux*) version_type=nonstopux ;;
10405 *)
10406 if test "$lt_cv_prog_gnu_ld" = yes; then
10407 version_type=linux
10408 else
10409 version_type=irix
10410 fi ;;
10411 esac
10412 need_lib_prefix=no
10413 need_version=no
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10416 case $host_os in
10417 irix5* | nonstopux*)
10418 libsuff= shlibsuff=
10419 ;;
10420 *)
10421 case $LD in # libtool.m4 will add one of these switches to LD
10422 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10423 libsuff= shlibsuff= libmagic=32-bit;;
10424 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10425 libsuff=32 shlibsuff=N32 libmagic=N32;;
10426 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10427 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10428 *) libsuff= shlibsuff= libmagic=never-match;;
10429 esac
10430 ;;
10431 esac
10432 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10433 shlibpath_overrides_runpath=no
10434 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10435 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10436 hardcode_into_libs=yes
10437 ;;
10438
10439# No shared lib support for Linux oldld, aout, or coff.
10440linux*oldld* | linux*aout* | linux*coff*)
10441 dynamic_linker=no
10442 ;;
10443
10444# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000010445linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010446 version_type=linux
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010454 # Some binutils ld are patched to set DT_RUNPATH
10455 save_LDFLAGS=$LDFLAGS
10456 save_libdir=$libdir
10457 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10458 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h. */
10461
10462int
10463main ()
10464{
10465
10466 ;
10467 return 0;
10468}
10469_ACEOF
10470if ac_fn_c_try_link "$LINENO"; then :
10471 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10472 shlibpath_overrides_runpath=yes
10473fi
10474fi
10475rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10477 LDFLAGS=$save_LDFLAGS
10478 libdir=$save_libdir
10479
brynercb91a2f2006-08-25 21:14:45 +000010480 # This implies no fast_install, which is unacceptable.
10481 # Some rework will be needed to allow for fast_install
10482 # before this can be enabled.
10483 hardcode_into_libs=yes
10484
10485 # Append ld.so.conf contents to the search path
10486 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010487 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 +000010488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10489 fi
10490
10491 # We used to test for /lib/ld.so.1 and disable shared libraries on
10492 # powerpc, because MkLinux only supported shared libraries with the
10493 # GNU dynamic linker. Since this was broken with cross compilers,
10494 # most powerpc-linux boxes support dynamic linking these days and
10495 # people can always --disable-shared, the test was removed, and we
10496 # assume the GNU/Linux dynamic linker is in use.
10497 dynamic_linker='GNU/Linux ld.so'
10498 ;;
10499
brynercb91a2f2006-08-25 21:14:45 +000010500netbsd*)
10501 version_type=sunos
10502 need_lib_prefix=no
10503 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010504 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10507 dynamic_linker='NetBSD (a.out) ld.so'
10508 else
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10510 soname_spec='${libname}${release}${shared_ext}$major'
10511 dynamic_linker='NetBSD ld.elf_so'
10512 fi
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 ;;
10517
10518newsos6)
10519 version_type=linux
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=yes
10523 ;;
10524
jimblandy92b1f832009-12-23 22:23:49 +000010525*nto* | *qnx*)
10526 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010532 shlibpath_overrides_runpath=no
10533 hardcode_into_libs=yes
10534 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010535 ;;
10536
10537openbsd*)
10538 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010539 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010540 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010541 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10542 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010543 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10544 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010545 esac
brynercb91a2f2006-08-25 21:14:45 +000010546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10548 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010550 case $host_os in
10551 openbsd2.[89] | openbsd2.[89].*)
10552 shlibpath_overrides_runpath=no
10553 ;;
10554 *)
10555 shlibpath_overrides_runpath=yes
10556 ;;
10557 esac
10558 else
10559 shlibpath_overrides_runpath=yes
10560 fi
10561 ;;
10562
10563os2*)
10564 libname_spec='$name'
10565 shrext_cmds=".dll"
10566 need_lib_prefix=no
10567 library_names_spec='$libname${shared_ext} $libname.a'
10568 dynamic_linker='OS/2 ld.exe'
10569 shlibpath_var=LIBPATH
10570 ;;
10571
10572osf3* | osf4* | osf5*)
10573 version_type=osf
10574 need_lib_prefix=no
10575 need_version=no
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10580 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10581 ;;
10582
ted.mielczarek1adb1842009-12-21 13:12:20 +000010583rdos*)
10584 dynamic_linker=no
10585 ;;
10586
brynercb91a2f2006-08-25 21:14:45 +000010587solaris*)
10588 version_type=linux
10589 need_lib_prefix=no
10590 need_version=no
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 hardcode_into_libs=yes
10596 # ldd complains unless libraries are executable
10597 postinstall_cmds='chmod +x $lib'
10598 ;;
10599
10600sunos4*)
10601 version_type=sunos
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10603 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10604 shlibpath_var=LD_LIBRARY_PATH
10605 shlibpath_overrides_runpath=yes
10606 if test "$with_gnu_ld" = yes; then
10607 need_lib_prefix=no
10608 fi
10609 need_version=yes
10610 ;;
10611
mmentovai8c2a4de2006-09-20 16:20:15 +000010612sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010613 version_type=linux
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 case $host_vendor in
10618 sni)
10619 shlibpath_overrides_runpath=no
10620 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010621 runpath_var=LD_RUN_PATH
10622 ;;
10623 siemens)
10624 need_lib_prefix=no
10625 ;;
10626 motorola)
10627 need_lib_prefix=no
10628 need_version=no
10629 shlibpath_overrides_runpath=no
10630 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10631 ;;
10632 esac
10633 ;;
10634
10635sysv4*MP*)
10636 if test -d /usr/nec ;then
10637 version_type=linux
10638 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10639 soname_spec='$libname${shared_ext}.$major'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 fi
10642 ;;
10643
mmentovai8c2a4de2006-09-20 16:20:15 +000010644sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10645 version_type=freebsd-elf
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010651 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010652 hardcode_into_libs=yes
10653 if test "$with_gnu_ld" = yes; then
10654 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010655 else
10656 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010657 case $host_os in
10658 sco3.2v5*)
10659 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10660 ;;
10661 esac
10662 fi
10663 sys_lib_dlsearch_path_spec='/usr/lib'
10664 ;;
10665
jimblandy92b1f832009-12-23 22:23:49 +000010666tpf*)
10667 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10668 version_type=linux
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=no
10674 hardcode_into_libs=yes
10675 ;;
10676
brynercb91a2f2006-08-25 21:14:45 +000010677uts4*)
10678 version_type=linux
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 ;;
10683
10684*)
10685 dynamic_linker=no
10686 ;;
10687esac
jimblandy92b1f832009-12-23 22:23:49 +000010688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10689$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010690test "$dynamic_linker" = no && can_build_shared=no
10691
mmentovai8c2a4de2006-09-20 16:20:15 +000010692variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10693if test "$GCC" = yes; then
10694 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10695fi
10696
jimblandy92b1f832009-12-23 22:23:49 +000010697if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10698 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10699fi
10700if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10701 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10702fi
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
10785
10786
10787
10788
10789
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10791$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010792hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010793if test -n "$hardcode_libdir_flag_spec" ||
10794 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010795 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010796
jimblandy92b1f832009-12-23 22:23:49 +000010797 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010798 if test "$hardcode_direct" != no &&
10799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10800 # have to relink, otherwise we might link with an installed library
10801 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010802 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010803 test "$hardcode_minus_L" != no; then
10804 # Linking always hardcodes the temporary library directory.
10805 hardcode_action=relink
10806 else
10807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10808 hardcode_action=immediate
10809 fi
10810else
10811 # We cannot hardcode anything, or else we can only hardcode existing
10812 # directories.
10813 hardcode_action=unsupported
10814fi
jimblandy92b1f832009-12-23 22:23:49 +000010815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10816$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010817
jimblandy92b1f832009-12-23 22:23:49 +000010818if test "$hardcode_action" = relink ||
10819 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010820 # Fast installation is not supported
10821 enable_fast_install=no
10822elif test "$shlibpath_overrides_runpath" = yes ||
10823 test "$enable_shared" = no; then
10824 # Fast installation is not necessary
10825 enable_fast_install=needless
10826fi
10827
brynercb91a2f2006-08-25 21:14:45 +000010828
jimblandy92b1f832009-12-23 22:23:49 +000010829
10830
10831
10832
10833 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010834 enable_dlopen=unknown
10835 enable_dlopen_self=unknown
10836 enable_dlopen_self_static=unknown
10837else
10838 lt_cv_dlopen=no
10839 lt_cv_dlopen_libs=
10840
10841 case $host_os in
10842 beos*)
10843 lt_cv_dlopen="load_add_on"
10844 lt_cv_dlopen_libs=
10845 lt_cv_dlopen_self=yes
10846 ;;
10847
jimblandy92b1f832009-12-23 22:23:49 +000010848 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010849 lt_cv_dlopen="LoadLibrary"
10850 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010851 ;;
brynercb91a2f2006-08-25 21:14:45 +000010852
10853 cygwin*)
10854 lt_cv_dlopen="dlopen"
10855 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010856 ;;
brynercb91a2f2006-08-25 21:14:45 +000010857
10858 darwin*)
10859 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10861$as_echo_n "checking for dlopen in -ldl... " >&6; }
10862if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010864else
10865 ac_check_lib_save_LIBS=$LIBS
10866LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010868/* end confdefs.h. */
10869
mmentovai8c2a4de2006-09-20 16:20:15 +000010870/* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010873#ifdef __cplusplus
10874extern "C"
10875#endif
brynercb91a2f2006-08-25 21:14:45 +000010876char dlopen ();
10877int
10878main ()
10879{
mmentovai8c2a4de2006-09-20 16:20:15 +000010880return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010881 ;
10882 return 0;
10883}
10884_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010885if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010886 ac_cv_lib_dl_dlopen=yes
10887else
jimblandy92b1f832009-12-23 22:23:49 +000010888 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010889fi
jimblandy92b1f832009-12-23 22:23:49 +000010890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010892LIBS=$ac_check_lib_save_LIBS
10893fi
jimblandy92b1f832009-12-23 22:23:49 +000010894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10896if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898else
10899
10900 lt_cv_dlopen="dyld"
10901 lt_cv_dlopen_libs=
10902 lt_cv_dlopen_self=yes
10903
10904fi
10905
jimblandy92b1f832009-12-23 22:23:49 +000010906 ;;
brynercb91a2f2006-08-25 21:14:45 +000010907
10908 *)
jimblandy92b1f832009-12-23 22:23:49 +000010909 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10910if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010911 lt_cv_dlopen="shl_load"
10912else
jimblandy92b1f832009-12-23 22:23:49 +000010913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10914$as_echo_n "checking for shl_load in -ldld... " >&6; }
10915if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10916 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010917else
10918 ac_check_lib_save_LIBS=$LIBS
10919LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010921/* end confdefs.h. */
10922
mmentovai8c2a4de2006-09-20 16:20:15 +000010923/* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010926#ifdef __cplusplus
10927extern "C"
10928#endif
brynercb91a2f2006-08-25 21:14:45 +000010929char shl_load ();
10930int
10931main ()
10932{
mmentovai8c2a4de2006-09-20 16:20:15 +000010933return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000010934 ;
10935 return 0;
10936}
10937_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010938if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010939 ac_cv_lib_dld_shl_load=yes
10940else
jimblandy92b1f832009-12-23 22:23:49 +000010941 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000010942fi
jimblandy92b1f832009-12-23 22:23:49 +000010943rm -f core conftest.err conftest.$ac_objext \
10944 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010945LIBS=$ac_check_lib_save_LIBS
10946fi
jimblandy92b1f832009-12-23 22:23:49 +000010947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10948$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10949if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000010950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000010951else
jimblandy92b1f832009-12-23 22:23:49 +000010952 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10953if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010954 lt_cv_dlopen="dlopen"
10955else
jimblandy92b1f832009-12-23 22:23:49 +000010956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10957$as_echo_n "checking for dlopen in -ldl... " >&6; }
10958if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010960else
10961 ac_check_lib_save_LIBS=$LIBS
10962LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010964/* end confdefs.h. */
10965
mmentovai8c2a4de2006-09-20 16:20:15 +000010966/* Override any GCC internal prototype to avoid an error.
10967 Use char because int might match the return type of a GCC
10968 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010969#ifdef __cplusplus
10970extern "C"
10971#endif
brynercb91a2f2006-08-25 21:14:45 +000010972char dlopen ();
10973int
10974main ()
10975{
mmentovai8c2a4de2006-09-20 16:20:15 +000010976return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010977 ;
10978 return 0;
10979}
10980_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010981if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010982 ac_cv_lib_dl_dlopen=yes
10983else
jimblandy92b1f832009-12-23 22:23:49 +000010984 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010985fi
jimblandy92b1f832009-12-23 22:23:49 +000010986rm -f core conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010988LIBS=$ac_check_lib_save_LIBS
10989fi
jimblandy92b1f832009-12-23 22:23:49 +000010990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10991$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10992if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10994else
jimblandy92b1f832009-12-23 22:23:49 +000010995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10996$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10997if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10998 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010999else
11000 ac_check_lib_save_LIBS=$LIBS
11001LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011003/* end confdefs.h. */
11004
mmentovai8c2a4de2006-09-20 16:20:15 +000011005/* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011008#ifdef __cplusplus
11009extern "C"
11010#endif
brynercb91a2f2006-08-25 21:14:45 +000011011char dlopen ();
11012int
11013main ()
11014{
mmentovai8c2a4de2006-09-20 16:20:15 +000011015return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011016 ;
11017 return 0;
11018}
11019_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011020if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011021 ac_cv_lib_svld_dlopen=yes
11022else
jimblandy92b1f832009-12-23 22:23:49 +000011023 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011024fi
jimblandy92b1f832009-12-23 22:23:49 +000011025rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011027LIBS=$ac_check_lib_save_LIBS
11028fi
jimblandy92b1f832009-12-23 22:23:49 +000011029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11030$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11031if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11033else
jimblandy92b1f832009-12-23 22:23:49 +000011034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11035$as_echo_n "checking for dld_link in -ldld... " >&6; }
11036if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011038else
11039 ac_check_lib_save_LIBS=$LIBS
11040LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011042/* end confdefs.h. */
11043
mmentovai8c2a4de2006-09-20 16:20:15 +000011044/* Override any GCC internal prototype to avoid an error.
11045 Use char because int might match the return type of a GCC
11046 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011047#ifdef __cplusplus
11048extern "C"
11049#endif
brynercb91a2f2006-08-25 21:14:45 +000011050char dld_link ();
11051int
11052main ()
11053{
mmentovai8c2a4de2006-09-20 16:20:15 +000011054return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011055 ;
11056 return 0;
11057}
11058_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011059if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011060 ac_cv_lib_dld_dld_link=yes
11061else
jimblandy92b1f832009-12-23 22:23:49 +000011062 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011063fi
jimblandy92b1f832009-12-23 22:23:49 +000011064rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011066LIBS=$ac_check_lib_save_LIBS
11067fi
jimblandy92b1f832009-12-23 22:23:49 +000011068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11069$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11070if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011071 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011072fi
11073
11074
11075fi
11076
11077
11078fi
11079
11080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089 ;;
11090 esac
11091
11092 if test "x$lt_cv_dlopen" != xno; then
11093 enable_dlopen=yes
11094 else
11095 enable_dlopen=no
11096 fi
11097
11098 case $lt_cv_dlopen in
11099 dlopen)
11100 save_CPPFLAGS="$CPPFLAGS"
11101 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11102
11103 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011105
11106 save_LIBS="$LIBS"
11107 LIBS="$lt_cv_dlopen_libs $LIBS"
11108
jimblandy92b1f832009-12-23 22:23:49 +000011109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11110$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11111if test "${lt_cv_dlopen_self+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011113else
11114 if test "$cross_compiling" = yes; then :
11115 lt_cv_dlopen_self=cross
11116else
11117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11118 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011119 cat > conftest.$ac_ext <<_LT_EOF
nealsidde545c02010-03-02 00:39:48 +000011120#line 11120 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011121#include "confdefs.h"
11122
11123#if HAVE_DLFCN_H
11124#include <dlfcn.h>
11125#endif
11126
11127#include <stdio.h>
11128
11129#ifdef RTLD_GLOBAL
11130# define LT_DLGLOBAL RTLD_GLOBAL
11131#else
11132# ifdef DL_GLOBAL
11133# define LT_DLGLOBAL DL_GLOBAL
11134# else
11135# define LT_DLGLOBAL 0
11136# endif
11137#endif
11138
11139/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11140 find out it does not work in some platform. */
11141#ifndef LT_DLLAZY_OR_NOW
11142# ifdef RTLD_LAZY
11143# define LT_DLLAZY_OR_NOW RTLD_LAZY
11144# else
11145# ifdef DL_LAZY
11146# define LT_DLLAZY_OR_NOW DL_LAZY
11147# else
11148# ifdef RTLD_NOW
11149# define LT_DLLAZY_OR_NOW RTLD_NOW
11150# else
11151# ifdef DL_NOW
11152# define LT_DLLAZY_OR_NOW DL_NOW
11153# else
11154# define LT_DLLAZY_OR_NOW 0
11155# endif
11156# endif
11157# endif
11158# endif
11159#endif
11160
brynercb91a2f2006-08-25 21:14:45 +000011161void fnord() { int i=42;}
11162int main ()
11163{
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11166
11167 if (self)
11168 {
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11171 /* dlclose (self); */
11172 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011173 else
11174 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011175
jimblandy92b1f832009-12-23 22:23:49 +000011176 return status;
brynercb91a2f2006-08-25 21:14:45 +000011177}
jimblandy92b1f832009-12-23 22:23:49 +000011178_LT_EOF
11179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011180 (eval $ac_link) 2>&5
11181 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011184 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011185 lt_status=$?
11186 case x$lt_status in
11187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011190 esac
11191 else :
11192 # compilation failed
11193 lt_cv_dlopen_self=no
11194 fi
11195fi
11196rm -fr conftest*
11197
11198
11199fi
jimblandy92b1f832009-12-23 22:23:49 +000011200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11201$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011202
11203 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11206$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11207if test "${lt_cv_dlopen_self_static+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011209else
11210 if test "$cross_compiling" = yes; then :
11211 lt_cv_dlopen_self_static=cross
11212else
11213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11214 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011215 cat > conftest.$ac_ext <<_LT_EOF
nealsidde545c02010-03-02 00:39:48 +000011216#line 11216 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011217#include "confdefs.h"
11218
11219#if HAVE_DLFCN_H
11220#include <dlfcn.h>
11221#endif
11222
11223#include <stdio.h>
11224
11225#ifdef RTLD_GLOBAL
11226# define LT_DLGLOBAL RTLD_GLOBAL
11227#else
11228# ifdef DL_GLOBAL
11229# define LT_DLGLOBAL DL_GLOBAL
11230# else
11231# define LT_DLGLOBAL 0
11232# endif
11233#endif
11234
11235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11236 find out it does not work in some platform. */
11237#ifndef LT_DLLAZY_OR_NOW
11238# ifdef RTLD_LAZY
11239# define LT_DLLAZY_OR_NOW RTLD_LAZY
11240# else
11241# ifdef DL_LAZY
11242# define LT_DLLAZY_OR_NOW DL_LAZY
11243# else
11244# ifdef RTLD_NOW
11245# define LT_DLLAZY_OR_NOW RTLD_NOW
11246# else
11247# ifdef DL_NOW
11248# define LT_DLLAZY_OR_NOW DL_NOW
11249# else
11250# define LT_DLLAZY_OR_NOW 0
11251# endif
11252# endif
11253# endif
11254# endif
11255#endif
11256
brynercb91a2f2006-08-25 21:14:45 +000011257void fnord() { int i=42;}
11258int main ()
11259{
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11262
11263 if (self)
11264 {
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11267 /* dlclose (self); */
11268 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011269 else
11270 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011271
jimblandy92b1f832009-12-23 22:23:49 +000011272 return status;
brynercb91a2f2006-08-25 21:14:45 +000011273}
jimblandy92b1f832009-12-23 22:23:49 +000011274_LT_EOF
11275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011276 (eval $ac_link) 2>&5
11277 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11279 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011280 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011281 lt_status=$?
11282 case x$lt_status in
11283 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11284 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011285 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011286 esac
11287 else :
11288 # compilation failed
11289 lt_cv_dlopen_self_static=no
11290 fi
11291fi
11292rm -fr conftest*
11293
11294
11295fi
jimblandy92b1f832009-12-23 22:23:49 +000011296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11297$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011298 fi
11299
11300 CPPFLAGS="$save_CPPFLAGS"
11301 LDFLAGS="$save_LDFLAGS"
11302 LIBS="$save_LIBS"
11303 ;;
11304 esac
11305
11306 case $lt_cv_dlopen_self in
11307 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11308 *) enable_dlopen_self=unknown ;;
11309 esac
11310
11311 case $lt_cv_dlopen_self_static in
11312 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11313 *) enable_dlopen_self_static=unknown ;;
11314 esac
11315fi
11316
11317
brynercb91a2f2006-08-25 21:14:45 +000011318
brynercb91a2f2006-08-25 21:14:45 +000011319
brynercb91a2f2006-08-25 21:14:45 +000011320
jimblandy92b1f832009-12-23 22:23:49 +000011321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333striplib=
11334old_striplib=
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11336$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11337if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11338 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11339 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11341$as_echo "yes" >&6; }
11342else
11343# FIXME - insert some real tests, host_os isn't really good enough
11344 case $host_os in
11345 darwin*)
11346 if test -n "$STRIP" ; then
11347 striplib="$STRIP -x"
11348 old_striplib="$STRIP -S"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350$as_echo "yes" >&6; }
11351 else
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
11354 fi
brynercb91a2f2006-08-25 21:14:45 +000011355 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011356 *)
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011359 ;;
11360 esac
jimblandy92b1f832009-12-23 22:23:49 +000011361fi
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
brynercb91a2f2006-08-25 21:14:45 +000011368
brynercb91a2f2006-08-25 21:14:45 +000011369
brynercb91a2f2006-08-25 21:14:45 +000011370
brynercb91a2f2006-08-25 21:14:45 +000011371
brynercb91a2f2006-08-25 21:14:45 +000011372
brynercb91a2f2006-08-25 21:14:45 +000011373
jimblandy92b1f832009-12-23 22:23:49 +000011374 # Report which library types will actually be built
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11376$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11378$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011379
jimblandy92b1f832009-12-23 22:23:49 +000011380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11381$as_echo_n "checking whether to build shared libraries... " >&6; }
11382 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011383
jimblandy92b1f832009-12-23 22:23:49 +000011384 # On AIX, shared libraries and static libraries use the same namespace, and
11385 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011386 case $host_os in
11387 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011388 test "$enable_shared" = yes && enable_static=no
11389 if test -n "$RANLIB"; then
11390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11391 postinstall_cmds='$RANLIB $lib'
11392 fi
11393 ;;
brynercb91a2f2006-08-25 21:14:45 +000011394
jimblandy92b1f832009-12-23 22:23:49 +000011395 aix[4-9]*)
11396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11397 test "$enable_shared" = yes && enable_static=no
11398 fi
brynercb91a2f2006-08-25 21:14:45 +000011399 ;;
11400 esac
jimblandy92b1f832009-12-23 22:23:49 +000011401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11402$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011403
jimblandy92b1f832009-12-23 22:23:49 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11405$as_echo_n "checking whether to build static libraries... " >&6; }
11406 # Make sure either enable_shared or enable_static is yes.
11407 test "$enable_shared" = yes || enable_static=yes
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11409$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011410
brynercb91a2f2006-08-25 21:14:45 +000011411
jimblandy92b1f832009-12-23 22:23:49 +000011412
11413
brynercb91a2f2006-08-25 21:14:45 +000011414fi
brynercb91a2f2006-08-25 21:14:45 +000011415ac_ext=c
11416ac_cpp='$CPP $CPPFLAGS'
11417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11419ac_compiler_gnu=$ac_cv_c_compiler_gnu
11420
11421CC="$lt_save_CC"
11422
11423
jimblandy92b1f832009-12-23 22:23:49 +000011424ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011425ac_cpp='$CXXCPP $CPPFLAGS'
11426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11429
brynercb91a2f2006-08-25 21:14:45 +000011430archive_cmds_need_lc_CXX=no
11431allow_undefined_flag_CXX=
11432always_export_symbols_CXX=no
11433archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011434compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011435export_dynamic_flag_spec_CXX=
11436hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011437hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011438hardcode_libdir_flag_spec_CXX=
11439hardcode_libdir_flag_spec_ld_CXX=
11440hardcode_libdir_separator_CXX=
11441hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011442hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011443hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011444inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011445module_cmds_CXX=
11446module_expsym_cmds_CXX=
11447link_all_deplibs_CXX=unknown
11448old_archive_cmds_CXX=$old_archive_cmds
11449no_undefined_flag_CXX=
11450whole_archive_flag_spec_CXX=
11451enable_shared_with_static_runtimes_CXX=no
11452
brynercb91a2f2006-08-25 21:14:45 +000011453# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011454ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011455
11456# Object file extension for compiled C++ test sources.
11457objext=o
11458objext_CXX=$objext
11459
jimblandy92b1f832009-12-23 22:23:49 +000011460# No sense in running all these tests if we already determined that
11461# the CXX compiler isn't working. Some variables (like enable_shared)
11462# are currently assumed to apply to all compilers on this platform,
11463# and will be corrupted by setting them based on a non-working compiler.
11464if test "$_lt_caught_CXX_error" != yes; then
11465 # Code to be used in simple compile tests
11466 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011467
jimblandy92b1f832009-12-23 22:23:49 +000011468 # Code to be used in simple link tests
11469 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011470
jimblandy92b1f832009-12-23 22:23:49 +000011471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11472
11473
11474
11475
11476
brynercb91a2f2006-08-25 21:14:45 +000011477
11478# If no C compiler was specified, use CC.
11479LTCC=${LTCC-"$CC"}
11480
mmentovai8c2a4de2006-09-20 16:20:15 +000011481# If no C compiler flags were specified, use CFLAGS.
11482LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11483
brynercb91a2f2006-08-25 21:14:45 +000011484# Allow CC to be a program name with arguments.
11485compiler=$CC
11486
11487
jimblandy92b1f832009-12-23 22:23:49 +000011488 # save warnings/boilerplate of simple test code
11489 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011490echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011491eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011493$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011494
jimblandy92b1f832009-12-23 22:23:49 +000011495 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011496echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011497eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11498_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011499$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011500
11501
jimblandy92b1f832009-12-23 22:23:49 +000011502 # Allow CC to be a program name with arguments.
11503 lt_save_CC=$CC
11504 lt_save_LD=$LD
11505 lt_save_GCC=$GCC
11506 GCC=$GXX
11507 lt_save_with_gnu_ld=$with_gnu_ld
11508 lt_save_path_LD=$lt_cv_path_LD
11509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11510 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11511 else
11512 $as_unset lt_cv_prog_gnu_ld
11513 fi
11514 if test -n "${lt_cv_path_LDCXX+set}"; then
11515 lt_cv_path_LD=$lt_cv_path_LDCXX
11516 else
11517 $as_unset lt_cv_path_LD
11518 fi
11519 test -z "${LDCXX+set}" || LD=$LDCXX
11520 CC=${CXX-"c++"}
11521 compiler=$CC
11522 compiler_CXX=$CC
11523 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011524 case $cc_temp in
11525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11527 \-*) ;;
11528 *) break;;
11529 esac
11530done
jimblandy92b1f832009-12-23 22:23:49 +000011531cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011532
brynercb91a2f2006-08-25 21:14:45 +000011533
jimblandy92b1f832009-12-23 22:23:49 +000011534 if test -n "$compiler"; then
11535 # We don't want -fno-exception when compiling C++ code, so set the
11536 # no_builtin_flag separately
11537 if test "$GXX" = yes; then
11538 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11539 else
11540 lt_prog_compiler_no_builtin_flag_CXX=
11541 fi
brynercb91a2f2006-08-25 21:14:45 +000011542
jimblandy92b1f832009-12-23 22:23:49 +000011543 if test "$GXX" = yes; then
11544 # Set up default GNU C++ configuration
11545
brynercb91a2f2006-08-25 21:14:45 +000011546
11547
mmentovai8c2a4de2006-09-20 16:20:15 +000011548# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011549if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011550 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011551else
11552 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011553fi
11554
brynercb91a2f2006-08-25 21:14:45 +000011555ac_prog=ld
11556if test "$GCC" = yes; then
11557 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11559$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011560 case $host in
11561 *-*-mingw*)
11562 # gcc leaves a trailing carriage return which upsets mingw
11563 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11564 *)
11565 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11566 esac
11567 case $ac_prog in
11568 # Accept absolute paths.
11569 [\\/]* | ?:[\\/]*)
11570 re_direlt='/[^/][^/]*/\.\./'
11571 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011572 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11573 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11574 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011575 done
11576 test -z "$LD" && LD="$ac_prog"
11577 ;;
11578 "")
11579 # If it fails, then pretend we aren't using GCC.
11580 ac_prog=ld
11581 ;;
11582 *)
11583 # If it is relative, then search for the first ld in PATH.
11584 with_gnu_ld=unknown
11585 ;;
11586 esac
11587elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11589$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011590else
jimblandy92b1f832009-12-23 22:23:49 +000011591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11592$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011593fi
jimblandy92b1f832009-12-23 22:23:49 +000011594if test "${lt_cv_path_LD+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011596else
11597 if test -z "$LD"; then
11598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11599 for ac_dir in $PATH; do
11600 IFS="$lt_save_ifs"
11601 test -z "$ac_dir" && ac_dir=.
11602 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11603 lt_cv_path_LD="$ac_dir/$ac_prog"
11604 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011605 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011606 # Break only if it was the GNU/non-GNU ld that we prefer.
11607 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11608 *GNU* | *'with BFD'*)
11609 test "$with_gnu_ld" != no && break
11610 ;;
11611 *)
11612 test "$with_gnu_ld" != yes && break
11613 ;;
11614 esac
11615 fi
11616 done
11617 IFS="$lt_save_ifs"
11618else
11619 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11620fi
11621fi
11622
11623LD="$lt_cv_path_LD"
11624if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11626$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011627else
jimblandy92b1f832009-12-23 22:23:49 +000011628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011630fi
jimblandy92b1f832009-12-23 22:23:49 +000011631test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11633$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11634if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011636else
mmentovai8c2a4de2006-09-20 16:20:15 +000011637 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011638case `$LD -v 2>&1 </dev/null` in
11639*GNU* | *'with BFD'*)
11640 lt_cv_prog_gnu_ld=yes
11641 ;;
11642*)
11643 lt_cv_prog_gnu_ld=no
11644 ;;
11645esac
11646fi
jimblandy92b1f832009-12-23 22:23:49 +000011647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11648$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011649with_gnu_ld=$lt_cv_prog_gnu_ld
11650
11651
11652
brynercb91a2f2006-08-25 21:14:45 +000011653
brynercb91a2f2006-08-25 21:14:45 +000011654
brynercb91a2f2006-08-25 21:14:45 +000011655
brynercb91a2f2006-08-25 21:14:45 +000011656
jimblandy92b1f832009-12-23 22:23:49 +000011657 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11658 # archiving commands below assume that GNU ld is being used.
11659 if test "$with_gnu_ld" = yes; then
11660 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11661 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 +000011662
jimblandy92b1f832009-12-23 22:23:49 +000011663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011665
jimblandy92b1f832009-12-23 22:23:49 +000011666 # If archive_cmds runs LD, not CC, wlarc should be empty
11667 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11668 # investigate it a little bit more. (MM)
11669 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011670
jimblandy92b1f832009-12-23 22:23:49 +000011671 # ancient GNU ld didn't support --whole-archive et. al.
11672 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11673 $GREP 'no-whole-archive' > /dev/null; then
11674 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11675 else
11676 whole_archive_flag_spec_CXX=
11677 fi
brynercb91a2f2006-08-25 21:14:45 +000011678 else
jimblandy92b1f832009-12-23 22:23:49 +000011679 with_gnu_ld=no
11680 wlarc=
11681
11682 # A generic and very simple default shared library creation
11683 # command for GNU C++ for the case where it uses the native
11684 # linker, instead of GNU ld. If possible, this setting should
11685 # overridden to take advantage of the native linker features on
11686 # the platform it is being used on.
11687 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011688 fi
brynercb91a2f2006-08-25 21:14:45 +000011689
brynercb91a2f2006-08-25 21:14:45 +000011690 # Commands to make compiler produce verbose output that lists
11691 # what "hidden" libraries, object files and flags are used when
11692 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11694
11695 else
11696 GXX=no
11697 with_gnu_ld=no
11698 wlarc=
11699 fi
11700
11701 # PORTME: fill in a description of your system's C++ link characteristics
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11703$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11704 ld_shlibs_CXX=yes
11705 case $host_os in
11706 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011707 # FIXME: insert proper C++ library support
11708 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011709 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011710 aix[4-9]*)
11711 if test "$host_cpu" = ia64; then
11712 # On IA64, the linker does run time linking by default, so we don't
11713 # have to do anything special.
11714 aix_use_runtimelinking=no
11715 exp_sym_flag='-Bexport'
11716 no_entry_flag=""
11717 else
11718 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011719
jimblandy92b1f832009-12-23 22:23:49 +000011720 # Test if we are trying to use run time linking or normal
11721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11722 # need to do runtime linking.
11723 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11724 for ld_flag in $LDFLAGS; do
11725 case $ld_flag in
11726 *-brtl*)
11727 aix_use_runtimelinking=yes
11728 break
11729 ;;
11730 esac
11731 done
11732 ;;
11733 esac
11734
11735 exp_sym_flag='-bexport'
11736 no_entry_flag='-bnoentry'
11737 fi
11738
11739 # When large executables or shared objects are built, AIX ld can
11740 # have problems creating the table of contents. If linking a library
11741 # or program results in "error TOC overflow" add -mminimal-toc to
11742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11744
11745 archive_cmds_CXX=''
11746 hardcode_direct_CXX=yes
11747 hardcode_direct_absolute_CXX=yes
11748 hardcode_libdir_separator_CXX=':'
11749 link_all_deplibs_CXX=yes
11750 file_list_spec_CXX='${wl}-f,'
11751
11752 if test "$GXX" = yes; then
11753 case $host_os in aix4.[012]|aix4.[012].*)
11754 # We only want to do this on AIX 4.2 and lower, the check
11755 # below for broken collect2 doesn't work under 4.3+
11756 collect2name=`${CC} -print-prog-name=collect2`
11757 if test -f "$collect2name" &&
11758 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11759 then
11760 # We have reworked collect2
11761 :
11762 else
11763 # We have old collect2
11764 hardcode_direct_CXX=unsupported
11765 # It fails to find uninstalled libraries when the uninstalled
11766 # path is not listed in the libpath. Setting hardcode_minus_L
11767 # to unsupported forces relinking
11768 hardcode_minus_L_CXX=yes
11769 hardcode_libdir_flag_spec_CXX='-L$libdir'
11770 hardcode_libdir_separator_CXX=
11771 fi
11772 esac
11773 shared_flag='-shared'
11774 if test "$aix_use_runtimelinking" = yes; then
11775 shared_flag="$shared_flag "'${wl}-G'
11776 fi
11777 else
11778 # not using gcc
11779 if test "$host_cpu" = ia64; then
11780 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11781 # chokes on -Wl,-G. The following line is correct:
11782 shared_flag='-G'
11783 else
11784 if test "$aix_use_runtimelinking" = yes; then
11785 shared_flag='${wl}-G'
11786 else
11787 shared_flag='${wl}-bM:SRE'
11788 fi
11789 fi
11790 fi
11791
11792 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11793 # It seems that -bexpall does not export symbols beginning with
11794 # underscore (_), so it is better to generate a list of symbols to
11795 # export.
11796 always_export_symbols_CXX=yes
11797 if test "$aix_use_runtimelinking" = yes; then
11798 # Warning - without using the other runtime loading flags (-brtl),
11799 # -berok will link without error, but may produce a broken library.
11800 allow_undefined_flag_CXX='-berok'
11801 # Determine the default libpath from the value encoded in an empty
11802 # executable.
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
11805
11806int
11807main ()
11808{
11809
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814if ac_fn_cxx_try_link "$LINENO"; then :
11815
11816lt_aix_libpath_sed='
11817 /Import File Strings/,/^$/ {
11818 /^0/ {
11819 s/^0 *\(.*\)$/\1/
11820 p
11821 }
11822 }'
11823aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11824# Check for a 64-bit object if we didn't find anything.
11825if test -z "$aix_libpath"; then
11826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11827fi
11828fi
11829rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11832
11833 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11834
11835 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"
11836 else
11837 if test "$host_cpu" = ia64; then
11838 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11839 allow_undefined_flag_CXX="-z nodefs"
11840 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"
11841 else
11842 # Determine the default libpath from the value encoded in an
11843 # empty executable.
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h. */
11846
11847int
11848main ()
11849{
11850
11851 ;
11852 return 0;
11853}
11854_ACEOF
11855if ac_fn_cxx_try_link "$LINENO"; then :
11856
11857lt_aix_libpath_sed='
11858 /Import File Strings/,/^$/ {
11859 /^0/ {
11860 s/^0 *\(.*\)$/\1/
11861 p
11862 }
11863 }'
11864aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11865# Check for a 64-bit object if we didn't find anything.
11866if test -z "$aix_libpath"; then
11867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11868fi
11869fi
11870rm -f core conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11873
11874 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11875 # Warning - without using the other run time loading flags,
11876 # -berok will link without error, but may produce a broken library.
11877 no_undefined_flag_CXX=' ${wl}-bernotok'
11878 allow_undefined_flag_CXX=' ${wl}-berok'
11879 # Exported symbols can be pulled into shared objects from archives
11880 whole_archive_flag_spec_CXX='$convenience'
11881 archive_cmds_need_lc_CXX=yes
11882 # This is similar to how AIX traditionally builds its shared
11883 # libraries.
11884 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'
11885 fi
11886 fi
11887 ;;
11888
11889 beos*)
11890 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11891 allow_undefined_flag_CXX=unsupported
11892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11893 # support --undefined. This deserves some investigation. FIXME
11894 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11895 else
11896 ld_shlibs_CXX=no
11897 fi
brynercb91a2f2006-08-25 21:14:45 +000011898 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011899
11900 chorus*)
11901 case $cc_basename in
11902 *)
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011905 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011906 esac
11907 ;;
11908
11909 cygwin* | mingw* | pw32* | cegcc*)
11910 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11911 # as there is no search path for DLLs.
11912 hardcode_libdir_flag_spec_CXX='-L$libdir'
11913 allow_undefined_flag_CXX=unsupported
11914 always_export_symbols_CXX=no
11915 enable_shared_with_static_runtimes_CXX=yes
11916
11917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11918 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'
11919 # If the export-symbols file already is a .def file (1st line
11920 # is EXPORTS), use it as is; otherwise, prepend...
11921 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11922 cp $export_symbols $output_objdir/$soname.def;
11923 else
11924 echo EXPORTS > $output_objdir/$soname.def;
11925 cat $export_symbols >> $output_objdir/$soname.def;
11926 fi~
11927 $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'
11928 else
11929 ld_shlibs_CXX=no
11930 fi
11931 ;;
11932 darwin* | rhapsody*)
11933
11934
11935 archive_cmds_need_lc_CXX=no
11936 hardcode_direct_CXX=no
11937 hardcode_automatic_CXX=yes
11938 hardcode_shlibpath_var_CXX=unsupported
11939 whole_archive_flag_spec_CXX=''
11940 link_all_deplibs_CXX=yes
11941 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11942 case $cc_basename in
11943 ifort*) _lt_dar_can_shared=yes ;;
11944 *) _lt_dar_can_shared=$GCC ;;
11945 esac
11946 if test "$_lt_dar_can_shared" = "yes"; then
11947 output_verbose_link_cmd=echo
11948 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}"
11949 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11950 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}"
11951 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}"
11952 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11953 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}"
11954 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}"
11955 fi
11956
11957 else
11958 ld_shlibs_CXX=no
11959 fi
11960
brynercb91a2f2006-08-25 21:14:45 +000011961 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011962
11963 dgux*)
11964 case $cc_basename in
11965 ec++*)
11966 # FIXME: insert proper C++ library support
11967 ld_shlibs_CXX=no
11968 ;;
11969 ghcx*)
11970 # Green Hills C++ Compiler
11971 # FIXME: insert proper C++ library support
11972 ld_shlibs_CXX=no
11973 ;;
11974 *)
11975 # FIXME: insert proper C++ library support
11976 ld_shlibs_CXX=no
11977 ;;
11978 esac
11979 ;;
11980
11981 freebsd[12]*)
11982 # C++ shared libraries reported to be fairly broken before
11983 # switch to ELF
11984 ld_shlibs_CXX=no
11985 ;;
11986
11987 freebsd-elf*)
11988 archive_cmds_need_lc_CXX=no
11989 ;;
11990
11991 freebsd* | dragonfly*)
11992 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11993 # conventions
11994 ld_shlibs_CXX=yes
11995 ;;
11996
11997 gnu*)
11998 ;;
11999
12000 hpux9*)
12001 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12002 hardcode_libdir_separator_CXX=:
12003 export_dynamic_flag_spec_CXX='${wl}-E'
12004 hardcode_direct_CXX=yes
12005 hardcode_minus_L_CXX=yes # Not in the search PATH,
12006 # but as the default
12007 # location of the library.
12008
12009 case $cc_basename in
12010 CC*)
12011 # FIXME: insert proper C++ library support
12012 ld_shlibs_CXX=no
12013 ;;
12014 aCC*)
12015 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'
12016 # Commands to make compiler produce verbose output that lists
12017 # what "hidden" libraries, object files and flags are used when
12018 # linking a shared library.
12019 #
12020 # There doesn't appear to be a way to prevent this compiler from
12021 # explicitly linking system object files so we need to strip them
12022 # from the output so that they don't get included in the library
12023 # dependencies.
12024 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'
12025 ;;
12026 *)
12027 if test "$GXX" = yes; then
12028 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'
12029 else
12030 # FIXME: insert proper C++ library support
12031 ld_shlibs_CXX=no
12032 fi
12033 ;;
12034 esac
12035 ;;
12036
12037 hpux10*|hpux11*)
12038 if test $with_gnu_ld = no; then
12039 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12040 hardcode_libdir_separator_CXX=:
12041
12042 case $host_cpu in
12043 hppa*64*|ia64*)
12044 ;;
12045 *)
12046 export_dynamic_flag_spec_CXX='${wl}-E'
12047 ;;
12048 esac
12049 fi
12050 case $host_cpu in
12051 hppa*64*|ia64*)
12052 hardcode_direct_CXX=no
12053 hardcode_shlibpath_var_CXX=no
12054 ;;
12055 *)
12056 hardcode_direct_CXX=yes
12057 hardcode_direct_absolute_CXX=yes
12058 hardcode_minus_L_CXX=yes # Not in the search PATH,
12059 # but as the default
12060 # location of the library.
12061 ;;
12062 esac
12063
12064 case $cc_basename in
12065 CC*)
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12068 ;;
12069 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012070 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012071 hppa*64*)
12072 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073 ;;
12074 ia64*)
12075 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076 ;;
12077 *)
12078 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079 ;;
12080 esac
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12084 #
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12088 # dependencies.
12089 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'
12090 ;;
12091 *)
12092 if test "$GXX" = yes; then
12093 if test $with_gnu_ld = no; then
12094 case $host_cpu in
12095 hppa*64*)
12096 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097 ;;
12098 ia64*)
12099 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100 ;;
12101 *)
12102 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'
12103 ;;
12104 esac
12105 fi
12106 else
12107 # FIXME: insert proper C++ library support
12108 ld_shlibs_CXX=no
12109 fi
12110 ;;
12111 esac
12112 ;;
12113
12114 interix[3-9]*)
12115 hardcode_direct_CXX=no
12116 hardcode_shlibpath_var_CXX=no
12117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12118 export_dynamic_flag_spec_CXX='${wl}-E'
12119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12120 # Instead, shared libraries are loaded at an image base (0x10000000 by
12121 # default) and relocated if they conflict, which is a slow very memory
12122 # consuming and fragmenting process. To avoid this, we pick a random,
12123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12125 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'
12126 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'
12127 ;;
12128 irix5* | irix6*)
12129 case $cc_basename in
12130 CC*)
12131 # SGI C++
12132 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'
12133
12134 # Archives containing C++ object files must be created using
12135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12136 # necessary to make sure instantiated templates are included
12137 # in the archive.
12138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12139 ;;
12140 *)
12141 if test "$GXX" = yes; then
12142 if test "$with_gnu_ld" = no; then
12143 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'
12144 else
12145 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'
12146 fi
12147 fi
12148 link_all_deplibs_CXX=yes
12149 ;;
12150 esac
12151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12152 hardcode_libdir_separator_CXX=:
12153 inherit_rpath_CXX=yes
12154 ;;
12155
12156 linux* | k*bsd*-gnu)
12157 case $cc_basename in
12158 KCC*)
12159 # Kuck and Associates, Inc. (KAI) C++ Compiler
12160
12161 # KCC will only create a shared library if the output file
12162 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12163 # to its proper name (with version) after linking.
12164 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'
12165 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'
12166 # Commands to make compiler produce verbose output that lists
12167 # what "hidden" libraries, object files and flags are used when
12168 # linking a shared library.
12169 #
12170 # There doesn't appear to be a way to prevent this compiler from
12171 # explicitly linking system object files so we need to strip them
12172 # from the output so that they don't get included in the library
12173 # dependencies.
12174 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'
12175
12176 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12178
12179 # Archives containing C++ object files must be created using
12180 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12181 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12182 ;;
12183 icpc* | ecpc* )
12184 # Intel C++
12185 with_gnu_ld=yes
12186 # version 8.0 and above of icpc choke on multiply defined symbols
12187 # if we add $predep_objects and $postdep_objects, however 7.1 and
12188 # earlier do not add the objects themselves.
12189 case `$CC -V 2>&1` in
12190 *"Version 7."*)
12191 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 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'
12193 ;;
12194 *) # Version 8.0 or newer
12195 tmp_idyn=
12196 case $host_cpu in
12197 ia64*) tmp_idyn=' -i_dynamic';;
12198 esac
12199 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12200 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'
12201 ;;
12202 esac
12203 archive_cmds_need_lc_CXX=no
12204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12205 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12206 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12207 ;;
12208 pgCC* | pgcpp*)
12209 # Portland Group C++ compiler
12210 case `$CC -V` in
12211 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12212 prelink_cmds_CXX='tpldir=Template.dir~
12213 rm -rf $tpldir~
12214 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12215 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12216 old_archive_cmds_CXX='tpldir=Template.dir~
12217 rm -rf $tpldir~
12218 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12219 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12220 $RANLIB $oldlib'
12221 archive_cmds_CXX='tpldir=Template.dir~
12222 rm -rf $tpldir~
12223 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12224 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12225 archive_expsym_cmds_CXX='tpldir=Template.dir~
12226 rm -rf $tpldir~
12227 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12228 $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 +000012229 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012230 *) # Version 6 will use weak symbols
12231 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12232 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 +000012233 ;;
12234 esac
brynercb91a2f2006-08-25 21:14:45 +000012235
jimblandy92b1f832009-12-23 22:23:49 +000012236 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238 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'
12239 ;;
12240 cxx*)
12241 # Compaq C++
12242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12243 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 +000012244
jimblandy92b1f832009-12-23 22:23:49 +000012245 runpath_var=LD_RUN_PATH
12246 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12247 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012248
jimblandy92b1f832009-12-23 22:23:49 +000012249 # Commands to make compiler produce verbose output that lists
12250 # what "hidden" libraries, object files and flags are used when
12251 # linking a shared library.
12252 #
12253 # There doesn't appear to be a way to prevent this compiler from
12254 # explicitly linking system object files so we need to strip them
12255 # from the output so that they don't get included in the library
12256 # dependencies.
12257 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'
12258 ;;
12259 xl*)
12260 # IBM XL 8.0 on PPC, with GNU ld
12261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12264 if test "x$supports_anon_versioning" = xyes; then
12265 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12267 echo "local: *; };" >> $output_objdir/$libname.ver~
12268 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12269 fi
12270 ;;
12271 *)
12272 case `$CC -V 2>&1 | sed 5q` in
12273 *Sun\ C*)
12274 # Sun C++ 5.9
12275 no_undefined_flag_CXX=' -zdefs'
12276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12277 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'
12278 hardcode_libdir_flag_spec_CXX='-R$libdir'
12279 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'
12280 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012281
jimblandy92b1f832009-12-23 22:23:49 +000012282 # Not sure whether something based on
12283 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12284 # would be better.
12285 output_verbose_link_cmd='echo'
12286
12287 # Archives containing C++ object files must be created using
12288 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12289 # necessary to make sure instantiated templates are included
12290 # in the archive.
12291 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12292 ;;
12293 esac
12294 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012295 esac
brynercb91a2f2006-08-25 21:14:45 +000012296 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012297
jimblandy92b1f832009-12-23 22:23:49 +000012298 lynxos*)
12299 # FIXME: insert proper C++ library support
12300 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012301 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012302
12303 m88k*)
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12306 ;;
12307
12308 mvs*)
12309 case $cc_basename in
12310 cxx*)
12311 # FIXME: insert proper C++ library support
12312 ld_shlibs_CXX=no
12313 ;;
12314 *)
12315 # FIXME: insert proper C++ library support
12316 ld_shlibs_CXX=no
12317 ;;
12318 esac
12319 ;;
12320
12321 netbsd*)
12322 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12323 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12324 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012325 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012326 hardcode_direct_CXX=yes
12327 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012328 fi
jimblandy92b1f832009-12-23 22:23:49 +000012329 # Workaround some broken pre-1.5 toolchains
12330 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 +000012331 ;;
brynercb91a2f2006-08-25 21:14:45 +000012332
jimblandy92b1f832009-12-23 22:23:49 +000012333 *nto* | *qnx*)
12334 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012335 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012336
12337 openbsd2*)
12338 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012339 ld_shlibs_CXX=no
12340 ;;
brynercb91a2f2006-08-25 21:14:45 +000012341
jimblandy92b1f832009-12-23 22:23:49 +000012342 openbsd*)
12343 if test -f /usr/libexec/ld.so; then
12344 hardcode_direct_CXX=yes
12345 hardcode_shlibpath_var_CXX=no
12346 hardcode_direct_absolute_CXX=yes
12347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12351 export_dynamic_flag_spec_CXX='${wl}-E'
12352 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012353 fi
jimblandy92b1f832009-12-23 22:23:49 +000012354 output_verbose_link_cmd=echo
12355 else
12356 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012357 fi
12358 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012359
jimblandy92b1f832009-12-23 22:23:49 +000012360 osf3* | osf4* | osf5*)
12361 case $cc_basename in
12362 KCC*)
12363 # Kuck and Associates, Inc. (KAI) C++ Compiler
12364
12365 # KCC will only create a shared library if the output file
12366 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12367 # to its proper name (with version) after linking.
12368 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'
12369
12370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12371 hardcode_libdir_separator_CXX=:
12372
12373 # Archives containing C++ object files must be created using
12374 # the KAI C++ compiler.
12375 case $host in
12376 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12377 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12378 esac
12379 ;;
12380 RCC*)
12381 # Rational C++ 2.4.1
12382 # FIXME: insert proper C++ library support
12383 ld_shlibs_CXX=no
12384 ;;
12385 cxx*)
12386 case $host in
12387 osf3*)
12388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12389 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'
12390 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12391 ;;
12392 *)
12393 allow_undefined_flag_CXX=' -expect_unresolved \*'
12394 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'
12395 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12396 echo "-hidden">> $lib.exp~
12397 $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~
12398 $RM $lib.exp'
12399 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12400 ;;
12401 esac
12402
12403 hardcode_libdir_separator_CXX=:
12404
12405 # Commands to make compiler produce verbose output that lists
12406 # what "hidden" libraries, object files and flags are used when
12407 # linking a shared library.
12408 #
12409 # There doesn't appear to be a way to prevent this compiler from
12410 # explicitly linking system object files so we need to strip them
12411 # from the output so that they don't get included in the library
12412 # dependencies.
12413 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'
12414 ;;
12415 *)
12416 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12418 case $host in
12419 osf3*)
12420 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'
12421 ;;
12422 *)
12423 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'
12424 ;;
12425 esac
12426
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 hardcode_libdir_separator_CXX=:
12429
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12433 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12434
12435 else
12436 # FIXME: insert proper C++ library support
12437 ld_shlibs_CXX=no
12438 fi
12439 ;;
12440 esac
12441 ;;
12442
12443 psos*)
12444 # FIXME: insert proper C++ library support
12445 ld_shlibs_CXX=no
12446 ;;
12447
12448 sunos4*)
12449 case $cc_basename in
12450 CC*)
12451 # Sun C++ 4.x
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12454 ;;
12455 lcc*)
12456 # Lucid
12457 # FIXME: insert proper C++ library support
12458 ld_shlibs_CXX=no
12459 ;;
12460 *)
12461 # FIXME: insert proper C++ library support
12462 ld_shlibs_CXX=no
12463 ;;
12464 esac
12465 ;;
12466
12467 solaris*)
12468 case $cc_basename in
12469 CC*)
12470 # Sun C++ 4.2, 5.x and Centerline C++
12471 archive_cmds_need_lc_CXX=yes
12472 no_undefined_flag_CXX=' -zdefs'
12473 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12475 $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'
12476
12477 hardcode_libdir_flag_spec_CXX='-R$libdir'
12478 hardcode_shlibpath_var_CXX=no
12479 case $host_os in
12480 solaris2.[0-5] | solaris2.[0-5].*) ;;
12481 *)
12482 # The compiler driver will combine and reorder linker options,
12483 # but understands `-z linker_flag'.
12484 # Supported since Solaris 2.6 (maybe 2.5.1?)
12485 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12486 ;;
12487 esac
12488 link_all_deplibs_CXX=yes
12489
12490 output_verbose_link_cmd='echo'
12491
12492 # Archives containing C++ object files must be created using
12493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12494 # necessary to make sure instantiated templates are included
12495 # in the archive.
12496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12497 ;;
12498 gcx*)
12499 # Green Hills C++ Compiler
12500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12501
12502 # The C++ compiler must be used to create the archive.
12503 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12504 ;;
12505 *)
12506 # GNU C++ compiler with Solaris linker
12507 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12508 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12509 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12510 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12511 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12512 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12513
12514 # Commands to make compiler produce verbose output that lists
12515 # what "hidden" libraries, object files and flags are used when
12516 # linking a shared library.
12517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12518 else
12519 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12520 # platform.
12521 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12523 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12524
12525 # Commands to make compiler produce verbose output that lists
12526 # what "hidden" libraries, object files and flags are used when
12527 # linking a shared library.
12528 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12529 fi
12530
12531 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12532 case $host_os in
12533 solaris2.[0-5] | solaris2.[0-5].*) ;;
12534 *)
12535 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12536 ;;
12537 esac
12538 fi
12539 ;;
12540 esac
12541 ;;
12542
12543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12544 no_undefined_flag_CXX='${wl}-z,text'
12545 archive_cmds_need_lc_CXX=no
12546 hardcode_shlibpath_var_CXX=no
12547 runpath_var='LD_RUN_PATH'
12548
12549 case $cc_basename in
12550 CC*)
12551 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553 ;;
12554 *)
12555 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12556 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557 ;;
12558 esac
12559 ;;
12560
12561 sysv5* | sco3.2v5* | sco5v6*)
12562 # Note: We can NOT use -z defs as we might desire, because we do not
12563 # link with -lc, and that would cause any symbols used from libc to
12564 # always be unresolved, which means just about no library would
12565 # ever link correctly. If we're not using GNU ld we use -z text
12566 # though, which does catch some bad symbols but isn't as heavy-handed
12567 # as -z defs.
12568 no_undefined_flag_CXX='${wl}-z,text'
12569 allow_undefined_flag_CXX='${wl}-z,nodefs'
12570 archive_cmds_need_lc_CXX=no
12571 hardcode_shlibpath_var_CXX=no
12572 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12573 hardcode_libdir_separator_CXX=':'
12574 link_all_deplibs_CXX=yes
12575 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12576 runpath_var='LD_RUN_PATH'
12577
12578 case $cc_basename in
12579 CC*)
12580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582 ;;
12583 *)
12584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 ;;
12587 esac
12588 ;;
12589
12590 tandem*)
12591 case $cc_basename in
12592 NCC*)
12593 # NonStop-UX NCC 3.20
12594 # FIXME: insert proper C++ library support
12595 ld_shlibs_CXX=no
12596 ;;
12597 *)
12598 # FIXME: insert proper C++ library support
12599 ld_shlibs_CXX=no
12600 ;;
12601 esac
12602 ;;
12603
12604 vxworks*)
12605 # FIXME: insert proper C++ library support
12606 ld_shlibs_CXX=no
12607 ;;
12608
mmentovai8c2a4de2006-09-20 16:20:15 +000012609 *)
jimblandy92b1f832009-12-23 22:23:49 +000012610 # FIXME: insert proper C++ library support
12611 ld_shlibs_CXX=no
12612 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012613 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012614
jimblandy92b1f832009-12-23 22:23:49 +000012615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12616$as_echo "$ld_shlibs_CXX" >&6; }
12617 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012618
jimblandy92b1f832009-12-23 22:23:49 +000012619 GCC_CXX="$GXX"
12620 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012621
jimblandy92b1f832009-12-23 22:23:49 +000012622 ## CAVEAT EMPTOR:
12623 ## There is no encapsulation within the following macros, do not change
12624 ## the running order or otherwise move them around unless you know exactly
12625 ## what you are doing...
12626 # Dependencies to place before and after the object being linked:
12627predep_objects_CXX=
12628postdep_objects_CXX=
12629predeps_CXX=
12630postdeps_CXX=
12631compiler_lib_search_path_CXX=
12632
12633cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012634class Foo
12635{
12636public:
12637 Foo (void) { a = 0; }
12638private:
12639 int a;
12640};
jimblandy92b1f832009-12-23 22:23:49 +000012641_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012642
jimblandy92b1f832009-12-23 22:23:49 +000012643if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012644 (eval $ac_compile) 2>&5
12645 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12647 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012648 # Parse the compiler output and extract the necessary
12649 # objects, libraries and library flags.
12650
12651 # Sentinel used to keep track of whether or not we are before
12652 # the conftest object file.
12653 pre_test_object_deps_done=no
12654
jimblandy92b1f832009-12-23 22:23:49 +000012655 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012656 case $p in
12657
12658 -L* | -R* | -l*)
12659 # Some compilers place space between "-{L,R}" and the path.
12660 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012661 if test $p = "-L" ||
12662 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012663 prev=$p
12664 continue
12665 else
12666 prev=
12667 fi
12668
12669 if test "$pre_test_object_deps_done" = no; then
12670 case $p in
12671 -L* | -R*)
12672 # Internal compiler library paths should come after those
12673 # provided the user. The postdeps already come after the
12674 # user supplied libs so there is no need to process them.
12675 if test -z "$compiler_lib_search_path_CXX"; then
12676 compiler_lib_search_path_CXX="${prev}${p}"
12677 else
12678 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12679 fi
12680 ;;
12681 # The "-l" case would never come before the object being
12682 # linked, so don't bother handling this case.
12683 esac
12684 else
12685 if test -z "$postdeps_CXX"; then
12686 postdeps_CXX="${prev}${p}"
12687 else
12688 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12689 fi
12690 fi
12691 ;;
12692
12693 *.$objext)
12694 # This assumes that the test object file only shows up
12695 # once in the compiler output.
12696 if test "$p" = "conftest.$objext"; then
12697 pre_test_object_deps_done=yes
12698 continue
12699 fi
12700
12701 if test "$pre_test_object_deps_done" = no; then
12702 if test -z "$predep_objects_CXX"; then
12703 predep_objects_CXX="$p"
12704 else
12705 predep_objects_CXX="$predep_objects_CXX $p"
12706 fi
12707 else
12708 if test -z "$postdep_objects_CXX"; then
12709 postdep_objects_CXX="$p"
12710 else
12711 postdep_objects_CXX="$postdep_objects_CXX $p"
12712 fi
12713 fi
12714 ;;
12715
12716 *) ;; # Ignore the rest.
12717
12718 esac
12719 done
12720
12721 # Clean up.
12722 rm -f a.out a.exe
12723else
12724 echo "libtool.m4: error: problem compiling CXX test program"
12725fi
12726
jimblandy92b1f832009-12-23 22:23:49 +000012727$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012728
mmentovai8c2a4de2006-09-20 16:20:15 +000012729# PORTME: override above test on systems where it is broken
12730case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012731interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012732 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12733 # hack all around it, let's just trust "g++" to DTRT.
12734 predep_objects_CXX=
12735 postdep_objects_CXX=
12736 postdeps_CXX=
12737 ;;
12738
ted.mielczarek1adb1842009-12-21 13:12:20 +000012739linux*)
12740 case `$CC -V 2>&1 | sed 5q` in
12741 *Sun\ C*)
12742 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012743
ted.mielczarek1adb1842009-12-21 13:12:20 +000012744 # The more standards-conforming stlport4 library is
12745 # incompatible with the Cstd library. Avoid specifying
12746 # it if it's in CXXFLAGS. Ignore libCrun as
12747 # -library=stlport4 depends on it.
12748 case " $CXX $CXXFLAGS " in
12749 *" -library=stlport4 "*)
12750 solaris_use_stlport4=yes
12751 ;;
12752 esac
jimblandy92b1f832009-12-23 22:23:49 +000012753
ted.mielczarek1adb1842009-12-21 13:12:20 +000012754 if test "$solaris_use_stlport4" != yes; then
12755 postdeps_CXX='-library=Cstd -library=Crun'
12756 fi
12757 ;;
12758 esac
12759 ;;
12760
mmentovai8c2a4de2006-09-20 16:20:15 +000012761solaris*)
12762 case $cc_basename in
12763 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012764 # The more standards-conforming stlport4 library is
12765 # incompatible with the Cstd library. Avoid specifying
12766 # it if it's in CXXFLAGS. Ignore libCrun as
12767 # -library=stlport4 depends on it.
12768 case " $CXX $CXXFLAGS " in
12769 *" -library=stlport4 "*)
12770 solaris_use_stlport4=yes
12771 ;;
12772 esac
12773
mmentovai8c2a4de2006-09-20 16:20:15 +000012774 # Adding this requires a known-good setup of shared libraries for
12775 # Sun compiler versions before 5.6, else PIC objects from an old
12776 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012777 if test "$solaris_use_stlport4" != yes; then
12778 postdeps_CXX='-library=Cstd -library=Crun'
12779 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012780 ;;
12781 esac
12782 ;;
12783esac
12784
jimblandy92b1f832009-12-23 22:23:49 +000012785
brynercb91a2f2006-08-25 21:14:45 +000012786case " $postdeps_CXX " in
12787*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12788esac
jimblandy92b1f832009-12-23 22:23:49 +000012789 compiler_lib_search_dirs_CXX=
12790if test -n "${compiler_lib_search_path_CXX}"; then
12791 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12792fi
brynercb91a2f2006-08-25 21:14:45 +000012793
jimblandy92b1f832009-12-23 22:23:49 +000012794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012825lt_prog_compiler_pic_CXX=
12826lt_prog_compiler_static_CXX=
12827
jimblandy92b1f832009-12-23 22:23:49 +000012828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12829$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012830
12831 # C++ specific cases for pic, static, wl, etc.
12832 if test "$GXX" = yes; then
12833 lt_prog_compiler_wl_CXX='-Wl,'
12834 lt_prog_compiler_static_CXX='-static'
12835
12836 case $host_os in
12837 aix*)
12838 # All AIX code is PIC.
12839 if test "$host_cpu" = ia64; then
12840 # AIX 5 now supports IA64 processor
12841 lt_prog_compiler_static_CXX='-Bstatic'
12842 fi
12843 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012844
brynercb91a2f2006-08-25 21:14:45 +000012845 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012846 case $host_cpu in
12847 powerpc)
12848 # see comment about AmigaOS4 .so support
12849 lt_prog_compiler_pic_CXX='-fPIC'
12850 ;;
12851 m68k)
12852 # FIXME: we need at least 68020 code to build shared libraries, but
12853 # adding the `-m68020' flag to GCC prevents building anything better,
12854 # like `-m68040'.
12855 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12856 ;;
12857 esac
brynercb91a2f2006-08-25 21:14:45 +000012858 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012859
ted.mielczarek1adb1842009-12-21 13:12:20 +000012860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012861 # PIC is the default for these OSes.
12862 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012863 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012864 # This hack is so that the source file can tell whether it is being
12865 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012866 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12867 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012868 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12869 ;;
12870 darwin* | rhapsody*)
12871 # PIC is the default on this platform
12872 # Common symbols not allowed in MH_DYLIB files
12873 lt_prog_compiler_pic_CXX='-fno-common'
12874 ;;
12875 *djgpp*)
12876 # DJGPP does not support shared libraries at all
12877 lt_prog_compiler_pic_CXX=
12878 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012879 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012880 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12881 # Instead, we relocate shared libraries at runtime.
12882 ;;
brynercb91a2f2006-08-25 21:14:45 +000012883 sysv4*MP*)
12884 if test -d /usr/nec; then
12885 lt_prog_compiler_pic_CXX=-Kconform_pic
12886 fi
12887 ;;
12888 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012889 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12890 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12891 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012892 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012893 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012894 ;;
12895 *)
12896 lt_prog_compiler_pic_CXX='-fPIC'
12897 ;;
12898 esac
12899 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012900 *qnx* | *nto*)
12901 # QNX uses GNU C++, but need to define -shared option too, otherwise
12902 # it will coredump.
12903 lt_prog_compiler_pic_CXX='-fPIC -shared'
12904 ;;
brynercb91a2f2006-08-25 21:14:45 +000012905 *)
12906 lt_prog_compiler_pic_CXX='-fPIC'
12907 ;;
12908 esac
12909 else
12910 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012911 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012912 # All AIX code is PIC.
12913 if test "$host_cpu" = ia64; then
12914 # AIX 5 now supports IA64 processor
12915 lt_prog_compiler_static_CXX='-Bstatic'
12916 else
12917 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12918 fi
12919 ;;
12920 chorus*)
12921 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012922 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000012923 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000012924 # _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 +000012925 ;;
12926 esac
12927 ;;
12928 dgux*)
12929 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012930 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000012931 lt_prog_compiler_pic_CXX='-KPIC'
12932 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012933 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000012934 # Green Hills C++ Compiler
12935 lt_prog_compiler_pic_CXX='-pic'
12936 ;;
12937 *)
12938 ;;
12939 esac
12940 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012941 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000012942 # FreeBSD uses GNU C++
12943 ;;
12944 hpux9* | hpux10* | hpux11*)
12945 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012946 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012947 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000012949 if test "$host_cpu" != ia64; then
12950 lt_prog_compiler_pic_CXX='+Z'
12951 fi
12952 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012953 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000012954 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000012955 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12956 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000012957 hppa*64*|ia64*)
12958 # +Z the default
12959 ;;
12960 *)
12961 lt_prog_compiler_pic_CXX='+Z'
12962 ;;
12963 esac
12964 ;;
12965 *)
12966 ;;
12967 esac
12968 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012969 interix*)
12970 # This is c89, which is MS Visual C++ (no shared libs)
12971 # Anyone wants to do a port?
12972 ;;
brynercb91a2f2006-08-25 21:14:45 +000012973 irix5* | irix6* | nonstopux*)
12974 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012975 CC*)
brynercb91a2f2006-08-25 21:14:45 +000012976 lt_prog_compiler_wl_CXX='-Wl,'
12977 lt_prog_compiler_static_CXX='-non_shared'
12978 # CC pic flag -KPIC is the default.
12979 ;;
12980 *)
12981 ;;
12982 esac
12983 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012984 linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000012985 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000012986 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000012987 # KAI C++ Compiler
12988 lt_prog_compiler_wl_CXX='--backend -Wl,'
12989 lt_prog_compiler_pic_CXX='-fPIC'
12990 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012991 ecpc* )
12992 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000012993 lt_prog_compiler_wl_CXX='-Wl,'
12994 lt_prog_compiler_pic_CXX='-KPIC'
12995 lt_prog_compiler_static_CXX='-static'
12996 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012997 icpc* )
12998 # Intel C++, used to be incompatible with GCC.
12999 # ICC 10 doesn't accept -KPIC any more.
13000 lt_prog_compiler_wl_CXX='-Wl,'
13001 lt_prog_compiler_pic_CXX='-fPIC'
13002 lt_prog_compiler_static_CXX='-static'
13003 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013004 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000013005 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013006 lt_prog_compiler_wl_CXX='-Wl,'
13007 lt_prog_compiler_pic_CXX='-fpic'
13008 lt_prog_compiler_static_CXX='-Bstatic'
13009 ;;
13010 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013011 # Compaq C++
13012 # Make sure the PIC flag is empty. It appears that all Alpha
13013 # Linux and Compaq Tru64 Unix objects are PIC.
13014 lt_prog_compiler_pic_CXX=
13015 lt_prog_compiler_static_CXX='-non_shared'
13016 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013017 xlc* | xlC*)
13018 # IBM XL 8.0 on PPC
13019 lt_prog_compiler_wl_CXX='-Wl,'
13020 lt_prog_compiler_pic_CXX='-qpic'
13021 lt_prog_compiler_static_CXX='-qstaticlink'
13022 ;;
brynercb91a2f2006-08-25 21:14:45 +000013023 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013024 case `$CC -V 2>&1 | sed 5q` in
13025 *Sun\ C*)
13026 # Sun C++ 5.9
13027 lt_prog_compiler_pic_CXX='-KPIC'
13028 lt_prog_compiler_static_CXX='-Bstatic'
13029 lt_prog_compiler_wl_CXX='-Qoption ld '
13030 ;;
13031 esac
brynercb91a2f2006-08-25 21:14:45 +000013032 ;;
13033 esac
13034 ;;
13035 lynxos*)
13036 ;;
13037 m88k*)
13038 ;;
13039 mvs*)
13040 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013041 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013042 lt_prog_compiler_pic_CXX='-W c,exportall'
13043 ;;
13044 *)
13045 ;;
13046 esac
13047 ;;
jimblandydc4029a2010-02-02 17:39:51 +000013048 netbsd*)
brynercb91a2f2006-08-25 21:14:45 +000013049 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013050 *qnx* | *nto*)
13051 # QNX uses GNU C++, but need to define -shared option too, otherwise
13052 # it will coredump.
13053 lt_prog_compiler_pic_CXX='-fPIC -shared'
13054 ;;
brynercb91a2f2006-08-25 21:14:45 +000013055 osf3* | osf4* | osf5*)
13056 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013057 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013058 lt_prog_compiler_wl_CXX='--backend -Wl,'
13059 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013060 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013061 # Rational C++ 2.4.1
13062 lt_prog_compiler_pic_CXX='-pic'
13063 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013064 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013065 # Digital/Compaq C++
13066 lt_prog_compiler_wl_CXX='-Wl,'
13067 # Make sure the PIC flag is empty. It appears that all Alpha
13068 # Linux and Compaq Tru64 Unix objects are PIC.
13069 lt_prog_compiler_pic_CXX=
13070 lt_prog_compiler_static_CXX='-non_shared'
13071 ;;
13072 *)
13073 ;;
13074 esac
13075 ;;
13076 psos*)
13077 ;;
brynercb91a2f2006-08-25 21:14:45 +000013078 solaris*)
13079 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013080 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013081 # Sun C++ 4.2, 5.x and Centerline C++
13082 lt_prog_compiler_pic_CXX='-KPIC'
13083 lt_prog_compiler_static_CXX='-Bstatic'
13084 lt_prog_compiler_wl_CXX='-Qoption ld '
13085 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013086 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013087 # Green Hills C++ Compiler
13088 lt_prog_compiler_pic_CXX='-PIC'
13089 ;;
13090 *)
13091 ;;
13092 esac
13093 ;;
13094 sunos4*)
13095 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013096 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013097 # Sun C++ 4.x
13098 lt_prog_compiler_pic_CXX='-pic'
13099 lt_prog_compiler_static_CXX='-Bstatic'
13100 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013101 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013102 # Lucid
13103 lt_prog_compiler_pic_CXX='-pic'
13104 ;;
13105 *)
13106 ;;
13107 esac
13108 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013109 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13110 case $cc_basename in
13111 CC*)
13112 lt_prog_compiler_wl_CXX='-Wl,'
13113 lt_prog_compiler_pic_CXX='-KPIC'
13114 lt_prog_compiler_static_CXX='-Bstatic'
13115 ;;
13116 esac
13117 ;;
brynercb91a2f2006-08-25 21:14:45 +000013118 tandem*)
13119 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013120 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013121 # NonStop-UX NCC 3.20
13122 lt_prog_compiler_pic_CXX='-KPIC'
13123 ;;
13124 *)
13125 ;;
13126 esac
13127 ;;
brynercb91a2f2006-08-25 21:14:45 +000013128 vxworks*)
13129 ;;
13130 *)
13131 lt_prog_compiler_can_build_shared_CXX=no
13132 ;;
13133 esac
13134 fi
13135
jimblandy92b1f832009-12-23 22:23:49 +000013136case $host_os in
13137 # For platforms which do not support PIC, -DPIC is meaningless:
13138 *djgpp*)
13139 lt_prog_compiler_pic_CXX=
13140 ;;
13141 *)
13142 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13143 ;;
13144esac
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13146$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13147
13148
brynercb91a2f2006-08-25 21:14:45 +000013149
13150#
13151# Check to make sure the PIC flag actually works.
13152#
13153if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13155$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13156if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013158else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013159 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013160 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013162 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13163 # Insert the option either (1) after the last *FLAGS variable, or
13164 # (2) before a word containing "conftest.", or (3) at the end.
13165 # Note that $ac_compile itself does not contain backslashes and begins
13166 # with a dollar sign (not a hyphen), so the echo should work correctly.
13167 # The option is referenced via a variable to avoid confusing sed.
13168 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13171 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +000013172 (eval echo "\"\$as_me:13172: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013173 (eval "$lt_compile" 2>conftest.err)
13174 ac_status=$?
13175 cat conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +000013176 echo "$as_me:13176: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013177 if (exit $ac_status) && test -s "$ac_outfile"; then
13178 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013179 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013183 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013184 fi
13185 fi
jimblandy92b1f832009-12-23 22:23:49 +000013186 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013187
13188fi
jimblandy92b1f832009-12-23 22:23:49 +000013189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13190$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013191
ted.mielczarek1adb1842009-12-21 13:12:20 +000013192if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013193 case $lt_prog_compiler_pic_CXX in
13194 "" | " "*) ;;
13195 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13196 esac
13197else
13198 lt_prog_compiler_pic_CXX=
13199 lt_prog_compiler_can_build_shared_CXX=no
13200fi
13201
13202fi
jimblandy92b1f832009-12-23 22:23:49 +000013203
13204
brynercb91a2f2006-08-25 21:14:45 +000013205
mmentovai8c2a4de2006-09-20 16:20:15 +000013206#
13207# Check to make sure the static flag actually works.
13208#
13209wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13211$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13212if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013214else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013215 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013216 save_LDFLAGS="$LDFLAGS"
13217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13220 # The linker can only warn and ignore the option if not recognized
13221 # So say no if there are warnings
13222 if test -s conftest.err; then
13223 # Append any errors to the config.log.
13224 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013225 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13227 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013228 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013229 fi
13230 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013231 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013232 fi
13233 fi
jimblandy92b1f832009-12-23 22:23:49 +000013234 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013235 LDFLAGS="$save_LDFLAGS"
13236
13237fi
jimblandy92b1f832009-12-23 22:23:49 +000013238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13239$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013240
ted.mielczarek1adb1842009-12-21 13:12:20 +000013241if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013242 :
13243else
13244 lt_prog_compiler_static_CXX=
13245fi
13246
13247
jimblandy92b1f832009-12-23 22:23:49 +000013248
13249
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13251$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13252if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013254else
13255 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013256 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013257 mkdir conftest
13258 cd conftest
13259 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013261
13262 lt_compiler_flag="-o out/conftest2.$ac_objext"
13263 # Insert the option either (1) after the last *FLAGS variable, or
13264 # (2) before a word containing "conftest.", or (3) at the end.
13265 # Note that $ac_compile itself does not contain backslashes and begins
13266 # with a dollar sign (not a hyphen), so the echo should work correctly.
13267 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13270 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +000013271 (eval echo "\"\$as_me:13271: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013272 (eval "$lt_compile" 2>out/conftest.err)
13273 ac_status=$?
13274 cat out/conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +000013275 echo "$as_me:13275: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013276 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13277 then
13278 # The compiler can only warn and ignore the option if not recognized
13279 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013280 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013281 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13282 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013283 lt_cv_prog_compiler_c_o_CXX=yes
13284 fi
13285 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013286 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013287 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013288 # SGI C++ compiler will create directory out/ii_files/ for
13289 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013290 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13291 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013292 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013293 $RM -r conftest
13294 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013295
13296fi
jimblandy92b1f832009-12-23 22:23:49 +000013297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13298$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13299
13300
13301
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13303$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13304if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13306else
13307 lt_cv_prog_compiler_c_o_CXX=no
13308 $RM -r conftest 2>/dev/null
13309 mkdir conftest
13310 cd conftest
13311 mkdir out
13312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13313
13314 lt_compiler_flag="-o out/conftest2.$ac_objext"
13315 # Insert the option either (1) after the last *FLAGS variable, or
13316 # (2) before a word containing "conftest.", or (3) at the end.
13317 # Note that $ac_compile itself does not contain backslashes and begins
13318 # with a dollar sign (not a hyphen), so the echo should work correctly.
13319 lt_compile=`echo "$ac_compile" | $SED \
13320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13322 -e 's:$: $lt_compiler_flag:'`
nealsidde545c02010-03-02 00:39:48 +000013323 (eval echo "\"\$as_me:13323: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013324 (eval "$lt_compile" 2>out/conftest.err)
13325 ac_status=$?
13326 cat out/conftest.err >&5
nealsidde545c02010-03-02 00:39:48 +000013327 echo "$as_me:13327: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13329 then
13330 # The compiler can only warn and ignore the option if not recognized
13331 # So say no if there are warnings
13332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13335 lt_cv_prog_compiler_c_o_CXX=yes
13336 fi
13337 fi
13338 chmod u+w . 2>&5
13339 $RM conftest*
13340 # SGI C++ compiler will create directory out/ii_files/ for
13341 # template instantiation
13342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13343 $RM out/* && rmdir out
13344 cd ..
13345 $RM -r conftest
13346 $RM conftest*
13347
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13350$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13351
13352
brynercb91a2f2006-08-25 21:14:45 +000013353
13354
13355hard_links="nottested"
13356if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13357 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13359$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013360 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013361 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013362 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13363 touch conftest.a
13364 ln conftest.a conftest.b 2>&5 || hard_links=no
13365 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13367$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013368 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13370$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013371 need_locks=warn
13372 fi
13373else
13374 need_locks=no
13375fi
13376
jimblandy92b1f832009-12-23 22:23:49 +000013377
13378
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13380$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013381
13382 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13383 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013384 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013385 # If we're using GNU nm, then we don't want the "-C" option.
13386 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013387 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13388 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 +000013389 else
jimblandy92b1f832009-12-23 22:23:49 +000013390 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 +000013391 fi
13392 ;;
13393 pw32*)
13394 export_symbols_cmds_CXX="$ltdll_cmds"
13395 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013396 cygwin* | mingw* | cegcc*)
13397 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'
13398 ;;
brynercb91a2f2006-08-25 21:14:45 +000013399 *)
13400 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13401 ;;
13402 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013403 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013404
jimblandy92b1f832009-12-23 22:23:49 +000013405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13406$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013407test "$ld_shlibs_CXX" = no && can_build_shared=no
13408
jimblandy92b1f832009-12-23 22:23:49 +000013409with_gnu_ld_CXX=$with_gnu_ld
13410
13411
13412
13413
13414
13415
brynercb91a2f2006-08-25 21:14:45 +000013416#
13417# Do we need to explicitly link libc?
13418#
13419case "x$archive_cmds_need_lc_CXX" in
13420x|xyes)
13421 # Assume -lc should be added
13422 archive_cmds_need_lc_CXX=yes
13423
13424 if test "$enable_shared" = yes && test "$GCC" = yes; then
13425 case $archive_cmds_CXX in
13426 *'~'*)
13427 # FIXME: we may have to deal with multi-command sequences.
13428 ;;
13429 '$CC '*)
13430 # Test whether the compiler implicitly links with -lc since on some
13431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13432 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13434$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13435 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013437
jimblandy92b1f832009-12-23 22:23:49 +000013438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013439 (eval $ac_compile) 2>&5
13440 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13442 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013443 soname=conftest
13444 lib=conftest
13445 libobjs=conftest.$ac_objext
13446 deplibs=
13447 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013448 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013449 compiler_flags=-v
13450 linker_flags=-v
13451 verstring=
13452 output_objdir=.
13453 libname=conftest
13454 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13455 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13457 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013458 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013461 then
13462 archive_cmds_need_lc_CXX=no
13463 else
13464 archive_cmds_need_lc_CXX=yes
13465 fi
13466 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13467 else
13468 cat conftest.err 1>&5
13469 fi
jimblandy92b1f832009-12-23 22:23:49 +000013470 $RM conftest*
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13472$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013473 ;;
13474 esac
13475 fi
13476 ;;
13477esac
13478
jimblandy92b1f832009-12-23 22:23:49 +000013479
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
13537
13538
13539
13540
13541
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13543$as_echo_n "checking dynamic linker characteristics... " >&6; }
13544
brynercb91a2f2006-08-25 21:14:45 +000013545library_names_spec=
13546libname_spec='lib$name'
13547soname_spec=
13548shrext_cmds=".so"
13549postinstall_cmds=
13550postuninstall_cmds=
13551finish_cmds=
13552finish_eval=
13553shlibpath_var=
13554shlibpath_overrides_runpath=unknown
13555version_type=none
13556dynamic_linker="$host_os ld.so"
13557sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013558need_lib_prefix=unknown
13559hardcode_into_libs=no
13560
13561# when you set need_version to no, make sure it does not cause -set_version
13562# flags to be left without arguments
13563need_version=unknown
13564
13565case $host_os in
13566aix3*)
13567 version_type=linux
13568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13569 shlibpath_var=LIBPATH
13570
13571 # AIX 3 has no versioning support, so we append a major version to the name.
13572 soname_spec='${libname}${release}${shared_ext}$major'
13573 ;;
13574
ted.mielczarek1adb1842009-12-21 13:12:20 +000013575aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013576 version_type=linux
13577 need_lib_prefix=no
13578 need_version=no
13579 hardcode_into_libs=yes
13580 if test "$host_cpu" = ia64; then
13581 # AIX 5 supports IA64
13582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 else
13585 # With GCC up to 2.95.x, collect2 would create an import file
13586 # for dependence libraries. The import file would start with
13587 # the line `#! .'. This would cause the generated library to
13588 # depend on `.', always an invalid library. This was fixed in
13589 # development snapshots of GCC prior to 3.0.
13590 case $host_os in
13591 aix4 | aix4.[01] | aix4.[01].*)
13592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13593 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013594 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013595 :
13596 else
13597 can_build_shared=no
13598 fi
13599 ;;
13600 esac
13601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13602 # soname into executable. Probably we can add versioning support to
13603 # collect2, so additional links can be useful in future.
13604 if test "$aix_use_runtimelinking" = yes; then
13605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13606 # instead of lib<name>.a to let people know that these are not
13607 # typical AIX shared libraries.
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609 else
13610 # We preserve .a as extension for shared libraries through AIX4.2
13611 # and later when we are not doing run time linking.
13612 library_names_spec='${libname}${release}.a $libname.a'
13613 soname_spec='${libname}${release}${shared_ext}$major'
13614 fi
13615 shlibpath_var=LIBPATH
13616 fi
13617 ;;
13618
13619amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013620 case $host_cpu in
13621 powerpc)
13622 # Since July 2007 AmigaOS4 officially supports .so libraries.
13623 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625 ;;
13626 m68k)
13627 library_names_spec='$libname.ixlibrary $libname.a'
13628 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13629 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'
13630 ;;
13631 esac
brynercb91a2f2006-08-25 21:14:45 +000013632 ;;
13633
13634beos*)
13635 library_names_spec='${libname}${shared_ext}'
13636 dynamic_linker="$host_os ld.so"
13637 shlibpath_var=LIBRARY_PATH
13638 ;;
13639
mmentovai8c2a4de2006-09-20 16:20:15 +000013640bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013641 version_type=linux
13642 need_version=no
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13644 soname_spec='${libname}${release}${shared_ext}$major'
13645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13646 shlibpath_var=LD_LIBRARY_PATH
13647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13649 # the default ld.so.conf also contains /usr/contrib/lib and
13650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13651 # libtool to hard-code these into programs
13652 ;;
13653
jimblandy92b1f832009-12-23 22:23:49 +000013654cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013655 version_type=windows
13656 shrext_cmds=".dll"
13657 need_version=no
13658 need_lib_prefix=no
13659
13660 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013661 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013662 library_names_spec='$libname.dll.a'
13663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13664 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013666 dldir=$destdir/`dirname \$dlpath`~
13667 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013668 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013669 chmod a+x \$dldir/$dlname~
13670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13671 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13672 fi'
brynercb91a2f2006-08-25 21:14:45 +000013673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13674 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013675 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013676 shlibpath_overrides_runpath=yes
13677
13678 case $host_os in
13679 cygwin*)
13680 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13681 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13682 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13683 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013684 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013685 # MinGW DLLs use traditional 'lib' prefix
13686 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013687 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13688 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013689 # It is most probably a Windows format PATH printed by
13690 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13691 # path with ; separators, and with drive letters. We can handle the
13692 # drive letters (cygwin fileutils understands them), so leave them,
13693 # especially as we might pass files found there to a mingw objdump,
13694 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013696 else
jimblandy92b1f832009-12-23 22:23:49 +000013697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013698 fi
13699 ;;
13700 pw32*)
13701 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013702 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 +000013703 ;;
13704 esac
13705 ;;
13706
13707 *)
13708 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13709 ;;
13710 esac
13711 dynamic_linker='Win32 ld.exe'
13712 # FIXME: first we should search . and the directory the executable is in
13713 shlibpath_var=PATH
13714 ;;
13715
13716darwin* | rhapsody*)
13717 dynamic_linker="$host_os dyld"
13718 version_type=darwin
13719 need_lib_prefix=no
13720 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013721 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013722 soname_spec='${libname}${release}${major}$shared_ext'
13723 shlibpath_overrides_runpath=yes
13724 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013725 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013726
brynercb91a2f2006-08-25 21:14:45 +000013727 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13728 ;;
13729
13730dgux*)
13731 version_type=linux
13732 need_lib_prefix=no
13733 need_version=no
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 ;;
13738
13739freebsd1*)
13740 dynamic_linker=no
13741 ;;
13742
mmentovai8c2a4de2006-09-20 16:20:15 +000013743freebsd* | dragonfly*)
13744 # DragonFly does not have aout. When/if they implement a new
13745 # versioning mechanism, adjust this.
13746 if test -x /usr/bin/objformat; then
13747 objformat=`/usr/bin/objformat`
13748 else
13749 case $host_os in
13750 freebsd[123]*) objformat=aout ;;
13751 *) objformat=elf ;;
13752 esac
13753 fi
brynercb91a2f2006-08-25 21:14:45 +000013754 version_type=freebsd-$objformat
13755 case $version_type in
13756 freebsd-elf*)
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13758 need_version=no
13759 need_lib_prefix=no
13760 ;;
13761 freebsd-*)
13762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13763 need_version=yes
13764 ;;
13765 esac
13766 shlibpath_var=LD_LIBRARY_PATH
13767 case $host_os in
13768 freebsd2*)
13769 shlibpath_overrides_runpath=yes
13770 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013771 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013772 shlibpath_overrides_runpath=yes
13773 hardcode_into_libs=yes
13774 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013775 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13776 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013777 shlibpath_overrides_runpath=no
13778 hardcode_into_libs=yes
13779 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013780 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013781 shlibpath_overrides_runpath=yes
13782 hardcode_into_libs=yes
13783 ;;
brynercb91a2f2006-08-25 21:14:45 +000013784 esac
13785 ;;
13786
13787gnu*)
13788 version_type=linux
13789 need_lib_prefix=no
13790 need_version=no
13791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13792 soname_spec='${libname}${release}${shared_ext}$major'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 hardcode_into_libs=yes
13795 ;;
13796
13797hpux9* | hpux10* | hpux11*)
13798 # Give a soname corresponding to the major version so that dld.sl refuses to
13799 # link against other versions.
13800 version_type=sunos
13801 need_lib_prefix=no
13802 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013803 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013804 ia64*)
13805 shrext_cmds='.so'
13806 hardcode_into_libs=yes
13807 dynamic_linker="$host_os dld.so"
13808 shlibpath_var=LD_LIBRARY_PATH
13809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 if test "X$HPUX_IA64_MODE" = X32; then
13813 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13814 else
13815 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13816 fi
13817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13818 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013819 hppa*64*)
13820 shrext_cmds='.sl'
13821 hardcode_into_libs=yes
13822 dynamic_linker="$host_os dld.sl"
13823 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13829 ;;
13830 *)
brynercb91a2f2006-08-25 21:14:45 +000013831 shrext_cmds='.sl'
13832 dynamic_linker="$host_os dld.sl"
13833 shlibpath_var=SHLIB_PATH
13834 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13836 soname_spec='${libname}${release}${shared_ext}$major'
13837 ;;
13838 esac
13839 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13840 postinstall_cmds='chmod 555 $lib'
13841 ;;
13842
ted.mielczarek1adb1842009-12-21 13:12:20 +000013843interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013844 version_type=linux
13845 need_lib_prefix=no
13846 need_version=no
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13848 soname_spec='${libname}${release}${shared_ext}$major'
13849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 shlibpath_overrides_runpath=no
13852 hardcode_into_libs=yes
13853 ;;
13854
brynercb91a2f2006-08-25 21:14:45 +000013855irix5* | irix6* | nonstopux*)
13856 case $host_os in
13857 nonstopux*) version_type=nonstopux ;;
13858 *)
13859 if test "$lt_cv_prog_gnu_ld" = yes; then
13860 version_type=linux
13861 else
13862 version_type=irix
13863 fi ;;
13864 esac
13865 need_lib_prefix=no
13866 need_version=no
13867 soname_spec='${libname}${release}${shared_ext}$major'
13868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13869 case $host_os in
13870 irix5* | nonstopux*)
13871 libsuff= shlibsuff=
13872 ;;
13873 *)
13874 case $LD in # libtool.m4 will add one of these switches to LD
13875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13876 libsuff= shlibsuff= libmagic=32-bit;;
13877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13878 libsuff=32 shlibsuff=N32 libmagic=N32;;
13879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13881 *) libsuff= shlibsuff= libmagic=never-match;;
13882 esac
13883 ;;
13884 esac
13885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13886 shlibpath_overrides_runpath=no
13887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13889 hardcode_into_libs=yes
13890 ;;
13891
13892# No shared lib support for Linux oldld, aout, or coff.
13893linux*oldld* | linux*aout* | linux*coff*)
13894 dynamic_linker=no
13895 ;;
13896
13897# This must be Linux ELF.
ted.mielczarek1adb1842009-12-21 13:12:20 +000013898linux* | k*bsd*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013899 version_type=linux
13900 need_lib_prefix=no
13901 need_version=no
13902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903 soname_spec='${libname}${release}${shared_ext}$major'
13904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13905 shlibpath_var=LD_LIBRARY_PATH
13906 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013907 # Some binutils ld are patched to set DT_RUNPATH
13908 save_LDFLAGS=$LDFLAGS
13909 save_libdir=$libdir
13910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913/* end confdefs.h. */
13914
13915int
13916main ()
13917{
13918
13919 ;
13920 return 0;
13921}
13922_ACEOF
13923if ac_fn_cxx_try_link "$LINENO"; then :
13924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13925 shlibpath_overrides_runpath=yes
13926fi
13927fi
13928rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 LDFLAGS=$save_LDFLAGS
13931 libdir=$save_libdir
13932
brynercb91a2f2006-08-25 21:14:45 +000013933 # This implies no fast_install, which is unacceptable.
13934 # Some rework will be needed to allow for fast_install
13935 # before this can be enabled.
13936 hardcode_into_libs=yes
13937
13938 # Append ld.so.conf contents to the search path
13939 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000013940 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 +000013941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13942 fi
13943
13944 # We used to test for /lib/ld.so.1 and disable shared libraries on
13945 # powerpc, because MkLinux only supported shared libraries with the
13946 # GNU dynamic linker. Since this was broken with cross compilers,
13947 # most powerpc-linux boxes support dynamic linking these days and
13948 # people can always --disable-shared, the test was removed, and we
13949 # assume the GNU/Linux dynamic linker is in use.
13950 dynamic_linker='GNU/Linux ld.so'
13951 ;;
13952
brynercb91a2f2006-08-25 21:14:45 +000013953netbsd*)
13954 version_type=sunos
13955 need_lib_prefix=no
13956 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13959 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13960 dynamic_linker='NetBSD (a.out) ld.so'
13961 else
13962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13963 soname_spec='${libname}${release}${shared_ext}$major'
13964 dynamic_linker='NetBSD ld.elf_so'
13965 fi
13966 shlibpath_var=LD_LIBRARY_PATH
13967 shlibpath_overrides_runpath=yes
13968 hardcode_into_libs=yes
13969 ;;
13970
13971newsos6)
13972 version_type=linux
13973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13974 shlibpath_var=LD_LIBRARY_PATH
13975 shlibpath_overrides_runpath=yes
13976 ;;
13977
jimblandy92b1f832009-12-23 22:23:49 +000013978*nto* | *qnx*)
13979 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000013980 need_lib_prefix=no
13981 need_version=no
13982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13983 soname_spec='${libname}${release}${shared_ext}$major'
13984 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000013985 shlibpath_overrides_runpath=no
13986 hardcode_into_libs=yes
13987 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000013988 ;;
13989
13990openbsd*)
13991 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000013992 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013993 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13995 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013996 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13997 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013998 esac
brynercb91a2f2006-08-25 21:14:45 +000013999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14001 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014003 case $host_os in
14004 openbsd2.[89] | openbsd2.[89].*)
14005 shlibpath_overrides_runpath=no
14006 ;;
14007 *)
14008 shlibpath_overrides_runpath=yes
14009 ;;
14010 esac
14011 else
14012 shlibpath_overrides_runpath=yes
14013 fi
14014 ;;
14015
14016os2*)
14017 libname_spec='$name'
14018 shrext_cmds=".dll"
14019 need_lib_prefix=no
14020 library_names_spec='$libname${shared_ext} $libname.a'
14021 dynamic_linker='OS/2 ld.exe'
14022 shlibpath_var=LIBPATH
14023 ;;
14024
14025osf3* | osf4* | osf5*)
14026 version_type=osf
14027 need_lib_prefix=no
14028 need_version=no
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14031 shlibpath_var=LD_LIBRARY_PATH
14032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14034 ;;
14035
ted.mielczarek1adb1842009-12-21 13:12:20 +000014036rdos*)
14037 dynamic_linker=no
14038 ;;
14039
brynercb91a2f2006-08-25 21:14:45 +000014040solaris*)
14041 version_type=linux
14042 need_lib_prefix=no
14043 need_version=no
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14047 shlibpath_overrides_runpath=yes
14048 hardcode_into_libs=yes
14049 # ldd complains unless libraries are executable
14050 postinstall_cmds='chmod +x $lib'
14051 ;;
14052
14053sunos4*)
14054 version_type=sunos
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=yes
14059 if test "$with_gnu_ld" = yes; then
14060 need_lib_prefix=no
14061 fi
14062 need_version=yes
14063 ;;
14064
mmentovai8c2a4de2006-09-20 16:20:15 +000014065sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014066 version_type=linux
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14070 case $host_vendor in
14071 sni)
14072 shlibpath_overrides_runpath=no
14073 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014074 runpath_var=LD_RUN_PATH
14075 ;;
14076 siemens)
14077 need_lib_prefix=no
14078 ;;
14079 motorola)
14080 need_lib_prefix=no
14081 need_version=no
14082 shlibpath_overrides_runpath=no
14083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14084 ;;
14085 esac
14086 ;;
14087
14088sysv4*MP*)
14089 if test -d /usr/nec ;then
14090 version_type=linux
14091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14092 soname_spec='$libname${shared_ext}.$major'
14093 shlibpath_var=LD_LIBRARY_PATH
14094 fi
14095 ;;
14096
mmentovai8c2a4de2006-09-20 16:20:15 +000014097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14098 version_type=freebsd-elf
14099 need_lib_prefix=no
14100 need_version=no
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14102 soname_spec='${libname}${release}${shared_ext}$major'
14103 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014104 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014105 hardcode_into_libs=yes
14106 if test "$with_gnu_ld" = yes; then
14107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014108 else
14109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014110 case $host_os in
14111 sco3.2v5*)
14112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14113 ;;
14114 esac
14115 fi
14116 sys_lib_dlsearch_path_spec='/usr/lib'
14117 ;;
14118
jimblandy92b1f832009-12-23 22:23:49 +000014119tpf*)
14120 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14121 version_type=linux
14122 need_lib_prefix=no
14123 need_version=no
14124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14125 shlibpath_var=LD_LIBRARY_PATH
14126 shlibpath_overrides_runpath=no
14127 hardcode_into_libs=yes
14128 ;;
14129
brynercb91a2f2006-08-25 21:14:45 +000014130uts4*)
14131 version_type=linux
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec='${libname}${release}${shared_ext}$major'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 ;;
14136
14137*)
14138 dynamic_linker=no
14139 ;;
14140esac
jimblandy92b1f832009-12-23 22:23:49 +000014141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14142$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014143test "$dynamic_linker" = no && can_build_shared=no
14144
mmentovai8c2a4de2006-09-20 16:20:15 +000014145variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14146if test "$GCC" = yes; then
14147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14148fi
14149
jimblandy92b1f832009-12-23 22:23:49 +000014150if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14152fi
14153if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14154 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14155fi
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
14187
14188
14189
14190
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14193$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014194hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014195if test -n "$hardcode_libdir_flag_spec_CXX" ||
14196 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014197 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014198
jimblandy92b1f832009-12-23 22:23:49 +000014199 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014200 if test "$hardcode_direct_CXX" != no &&
14201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14202 # have to relink, otherwise we might link with an installed library
14203 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014205 test "$hardcode_minus_L_CXX" != no; then
14206 # Linking always hardcodes the temporary library directory.
14207 hardcode_action_CXX=relink
14208 else
14209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14210 hardcode_action_CXX=immediate
14211 fi
14212else
14213 # We cannot hardcode anything, or else we can only hardcode existing
14214 # directories.
14215 hardcode_action_CXX=unsupported
14216fi
jimblandy92b1f832009-12-23 22:23:49 +000014217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14218$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014219
jimblandy92b1f832009-12-23 22:23:49 +000014220if test "$hardcode_action_CXX" = relink ||
14221 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014222 # Fast installation is not supported
14223 enable_fast_install=no
14224elif test "$shlibpath_overrides_runpath" = yes ||
14225 test "$enable_shared" = no; then
14226 # Fast installation is not necessary
14227 enable_fast_install=needless
14228fi
14229
brynercb91a2f2006-08-25 21:14:45 +000014230
brynercb91a2f2006-08-25 21:14:45 +000014231
brynercb91a2f2006-08-25 21:14:45 +000014232
brynercb91a2f2006-08-25 21:14:45 +000014233
brynercb91a2f2006-08-25 21:14:45 +000014234
brynercb91a2f2006-08-25 21:14:45 +000014235
jimblandy92b1f832009-12-23 22:23:49 +000014236 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014237
jimblandy92b1f832009-12-23 22:23:49 +000014238 CC=$lt_save_CC
14239 LDCXX=$LD
14240 LD=$lt_save_LD
14241 GCC=$lt_save_GCC
14242 with_gnu_ld=$lt_save_with_gnu_ld
14243 lt_cv_path_LDCXX=$lt_cv_path_LD
14244 lt_cv_path_LD=$lt_save_path_LD
14245 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14246 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14247fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014248
14249ac_ext=c
14250ac_cpp='$CPP $CPPFLAGS'
14251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14253ac_compiler_gnu=$ac_cv_c_compiler_gnu
14254
brynercb91a2f2006-08-25 21:14:45 +000014255
14256
brynercb91a2f2006-08-25 21:14:45 +000014257
14258
mmentovai8c2a4de2006-09-20 16:20:15 +000014259
14260
brynercb91a2f2006-08-25 21:14:45 +000014261
brynercb91a2f2006-08-25 21:14:45 +000014262
mmentovai8c2a4de2006-09-20 16:20:15 +000014263
brynercb91a2f2006-08-25 21:14:45 +000014264
brynercb91a2f2006-08-25 21:14:45 +000014265
brynerd5e66382006-09-08 02:35:53 +000014266
jimblandy92b1f832009-12-23 22:23:49 +000014267 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014268
brynercb91a2f2006-08-25 21:14:45 +000014269
brynercb91a2f2006-08-25 21:14:45 +000014270
brynercb91a2f2006-08-25 21:14:45 +000014271
jimblandy92b1f832009-12-23 22:23:49 +000014272# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014273
brynercb91a2f2006-08-25 21:14:45 +000014274
brynercb91a2f2006-08-25 21:14:45 +000014275
brynercb91a2f2006-08-25 21:14:45 +000014276
jimblandy92b1f832009-12-23 22:23:49 +000014277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14278$as_echo_n "checking for ANSI C header files... " >&6; }
14279if test "${ac_cv_header_stdc+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014281else
jimblandy92b1f832009-12-23 22:23:49 +000014282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014283/* end confdefs.h. */
14284#include <stdlib.h>
14285#include <stdarg.h>
14286#include <string.h>
14287#include <float.h>
14288
14289int
14290main ()
14291{
14292
14293 ;
14294 return 0;
14295}
14296_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014297if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014298 ac_cv_header_stdc=yes
14299else
jimblandy92b1f832009-12-23 22:23:49 +000014300 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014301fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014303
14304if test $ac_cv_header_stdc = yes; then
14305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014307/* end confdefs.h. */
14308#include <string.h>
14309
14310_ACEOF
14311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014312 $EGREP "memchr" >/dev/null 2>&1; then :
14313
brynercb91a2f2006-08-25 21:14:45 +000014314else
14315 ac_cv_header_stdc=no
14316fi
14317rm -f conftest*
14318
14319fi
14320
14321if test $ac_cv_header_stdc = yes; then
14322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014324/* end confdefs.h. */
14325#include <stdlib.h>
14326
14327_ACEOF
14328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014329 $EGREP "free" >/dev/null 2>&1; then :
14330
brynercb91a2f2006-08-25 21:14:45 +000014331else
14332 ac_cv_header_stdc=no
14333fi
14334rm -f conftest*
14335
14336fi
14337
14338if test $ac_cv_header_stdc = yes; then
14339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014340 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014341 :
14342else
jimblandy92b1f832009-12-23 22:23:49 +000014343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014344/* end confdefs.h. */
14345#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014346#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014347#if ((' ' & 0x0FF) == 0x020)
14348# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14349# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14350#else
14351# define ISLOWER(c) \
14352 (('a' <= (c) && (c) <= 'i') \
14353 || ('j' <= (c) && (c) <= 'r') \
14354 || ('s' <= (c) && (c) <= 'z'))
14355# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14356#endif
14357
14358#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14359int
14360main ()
14361{
14362 int i;
14363 for (i = 0; i < 256; i++)
14364 if (XOR (islower (i), ISLOWER (i))
14365 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014366 return 2;
14367 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014368}
14369_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014370if ac_fn_c_try_run "$LINENO"; then :
14371
brynercb91a2f2006-08-25 21:14:45 +000014372else
jimblandy92b1f832009-12-23 22:23:49 +000014373 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014374fi
jimblandy92b1f832009-12-23 22:23:49 +000014375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14376 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014377fi
14378
brynercb91a2f2006-08-25 21:14:45 +000014379fi
14380fi
jimblandy92b1f832009-12-23 22:23:49 +000014381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14382$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014383if test $ac_cv_header_stdc = yes; then
14384
jimblandy92b1f832009-12-23 22:23:49 +000014385$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014386
14387fi
14388
nealsidde545c02010-03-02 00:39:48 +000014389# ===========================================================================
14390# http://www.nongnu.org/autoconf-archive/ax_pthread.html
14391# ===========================================================================
14392#
14393# SYNOPSIS
14394#
14395# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
14396#
14397# DESCRIPTION
14398#
14399# This macro figures out how to build C programs using POSIX threads. It
14400# sets the PTHREAD_LIBS output variable to the threads library and linker
14401# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14402# flags that are needed. (The user can also force certain compiler
14403# flags/libs to be tested by setting these environment variables.)
14404#
14405# Also sets PTHREAD_CC to any special C compiler that is needed for
14406# multi-threaded programs (defaults to the value of CC otherwise). (This
14407# is necessary on AIX to use the special cc_r compiler alias.)
14408#
14409# NOTE: You are assumed to not only compile your program with these flags,
14410# but also link it with them as well. e.g. you should link with
14411# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
14412#
14413# If you are only building threads programs, you may wish to use these
14414# variables in your default LIBS, CFLAGS, and CC:
14415#
14416# LIBS="$PTHREAD_LIBS $LIBS"
14417# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14418# CC="$PTHREAD_CC"
14419#
14420# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
14421# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
14422# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
14423#
14424# ACTION-IF-FOUND is a list of shell commands to run if a threads library
14425# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
14426# is not found. If ACTION-IF-FOUND is not specified, the default action
14427# will define HAVE_PTHREAD.
14428#
14429# Please let the authors know if this macro fails on any platform, or if
14430# you have any other suggestions or comments. This macro was based on work
14431# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
14432# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
14433# Alejandro Forero Cuervo to the autoconf macro repository. We are also
14434# grateful for the helpful feedback of numerous users.
14435#
14436# LICENSE
14437#
14438# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
14439#
14440# This program is free software: you can redistribute it and/or modify it
14441# under the terms of the GNU General Public License as published by the
14442# Free Software Foundation, either version 3 of the License, or (at your
14443# option) any later version.
14444#
14445# This program is distributed in the hope that it will be useful, but
14446# WITHOUT ANY WARRANTY; without even the implied warranty of
14447# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14448# Public License for more details.
14449#
14450# You should have received a copy of the GNU General Public License along
14451# with this program. If not, see <http://www.gnu.org/licenses/>.
14452#
14453# As a special exception, the respective Autoconf Macro's copyright owner
14454# gives unlimited permission to copy, distribute and modify the configure
14455# scripts that are the output of Autoconf when processing the Macro. You
14456# need not follow the terms of the GNU General Public License when using
14457# or distributing such scripts, even though portions of the text of the
14458# Macro appear in them. The GNU General Public License (GPL) does govern
14459# all other use of the material that constitutes the Autoconf Macro.
14460#
14461# This special exception to the GPL applies to versions of the Autoconf
14462# Macro released by the Autoconf Archive. When you make and distribute a
14463# modified version of the Autoconf Macro, you may extend this special
14464# exception to the GPL to apply to your modified version as well.
14465
14466#serial 6
14467
14468# This is what autoupdate's m4 run will expand. It fires
14469# the warning (with _au_warn_XXX), outputs it into the
14470# updated configure.ac (with AC_DIAGNOSE), and then outputs
14471# the replacement expansion.
14472
14473
14474# This is an auxiliary macro that is also run when
14475# autoupdate runs m4. It simply calls m4_warning, but
14476# we need a wrapper so that each warning is emitted only
14477# once. We break the quoting in m4_warning's argument in
14478# order to expand this macro's arguments, not AU_DEFUN's.
14479
14480
14481# Finally, this is the expansion that is picked up by
14482# autoconf. It tells the user to run autoupdate, and
14483# then outputs the replacement expansion. We do not care
14484# about autoupdate's warning because that contains
14485# information on what to do *after* running autoupdate.
14486
14487
14488
14489
14490ac_ext=c
14491ac_cpp='$CPP $CPPFLAGS'
14492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14494ac_compiler_gnu=$ac_cv_c_compiler_gnu
14495
14496ax_pthread_ok=no
14497
14498# We used to check for pthread.h first, but this fails if pthread.h
14499# requires special compiler flags (e.g. on True64 or Sequent).
14500# It gets checked for in the link test anyway.
14501
14502# First of all, check if the user has set any of the PTHREAD_LIBS,
14503# etcetera environment variables, and if threads linking works using
14504# them:
14505if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14506 save_CFLAGS="$CFLAGS"
14507 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14508 save_LIBS="$LIBS"
14509 LIBS="$PTHREAD_LIBS $LIBS"
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14511$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h. */
14514
14515/* Override any GCC internal prototype to avoid an error.
14516 Use char because int might match the return type of a GCC
14517 builtin and then its argument prototype would still apply. */
14518#ifdef __cplusplus
14519extern "C"
14520#endif
14521char pthread_join ();
14522int
14523main ()
14524{
14525return pthread_join ();
14526 ;
14527 return 0;
14528}
14529_ACEOF
14530if ac_fn_c_try_link "$LINENO"; then :
14531 ax_pthread_ok=yes
14532fi
14533rm -f core conftest.err conftest.$ac_objext \
14534 conftest$ac_exeext conftest.$ac_ext
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14536$as_echo "$ax_pthread_ok" >&6; }
14537 if test x"$ax_pthread_ok" = xno; then
14538 PTHREAD_LIBS=""
14539 PTHREAD_CFLAGS=""
14540 fi
14541 LIBS="$save_LIBS"
14542 CFLAGS="$save_CFLAGS"
14543fi
14544
14545# We must check for the threads library under a number of different
14546# names; the ordering is very important because some systems
14547# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14548# libraries is broken (non-POSIX).
14549
14550# Create a list of thread flags to try. Items starting with a "-" are
14551# C compiler flags, and other items are library names, except for "none"
14552# which indicates that we try without any flags at all, and "pthread-config"
14553# which is a program returning the flags for the Pth emulation library.
14554
14555ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14556
14557# The ordering *is* (sometimes) important. Some notes on the
14558# individual items follow:
14559
14560# pthreads: AIX (must check this before -lpthread)
14561# none: in case threads are in libc; should be tried before -Kthread and
14562# other compiler flags to prevent continual compiler warnings
14563# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14564# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14565# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14566# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14567# -pthreads: Solaris/gcc
14568# -mthreads: Mingw32/gcc, Lynx/gcc
14569# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14570# doesn't hurt to check since this sometimes defines pthreads too;
14571# also defines -D_REENTRANT)
14572# ... -mt is also the pthreads flag for HP/aCC
14573# pthread: Linux, etcetera
14574# --thread-safe: KAI C++
14575# pthread-config: use pthread-config program (for GNU Pth library)
14576
14577case "${host_cpu}-${host_os}" in
14578 *solaris*)
14579
14580 # On Solaris (at least, for some versions), libc contains stubbed
14581 # (non-functional) versions of the pthreads routines, so link-based
14582 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14583 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14584 # a function called by this macro, so we could check for that, but
14585 # who knows whether they'll stub that too in a future libc.) So,
14586 # we'll just look for -pthreads and -lpthread first:
14587
14588 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14589 ;;
14590
14591 *-darwin*)
14592 acx_pthread_flags="-pthread $acx_pthread_flags"
14593 ;;
14594esac
14595
14596if test x"$ax_pthread_ok" = xno; then
14597for flag in $ax_pthread_flags; do
14598
14599 case $flag in
14600 none)
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14602$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14603 ;;
14604
14605 -*)
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14607$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14608 PTHREAD_CFLAGS="$flag"
14609 ;;
14610
14611 pthread-config)
14612 # Extract the first word of "pthread-config", so it can be a program name with args.
14613set dummy pthread-config; ac_word=$2
14614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14615$as_echo_n "checking for $ac_word... " >&6; }
14616if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14617 $as_echo_n "(cached) " >&6
14618else
14619 if test -n "$ax_pthread_config"; then
14620 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14621else
14622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14623for as_dir in $PATH
14624do
14625 IFS=$as_save_IFS
14626 test -z "$as_dir" && as_dir=.
14627 for ac_exec_ext in '' $ac_executable_extensions; do
14628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14629 ac_cv_prog_ax_pthread_config="yes"
14630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 break 2
14632 fi
14633done
14634 done
14635IFS=$as_save_IFS
14636
14637 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14638fi
14639fi
14640ax_pthread_config=$ac_cv_prog_ax_pthread_config
14641if test -n "$ax_pthread_config"; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14643$as_echo "$ax_pthread_config" >&6; }
14644else
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646$as_echo "no" >&6; }
14647fi
14648
14649
14650 if test x"$ax_pthread_config" = xno; then continue; fi
14651 PTHREAD_CFLAGS="`pthread-config --cflags`"
14652 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14653 ;;
14654
14655 *)
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14657$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14658 PTHREAD_LIBS="-l$flag"
14659 ;;
14660 esac
14661
14662 save_LIBS="$LIBS"
14663 save_CFLAGS="$CFLAGS"
14664 LIBS="$PTHREAD_LIBS $LIBS"
14665 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14666
14667 # Check for various functions. We must include pthread.h,
14668 # since some functions may be macros. (On the Sequent, we
14669 # need a special flag -Kthread to make this header compile.)
14670 # We check for pthread_join because it is in -lpthread on IRIX
14671 # while pthread_create is in libc. We check for pthread_attr_init
14672 # due to DEC craziness with -lpthreads. We check for
14673 # pthread_cleanup_push because it is one of the few pthread
14674 # functions on Solaris that doesn't have a non-functional libc stub.
14675 # We try pthread_create on general principles.
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677/* end confdefs.h. */
14678#include <pthread.h>
14679 static void routine(void* a) {a=0;}
14680 static void* start_routine(void* a) {return a;}
14681int
14682main ()
14683{
14684pthread_t th; pthread_attr_t attr;
14685 pthread_join(th, 0);
14686 pthread_attr_init(&attr);
14687 pthread_cleanup_push(routine, 0);
14688 pthread_create(&th,0,start_routine,0);
14689 pthread_cleanup_pop(0);
14690 ;
14691 return 0;
14692}
14693_ACEOF
14694if ac_fn_c_try_link "$LINENO"; then :
14695 ax_pthread_ok=yes
14696fi
14697rm -f core conftest.err conftest.$ac_objext \
14698 conftest$ac_exeext conftest.$ac_ext
14699
14700 LIBS="$save_LIBS"
14701 CFLAGS="$save_CFLAGS"
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14704$as_echo "$ax_pthread_ok" >&6; }
14705 if test "x$ax_pthread_ok" = xyes; then
14706 break;
14707 fi
14708
14709 PTHREAD_LIBS=""
14710 PTHREAD_CFLAGS=""
14711done
14712fi
14713
14714# Various other checks:
14715if test "x$ax_pthread_ok" = xyes; then
14716 save_LIBS="$LIBS"
14717 LIBS="$PTHREAD_LIBS $LIBS"
14718 save_CFLAGS="$CFLAGS"
14719 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14720
14721 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14723$as_echo_n "checking for joinable pthread attribute... " >&6; }
14724 attr_name=unknown
14725 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727/* end confdefs.h. */
14728#include <pthread.h>
14729int
14730main ()
14731{
14732int attr=$attr; return attr;
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737if ac_fn_c_try_link "$LINENO"; then :
14738 attr_name=$attr; break
14739fi
14740rm -f core conftest.err conftest.$ac_objext \
14741 conftest$ac_exeext conftest.$ac_ext
14742 done
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14744$as_echo "$attr_name" >&6; }
14745 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14746
14747cat >>confdefs.h <<_ACEOF
14748#define PTHREAD_CREATE_JOINABLE $attr_name
14749_ACEOF
14750
14751 fi
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14754$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14755 flag=no
14756 case "${host_cpu}-${host_os}" in
14757 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14758 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14759 esac
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14761$as_echo "${flag}" >&6; }
14762 if test "x$flag" != xno; then
14763 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14764 fi
14765
14766 LIBS="$save_LIBS"
14767 CFLAGS="$save_CFLAGS"
14768
14769 # More AIX lossage: must compile with xlc_r or cc_r
14770 if test x"$GCC" != xyes; then
14771 for ac_prog in xlc_r cc_r
14772do
14773 # Extract the first word of "$ac_prog", so it can be a program name with args.
14774set dummy $ac_prog; ac_word=$2
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14776$as_echo_n "checking for $ac_word... " >&6; }
14777if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14778 $as_echo_n "(cached) " >&6
14779else
14780 if test -n "$PTHREAD_CC"; then
14781 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14782else
14783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14784for as_dir in $PATH
14785do
14786 IFS=$as_save_IFS
14787 test -z "$as_dir" && as_dir=.
14788 for ac_exec_ext in '' $ac_executable_extensions; do
14789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14790 ac_cv_prog_PTHREAD_CC="$ac_prog"
14791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14792 break 2
14793 fi
14794done
14795 done
14796IFS=$as_save_IFS
14797
14798fi
14799fi
14800PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14801if test -n "$PTHREAD_CC"; then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14803$as_echo "$PTHREAD_CC" >&6; }
14804else
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14806$as_echo "no" >&6; }
14807fi
14808
14809
14810 test -n "$PTHREAD_CC" && break
14811done
14812test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14813
14814 else
14815 PTHREAD_CC=$CC
14816 fi
14817else
14818 PTHREAD_CC="$CC"
14819fi
14820
14821
14822
14823
14824
14825# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14826if test x"$ax_pthread_ok" = xyes; then
14827
14828$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14829
14830 :
14831else
14832 ax_pthread_ok=no
14833
14834fi
14835ac_ext=c
14836ac_cpp='$CPP $CPPFLAGS'
14837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839ac_compiler_gnu=$ac_cv_c_compiler_gnu
14840
14841
14842
14843# Check whether --enable-m32 was given.
14844if test "${enable_m32+set}" = set; then :
14845 enableval=$enable_m32; case "${enableval}" in
14846 yes)
14847 CFLAGS=$(CFLAGS) -m32
14848 usem32=true
14849 ;;
14850 no)
14851 usem32=false
14852 ;;
14853 *)
14854 as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5
14855 ;;
14856 esac
14857else
14858 usem32=false
14859fi
14860
brynercb91a2f2006-08-25 21:14:45 +000014861
mmentovai0dbedc92006-09-25 21:16:15 +000014862# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014863if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014864 enableval=$enable_selftest; case "${enableval}" in
14865 yes)
14866 selftest=true
14867 ;;
14868 no)
14869 selftest=false
14870 ;;
14871 *)
jimblandy92b1f832009-12-23 22:23:49 +000014872 as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000014873 ;;
14874 esac
14875else
14876 selftest=false
14877fi
14878
mmentovaiaf3c43f2007-05-17 18:34:37 +000014879 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000014880 SELFTEST_TRUE=
14881 SELFTEST_FALSE='#'
14882else
14883 SELFTEST_TRUE='#'
14884 SELFTEST_FALSE=
14885fi
14886
14887
mmentovai8c2a4de2006-09-20 16:20:15 +000014888ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000014889
14890cat >confcache <<\_ACEOF
14891# This file is a shell script that caches the results of configure
14892# tests run on this system so they can be shared between configure
14893# scripts and configure runs, see configure's option --config-cache.
14894# It is not useful on other systems. If it contains results you don't
14895# want to keep, you may remove or edit it.
14896#
14897# config.status only pays attention to the cache file if you give it
14898# the --recheck option to rerun configure.
14899#
14900# `ac_cv_env_foo' variables (set or unset) will be overridden when
14901# loading this file, other *unset* `ac_cv_foo' will be assigned the
14902# following values.
14903
14904_ACEOF
14905
14906# The following way of writing the cache mishandles newlines in values,
14907# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000014908# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000014909# Ultrix sh set writes to stderr and can't be redirected directly,
14910# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000014911(
14912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14913 eval ac_val=\$$ac_var
14914 case $ac_val in #(
14915 *${as_nl}*)
14916 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000014917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14918$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014919 esac
14920 case $ac_var in #(
14921 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000014922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14923 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014924 esac ;;
14925 esac
14926 done
14927
brynercb91a2f2006-08-25 21:14:45 +000014928 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000014929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14930 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000014931 # `set' does not quote correctly, so add quotes: double-quote
14932 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000014933 sed -n \
14934 "s/'/'\\\\''/g;
14935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000014936 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000014937 *)
14938 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000014939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000014940 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014941 esac |
14942 sort
14943) |
brynercb91a2f2006-08-25 21:14:45 +000014944 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000014945 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000014946 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000014947 :clear
brynercb91a2f2006-08-25 21:14:45 +000014948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14949 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000014950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14951 :end' >>confcache
14952if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14953 if test -w "$cache_file"; then
14954 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000014955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14956$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014957 cat confcache >$cache_file
14958 else
jimblandy92b1f832009-12-23 22:23:49 +000014959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14960$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000014961 fi
14962fi
14963rm -f confcache
14964
14965test "x$prefix" = xNONE && prefix=$ac_default_prefix
14966# Let make expand exec_prefix.
14967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14968
brynercb91a2f2006-08-25 21:14:45 +000014969DEFS=-DHAVE_CONFIG_H
14970
14971ac_libobjs=
14972ac_ltlibobjs=
14973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14974 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000014975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000014976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000014977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14978 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000014979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000014981done
14982LIBOBJS=$ac_libobjs
14983
14984LTLIBOBJS=$ac_ltlibobjs
14985
14986
jimblandy92b1f832009-12-23 22:23:49 +000014987 if test -n "$EXEEXT"; then
14988 am__EXEEXT_TRUE=
14989 am__EXEEXT_FALSE='#'
14990else
14991 am__EXEEXT_TRUE='#'
14992 am__EXEEXT_FALSE=
14993fi
14994
brynercb91a2f2006-08-25 21:14:45 +000014995if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000014996 as_fn_error "conditional \"AMDEP\" was never defined.
14997Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000014998fi
14999if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015000 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15001Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015002fi
15003if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015004 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15005Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006fi
15007if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15008 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15009Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015010fi
mmentovai0dbedc92006-09-25 21:16:15 +000015011if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
jimblandy92b1f832009-12-23 22:23:49 +000015012 as_fn_error "conditional \"SELFTEST\" was never defined.
15013Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015014fi
brynercb91a2f2006-08-25 21:14:45 +000015015
15016: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000015017ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000015018ac_clean_files_save=$ac_clean_files
15019ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000015020{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15021$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15022as_write_fail=0
15023cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015024#! $SHELL
15025# Generated by $as_me.
15026# Run this file to recreate the current configuration.
15027# Compiler output produced by configure, useful for debugging
15028# configure, is in config.log if it exists.
15029
15030debug=false
15031ac_cs_recheck=false
15032ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000015033
jimblandy92b1f832009-12-23 22:23:49 +000015034SHELL=\${CONFIG_SHELL-$SHELL}
15035export SHELL
15036_ASEOF
15037cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15038## -------------------- ##
15039## M4sh Initialization. ##
15040## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000015041
mmentovaiaf3c43f2007-05-17 18:34:37 +000015042# Be more Bourne compatible
15043DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000015044if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000015045 emulate sh
15046 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000015047 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000015048 # is contrary to our usage. Disable this feature.
15049 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000015050 setopt NO_GLOB_SUBST
15051else
jimblandy92b1f832009-12-23 22:23:49 +000015052 case `(set -o) 2>/dev/null` in #(
15053 *posix*) :
15054 set -o posix ;; #(
15055 *) :
15056 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015057esac
brynercb91a2f2006-08-25 21:14:45 +000015058fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015059
15060
jimblandy92b1f832009-12-23 22:23:49 +000015061as_nl='
15062'
15063export as_nl
15064# Printing a long string crashes Solaris 7 /usr/bin/printf.
15065as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15066as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15067as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15068# Prefer a ksh shell builtin over an external printf program on Solaris,
15069# but without wasting forks for bash or zsh.
15070if test -z "$BASH_VERSION$ZSH_VERSION" \
15071 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15072 as_echo='print -r --'
15073 as_echo_n='print -rn --'
15074elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15075 as_echo='printf %s\n'
15076 as_echo_n='printf %s'
15077else
15078 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15079 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15080 as_echo_n='/usr/ucb/echo -n'
15081 else
15082 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15083 as_echo_n_body='eval
15084 arg=$1;
15085 case $arg in #(
15086 *"$as_nl"*)
15087 expr "X$arg" : "X\\(.*\\)$as_nl";
15088 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15089 esac;
15090 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15091 '
15092 export as_echo_n_body
15093 as_echo_n='sh -c $as_echo_n_body as_echo'
15094 fi
15095 export as_echo_body
15096 as_echo='sh -c $as_echo_body as_echo'
15097fi
brynercb91a2f2006-08-25 21:14:45 +000015098
15099# The user is always right.
15100if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000015101 PATH_SEPARATOR=:
15102 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15103 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15104 PATH_SEPARATOR=';'
15105 }
mmentovai8c2a4de2006-09-20 16:20:15 +000015106fi
brynercb91a2f2006-08-25 21:14:45 +000015107
mmentovai8c2a4de2006-09-20 16:20:15 +000015108
15109# IFS
15110# We need space, tab and new line, in precisely that order. Quoting is
15111# there to prevent editors from complaining about space-tab.
15112# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15113# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000015114IFS=" "" $as_nl"
15115
15116# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000015117case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000015118 *[\\/]* ) as_myself=$0 ;;
15119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000015120for as_dir in $PATH
15121do
15122 IFS=$as_save_IFS
15123 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000015124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15125 done
mmentovai8c2a4de2006-09-20 16:20:15 +000015126IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000015127
mmentovai8c2a4de2006-09-20 16:20:15 +000015128 ;;
15129esac
15130# We did not find ourselves, most probably we were run as `sh COMMAND'
15131# in which case we are not to be found in the path.
15132if test "x$as_myself" = x; then
15133 as_myself=$0
15134fi
15135if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000015136 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15137 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000015138fi
15139
jimblandy92b1f832009-12-23 22:23:49 +000015140# Unset variables that we do not need and which cause bugs (e.g. in
15141# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15142# suppresses any "Segmentation fault" message there. '((' could
15143# trigger a bug in pdksh 5.2.14.
15144for as_var in BASH_ENV ENV MAIL MAILPATH
15145do eval test x\${$as_var+set} = xset \
15146 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000015147done
15148PS1='$ '
15149PS2='> '
15150PS4='+ '
15151
15152# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000015153LC_ALL=C
15154export LC_ALL
15155LANGUAGE=C
15156export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000015157
jimblandy92b1f832009-12-23 22:23:49 +000015158# CDPATH.
15159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15160
15161
15162# as_fn_error ERROR [LINENO LOG_FD]
15163# ---------------------------------
15164# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15165# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15166# script with status $?, using 1 if that was 0.
15167as_fn_error ()
15168{
15169 as_status=$?; test $as_status -eq 0 && as_status=1
15170 if test "$3"; then
15171 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15172 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15173 fi
15174 $as_echo "$as_me: error: $1" >&2
15175 as_fn_exit $as_status
15176} # as_fn_error
15177
15178
15179# as_fn_set_status STATUS
15180# -----------------------
15181# Set $? to STATUS, without forking.
15182as_fn_set_status ()
15183{
15184 return $1
15185} # as_fn_set_status
15186
15187# as_fn_exit STATUS
15188# -----------------
15189# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15190as_fn_exit ()
15191{
15192 set +e
15193 as_fn_set_status $1
15194 exit $1
15195} # as_fn_exit
15196
15197# as_fn_unset VAR
15198# ---------------
15199# Portably unset VAR.
15200as_fn_unset ()
15201{
15202 { eval $1=; unset $1;}
15203}
15204as_unset=as_fn_unset
15205# as_fn_append VAR VALUE
15206# ----------------------
15207# Append the text in VALUE to the end of the definition contained in VAR. Take
15208# advantage of any shell optimizations that allow amortized linear growth over
15209# repeated appends, instead of the typical quadratic growth present in naive
15210# implementations.
15211if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15212 eval 'as_fn_append ()
15213 {
15214 eval $1+=\$2
15215 }'
15216else
15217 as_fn_append ()
15218 {
15219 eval $1=\$$1\$2
15220 }
15221fi # as_fn_append
15222
15223# as_fn_arith ARG...
15224# ------------------
15225# Perform arithmetic evaluation on the ARGs, and store the result in the
15226# global $as_val. Take advantage of shells that can avoid forks. The arguments
15227# must be portable across $(()) and expr.
15228if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15229 eval 'as_fn_arith ()
15230 {
15231 as_val=$(( $* ))
15232 }'
15233else
15234 as_fn_arith ()
15235 {
15236 as_val=`expr "$@" || test $? -eq 1`
15237 }
15238fi # as_fn_arith
15239
15240
mmentovai8c2a4de2006-09-20 16:20:15 +000015241if expr a : '\(a\)' >/dev/null 2>&1 &&
15242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15243 as_expr=expr
15244else
15245 as_expr=false
15246fi
15247
15248if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15249 as_basename=basename
15250else
15251 as_basename=false
15252fi
15253
jimblandy92b1f832009-12-23 22:23:49 +000015254if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15255 as_dirname=dirname
15256else
15257 as_dirname=false
15258fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015259
mmentovai8c2a4de2006-09-20 16:20:15 +000015260as_me=`$as_basename -- "$0" ||
15261$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15262 X"$0" : 'X\(//\)$' \| \
15263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015264$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015265 sed '/^.*\/\([^/][^/]*\)\/*$/{
15266 s//\1/
15267 q
15268 }
15269 /^X\/\(\/\/\)$/{
15270 s//\1/
15271 q
15272 }
15273 /^X\/\(\/\).*/{
15274 s//\1/
15275 q
15276 }
15277 s/.*/./; q'`
15278
jimblandy92b1f832009-12-23 22:23:49 +000015279# Avoid depending upon Character Ranges.
15280as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15282as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15283as_cr_digits='0123456789'
15284as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000015285
15286ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000015287case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000015288-n*)
jimblandy92b1f832009-12-23 22:23:49 +000015289 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015290 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000015291 xy) ECHO_C='\c';;
15292 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15293 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000015294 esac;;
15295*)
15296 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000015297esac
15298
brynercb91a2f2006-08-25 21:14:45 +000015299rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000015300if test -d conf$$.dir; then
15301 rm -f conf$$.dir/conf$$.file
15302else
15303 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000015304 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000015305fi
jimblandy92b1f832009-12-23 22:23:49 +000015306if (echo >conf$$.file) 2>/dev/null; then
15307 if ln -s conf$$.file conf$$ 2>/dev/null; then
15308 as_ln_s='ln -s'
15309 # ... but there are two gotchas:
15310 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15311 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15312 # In both cases, we have to default to `cp -p'.
15313 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15314 as_ln_s='cp -p'
15315 elif ln conf$$.file conf$$ 2>/dev/null; then
15316 as_ln_s=ln
15317 else
brynercb91a2f2006-08-25 21:14:45 +000015318 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000015319 fi
brynercb91a2f2006-08-25 21:14:45 +000015320else
15321 as_ln_s='cp -p'
15322fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015323rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15324rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000015325
jimblandy92b1f832009-12-23 22:23:49 +000015326
15327# as_fn_mkdir_p
15328# -------------
15329# Create "$as_dir" as a directory, including parents if necessary.
15330as_fn_mkdir_p ()
15331{
15332
15333 case $as_dir in #(
15334 -*) as_dir=./$as_dir;;
15335 esac
15336 test -d "$as_dir" || eval $as_mkdir_p || {
15337 as_dirs=
15338 while :; do
15339 case $as_dir in #(
15340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15341 *) as_qdir=$as_dir;;
15342 esac
15343 as_dirs="'$as_qdir' $as_dirs"
15344 as_dir=`$as_dirname -- "$as_dir" ||
15345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15346 X"$as_dir" : 'X\(//\)[^/]' \| \
15347 X"$as_dir" : 'X\(//\)$' \| \
15348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15349$as_echo X"$as_dir" |
15350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15351 s//\1/
15352 q
15353 }
15354 /^X\(\/\/\)[^/].*/{
15355 s//\1/
15356 q
15357 }
15358 /^X\(\/\/\)$/{
15359 s//\1/
15360 q
15361 }
15362 /^X\(\/\).*/{
15363 s//\1/
15364 q
15365 }
15366 s/.*/./; q'`
15367 test -d "$as_dir" && break
15368 done
15369 test -z "$as_dirs" || eval "mkdir $as_dirs"
15370 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15371
15372
15373} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015374if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000015375 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000015376else
15377 test -d ./-p && rmdir ./-p
15378 as_mkdir_p=false
15379fi
15380
mmentovaiaf3c43f2007-05-17 18:34:37 +000015381if test -x / >/dev/null 2>&1; then
15382 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000015383else
mmentovaiaf3c43f2007-05-17 18:34:37 +000015384 if ls -dL / >/dev/null 2>&1; then
15385 as_ls_L_option=L
15386 else
15387 as_ls_L_option=
15388 fi
15389 as_test_x='
15390 eval sh -c '\''
15391 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000015392 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000015393 else
jimblandy92b1f832009-12-23 22:23:49 +000015394 case $1 in #(
15395 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015396 esac;
jimblandy92b1f832009-12-23 22:23:49 +000015397 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000015398 ???[sx]*):;;*)false;;esac;fi
15399 '\'' sh
15400 '
mmentovai8c2a4de2006-09-20 16:20:15 +000015401fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015402as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000015403
15404# Sed expression to map a string onto a valid CPP name.
15405as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15406
15407# Sed expression to map a string onto a valid variable name.
15408as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15409
15410
brynercb91a2f2006-08-25 21:14:45 +000015411exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000015412## ----------------------------------- ##
15413## Main body of $CONFIG_STATUS script. ##
15414## ----------------------------------- ##
15415_ASEOF
15416test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015417
jimblandy92b1f832009-12-23 22:23:49 +000015418cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000015420# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000015421# values after options handling.
15422ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000015423This file was extended by breakpad $as_me 0.1, which was
jimblandydc4029a2010-02-02 17:39:51 +000015424generated by GNU Autoconf 2.65. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000015425
15426 CONFIG_FILES = $CONFIG_FILES
15427 CONFIG_HEADERS = $CONFIG_HEADERS
15428 CONFIG_LINKS = $CONFIG_LINKS
15429 CONFIG_COMMANDS = $CONFIG_COMMANDS
15430 $ $0 $@
15431
mmentovai8c2a4de2006-09-20 16:20:15 +000015432on `(hostname || uname -n) 2>/dev/null | sed 1q`
15433"
15434
brynercb91a2f2006-08-25 21:14:45 +000015435_ACEOF
15436
jimblandy92b1f832009-12-23 22:23:49 +000015437case $ac_config_files in *"
15438"*) set x $ac_config_files; shift; ac_config_files=$*;;
15439esac
15440
15441case $ac_config_headers in *"
15442"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15443esac
15444
15445
15446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015447# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000015448config_files="$ac_config_files"
15449config_headers="$ac_config_headers"
15450config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000015451
mmentovai8c2a4de2006-09-20 16:20:15 +000015452_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000015453
jimblandy92b1f832009-12-23 22:23:49 +000015454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015455ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000015456\`$as_me' instantiates files and other configuration actions
15457from templates according to the current configuration. Unless the files
15458and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000015459
jimblandy92b1f832009-12-23 22:23:49 +000015460Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000015461
15462 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000015463 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000015464 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000015465 -q, --quiet, --silent
15466 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000015467 -d, --debug don't remove temporary files
15468 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000015469 --file=FILE[:TEMPLATE]
15470 instantiate the configuration file FILE
15471 --header=FILE[:TEMPLATE]
15472 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000015473
15474Configuration files:
15475$config_files
15476
15477Configuration headers:
15478$config_headers
15479
15480Configuration commands:
15481$config_commands
15482
jimblandy92b1f832009-12-23 22:23:49 +000015483Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015484
mmentovai8c2a4de2006-09-20 16:20:15 +000015485_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015487ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015488ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015489breakpad config.status 0.1
jimblandydc4029a2010-02-02 17:39:51 +000015490configured by $0, generated by GNU Autoconf 2.65,
15491 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015492
jimblandy92b1f832009-12-23 22:23:49 +000015493Copyright (C) 2009 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015494This config.status script is free software; the Free Software Foundation
15495gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015496
15497ac_pwd='$ac_pwd'
15498srcdir='$srcdir'
15499INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015500MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015501AWK='$AWK'
15502test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015503_ACEOF
15504
jimblandy92b1f832009-12-23 22:23:49 +000015505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015507ac_need_defaults=:
15508while test $# != 0
15509do
15510 case $1 in
15511 --*=*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015512 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15513 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015514 ac_shift=:
15515 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015516 *)
brynercb91a2f2006-08-25 21:14:45 +000015517 ac_option=$1
15518 ac_optarg=$2
15519 ac_shift=shift
15520 ;;
brynercb91a2f2006-08-25 21:14:45 +000015521 esac
15522
15523 case $ac_option in
15524 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15526 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015527 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015528 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015529 --config | --confi | --conf | --con | --co | --c )
15530 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015531 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015532 debug=: ;;
15533 --file | --fil | --fi | --f )
15534 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015535 case $ac_optarg in
15536 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15537 esac
15538 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015539 ac_need_defaults=false;;
15540 --header | --heade | --head | --hea )
15541 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015542 case $ac_optarg in
15543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15544 esac
15545 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015546 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015547 --he | --h)
15548 # Conflict between --help and --header
jimblandy92b1f832009-12-23 22:23:49 +000015549 as_fn_error "ambiguous option: \`$1'
15550Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015551 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015552 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15554 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15555 ac_cs_silent=: ;;
15556
15557 # This is an error.
jimblandy92b1f832009-12-23 22:23:49 +000015558 -*) as_fn_error "unrecognized option: \`$1'
15559Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015560
jimblandy92b1f832009-12-23 22:23:49 +000015561 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015562 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015563
15564 esac
15565 shift
15566done
15567
15568ac_configure_extra_args=
15569
15570if $ac_cs_silent; then
15571 exec 6>/dev/null
15572 ac_configure_extra_args="$ac_configure_extra_args --silent"
15573fi
15574
15575_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015577if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015578 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15579 shift
15580 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15581 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015582 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015583 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015584fi
15585
15586_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015588exec 5>>config.log
15589{
15590 echo
15591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15592## Running $as_me. ##
15593_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015594 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015595} >&5
brynercb91a2f2006-08-25 21:14:45 +000015596
mmentovai8c2a4de2006-09-20 16:20:15 +000015597_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015598cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015599#
mmentovai8c2a4de2006-09-20 16:20:15 +000015600# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015601#
brynercb91a2f2006-08-25 21:14:45 +000015602AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15603
jimblandy92b1f832009-12-23 22:23:49 +000015604
15605# The HP-UX ksh and POSIX shell print the target directory to stdout
15606# if CDPATH is set.
15607(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15608
15609sed_quote_subst='$sed_quote_subst'
15610double_quote_subst='$double_quote_subst'
15611delay_variable_subst='$delay_variable_subst'
15612macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15613macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15614enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15615enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15616pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15617enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15618host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15619host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15620host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15621build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15622build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15623build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15624SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15625Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15626GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15627EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15628FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15629LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15630NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15631LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15632max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15633ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15634exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15635lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15636lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15637lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15638reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15639reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15640OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15641deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15642file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15643AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15644AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15645STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15646RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15647old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15648old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15649old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15650CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15651CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15652compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15653GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15654lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15655lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15656lt_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"`'
15657lt_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"`'
15658objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15659SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15660ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15661MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15662lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15663lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15664lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15665lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15666lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15667need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15668DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15669NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15670LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15671OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15672OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15673libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15674shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15675extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15676archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15677enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15678export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15679whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15680compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15681old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15682old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15683archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15684archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15685module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15686module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15687with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15688allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15689no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15690hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15691hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15692hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15693hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15694hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15695hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15696hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15697hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15698inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15699link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15700fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15701always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15702export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15703exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15704include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15705prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15706file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15707variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15708need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15709need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15710version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15711runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15712shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15713shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15714libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15715library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15716soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15717postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15718postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15719finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15720finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15721hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15722sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15723sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15724hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15725enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15726enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15727enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15728old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15729striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15730compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15731predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15732postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15733predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15734postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15735compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15736LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15737old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15738compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15739GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15740lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15741lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15742lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15743lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15744lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15745archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15746enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15747export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15748whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15749compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15750old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15751old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15752archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15753archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15754module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15755module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15756with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15757allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15758no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15759hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15760hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15761hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15762hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15763hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15764hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15765hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15766hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15767inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15768link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15769fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15770always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15771export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15772exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15773include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15774prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15775file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15776hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15777compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15778predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15779postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15780predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15781postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15782compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15783
15784LTCC='$LTCC'
15785LTCFLAGS='$LTCFLAGS'
15786compiler='$compiler_DEFAULT'
15787
15788# Quote evaled strings.
15789for var in SED \
15790GREP \
15791EGREP \
15792FGREP \
15793LD \
15794NM \
15795LN_S \
15796lt_SP2NL \
15797lt_NL2SP \
15798reload_flag \
15799OBJDUMP \
15800deplibs_check_method \
15801file_magic_cmd \
15802AR \
15803AR_FLAGS \
15804STRIP \
15805RANLIB \
15806CC \
15807CFLAGS \
15808compiler \
15809lt_cv_sys_global_symbol_pipe \
15810lt_cv_sys_global_symbol_to_cdecl \
15811lt_cv_sys_global_symbol_to_c_name_address \
15812lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15813SHELL \
15814ECHO \
15815lt_prog_compiler_no_builtin_flag \
15816lt_prog_compiler_wl \
15817lt_prog_compiler_pic \
15818lt_prog_compiler_static \
15819lt_cv_prog_compiler_c_o \
15820need_locks \
15821DSYMUTIL \
15822NMEDIT \
15823LIPO \
15824OTOOL \
15825OTOOL64 \
15826shrext_cmds \
15827export_dynamic_flag_spec \
15828whole_archive_flag_spec \
15829compiler_needs_object \
15830with_gnu_ld \
15831allow_undefined_flag \
15832no_undefined_flag \
15833hardcode_libdir_flag_spec \
15834hardcode_libdir_flag_spec_ld \
15835hardcode_libdir_separator \
15836fix_srcfile_path \
15837exclude_expsyms \
15838include_expsyms \
15839file_list_spec \
15840variables_saved_for_relink \
15841libname_spec \
15842library_names_spec \
15843soname_spec \
15844finish_eval \
15845old_striplib \
15846striplib \
15847compiler_lib_search_dirs \
15848predep_objects \
15849postdep_objects \
15850predeps \
15851postdeps \
15852compiler_lib_search_path \
15853LD_CXX \
15854compiler_CXX \
15855lt_prog_compiler_no_builtin_flag_CXX \
15856lt_prog_compiler_wl_CXX \
15857lt_prog_compiler_pic_CXX \
15858lt_prog_compiler_static_CXX \
15859lt_cv_prog_compiler_c_o_CXX \
15860export_dynamic_flag_spec_CXX \
15861whole_archive_flag_spec_CXX \
15862compiler_needs_object_CXX \
15863with_gnu_ld_CXX \
15864allow_undefined_flag_CXX \
15865no_undefined_flag_CXX \
15866hardcode_libdir_flag_spec_CXX \
15867hardcode_libdir_flag_spec_ld_CXX \
15868hardcode_libdir_separator_CXX \
15869fix_srcfile_path_CXX \
15870exclude_expsyms_CXX \
15871include_expsyms_CXX \
15872file_list_spec_CXX \
15873compiler_lib_search_dirs_CXX \
15874predep_objects_CXX \
15875postdep_objects_CXX \
15876predeps_CXX \
15877postdeps_CXX \
15878compiler_lib_search_path_CXX; do
15879 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15880 *[\\\\\\\`\\"\\\$]*)
15881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15882 ;;
15883 *)
15884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15885 ;;
15886 esac
15887done
15888
15889# Double-quote double-evaled strings.
15890for var in reload_cmds \
15891old_postinstall_cmds \
15892old_postuninstall_cmds \
15893old_archive_cmds \
15894extract_expsyms_cmds \
15895old_archive_from_new_cmds \
15896old_archive_from_expsyms_cmds \
15897archive_cmds \
15898archive_expsym_cmds \
15899module_cmds \
15900module_expsym_cmds \
15901export_symbols_cmds \
15902prelink_cmds \
15903postinstall_cmds \
15904postuninstall_cmds \
15905finish_cmds \
15906sys_lib_search_path_spec \
15907sys_lib_dlsearch_path_spec \
15908old_archive_cmds_CXX \
15909old_archive_from_new_cmds_CXX \
15910old_archive_from_expsyms_cmds_CXX \
15911archive_cmds_CXX \
15912archive_expsym_cmds_CXX \
15913module_cmds_CXX \
15914module_expsym_cmds_CXX \
15915export_symbols_cmds_CXX \
15916prelink_cmds_CXX; do
15917 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15918 *[\\\\\\\`\\"\\\$]*)
15919 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15920 ;;
15921 *)
15922 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15923 ;;
15924 esac
15925done
15926
15927# Fix-up fallback echo if it was mangled by the above quoting rules.
15928case \$lt_ECHO in
15929*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15930 ;;
15931esac
15932
15933ac_aux_dir='$ac_aux_dir'
15934xsi_shell='$xsi_shell'
15935lt_shell_append='$lt_shell_append'
15936
15937# See if we are running on zsh, and set the options which allow our
15938# commands through without removal of \ escapes INIT.
15939if test -n "\${ZSH_VERSION+set}" ; then
15940 setopt NO_GLOB_SUBST
15941fi
15942
15943
15944 PACKAGE='$PACKAGE'
15945 VERSION='$VERSION'
15946 TIMESTAMP='$TIMESTAMP'
15947 RM='$RM'
15948 ofile='$ofile'
15949
15950
15951
15952
15953
15954
brynercb91a2f2006-08-25 21:14:45 +000015955_ACEOF
15956
jimblandy92b1f832009-12-23 22:23:49 +000015957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015958
15959# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000015960for ac_config_target in $ac_config_targets
15961do
mmentovai8c2a4de2006-09-20 16:20:15 +000015962 case $ac_config_target in
15963 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15964 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000015965 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015966 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15967
jimblandy92b1f832009-12-23 22:23:49 +000015968 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000015969 esac
15970done
15971
mmentovai8c2a4de2006-09-20 16:20:15 +000015972
brynercb91a2f2006-08-25 21:14:45 +000015973# If the user did not use the arguments to specify the items to instantiate,
15974# then the envvar interface is used. Set only those that are not.
15975# We use the long form for the default assignment because of an extremely
15976# bizarre bug on SunOS 4.1.3.
15977if $ac_need_defaults; then
15978 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15979 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15980 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15981fi
15982
15983# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000015984# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000015985# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000015986# Hook for its removal unless debugging.
15987# Note that there is a small window in which the directory will not be cleaned:
15988# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000015989$debug ||
15990{
mmentovai8c2a4de2006-09-20 16:20:15 +000015991 tmp=
15992 trap 'exit_status=$?
15993 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15994' 0
jimblandy92b1f832009-12-23 22:23:49 +000015995 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000015996}
brynercb91a2f2006-08-25 21:14:45 +000015997# Create a (secure) tmp directory for tmp files.
15998
15999{
mmentovai8c2a4de2006-09-20 16:20:15 +000016000 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000016001 test -n "$tmp" && test -d "$tmp"
16002} ||
16003{
mmentovai8c2a4de2006-09-20 16:20:15 +000016004 tmp=./conf$$-$RANDOM
16005 (umask 077 && mkdir "$tmp")
jimblandy92b1f832009-12-23 22:23:49 +000016006} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016007
jimblandy92b1f832009-12-23 22:23:49 +000016008# Set up the scripts for CONFIG_FILES section.
16009# No need to generate them if there are no CONFIG_FILES.
16010# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000016011if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000016012
jimblandy92b1f832009-12-23 22:23:49 +000016013
16014ac_cr=`echo X | tr X '\015'`
16015# On cygwin, bash can eat \r inside `` if the user requested igncr.
16016# But we know of no other shell where ac_cr would be empty at this
16017# point, so we can use a bashism as a fallback.
16018if test "x$ac_cr" = x; then
16019 eval ac_cr=\$\'\\r\'
16020fi
16021ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16022if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16023 ac_cs_awk_cr='\r'
16024else
16025 ac_cs_awk_cr=$ac_cr
16026fi
16027
16028echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000016029_ACEOF
16030
mmentovai8c2a4de2006-09-20 16:20:15 +000016031
jimblandy92b1f832009-12-23 22:23:49 +000016032{
16033 echo "cat >conf$$subs.awk <<_ACEOF" &&
16034 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16035 echo "_ACEOF"
16036} >conf$$subs.sh ||
16037 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16038ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016039ac_delim='%!_!# '
16040for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000016041 . ./conf$$subs.sh ||
16042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016043
jimblandy92b1f832009-12-23 22:23:49 +000016044 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16045 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016046 break
16047 elif $ac_last_try; then
jimblandy92b1f832009-12-23 22:23:49 +000016048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016049 else
16050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000016051 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016052done
jimblandy92b1f832009-12-23 22:23:49 +000016053rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000016054
jimblandy92b1f832009-12-23 22:23:49 +000016055cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16056cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000016057_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016058sed -n '
16059h
16060s/^/S["/; s/!.*/"]=/
16061p
16062g
16063s/^[^!]*!//
16064:repl
16065t repl
16066s/'"$ac_delim"'$//
16067t delim
16068:nl
16069h
jimblandydc4029a2010-02-02 17:39:51 +000016070s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016071t more1
16072s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16073p
16074n
16075b repl
16076:more1
16077s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16078p
16079g
16080s/.\{148\}//
16081t nl
16082:delim
16083h
jimblandydc4029a2010-02-02 17:39:51 +000016084s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016085t more2
16086s/["\\]/\\&/g; s/^/"/; s/$/"/
16087p
16088b
16089:more2
16090s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16091p
16092g
16093s/.\{148\}//
16094t delim
16095' <conf$$subs.awk | sed '
16096/^[^""]/{
16097 N
16098 s/\n//
16099}
16100' >>$CONFIG_STATUS || ac_write_fail=1
16101rm -f conf$$subs.awk
16102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16103_ACAWK
16104cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16105 for (key in S) S_is_set[key] = 1
16106 FS = ""
16107
16108}
16109{
16110 line = $ 0
16111 nfields = split(line, field, "@")
16112 substed = 0
16113 len = length(field[1])
16114 for (i = 2; i < nfields; i++) {
16115 key = field[i]
16116 keylen = length(key)
16117 if (S_is_set[key]) {
16118 value = S[key]
16119 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16120 len += length(value) + length(field[++i])
16121 substed = 1
16122 } else
16123 len += 1 + keylen
16124 }
16125
16126 print line
16127}
16128
16129_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000016130_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16133 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16134else
16135 cat
16136fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16137 || as_fn_error "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016138_ACEOF
16139
mmentovai8c2a4de2006-09-20 16:20:15 +000016140# VPATH may cause trouble with some makes, so we remove $(srcdir),
16141# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16142# trailing colons and then remove the whole line if VPATH becomes empty
16143# (actually we leave an empty line to preserve line numbers).
16144if test "x$srcdir" = x.; then
16145 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16146s/:*\$(srcdir):*/:/
16147s/:*\${srcdir}:*/:/
16148s/:*@srcdir@:*/:/
16149s/^\([^=]*=[ ]*\):*/\1/
16150s/:*$//
16151s/^[^=]*=[ ]*$//
16152}'
16153fi
16154
jimblandy92b1f832009-12-23 22:23:49 +000016155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016156fi # test -n "$CONFIG_FILES"
16157
jimblandy92b1f832009-12-23 22:23:49 +000016158# Set up the scripts for CONFIG_HEADERS section.
16159# No need to generate them if there are no CONFIG_HEADERS.
16160# This happens for instance with `./config.status Makefile'.
16161if test -n "$CONFIG_HEADERS"; then
16162cat >"$tmp/defines.awk" <<\_ACAWK ||
16163BEGIN {
16164_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016165
jimblandy92b1f832009-12-23 22:23:49 +000016166# Transform confdefs.h into an awk script `defines.awk', embedded as
16167# here-document in config.status, that substitutes the proper values into
16168# config.h.in to produce config.h.
16169
16170# Create a delimiter string that does not exist in confdefs.h, to ease
16171# handling of long lines.
16172ac_delim='%!_!# '
16173for ac_last_try in false false :; do
16174 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16175 if test -z "$ac_t"; then
16176 break
16177 elif $ac_last_try; then
16178 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16179 else
16180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16181 fi
16182done
16183
16184# For the awk script, D is an array of macro values keyed by name,
16185# likewise P contains macro parameters if any. Preserve backslash
16186# newline sequences.
16187
16188ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16189sed -n '
16190s/.\{148\}/&'"$ac_delim"'/g
16191t rset
16192:rset
16193s/^[ ]*#[ ]*define[ ][ ]*/ /
16194t def
16195d
16196:def
16197s/\\$//
16198t bsnl
16199s/["\\]/\\&/g
16200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16201D["\1"]=" \3"/p
16202s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16203d
16204:bsnl
16205s/["\\]/\\&/g
16206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16207D["\1"]=" \3\\\\\\n"\\/p
16208t cont
16209s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16210t cont
16211d
16212:cont
16213n
16214s/.\{148\}/&'"$ac_delim"'/g
16215t clear
16216:clear
16217s/\\$//
16218t bsnlc
16219s/["\\]/\\&/g; s/^/"/; s/$/"/p
16220d
16221:bsnlc
16222s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16223b cont
16224' <confdefs.h | sed '
16225s/'"$ac_delim"'/"\\\
16226"/g' >>$CONFIG_STATUS || ac_write_fail=1
16227
16228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16229 for (key in D) D_is_set[key] = 1
16230 FS = ""
16231}
16232/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16233 line = \$ 0
16234 split(line, arg, " ")
16235 if (arg[1] == "#") {
16236 defundef = arg[2]
16237 mac1 = arg[3]
16238 } else {
16239 defundef = substr(arg[1], 2)
16240 mac1 = arg[2]
16241 }
16242 split(mac1, mac2, "(") #)
16243 macro = mac2[1]
16244 prefix = substr(line, 1, index(line, defundef) - 1)
16245 if (D_is_set[macro]) {
16246 # Preserve the white space surrounding the "#".
16247 print prefix "define", macro P[macro] D[macro]
16248 next
16249 } else {
16250 # Replace #undef with comments. This is necessary, for example,
16251 # in the case of _POSIX_SOURCE, which is predefined and required
16252 # on some systems where configure will not decide to define it.
16253 if (defundef == "undef") {
16254 print "/*", prefix defundef, macro, "*/"
16255 next
16256 }
16257 }
16258}
16259{ print }
16260_ACAWK
16261_ACEOF
16262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16264fi # test -n "$CONFIG_HEADERS"
16265
16266
16267eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16268shift
16269for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000016270do
16271 case $ac_tag in
16272 :[FHLC]) ac_mode=$ac_tag; continue;;
16273 esac
16274 case $ac_mode$ac_tag in
16275 :[FHL]*:*);;
jimblandy92b1f832009-12-23 22:23:49 +000016276 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016277 :[FH]-) ac_tag=-:-;;
16278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16279 esac
16280 ac_save_IFS=$IFS
16281 IFS=:
16282 set x $ac_tag
16283 IFS=$ac_save_IFS
16284 shift
16285 ac_file=$1
16286 shift
16287
16288 case $ac_mode in
16289 :L) ac_source=$1;;
16290 :[FH])
16291 ac_file_inputs=
16292 for ac_f
16293 do
16294 case $ac_f in
16295 -) ac_f="$tmp/stdin";;
16296 *) # Look for the file first in the build tree, then in the source tree
16297 # (if the path is not absolute). The absolute path cannot be DOS-style,
16298 # because $ac_f cannot contain `:'.
16299 test -f "$ac_f" ||
16300 case $ac_f in
16301 [\\/$]*) false;;
16302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16303 esac ||
jimblandy92b1f832009-12-23 22:23:49 +000016304 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016305 esac
jimblandy92b1f832009-12-23 22:23:49 +000016306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16307 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000016308 done
16309
16310 # Let's still pretend it is `configure' which instantiates (i.e., don't
16311 # use $as_me), people would be surprised to read:
16312 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000016313 configure_input='Generated from '`
16314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16315 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000016316 if test x"$ac_file" != x-; then
16317 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000016318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16319$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016320 fi
jimblandy92b1f832009-12-23 22:23:49 +000016321 # Neutralize special characters interpreted by sed in replacement strings.
16322 case $configure_input in #(
16323 *\&* | *\|* | *\\* )
16324 ac_sed_conf_input=`$as_echo "$configure_input" |
16325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16326 *) ac_sed_conf_input=$configure_input;;
16327 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016328
16329 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000016330 *:-:* | *:-) cat >"$tmp/stdin" \
16331 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016332 esac
16333 ;;
brynercb91a2f2006-08-25 21:14:45 +000016334 esac
16335
mmentovai8c2a4de2006-09-20 16:20:15 +000016336 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000016337$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16338 X"$ac_file" : 'X\(//\)[^/]' \| \
16339 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016341$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16343 s//\1/
16344 q
16345 }
16346 /^X\(\/\/\)[^/].*/{
16347 s//\1/
16348 q
16349 }
16350 /^X\(\/\/\)$/{
16351 s//\1/
16352 q
16353 }
16354 /^X\(\/\).*/{
16355 s//\1/
16356 q
16357 }
16358 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016359 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000016360 ac_builddir=.
16361
mmentovai8c2a4de2006-09-20 16:20:15 +000016362case "$ac_dir" in
16363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16364*)
jimblandy92b1f832009-12-23 22:23:49 +000016365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016366 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000016367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016368 case $ac_top_builddir_sub in
16369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16371 esac ;;
16372esac
16373ac_abs_top_builddir=$ac_pwd
16374ac_abs_builddir=$ac_pwd$ac_dir_suffix
16375# for backward compatibility:
16376ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000016377
16378case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000016379 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000016380 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000016381 ac_top_srcdir=$ac_top_builddir_sub
16382 ac_abs_top_srcdir=$ac_pwd ;;
16383 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000016384 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000016385 ac_top_srcdir=$srcdir
16386 ac_abs_top_srcdir=$srcdir ;;
16387 *) # Relative name.
16388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16389 ac_top_srcdir=$ac_top_build_prefix$srcdir
16390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000016391esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000016393
brynercb91a2f2006-08-25 21:14:45 +000016394
mmentovai8c2a4de2006-09-20 16:20:15 +000016395 case $ac_mode in
16396 :F)
16397 #
16398 # CONFIG_FILE
16399 #
brynercb91a2f2006-08-25 21:14:45 +000016400
16401 case $INSTALL in
16402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000016404 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000016405 ac_MKDIR_P=$MKDIR_P
16406 case $MKDIR_P in
16407 [\\/$]* | ?:[\\/]* ) ;;
16408 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16409 esac
brynercb91a2f2006-08-25 21:14:45 +000016410_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016411
jimblandy92b1f832009-12-23 22:23:49 +000016412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016413# If the template does not know about datarootdir, expand it.
16414# FIXME: This hack should be removed a few years after 2.60.
16415ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000016416ac_sed_dataroot='
16417/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000016418 p
16419 q
16420}
16421/@datadir@/p
16422/@docdir@/p
16423/@infodir@/p
16424/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000016425/@mandir@/p'
16426case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000016427*datarootdir*) ac_datarootdir_seen=yes;;
16428*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000016429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16430$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016431_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016433 ac_datarootdir_hack='
16434 s&@datadir@&$datadir&g
16435 s&@docdir@&$docdir&g
16436 s&@infodir@&$infodir&g
16437 s&@localedir@&$localedir&g
16438 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000016439 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016440esac
16441_ACEOF
16442
16443# Neutralize VPATH when `$srcdir' = `.'.
16444# Shell code in configure.ac might set extrasub.
16445# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000016446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16447ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000016448$extrasub
16449_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016450cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016451:t
16452/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000016453s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016454s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000016455s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016456s&@srcdir@&$ac_srcdir&;t t
16457s&@abs_srcdir@&$ac_abs_srcdir&;t t
16458s&@top_srcdir@&$ac_top_srcdir&;t t
16459s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16460s&@builddir@&$ac_builddir&;t t
16461s&@abs_builddir@&$ac_abs_builddir&;t t
16462s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16463s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000016464s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016465$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000016466"
16467eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16468 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016469
mmentovai8c2a4de2006-09-20 16:20:15 +000016470test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000016473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016474which seems to be undefined. Please make sure it is defined." >&5
jimblandy92b1f832009-12-23 22:23:49 +000016475$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
mmentovai8c2a4de2006-09-20 16:20:15 +000016476which seems to be undefined. Please make sure it is defined." >&2;}
brynercb91a2f2006-08-25 21:14:45 +000016477
mmentovai8c2a4de2006-09-20 16:20:15 +000016478 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016479 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016480 -) cat "$tmp/out" && rm -f "$tmp/out";;
16481 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16482 esac \
16483 || as_fn_error "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016484 ;;
16485 :H)
16486 #
16487 # CONFIG_HEADER
16488 #
brynercb91a2f2006-08-25 21:14:45 +000016489 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016490 {
16491 $as_echo "/* $configure_input */" \
16492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16493 } >"$tmp/config.h" \
16494 || as_fn_error "could not create $ac_file" "$LINENO" 5
16495 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16497$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016498 else
jimblandy92b1f832009-12-23 22:23:49 +000016499 rm -f "$ac_file"
16500 mv "$tmp/config.h" "$ac_file" \
16501 || as_fn_error "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016502 fi
16503 else
jimblandy92b1f832009-12-23 22:23:49 +000016504 $as_echo "/* $configure_input */" \
16505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16506 || as_fn_error "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016507 fi
jimblandy92b1f832009-12-23 22:23:49 +000016508# Compute "$ac_file"'s index in $config_headers.
16509_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016510_am_stamp_count=1
16511for _am_header in $config_headers :; do
16512 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016513 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016514 break ;;
16515 * )
16516 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16517 esac
16518done
jimblandy92b1f832009-12-23 22:23:49 +000016519echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16520$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16521 X"$_am_arg" : 'X\(//\)[^/]' \| \
16522 X"$_am_arg" : 'X\(//\)$' \| \
16523 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16524$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16526 s//\1/
16527 q
16528 }
16529 /^X\(\/\/\)[^/].*/{
16530 s//\1/
16531 q
16532 }
16533 /^X\(\/\/\)$/{
16534 s//\1/
16535 q
16536 }
16537 /^X\(\/\).*/{
16538 s//\1/
16539 q
16540 }
16541 s/.*/./; q'`/stamp-h$_am_stamp_count
16542 ;;
brynercb91a2f2006-08-25 21:14:45 +000016543
jimblandy92b1f832009-12-23 22:23:49 +000016544 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16545$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016546 ;;
16547 esac
brynercb91a2f2006-08-25 21:14:45 +000016548
16549
mmentovai8c2a4de2006-09-20 16:20:15 +000016550 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016551 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16552 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16553 # are listed without --file. Let's play safe and only enable the eval
16554 # if we detect the quoting.
16555 case $CONFIG_FILES in
16556 *\'*) eval set x "$CONFIG_FILES" ;;
16557 *) set x $CONFIG_FILES ;;
16558 esac
16559 shift
16560 for mf
16561 do
16562 # Strip MF so we end up with the name of the file.
16563 mf=`echo "$mf" | sed -e 's/:.*$//'`
16564 # Check whether this is an Automake generated Makefile or not.
16565 # We used to match only the files named `Makefile.in', but
16566 # some people rename them; so instead we look at the file content.
16567 # Grep'ing the first line is not enough: some people post-process
16568 # each Makefile.in and add a new line on top of each file to say so.
16569 # Grep'ing the whole file is not good either: AIX grep has a line
16570 # limit of 2048, but all sed's we know have understand at least 4000.
16571 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16572 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016573$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16574 X"$mf" : 'X\(//\)[^/]' \| \
16575 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016576 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016577$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16579 s//\1/
16580 q
16581 }
16582 /^X\(\/\/\)[^/].*/{
16583 s//\1/
16584 q
16585 }
16586 /^X\(\/\/\)$/{
16587 s//\1/
16588 q
16589 }
16590 /^X\(\/\).*/{
16591 s//\1/
16592 q
16593 }
16594 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016595 else
16596 continue
16597 fi
16598 # Extract the definition of DEPDIR, am__include, and am__quote
16599 # from the Makefile without running `make'.
16600 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16601 test -z "$DEPDIR" && continue
16602 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16603 test -z "am__include" && continue
16604 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16605 # When using ansi2knr, U may be empty or an underscore; expand it
16606 U=`sed -n 's/^U = //p' < "$mf"`
16607 # Find all dependency output files, they are included files with
16608 # $(DEPDIR) in their names. We invoke sed twice because it is the
16609 # simplest approach to changing $(DEPDIR) to its actual value in the
16610 # expansion.
16611 for file in `sed -n "
16612 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16613 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16614 # Make sure the directory exists.
16615 test -f "$dirpart/$file" && continue
16616 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016617$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16618 X"$file" : 'X\(//\)[^/]' \| \
16619 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016620 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016621$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16623 s//\1/
16624 q
16625 }
16626 /^X\(\/\/\)[^/].*/{
16627 s//\1/
16628 q
16629 }
16630 /^X\(\/\/\)$/{
16631 s//\1/
16632 q
16633 }
16634 /^X\(\/\).*/{
16635 s//\1/
16636 q
16637 }
16638 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016639 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16640 # echo "creating $dirpart/$file"
16641 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016642 done
brynercb91a2f2006-08-25 21:14:45 +000016643 done
jimblandy92b1f832009-12-23 22:23:49 +000016644}
16645 ;;
16646 "libtool":C)
16647
16648 # See if we are running on zsh, and set the options which allow our
16649 # commands through without removal of \ escapes.
16650 if test -n "${ZSH_VERSION+set}" ; then
16651 setopt NO_GLOB_SUBST
16652 fi
16653
16654 cfgfile="${ofile}T"
16655 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16656 $RM "$cfgfile"
16657
16658 cat <<_LT_EOF >> "$cfgfile"
16659#! $SHELL
16660
16661# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16662# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16663# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16664# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16665#
16666# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16667# 2006, 2007, 2008 Free Software Foundation, Inc.
16668# Written by Gordon Matzigkeit, 1996
16669#
16670# This file is part of GNU Libtool.
16671#
16672# GNU Libtool is free software; you can redistribute it and/or
16673# modify it under the terms of the GNU General Public License as
16674# published by the Free Software Foundation; either version 2 of
16675# the License, or (at your option) any later version.
16676#
16677# As a special exception to the GNU General Public License,
16678# if you distribute this file as part of a program or library that
16679# is built using GNU Libtool, you may include this file under the
16680# same distribution terms that you use for the rest of that program.
16681#
16682# GNU Libtool is distributed in the hope that it will be useful,
16683# but WITHOUT ANY WARRANTY; without even the implied warranty of
16684# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16685# GNU General Public License for more details.
16686#
16687# You should have received a copy of the GNU General Public License
16688# along with GNU Libtool; see the file COPYING. If not, a copy
16689# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16690# obtained by writing to the Free Software Foundation, Inc.,
16691# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16692
16693
16694# The names of the tagged configurations supported by this script.
16695available_tags="CXX "
16696
16697# ### BEGIN LIBTOOL CONFIG
16698
16699# Which release of libtool.m4 was used?
16700macro_version=$macro_version
16701macro_revision=$macro_revision
16702
16703# Whether or not to build shared libraries.
16704build_libtool_libs=$enable_shared
16705
16706# Whether or not to build static libraries.
16707build_old_libs=$enable_static
16708
16709# What type of objects to build.
16710pic_mode=$pic_mode
16711
16712# Whether or not to optimize for fast installation.
16713fast_install=$enable_fast_install
16714
16715# The host system.
16716host_alias=$host_alias
16717host=$host
16718host_os=$host_os
16719
16720# The build system.
16721build_alias=$build_alias
16722build=$build
16723build_os=$build_os
16724
16725# A sed program that does not truncate output.
16726SED=$lt_SED
16727
16728# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16729Xsed="\$SED -e 1s/^X//"
16730
16731# A grep program that handles long lines.
16732GREP=$lt_GREP
16733
16734# An ERE matcher.
16735EGREP=$lt_EGREP
16736
16737# A literal string matcher.
16738FGREP=$lt_FGREP
16739
16740# A BSD- or MS-compatible name lister.
16741NM=$lt_NM
16742
16743# Whether we need soft or hard links.
16744LN_S=$lt_LN_S
16745
16746# What is the maximum length of a command?
16747max_cmd_len=$max_cmd_len
16748
16749# Object file suffix (normally "o").
16750objext=$ac_objext
16751
16752# Executable file suffix (normally "").
16753exeext=$exeext
16754
16755# whether the shell understands "unset".
16756lt_unset=$lt_unset
16757
16758# turn spaces into newlines.
16759SP2NL=$lt_lt_SP2NL
16760
16761# turn newlines into spaces.
16762NL2SP=$lt_lt_NL2SP
16763
16764# How to create reloadable object files.
16765reload_flag=$lt_reload_flag
16766reload_cmds=$lt_reload_cmds
16767
16768# An object symbol dumper.
16769OBJDUMP=$lt_OBJDUMP
16770
16771# Method to check whether dependent libraries are shared objects.
16772deplibs_check_method=$lt_deplibs_check_method
16773
16774# Command to use when deplibs_check_method == "file_magic".
16775file_magic_cmd=$lt_file_magic_cmd
16776
16777# The archiver.
16778AR=$lt_AR
16779AR_FLAGS=$lt_AR_FLAGS
16780
16781# A symbol stripping program.
16782STRIP=$lt_STRIP
16783
16784# Commands used to install an old-style archive.
16785RANLIB=$lt_RANLIB
16786old_postinstall_cmds=$lt_old_postinstall_cmds
16787old_postuninstall_cmds=$lt_old_postuninstall_cmds
16788
16789# A C compiler.
16790LTCC=$lt_CC
16791
16792# LTCC compiler flags.
16793LTCFLAGS=$lt_CFLAGS
16794
16795# Take the output of nm and produce a listing of raw symbols and C names.
16796global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16797
16798# Transform the output of nm in a proper C declaration.
16799global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16800
16801# Transform the output of nm in a C name address pair.
16802global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16803
16804# Transform the output of nm in a C name address pair when lib prefix is needed.
16805global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16806
16807# The name of the directory that contains temporary libtool files.
16808objdir=$objdir
16809
16810# Shell to use when invoking shell scripts.
16811SHELL=$lt_SHELL
16812
16813# An echo program that does not interpret backslashes.
16814ECHO=$lt_ECHO
16815
16816# Used to examine libraries when file_magic_cmd begins with "file".
16817MAGIC_CMD=$MAGIC_CMD
16818
16819# Must we lock files when doing compilation?
16820need_locks=$lt_need_locks
16821
16822# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16823DSYMUTIL=$lt_DSYMUTIL
16824
16825# Tool to change global to local symbols on Mac OS X.
16826NMEDIT=$lt_NMEDIT
16827
16828# Tool to manipulate fat objects and archives on Mac OS X.
16829LIPO=$lt_LIPO
16830
16831# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16832OTOOL=$lt_OTOOL
16833
16834# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16835OTOOL64=$lt_OTOOL64
16836
16837# Old archive suffix (normally "a").
16838libext=$libext
16839
16840# Shared library suffix (normally ".so").
16841shrext_cmds=$lt_shrext_cmds
16842
16843# The commands to extract the exported symbol list from a shared archive.
16844extract_expsyms_cmds=$lt_extract_expsyms_cmds
16845
16846# Variables whose values should be saved in libtool wrapper scripts and
16847# restored at link time.
16848variables_saved_for_relink=$lt_variables_saved_for_relink
16849
16850# Do we need the "lib" prefix for modules?
16851need_lib_prefix=$need_lib_prefix
16852
16853# Do we need a version for libraries?
16854need_version=$need_version
16855
16856# Library versioning type.
16857version_type=$version_type
16858
16859# Shared library runtime path variable.
16860runpath_var=$runpath_var
16861
16862# Shared library path variable.
16863shlibpath_var=$shlibpath_var
16864
16865# Is shlibpath searched before the hard-coded library search path?
16866shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16867
16868# Format of library name prefix.
16869libname_spec=$lt_libname_spec
16870
16871# List of archive names. First name is the real one, the rest are links.
16872# The last name is the one that the linker finds with -lNAME
16873library_names_spec=$lt_library_names_spec
16874
16875# The coded name of the library, if different from the real name.
16876soname_spec=$lt_soname_spec
16877
16878# Command to use after installation of a shared archive.
16879postinstall_cmds=$lt_postinstall_cmds
16880
16881# Command to use after uninstallation of a shared archive.
16882postuninstall_cmds=$lt_postuninstall_cmds
16883
16884# Commands used to finish a libtool library installation in a directory.
16885finish_cmds=$lt_finish_cmds
16886
16887# As "finish_cmds", except a single script fragment to be evaled but
16888# not shown.
16889finish_eval=$lt_finish_eval
16890
16891# Whether we should hardcode library paths into libraries.
16892hardcode_into_libs=$hardcode_into_libs
16893
16894# Compile-time system search path for libraries.
16895sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16896
16897# Run-time system search path for libraries.
16898sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16899
16900# Whether dlopen is supported.
16901dlopen_support=$enable_dlopen
16902
16903# Whether dlopen of programs is supported.
16904dlopen_self=$enable_dlopen_self
16905
16906# Whether dlopen of statically linked programs is supported.
16907dlopen_self_static=$enable_dlopen_self_static
16908
16909# Commands to strip libraries.
16910old_striplib=$lt_old_striplib
16911striplib=$lt_striplib
16912
16913
16914# The linker used to build libraries.
16915LD=$lt_LD
16916
16917# Commands used to build an old-style archive.
16918old_archive_cmds=$lt_old_archive_cmds
16919
16920# A language specific compiler.
16921CC=$lt_compiler
16922
16923# Is the compiler the GNU compiler?
16924with_gcc=$GCC
16925
16926# Compiler flag to turn off builtin functions.
16927no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16928
16929# How to pass a linker flag through the compiler.
16930wl=$lt_lt_prog_compiler_wl
16931
16932# Additional compiler flags for building library objects.
16933pic_flag=$lt_lt_prog_compiler_pic
16934
16935# Compiler flag to prevent dynamic linking.
16936link_static_flag=$lt_lt_prog_compiler_static
16937
16938# Does compiler simultaneously support -c and -o options?
16939compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16940
16941# Whether or not to add -lc for building shared libraries.
16942build_libtool_need_lc=$archive_cmds_need_lc
16943
16944# Whether or not to disallow shared libs when runtime libs are static.
16945allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16946
16947# Compiler flag to allow reflexive dlopens.
16948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16949
16950# Compiler flag to generate shared objects directly from archives.
16951whole_archive_flag_spec=$lt_whole_archive_flag_spec
16952
16953# Whether the compiler copes with passing no objects directly.
16954compiler_needs_object=$lt_compiler_needs_object
16955
16956# Create an old-style archive from a shared archive.
16957old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16958
16959# Create a temporary old-style archive to link instead of a shared archive.
16960old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16961
16962# Commands used to build a shared archive.
16963archive_cmds=$lt_archive_cmds
16964archive_expsym_cmds=$lt_archive_expsym_cmds
16965
16966# Commands used to build a loadable module if different from building
16967# a shared archive.
16968module_cmds=$lt_module_cmds
16969module_expsym_cmds=$lt_module_expsym_cmds
16970
16971# Whether we are building with GNU ld or not.
16972with_gnu_ld=$lt_with_gnu_ld
16973
16974# Flag that allows shared libraries with undefined symbols to be built.
16975allow_undefined_flag=$lt_allow_undefined_flag
16976
16977# Flag that enforces no undefined symbols.
16978no_undefined_flag=$lt_no_undefined_flag
16979
16980# Flag to hardcode \$libdir into a binary during linking.
16981# This must work even if \$libdir does not exist
16982hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16983
16984# If ld is used when linking, flag to hardcode \$libdir into a binary
16985# during linking. This must work even if \$libdir does not exist.
16986hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16987
16988# Whether we need a single "-rpath" flag with a separated argument.
16989hardcode_libdir_separator=$lt_hardcode_libdir_separator
16990
16991# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16992# DIR into the resulting binary.
16993hardcode_direct=$hardcode_direct
16994
16995# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16996# DIR into the resulting binary and the resulting library dependency is
16997# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16998# library is relocated.
16999hardcode_direct_absolute=$hardcode_direct_absolute
17000
17001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17002# into the resulting binary.
17003hardcode_minus_L=$hardcode_minus_L
17004
17005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17006# into the resulting binary.
17007hardcode_shlibpath_var=$hardcode_shlibpath_var
17008
17009# Set to "yes" if building a shared library automatically hardcodes DIR
17010# into the library and all subsequent libraries and executables linked
17011# against it.
17012hardcode_automatic=$hardcode_automatic
17013
17014# Set to yes if linker adds runtime paths of dependent libraries
17015# to runtime path list.
17016inherit_rpath=$inherit_rpath
17017
17018# Whether libtool must link a program against all its dependency libraries.
17019link_all_deplibs=$link_all_deplibs
17020
17021# Fix the shell variable \$srcfile for the compiler.
17022fix_srcfile_path=$lt_fix_srcfile_path
17023
17024# Set to "yes" if exported symbols are required.
17025always_export_symbols=$always_export_symbols
17026
17027# The commands to list exported symbols.
17028export_symbols_cmds=$lt_export_symbols_cmds
17029
17030# Symbols that should not be listed in the preloaded symbols.
17031exclude_expsyms=$lt_exclude_expsyms
17032
17033# Symbols that must always be exported.
17034include_expsyms=$lt_include_expsyms
17035
17036# Commands necessary for linking programs (against libraries) with templates.
17037prelink_cmds=$lt_prelink_cmds
17038
17039# Specify filename containing input files.
17040file_list_spec=$lt_file_list_spec
17041
17042# How to hardcode a shared library path into an executable.
17043hardcode_action=$hardcode_action
17044
17045# The directories searched by this compiler when creating a shared library.
17046compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17047
17048# Dependencies to place before and after the objects being linked to
17049# create a shared library.
17050predep_objects=$lt_predep_objects
17051postdep_objects=$lt_postdep_objects
17052predeps=$lt_predeps
17053postdeps=$lt_postdeps
17054
17055# The library search path used internally by the compiler when linking
17056# a shared library.
17057compiler_lib_search_path=$lt_compiler_lib_search_path
17058
17059# ### END LIBTOOL CONFIG
17060
17061_LT_EOF
17062
17063 case $host_os in
17064 aix3*)
17065 cat <<\_LT_EOF >> "$cfgfile"
17066# AIX sometimes has problems with the GCC collect2 program. For some
17067# reason, if we set the COLLECT_NAMES environment variable, the problems
17068# vanish in a puff of smoke.
17069if test "X${COLLECT_NAMES+set}" != Xset; then
17070 COLLECT_NAMES=
17071 export COLLECT_NAMES
17072fi
17073_LT_EOF
17074 ;;
17075 esac
17076
17077
17078ltmain="$ac_aux_dir/ltmain.sh"
17079
17080
17081 # We use sed instead of cat because bash on DJGPP gets confused if
17082 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17083 # text mode, it properly converts lines to CR/LF. This bash problem
17084 # is reportedly fixed, but why not run on old versions too?
17085 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17086 || (rm -f "$cfgfile"; exit 1)
17087
17088 case $xsi_shell in
17089 yes)
17090 cat << \_LT_EOF >> "$cfgfile"
17091
17092# func_dirname file append nondir_replacement
17093# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17094# otherwise set result to NONDIR_REPLACEMENT.
17095func_dirname ()
17096{
17097 case ${1} in
17098 */*) func_dirname_result="${1%/*}${2}" ;;
17099 * ) func_dirname_result="${3}" ;;
17100 esac
17101}
17102
17103# func_basename file
17104func_basename ()
17105{
17106 func_basename_result="${1##*/}"
17107}
17108
17109# func_dirname_and_basename file append nondir_replacement
17110# perform func_basename and func_dirname in a single function
17111# call:
17112# dirname: Compute the dirname of FILE. If nonempty,
17113# add APPEND to the result, otherwise set result
17114# to NONDIR_REPLACEMENT.
17115# value returned in "$func_dirname_result"
17116# basename: Compute filename of FILE.
17117# value retuned in "$func_basename_result"
17118# Implementation must be kept synchronized with func_dirname
17119# and func_basename. For efficiency, we do not delegate to
17120# those functions but instead duplicate the functionality here.
17121func_dirname_and_basename ()
17122{
17123 case ${1} in
17124 */*) func_dirname_result="${1%/*}${2}" ;;
17125 * ) func_dirname_result="${3}" ;;
17126 esac
17127 func_basename_result="${1##*/}"
17128}
17129
17130# func_stripname prefix suffix name
17131# strip PREFIX and SUFFIX off of NAME.
17132# PREFIX and SUFFIX must not contain globbing or regex special
17133# characters, hashes, percent signs, but SUFFIX may contain a leading
17134# dot (in which case that matches only a dot).
17135func_stripname ()
17136{
17137 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17138 # positional parameters, so assign one to ordinary parameter first.
17139 func_stripname_result=${3}
17140 func_stripname_result=${func_stripname_result#"${1}"}
17141 func_stripname_result=${func_stripname_result%"${2}"}
17142}
17143
17144# func_opt_split
17145func_opt_split ()
17146{
17147 func_opt_split_opt=${1%%=*}
17148 func_opt_split_arg=${1#*=}
17149}
17150
17151# func_lo2o object
17152func_lo2o ()
17153{
17154 case ${1} in
17155 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17156 *) func_lo2o_result=${1} ;;
17157 esac
17158}
17159
17160# func_xform libobj-or-source
17161func_xform ()
17162{
17163 func_xform_result=${1%.*}.lo
17164}
17165
17166# func_arith arithmetic-term...
17167func_arith ()
17168{
17169 func_arith_result=$(( $* ))
17170}
17171
17172# func_len string
17173# STRING may not start with a hyphen.
17174func_len ()
17175{
17176 func_len_result=${#1}
17177}
17178
17179_LT_EOF
17180 ;;
17181 *) # Bourne compatible functions.
17182 cat << \_LT_EOF >> "$cfgfile"
17183
17184# func_dirname file append nondir_replacement
17185# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17186# otherwise set result to NONDIR_REPLACEMENT.
17187func_dirname ()
17188{
17189 # Extract subdirectory from the argument.
17190 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17191 if test "X$func_dirname_result" = "X${1}"; then
17192 func_dirname_result="${3}"
17193 else
17194 func_dirname_result="$func_dirname_result${2}"
17195 fi
17196}
17197
17198# func_basename file
17199func_basename ()
17200{
17201 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17202}
17203
17204
17205# func_stripname prefix suffix name
17206# strip PREFIX and SUFFIX off of NAME.
17207# PREFIX and SUFFIX must not contain globbing or regex special
17208# characters, hashes, percent signs, but SUFFIX may contain a leading
17209# dot (in which case that matches only a dot).
17210# func_strip_suffix prefix name
17211func_stripname ()
17212{
17213 case ${2} in
17214 .*) func_stripname_result=`$ECHO "X${3}" \
17215 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17216 *) func_stripname_result=`$ECHO "X${3}" \
17217 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17218 esac
17219}
17220
17221# sed scripts:
17222my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17223my_sed_long_arg='1s/^-[^=]*=//'
17224
17225# func_opt_split
17226func_opt_split ()
17227{
17228 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17229 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17230}
17231
17232# func_lo2o object
17233func_lo2o ()
17234{
17235 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17236}
17237
17238# func_xform libobj-or-source
17239func_xform ()
17240{
17241 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17242}
17243
17244# func_arith arithmetic-term...
17245func_arith ()
17246{
17247 func_arith_result=`expr "$@"`
17248}
17249
17250# func_len string
17251# STRING may not start with a hyphen.
17252func_len ()
17253{
17254 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17255}
17256
17257_LT_EOF
17258esac
17259
17260case $lt_shell_append in
17261 yes)
17262 cat << \_LT_EOF >> "$cfgfile"
17263
17264# func_append var value
17265# Append VALUE to the end of shell variable VAR.
17266func_append ()
17267{
17268 eval "$1+=\$2"
17269}
17270_LT_EOF
17271 ;;
17272 *)
17273 cat << \_LT_EOF >> "$cfgfile"
17274
17275# func_append var value
17276# Append VALUE to the end of shell variable VAR.
17277func_append ()
17278{
17279 eval "$1=\$$1\$2"
17280}
17281
17282_LT_EOF
17283 ;;
17284 esac
17285
17286
17287 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17288 || (rm -f "$cfgfile"; exit 1)
17289
17290 mv -f "$cfgfile" "$ofile" ||
17291 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17292 chmod +x "$ofile"
17293
17294
17295 cat <<_LT_EOF >> "$ofile"
17296
17297# ### BEGIN LIBTOOL TAG CONFIG: CXX
17298
17299# The linker used to build libraries.
17300LD=$lt_LD_CXX
17301
17302# Commands used to build an old-style archive.
17303old_archive_cmds=$lt_old_archive_cmds_CXX
17304
17305# A language specific compiler.
17306CC=$lt_compiler_CXX
17307
17308# Is the compiler the GNU compiler?
17309with_gcc=$GCC_CXX
17310
17311# Compiler flag to turn off builtin functions.
17312no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17313
17314# How to pass a linker flag through the compiler.
17315wl=$lt_lt_prog_compiler_wl_CXX
17316
17317# Additional compiler flags for building library objects.
17318pic_flag=$lt_lt_prog_compiler_pic_CXX
17319
17320# Compiler flag to prevent dynamic linking.
17321link_static_flag=$lt_lt_prog_compiler_static_CXX
17322
17323# Does compiler simultaneously support -c and -o options?
17324compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17325
17326# Whether or not to add -lc for building shared libraries.
17327build_libtool_need_lc=$archive_cmds_need_lc_CXX
17328
17329# Whether or not to disallow shared libs when runtime libs are static.
17330allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17331
17332# Compiler flag to allow reflexive dlopens.
17333export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17334
17335# Compiler flag to generate shared objects directly from archives.
17336whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17337
17338# Whether the compiler copes with passing no objects directly.
17339compiler_needs_object=$lt_compiler_needs_object_CXX
17340
17341# Create an old-style archive from a shared archive.
17342old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17343
17344# Create a temporary old-style archive to link instead of a shared archive.
17345old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17346
17347# Commands used to build a shared archive.
17348archive_cmds=$lt_archive_cmds_CXX
17349archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17350
17351# Commands used to build a loadable module if different from building
17352# a shared archive.
17353module_cmds=$lt_module_cmds_CXX
17354module_expsym_cmds=$lt_module_expsym_cmds_CXX
17355
17356# Whether we are building with GNU ld or not.
17357with_gnu_ld=$lt_with_gnu_ld_CXX
17358
17359# Flag that allows shared libraries with undefined symbols to be built.
17360allow_undefined_flag=$lt_allow_undefined_flag_CXX
17361
17362# Flag that enforces no undefined symbols.
17363no_undefined_flag=$lt_no_undefined_flag_CXX
17364
17365# Flag to hardcode \$libdir into a binary during linking.
17366# This must work even if \$libdir does not exist
17367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17368
17369# If ld is used when linking, flag to hardcode \$libdir into a binary
17370# during linking. This must work even if \$libdir does not exist.
17371hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17372
17373# Whether we need a single "-rpath" flag with a separated argument.
17374hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17375
17376# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17377# DIR into the resulting binary.
17378hardcode_direct=$hardcode_direct_CXX
17379
17380# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17381# DIR into the resulting binary and the resulting library dependency is
17382# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17383# library is relocated.
17384hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17385
17386# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17387# into the resulting binary.
17388hardcode_minus_L=$hardcode_minus_L_CXX
17389
17390# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17391# into the resulting binary.
17392hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17393
17394# Set to "yes" if building a shared library automatically hardcodes DIR
17395# into the library and all subsequent libraries and executables linked
17396# against it.
17397hardcode_automatic=$hardcode_automatic_CXX
17398
17399# Set to yes if linker adds runtime paths of dependent libraries
17400# to runtime path list.
17401inherit_rpath=$inherit_rpath_CXX
17402
17403# Whether libtool must link a program against all its dependency libraries.
17404link_all_deplibs=$link_all_deplibs_CXX
17405
17406# Fix the shell variable \$srcfile for the compiler.
17407fix_srcfile_path=$lt_fix_srcfile_path_CXX
17408
17409# Set to "yes" if exported symbols are required.
17410always_export_symbols=$always_export_symbols_CXX
17411
17412# The commands to list exported symbols.
17413export_symbols_cmds=$lt_export_symbols_cmds_CXX
17414
17415# Symbols that should not be listed in the preloaded symbols.
17416exclude_expsyms=$lt_exclude_expsyms_CXX
17417
17418# Symbols that must always be exported.
17419include_expsyms=$lt_include_expsyms_CXX
17420
17421# Commands necessary for linking programs (against libraries) with templates.
17422prelink_cmds=$lt_prelink_cmds_CXX
17423
17424# Specify filename containing input files.
17425file_list_spec=$lt_file_list_spec_CXX
17426
17427# How to hardcode a shared library path into an executable.
17428hardcode_action=$hardcode_action_CXX
17429
17430# The directories searched by this compiler when creating a shared library.
17431compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17432
17433# Dependencies to place before and after the objects being linked to
17434# create a shared library.
17435predep_objects=$lt_predep_objects_CXX
17436postdep_objects=$lt_postdep_objects_CXX
17437predeps=$lt_predeps_CXX
17438postdeps=$lt_postdeps_CXX
17439
17440# The library search path used internally by the compiler when linking
17441# a shared library.
17442compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17443
17444# ### END LIBTOOL TAG CONFIG: CXX
17445_LT_EOF
17446
brynercb91a2f2006-08-25 21:14:45 +000017447 ;;
brynercb91a2f2006-08-25 21:14:45 +000017448
mmentovai8c2a4de2006-09-20 16:20:15 +000017449 esac
17450done # for ac_tag
17451
brynercb91a2f2006-08-25 21:14:45 +000017452
jimblandy92b1f832009-12-23 22:23:49 +000017453as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000017454_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000017455ac_clean_files=$ac_clean_files_save
17456
jimblandy92b1f832009-12-23 22:23:49 +000017457test $ac_write_fail = 0 ||
17458 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17459
brynercb91a2f2006-08-25 21:14:45 +000017460
17461# configure is writing to config.log, and then calls config.status.
17462# config.status does its own redirection, appending to config.log.
17463# Unfortunately, on DOS this fails, as config.log is still kept open
17464# by configure, so config.status won't be able to write to it; its
17465# output is simply discarded. So we exec the FD to /dev/null,
17466# effectively closing config.log, so it can be properly (re)opened and
17467# appended to by config.status. When coming back to configure, we
17468# need to make the FD available again.
17469if test "$no_create" != yes; then
17470 ac_cs_success=:
17471 ac_config_status_args=
17472 test "$silent" = yes &&
17473 ac_config_status_args="$ac_config_status_args --quiet"
17474 exec 5>/dev/null
17475 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17476 exec 5>>config.log
17477 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17478 # would make configure fail if this is the last instruction.
jimblandy92b1f832009-12-23 22:23:49 +000017479 $ac_cs_success || as_fn_exit $?
17480fi
17481if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17483$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017484fi
17485