blob: 3c2851f0ad55b502e85b23e83184e136019669ee [file] [log] [blame]
brynercb91a2f2006-08-25 21:14:45 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003# Generated by GNU Autoconf 2.67 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,
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
jimblandydc4029a2010-02-02 17:39:51 +000011#
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"
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +0000323
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
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +0000364# 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
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000366# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +0000367as_fn_error ()
368{
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +0000373 fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000374 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +0000375 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.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
brynercb91a2f2006-08-25 21:14:45 +0000686# 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
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000752LINUX_HOST_FALSE
753LINUX_HOST_TRUE
nealsidde545c02010-03-02 00:39:48 +0000754PTHREAD_CFLAGS
755PTHREAD_LIBS
756PTHREAD_CC
757ax_pthread_config
jimblandy92b1f832009-12-23 22:23:49 +0000758LIBTOOL_DEPS
759CXXCPP
760OTOOL64
761OTOOL
762LIPO
763NMEDIT
764DSYMUTIL
765lt_ECHO
766RANLIB
767AR
768OBJDUMP
769LN_S
770NM
771ac_ct_DUMPBIN
772DUMPBIN
773LD
774FGREP
775EGREP
776GREP
777SED
jimblandy92b1f832009-12-23 22:23:49 +0000778LIBTOOL
779am__fastdepCXX_FALSE
780am__fastdepCXX_TRUE
781CXXDEPMODE
782ac_ct_CXX
783CXXFLAGS
784CXX
785CPP
786am__fastdepCC_FALSE
787am__fastdepCC_TRUE
788CCDEPMODE
789AMDEPBACKSLASH
790AMDEP_FALSE
791AMDEP_TRUE
792am__quote
793am__include
794DEPDIR
795OBJEXT
796EXEEXT
797ac_ct_CC
798CPPFLAGS
799LDFLAGS
800CFLAGS
801CC
802am__untar
803am__tar
804AMTAR
805am__leading_dot
806SET_MAKE
807AWK
808mkdir_p
809MKDIR_P
810INSTALL_STRIP_PROGRAM
811STRIP
812install_sh
813MAKEINFO
814AUTOHEADER
815AUTOMAKE
816AUTOCONF
817ACLOCAL
818VERSION
819PACKAGE
820CYGPATH_W
821am__isrc
822INSTALL_DATA
823INSTALL_SCRIPT
824INSTALL_PROGRAM
ted.mielczarek53a8b1a2010-08-31 15:09:01 +0000825host_os
826host_vendor
827host_cpu
828host
829build_os
830build_vendor
831build_cpu
832build
jimblandy92b1f832009-12-23 22:23:49 +0000833target_alias
834host_alias
835build_alias
836LIBS
837ECHO_T
838ECHO_N
839ECHO_C
840DEFS
841mandir
842localedir
843libdir
844psdir
845pdfdir
846dvidir
847htmldir
848infodir
849docdir
850oldincludedir
851includedir
852localstatedir
853sharedstatedir
854sysconfdir
855datadir
856datarootdir
857libexecdir
858sbindir
859bindir
860program_transform_name
861prefix
862exec_prefix
863PACKAGE_URL
864PACKAGE_BUGREPORT
865PACKAGE_STRING
866PACKAGE_VERSION
867PACKAGE_TARNAME
868PACKAGE_NAME
869PATH_SEPARATOR
870SHELL'
brynercb91a2f2006-08-25 21:14:45 +0000871ac_subst_files=''
jimblandy92b1f832009-12-23 22:23:49 +0000872ac_user_opts='
873enable_option_checking
874enable_dependency_tracking
875enable_shared
876enable_static
877with_pic
878enable_fast_install
879with_gnu_ld
880enable_libtool_lock
nealsidde545c02010-03-02 00:39:48 +0000881enable_m32
jimblandy92b1f832009-12-23 22:23:49 +0000882enable_selftest
883'
mmentovai8c2a4de2006-09-20 16:20:15 +0000884 ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
mmentovaiaf3c43f2007-05-17 18:34:37 +0000890LIBS
mmentovai8c2a4de2006-09-20 16:20:15 +0000891CPPFLAGS
892CPP
893CXX
894CXXFLAGS
895CCC
jimblandy92b1f832009-12-23 22:23:49 +0000896CXXCPP'
mmentovai8c2a4de2006-09-20 16:20:15 +0000897
brynercb91a2f2006-08-25 21:14:45 +0000898
899# Initialize some variables set by options.
900ac_init_help=
901ac_init_version=false
jimblandy92b1f832009-12-23 22:23:49 +0000902ac_unrecognized_opts=
903ac_unrecognized_sep=
brynercb91a2f2006-08-25 21:14:45 +0000904# The variables have the same names as the options, with
905# dashes changed to underlines.
906cache_file=/dev/null
907exec_prefix=NONE
908no_create=
909no_recursion=
910prefix=NONE
911program_prefix=NONE
912program_suffix=NONE
913program_transform_name=s,x,x,
914silent=
915site=
916srcdir=
917verbose=
918x_includes=NONE
919x_libraries=NONE
920
921# Installation directory options.
922# These are left unexpanded so users can "make install exec_prefix=/foo"
923# and all the variables that are supposed to be based on exec_prefix
924# by default will actually change.
925# Use braces instead of parens because sh, perl, etc. also accept them.
mmentovai8c2a4de2006-09-20 16:20:15 +0000926# (The list follows the same order as the GNU Coding Standards.)
brynercb91a2f2006-08-25 21:14:45 +0000927bindir='${exec_prefix}/bin'
928sbindir='${exec_prefix}/sbin'
929libexecdir='${exec_prefix}/libexec'
mmentovai8c2a4de2006-09-20 16:20:15 +0000930datarootdir='${prefix}/share'
931datadir='${datarootdir}'
brynercb91a2f2006-08-25 21:14:45 +0000932sysconfdir='${prefix}/etc'
933sharedstatedir='${prefix}/com'
934localstatedir='${prefix}/var'
brynercb91a2f2006-08-25 21:14:45 +0000935includedir='${prefix}/include'
936oldincludedir='/usr/include'
mmentovai8c2a4de2006-09-20 16:20:15 +0000937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
brynercb91a2f2006-08-25 21:14:45 +0000946
947ac_prev=
mmentovai8c2a4de2006-09-20 16:20:15 +0000948ac_dashdash=
brynercb91a2f2006-08-25 21:14:45 +0000949for ac_option
950do
951 # If the previous option needs an argument, assign it.
952 if test -n "$ac_prev"; then
mmentovai8c2a4de2006-09-20 16:20:15 +0000953 eval $ac_prev=\$ac_option
brynercb91a2f2006-08-25 21:14:45 +0000954 ac_prev=
955 continue
956 fi
957
mmentovai8c2a4de2006-09-20 16:20:15 +0000958 case $ac_option in
cdn@chromium.org2b4274a2010-10-01 22:38:10 +0000959 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 *=) ac_optarg= ;;
961 *) ac_optarg=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000962 esac
brynercb91a2f2006-08-25 21:14:45 +0000963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
mmentovai8c2a4de2006-09-20 16:20:15 +0000966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
brynercb91a2f2006-08-25 21:14:45 +0000969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
mmentovai8c2a4de2006-09-20 16:20:15 +0000990 -datadir | --datadir | --datadi | --datad)
brynercb91a2f2006-08-25 21:14:45 +0000991 ac_prev=datadir ;;
mmentovai8c2a4de2006-09-20 16:20:15 +0000992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
brynercb91a2f2006-08-25 21:14:45 +0000993 datadir=$ac_optarg ;;
994
mmentovai8c2a4de2006-09-20 16:20:15 +0000995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
brynercb91a2f2006-08-25 21:14:45 +00001002 -disable-* | --disable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001004 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001006 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011"enable_$ac_useropt"
1012"*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00001017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001027
1028 -enable-* | --enable-*)
jimblandy92b1f832009-12-23 22:23:49 +00001029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001030 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001032 as_fn_error $? "invalid feature name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"enable_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
mmentovai8c2a4de2006-09-20 16:20:15 +00001069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
brynercb91a2f2006-08-25 21:14:45 +00001075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
mmentovai8c2a4de2006-09-20 16:20:15 +00001099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
brynercb91a2f2006-08-25 21:14:45 +00001104 -localstatedir | --localstatedir | --localstatedi | --localstated \
mmentovai8c2a4de2006-09-20 16:20:15 +00001105 | --localstate | --localstat | --localsta | --localst | --locals)
brynercb91a2f2006-08-25 21:14:45 +00001106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
mmentovai8c2a4de2006-09-20 16:20:15 +00001108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
brynercb91a2f2006-08-25 21:14:45 +00001109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
mmentovai8c2a4de2006-09-20 16:20:15 +00001173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
brynercb91a2f2006-08-25 21:14:45 +00001183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
jimblandy92b1f832009-12-23 22:23:49 +00001233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001234 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001236 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
brynercb91a2f2006-08-25 21:14:45 +00001247
1248 -without-* | --without-*)
jimblandy92b1f832009-12-23 22:23:49 +00001249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +00001250 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001252 as_fn_error $? "invalid package name: $ac_useropt"
jimblandy92b1f832009-12-23 22:23:49 +00001253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257"with_$ac_useropt"
1258"*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
brynercb91a2f2006-08-25 21:14:45 +00001263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283Try \`$0 --help' for more information"
brynercb91a2f2006-08-25 21:14:45 +00001284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
jimblandy92b1f832009-12-23 22:23:49 +00001289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001292 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001293 eval $ac_envvar=\$ac_optarg
brynercb91a2f2006-08-25 21:14:45 +00001294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
jimblandy92b1f832009-12-23 22:23:49 +00001298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
brynercb91a2f2006-08-25 21:14:45 +00001299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
jimblandy92b1f832009-12-23 22:23:49 +00001300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
brynercb91a2f2006-08-25 21:14:45 +00001301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302 ;;
1303
1304 esac
1305done
1306
1307if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001309 as_fn_error $? "missing argument to $ac_option"
brynercb91a2f2006-08-25 21:14:45 +00001310fi
1311
jimblandy92b1f832009-12-23 22:23:49 +00001312if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
jimblandy92b1f832009-12-23 22:23:49 +00001316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318fi
1319
1320# Check all directory arguments for consistency.
mmentovai8c2a4de2006-09-20 16:20:15 +00001321for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
brynercb91a2f2006-08-25 21:14:45 +00001325do
mmentovai8c2a4de2006-09-20 16:20:15 +00001326 eval ac_val=\$$ac_var
jimblandy92b1f832009-12-23 22:23:49 +00001327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
brynercb91a2f2006-08-25 21:14:45 +00001334 case $ac_val in
mmentovai8c2a4de2006-09-20 16:20:15 +00001335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
brynercb91a2f2006-08-25 21:14:45 +00001337 esac
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
brynercb91a2f2006-08-25 21:14:45 +00001339done
1340
1341# There might be people who depend on the old broken behavior: `$host'
1342# used to hold the argument of --host etc.
1343# FIXME: To remove some day.
1344build=$build_alias
1345host=$host_alias
1346target=$target_alias
1347
1348# FIXME: To remove some day.
1349if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001352 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used" >&2
brynercb91a2f2006-08-25 21:14:45 +00001354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
1363
1364
mmentovai8c2a4de2006-09-20 16:20:15 +00001365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001368 as_fn_error $? "working directory cannot be determined"
mmentovai8c2a4de2006-09-20 16:20:15 +00001369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001370 as_fn_error $? "pwd does not report name of working directory"
mmentovai8c2a4de2006-09-20 16:20:15 +00001371
1372
brynercb91a2f2006-08-25 21:14:45 +00001373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00001376 # Try the directory containing this script, then the parent directory.
jimblandy92b1f832009-12-23 22:23:49 +00001377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
mmentovai8c2a4de2006-09-20 16:20:15 +00001383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
brynercb91a2f2006-08-25 21:14:45 +00001400 srcdir=$ac_confdir
mmentovai8c2a4de2006-09-20 16:20:15 +00001401 if test ! -r "$srcdir/$ac_unique_file"; then
brynercb91a2f2006-08-25 21:14:45 +00001402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
brynercb91a2f2006-08-25 21:14:45 +00001410fi
mmentovai8c2a4de2006-09-20 16:20:15 +00001411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
mmentovai8c2a4de2006-09-20 16:20:15 +00001414 pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
brynercb91a2f2006-08-25 21:14:45 +00001431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001439\`configure' configures breakpad 0.1 to adapt to many kinds of systems.
brynercb91a2f2006-08-25 21:14:45 +00001440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001453 -q, --quiet, --silent do not print \`checking ...' messages
brynercb91a2f2006-08-25 21:14:45 +00001454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
brynercb91a2f2006-08-25 21:14:45 +00001459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001461 [$ac_default_prefix]
brynercb91a2f2006-08-25 21:14:45 +00001462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
jimblandy92b1f832009-12-23 22:23:49 +00001463 [PREFIX]
brynercb91a2f2006-08-25 21:14:45 +00001464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
jimblandy92b1f832009-12-23 22:23:49 +00001473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
brynercb91a2f2006-08-25 21:14:45 +00001492_ACEOF
1493
1494 cat <<\_ACEOF
1495
1496Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1500
1501System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504_ACEOF
1505fi
1506
1507if test -n "$ac_init_help"; then
1508 case $ac_init_help in
mmentovaie5dc6082007-02-14 19:51:05 +00001509 short | recursive ) echo "Configuration of breakpad 0.1:";;
brynercb91a2f2006-08-25 21:14:45 +00001510 esac
1511 cat <<\_ACEOF
1512
1513Optional Features:
jimblandy92b1f832009-12-23 22:23:49 +00001514 --disable-option-checking ignore unrecognized --enable/--with options
brynercb91a2f2006-08-25 21:14:45 +00001515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --disable-dependency-tracking speeds up one-time build
1518 --enable-dependency-tracking do not reject slow dependency extractors
mmentovai8c2a4de2006-09-20 16:20:15 +00001519 --enable-shared[=PKGS] build shared libraries [default=yes]
1520 --enable-static[=PKGS] build static libraries [default=yes]
brynercb91a2f2006-08-25 21:14:45 +00001521 --enable-fast-install[=PKGS]
1522 optimize for fast installation [default=yes]
1523 --disable-libtool-lock avoid locking (might break parallel builds)
nealsidde545c02010-03-02 00:39:48 +00001524 --enable-m32 Compile/build with -m32 (default is no)
mmentovai0dbedc92006-09-25 21:16:15 +00001525 --enable-selftest Run extra tests with "make check" (may conflict with
1526 optimizations) (default is no)
brynercb91a2f2006-08-25 21:14:45 +00001527
1528Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
brynercb91a2f2006-08-25 21:14:45 +00001531 --with-pic try to use only PIC/non-PIC objects [default=use
1532 both]
jimblandy92b1f832009-12-23 22:23:49 +00001533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
brynercb91a2f2006-08-25 21:14:45 +00001534
1535Some influential environment variables:
1536 CC C compiler command
1537 CFLAGS C compiler flags
1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1539 nonstandard directory <lib dir>
mmentovaiaf3c43f2007-05-17 18:34:37 +00001540 LIBS libraries to pass to the linker, e.g. -l<library>
jimblandydc4029a2010-02-02 17:39:51 +00001541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
mmentovai8c2a4de2006-09-20 16:20:15 +00001542 you have headers in a nonstandard directory <include dir>
brynercb91a2f2006-08-25 21:14:45 +00001543 CPP C preprocessor
1544 CXX C++ compiler command
1545 CXXFLAGS C++ compiler flags
1546 CXXCPP C++ preprocessor
brynercb91a2f2006-08-25 21:14:45 +00001547
1548Use these variables to override the choices made by `configure' or to help
1549it to find libraries and programs with nonstandard names/locations.
1550
1551Report bugs to <opensource@google.com>.
1552_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001553ac_status=$?
brynercb91a2f2006-08-25 21:14:45 +00001554fi
1555
1556if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
brynercb91a2f2006-08-25 21:14:45 +00001558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
jimblandy92b1f832009-12-23 22:23:49 +00001559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 continue
brynercb91a2f2006-08-25 21:14:45 +00001562 ac_builddir=.
1563
mmentovai8c2a4de2006-09-20 16:20:15 +00001564case "$ac_dir" in
1565.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566*)
jimblandy92b1f832009-12-23 22:23:49 +00001567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001568 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +00001569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +00001570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 esac ;;
1574esac
1575ac_abs_top_builddir=$ac_pwd
1576ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577# for backward compatibility:
1578ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +00001579
1580case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +00001581 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +00001582 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +00001583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +00001586 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +00001587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1589 *) # Relative name.
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +00001593esac
mmentovai8c2a4de2006-09-20 16:20:15 +00001594ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +00001595
mmentovai8c2a4de2006-09-20 16:20:15 +00001596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
brynercb91a2f2006-08-25 21:14:45 +00001604 else
jimblandy92b1f832009-12-23 22:23:49 +00001605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
mmentovai8c2a4de2006-09-20 16:20:15 +00001606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
brynercb91a2f2006-08-25 21:14:45 +00001608 done
1609fi
1610
mmentovai8c2a4de2006-09-20 16:20:15 +00001611test -n "$ac_init_help" && exit $ac_status
brynercb91a2f2006-08-25 21:14:45 +00001612if $ac_init_version; then
1613 cat <<\_ACEOF
mmentovaie5dc6082007-02-14 19:51:05 +00001614breakpad configure 0.1
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001615generated by GNU Autoconf 2.67
brynercb91a2f2006-08-25 21:14:45 +00001616
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001617Copyright (C) 2010 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +00001618This configure script is free software; the Free Software Foundation
1619gives unlimited permission to copy, distribute and modify it.
1620_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00001621 exit
brynercb91a2f2006-08-25 21:14:45 +00001622fi
jimblandy92b1f832009-12-23 22:23:49 +00001623
1624## ------------------------ ##
1625## Autoconf initialization. ##
1626## ------------------------ ##
1627
1628# ac_fn_c_try_compile LINENO
1629# --------------------------
1630# Try to compile conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_compile ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1654 ac_retval=0
1655else
1656 $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660fi
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001662 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001663
1664} # ac_fn_c_try_compile
1665
1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001687 test $ac_status = 0; } > conftest.i && {
jimblandy92b1f832009-12-23 22:23:49 +00001688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001699 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001700
1701} # ac_fn_c_try_cpp
1702
1703# ac_fn_cxx_try_compile LINENO
1704# ----------------------------
1705# Try to compile conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_cxx_try_compile ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext
1710 if { { ac_try="$ac_compile"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_compile") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_cxx_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest.$ac_objext; then :
1729 ac_retval=0
1730else
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1
1735fi
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001737 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001738
1739} # ac_fn_cxx_try_compile
1740
1741# ac_fn_c_try_link LINENO
1742# -----------------------
1743# Try to link conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_link ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1749case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1756 ac_status=$?
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1761 fi
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 $as_test_x conftest$ac_exeext
1769 }; then :
1770 ac_retval=0
1771else
1772 $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775 ac_retval=1
1776fi
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001783 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001784
1785} # ac_fn_c_try_link
1786
1787# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1788# -------------------------------------------------------
1789# Tests whether HEADER exists and can be compiled using the include files in
1790# INCLUDES, setting the cache variable VAR accordingly.
1791ac_fn_c_check_header_compile ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001796if eval "test \"\${$3+set}\"" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00001797 $as_echo_n "(cached) " >&6
1798else
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 eval "$3=yes"
1806else
1807 eval "$3=no"
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815
1816} # ac_fn_c_check_header_compile
1817
1818# ac_fn_c_try_run LINENO
1819# ----------------------
1820# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1821# that executables *can* be run.
1822ac_fn_c_try_run ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_link"
1826case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_link") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1836 { { case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839esac
1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841$as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_try") 2>&5
1843 ac_status=$?
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; }; }; then :
1846 ac_retval=0
1847else
1848 $as_echo "$as_me: program exited with status $ac_status" >&5
1849 $as_echo "$as_me: failed program was:" >&5
1850sed 's/^/| /' conftest.$ac_ext >&5
1851
1852 ac_retval=$ac_status
1853fi
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001856 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001857
1858} # ac_fn_c_try_run
1859
1860# ac_fn_c_check_func LINENO FUNC VAR
1861# ----------------------------------
1862# Tests whether FUNC exists, setting the cache variable VAR accordingly
1863ac_fn_c_check_func ()
1864{
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001868if eval "test \"\${$3+set}\"" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00001869 $as_echo_n "(cached) " >&6
1870else
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h. */
1873/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1875#define $2 innocuous_$2
1876
1877/* System header to define __stub macros and hopefully few prototypes,
1878 which can conflict with char $2 (); below.
1879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1880 <limits.h> exists even on freestanding compilers. */
1881
1882#ifdef __STDC__
1883# include <limits.h>
1884#else
1885# include <assert.h>
1886#endif
1887
1888#undef $2
1889
1890/* Override any GCC internal prototype to avoid an error.
1891 Use char because int might match the return type of a GCC
1892 builtin and then its argument prototype would still apply. */
1893#ifdef __cplusplus
1894extern "C"
1895#endif
1896char $2 ();
1897/* The GNU C library defines this for functions which it implements
1898 to always fail with ENOSYS. Some functions are actually named
1899 something starting with __ and the normal name is an alias. */
1900#if defined __stub_$2 || defined __stub___$2
1901choke me
1902#endif
1903
1904int
1905main ()
1906{
1907return $2 ();
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_link "$LINENO"; then :
1913 eval "$3=yes"
1914else
1915 eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext \
1918 conftest$ac_exeext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924
1925} # ac_fn_c_check_func
1926
1927# ac_fn_cxx_try_cpp LINENO
1928# ------------------------
1929# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930ac_fn_cxx_try_cpp ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_cpp conftest.$ac_ext"
1934case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1941 ac_status=$?
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1946 fi
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00001948 test $ac_status = 0; } > conftest.i && {
jimblandy92b1f832009-12-23 22:23:49 +00001949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1950 test ! -s conftest.err
1951 }; then :
1952 ac_retval=0
1953else
1954 $as_echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 ac_retval=1
1958fi
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00001960 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00001961
1962} # ac_fn_cxx_try_cpp
1963
1964# ac_fn_cxx_try_link LINENO
1965# -------------------------
1966# Try to link conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_cxx_try_link ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext conftest$ac_exeext
1971 if { { ac_try="$ac_link"
1972case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975esac
1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977$as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>conftest.err
1979 ac_status=$?
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1984 fi
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_cxx_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest$ac_exeext && {
1990 test "$cross_compiling" = yes ||
1991 $as_test_x conftest$ac_exeext
1992 }; then :
1993 ac_retval=0
1994else
1995 $as_echo "$as_me: failed program was:" >&5
1996sed 's/^/| /' conftest.$ac_ext >&5
1997
1998 ac_retval=1
1999fi
2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002 # interfere with the next link command; also delete a directory that is
2003 # left behind by Apple's compiler. We do this before executing the actions.
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
jimblandydc4029a2010-02-02 17:39:51 +00002006 as_fn_set_status $ac_retval
jimblandy92b1f832009-12-23 22:23:49 +00002007
2008} # ac_fn_cxx_try_link
ted.mielczarekb2236272010-04-08 23:06:23 +00002009
2010# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2011# ----------------------------------------------------
2012# Tries to find if the field MEMBER exists in type AGGR, after including
2013# INCLUDES, setting cache variable VAR accordingly.
2014ac_fn_c_check_member ()
2015{
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2018$as_echo_n "checking for $2.$3... " >&6; }
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002019if eval "test \"\${$4+set}\"" = set; then :
ted.mielczarekb2236272010-04-08 23:06:23 +00002020 $as_echo_n "(cached) " >&6
2021else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$5
2025int
2026main ()
2027{
2028static $2 ac_aggr;
2029if (ac_aggr.$3)
2030return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$5
2041int
2042main ()
2043{
2044static $2 ac_aggr;
2045if (sizeof ac_aggr.$3)
2046return 0;
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 eval "$4=yes"
2053else
2054 eval "$4=no"
2055fi
2056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057fi
2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059fi
2060eval ac_res=\$$4
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062$as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064
2065} # ac_fn_c_check_member
mmentovai8c2a4de2006-09-20 16:20:15 +00002066cat >config.log <<_ACEOF
brynercb91a2f2006-08-25 21:14:45 +00002067This file contains any messages produced by compilers while
2068running configure, to aid debugging if configure makes a mistake.
2069
mmentovaie5dc6082007-02-14 19:51:05 +00002070It was created by breakpad $as_me 0.1, which was
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002071generated by GNU Autoconf 2.67. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +00002072
2073 $ $0 $@
2074
2075_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002076exec 5>>config.log
brynercb91a2f2006-08-25 21:14:45 +00002077{
2078cat <<_ASUNAME
2079## --------- ##
2080## Platform. ##
2081## --------- ##
2082
2083hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091
2092/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2093/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2094/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
mmentovai8c2a4de2006-09-20 16:20:15 +00002095/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
brynercb91a2f2006-08-25 21:14:45 +00002096/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2097/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2098/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099
2100_ASUNAME
2101
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002107 $as_echo "PATH: $as_dir"
2108 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002109IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002110
2111} >&5
2112
2113cat >&5 <<_ACEOF
2114
2115
2116## ----------- ##
2117## Core tests. ##
2118## ----------- ##
2119
2120_ACEOF
2121
2122
2123# Keep a trace of the command line.
2124# Strip out --no-create and --no-recursion so they do not pile up.
2125# Strip out --silent because we don't want to record it for future runs.
2126# Also quote any args containing shell meta-characters.
2127# Make two passes to allow for proper duplicate-argument suppression.
2128ac_configure_args=
2129ac_configure_args0=
2130ac_configure_args1=
brynercb91a2f2006-08-25 21:14:45 +00002131ac_must_keep_next=false
2132for ac_pass in 1 2
2133do
2134 for ac_arg
2135 do
2136 case $ac_arg in
2137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139 | -silent | --silent | --silen | --sile | --sil)
2140 continue ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002141 *\'*)
jimblandy92b1f832009-12-23 22:23:49 +00002142 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002143 esac
2144 case $ac_pass in
jimblandy92b1f832009-12-23 22:23:49 +00002145 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002146 2)
jimblandy92b1f832009-12-23 22:23:49 +00002147 as_fn_append ac_configure_args1 " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002148 if test $ac_must_keep_next = true; then
2149 ac_must_keep_next=false # Got value, back to normal.
2150 else
2151 case $ac_arg in
2152 *=* | --config-cache | -C | -disable-* | --disable-* \
2153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155 | -with-* | --with-* | -without-* | --without-* | --x)
2156 case "$ac_configure_args0 " in
2157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158 esac
2159 ;;
2160 -* ) ac_must_keep_next=true ;;
2161 esac
2162 fi
jimblandy92b1f832009-12-23 22:23:49 +00002163 as_fn_append ac_configure_args " '$ac_arg'"
brynercb91a2f2006-08-25 21:14:45 +00002164 ;;
2165 esac
2166 done
2167done
jimblandy92b1f832009-12-23 22:23:49 +00002168{ ac_configure_args0=; unset ac_configure_args0;}
2169{ ac_configure_args1=; unset ac_configure_args1;}
brynercb91a2f2006-08-25 21:14:45 +00002170
2171# When interrupted or exit'd, cleanup temporary files, and complete
2172# config.log. We remove comments because anyway the quotes in there
2173# would cause problems or look ugly.
mmentovai8c2a4de2006-09-20 16:20:15 +00002174# WARNING: Use '\'' to represent an apostrophe within the trap.
2175# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
brynercb91a2f2006-08-25 21:14:45 +00002176trap 'exit_status=$?
2177 # Save into config.log some information that might help in debugging.
2178 {
2179 echo
2180
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002181 $as_echo "## ---------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002182## Cache variables. ##
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002183## ---------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002184 echo
2185 # The following way of writing the cache mishandles newlines in values,
mmentovai8c2a4de2006-09-20 16:20:15 +00002186(
2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in #(
2190 *${as_nl}*)
2191 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +00002192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002194 esac
2195 case $ac_var in #(
2196 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +00002197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002199 esac ;;
2200 esac
2201 done
brynercb91a2f2006-08-25 21:14:45 +00002202 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +00002203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204 *${as_nl}ac_space=\ *)
brynercb91a2f2006-08-25 21:14:45 +00002205 sed -n \
mmentovai8c2a4de2006-09-20 16:20:15 +00002206 "s/'\''/'\''\\\\'\'''\''/g;
2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208 ;; #(
brynercb91a2f2006-08-25 21:14:45 +00002209 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00002210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +00002211 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002212 esac |
2213 sort
2214)
brynercb91a2f2006-08-25 21:14:45 +00002215 echo
2216
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002217 $as_echo "## ----------------- ##
brynercb91a2f2006-08-25 21:14:45 +00002218## Output variables. ##
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002219## ----------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002220 echo
2221 for ac_var in $ac_subst_vars
2222 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002223 eval ac_val=\$$ac_var
2224 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002226 esac
jimblandy92b1f832009-12-23 22:23:49 +00002227 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002228 done | sort
2229 echo
2230
2231 if test -n "$ac_subst_files"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002232 $as_echo "## ------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002233## File substitutions. ##
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002234## ------------------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002235 echo
2236 for ac_var in $ac_subst_files
2237 do
mmentovai8c2a4de2006-09-20 16:20:15 +00002238 eval ac_val=\$$ac_var
2239 case $ac_val in
jimblandy92b1f832009-12-23 22:23:49 +00002240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
mmentovai8c2a4de2006-09-20 16:20:15 +00002241 esac
jimblandy92b1f832009-12-23 22:23:49 +00002242 $as_echo "$ac_var='\''$ac_val'\''"
brynercb91a2f2006-08-25 21:14:45 +00002243 done | sort
2244 echo
2245 fi
2246
2247 if test -s confdefs.h; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002248 $as_echo "## ----------- ##
brynercb91a2f2006-08-25 21:14:45 +00002249## confdefs.h. ##
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002250## ----------- ##"
brynercb91a2f2006-08-25 21:14:45 +00002251 echo
mmentovai8c2a4de2006-09-20 16:20:15 +00002252 cat confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002253 echo
2254 fi
2255 test "$ac_signal" != 0 &&
jimblandy92b1f832009-12-23 22:23:49 +00002256 $as_echo "$as_me: caught signal $ac_signal"
2257 $as_echo "$as_me: exit $exit_status"
brynercb91a2f2006-08-25 21:14:45 +00002258 } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00002259 rm -f core *.core core.conftest.* &&
2260 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
brynercb91a2f2006-08-25 21:14:45 +00002261 exit $exit_status
mmentovai8c2a4de2006-09-20 16:20:15 +00002262' 0
brynercb91a2f2006-08-25 21:14:45 +00002263for ac_signal in 1 2 13 15; do
jimblandy92b1f832009-12-23 22:23:49 +00002264 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
brynercb91a2f2006-08-25 21:14:45 +00002265done
2266ac_signal=0
2267
2268# confdefs.h avoids OS command line length limits that DEFS can exceed.
mmentovai8c2a4de2006-09-20 16:20:15 +00002269rm -f -r conftest* confdefs.h
brynercb91a2f2006-08-25 21:14:45 +00002270
jimblandy92b1f832009-12-23 22:23:49 +00002271$as_echo "/* confdefs.h */" > confdefs.h
2272
brynercb91a2f2006-08-25 21:14:45 +00002273# Predefined preprocessor variables.
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_NAME "$PACKAGE_NAME"
2277_ACEOF
2278
brynercb91a2f2006-08-25 21:14:45 +00002279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2281_ACEOF
2282
brynercb91a2f2006-08-25 21:14:45 +00002283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_VERSION "$PACKAGE_VERSION"
2285_ACEOF
2286
brynercb91a2f2006-08-25 21:14:45 +00002287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_STRING "$PACKAGE_STRING"
2289_ACEOF
2290
brynercb91a2f2006-08-25 21:14:45 +00002291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2293_ACEOF
2294
jimblandy92b1f832009-12-23 22:23:49 +00002295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_URL "$PACKAGE_URL"
2297_ACEOF
2298
brynercb91a2f2006-08-25 21:14:45 +00002299
2300# Let the site file select an alternate cache file if it wants to.
jimblandy92b1f832009-12-23 22:23:49 +00002301# Prefer an explicitly selected file to automatically selected ones.
2302ac_site_file1=NONE
2303ac_site_file2=NONE
mmentovai8c2a4de2006-09-20 16:20:15 +00002304if test -n "$CONFIG_SITE"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002305 # We do not want a PATH search for config.site.
2306 case $CONFIG_SITE in #((
2307 -*) ac_site_file1=./$CONFIG_SITE;;
2308 */*) ac_site_file1=$CONFIG_SITE;;
2309 *) ac_site_file1=./$CONFIG_SITE;;
2310 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00002311elif test "x$prefix" != xNONE; then
jimblandy92b1f832009-12-23 22:23:49 +00002312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
mmentovai8c2a4de2006-09-20 16:20:15 +00002314else
jimblandy92b1f832009-12-23 22:23:49 +00002315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
brynercb91a2f2006-08-25 21:14:45 +00002317fi
jimblandy92b1f832009-12-23 22:23:49 +00002318for ac_site_file in "$ac_site_file1" "$ac_site_file2"
mmentovai8c2a4de2006-09-20 16:20:15 +00002319do
jimblandy92b1f832009-12-23 22:23:49 +00002320 test "x$ac_site_file" = xNONE && continue
jimblandydc4029a2010-02-02 17:39:51 +00002321 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2323$as_echo "$as_me: loading site script $ac_site_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002324 sed 's/^/| /' "$ac_site_file" >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002325 . "$ac_site_file" \
2326 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328as_fn_error $? "failed to load site script $ac_site_file
2329See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00002330 fi
2331done
2332
2333if test -r "$cache_file"; then
jimblandydc4029a2010-02-02 17:39:51 +00002334 # Some versions of bash will fail to source /dev/null (special files
2335 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2336 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
jimblandy92b1f832009-12-23 22:23:49 +00002337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2338$as_echo "$as_me: loading cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002339 case $cache_file in
mmentovai8c2a4de2006-09-20 16:20:15 +00002340 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341 *) . "./$cache_file";;
brynercb91a2f2006-08-25 21:14:45 +00002342 esac
2343 fi
2344else
jimblandy92b1f832009-12-23 22:23:49 +00002345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2346$as_echo "$as_me: creating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +00002347 >$cache_file
2348fi
2349
2350# Check that the precious variables saved in the cache have kept the same
2351# value.
2352ac_cache_corrupted=false
mmentovai8c2a4de2006-09-20 16:20:15 +00002353for ac_var in $ac_precious_vars; do
brynercb91a2f2006-08-25 21:14:45 +00002354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2355 eval ac_new_set=\$ac_env_${ac_var}_set
mmentovai8c2a4de2006-09-20 16:20:15 +00002356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2357 eval ac_new_val=\$ac_env_${ac_var}_value
brynercb91a2f2006-08-25 21:14:45 +00002358 case $ac_old_set,$ac_new_set in
2359 set,)
jimblandy92b1f832009-12-23 22:23:49 +00002360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2361$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002362 ac_cache_corrupted=: ;;
2363 ,set)
jimblandy92b1f832009-12-23 22:23:49 +00002364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2365$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002366 ac_cache_corrupted=: ;;
2367 ,);;
2368 *)
2369 if test "x$ac_old_val" != "x$ac_new_val"; then
jimblandy92b1f832009-12-23 22:23:49 +00002370 # differences in whitespace do not lead to failure.
2371 ac_old_val_w=`echo x $ac_old_val`
2372 ac_new_val_w=`echo x $ac_new_val`
2373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2375$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376 ac_cache_corrupted=:
2377 else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2379$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2380 eval $ac_var=\$ac_old_val
2381 fi
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2383$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2385$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002386 fi;;
2387 esac
2388 # Pass precious variables to config.status.
2389 if test "$ac_new_set" = set; then
2390 case $ac_new_val in
jimblandy92b1f832009-12-23 22:23:49 +00002391 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
brynercb91a2f2006-08-25 21:14:45 +00002392 *) ac_arg=$ac_var=$ac_new_val ;;
2393 esac
2394 case " $ac_configure_args " in
2395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
jimblandy92b1f832009-12-23 22:23:49 +00002396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
brynercb91a2f2006-08-25 21:14:45 +00002397 esac
2398 fi
2399done
2400if $ac_cache_corrupted; then
jimblandy92b1f832009-12-23 22:23:49 +00002401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2404$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002405 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002406fi
jimblandy92b1f832009-12-23 22:23:49 +00002407## -------------------- ##
2408## Main body of script. ##
2409## -------------------- ##
mmentovai8c2a4de2006-09-20 16:20:15 +00002410
brynercb91a2f2006-08-25 21:14:45 +00002411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
2416
2417
2418
brynercb91a2f2006-08-25 21:14:45 +00002419ac_aux_dir=
mmentovai8c2a4de2006-09-20 16:20:15 +00002420for ac_dir in autotools "$srcdir"/autotools; do
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002421 if test -f "$ac_dir/install-sh"; then
2422 ac_aux_dir=$ac_dir
2423 ac_install_sh="$ac_aux_dir/install-sh -c"
2424 break
2425 elif test -f "$ac_dir/install.sh"; then
2426 ac_aux_dir=$ac_dir
2427 ac_install_sh="$ac_aux_dir/install.sh -c"
2428 break
2429 elif test -f "$ac_dir/shtool"; then
2430 ac_aux_dir=$ac_dir
2431 ac_install_sh="$ac_aux_dir/shtool install -c"
2432 break
2433 fi
brynercb91a2f2006-08-25 21:14:45 +00002434done
2435if test -z "$ac_aux_dir"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002437fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002438
2439# These three variables are undocumented and unsupported,
2440# and are intended to be withdrawn in a future Autoconf release.
2441# They can cause serious problems if a builder's source tree is in a directory
2442# whose full name contains unusual characters.
2443ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2444ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2445ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446
brynercb91a2f2006-08-25 21:14:45 +00002447
mmentovai425d2562006-08-30 20:05:05 +00002448
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002449# Make sure we can run config.sub.
2450$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002451 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002452
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2454$as_echo_n "checking build system type... " >&6; }
2455if test "${ac_cv_build+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
2457else
2458 ac_build_alias=$build_alias
2459test "x$ac_build_alias" = x &&
2460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2461test "x$ac_build_alias" = x &&
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002462 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002463ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002464 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002465
2466fi
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2468$as_echo "$ac_cv_build" >&6; }
2469case $ac_cv_build in
2470*-*-*) ;;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002471*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002472esac
2473build=$ac_cv_build
2474ac_save_IFS=$IFS; IFS='-'
2475set x $ac_cv_build
2476shift
2477build_cpu=$1
2478build_vendor=$2
2479shift; shift
2480# Remember, the first character of IFS is used to create $*,
2481# except with old shells:
2482build_os=$*
2483IFS=$ac_save_IFS
2484case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2485
2486
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2488$as_echo_n "checking host system type... " >&6; }
2489if test "${ac_cv_host+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 if test "x$host_alias" = x; then
2493 ac_cv_host=$ac_cv_build
2494else
2495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002497fi
2498
2499fi
2500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2501$as_echo "$ac_cv_host" >&6; }
2502case $ac_cv_host in
2503*-*-*) ;;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002504*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00002505esac
2506host=$ac_cv_host
2507ac_save_IFS=$IFS; IFS='-'
2508set x $ac_cv_host
2509shift
2510host_cpu=$1
2511host_vendor=$2
2512shift; shift
2513# Remember, the first character of IFS is used to create $*,
2514# except with old shells:
2515host_os=$*
2516IFS=$ac_save_IFS
2517case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2518
2519
2520
jimblandy92b1f832009-12-23 22:23:49 +00002521am__api_version='1.11'
mmentovaiaf3c43f2007-05-17 18:34:37 +00002522
brynercb91a2f2006-08-25 21:14:45 +00002523# Find a good install program. We prefer a C program (faster),
2524# so one script is as good as another. But avoid the broken or
2525# incompatible versions:
2526# SysV /etc/install, /usr/sbin/install
2527# SunOS /usr/etc/install
2528# IRIX /sbin/install
2529# AIX /bin/install
2530# AmigaOS /C/install, which installs bootblocks on floppy discs
2531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2532# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2534# OS/2's system install, which has a completely different semantic
2535# ./install, which can be erroneously created by make from ./install.sh.
jimblandy92b1f832009-12-23 22:23:49 +00002536# Reject install programs that cannot install multiple files.
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2538$as_echo_n "checking for a BSD-compatible install... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002539if test -z "$INSTALL"; then
jimblandy92b1f832009-12-23 22:23:49 +00002540if test "${ac_cv_path_install+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002542else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002548 # Account for people who put trailing slashes in PATH elements.
2549case $as_dir/ in #((
2550 ./ | .// | /[cC]/* | \
brynercb91a2f2006-08-25 21:14:45 +00002551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
jimblandy92b1f832009-12-23 22:23:49 +00002552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
brynercb91a2f2006-08-25 21:14:45 +00002553 /usr/ucb/* ) ;;
2554 *)
2555 # OSF1 and SCO ODT 3.0 have their own names for install.
2556 # Don't use installbsd from OSF since it installs stuff as root
2557 # by default.
2558 for ac_prog in ginstall scoinst install; do
2559 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002560 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 +00002561 if test $ac_prog = install &&
2562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # AIX install. It has an incompatible calling convention.
2564 :
2565 elif test $ac_prog = install &&
2566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2567 # program-specific install script used by HP pwplus--don't use.
2568 :
2569 else
jimblandy92b1f832009-12-23 22:23:49 +00002570 rm -rf conftest.one conftest.two conftest.dir
2571 echo one > conftest.one
2572 echo two > conftest.two
2573 mkdir conftest.dir
2574 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2575 test -s conftest.one && test -s conftest.two &&
2576 test -s conftest.dir/conftest.one &&
2577 test -s conftest.dir/conftest.two
2578 then
2579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 break 3
2581 fi
brynercb91a2f2006-08-25 21:14:45 +00002582 fi
2583 fi
2584 done
2585 done
2586 ;;
2587esac
jimblandy92b1f832009-12-23 22:23:49 +00002588
2589 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002590IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002591
jimblandy92b1f832009-12-23 22:23:49 +00002592rm -rf conftest.one conftest.two conftest.dir
brynercb91a2f2006-08-25 21:14:45 +00002593
2594fi
2595 if test "${ac_cv_path_install+set}" = set; then
2596 INSTALL=$ac_cv_path_install
2597 else
mmentovai8c2a4de2006-09-20 16:20:15 +00002598 # As a last resort, use the slow shell script. Don't cache a
2599 # value for INSTALL within a source directory, because that will
brynercb91a2f2006-08-25 21:14:45 +00002600 # break other packages using the cache if that directory is
mmentovai8c2a4de2006-09-20 16:20:15 +00002601 # removed, or if the value is a relative name.
brynercb91a2f2006-08-25 21:14:45 +00002602 INSTALL=$ac_install_sh
2603 fi
2604fi
jimblandy92b1f832009-12-23 22:23:49 +00002605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2606$as_echo "$INSTALL" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002607
2608# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2609# It thinks the first close brace ends the variable substitution.
2610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2611
2612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2613
2614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2615
jimblandy92b1f832009-12-23 22:23:49 +00002616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2617$as_echo_n "checking whether build environment is sane... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002618# Just in case
2619sleep 1
2620echo timestamp > conftest.file
jimblandy92b1f832009-12-23 22:23:49 +00002621# Reject unsafe characters in $srcdir or the absolute working directory
2622# name. Accept space and tab only in the latter.
2623am_lf='
2624'
2625case `pwd` in
2626 *[\\\"\#\$\&\'\`$am_lf]*)
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002627 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002628esac
2629case $srcdir in
2630 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002631 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
jimblandy92b1f832009-12-23 22:23:49 +00002632esac
2633
brynercb91a2f2006-08-25 21:14:45 +00002634# Do `set' in a subshell so we don't clobber the current shell's
2635# arguments. Must try -L first in case configure is actually a
2636# symlink; some systems play weird games with the mod time of symlinks
2637# (eg FreeBSD returns the mod time of the symlink's containing
2638# directory).
2639if (
jimblandy92b1f832009-12-23 22:23:49 +00002640 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
brynercb91a2f2006-08-25 21:14:45 +00002641 if test "$*" = "X"; then
2642 # -L didn't work.
jimblandy92b1f832009-12-23 22:23:49 +00002643 set X `ls -t "$srcdir/configure" conftest.file`
brynercb91a2f2006-08-25 21:14:45 +00002644 fi
2645 rm -f conftest.file
2646 if test "$*" != "X $srcdir/configure conftest.file" \
2647 && test "$*" != "X conftest.file $srcdir/configure"; then
2648
2649 # If neither matched, then we have a broken ls. This can happen
2650 # if, for instance, CONFIG_SHELL is bash and it inherits a
2651 # broken ls alias from the environment. This has actually
2652 # happened. Such a system could not be considered "sane".
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002653 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
jimblandy92b1f832009-12-23 22:23:49 +00002654alias in your environment" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002655 fi
2656
2657 test "$2" = conftest.file
2658 )
2659then
2660 # Ok.
2661 :
2662else
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002663 as_fn_error $? "newly created file is older than distributed files!
jimblandy92b1f832009-12-23 22:23:49 +00002664Check your system clock" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +00002665fi
jimblandy92b1f832009-12-23 22:23:49 +00002666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002668test "$program_prefix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002669 program_transform_name="s&^&$program_prefix&;$program_transform_name"
brynercb91a2f2006-08-25 21:14:45 +00002670# Use a double $ so make ignores it.
2671test "$program_suffix" != NONE &&
mmentovai8c2a4de2006-09-20 16:20:15 +00002672 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
jimblandy92b1f832009-12-23 22:23:49 +00002673# Double any \ or $.
brynercb91a2f2006-08-25 21:14:45 +00002674# By default was `s,x,x', remove it if useless.
jimblandy92b1f832009-12-23 22:23:49 +00002675ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
brynercb91a2f2006-08-25 21:14:45 +00002677
2678# expand $ac_aux_dir to an absolute path
2679am_aux_dir=`cd $ac_aux_dir && pwd`
2680
jimblandy92b1f832009-12-23 22:23:49 +00002681if test x"${MISSING+set}" != xset; then
2682 case $am_aux_dir in
2683 *\ * | *\ *)
2684 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2685 *)
2686 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2687 esac
2688fi
brynercb91a2f2006-08-25 21:14:45 +00002689# Use eval to expand $SHELL
2690if eval "$MISSING --run true"; then
2691 am_missing_run="$MISSING --run "
2692else
2693 am_missing_run=
jimblandy92b1f832009-12-23 22:23:49 +00002694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2695$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00002696fi
2697
jimblandy92b1f832009-12-23 22:23:49 +00002698if test x"${install_sh}" != xset; then
2699 case $am_aux_dir in
2700 *\ * | *\ *)
2701 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2702 *)
2703 install_sh="\${SHELL} $am_aux_dir/install-sh"
2704 esac
2705fi
2706
2707# Installed binaries are usually stripped using `strip' when the user
2708# run `make install-strip'. However `strip' might not be the right
2709# tool to use in cross-compilation environments, therefore Automake
2710# will honor the `STRIP' environment variable to overrule this program.
2711if test "$cross_compiling" != no; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2714set dummy ${ac_tool_prefix}strip; ac_word=$2
2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716$as_echo_n "checking for $ac_word... " >&6; }
2717if test "${ac_cv_prog_STRIP+set}" = set; then :
2718 $as_echo_n "(cached) " >&6
2719else
2720 if test -n "$STRIP"; then
2721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2722else
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2733 fi
2734done
2735 done
2736IFS=$as_save_IFS
2737
2738fi
2739fi
2740STRIP=$ac_cv_prog_STRIP
2741if test -n "$STRIP"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2743$as_echo "$STRIP" >&6; }
2744else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746$as_echo "no" >&6; }
2747fi
2748
2749
2750fi
2751if test -z "$ac_cv_prog_STRIP"; then
2752 ac_ct_STRIP=$STRIP
2753 # Extract the first word of "strip", so it can be a program name with args.
2754set dummy strip; ac_word=$2
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
2759else
2760 if test -n "$ac_ct_STRIP"; then
2761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_STRIP="strip"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2773 fi
2774done
2775 done
2776IFS=$as_save_IFS
2777
2778fi
2779fi
2780ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781if test -n "$ac_ct_STRIP"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2783$as_echo "$ac_ct_STRIP" >&6; }
2784else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
2787fi
2788
2789 if test "x$ac_ct_STRIP" = x; then
2790 STRIP=":"
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793yes:)
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796ac_tool_warned=yes ;;
2797esac
2798 STRIP=$ac_ct_STRIP
2799 fi
2800else
2801 STRIP="$ac_cv_prog_STRIP"
2802fi
2803
2804fi
2805INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2808$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002809if test -z "$MKDIR_P"; then
jimblandy92b1f832009-12-23 22:23:49 +00002810 if test "${ac_cv_path_mkdir+set}" = set; then :
2811 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002812else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2815do
2816 IFS=$as_save_IFS
2817 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002818 for ac_prog in mkdir gmkdir; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2821 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2822 'mkdir (GNU coreutils) '* | \
2823 'mkdir (coreutils) '* | \
2824 'mkdir (fileutils) '4.1*)
2825 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2826 break 3;;
2827 esac
2828 done
2829 done
jimblandy92b1f832009-12-23 22:23:49 +00002830 done
mmentovaiaf3c43f2007-05-17 18:34:37 +00002831IFS=$as_save_IFS
2832
2833fi
2834
jimblandydc4029a2010-02-02 17:39:51 +00002835 test -d ./--version && rmdir ./--version
mmentovaiaf3c43f2007-05-17 18:34:37 +00002836 if test "${ac_cv_path_mkdir+set}" = set; then
2837 MKDIR_P="$ac_cv_path_mkdir -p"
brynercb91a2f2006-08-25 21:14:45 +00002838 else
mmentovaiaf3c43f2007-05-17 18:34:37 +00002839 # As a last resort, use the slow shell script. Don't cache a
2840 # value for MKDIR_P within a source directory, because that will
2841 # break other packages using the cache if that directory is
2842 # removed, or if the value is a relative name.
mmentovaiaf3c43f2007-05-17 18:34:37 +00002843 MKDIR_P="$ac_install_sh -d"
brynercb91a2f2006-08-25 21:14:45 +00002844 fi
2845fi
jimblandy92b1f832009-12-23 22:23:49 +00002846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2847$as_echo "$MKDIR_P" >&6; }
mmentovaiaf3c43f2007-05-17 18:34:37 +00002848
2849mkdir_p="$MKDIR_P"
2850case $mkdir_p in
2851 [\\/$]* | ?:[\\/]*) ;;
2852 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2853esac
brynercb91a2f2006-08-25 21:14:45 +00002854
2855for ac_prog in gawk mawk nawk awk
2856do
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00002859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
2861if test "${ac_cv_prog_AWK+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002863else
2864 if test -n "$AWK"; then
2865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2866else
2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00002872 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00002873 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 +00002874 ac_cv_prog_AWK="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00002875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00002876 break 2
2877 fi
2878done
jimblandy92b1f832009-12-23 22:23:49 +00002879 done
mmentovai8c2a4de2006-09-20 16:20:15 +00002880IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00002881
2882fi
2883fi
2884AWK=$ac_cv_prog_AWK
2885if test -n "$AWK"; then
jimblandy92b1f832009-12-23 22:23:49 +00002886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2887$as_echo "$AWK" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002888else
jimblandy92b1f832009-12-23 22:23:49 +00002889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002891fi
2892
mmentovai8c2a4de2006-09-20 16:20:15 +00002893
brynercb91a2f2006-08-25 21:14:45 +00002894 test -n "$AWK" && break
2895done
2896
jimblandy92b1f832009-12-23 22:23:49 +00002897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2899set x ${MAKE-make}
2900ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002901if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
jimblandy92b1f832009-12-23 22:23:49 +00002902 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00002903else
2904 cat >conftest.make <<\_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00002905SHELL = /bin/sh
brynercb91a2f2006-08-25 21:14:45 +00002906all:
mmentovai8c2a4de2006-09-20 16:20:15 +00002907 @echo '@@@%%%=$(MAKE)=@@@%%%'
brynercb91a2f2006-08-25 21:14:45 +00002908_ACEOF
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002909# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
mmentovai8c2a4de2006-09-20 16:20:15 +00002910case `${MAKE-make} -f conftest.make 2>/dev/null` in
2911 *@@@%%%=?*=@@@%%%*)
2912 eval ac_cv_prog_make_${ac_make}_set=yes;;
2913 *)
2914 eval ac_cv_prog_make_${ac_make}_set=no;;
2915esac
brynercb91a2f2006-08-25 21:14:45 +00002916rm -f conftest.make
2917fi
mmentovai8c2a4de2006-09-20 16:20:15 +00002918if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00002919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2920$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002921 SET_MAKE=
2922else
jimblandy92b1f832009-12-23 22:23:49 +00002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00002925 SET_MAKE="MAKE=${MAKE-make}"
2926fi
2927
2928rm -rf .tst 2>/dev/null
2929mkdir .tst 2>/dev/null
2930if test -d .tst; then
2931 am__leading_dot=.
2932else
2933 am__leading_dot=_
2934fi
2935rmdir .tst 2>/dev/null
2936
mmentovaiaf3c43f2007-05-17 18:34:37 +00002937if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00002943 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
mmentovaiaf3c43f2007-05-17 18:34:37 +00002944 fi
brynercb91a2f2006-08-25 21:14:45 +00002945fi
2946
2947# test whether we have cygpath
2948if test -z "$CYGPATH_W"; then
2949 if (cygpath --version) >/dev/null 2>/dev/null; then
2950 CYGPATH_W='cygpath -w'
2951 else
2952 CYGPATH_W=echo
2953 fi
2954fi
2955
2956
2957# Define the identity of the package.
mmentovaie5dc6082007-02-14 19:51:05 +00002958 PACKAGE='breakpad'
brynercb91a2f2006-08-25 21:14:45 +00002959 VERSION='0.1'
2960
2961
2962cat >>confdefs.h <<_ACEOF
2963#define PACKAGE "$PACKAGE"
2964_ACEOF
2965
2966
2967cat >>confdefs.h <<_ACEOF
2968#define VERSION "$VERSION"
2969_ACEOF
2970
2971# Some tools Automake needs.
2972
2973ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2974
2975
2976AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2977
2978
2979AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2980
2981
2982AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2983
2984
2985MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2986
brynercb91a2f2006-08-25 21:14:45 +00002987# We need awk for the "check" target. The system "awk" is bad on
2988# some platforms.
2989# Always define AMTAR for backward compatibility.
2990
2991AMTAR=${AMTAR-"${am_missing_run}tar"}
2992
mmentovaidb3342a2006-12-05 22:52:28 +00002993
jimblandy92b1f832009-12-23 22:23:49 +00002994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2995$as_echo_n "checking how to create a ustar tar archive... " >&6; }
mmentovaidb3342a2006-12-05 22:52:28 +00002996# Loop over all known methods to create a tar archive until one works.
2997_am_tools='gnutar plaintar pax cpio none'
2998_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2999# Do not fold the above two line into one, because Tru64 sh and
3000# Solaris sh will not grok spaces in the rhs of `-'.
3001for _am_tool in $_am_tools
3002do
3003 case $_am_tool in
3004 gnutar)
3005 for _am_tar in tar gnutar gtar;
3006 do
3007 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3008 ($_am_tar --version) >&5 2>&5
3009 ac_status=$?
3010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && break
3012 done
3013 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3014 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3015 am__untar="$_am_tar -xf -"
3016 ;;
3017 plaintar)
3018 # Must skip GNU tar: if it does not support --format= it doesn't create
3019 # ustar tarball either.
3020 (tar --version) >/dev/null 2>&1 && continue
3021 am__tar='tar chf - "$$tardir"'
3022 am__tar_='tar chf - "$tardir"'
3023 am__untar='tar xf -'
3024 ;;
3025 pax)
3026 am__tar='pax -L -x ustar -w "$$tardir"'
3027 am__tar_='pax -L -x ustar -w "$tardir"'
3028 am__untar='pax -r'
3029 ;;
3030 cpio)
3031 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3032 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3033 am__untar='cpio -i -H ustar -d'
3034 ;;
3035 none)
3036 am__tar=false
3037 am__tar_=false
3038 am__untar=false
3039 ;;
3040 esac
3041
3042 # If the value was cached, stop now. We just wanted to have am__tar
3043 # and am__untar set.
3044 test -n "${am_cv_prog_tar_ustar}" && break
3045
3046 # tar/untar a dummy directory, and stop if the command works
3047 rm -rf conftest.dir
3048 mkdir conftest.dir
3049 echo GrepMe > conftest.dir/file
3050 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3051 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 rm -rf conftest.dir
3056 if test -s conftest.tar; then
3057 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3058 ($am__untar <conftest.tar) >&5 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3063 fi
3064done
3065rm -rf conftest.dir
3066
jimblandy92b1f832009-12-23 22:23:49 +00003067if test "${am_cv_prog_tar_ustar+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
mmentovaidb3342a2006-12-05 22:52:28 +00003069else
3070 am_cv_prog_tar_ustar=$_am_tool
3071fi
3072
jimblandy92b1f832009-12-23 22:23:49 +00003073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3074$as_echo "$am_cv_prog_tar_ustar" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003075
3076
3077
3078
3079
mmentovai8c2a4de2006-09-20 16:20:15 +00003080ac_config_headers="$ac_config_headers src/config.h"
brynercb91a2f2006-08-25 21:14:45 +00003081
3082
brynercb91a2f2006-08-25 21:14:45 +00003083ac_ext=c
3084ac_cpp='$CPP $CPPFLAGS'
3085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3090set dummy ${ac_tool_prefix}gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092$as_echo_n "checking for $ac_word... " >&6; }
3093if test "${ac_cv_prog_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003095else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003104 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003105 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 +00003106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003108 break 2
3109 fi
3110done
jimblandy92b1f832009-12-23 22:23:49 +00003111 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003112IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003113
3114fi
3115fi
3116CC=$ac_cv_prog_CC
3117if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003120else
jimblandy92b1f832009-12-23 22:23:49 +00003121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003123fi
3124
mmentovai8c2a4de2006-09-20 16:20:15 +00003125
brynercb91a2f2006-08-25 21:14:45 +00003126fi
3127if test -z "$ac_cv_prog_CC"; then
3128 ac_ct_CC=$CC
3129 # Extract the first word of "gcc", so it can be a program name with args.
3130set dummy gcc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132$as_echo_n "checking for $ac_word... " >&6; }
3133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3134 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003135else
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138else
3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140for as_dir in $PATH
3141do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003144 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003145 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 +00003146 ac_cv_prog_ac_ct_CC="gcc"
jimblandy92b1f832009-12-23 22:23:49 +00003147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003148 break 2
3149 fi
3150done
jimblandy92b1f832009-12-23 22:23:49 +00003151 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003152IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003153
3154fi
3155fi
3156ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003160else
jimblandy92b1f832009-12-23 22:23:49 +00003161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003163fi
3164
mmentovai8c2a4de2006-09-20 16:20:15 +00003165 if test "x$ac_ct_CC" = x; then
3166 CC=""
3167 else
3168 case $cross_compiling:$ac_tool_warned in
3169yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003172ac_tool_warned=yes ;;
3173esac
3174 CC=$ac_ct_CC
3175 fi
brynercb91a2f2006-08-25 21:14:45 +00003176else
3177 CC="$ac_cv_prog_CC"
3178fi
3179
3180if test -z "$CC"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
brynercb91a2f2006-08-25 21:14:45 +00003183set dummy ${ac_tool_prefix}cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if test "${ac_cv_prog_CC+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003188else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003197 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003198 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 +00003199 ac_cv_prog_CC="${ac_tool_prefix}cc"
jimblandy92b1f832009-12-23 22:23:49 +00003200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003201 break 2
3202 fi
3203done
jimblandy92b1f832009-12-23 22:23:49 +00003204 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003205IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003206
3207fi
3208fi
3209CC=$ac_cv_prog_CC
3210if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3212$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003213else
jimblandy92b1f832009-12-23 22:23:49 +00003214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003216fi
3217
mmentovai8c2a4de2006-09-20 16:20:15 +00003218
brynercb91a2f2006-08-25 21:14:45 +00003219 fi
brynercb91a2f2006-08-25 21:14:45 +00003220fi
3221if test -z "$CC"; then
3222 # Extract the first word of "cc", so it can be a program name with args.
3223set dummy cc; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225$as_echo_n "checking for $ac_word... " >&6; }
3226if test "${ac_cv_prog_CC+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003228else
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231else
3232 ac_prog_rejected=no
3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234for as_dir in $PATH
3235do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003238 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003239 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 +00003240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3241 ac_prog_rejected=yes
3242 continue
3243 fi
3244 ac_cv_prog_CC="cc"
jimblandy92b1f832009-12-23 22:23:49 +00003245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003246 break 2
3247 fi
3248done
jimblandy92b1f832009-12-23 22:23:49 +00003249 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003250IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003251
3252if test $ac_prog_rejected = yes; then
3253 # We found a bogon in the path, so make sure we never use it.
3254 set dummy $ac_cv_prog_CC
3255 shift
3256 if test $# != 0; then
3257 # We chose a different compiler from the bogus one.
3258 # However, it has the same basename, so the bogon will be chosen
3259 # first if we set CC to just the basename; use the full file name.
3260 shift
3261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262 fi
3263fi
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003270else
jimblandy92b1f832009-12-23 22:23:49 +00003271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003273fi
3274
mmentovai8c2a4de2006-09-20 16:20:15 +00003275
brynercb91a2f2006-08-25 21:14:45 +00003276fi
3277if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00003279 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003280 do
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284$as_echo_n "checking for $ac_word... " >&6; }
3285if test "${ac_cv_prog_CC+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003287else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290else
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003296 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003297 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 +00003298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003300 break 2
3301 fi
3302done
jimblandy92b1f832009-12-23 22:23:49 +00003303 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003304IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003305
3306fi
3307fi
3308CC=$ac_cv_prog_CC
3309if test -n "$CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311$as_echo "$CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003312else
jimblandy92b1f832009-12-23 22:23:49 +00003313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003315fi
3316
mmentovai8c2a4de2006-09-20 16:20:15 +00003317
brynercb91a2f2006-08-25 21:14:45 +00003318 test -n "$CC" && break
3319 done
3320fi
3321if test -z "$CC"; then
3322 ac_ct_CC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00003323 for ac_prog in cl.exe
brynercb91a2f2006-08-25 21:14:45 +00003324do
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00003327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328$as_echo_n "checking for $ac_word... " >&6; }
3329if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003331else
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334else
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00003340 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00003341 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 +00003342 ac_cv_prog_ac_ct_CC="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00003343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00003344 break 2
3345 fi
3346done
jimblandy92b1f832009-12-23 22:23:49 +00003347 done
mmentovai8c2a4de2006-09-20 16:20:15 +00003348IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00003349
3350fi
3351fi
3352ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353if test -n "$ac_ct_CC"; then
jimblandy92b1f832009-12-23 22:23:49 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355$as_echo "$ac_ct_CC" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003356else
jimblandy92b1f832009-12-23 22:23:49 +00003357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003359fi
3360
mmentovai8c2a4de2006-09-20 16:20:15 +00003361
brynercb91a2f2006-08-25 21:14:45 +00003362 test -n "$ac_ct_CC" && break
3363done
3364
mmentovai8c2a4de2006-09-20 16:20:15 +00003365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369yes:)
jimblandy92b1f832009-12-23 22:23:49 +00003370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00003372ac_tool_warned=yes ;;
3373esac
3374 CC=$ac_ct_CC
3375 fi
brynercb91a2f2006-08-25 21:14:45 +00003376fi
3377
3378fi
3379
3380
jimblandy92b1f832009-12-23 22:23:49 +00003381test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003383as_fn_error $? "no acceptable C compiler found in \$PATH
3384See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003385
3386# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00003387$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3388set X $ac_compile
3389ac_compiler=$2
3390for ac_option in --version -v -V -qversion; do
3391 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00003392case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
jimblandy92b1f832009-12-23 22:23:49 +00003396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00003399 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003400 if test -s conftest.err; then
3401 sed '10a\
3402... rest of stderr output deleted ...
3403 10q' conftest.err >conftest.er1
3404 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00003405 fi
jimblandydc4029a2010-02-02 17:39:51 +00003406 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00003407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }
3409done
brynercb91a2f2006-08-25 21:14:45 +00003410
jimblandy92b1f832009-12-23 22:23:49 +00003411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003412/* end confdefs.h. */
jimblandydc4029a2010-02-02 17:39:51 +00003413
brynercb91a2f2006-08-25 21:14:45 +00003414int
3415main ()
3416{
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422ac_clean_files_save=$ac_clean_files
jimblandydc4029a2010-02-02 17:39:51 +00003423ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
brynercb91a2f2006-08-25 21:14:45 +00003424# Try to create an executable without -o first, disregard a.out.
3425# It will help us diagnose broken compilers, and finding out an intuition
3426# of exeext.
jimblandydc4029a2010-02-02 17:39:51 +00003427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3428$as_echo_n "checking whether the C compiler works... " >&6; }
jimblandy92b1f832009-12-23 22:23:49 +00003429ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3430
3431# The possible output files:
3432ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3433
mmentovai8c2a4de2006-09-20 16:20:15 +00003434ac_rmfiles=
3435for ac_file in $ac_files
3436do
3437 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003439 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3440 esac
3441done
3442rm -f $ac_rmfiles
3443
jimblandy92b1f832009-12-23 22:23:49 +00003444if { { ac_try="$ac_link_default"
mmentovai8c2a4de2006-09-20 16:20:15 +00003445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
jimblandy92b1f832009-12-23 22:23:49 +00003449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003451 (eval "$ac_link_default") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003452 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3456# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3457# in a Makefile. We should not override ac_cv_exeext if it was cached,
3458# so that the user can short-circuit this test for compilers unknown to
3459# Autoconf.
mmentovaiaf3c43f2007-05-17 18:34:37 +00003460for ac_file in $ac_files ''
brynercb91a2f2006-08-25 21:14:45 +00003461do
3462 test -f "$ac_file" || continue
3463 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
brynercb91a2f2006-08-25 21:14:45 +00003465 ;;
3466 [ab].out )
3467 # We found the default executable, but exeext='' is most
3468 # certainly right.
3469 break;;
3470 *.* )
jimblandy92b1f832009-12-23 22:23:49 +00003471 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
mmentovai8c2a4de2006-09-20 16:20:15 +00003472 then :; else
3473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3474 fi
3475 # We set ac_cv_exeext here because the later test for it is not
3476 # safe: cross compilers may not add the suffix if given an `-o'
3477 # argument, so we may need to know it at that point already.
3478 # Even if this section looks crufty: it has the advantage of
3479 # actually working.
brynercb91a2f2006-08-25 21:14:45 +00003480 break;;
3481 * )
3482 break;;
3483 esac
3484done
mmentovai8c2a4de2006-09-20 16:20:15 +00003485test "$ac_cv_exeext" = no && ac_cv_exeext=
3486
brynercb91a2f2006-08-25 21:14:45 +00003487else
mmentovaiaf3c43f2007-05-17 18:34:37 +00003488 ac_file=''
3489fi
jimblandy92b1f832009-12-23 22:23:49 +00003490if test -z "$ac_file"; then :
jimblandydc4029a2010-02-02 17:39:51 +00003491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492$as_echo "no" >&6; }
3493$as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003494sed 's/^/| /' conftest.$ac_ext >&5
3495
jimblandy92b1f832009-12-23 22:23:49 +00003496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003498as_fn_error 77 "C compiler cannot create executables
3499See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003500else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3502$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003503fi
jimblandydc4029a2010-02-02 17:39:51 +00003504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3505$as_echo_n "checking for C compiler default output file name... " >&6; }
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3507$as_echo "$ac_file" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003508ac_exeext=$ac_cv_exeext
brynercb91a2f2006-08-25 21:14:45 +00003509
jimblandydc4029a2010-02-02 17:39:51 +00003510rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
brynercb91a2f2006-08-25 21:14:45 +00003511ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3513$as_echo_n "checking for suffix of executables... " >&6; }
3514if { { ac_try="$ac_link"
mmentovai8c2a4de2006-09-20 16:20:15 +00003515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
jimblandy92b1f832009-12-23 22:23:49 +00003519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003521 (eval "$ac_link") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003522 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
brynercb91a2f2006-08-25 21:14:45 +00003525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3527# work properly (i.e., refer to `conftest.exe'), while it won't with
3528# `rm'.
3529for ac_file in conftest.exe conftest conftest.*; do
3530 test -f "$ac_file" || continue
3531 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
brynercb91a2f2006-08-25 21:14:45 +00003534 break;;
3535 * ) break;;
3536 esac
3537done
3538else
jimblandy92b1f832009-12-23 22:23:49 +00003539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003541as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3542See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003543fi
jimblandydc4029a2010-02-02 17:39:51 +00003544rm -f conftest conftest$ac_cv_exeext
jimblandy92b1f832009-12-23 22:23:49 +00003545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3546$as_echo "$ac_cv_exeext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003547
3548rm -f conftest.$ac_ext
3549EXEEXT=$ac_cv_exeext
3550ac_exeext=$EXEEXT
jimblandydc4029a2010-02-02 17:39:51 +00003551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h. */
3553#include <stdio.h>
3554int
3555main ()
3556{
3557FILE *f = fopen ("conftest.out", "w");
3558 return ferror (f) || fclose (f) != 0;
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
3564ac_clean_files="$ac_clean_files conftest.out"
3565# Check that the compiler produces executables we can run. If not, either
3566# the compiler is broken, or we cross compile.
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3568$as_echo_n "checking whether we are cross compiling... " >&6; }
3569if test "$cross_compiling" != yes; then
3570 { { ac_try="$ac_link"
3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3576$as_echo "$ac_try_echo"; } >&5
3577 (eval "$ac_link") 2>&5
3578 ac_status=$?
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }
3581 if { ac_try='./conftest$ac_cv_exeext'
3582 { { case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585esac
3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587$as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_try") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; }; then
3592 cross_compiling=no
3593 else
3594 if test "$cross_compiling" = maybe; then
3595 cross_compiling=yes
3596 else
3597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003599as_fn_error $? "cannot run C compiled programs.
jimblandydc4029a2010-02-02 17:39:51 +00003600If you meant to cross compile, use \`--host'.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003601See \`config.log' for more details" "$LINENO" 5; }
jimblandydc4029a2010-02-02 17:39:51 +00003602 fi
3603 fi
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3606$as_echo "$cross_compiling" >&6; }
3607
3608rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3609ac_clean_files=$ac_clean_files_save
jimblandy92b1f832009-12-23 22:23:49 +00003610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3611$as_echo_n "checking for suffix of object files... " >&6; }
3612if test "${ac_cv_objext+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003614else
jimblandy92b1f832009-12-23 22:23:49 +00003615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003616/* end confdefs.h. */
3617
3618int
3619main ()
3620{
3621
3622 ;
3623 return 0;
3624}
3625_ACEOF
3626rm -f conftest.o conftest.obj
jimblandy92b1f832009-12-23 22:23:49 +00003627if { { ac_try="$ac_compile"
mmentovai8c2a4de2006-09-20 16:20:15 +00003628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
jimblandy92b1f832009-12-23 22:23:49 +00003632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
mmentovai8c2a4de2006-09-20 16:20:15 +00003634 (eval "$ac_compile") 2>&5
brynercb91a2f2006-08-25 21:14:45 +00003635 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00003636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003638 for ac_file in conftest.o conftest.obj conftest.*; do
3639 test -f "$ac_file" || continue;
brynercb91a2f2006-08-25 21:14:45 +00003640 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +00003641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
brynercb91a2f2006-08-25 21:14:45 +00003642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3643 break;;
3644 esac
3645done
3646else
jimblandy92b1f832009-12-23 22:23:49 +00003647 $as_echo "$as_me: failed program was:" >&5
brynercb91a2f2006-08-25 21:14:45 +00003648sed 's/^/| /' conftest.$ac_ext >&5
3649
jimblandy92b1f832009-12-23 22:23:49 +00003650{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00003652as_fn_error $? "cannot compute suffix of object files: cannot compile
3653See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00003654fi
brynercb91a2f2006-08-25 21:14:45 +00003655rm -f conftest.$ac_cv_objext conftest.$ac_ext
3656fi
jimblandy92b1f832009-12-23 22:23:49 +00003657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3658$as_echo "$ac_cv_objext" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003659OBJEXT=$ac_cv_objext
3660ac_objext=$OBJEXT
jimblandy92b1f832009-12-23 22:23:49 +00003661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3662$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3663if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003665else
jimblandy92b1f832009-12-23 22:23:49 +00003666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003667/* end confdefs.h. */
3668
3669int
3670main ()
3671{
3672#ifndef __GNUC__
3673 choke me
3674#endif
3675
3676 ;
3677 return 0;
3678}
3679_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003680if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003681 ac_compiler_gnu=yes
3682else
jimblandy92b1f832009-12-23 22:23:49 +00003683 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00003684fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003686ac_cv_c_compiler_gnu=$ac_compiler_gnu
3687
3688fi
jimblandy92b1f832009-12-23 22:23:49 +00003689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3690$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3691if test $ac_compiler_gnu = yes; then
3692 GCC=yes
3693else
3694 GCC=
3695fi
brynercb91a2f2006-08-25 21:14:45 +00003696ac_test_CFLAGS=${CFLAGS+set}
3697ac_save_CFLAGS=$CFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00003698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3699$as_echo_n "checking whether $CC accepts -g... " >&6; }
3700if test "${ac_cv_prog_cc_g+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003702else
mmentovai8c2a4de2006-09-20 16:20:15 +00003703 ac_save_c_werror_flag=$ac_c_werror_flag
3704 ac_c_werror_flag=yes
3705 ac_cv_prog_cc_g=no
3706 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003708/* end confdefs.h. */
3709
3710int
3711main ()
3712{
3713
3714 ;
3715 return 0;
3716}
3717_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003718if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00003719 ac_cv_prog_cc_g=yes
3720else
jimblandy92b1f832009-12-23 22:23:49 +00003721 CFLAGS=""
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003723/* end confdefs.h. */
3724
3725int
3726main ()
3727{
3728
3729 ;
3730 return 0;
3731}
3732_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003733if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003734
jimblandy92b1f832009-12-23 22:23:49 +00003735else
3736 ac_c_werror_flag=$ac_save_c_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00003737 CFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00003738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00003739/* end confdefs.h. */
3740
3741int
3742main ()
3743{
3744
3745 ;
3746 return 0;
3747}
3748_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00003749if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003750 ac_cv_prog_cc_g=yes
brynercb91a2f2006-08-25 21:14:45 +00003751fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003753fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3758fi
jimblandy92b1f832009-12-23 22:23:49 +00003759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3760$as_echo "$ac_cv_prog_cc_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003761if test "$ac_test_CFLAGS" = set; then
3762 CFLAGS=$ac_save_CFLAGS
3763elif test $ac_cv_prog_cc_g = yes; then
3764 if test "$GCC" = yes; then
3765 CFLAGS="-g -O2"
3766 else
3767 CFLAGS="-g"
3768 fi
3769else
3770 if test "$GCC" = yes; then
3771 CFLAGS="-O2"
3772 else
3773 CFLAGS=
3774 fi
3775fi
jimblandy92b1f832009-12-23 22:23:49 +00003776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3777$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3778if test "${ac_cv_prog_cc_c89+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003780else
mmentovai8c2a4de2006-09-20 16:20:15 +00003781 ac_cv_prog_cc_c89=no
brynercb91a2f2006-08-25 21:14:45 +00003782ac_save_CC=$CC
jimblandy92b1f832009-12-23 22:23:49 +00003783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003784/* end confdefs.h. */
3785#include <stdarg.h>
3786#include <stdio.h>
3787#include <sys/types.h>
3788#include <sys/stat.h>
3789/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3790struct buf { int x; };
3791FILE * (*rcsopen) (struct buf *, struct stat *, int);
3792static char *e (p, i)
3793 char **p;
3794 int i;
3795{
3796 return p[i];
3797}
3798static char *f (char * (*g) (char **, int), char **p, ...)
3799{
3800 char *s;
3801 va_list v;
3802 va_start (v,p);
3803 s = g (p, va_arg (v,int));
3804 va_end (v);
3805 return s;
3806}
3807
3808/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3809 function prototypes and stuff, but not '\xHH' hex character constants.
3810 These don't provoke an error unfortunately, instead are silently treated
mmentovai8c2a4de2006-09-20 16:20:15 +00003811 as 'x'. The following induces an error, until -std is added to get
brynercb91a2f2006-08-25 21:14:45 +00003812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3813 array size at least. It's necessary to write '\x00'==0 to get something
mmentovai8c2a4de2006-09-20 16:20:15 +00003814 that's true only with -std. */
brynercb91a2f2006-08-25 21:14:45 +00003815int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3816
mmentovai8c2a4de2006-09-20 16:20:15 +00003817/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3818 inside strings and character constants. */
3819#define FOO(x) 'x'
3820int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3821
brynercb91a2f2006-08-25 21:14:45 +00003822int test (int i, double x);
3823struct s1 {int (*f) (int a);};
3824struct s2 {int (*f) (double a);};
3825int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3826int argc;
3827char **argv;
3828int
3829main ()
3830{
3831return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3832 ;
3833 return 0;
3834}
3835_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +00003836for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
brynercb91a2f2006-08-25 21:14:45 +00003838do
3839 CC="$ac_save_CC $ac_arg"
jimblandy92b1f832009-12-23 22:23:49 +00003840 if ac_fn_c_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003841 ac_cv_prog_cc_c89=$ac_arg
brynercb91a2f2006-08-25 21:14:45 +00003842fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003843rm -f core conftest.err conftest.$ac_objext
3844 test "x$ac_cv_prog_cc_c89" != "xno" && break
brynercb91a2f2006-08-25 21:14:45 +00003845done
mmentovai8c2a4de2006-09-20 16:20:15 +00003846rm -f conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00003847CC=$ac_save_CC
3848
3849fi
mmentovai8c2a4de2006-09-20 16:20:15 +00003850# AC_CACHE_VAL
3851case "x$ac_cv_prog_cc_c89" in
3852 x)
jimblandy92b1f832009-12-23 22:23:49 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3854$as_echo "none needed" >&6; } ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00003855 xno)
jimblandy92b1f832009-12-23 22:23:49 +00003856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3857$as_echo "unsupported" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003858 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00003859 CC="$CC $ac_cv_prog_cc_c89"
jimblandy92b1f832009-12-23 22:23:49 +00003860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3861$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
brynercb91a2f2006-08-25 21:14:45 +00003862esac
jimblandy92b1f832009-12-23 22:23:49 +00003863if test "x$ac_cv_prog_cc_c89" != xno; then :
brynercb91a2f2006-08-25 21:14:45 +00003864
jimblandy92b1f832009-12-23 22:23:49 +00003865fi
brynercb91a2f2006-08-25 21:14:45 +00003866
brynercb91a2f2006-08-25 21:14:45 +00003867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872DEPDIR="${am__leading_dot}deps"
3873
mmentovai8c2a4de2006-09-20 16:20:15 +00003874ac_config_commands="$ac_config_commands depfiles"
brynercb91a2f2006-08-25 21:14:45 +00003875
3876
3877am_make=${MAKE-make}
3878cat > confinc << 'END'
3879am__doit:
jimblandy92b1f832009-12-23 22:23:49 +00003880 @echo this is the am__doit target
brynercb91a2f2006-08-25 21:14:45 +00003881.PHONY: am__doit
3882END
3883# If we don't find an include directive, just comment out the code.
jimblandy92b1f832009-12-23 22:23:49 +00003884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3885$as_echo_n "checking for style of include used by $am_make... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003886am__include="#"
3887am__quote=
3888_am_result=none
3889# First try GNU make style include.
3890echo "include confinc" > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003891# Ignore all kinds of additional output from `make'.
3892case `$am_make -s -f confmf 2> /dev/null` in #(
3893*the\ am__doit\ target*)
3894 am__include=include
3895 am__quote=
3896 _am_result=GNU
3897 ;;
3898esac
brynercb91a2f2006-08-25 21:14:45 +00003899# Now try BSD make style include.
3900if test "$am__include" = "#"; then
3901 echo '.include "confinc"' > confmf
jimblandy92b1f832009-12-23 22:23:49 +00003902 case `$am_make -s -f confmf 2> /dev/null` in #(
3903 *the\ am__doit\ target*)
3904 am__include=.include
3905 am__quote="\""
3906 _am_result=BSD
3907 ;;
3908 esac
brynercb91a2f2006-08-25 21:14:45 +00003909fi
3910
3911
jimblandy92b1f832009-12-23 22:23:49 +00003912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3913$as_echo "$_am_result" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00003914rm -f confinc confmf
3915
mmentovai8c2a4de2006-09-20 16:20:15 +00003916# Check whether --enable-dependency-tracking was given.
jimblandy92b1f832009-12-23 22:23:49 +00003917if test "${enable_dependency_tracking+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00003918 enableval=$enable_dependency_tracking;
3919fi
brynercb91a2f2006-08-25 21:14:45 +00003920
brynercb91a2f2006-08-25 21:14:45 +00003921if test "x$enable_dependency_tracking" != xno; then
3922 am_depcomp="$ac_aux_dir/depcomp"
3923 AMDEPBACKSLASH='\'
3924fi
mmentovaiaf3c43f2007-05-17 18:34:37 +00003925 if test "x$enable_dependency_tracking" != xno; then
brynercb91a2f2006-08-25 21:14:45 +00003926 AMDEP_TRUE=
3927 AMDEP_FALSE='#'
3928else
3929 AMDEP_TRUE='#'
3930 AMDEP_FALSE=
3931fi
3932
3933
3934
brynercb91a2f2006-08-25 21:14:45 +00003935depcc="$CC" am_compiler_list=
3936
jimblandy92b1f832009-12-23 22:23:49 +00003937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938$as_echo_n "checking dependency style of $depcc... " >&6; }
3939if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00003941else
3942 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943 # We make a subdir and do the tests there. Otherwise we can end up
3944 # making bogus files that we don't know about and never remove. For
3945 # instance it was reported that on HP-UX the gcc test will end up
3946 # making a dummy file named `D' -- because `-MD' means `put the output
3947 # in D'.
3948 mkdir conftest.dir
3949 # Copy depcomp to subdir because otherwise we won't find it if we're
3950 # using a relative directory.
3951 cp "$am_depcomp" conftest.dir
3952 cd conftest.dir
3953 # We will build objects and dependencies in a subdirectory because
3954 # it helps to detect inapplicable dependency modes. For instance
3955 # both Tru64's cc and ICC support -MD to output dependencies as a
3956 # side effect of compilation, but ICC will put the dependencies in
3957 # the current directory while Tru64 will put them in the object
3958 # directory.
3959 mkdir sub
3960
3961 am_cv_CC_dependencies_compiler_type=none
3962 if test "$am_compiler_list" = ""; then
3963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3964 fi
jimblandy92b1f832009-12-23 22:23:49 +00003965 am__universal=false
3966 case " $depcc " in #(
3967 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3968 esac
3969
brynercb91a2f2006-08-25 21:14:45 +00003970 for depmode in $am_compiler_list; do
3971 # Setup a source with many dependencies, because some compilers
3972 # like to wrap large dependency lists on column 80 (with \), and
3973 # we should not choose a depcomp mode which is confused by this.
3974 #
3975 # We need to recreate these files for each test, as the compiler may
3976 # overwrite some of them when testing with obscure command lines.
3977 # This happens at least with the AIX C compiler.
3978 : > sub/conftest.c
3979 for i in 1 2 3 4 5 6; do
3980 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3981 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3982 # Solaris 8's {/usr,}/bin/sh.
3983 touch sub/conftst$i.h
3984 done
3985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3986
jimblandy92b1f832009-12-23 22:23:49 +00003987 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3988 # mode. It turns out that the SunPro C++ compiler does not properly
3989 # handle `-M -o', and we need to detect this. Also, some Intel
3990 # versions had trouble with output in subdirs
3991 am__obj=sub/conftest.${OBJEXT-o}
3992 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00003993 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00003994 gcc)
3995 # This depmode causes a compiler race in universal mode.
3996 test "$am__universal" = false || continue
3997 ;;
brynercb91a2f2006-08-25 21:14:45 +00003998 nosideeffect)
3999 # after this tag, mechanisms are not by side-effect, so they'll
4000 # only be used when explicitly requested
4001 if test "x$enable_dependency_tracking" = xyes; then
4002 continue
4003 else
4004 break
4005 fi
4006 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004007 msvisualcpp | msvcmsys)
4008 # This compiler won't grok `-c -o', but also, the minuso test has
4009 # not run yet. These depmodes are late enough in the game, and
4010 # so weak that their functioning should not be impacted.
4011 am__obj=conftest.${OBJEXT-o}
4012 am__minus_obj=
4013 ;;
brynercb91a2f2006-08-25 21:14:45 +00004014 none) break ;;
4015 esac
brynercb91a2f2006-08-25 21:14:45 +00004016 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004017 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004020 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4025 # icc doesn't choke on unknown options, it will just issue warnings
4026 # or remarks (even with -Werror). So we grep stderr for any message
4027 # that says an option was ignored or not supported.
4028 # When given -MP, icc 7.0 and 7.1 complain thusly:
4029 # icc: Command line warning: ignoring option '-M'; no argument required
4030 # The diagnosis changed in icc 8.0:
4031 # icc: Command line remark: option '-MP' not supported
4032 if (grep 'ignoring option' conftest.err ||
4033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4034 am_cv_CC_dependencies_compiler_type=$depmode
4035 break
4036 fi
4037 fi
4038 done
4039
4040 cd ..
4041 rm -rf conftest.dir
4042else
4043 am_cv_CC_dependencies_compiler_type=none
4044fi
4045
4046fi
jimblandy92b1f832009-12-23 22:23:49 +00004047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4048$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4050
mmentovaiaf3c43f2007-05-17 18:34:37 +00004051 if
brynercb91a2f2006-08-25 21:14:45 +00004052 test "x$enable_dependency_tracking" != xno \
4053 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4054 am__fastdepCC_TRUE=
4055 am__fastdepCC_FALSE='#'
4056else
4057 am__fastdepCC_TRUE='#'
4058 am__fastdepCC_FALSE=
4059fi
4060
4061
4062ac_ext=c
4063ac_cpp='$CPP $CPPFLAGS'
4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066ac_compiler_gnu=$ac_cv_c_compiler_gnu
jimblandy92b1f832009-12-23 22:23:49 +00004067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4068$as_echo_n "checking how to run the C preprocessor... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004069# On Suns, sometimes $CPP names a directory.
4070if test -n "$CPP" && test -d "$CPP"; then
4071 CPP=
4072fi
4073if test -z "$CPP"; then
jimblandy92b1f832009-12-23 22:23:49 +00004074 if test "${ac_cv_prog_CPP+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004076else
4077 # Double quotes because CPP needs to be expanded
4078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4079 do
4080 ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004090/* end confdefs.h. */
4091#ifdef __STDC__
4092# include <limits.h>
4093#else
4094# include <assert.h>
4095#endif
4096 Syntax error
4097_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004098if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004099
jimblandy92b1f832009-12-23 22:23:49 +00004100else
brynercb91a2f2006-08-25 21:14:45 +00004101 # Broken: fails on valid input.
4102continue
4103fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004104rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004105
mmentovai8c2a4de2006-09-20 16:20:15 +00004106 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004107 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004109/* end confdefs.h. */
4110#include <ac_nonexistent.h>
4111_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004112if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004113 # Broken: success on invalid input.
4114continue
4115else
brynercb91a2f2006-08-25 21:14:45 +00004116 # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004120rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004124rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004125if $ac_preproc_ok; then :
brynercb91a2f2006-08-25 21:14:45 +00004126 break
4127fi
4128
4129 done
4130 ac_cv_prog_CPP=$CPP
4131
4132fi
4133 CPP=$ac_cv_prog_CPP
4134else
4135 ac_cv_prog_CPP=$CPP
4136fi
jimblandy92b1f832009-12-23 22:23:49 +00004137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4138$as_echo "$CPP" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004139ac_preproc_ok=false
4140for ac_c_preproc_warn_flag in '' yes
4141do
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
jimblandy92b1f832009-12-23 22:23:49 +00004148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004149/* end confdefs.h. */
4150#ifdef __STDC__
4151# include <limits.h>
4152#else
4153# include <assert.h>
4154#endif
4155 Syntax error
4156_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004157if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004158
jimblandy92b1f832009-12-23 22:23:49 +00004159else
brynercb91a2f2006-08-25 21:14:45 +00004160 # Broken: fails on valid input.
4161continue
4162fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004163rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004164
mmentovai8c2a4de2006-09-20 16:20:15 +00004165 # OK, works on sane cases. Now check whether nonexistent headers
brynercb91a2f2006-08-25 21:14:45 +00004166 # can be detected and how.
jimblandy92b1f832009-12-23 22:23:49 +00004167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004168/* end confdefs.h. */
4169#include <ac_nonexistent.h>
4170_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004171if ac_fn_c_try_cpp "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004172 # Broken: success on invalid input.
4173continue
4174else
brynercb91a2f2006-08-25 21:14:45 +00004175 # Passes both tests.
4176ac_preproc_ok=:
4177break
4178fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004179rm -f conftest.err conftest.i conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004180
4181done
4182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004183rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00004184if $ac_preproc_ok; then :
4185
brynercb91a2f2006-08-25 21:14:45 +00004186else
jimblandy92b1f832009-12-23 22:23:49 +00004187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004189as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4190See \`config.log' for more details" "$LINENO" 5; }
brynercb91a2f2006-08-25 21:14:45 +00004191fi
4192
4193ac_ext=c
4194ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198
mmentovai8c2a4de2006-09-20 16:20:15 +00004199ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +00004200ac_cpp='$CXXCPP $CPPFLAGS'
4201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
mmentovai8c2a4de2006-09-20 16:20:15 +00004204if test -z "$CXX"; then
4205 if test -n "$CCC"; then
4206 CXX=$CCC
4207 else
4208 if test -n "$ac_tool_prefix"; then
4209 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 +00004210 do
4211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
4215if test "${ac_cv_prog_CXX+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004217else
4218 if test -n "$CXX"; then
4219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004226 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004227 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 +00004228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004230 break 2
4231 fi
4232done
jimblandy92b1f832009-12-23 22:23:49 +00004233 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004234IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004235
4236fi
4237fi
4238CXX=$ac_cv_prog_CXX
4239if test -n "$CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4241$as_echo "$CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004242else
jimblandy92b1f832009-12-23 22:23:49 +00004243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004245fi
4246
mmentovai8c2a4de2006-09-20 16:20:15 +00004247
brynercb91a2f2006-08-25 21:14:45 +00004248 test -n "$CXX" && break
4249 done
4250fi
4251if test -z "$CXX"; then
4252 ac_ct_CXX=$CXX
mmentovai8c2a4de2006-09-20 16:20:15 +00004253 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 +00004254do
4255 # Extract the first word of "$ac_prog", so it can be a program name with args.
4256set dummy $ac_prog; ac_word=$2
jimblandy92b1f832009-12-23 22:23:49 +00004257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258$as_echo_n "checking for $ac_word... " >&6; }
4259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4260 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004261else
4262 if test -n "$ac_ct_CXX"; then
4263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4264else
4265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH
4267do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004270 for ac_exec_ext in '' $ac_executable_extensions; do
mmentovaiaf3c43f2007-05-17 18:34:37 +00004271 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 +00004272 ac_cv_prog_ac_ct_CXX="$ac_prog"
jimblandy92b1f832009-12-23 22:23:49 +00004273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
brynercb91a2f2006-08-25 21:14:45 +00004274 break 2
4275 fi
4276done
jimblandy92b1f832009-12-23 22:23:49 +00004277 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004278IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00004279
4280fi
4281fi
4282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4283if test -n "$ac_ct_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +00004284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4285$as_echo "$ac_ct_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004286else
jimblandy92b1f832009-12-23 22:23:49 +00004287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004289fi
4290
mmentovai8c2a4de2006-09-20 16:20:15 +00004291
brynercb91a2f2006-08-25 21:14:45 +00004292 test -n "$ac_ct_CXX" && break
4293done
brynercb91a2f2006-08-25 21:14:45 +00004294
mmentovai8c2a4de2006-09-20 16:20:15 +00004295 if test "x$ac_ct_CXX" = x; then
4296 CXX="g++"
4297 else
4298 case $cross_compiling:$ac_tool_warned in
4299yes:)
jimblandy92b1f832009-12-23 22:23:49 +00004300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +00004302ac_tool_warned=yes ;;
4303esac
4304 CXX=$ac_ct_CXX
4305 fi
brynercb91a2f2006-08-25 21:14:45 +00004306fi
4307
mmentovai8c2a4de2006-09-20 16:20:15 +00004308 fi
4309fi
brynercb91a2f2006-08-25 21:14:45 +00004310# Provide some information about the compiler.
jimblandy92b1f832009-12-23 22:23:49 +00004311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4312set X $ac_compile
4313ac_compiler=$2
4314for ac_option in --version -v -V -qversion; do
4315 { { ac_try="$ac_compiler $ac_option >&5"
mmentovai8c2a4de2006-09-20 16:20:15 +00004316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
jimblandy92b1f832009-12-23 22:23:49 +00004320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321$as_echo "$ac_try_echo"; } >&5
4322 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
brynercb91a2f2006-08-25 21:14:45 +00004323 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00004324 if test -s conftest.err; then
4325 sed '10a\
4326... rest of stderr output deleted ...
4327 10q' conftest.err >conftest.er1
4328 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00004329 fi
jimblandydc4029a2010-02-02 17:39:51 +00004330 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00004331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332 test $ac_status = 0; }
4333done
brynercb91a2f2006-08-25 21:14:45 +00004334
jimblandy92b1f832009-12-23 22:23:49 +00004335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4336$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4337if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004339else
jimblandy92b1f832009-12-23 22:23:49 +00004340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004341/* end confdefs.h. */
4342
4343int
4344main ()
4345{
4346#ifndef __GNUC__
4347 choke me
4348#endif
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004354if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004355 ac_compiler_gnu=yes
4356else
jimblandy92b1f832009-12-23 22:23:49 +00004357 ac_compiler_gnu=no
brynercb91a2f2006-08-25 21:14:45 +00004358fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004360ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4361
4362fi
jimblandy92b1f832009-12-23 22:23:49 +00004363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4364$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4365if test $ac_compiler_gnu = yes; then
4366 GXX=yes
4367else
4368 GXX=
4369fi
brynercb91a2f2006-08-25 21:14:45 +00004370ac_test_CXXFLAGS=${CXXFLAGS+set}
4371ac_save_CXXFLAGS=$CXXFLAGS
jimblandy92b1f832009-12-23 22:23:49 +00004372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4373$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4374if test "${ac_cv_prog_cxx_g+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004376else
mmentovai8c2a4de2006-09-20 16:20:15 +00004377 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4378 ac_cxx_werror_flag=yes
4379 ac_cv_prog_cxx_g=no
4380 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004382/* end confdefs.h. */
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004392if ac_fn_cxx_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00004393 ac_cv_prog_cxx_g=yes
4394else
jimblandy92b1f832009-12-23 22:23:49 +00004395 CXXFLAGS=""
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004397/* end confdefs.h. */
4398
4399int
4400main ()
4401{
4402
4403 ;
4404 return 0;
4405}
4406_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004407if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004408
jimblandy92b1f832009-12-23 22:23:49 +00004409else
4410 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
mmentovai8c2a4de2006-09-20 16:20:15 +00004411 CXXFLAGS="-g"
jimblandy92b1f832009-12-23 22:23:49 +00004412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00004413/* end confdefs.h. */
4414
4415int
4416main ()
4417{
4418
4419 ;
4420 return 0;
4421}
4422_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00004423if ac_fn_cxx_try_compile "$LINENO"; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004424 ac_cv_prog_cxx_g=yes
brynercb91a2f2006-08-25 21:14:45 +00004425fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00004427fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4432fi
jimblandy92b1f832009-12-23 22:23:49 +00004433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4434$as_echo "$ac_cv_prog_cxx_g" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004435if test "$ac_test_CXXFLAGS" = set; then
4436 CXXFLAGS=$ac_save_CXXFLAGS
4437elif test $ac_cv_prog_cxx_g = yes; then
4438 if test "$GXX" = yes; then
4439 CXXFLAGS="-g -O2"
4440 else
4441 CXXFLAGS="-g"
4442 fi
4443else
4444 if test "$GXX" = yes; then
4445 CXXFLAGS="-O2"
4446 else
4447 CXXFLAGS=
4448 fi
4449fi
brynercb91a2f2006-08-25 21:14:45 +00004450ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456depcc="$CXX" am_compiler_list=
4457
jimblandy92b1f832009-12-23 22:23:49 +00004458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4459$as_echo_n "checking dependency style of $depcc... " >&6; }
4460if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004462else
4463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4464 # We make a subdir and do the tests there. Otherwise we can end up
4465 # making bogus files that we don't know about and never remove. For
4466 # instance it was reported that on HP-UX the gcc test will end up
4467 # making a dummy file named `D' -- because `-MD' means `put the output
4468 # in D'.
4469 mkdir conftest.dir
4470 # Copy depcomp to subdir because otherwise we won't find it if we're
4471 # using a relative directory.
4472 cp "$am_depcomp" conftest.dir
4473 cd conftest.dir
4474 # We will build objects and dependencies in a subdirectory because
4475 # it helps to detect inapplicable dependency modes. For instance
4476 # both Tru64's cc and ICC support -MD to output dependencies as a
4477 # side effect of compilation, but ICC will put the dependencies in
4478 # the current directory while Tru64 will put them in the object
4479 # directory.
4480 mkdir sub
4481
4482 am_cv_CXX_dependencies_compiler_type=none
4483 if test "$am_compiler_list" = ""; then
4484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4485 fi
jimblandy92b1f832009-12-23 22:23:49 +00004486 am__universal=false
4487 case " $depcc " in #(
4488 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 esac
4490
brynercb91a2f2006-08-25 21:14:45 +00004491 for depmode in $am_compiler_list; do
4492 # Setup a source with many dependencies, because some compilers
4493 # like to wrap large dependency lists on column 80 (with \), and
4494 # we should not choose a depcomp mode which is confused by this.
4495 #
4496 # We need to recreate these files for each test, as the compiler may
4497 # overwrite some of them when testing with obscure command lines.
4498 # This happens at least with the AIX C compiler.
4499 : > sub/conftest.c
4500 for i in 1 2 3 4 5 6; do
4501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4503 # Solaris 8's {/usr,}/bin/sh.
4504 touch sub/conftst$i.h
4505 done
4506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4507
jimblandy92b1f832009-12-23 22:23:49 +00004508 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4509 # mode. It turns out that the SunPro C++ compiler does not properly
4510 # handle `-M -o', and we need to detect this. Also, some Intel
4511 # versions had trouble with output in subdirs
4512 am__obj=sub/conftest.${OBJEXT-o}
4513 am__minus_obj="-o $am__obj"
brynercb91a2f2006-08-25 21:14:45 +00004514 case $depmode in
jimblandy92b1f832009-12-23 22:23:49 +00004515 gcc)
4516 # This depmode causes a compiler race in universal mode.
4517 test "$am__universal" = false || continue
4518 ;;
brynercb91a2f2006-08-25 21:14:45 +00004519 nosideeffect)
4520 # after this tag, mechanisms are not by side-effect, so they'll
4521 # only be used when explicitly requested
4522 if test "x$enable_dependency_tracking" = xyes; then
4523 continue
4524 else
4525 break
4526 fi
4527 ;;
jimblandy92b1f832009-12-23 22:23:49 +00004528 msvisualcpp | msvcmsys)
4529 # This compiler won't grok `-c -o', but also, the minuso test has
4530 # not run yet. These depmodes are late enough in the game, and
4531 # so weak that their functioning should not be impacted.
4532 am__obj=conftest.${OBJEXT-o}
4533 am__minus_obj=
4534 ;;
brynercb91a2f2006-08-25 21:14:45 +00004535 none) break ;;
4536 esac
brynercb91a2f2006-08-25 21:14:45 +00004537 if depmode=$depmode \
jimblandy92b1f832009-12-23 22:23:49 +00004538 source=sub/conftest.c object=$am__obj \
brynercb91a2f2006-08-25 21:14:45 +00004539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
jimblandy92b1f832009-12-23 22:23:49 +00004540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
brynercb91a2f2006-08-25 21:14:45 +00004541 >/dev/null 2>conftest.err &&
mmentovaiaf3c43f2007-05-17 18:34:37 +00004542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
jimblandy92b1f832009-12-23 22:23:49 +00004544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
brynercb91a2f2006-08-25 21:14:45 +00004545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4546 # icc doesn't choke on unknown options, it will just issue warnings
4547 # or remarks (even with -Werror). So we grep stderr for any message
4548 # that says an option was ignored or not supported.
4549 # When given -MP, icc 7.0 and 7.1 complain thusly:
4550 # icc: Command line warning: ignoring option '-M'; no argument required
4551 # The diagnosis changed in icc 8.0:
4552 # icc: Command line remark: option '-MP' not supported
4553 if (grep 'ignoring option' conftest.err ||
4554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4555 am_cv_CXX_dependencies_compiler_type=$depmode
4556 break
4557 fi
4558 fi
4559 done
4560
4561 cd ..
4562 rm -rf conftest.dir
4563else
4564 am_cv_CXX_dependencies_compiler_type=none
4565fi
4566
4567fi
jimblandy92b1f832009-12-23 22:23:49 +00004568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4569$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004570CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4571
mmentovaiaf3c43f2007-05-17 18:34:37 +00004572 if
brynercb91a2f2006-08-25 21:14:45 +00004573 test "x$enable_dependency_tracking" != xno \
4574 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4575 am__fastdepCXX_TRUE=
4576 am__fastdepCXX_FALSE='#'
4577else
4578 am__fastdepCXX_TRUE='#'
4579 am__fastdepCXX_FALSE=
4580fi
4581
4582
4583
jimblandy92b1f832009-12-23 22:23:49 +00004584case `pwd` in
4585 *\ * | *\ *)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4587$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4588esac
brynercb91a2f2006-08-25 21:14:45 +00004589
mmentovai8c2a4de2006-09-20 16:20:15 +00004590
jimblandy92b1f832009-12-23 22:23:49 +00004591
jimblandydc4029a2010-02-02 17:39:51 +00004592macro_version='2.2.6b'
4593macro_revision='1.3017'
brynercb91a2f2006-08-25 21:14:45 +00004594
mmentovai8c2a4de2006-09-20 16:20:15 +00004595
mmentovai8c2a4de2006-09-20 16:20:15 +00004596
brynercb91a2f2006-08-25 21:14:45 +00004597
jimblandy92b1f832009-12-23 22:23:49 +00004598
4599
4600
4601
4602
4603
4604
4605
4606
4607ltmain="$ac_aux_dir/ltmain.sh"
4608
jimblandy92b1f832009-12-23 22:23:49 +00004609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4610$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4611if test "${ac_cv_path_SED+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004613else
jimblandy92b1f832009-12-23 22:23:49 +00004614 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4615 for ac_i in 1 2 3 4 5 6 7; do
4616 ac_script="$ac_script$as_nl$ac_script"
4617 done
4618 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4619 { ac_script=; unset ac_script;}
4620 if test -z "$SED"; then
4621 ac_path_SED_found=false
4622 # Loop through the user's path and test for each of PROGNAME-LIST
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +00004624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004628 for ac_prog in sed gsed; do
brynercb91a2f2006-08-25 21:14:45 +00004629 for ac_exec_ext in '' $ac_executable_extensions; do
jimblandy92b1f832009-12-23 22:23:49 +00004630 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4631 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4632# Check for GNU ac_path_SED and select it if it is found.
4633 # Check for GNU $ac_path_SED
4634case `"$ac_path_SED" --version 2>&1` in
4635*GNU*)
4636 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4637*)
4638 ac_count=0
4639 $as_echo_n 0123456789 >"conftest.in"
4640 while :
4641 do
4642 cat "conftest.in" "conftest.in" >"conftest.tmp"
4643 mv "conftest.tmp" "conftest.in"
4644 cp "conftest.in" "conftest.nl"
4645 $as_echo '' >> "conftest.nl"
4646 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648 as_fn_arith $ac_count + 1 && ac_count=$as_val
4649 if test $ac_count -gt ${ac_path_SED_max-0}; then
4650 # Best one so far, save it but keep looking for a better one
4651 ac_cv_path_SED="$ac_path_SED"
4652 ac_path_SED_max=$ac_count
4653 fi
4654 # 10*(2^10) chars as input seems more than enough
4655 test $ac_count -gt 10 && break
4656 done
4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658esac
4659
4660 $ac_path_SED_found && break 3
brynercb91a2f2006-08-25 21:14:45 +00004661 done
4662 done
brynercb91a2f2006-08-25 21:14:45 +00004663 done
jimblandy92b1f832009-12-23 22:23:49 +00004664IFS=$as_save_IFS
4665 if test -z "$ac_cv_path_SED"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004666 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004667 fi
4668else
4669 ac_cv_path_SED=$SED
brynercb91a2f2006-08-25 21:14:45 +00004670fi
4671
jimblandy92b1f832009-12-23 22:23:49 +00004672fi
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4674$as_echo "$ac_cv_path_SED" >&6; }
4675 SED="$ac_cv_path_SED"
4676 rm -f conftest.sed
ted.mielczarek1adb1842009-12-21 13:12:20 +00004677
jimblandy92b1f832009-12-23 22:23:49 +00004678test -z "$SED" && SED=sed
4679Xsed="$SED -e 1s/^X//"
brynercb91a2f2006-08-25 21:14:45 +00004680
jimblandy92b1f832009-12-23 22:23:49 +00004681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4692$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4693if test "${ac_cv_path_GREP+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004695else
jimblandy92b1f832009-12-23 22:23:49 +00004696 if test -z "$GREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004697 ac_path_GREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004698 # Loop through the user's path and test for each of PROGNAME-LIST
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004704 for ac_prog in grep ggrep; do
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4707 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4708# Check for GNU ac_path_GREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004709 # Check for GNU $ac_path_GREP
4710case `"$ac_path_GREP" --version 2>&1` in
4711*GNU*)
4712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4713*)
4714 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004715 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004716 while :
4717 do
4718 cat "conftest.in" "conftest.in" >"conftest.tmp"
4719 mv "conftest.tmp" "conftest.in"
4720 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004721 $as_echo 'GREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004724 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4726 # Best one so far, save it but keep looking for a better one
4727 ac_cv_path_GREP="$ac_path_GREP"
4728 ac_path_GREP_max=$ac_count
brynercb91a2f2006-08-25 21:14:45 +00004729 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004730 # 10*(2^10) chars as input seems more than enough
4731 test $ac_count -gt 10 && break
4732 done
4733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4734esac
4735
jimblandy92b1f832009-12-23 22:23:49 +00004736 $ac_path_GREP_found && break 3
4737 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004738 done
jimblandy92b1f832009-12-23 22:23:49 +00004739 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004740IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004741 if test -z "$ac_cv_path_GREP"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004742 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004743 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004744else
4745 ac_cv_path_GREP=$GREP
4746fi
4747
mmentovai8c2a4de2006-09-20 16:20:15 +00004748fi
jimblandy92b1f832009-12-23 22:23:49 +00004749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4750$as_echo "$ac_cv_path_GREP" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00004751 GREP="$ac_cv_path_GREP"
4752
4753
jimblandy92b1f832009-12-23 22:23:49 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4755$as_echo_n "checking for egrep... " >&6; }
4756if test "${ac_cv_path_EGREP+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00004758else
4759 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4760 then ac_cv_path_EGREP="$GREP -E"
4761 else
jimblandy92b1f832009-12-23 22:23:49 +00004762 if test -z "$EGREP"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00004763 ac_path_EGREP_found=false
jimblandy92b1f832009-12-23 22:23:49 +00004764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
mmentovai8c2a4de2006-09-20 16:20:15 +00004766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +00004770 for ac_prog in egrep; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4774# Check for GNU ac_path_EGREP and select it if it is found.
mmentovai8c2a4de2006-09-20 16:20:15 +00004775 # Check for GNU $ac_path_EGREP
4776case `"$ac_path_EGREP" --version 2>&1` in
4777*GNU*)
4778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4779*)
4780 ac_count=0
jimblandy92b1f832009-12-23 22:23:49 +00004781 $as_echo_n 0123456789 >"conftest.in"
mmentovai8c2a4de2006-09-20 16:20:15 +00004782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
jimblandy92b1f832009-12-23 22:23:49 +00004787 $as_echo 'EGREP' >> "conftest.nl"
mmentovai8c2a4de2006-09-20 16:20:15 +00004788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
jimblandy92b1f832009-12-23 22:23:49 +00004790 as_fn_arith $ac_count + 1 && ac_count=$as_val
mmentovai8c2a4de2006-09-20 16:20:15 +00004791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_EGREP="$ac_path_EGREP"
4794 ac_path_EGREP_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
jimblandy92b1f832009-12-23 22:23:49 +00004802 $ac_path_EGREP_found && break 3
4803 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004804 done
jimblandy92b1f832009-12-23 22:23:49 +00004805 done
mmentovai8c2a4de2006-09-20 16:20:15 +00004806IFS=$as_save_IFS
jimblandy92b1f832009-12-23 22:23:49 +00004807 if test -z "$ac_cv_path_EGREP"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004809 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004810else
4811 ac_cv_path_EGREP=$EGREP
4812fi
4813
jimblandy92b1f832009-12-23 22:23:49 +00004814 fi
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4817$as_echo "$ac_cv_path_EGREP" >&6; }
4818 EGREP="$ac_cv_path_EGREP"
4819
4820
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4822$as_echo_n "checking for fgrep... " >&6; }
4823if test "${ac_cv_path_FGREP+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825else
4826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4827 then ac_cv_path_FGREP="$GREP -F"
4828 else
4829 if test -z "$FGREP"; then
4830 ac_path_FGREP_found=false
4831 # Loop through the user's path and test for each of PROGNAME-LIST
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_prog in fgrep; do
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4840 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4841# Check for GNU ac_path_FGREP and select it if it is found.
4842 # Check for GNU $ac_path_FGREP
4843case `"$ac_path_FGREP" --version 2>&1` in
4844*GNU*)
4845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4846*)
4847 ac_count=0
4848 $as_echo_n 0123456789 >"conftest.in"
4849 while :
4850 do
4851 cat "conftest.in" "conftest.in" >"conftest.tmp"
4852 mv "conftest.tmp" "conftest.in"
4853 cp "conftest.in" "conftest.nl"
4854 $as_echo 'FGREP' >> "conftest.nl"
4855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4857 as_fn_arith $ac_count + 1 && ac_count=$as_val
4858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4859 # Best one so far, save it but keep looking for a better one
4860 ac_cv_path_FGREP="$ac_path_FGREP"
4861 ac_path_FGREP_max=$ac_count
4862 fi
4863 # 10*(2^10) chars as input seems more than enough
4864 test $ac_count -gt 10 && break
4865 done
4866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867esac
4868
4869 $ac_path_FGREP_found && break 3
4870 done
4871 done
4872 done
4873IFS=$as_save_IFS
4874 if test -z "$ac_cv_path_FGREP"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004875 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004876 fi
4877else
4878 ac_cv_path_FGREP=$FGREP
4879fi
mmentovai8c2a4de2006-09-20 16:20:15 +00004880
4881 fi
4882fi
jimblandy92b1f832009-12-23 22:23:49 +00004883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4884$as_echo "$ac_cv_path_FGREP" >&6; }
4885 FGREP="$ac_cv_path_FGREP"
4886
4887
4888test -z "$GREP" && GREP=grep
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
brynercb91a2f2006-08-25 21:14:45 +00004905
4906
4907
mmentovai8c2a4de2006-09-20 16:20:15 +00004908# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +00004909if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +00004910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +00004911else
4912 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +00004913fi
4914
brynercb91a2f2006-08-25 21:14:45 +00004915ac_prog=ld
4916if test "$GCC" = yes; then
4917 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +00004918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4919$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004920 case $host in
4921 *-*-mingw*)
4922 # gcc leaves a trailing carriage return which upsets mingw
4923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4924 *)
4925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4926 esac
4927 case $ac_prog in
4928 # Accept absolute paths.
4929 [\\/]* | ?:[\\/]*)
4930 re_direlt='/[^/][^/]*/\.\./'
4931 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +00004932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +00004935 done
4936 test -z "$LD" && LD="$ac_prog"
4937 ;;
4938 "")
4939 # If it fails, then pretend we aren't using GCC.
4940 ac_prog=ld
4941 ;;
4942 *)
4943 # If it is relative, then search for the first ld in PATH.
4944 with_gnu_ld=unknown
4945 ;;
4946 esac
4947elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00004948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4949$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004950else
jimblandy92b1f832009-12-23 22:23:49 +00004951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4952$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004953fi
jimblandy92b1f832009-12-23 22:23:49 +00004954if test "${lt_cv_path_LD+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004956else
4957 if test -z "$LD"; then
4958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4959 for ac_dir in $PATH; do
4960 IFS="$lt_save_ifs"
4961 test -z "$ac_dir" && ac_dir=.
4962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4963 lt_cv_path_LD="$ac_dir/$ac_prog"
4964 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +00004965 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004966 # Break only if it was the GNU/non-GNU ld that we prefer.
4967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4968 *GNU* | *'with BFD'*)
4969 test "$with_gnu_ld" != no && break
4970 ;;
4971 *)
4972 test "$with_gnu_ld" != yes && break
4973 ;;
4974 esac
4975 fi
4976 done
4977 IFS="$lt_save_ifs"
4978else
4979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4980fi
4981fi
4982
4983LD="$lt_cv_path_LD"
4984if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +00004985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4986$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004987else
jimblandy92b1f832009-12-23 22:23:49 +00004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00004990fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00004991test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +00004992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4993$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4994if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00004996else
mmentovai8c2a4de2006-09-20 16:20:15 +00004997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +00004998case `$LD -v 2>&1 </dev/null` in
4999*GNU* | *'with BFD'*)
5000 lt_cv_prog_gnu_ld=yes
5001 ;;
5002*)
5003 lt_cv_prog_gnu_ld=no
5004 ;;
5005esac
5006fi
jimblandy92b1f832009-12-23 22:23:49 +00005007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5008$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005009with_gnu_ld=$lt_cv_prog_gnu_ld
5010
5011
brynercb91a2f2006-08-25 21:14:45 +00005012
jimblandy92b1f832009-12-23 22:23:49 +00005013
5014
5015
5016
5017
5018
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5020$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5021if test "${lt_cv_path_NM+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005023else
5024 if test -n "$NM"; then
5025 # Let the user override the test.
5026 lt_cv_path_NM="$NM"
5027else
mmentovai8c2a4de2006-09-20 16:20:15 +00005028 lt_nm_to_check="${ac_tool_prefix}nm"
5029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5030 lt_nm_to_check="$lt_nm_to_check nm"
5031 fi
5032 for lt_tmp_nm in $lt_nm_to_check; do
5033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5035 IFS="$lt_save_ifs"
5036 test -z "$ac_dir" && ac_dir=.
5037 tmp_nm="$ac_dir/$lt_tmp_nm"
5038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5039 # Check to see if the nm accepts a BSD-compat flag.
5040 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5041 # nm: unknown option "B" ignored
5042 # Tru64's nm complains that /dev/null is an invalid object file
5043 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5044 */dev/null* | *'Invalid file or object type'*)
5045 lt_cv_path_NM="$tmp_nm -B"
brynercb91a2f2006-08-25 21:14:45 +00005046 break
5047 ;;
5048 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00005049 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5050 */dev/null*)
5051 lt_cv_path_NM="$tmp_nm -p"
5052 break
5053 ;;
5054 *)
5055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5056 continue # so that we can try to find one that supports BSD flags
5057 ;;
5058 esac
brynercb91a2f2006-08-25 21:14:45 +00005059 ;;
5060 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00005061 fi
5062 done
5063 IFS="$lt_save_ifs"
brynercb91a2f2006-08-25 21:14:45 +00005064 done
jimblandy92b1f832009-12-23 22:23:49 +00005065 : ${lt_cv_path_NM=no}
brynercb91a2f2006-08-25 21:14:45 +00005066fi
5067fi
jimblandy92b1f832009-12-23 22:23:49 +00005068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5069$as_echo "$lt_cv_path_NM" >&6; }
5070if test "$lt_cv_path_NM" != "no"; then
5071 NM="$lt_cv_path_NM"
5072else
5073 # Didn't find any BSD compatible name lister, look for dumpbin.
5074 if test -n "$ac_tool_prefix"; then
5075 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5076 do
5077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5078set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080$as_echo_n "checking for $ac_word... " >&6; }
5081if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5082 $as_echo_n "(cached) " >&6
5083else
5084 if test -n "$DUMPBIN"; then
5085 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5086else
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098done
5099 done
5100IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +00005101
jimblandy92b1f832009-12-23 22:23:49 +00005102fi
5103fi
5104DUMPBIN=$ac_cv_prog_DUMPBIN
5105if test -n "$DUMPBIN"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5107$as_echo "$DUMPBIN" >&6; }
5108else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
5114 test -n "$DUMPBIN" && break
5115 done
5116fi
5117if test -z "$DUMPBIN"; then
5118 ac_ct_DUMPBIN=$DUMPBIN
5119 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5120do
5121 # Extract the first word of "$ac_prog", so it can be a program name with args.
5122set dummy $ac_prog; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127else
5128 if test -n "$ac_ct_DUMPBIN"; then
5129 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142done
5143 done
5144IFS=$as_save_IFS
5145
5146fi
5147fi
5148ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5149if test -n "$ac_ct_DUMPBIN"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5151$as_echo "$ac_ct_DUMPBIN" >&6; }
5152else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154$as_echo "no" >&6; }
5155fi
5156
5157
5158 test -n "$ac_ct_DUMPBIN" && break
5159done
5160
5161 if test "x$ac_ct_DUMPBIN" = x; then
5162 DUMPBIN=":"
5163 else
5164 case $cross_compiling:$ac_tool_warned in
5165yes:)
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168ac_tool_warned=yes ;;
5169esac
5170 DUMPBIN=$ac_ct_DUMPBIN
5171 fi
5172fi
5173
5174
5175 if test "$DUMPBIN" != ":"; then
5176 NM="$DUMPBIN"
5177 fi
5178fi
5179test -z "$NM" && NM=nm
5180
5181
5182
5183
5184
5185
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5187$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5188if test "${lt_cv_nm_interface+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190else
5191 lt_cv_nm_interface="BSD nm"
5192 echo "int some_variable = 0;" > conftest.$ac_ext
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00005193 (eval echo "\"\$as_me:5193: $ac_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005194 (eval "$ac_compile" 2>conftest.err)
5195 cat conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00005196 (eval echo "\"\$as_me:5196: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005197 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5198 cat conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00005199 (eval echo "\"\$as_me:5199: output\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00005200 cat conftest.out >&5
5201 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5202 lt_cv_nm_interface="MS dumpbin"
5203 fi
5204 rm -f conftest*
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5207$as_echo "$lt_cv_nm_interface" >&6; }
5208
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5210$as_echo_n "checking whether ln -s works... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005211LN_S=$as_ln_s
5212if test "$LN_S" = "ln -s"; then
jimblandy92b1f832009-12-23 22:23:49 +00005213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5214$as_echo "yes" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005215else
jimblandy92b1f832009-12-23 22:23:49 +00005216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5217$as_echo "no, using $LN_S" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005218fi
5219
jimblandy92b1f832009-12-23 22:23:49 +00005220# find the maximum length of command line arguments
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5222$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5223if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225else
5226 i=0
5227 teststring="ABCD"
5228
5229 case $build_os in
5230 msdosdjgpp*)
5231 # On DJGPP, this test can blow up pretty badly due to problems in libc
5232 # (any single argument exceeding 2000 bytes causes a buffer overrun
5233 # during glob expansion). Even if it were fixed, the result of this
5234 # check would be larger than it should be.
5235 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5236 ;;
5237
5238 gnu*)
5239 # Under GNU Hurd, this test is not required because there is
5240 # no limit to the length of command line arguments.
5241 # Libtool will interpret -1 as no limit whatsoever
5242 lt_cv_sys_max_cmd_len=-1;
5243 ;;
5244
5245 cygwin* | mingw* | cegcc*)
5246 # On Win9x/ME, this test blows up -- it succeeds, but takes
5247 # about 5 minutes as the teststring grows exponentially.
5248 # Worse, since 9x/ME are not pre-emptively multitasking,
5249 # you end up with a "frozen" computer, even though with patience
5250 # the test eventually succeeds (with a max line length of 256k).
5251 # Instead, let's just punt: use the minimum linelength reported by
5252 # all of the supported platforms: 8192 (on NT/2K/XP).
5253 lt_cv_sys_max_cmd_len=8192;
5254 ;;
5255
5256 amigaos*)
5257 # On AmigaOS with pdksh, this test takes hours, literally.
5258 # So we just punt and use a minimum line length of 8192.
5259 lt_cv_sys_max_cmd_len=8192;
5260 ;;
5261
5262 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5263 # This has been around since 386BSD, at least. Likely further.
5264 if test -x /sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5266 elif test -x /usr/sbin/sysctl; then
5267 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5268 else
5269 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5270 fi
5271 # And add a safety zone
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5274 ;;
5275
5276 interix*)
5277 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5278 lt_cv_sys_max_cmd_len=196608
5279 ;;
5280
5281 osf*)
5282 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5283 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5284 # nice to cause kernel panics so lets avoid the loop below.
5285 # First set a reasonable default.
5286 lt_cv_sys_max_cmd_len=16384
5287 #
5288 if test -x /sbin/sysconfig; then
5289 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5290 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5291 esac
5292 fi
5293 ;;
5294 sco3.2v5*)
5295 lt_cv_sys_max_cmd_len=102400
5296 ;;
5297 sysv5* | sco5v6* | sysv4.2uw2*)
5298 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5299 if test -n "$kargmax"; then
5300 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5301 else
5302 lt_cv_sys_max_cmd_len=32768
5303 fi
5304 ;;
5305 *)
5306 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5307 if test -n "$lt_cv_sys_max_cmd_len"; then
5308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5310 else
5311 # Make teststring a little bigger before we do anything with it.
5312 # a 1K string should be a reasonable start.
5313 for i in 1 2 3 4 5 6 7 8 ; do
5314 teststring=$teststring$teststring
5315 done
5316 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5317 # If test is not a shell built-in, we'll probably end up computing a
5318 # maximum length that is only half of the actual maximum length, but
5319 # we can't tell.
5320 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5321 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5322 test $i != 17 # 1/2 MB should be enough
5323 do
5324 i=`expr $i + 1`
5325 teststring=$teststring$teststring
5326 done
5327 # Only check the string length outside the loop.
5328 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5329 teststring=
5330 # Add a significant safety factor because C++ compilers can tack on
5331 # massive amounts of additional arguments before passing them to the
5332 # linker. It appears as though 1/2 is a usable value.
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5334 fi
5335 ;;
5336 esac
5337
5338fi
5339
5340if test -n $lt_cv_sys_max_cmd_len ; then
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5342$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5343else
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5345$as_echo "none" >&6; }
5346fi
5347max_cmd_len=$lt_cv_sys_max_cmd_len
5348
5349
5350
5351
5352
5353
5354: ${CP="cp -f"}
5355: ${MV="mv -f"}
5356: ${RM="rm -f"}
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5359$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5360# Try some XSI features
5361xsi_shell=no
5362( _lt_dummy="a/b/c"
5363 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5364 = c,a/b,, \
5365 && eval 'test $(( 1 + 1 )) -eq 2 \
5366 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5367 && xsi_shell=yes
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5369$as_echo "$xsi_shell" >&6; }
5370
5371
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5373$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5374lt_shell_append=no
5375( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5376 >/dev/null 2>&1 \
5377 && lt_shell_append=yes
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5379$as_echo "$lt_shell_append" >&6; }
5380
5381
5382if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5383 lt_unset=unset
5384else
5385 lt_unset=false
5386fi
5387
5388
5389
5390
5391
5392# test EBCDIC or ASCII
5393case `echo X|tr X '\101'` in
5394 A) # ASCII based system
5395 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5396 lt_SP2NL='tr \040 \012'
5397 lt_NL2SP='tr \015\012 \040\040'
5398 ;;
5399 *) # EBCDIC based system
5400 lt_SP2NL='tr \100 \n'
5401 lt_NL2SP='tr \r\n \100\100'
5402 ;;
5403esac
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5414$as_echo_n "checking for $LD option to reload object files... " >&6; }
5415if test "${lt_cv_ld_reload_flag+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417else
5418 lt_cv_ld_reload_flag='-r'
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5421$as_echo "$lt_cv_ld_reload_flag" >&6; }
5422reload_flag=$lt_cv_ld_reload_flag
5423case $reload_flag in
5424"" | " "*) ;;
5425*) reload_flag=" $reload_flag" ;;
5426esac
5427reload_cmds='$LD$reload_flag -o $output$reload_objs'
5428case $host_os in
5429 darwin*)
5430 if test "$GCC" = yes; then
5431 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5432 else
5433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5434 fi
5435 ;;
5436esac
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5448set dummy ${ac_tool_prefix}objdump; ac_word=$2
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453else
5454 if test -n "$OBJDUMP"; then
5455 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468done
5469 done
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474OBJDUMP=$ac_cv_prog_OBJDUMP
5475if test -n "$OBJDUMP"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5477$as_echo "$OBJDUMP" >&6; }
5478else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
5481fi
5482
5483
5484fi
5485if test -z "$ac_cv_prog_OBJDUMP"; then
5486 ac_ct_OBJDUMP=$OBJDUMP
5487 # Extract the first word of "objdump", so it can be a program name with args.
5488set dummy objdump; ac_word=$2
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490$as_echo_n "checking for $ac_word... " >&6; }
5491if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493else
5494 if test -n "$ac_ct_OBJDUMP"; then
5495 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509 done
5510IFS=$as_save_IFS
5511
5512fi
5513fi
5514ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5515if test -n "$ac_ct_OBJDUMP"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5517$as_echo "$ac_ct_OBJDUMP" >&6; }
5518else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520$as_echo "no" >&6; }
5521fi
5522
5523 if test "x$ac_ct_OBJDUMP" = x; then
5524 OBJDUMP="false"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530ac_tool_warned=yes ;;
5531esac
5532 OBJDUMP=$ac_ct_OBJDUMP
5533 fi
5534else
5535 OBJDUMP="$ac_cv_prog_OBJDUMP"
5536fi
5537
5538test -z "$OBJDUMP" && OBJDUMP=objdump
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5549$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5550if test "${lt_cv_deplibs_check_method+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00005552else
5553 lt_cv_file_magic_cmd='$MAGIC_CMD'
5554lt_cv_file_magic_test_file=
5555lt_cv_deplibs_check_method='unknown'
5556# Need to set the preceding variable on all platforms that support
5557# interlibrary dependencies.
5558# 'none' -- dependencies not supported.
5559# `unknown' -- same as none, but documents that we really don't know.
5560# 'pass_all' -- all dependencies passed with no checks.
5561# 'test_compile' -- check by making test program.
5562# 'file_magic [[regex]]' -- check by looking for files in library path
5563# which responds to the $file_magic_cmd with a given extended regex.
5564# If you have `file' or equivalent on your system and you're not sure
5565# whether `pass_all' will *always* work, you probably want this one.
5566
5567case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00005568aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00005569 lt_cv_deplibs_check_method=pass_all
5570 ;;
5571
5572beos*)
5573 lt_cv_deplibs_check_method=pass_all
5574 ;;
5575
mmentovai8c2a4de2006-09-20 16:20:15 +00005576bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00005577 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5578 lt_cv_file_magic_cmd='/usr/bin/file -L'
5579 lt_cv_file_magic_test_file=/shlib/libc.so
5580 ;;
5581
5582cygwin*)
5583 # func_win32_libid is a shell function defined in ltmain.sh
5584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5585 lt_cv_file_magic_cmd='func_win32_libid'
5586 ;;
5587
5588mingw* | pw32*)
5589 # Base MSYS/MinGW do not provide the 'file' command needed by
ted.mielczarek1adb1842009-12-21 13:12:20 +00005590 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5591 # unless we find 'file', for example because we are cross-compiling.
5592 if ( file / ) >/dev/null 2>&1; then
5593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5594 lt_cv_file_magic_cmd='func_win32_libid'
5595 else
5596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5597 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 fi
brynercb91a2f2006-08-25 21:14:45 +00005599 ;;
5600
jimblandy92b1f832009-12-23 22:23:49 +00005601cegcc)
5602 # use the weaker test based on 'objdump'. See mingw*.
5603 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5604 lt_cv_file_magic_cmd='$OBJDUMP -f'
5605 ;;
5606
brynercb91a2f2006-08-25 21:14:45 +00005607darwin* | rhapsody*)
5608 lt_cv_deplibs_check_method=pass_all
5609 ;;
5610
ted.mielczarek1adb1842009-12-21 13:12:20 +00005611freebsd* | dragonfly*)
jimblandy92b1f832009-12-23 22:23:49 +00005612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005613 case $host_cpu in
5614 i*86 )
5615 # Not sure whether the presence of OpenBSD here was a mistake.
5616 # Let's accept both of them until this is cleared up.
mmentovai8c2a4de2006-09-20 16:20:15 +00005617 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 +00005618 lt_cv_file_magic_cmd=/usr/bin/file
5619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5620 ;;
5621 esac
5622 else
5623 lt_cv_deplibs_check_method=pass_all
5624 fi
5625 ;;
5626
5627gnu*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631hpux10.20* | hpux11*)
5632 lt_cv_file_magic_cmd=/usr/bin/file
mmentovai8c2a4de2006-09-20 16:20:15 +00005633 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00005634 ia64*)
5635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5636 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5637 ;;
5638 hppa*64*)
5639 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]'
5640 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5641 ;;
5642 *)
5643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5644 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5645 ;;
5646 esac
5647 ;;
5648
ted.mielczarek1adb1842009-12-21 13:12:20 +00005649interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00005650 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5652 ;;
5653
brynercb91a2f2006-08-25 21:14:45 +00005654irix5* | irix6* | nonstopux*)
5655 case $LD in
5656 *-32|*"-32 ") libmagic=32-bit;;
5657 *-n32|*"-n32 ") libmagic=N32;;
5658 *-64|*"-64 ") libmagic=64-bit;;
5659 *) libmagic=never-match;;
5660 esac
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663
5664# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +00005665linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +00005666 lt_cv_deplibs_check_method=pass_all
5667 ;;
5668
ted.mielczarekb2236272010-04-08 23:06:23 +00005669netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00005670 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00005671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5672 else
5673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5674 fi
5675 ;;
5676
5677newos6*)
5678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5679 lt_cv_file_magic_cmd=/usr/bin/file
5680 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5681 ;;
5682
jimblandy92b1f832009-12-23 22:23:49 +00005683*nto* | *qnx*)
5684 lt_cv_deplibs_check_method=pass_all
brynercb91a2f2006-08-25 21:14:45 +00005685 ;;
5686
5687openbsd*)
jimblandy92b1f832009-12-23 22:23:49 +00005688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
mmentovai8c2a4de2006-09-20 16:20:15 +00005689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005690 else
mmentovai8c2a4de2006-09-20 16:20:15 +00005691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
brynercb91a2f2006-08-25 21:14:45 +00005692 fi
5693 ;;
5694
5695osf3* | osf4* | osf5*)
5696 lt_cv_deplibs_check_method=pass_all
5697 ;;
5698
ted.mielczarek1adb1842009-12-21 13:12:20 +00005699rdos*)
5700 lt_cv_deplibs_check_method=pass_all
5701 ;;
5702
brynercb91a2f2006-08-25 21:14:45 +00005703solaris*)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706
jimblandy92b1f832009-12-23 22:23:49 +00005707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5708 lt_cv_deplibs_check_method=pass_all
5709 ;;
5710
mmentovai8c2a4de2006-09-20 16:20:15 +00005711sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00005712 case $host_vendor in
5713 motorola)
5714 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]'
5715 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5716 ;;
5717 ncr)
5718 lt_cv_deplibs_check_method=pass_all
5719 ;;
5720 sequent)
5721 lt_cv_file_magic_cmd='/bin/file'
5722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5723 ;;
5724 sni)
5725 lt_cv_file_magic_cmd='/bin/file'
5726 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5727 lt_cv_file_magic_test_file=/lib/libc.so
5728 ;;
5729 siemens)
5730 lt_cv_deplibs_check_method=pass_all
5731 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00005732 pc)
5733 lt_cv_deplibs_check_method=pass_all
5734 ;;
brynercb91a2f2006-08-25 21:14:45 +00005735 esac
5736 ;;
5737
jimblandy92b1f832009-12-23 22:23:49 +00005738tpf*)
brynercb91a2f2006-08-25 21:14:45 +00005739 lt_cv_deplibs_check_method=pass_all
5740 ;;
5741esac
5742
5743fi
jimblandy92b1f832009-12-23 22:23:49 +00005744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5745$as_echo "$lt_cv_deplibs_check_method" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00005746file_magic_cmd=$lt_cv_file_magic_cmd
5747deplibs_check_method=$lt_cv_deplibs_check_method
5748test -z "$deplibs_check_method" && deplibs_check_method=unknown
5749
5750
5751
5752
jimblandy92b1f832009-12-23 22:23:49 +00005753
5754
5755
5756
5757
5758
5759
5760
5761if test -n "$ac_tool_prefix"; then
5762 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5763set dummy ${ac_tool_prefix}ar; ac_word=$2
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5765$as_echo_n "checking for $ac_word... " >&6; }
5766if test "${ac_cv_prog_AR+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
5768else
5769 if test -n "$AR"; then
5770 ac_cv_prog_AR="$AR" # Let the user override the test.
5771else
5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773for as_dir in $PATH
5774do
5775 IFS=$as_save_IFS
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5779 ac_cv_prog_AR="${ac_tool_prefix}ar"
5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784 done
5785IFS=$as_save_IFS
5786
5787fi
5788fi
5789AR=$ac_cv_prog_AR
5790if test -n "$AR"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5792$as_echo "$AR" >&6; }
5793else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795$as_echo "no" >&6; }
5796fi
5797
5798
5799fi
5800if test -z "$ac_cv_prog_AR"; then
5801 ac_ct_AR=$AR
5802 # Extract the first word of "ar", so it can be a program name with args.
5803set dummy ar; ac_word=$2
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805$as_echo_n "checking for $ac_word... " >&6; }
5806if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 if test -n "$ac_ct_AR"; then
5810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_ac_ct_AR="ar"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824 done
5825IFS=$as_save_IFS
5826
5827fi
5828fi
5829ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830if test -n "$ac_ct_AR"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5832$as_echo "$ac_ct_AR" >&6; }
5833else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838 if test "x$ac_ct_AR" = x; then
5839 AR="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842yes:)
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845ac_tool_warned=yes ;;
5846esac
5847 AR=$ac_ct_AR
5848 fi
5849else
5850 AR="$ac_cv_prog_AR"
5851fi
5852
5853test -z "$AR" && AR=ar
5854test -z "$AR_FLAGS" && AR_FLAGS=cru
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866if test -n "$ac_tool_prefix"; then
5867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5868set dummy ${ac_tool_prefix}strip; ac_word=$2
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870$as_echo_n "checking for $ac_word... " >&6; }
5871if test "${ac_cv_prog_STRIP+set}" = set; then :
5872 $as_echo_n "(cached) " >&6
5873else
5874 if test -n "$STRIP"; then
5875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5876else
5877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878for as_dir in $PATH
5879do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888done
5889 done
5890IFS=$as_save_IFS
5891
5892fi
5893fi
5894STRIP=$ac_cv_prog_STRIP
5895if test -n "$STRIP"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5897$as_echo "$STRIP" >&6; }
5898else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900$as_echo "no" >&6; }
5901fi
5902
5903
5904fi
5905if test -z "$ac_cv_prog_STRIP"; then
5906 ac_ct_STRIP=$STRIP
5907 # Extract the first word of "strip", so it can be a program name with args.
5908set dummy strip; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
5911if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$ac_ct_STRIP"; then
5915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_ac_ct_STRIP="strip"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5935if test -n "$ac_ct_STRIP"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5937$as_echo "$ac_ct_STRIP" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943 if test "x$ac_ct_STRIP" = x; then
5944 STRIP=":"
5945 else
5946 case $cross_compiling:$ac_tool_warned in
5947yes:)
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5950ac_tool_warned=yes ;;
5951esac
5952 STRIP=$ac_ct_STRIP
5953 fi
5954else
5955 STRIP="$ac_cv_prog_STRIP"
5956fi
5957
5958test -z "$STRIP" && STRIP=:
5959
5960
5961
5962
5963
5964
5965if test -n "$ac_tool_prefix"; then
5966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5967set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969$as_echo_n "checking for $ac_word... " >&6; }
5970if test "${ac_cv_prog_RANLIB+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 if test -n "$RANLIB"; then
5974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5975else
5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977for as_dir in $PATH
5978do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987done
5988 done
5989IFS=$as_save_IFS
5990
5991fi
5992fi
5993RANLIB=$ac_cv_prog_RANLIB
5994if test -n "$RANLIB"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5996$as_echo "$RANLIB" >&6; }
5997else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000fi
6001
6002
6003fi
6004if test -z "$ac_cv_prog_RANLIB"; then
6005 ac_ct_RANLIB=$RANLIB
6006 # Extract the first word of "ranlib", so it can be a program name with args.
6007set dummy ranlib; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
6010if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$ac_ct_RANLIB"; then
6014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_ac_ct_RANLIB="ranlib"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6034if test -n "$ac_ct_RANLIB"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6036$as_echo "$ac_ct_RANLIB" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042 if test "x$ac_ct_RANLIB" = x; then
6043 RANLIB=":"
6044 else
6045 case $cross_compiling:$ac_tool_warned in
6046yes:)
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049ac_tool_warned=yes ;;
6050esac
6051 RANLIB=$ac_ct_RANLIB
6052 fi
6053else
6054 RANLIB="$ac_cv_prog_RANLIB"
6055fi
6056
6057test -z "$RANLIB" && RANLIB=:
6058
6059
6060
6061
6062
6063
6064# Determine commands to create old-style static archives.
6065old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6066old_postinstall_cmds='chmod 644 $oldlib'
6067old_postuninstall_cmds=
6068
6069if test -n "$RANLIB"; then
6070 case $host_os in
6071 openbsd*)
6072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6073 ;;
6074 *)
6075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6076 ;;
6077 esac
6078 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6079fi
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
brynercb91a2f2006-08-25 21:14:45 +00006114# If no C compiler was specified, use CC.
6115LTCC=${LTCC-"$CC"}
6116
mmentovai8c2a4de2006-09-20 16:20:15 +00006117# If no C compiler flags were specified, use CFLAGS.
6118LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6119
brynercb91a2f2006-08-25 21:14:45 +00006120# Allow CC to be a program name with arguments.
6121compiler=$CC
6122
6123
brynercb91a2f2006-08-25 21:14:45 +00006124# Check for command to grab the raw symbol name followed by C symbol from nm.
jimblandy92b1f832009-12-23 22:23:49 +00006125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6126$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6127if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00006129else
6130
6131# These are sane defaults that work on at least a few old systems.
6132# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6133
6134# Character class describing NM global symbol codes.
6135symcode='[BCDEGRST]'
6136
6137# Regexp to match symbols that can be accessed directly from C.
6138sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6139
brynercb91a2f2006-08-25 21:14:45 +00006140# Define system-specific variables.
6141case $host_os in
6142aix*)
6143 symcode='[BCDT]'
6144 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006145cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00006146 symcode='[ABCDGISTW]'
6147 ;;
jimblandy92b1f832009-12-23 22:23:49 +00006148hpux*)
brynercb91a2f2006-08-25 21:14:45 +00006149 if test "$host_cpu" = ia64; then
6150 symcode='[ABCDEGRST]'
6151 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00006152 ;;
brynercb91a2f2006-08-25 21:14:45 +00006153irix* | nonstopux*)
6154 symcode='[BCDEGRST]'
6155 ;;
6156osf*)
6157 symcode='[BCDEGQRST]'
6158 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006159solaris*)
brynercb91a2f2006-08-25 21:14:45 +00006160 symcode='[BDRT]'
6161 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00006162sco3.2v5*)
6163 symcode='[DT]'
6164 ;;
6165sysv4.2uw2*)
6166 symcode='[DT]'
6167 ;;
6168sysv5* | sco5v6* | unixware* | OpenUNIX*)
6169 symcode='[ABDT]'
6170 ;;
brynercb91a2f2006-08-25 21:14:45 +00006171sysv4)
6172 symcode='[DFNSTU]'
6173 ;;
6174esac
6175
brynercb91a2f2006-08-25 21:14:45 +00006176# If we're using GNU nm, then use its standard symbol codes.
6177case `$NM -V 2>&1` in
6178*GNU* | *'with BFD'*)
6179 symcode='[ABCDGIRSTW]' ;;
6180esac
6181
jimblandy92b1f832009-12-23 22:23:49 +00006182# Transform an extracted symbol line into a proper C declaration.
6183# Some systems (esp. on ia64) link data and code symbols differently,
6184# so use this general approach.
6185lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6186
6187# Transform an extracted symbol line into symbol name and symbol address
6188lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6189lt_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'"
6190
6191# Handle CRLF in mingw tool chain
6192opt_cr=
6193case $build_os in
6194mingw*)
6195 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6196 ;;
6197esac
6198
6199# Try without a prefix underscore, then with it.
brynercb91a2f2006-08-25 21:14:45 +00006200for ac_symprfx in "" "_"; do
6201
mmentovai8c2a4de2006-09-20 16:20:15 +00006202 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6203 symxfrm="\\1 $ac_symprfx\\2 \\2"
6204
brynercb91a2f2006-08-25 21:14:45 +00006205 # Write the raw and C identifiers.
jimblandy92b1f832009-12-23 22:23:49 +00006206 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6207 # Fake it for dumpbin and say T for any non-static function
6208 # and D for any global variable.
6209 # Also find C++ and __fastcall symbols from MSVC++,
6210 # which start with @ or ?.
6211 lt_cv_sys_global_symbol_pipe="$AWK '"\
6212" {last_section=section; section=\$ 3};"\
6213" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6214" \$ 0!~/External *\|/{next};"\
6215" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6216" {if(hide[section]) next};"\
6217" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6218" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6219" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6220" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6221" ' prfx=^$ac_symprfx"
6222 else
6223 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6224 fi
brynercb91a2f2006-08-25 21:14:45 +00006225
6226 # Check to see that the pipe works correctly.
6227 pipe_works=no
6228
6229 rm -f conftest*
jimblandy92b1f832009-12-23 22:23:49 +00006230 cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006231#ifdef __cplusplus
6232extern "C" {
6233#endif
6234char nm_test_var;
jimblandy92b1f832009-12-23 22:23:49 +00006235void nm_test_func(void);
6236void nm_test_func(void){}
brynercb91a2f2006-08-25 21:14:45 +00006237#ifdef __cplusplus
6238}
6239#endif
6240int main(){nm_test_var='a';nm_test_func();return(0);}
jimblandy92b1f832009-12-23 22:23:49 +00006241_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006242
jimblandy92b1f832009-12-23 22:23:49 +00006243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006244 (eval $ac_compile) 2>&5
6245 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +00006248 # Now try to grab the symbols.
6249 nlist=conftest.nm
jimblandy92b1f832009-12-23 22:23:49 +00006250 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 +00006251 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6252 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; } && test -s "$nlist"; then
brynercb91a2f2006-08-25 21:14:45 +00006255 # Try sorting and uniquifying the output.
6256 if sort "$nlist" | uniq > "$nlist"T; then
6257 mv -f "$nlist"T "$nlist"
6258 else
6259 rm -f "$nlist"T
6260 fi
6261
6262 # Make sure that we snagged all the symbols we need.
jimblandy92b1f832009-12-23 22:23:49 +00006263 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6264 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6265 cat <<_LT_EOF > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006266#ifdef __cplusplus
6267extern "C" {
6268#endif
6269
jimblandy92b1f832009-12-23 22:23:49 +00006270_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006271 # Now generate the symbol file.
jimblandy92b1f832009-12-23 22:23:49 +00006272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
brynercb91a2f2006-08-25 21:14:45 +00006273
jimblandy92b1f832009-12-23 22:23:49 +00006274 cat <<_LT_EOF >> conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00006275
jimblandy92b1f832009-12-23 22:23:49 +00006276/* The mapping between symbol names and symbols. */
brynercb91a2f2006-08-25 21:14:45 +00006277const struct {
6278 const char *name;
jimblandy92b1f832009-12-23 22:23:49 +00006279 void *address;
brynercb91a2f2006-08-25 21:14:45 +00006280}
jimblandy92b1f832009-12-23 22:23:49 +00006281lt__PROGRAM__LTX_preloaded_symbols[] =
brynercb91a2f2006-08-25 21:14:45 +00006282{
jimblandy92b1f832009-12-23 22:23:49 +00006283 { "@PROGRAM@", (void *) 0 },
6284_LT_EOF
6285 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6286 cat <<\_LT_EOF >> conftest.$ac_ext
6287 {0, (void *) 0}
brynercb91a2f2006-08-25 21:14:45 +00006288};
6289
jimblandy92b1f832009-12-23 22:23:49 +00006290/* This works around a problem in FreeBSD linker */
6291#ifdef FREEBSD_WORKAROUND
6292static const void *lt_preloaded_setup() {
6293 return lt__PROGRAM__LTX_preloaded_symbols;
6294}
6295#endif
6296
brynercb91a2f2006-08-25 21:14:45 +00006297#ifdef __cplusplus
6298}
6299#endif
jimblandy92b1f832009-12-23 22:23:49 +00006300_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00006301 # Now try linking the two files.
6302 mv conftest.$ac_objext conftstm.$ac_objext
6303 lt_save_LIBS="$LIBS"
6304 lt_save_CFLAGS="$CFLAGS"
6305 LIBS="conftstm.$ac_objext"
6306 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
jimblandy92b1f832009-12-23 22:23:49 +00006307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00006308 (eval $ac_link) 2>&5
6309 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00006310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
brynercb91a2f2006-08-25 21:14:45 +00006312 pipe_works=yes
6313 fi
6314 LIBS="$lt_save_LIBS"
6315 CFLAGS="$lt_save_CFLAGS"
6316 else
6317 echo "cannot find nm_test_func in $nlist" >&5
6318 fi
6319 else
6320 echo "cannot find nm_test_var in $nlist" >&5
6321 fi
6322 else
6323 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6324 fi
6325 else
6326 echo "$progname: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6328 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +00006329 rm -rf conftest* conftst*
brynercb91a2f2006-08-25 21:14:45 +00006330
6331 # Do not use the global_symbol_pipe unless it works.
6332 if test "$pipe_works" = yes; then
6333 break
6334 else
6335 lt_cv_sys_global_symbol_pipe=
6336 fi
6337done
6338
6339fi
6340
6341if test -z "$lt_cv_sys_global_symbol_pipe"; then
6342 lt_cv_sys_global_symbol_to_cdecl=
6343fi
6344if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
jimblandy92b1f832009-12-23 22:23:49 +00006345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6346$as_echo "failed" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006347else
jimblandy92b1f832009-12-23 22:23:49 +00006348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6349$as_echo "ok" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00006350fi
6351
jimblandy92b1f832009-12-23 22:23:49 +00006352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374# Check whether --enable-libtool-lock was given.
6375if test "${enable_libtool_lock+set}" = set; then :
6376 enableval=$enable_libtool_lock;
6377fi
6378
6379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6380
6381# Some flags need to be propagated to the compiler or linker for good
6382# libtool support.
6383case $host in
6384ia64-*-hpux*)
6385 # Find out which ABI we are using.
6386 echo 'int i;' > conftest.$ac_ext
6387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6388 (eval $ac_compile) 2>&5
6389 ac_status=$?
6390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391 test $ac_status = 0; }; then
6392 case `/usr/bin/file conftest.$ac_objext` in
6393 *ELF-32*)
6394 HPUX_IA64_MODE="32"
6395 ;;
6396 *ELF-64*)
6397 HPUX_IA64_MODE="64"
6398 ;;
6399 esac
6400 fi
6401 rm -rf conftest*
6402 ;;
6403*-*-irix6*)
6404 # Find out which ABI we are using.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00006405 echo '#line 6405 "configure"' > conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00006406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407 (eval $ac_compile) 2>&5
6408 ac_status=$?
6409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410 test $ac_status = 0; }; then
6411 if test "$lt_cv_prog_gnu_ld" = yes; then
6412 case `/usr/bin/file conftest.$ac_objext` in
6413 *32-bit*)
6414 LD="${LD-ld} -melf32bsmip"
6415 ;;
6416 *N32*)
6417 LD="${LD-ld} -melf32bmipn32"
6418 ;;
6419 *64-bit*)
6420 LD="${LD-ld} -melf64bmip"
6421 ;;
6422 esac
6423 else
6424 case `/usr/bin/file conftest.$ac_objext` in
6425 *32-bit*)
6426 LD="${LD-ld} -32"
6427 ;;
6428 *N32*)
6429 LD="${LD-ld} -n32"
6430 ;;
6431 *64-bit*)
6432 LD="${LD-ld} -64"
6433 ;;
6434 esac
6435 fi
6436 fi
6437 rm -rf conftest*
6438 ;;
6439
6440x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6441s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6442 # Find out which ABI we are using.
6443 echo 'int i;' > conftest.$ac_ext
6444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6445 (eval $ac_compile) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; }; then
6449 case `/usr/bin/file conftest.o` in
6450 *32-bit*)
6451 case $host in
6452 x86_64-*kfreebsd*-gnu)
6453 LD="${LD-ld} -m elf_i386_fbsd"
6454 ;;
6455 x86_64-*linux*)
6456 LD="${LD-ld} -m elf_i386"
6457 ;;
6458 ppc64-*linux*|powerpc64-*linux*)
6459 LD="${LD-ld} -m elf32ppclinux"
6460 ;;
6461 s390x-*linux*)
6462 LD="${LD-ld} -m elf_s390"
6463 ;;
6464 sparc64-*linux*)
6465 LD="${LD-ld} -m elf32_sparc"
6466 ;;
6467 esac
6468 ;;
6469 *64-bit*)
6470 case $host in
6471 x86_64-*kfreebsd*-gnu)
6472 LD="${LD-ld} -m elf_x86_64_fbsd"
6473 ;;
6474 x86_64-*linux*)
6475 LD="${LD-ld} -m elf_x86_64"
6476 ;;
6477 ppc*-*linux*|powerpc*-*linux*)
6478 LD="${LD-ld} -m elf64ppc"
6479 ;;
6480 s390*-*linux*|s390*-*tpf*)
6481 LD="${LD-ld} -m elf64_s390"
6482 ;;
6483 sparc*-*linux*)
6484 LD="${LD-ld} -m elf64_sparc"
6485 ;;
6486 esac
6487 ;;
6488 esac
6489 fi
6490 rm -rf conftest*
6491 ;;
6492
6493*-*-sco3.2v5*)
6494 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6495 SAVE_CFLAGS="$CFLAGS"
6496 CFLAGS="$CFLAGS -belf"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6498$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6499if test "${lt_cv_cc_needs_belf+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501else
6502 ac_ext=c
6503ac_cpp='$CPP $CPPFLAGS'
6504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506ac_compiler_gnu=$ac_cv_c_compiler_gnu
6507
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510
6511int
6512main ()
6513{
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519if ac_fn_c_try_link "$LINENO"; then :
6520 lt_cv_cc_needs_belf=yes
6521else
6522 lt_cv_cc_needs_belf=no
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 ac_ext=c
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6534$as_echo "$lt_cv_cc_needs_belf" >&6; }
6535 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6536 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6537 CFLAGS="$SAVE_CFLAGS"
6538 fi
6539 ;;
6540sparc*-*solaris*)
6541 # Find out which ABI we are using.
6542 echo 'int i;' > conftest.$ac_ext
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 case `/usr/bin/file conftest.o` in
6549 *64-bit*)
6550 case $lt_cv_prog_gnu_ld in
6551 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6552 *)
6553 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6554 LD="${LD-ld} -64"
6555 fi
6556 ;;
6557 esac
6558 ;;
6559 esac
6560 fi
6561 rm -rf conftest*
6562 ;;
6563esac
6564
6565need_locks="$enable_libtool_lock"
6566
6567
6568 case $host_os in
6569 rhapsody* | darwin*)
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6572set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
6575if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577else
6578 if test -n "$DSYMUTIL"; then
6579 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6580else
6581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582for as_dir in $PATH
6583do
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6591 fi
6592done
6593 done
6594IFS=$as_save_IFS
6595
6596fi
6597fi
6598DSYMUTIL=$ac_cv_prog_DSYMUTIL
6599if test -n "$DSYMUTIL"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6601$as_echo "$DSYMUTIL" >&6; }
6602else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604$as_echo "no" >&6; }
6605fi
6606
6607
6608fi
6609if test -z "$ac_cv_prog_DSYMUTIL"; then
6610 ac_ct_DSYMUTIL=$DSYMUTIL
6611 # Extract the first word of "dsymutil", so it can be a program name with args.
6612set dummy dsymutil; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617else
6618 if test -n "$ac_ct_DSYMUTIL"; then
6619 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632done
6633 done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6639if test -n "$ac_ct_DSYMUTIL"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6641$as_echo "$ac_ct_DSYMUTIL" >&6; }
6642else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647 if test "x$ac_ct_DSYMUTIL" = x; then
6648 DSYMUTIL=":"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651yes:)
6652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654ac_tool_warned=yes ;;
6655esac
6656 DSYMUTIL=$ac_ct_DSYMUTIL
6657 fi
6658else
6659 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6660fi
6661
6662 if test -n "$ac_tool_prefix"; then
6663 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6664set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666$as_echo_n "checking for $ac_word... " >&6; }
6667if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669else
6670 if test -n "$NMEDIT"; then
6671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6672else
6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685 done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690NMEDIT=$ac_cv_prog_NMEDIT
6691if test -n "$NMEDIT"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6693$as_echo "$NMEDIT" >&6; }
6694else
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696$as_echo "no" >&6; }
6697fi
6698
6699
6700fi
6701if test -z "$ac_cv_prog_NMEDIT"; then
6702 ac_ct_NMEDIT=$NMEDIT
6703 # Extract the first word of "nmedit", so it can be a program name with args.
6704set dummy nmedit; ac_word=$2
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706$as_echo_n "checking for $ac_word... " >&6; }
6707if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6709else
6710 if test -n "$ac_ct_NMEDIT"; then
6711 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6712else
6713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6720 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 break 2
6723 fi
6724done
6725 done
6726IFS=$as_save_IFS
6727
6728fi
6729fi
6730ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6731if test -n "$ac_ct_NMEDIT"; then
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6733$as_echo "$ac_ct_NMEDIT" >&6; }
6734else
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6736$as_echo "no" >&6; }
6737fi
6738
6739 if test "x$ac_ct_NMEDIT" = x; then
6740 NMEDIT=":"
6741 else
6742 case $cross_compiling:$ac_tool_warned in
6743yes:)
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746ac_tool_warned=yes ;;
6747esac
6748 NMEDIT=$ac_ct_NMEDIT
6749 fi
6750else
6751 NMEDIT="$ac_cv_prog_NMEDIT"
6752fi
6753
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6756set dummy ${ac_tool_prefix}lipo; ac_word=$2
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758$as_echo_n "checking for $ac_word... " >&6; }
6759if test "${ac_cv_prog_LIPO+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761else
6762 if test -n "$LIPO"; then
6763 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6764else
6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766for as_dir in $PATH
6767do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776done
6777 done
6778IFS=$as_save_IFS
6779
6780fi
6781fi
6782LIPO=$ac_cv_prog_LIPO
6783if test -n "$LIPO"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6785$as_echo "$LIPO" >&6; }
6786else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788$as_echo "no" >&6; }
6789fi
6790
6791
6792fi
6793if test -z "$ac_cv_prog_LIPO"; then
6794 ac_ct_LIPO=$LIPO
6795 # Extract the first word of "lipo", so it can be a program name with args.
6796set dummy lipo; ac_word=$2
6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798$as_echo_n "checking for $ac_word... " >&6; }
6799if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801else
6802 if test -n "$ac_ct_LIPO"; then
6803 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_ac_ct_LIPO="lipo"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817 done
6818IFS=$as_save_IFS
6819
6820fi
6821fi
6822ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6823if test -n "$ac_ct_LIPO"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6825$as_echo "$ac_ct_LIPO" >&6; }
6826else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828$as_echo "no" >&6; }
6829fi
6830
6831 if test "x$ac_ct_LIPO" = x; then
6832 LIPO=":"
6833 else
6834 case $cross_compiling:$ac_tool_warned in
6835yes:)
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840 LIPO=$ac_ct_LIPO
6841 fi
6842else
6843 LIPO="$ac_cv_prog_LIPO"
6844fi
6845
6846 if test -n "$ac_tool_prefix"; then
6847 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6848set dummy ${ac_tool_prefix}otool; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if test "${ac_cv_prog_OTOOL+set}" = set; then :
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$OTOOL"; then
6855 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874OTOOL=$ac_cv_prog_OTOOL
6875if test -n "$OTOOL"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6877$as_echo "$OTOOL" >&6; }
6878else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883
6884fi
6885if test -z "$ac_cv_prog_OTOOL"; then
6886 ac_ct_OTOOL=$OTOOL
6887 # Extract the first word of "otool", so it can be a program name with args.
6888set dummy otool; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 if test -n "$ac_ct_OTOOL"; then
6895 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6896else
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904 ac_cv_prog_ac_ct_OTOOL="otool"
6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 break 2
6907 fi
6908done
6909 done
6910IFS=$as_save_IFS
6911
6912fi
6913fi
6914ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6915if test -n "$ac_ct_OTOOL"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6917$as_echo "$ac_ct_OTOOL" >&6; }
6918else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
6921fi
6922
6923 if test "x$ac_ct_OTOOL" = x; then
6924 OTOOL=":"
6925 else
6926 case $cross_compiling:$ac_tool_warned in
6927yes:)
6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6930ac_tool_warned=yes ;;
6931esac
6932 OTOOL=$ac_ct_OTOOL
6933 fi
6934else
6935 OTOOL="$ac_cv_prog_OTOOL"
6936fi
6937
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6940set dummy ${ac_tool_prefix}otool64; ac_word=$2
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942$as_echo_n "checking for $ac_word... " >&6; }
6943if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945else
6946 if test -n "$OTOOL64"; then
6947 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6948else
6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961 done
6962IFS=$as_save_IFS
6963
6964fi
6965fi
6966OTOOL64=$ac_cv_prog_OTOOL64
6967if test -n "$OTOOL64"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6969$as_echo "$OTOOL64" >&6; }
6970else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972$as_echo "no" >&6; }
6973fi
6974
6975
6976fi
6977if test -z "$ac_cv_prog_OTOOL64"; then
6978 ac_ct_OTOOL64=$OTOOL64
6979 # Extract the first word of "otool64", so it can be a program name with args.
6980set dummy otool64; ac_word=$2
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982$as_echo_n "checking for $ac_word... " >&6; }
6983if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6985else
6986 if test -n "$ac_ct_OTOOL64"; then
6987 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6988else
6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_ac_ct_OTOOL64="otool64"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000done
7001 done
7002IFS=$as_save_IFS
7003
7004fi
7005fi
7006ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7007if test -n "$ac_ct_OTOOL64"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7009$as_echo "$ac_ct_OTOOL64" >&6; }
7010else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012$as_echo "no" >&6; }
7013fi
7014
7015 if test "x$ac_ct_OTOOL64" = x; then
7016 OTOOL64=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019yes:)
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022ac_tool_warned=yes ;;
7023esac
7024 OTOOL64=$ac_ct_OTOOL64
7025 fi
7026else
7027 OTOOL64="$ac_cv_prog_OTOOL64"
7028fi
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7057$as_echo_n "checking for -single_module linker flag... " >&6; }
7058if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060else
7061 lt_cv_apple_cc_single_mod=no
7062 if test -z "${LT_MULTI_MODULE}"; then
7063 # By default we will add the -single_module flag. You can override
7064 # by either setting the environment variable LT_MULTI_MODULE
7065 # non-empty at configure time, or by adding -multi_module to the
7066 # link flags.
7067 rm -rf libconftest.dylib*
7068 echo "int foo(void){return 1;}" > conftest.c
7069 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7070-dynamiclib -Wl,-single_module conftest.c" >&5
7071 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7072 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7073 _lt_result=$?
7074 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7075 lt_cv_apple_cc_single_mod=yes
7076 else
7077 cat conftest.err >&5
7078 fi
7079 rm -rf libconftest.dylib*
7080 rm -f conftest.*
7081 fi
7082fi
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7084$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7086$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7087if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089else
7090 lt_cv_ld_exported_symbols_list=no
7091 save_LDFLAGS=$LDFLAGS
7092 echo "_main" > conftest.sym
7093 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h. */
7096
7097int
7098main ()
7099{
7100
7101 ;
7102 return 0;
7103}
7104_ACEOF
7105if ac_fn_c_try_link "$LINENO"; then :
7106 lt_cv_ld_exported_symbols_list=yes
7107else
7108 lt_cv_ld_exported_symbols_list=no
7109fi
7110rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 LDFLAGS="$save_LDFLAGS"
7113
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7116$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7117 case $host_os in
7118 rhapsody* | darwin1.[012])
7119 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7120 darwin1.*)
7121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7122 darwin*) # darwin 5.x on
7123 # if running on 10.5 or later, the deployment target defaults
7124 # to the OS version, if on x86, and 10.4, the deployment
7125 # target defaults to 10.4. Don't you love it?
7126 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7127 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7128 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7129 10.[012]*)
7130 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7131 10.*)
7132 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7133 esac
7134 ;;
7135 esac
7136 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7137 _lt_dar_single_mod='$single_module'
7138 fi
7139 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7140 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7141 else
7142 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7143 fi
7144 if test "$DSYMUTIL" != ":"; then
7145 _lt_dsymutil='~$DSYMUTIL $lib || :'
7146 else
7147 _lt_dsymutil=
7148 fi
7149 ;;
7150 esac
7151
7152
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7154$as_echo_n "checking for ANSI C header files... " >&6; }
7155if test "${ac_cv_header_stdc+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159/* end confdefs.h. */
7160#include <stdlib.h>
7161#include <stdarg.h>
7162#include <string.h>
7163#include <float.h>
7164
7165int
7166main ()
7167{
7168
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_compile "$LINENO"; then :
7174 ac_cv_header_stdc=yes
7175else
7176 ac_cv_header_stdc=no
7177fi
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183/* end confdefs.h. */
7184#include <string.h>
7185
7186_ACEOF
7187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7188 $EGREP "memchr" >/dev/null 2>&1; then :
7189
7190else
7191 ac_cv_header_stdc=no
7192fi
7193rm -f conftest*
7194
7195fi
7196
7197if test $ac_cv_header_stdc = yes; then
7198 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200/* end confdefs.h. */
7201#include <stdlib.h>
7202
7203_ACEOF
7204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "free" >/dev/null 2>&1; then :
7206
7207else
7208 ac_cv_header_stdc=no
7209fi
7210rm -f conftest*
7211
7212fi
7213
7214if test $ac_cv_header_stdc = yes; then
7215 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7216 if test "$cross_compiling" = yes; then :
7217 :
7218else
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h. */
7221#include <ctype.h>
7222#include <stdlib.h>
7223#if ((' ' & 0x0FF) == 0x020)
7224# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7225# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7226#else
7227# define ISLOWER(c) \
7228 (('a' <= (c) && (c) <= 'i') \
7229 || ('j' <= (c) && (c) <= 'r') \
7230 || ('s' <= (c) && (c) <= 'z'))
7231# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7232#endif
7233
7234#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7235int
7236main ()
7237{
7238 int i;
7239 for (i = 0; i < 256; i++)
7240 if (XOR (islower (i), ISLOWER (i))
7241 || toupper (i) != TOUPPER (i))
7242 return 2;
7243 return 0;
7244}
7245_ACEOF
7246if ac_fn_c_try_run "$LINENO"; then :
7247
7248else
7249 ac_cv_header_stdc=no
7250fi
7251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7252 conftest.$ac_objext conftest.beam conftest.$ac_ext
7253fi
7254
7255fi
7256fi
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7258$as_echo "$ac_cv_header_stdc" >&6; }
7259if test $ac_cv_header_stdc = yes; then
7260
7261$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7262
7263fi
7264
7265# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7266for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
7268do :
7269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7271"
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
jimblandy92b1f832009-12-23 22:23:49 +00007273 cat >>confdefs.h <<_ACEOF
7274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7275_ACEOF
7276
7277fi
7278
7279done
7280
7281
7282for ac_header in dlfcn.h
7283do :
7284 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7285"
7286if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7287 cat >>confdefs.h <<_ACEOF
7288#define HAVE_DLFCN_H 1
7289_ACEOF
7290
7291fi
7292
7293done
7294
7295
7296
7297ac_ext=cpp
7298ac_cpp='$CXXCPP $CPPFLAGS'
7299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7302if test -z "$CXX"; then
7303 if test -n "$CCC"; then
7304 CXX=$CCC
7305 else
7306 if test -n "$ac_tool_prefix"; then
7307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7308 do
7309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
7313if test "${ac_cv_prog_CXX+set}" = set; then :
7314 $as_echo_n "(cached) " >&6
7315else
7316 if test -n "$CXX"; then
7317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331 done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336CXX=$ac_cv_prog_CXX
7337if test -n "$CXX"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7339$as_echo "$CXX" >&6; }
7340else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345
7346 test -n "$CXX" && break
7347 done
7348fi
7349if test -z "$CXX"; then
7350 ac_ct_CXX=$CXX
7351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7352do
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354set dummy $ac_prog; ac_word=$2
7355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356$as_echo_n "checking for $ac_word... " >&6; }
7357if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359else
7360 if test -n "$ac_ct_CXX"; then
7361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7362else
7363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364for as_dir in $PATH
7365do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_ac_ct_CXX="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374done
7375 done
7376IFS=$as_save_IFS
7377
7378fi
7379fi
7380ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7381if test -n "$ac_ct_CXX"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7383$as_echo "$ac_ct_CXX" >&6; }
7384else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386$as_echo "no" >&6; }
7387fi
7388
7389
7390 test -n "$ac_ct_CXX" && break
7391done
7392
7393 if test "x$ac_ct_CXX" = x; then
7394 CXX="g++"
7395 else
7396 case $cross_compiling:$ac_tool_warned in
7397yes:)
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400ac_tool_warned=yes ;;
7401esac
7402 CXX=$ac_ct_CXX
7403 fi
7404fi
7405
7406 fi
7407fi
7408# Provide some information about the compiler.
7409$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7410set X $ac_compile
7411ac_compiler=$2
7412for ac_option in --version -v -V -qversion; do
7413 { { ac_try="$ac_compiler $ac_option >&5"
7414case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417esac
7418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7419$as_echo "$ac_try_echo"; } >&5
7420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7421 ac_status=$?
7422 if test -s conftest.err; then
7423 sed '10a\
7424... rest of stderr output deleted ...
7425 10q' conftest.err >conftest.er1
7426 cat conftest.er1 >&5
jimblandy92b1f832009-12-23 22:23:49 +00007427 fi
jimblandydc4029a2010-02-02 17:39:51 +00007428 rm -f conftest.er1 conftest.err
jimblandy92b1f832009-12-23 22:23:49 +00007429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; }
7431done
7432
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7434$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7435if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437else
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h. */
7440
7441int
7442main ()
7443{
7444#ifndef __GNUC__
7445 choke me
7446#endif
7447
7448 ;
7449 return 0;
7450}
7451_ACEOF
7452if ac_fn_cxx_try_compile "$LINENO"; then :
7453 ac_compiler_gnu=yes
7454else
7455 ac_compiler_gnu=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7459
7460fi
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7462$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7463if test $ac_compiler_gnu = yes; then
7464 GXX=yes
7465else
7466 GXX=
7467fi
7468ac_test_CXXFLAGS=${CXXFLAGS+set}
7469ac_save_CXXFLAGS=$CXXFLAGS
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7471$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7472if test "${ac_cv_prog_cxx_g+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
7474else
7475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7476 ac_cxx_werror_flag=yes
7477 ac_cv_prog_cxx_g=no
7478 CXXFLAGS="-g"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480/* end confdefs.h. */
7481
7482int
7483main ()
7484{
7485
7486 ;
7487 return 0;
7488}
7489_ACEOF
7490if ac_fn_cxx_try_compile "$LINENO"; then :
7491 ac_cv_prog_cxx_g=yes
7492else
7493 CXXFLAGS=""
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495/* end confdefs.h. */
7496
7497int
7498main ()
7499{
7500
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505if ac_fn_cxx_try_compile "$LINENO"; then :
7506
7507else
7508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7509 CXXFLAGS="-g"
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511/* end confdefs.h. */
7512
7513int
7514main ()
7515{
7516
7517 ;
7518 return 0;
7519}
7520_ACEOF
7521if ac_fn_cxx_try_compile "$LINENO"; then :
7522 ac_cv_prog_cxx_g=yes
7523fi
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525fi
7526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527fi
7528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7532$as_echo "$ac_cv_prog_cxx_g" >&6; }
7533if test "$ac_test_CXXFLAGS" = set; then
7534 CXXFLAGS=$ac_save_CXXFLAGS
7535elif test $ac_cv_prog_cxx_g = yes; then
7536 if test "$GXX" = yes; then
7537 CXXFLAGS="-g -O2"
7538 else
7539 CXXFLAGS="-g"
7540 fi
7541else
7542 if test "$GXX" = yes; then
7543 CXXFLAGS="-O2"
7544 else
7545 CXXFLAGS=
7546 fi
7547fi
7548ac_ext=c
7549ac_cpp='$CPP $CPPFLAGS'
7550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
7554depcc="$CXX" am_compiler_list=
7555
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7557$as_echo_n "checking dependency style of $depcc... " >&6; }
7558if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560else
7561 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7562 # We make a subdir and do the tests there. Otherwise we can end up
7563 # making bogus files that we don't know about and never remove. For
7564 # instance it was reported that on HP-UX the gcc test will end up
7565 # making a dummy file named `D' -- because `-MD' means `put the output
7566 # in D'.
7567 mkdir conftest.dir
7568 # Copy depcomp to subdir because otherwise we won't find it if we're
7569 # using a relative directory.
7570 cp "$am_depcomp" conftest.dir
7571 cd conftest.dir
7572 # We will build objects and dependencies in a subdirectory because
7573 # it helps to detect inapplicable dependency modes. For instance
7574 # both Tru64's cc and ICC support -MD to output dependencies as a
7575 # side effect of compilation, but ICC will put the dependencies in
7576 # the current directory while Tru64 will put them in the object
7577 # directory.
7578 mkdir sub
7579
7580 am_cv_CXX_dependencies_compiler_type=none
7581 if test "$am_compiler_list" = ""; then
7582 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7583 fi
7584 am__universal=false
7585 case " $depcc " in #(
7586 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7587 esac
7588
7589 for depmode in $am_compiler_list; do
7590 # Setup a source with many dependencies, because some compilers
7591 # like to wrap large dependency lists on column 80 (with \), and
7592 # we should not choose a depcomp mode which is confused by this.
7593 #
7594 # We need to recreate these files for each test, as the compiler may
7595 # overwrite some of them when testing with obscure command lines.
7596 # This happens at least with the AIX C compiler.
7597 : > sub/conftest.c
7598 for i in 1 2 3 4 5 6; do
7599 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7601 # Solaris 8's {/usr,}/bin/sh.
7602 touch sub/conftst$i.h
7603 done
7604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7605
7606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7607 # mode. It turns out that the SunPro C++ compiler does not properly
7608 # handle `-M -o', and we need to detect this. Also, some Intel
7609 # versions had trouble with output in subdirs
7610 am__obj=sub/conftest.${OBJEXT-o}
7611 am__minus_obj="-o $am__obj"
7612 case $depmode in
7613 gcc)
7614 # This depmode causes a compiler race in universal mode.
7615 test "$am__universal" = false || continue
7616 ;;
7617 nosideeffect)
7618 # after this tag, mechanisms are not by side-effect, so they'll
7619 # only be used when explicitly requested
7620 if test "x$enable_dependency_tracking" = xyes; then
7621 continue
7622 else
7623 break
7624 fi
7625 ;;
7626 msvisualcpp | msvcmsys)
7627 # This compiler won't grok `-c -o', but also, the minuso test has
7628 # not run yet. These depmodes are late enough in the game, and
7629 # so weak that their functioning should not be impacted.
7630 am__obj=conftest.${OBJEXT-o}
7631 am__minus_obj=
7632 ;;
7633 none) break ;;
7634 esac
7635 if depmode=$depmode \
7636 source=sub/conftest.c object=$am__obj \
7637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7638 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7639 >/dev/null 2>conftest.err &&
7640 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7641 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7642 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7643 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7644 # icc doesn't choke on unknown options, it will just issue warnings
7645 # or remarks (even with -Werror). So we grep stderr for any message
7646 # that says an option was ignored or not supported.
7647 # When given -MP, icc 7.0 and 7.1 complain thusly:
7648 # icc: Command line warning: ignoring option '-M'; no argument required
7649 # The diagnosis changed in icc 8.0:
7650 # icc: Command line remark: option '-MP' not supported
7651 if (grep 'ignoring option' conftest.err ||
7652 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7653 am_cv_CXX_dependencies_compiler_type=$depmode
7654 break
7655 fi
7656 fi
7657 done
7658
7659 cd ..
7660 rm -rf conftest.dir
7661else
7662 am_cv_CXX_dependencies_compiler_type=none
7663fi
7664
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7667$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7668CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7669
7670 if
7671 test "x$enable_dependency_tracking" != xno \
7672 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7673 am__fastdepCXX_TRUE=
7674 am__fastdepCXX_FALSE='#'
7675else
7676 am__fastdepCXX_TRUE='#'
7677 am__fastdepCXX_FALSE=
7678fi
7679
7680
7681if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7682 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7683 (test "X$CXX" != "Xg++"))) ; then
7684 ac_ext=cpp
7685ac_cpp='$CXXCPP $CPPFLAGS'
7686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7690$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7691if test -z "$CXXCPP"; then
7692 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
7694else
7695 # Double quotes because CXXCPP needs to be expanded
7696 for CXXCPP in "$CXX -E" "/lib/cpp"
7697 do
7698 ac_preproc_ok=false
7699for ac_cxx_preproc_warn_flag in '' yes
7700do
7701 # Use a header file that comes with gcc, so configuring glibc
7702 # with a fresh cross-compiler works.
7703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7704 # <limits.h> exists even on freestanding compilers.
7705 # On the NeXT, cc -E runs the code through the compiler's parser,
7706 # not just through cpp. "Syntax error" is here to catch this case.
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708/* end confdefs.h. */
7709#ifdef __STDC__
7710# include <limits.h>
7711#else
7712# include <assert.h>
7713#endif
7714 Syntax error
7715_ACEOF
7716if ac_fn_cxx_try_cpp "$LINENO"; then :
7717
7718else
7719 # Broken: fails on valid input.
7720continue
7721fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007722rm -f conftest.err conftest.i conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007723
7724 # OK, works on sane cases. Now check whether nonexistent headers
7725 # can be detected and how.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727/* end confdefs.h. */
7728#include <ac_nonexistent.h>
7729_ACEOF
7730if ac_fn_cxx_try_cpp "$LINENO"; then :
7731 # Broken: success on invalid input.
7732continue
7733else
7734 # Passes both tests.
7735ac_preproc_ok=:
7736break
7737fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007738rm -f conftest.err conftest.i conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007739
7740done
7741# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007742rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007743if $ac_preproc_ok; then :
7744 break
7745fi
7746
7747 done
7748 ac_cv_prog_CXXCPP=$CXXCPP
7749
7750fi
7751 CXXCPP=$ac_cv_prog_CXXCPP
7752else
7753 ac_cv_prog_CXXCPP=$CXXCPP
7754fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7756$as_echo "$CXXCPP" >&6; }
7757ac_preproc_ok=false
7758for ac_cxx_preproc_warn_flag in '' yes
7759do
7760 # Use a header file that comes with gcc, so configuring glibc
7761 # with a fresh cross-compiler works.
7762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7763 # <limits.h> exists even on freestanding compilers.
7764 # On the NeXT, cc -E runs the code through the compiler's parser,
7765 # not just through cpp. "Syntax error" is here to catch this case.
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767/* end confdefs.h. */
7768#ifdef __STDC__
7769# include <limits.h>
7770#else
7771# include <assert.h>
7772#endif
7773 Syntax error
7774_ACEOF
7775if ac_fn_cxx_try_cpp "$LINENO"; then :
7776
7777else
7778 # Broken: fails on valid input.
7779continue
7780fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007781rm -f conftest.err conftest.i conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007782
7783 # OK, works on sane cases. Now check whether nonexistent headers
7784 # can be detected and how.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787#include <ac_nonexistent.h>
7788_ACEOF
7789if ac_fn_cxx_try_cpp "$LINENO"; then :
7790 # Broken: success on invalid input.
7791continue
7792else
7793 # Passes both tests.
7794ac_preproc_ok=:
7795break
7796fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007797rm -f conftest.err conftest.i conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007798
7799done
7800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00007801rm -f conftest.i conftest.err conftest.$ac_ext
jimblandy92b1f832009-12-23 22:23:49 +00007802if $ac_preproc_ok; then :
7803
7804else
7805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7807_lt_caught_CXX_error=yes; }
7808fi
7809
7810ac_ext=c
7811ac_cpp='$CPP $CPPFLAGS'
7812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815
7816else
7817 _lt_caught_CXX_error=yes
7818fi
7819
7820
7821
7822
7823
7824# Set options
7825
7826
7827
7828 enable_dlopen=no
7829
7830
7831 enable_win32_dll=no
7832
7833
7834 # Check whether --enable-shared was given.
7835if test "${enable_shared+set}" = set; then :
7836 enableval=$enable_shared; p=${PACKAGE-default}
7837 case $enableval in
7838 yes) enable_shared=yes ;;
7839 no) enable_shared=no ;;
7840 *)
7841 enable_shared=no
7842 # Look at the argument we got. We use all the common list separators.
7843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7844 for pkg in $enableval; do
7845 IFS="$lt_save_ifs"
7846 if test "X$pkg" = "X$p"; then
7847 enable_shared=yes
7848 fi
7849 done
7850 IFS="$lt_save_ifs"
7851 ;;
7852 esac
7853else
7854 enable_shared=yes
7855fi
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 # Check whether --enable-static was given.
7866if test "${enable_static+set}" = set; then :
7867 enableval=$enable_static; p=${PACKAGE-default}
7868 case $enableval in
7869 yes) enable_static=yes ;;
7870 no) enable_static=no ;;
7871 *)
7872 enable_static=no
7873 # Look at the argument we got. We use all the common list separators.
7874 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7875 for pkg in $enableval; do
7876 IFS="$lt_save_ifs"
7877 if test "X$pkg" = "X$p"; then
7878 enable_static=yes
7879 fi
7880 done
7881 IFS="$lt_save_ifs"
7882 ;;
7883 esac
7884else
7885 enable_static=yes
7886fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897# Check whether --with-pic was given.
7898if test "${with_pic+set}" = set; then :
7899 withval=$with_pic; pic_mode="$withval"
7900else
7901 pic_mode=default
7902fi
7903
7904
7905test -z "$pic_mode" && pic_mode=default
7906
7907
7908
7909
7910
7911
7912
7913 # Check whether --enable-fast-install was given.
7914if test "${enable_fast_install+set}" = set; then :
7915 enableval=$enable_fast_install; p=${PACKAGE-default}
7916 case $enableval in
7917 yes) enable_fast_install=yes ;;
7918 no) enable_fast_install=no ;;
7919 *)
7920 enable_fast_install=no
7921 # Look at the argument we got. We use all the common list separators.
7922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7923 for pkg in $enableval; do
7924 IFS="$lt_save_ifs"
7925 if test "X$pkg" = "X$p"; then
7926 enable_fast_install=yes
7927 fi
7928 done
7929 IFS="$lt_save_ifs"
7930 ;;
7931 esac
7932else
7933 enable_fast_install=yes
7934fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946# This can be used to rebuild libtool when needed
7947LIBTOOL_DEPS="$ltmain"
7948
7949# Always use our own libtool.
7950LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991if test -n "${ZSH_VERSION+set}" ; then
7992 setopt NO_GLOB_SUBST
7993fi
7994
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996$as_echo_n "checking for objdir... " >&6; }
7997if test "${lt_cv_objdir+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00007999else
8000 rm -f .libs 2>/dev/null
8001mkdir .libs 2>/dev/null
8002if test -d .libs; then
8003 lt_cv_objdir=.libs
8004else
8005 # MS-DOS does not allow filenames that begin with a dot.
8006 lt_cv_objdir=_libs
8007fi
8008rmdir .libs 2>/dev/null
8009fi
jimblandy92b1f832009-12-23 22:23:49 +00008010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011$as_echo "$lt_cv_objdir" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008012objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
jimblandy92b1f832009-12-23 22:23:49 +00008018cat >>confdefs.h <<_ACEOF
8019#define LT_OBJDIR "$lt_cv_objdir/"
8020_ACEOF
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
brynercb91a2f2006-08-25 21:14:45 +00008038case $host_os in
8039aix3*)
8040 # AIX sometimes has problems with the GCC collect2 program. For some
8041 # reason, if we set the COLLECT_NAMES environment variable, the problems
8042 # vanish in a puff of smoke.
8043 if test "X${COLLECT_NAMES+set}" != Xset; then
8044 COLLECT_NAMES=
8045 export COLLECT_NAMES
8046 fi
8047 ;;
8048esac
8049
8050# Sed substitution that helps us do robust quoting. It backslashifies
8051# metacharacters that are still active within double-quoted strings.
jimblandy92b1f832009-12-23 22:23:49 +00008052sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008053
8054# Same as above, but do not quote variable references.
jimblandy92b1f832009-12-23 22:23:49 +00008055double_quote_subst='s/\(["`\\]\)/\\\1/g'
brynercb91a2f2006-08-25 21:14:45 +00008056
8057# Sed substitution to delay expansion of an escaped shell variable in a
8058# double_quote_subst'ed string.
8059delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8060
jimblandy92b1f832009-12-23 22:23:49 +00008061# Sed substitution to delay expansion of an escaped single quote.
8062delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8063
brynercb91a2f2006-08-25 21:14:45 +00008064# Sed substitution to avoid accidental globbing in evaled expressions
8065no_glob_subst='s/\*/\\\*/g'
8066
brynercb91a2f2006-08-25 21:14:45 +00008067# Global variables:
jimblandy92b1f832009-12-23 22:23:49 +00008068ofile=libtool
brynercb91a2f2006-08-25 21:14:45 +00008069can_build_shared=yes
8070
mmentovai8c2a4de2006-09-20 16:20:15 +00008071# All known linkers require a `.a' archive for static linking (except MSVC,
brynercb91a2f2006-08-25 21:14:45 +00008072# which needs '.lib').
8073libext=a
jimblandy92b1f832009-12-23 22:23:49 +00008074
brynercb91a2f2006-08-25 21:14:45 +00008075with_gnu_ld="$lt_cv_prog_gnu_ld"
8076
brynercb91a2f2006-08-25 21:14:45 +00008077old_CC="$CC"
8078old_CFLAGS="$CFLAGS"
8079
8080# Set sane defaults for various variables
brynercb91a2f2006-08-25 21:14:45 +00008081test -z "$CC" && CC=cc
8082test -z "$LTCC" && LTCC=$CC
mmentovai8c2a4de2006-09-20 16:20:15 +00008083test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
brynercb91a2f2006-08-25 21:14:45 +00008084test -z "$LD" && LD=ld
brynercb91a2f2006-08-25 21:14:45 +00008085test -z "$ac_objext" && ac_objext=o
8086
mmentovai8c2a4de2006-09-20 16:20:15 +00008087for cc_temp in $compiler""; do
8088 case $cc_temp in
8089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8091 \-*) ;;
8092 *) break;;
8093 esac
8094done
jimblandy92b1f832009-12-23 22:23:49 +00008095cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +00008096
8097
brynercb91a2f2006-08-25 21:14:45 +00008098# Only perform the check for file, if the check method requires it
jimblandy92b1f832009-12-23 22:23:49 +00008099test -z "$MAGIC_CMD" && MAGIC_CMD=file
brynercb91a2f2006-08-25 21:14:45 +00008100case $deplibs_check_method in
8101file_magic*)
8102 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
jimblandy92b1f832009-12-23 22:23:49 +00008103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8104$as_echo_n "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file; then
8120 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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
8164
8165
8166
brynercb91a2f2006-08-25 21:14:45 +00008167if test -z "$lt_cv_path_MAGIC_CMD"; then
8168 if test -n "$ac_tool_prefix"; then
jimblandy92b1f832009-12-23 22:23:49 +00008169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8170$as_echo_n "checking for file... " >&6; }
8171if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008173else
8174 case $MAGIC_CMD in
8175[\\/*] | ?:[\\/]*)
8176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8177 ;;
8178*)
8179 lt_save_MAGIC_CMD="$MAGIC_CMD"
8180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8182 for ac_dir in $ac_dummy; do
8183 IFS="$lt_save_ifs"
8184 test -z "$ac_dir" && ac_dir=.
8185 if test -f $ac_dir/file; then
8186 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8187 if test -n "$file_magic_test_file"; then
8188 case $deplibs_check_method in
8189 "file_magic "*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
brynercb91a2f2006-08-25 21:14:45 +00008191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8193 $EGREP "$file_magic_regex" > /dev/null; then
8194 :
8195 else
jimblandy92b1f832009-12-23 22:23:49 +00008196 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008197
8198*** Warning: the command libtool uses to detect shared libraries,
8199*** $file_magic_cmd, produces output that libtool cannot recognize.
8200*** The result is that libtool may fail to recognize shared libraries
8201*** as such. This will affect the creation of libtool libraries that
8202*** depend on shared libraries, but programs linked with such libtool
8203*** libraries will work regardless of this problem. Nevertheless, you
8204*** may want to report the problem to your system manager and/or to
8205*** bug-libtool@gnu.org
8206
jimblandy92b1f832009-12-23 22:23:49 +00008207_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008208 fi ;;
8209 esac
8210 fi
8211 break
8212 fi
8213 done
8214 IFS="$lt_save_ifs"
8215 MAGIC_CMD="$lt_save_MAGIC_CMD"
8216 ;;
8217esac
8218fi
8219
8220MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8221if test -n "$MAGIC_CMD"; then
jimblandy92b1f832009-12-23 22:23:49 +00008222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8223$as_echo "$MAGIC_CMD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008224else
jimblandy92b1f832009-12-23 22:23:49 +00008225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008227fi
8228
jimblandy92b1f832009-12-23 22:23:49 +00008229
brynercb91a2f2006-08-25 21:14:45 +00008230 else
8231 MAGIC_CMD=:
8232 fi
8233fi
8234
8235 fi
8236 ;;
8237esac
8238
brynercb91a2f2006-08-25 21:14:45 +00008239# Use C for the default configuration in the libtool script
jimblandy92b1f832009-12-23 22:23:49 +00008240
brynercb91a2f2006-08-25 21:14:45 +00008241lt_save_CC="$CC"
8242ac_ext=c
8243ac_cpp='$CPP $CPPFLAGS'
8244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8246ac_compiler_gnu=$ac_cv_c_compiler_gnu
8247
8248
8249# Source file extension for C test sources.
8250ac_ext=c
8251
8252# Object file extension for compiled C test sources.
8253objext=o
8254objext=$objext
8255
8256# Code to be used in simple compile tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008257lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +00008258
8259# Code to be used in simple link tests
ted.mielczarek1adb1842009-12-21 13:12:20 +00008260lt_simple_link_test_code='int main(){return(0);}'
brynercb91a2f2006-08-25 21:14:45 +00008261
8262
jimblandy92b1f832009-12-23 22:23:49 +00008263
8264
8265
8266
8267
brynercb91a2f2006-08-25 21:14:45 +00008268# If no C compiler was specified, use CC.
8269LTCC=${LTCC-"$CC"}
8270
mmentovai8c2a4de2006-09-20 16:20:15 +00008271# If no C compiler flags were specified, use CFLAGS.
8272LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8273
brynercb91a2f2006-08-25 21:14:45 +00008274# Allow CC to be a program name with arguments.
8275compiler=$CC
8276
jimblandy92b1f832009-12-23 22:23:49 +00008277# Save the default compiler, since it gets overwritten when the other
8278# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8279compiler_DEFAULT=$CC
brynercb91a2f2006-08-25 21:14:45 +00008280
mmentovai8c2a4de2006-09-20 16:20:15 +00008281# save warnings/boilerplate of simple test code
8282ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008283echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008286$RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008287
mmentovai8c2a4de2006-09-20 16:20:15 +00008288ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008289echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8291_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +00008292$RM -r conftest*
brynercb91a2f2006-08-25 21:14:45 +00008293
8294
ted.mielczarek53a8b1a2010-08-31 15:09:01 +00008295## CAVEAT EMPTOR:
8296## There is no encapsulation within the following macros, do not change
8297## the running order or otherwise move them around unless you know exactly
8298## what you are doing...
jimblandy92b1f832009-12-23 22:23:49 +00008299if test -n "$compiler"; then
brynercb91a2f2006-08-25 21:14:45 +00008300
8301lt_prog_compiler_no_builtin_flag=
8302
8303if test "$GCC" = yes; then
8304 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8305
jimblandy92b1f832009-12-23 22:23:49 +00008306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8307$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8308if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008310else
8311 lt_cv_prog_compiler_rtti_exceptions=no
jimblandy92b1f832009-12-23 22:23:49 +00008312 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008314 lt_compiler_flag="-fno-rtti -fno-exceptions"
8315 # Insert the option either (1) after the last *FLAGS variable, or
8316 # (2) before a word containing "conftest.", or (3) at the end.
8317 # Note that $ac_compile itself does not contain backslashes and begins
8318 # with a dollar sign (not a hyphen), so the echo should work correctly.
8319 # The option is referenced via a variable to avoid confusing sed.
8320 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8323 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008324 (eval echo "\"\$as_me:8324: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008325 (eval "$lt_compile" 2>conftest.err)
8326 ac_status=$?
8327 cat conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008328 echo "$as_me:8328: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008329 if (exit $ac_status) && test -s "$ac_outfile"; then
8330 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008331 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008332 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008335 lt_cv_prog_compiler_rtti_exceptions=yes
8336 fi
8337 fi
jimblandy92b1f832009-12-23 22:23:49 +00008338 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008339
8340fi
jimblandy92b1f832009-12-23 22:23:49 +00008341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8342$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008343
8344if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8345 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8346else
8347 :
8348fi
8349
8350fi
8351
jimblandy92b1f832009-12-23 22:23:49 +00008352
8353
8354
8355
8356
8357 lt_prog_compiler_wl=
brynercb91a2f2006-08-25 21:14:45 +00008358lt_prog_compiler_pic=
8359lt_prog_compiler_static=
8360
jimblandy92b1f832009-12-23 22:23:49 +00008361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8362$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008363
8364 if test "$GCC" = yes; then
8365 lt_prog_compiler_wl='-Wl,'
8366 lt_prog_compiler_static='-static'
8367
8368 case $host_os in
8369 aix*)
8370 # All AIX code is PIC.
8371 if test "$host_cpu" = ia64; then
8372 # AIX 5 now supports IA64 processor
8373 lt_prog_compiler_static='-Bstatic'
8374 fi
8375 ;;
8376
8377 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008378 case $host_cpu in
8379 powerpc)
8380 # see comment about AmigaOS4 .so support
8381 lt_prog_compiler_pic='-fPIC'
8382 ;;
8383 m68k)
8384 # FIXME: we need at least 68020 code to build shared libraries, but
8385 # adding the `-m68020' flag to GCC prevents building anything better,
8386 # like `-m68040'.
8387 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8388 ;;
8389 esac
brynercb91a2f2006-08-25 21:14:45 +00008390 ;;
8391
ted.mielczarek1adb1842009-12-21 13:12:20 +00008392 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +00008393 # PIC is the default for these OSes.
8394 ;;
8395
jimblandy92b1f832009-12-23 22:23:49 +00008396 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008397 # This hack is so that the source file can tell whether it is being
8398 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +00008399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8400 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +00008401 lt_prog_compiler_pic='-DDLL_EXPORT'
8402 ;;
8403
8404 darwin* | rhapsody*)
8405 # PIC is the default on this platform
8406 # Common symbols not allowed in MH_DYLIB files
8407 lt_prog_compiler_pic='-fno-common'
8408 ;;
8409
jimblandy92b1f832009-12-23 22:23:49 +00008410 hpux*)
8411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8413 # sets the default TLS model and affects inlining.
8414 case $host_cpu in
8415 hppa*64*)
8416 # +Z the default
8417 ;;
8418 *)
8419 lt_prog_compiler_pic='-fPIC'
8420 ;;
8421 esac
8422 ;;
8423
ted.mielczarek1adb1842009-12-21 13:12:20 +00008424 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00008425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8426 # Instead, we relocate shared libraries at runtime.
8427 ;;
8428
brynercb91a2f2006-08-25 21:14:45 +00008429 msdosdjgpp*)
8430 # Just because we use GCC doesn't mean we suddenly get shared libraries
8431 # on systems that don't support them.
8432 lt_prog_compiler_can_build_shared=no
8433 enable_shared=no
8434 ;;
8435
jimblandy92b1f832009-12-23 22:23:49 +00008436 *nto* | *qnx*)
8437 # QNX uses GNU C++, but need to define -shared option too, otherwise
8438 # it will coredump.
8439 lt_prog_compiler_pic='-fPIC -shared'
8440 ;;
8441
brynercb91a2f2006-08-25 21:14:45 +00008442 sysv4*MP*)
8443 if test -d /usr/nec; then
8444 lt_prog_compiler_pic=-Kconform_pic
8445 fi
8446 ;;
8447
brynercb91a2f2006-08-25 21:14:45 +00008448 *)
8449 lt_prog_compiler_pic='-fPIC'
8450 ;;
8451 esac
8452 else
8453 # PORTME Check for flag to pass linker flags through the system compiler.
8454 case $host_os in
8455 aix*)
8456 lt_prog_compiler_wl='-Wl,'
8457 if test "$host_cpu" = ia64; then
8458 # AIX 5 now supports IA64 processor
8459 lt_prog_compiler_static='-Bstatic'
8460 else
8461 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8462 fi
8463 ;;
8464
jimblandy92b1f832009-12-23 22:23:49 +00008465 mingw* | cygwin* | pw32* | os2* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008466 # This hack is so that the source file can tell whether it is being
8467 # built for inclusion in a dll (and should export symbols for example).
8468 lt_prog_compiler_pic='-DDLL_EXPORT'
8469 ;;
8470
8471 hpux9* | hpux10* | hpux11*)
8472 lt_prog_compiler_wl='-Wl,'
8473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8474 # not for PA HP-UX.
mmentovai8c2a4de2006-09-20 16:20:15 +00008475 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +00008476 hppa*64*|ia64*)
8477 # +Z the default
8478 ;;
8479 *)
8480 lt_prog_compiler_pic='+Z'
8481 ;;
8482 esac
8483 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8484 lt_prog_compiler_static='${wl}-a ${wl}archive'
8485 ;;
8486
8487 irix5* | irix6* | nonstopux*)
8488 lt_prog_compiler_wl='-Wl,'
8489 # PIC (with -KPIC) is the default.
8490 lt_prog_compiler_static='-non_shared'
8491 ;;
8492
ted.mielczarekb2236272010-04-08 23:06:23 +00008493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
mmentovai8c2a4de2006-09-20 16:20:15 +00008494 case $cc_basename in
jimblandy92b1f832009-12-23 22:23:49 +00008495 # old Intel for x86_64 which still supported -KPIC.
8496 ecc*)
brynercb91a2f2006-08-25 21:14:45 +00008497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-static'
8500 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008501 # icc used to be incompatible with GCC.
8502 # ICC 10 doesn't accept -KPIC any more.
8503 icc* | ifort*)
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fPIC'
8506 lt_prog_compiler_static='-static'
8507 ;;
8508 # Lahey Fortran 8.1.
8509 lf95*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='--shared'
8512 lt_prog_compiler_static='--static'
8513 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008514 pgcc* | pgf77* | pgf90* | pgf95*)
8515 # Portland Group compilers (*not* the Pentium gcc compiler,
8516 # which looks to be a dead project)
8517 lt_prog_compiler_wl='-Wl,'
8518 lt_prog_compiler_pic='-fpic'
8519 lt_prog_compiler_static='-Bstatic'
8520 ;;
brynercb91a2f2006-08-25 21:14:45 +00008521 ccc*)
8522 lt_prog_compiler_wl='-Wl,'
8523 # All Alpha code is PIC.
8524 lt_prog_compiler_static='-non_shared'
8525 ;;
jimblandy92b1f832009-12-23 22:23:49 +00008526 xl*)
8527 # IBM XL C 8.0/Fortran 10.1 on PPC
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_pic='-qpic'
8530 lt_prog_compiler_static='-qstaticlink'
8531 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00008532 *)
jimblandy92b1f832009-12-23 22:23:49 +00008533 case `$CC -V 2>&1 | sed 5q` in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008534 *Sun\ C*)
8535 # Sun C 5.9
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl='-Wl,'
8539 ;;
8540 *Sun\ F*)
8541 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_wl=''
8545 ;;
8546 esac
8547 ;;
brynercb91a2f2006-08-25 21:14:45 +00008548 esac
8549 ;;
8550
jimblandy92b1f832009-12-23 22:23:49 +00008551 newsos6)
8552 lt_prog_compiler_pic='-KPIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555
8556 *nto* | *qnx*)
8557 # QNX uses GNU C++, but need to define -shared option too, otherwise
8558 # it will coredump.
8559 lt_prog_compiler_pic='-fPIC -shared'
8560 ;;
8561
brynercb91a2f2006-08-25 21:14:45 +00008562 osf3* | osf4* | osf5*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # All OSF/1 code is PIC.
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567
ted.mielczarek1adb1842009-12-21 13:12:20 +00008568 rdos*)
8569 lt_prog_compiler_static='-non_shared'
8570 ;;
8571
brynercb91a2f2006-08-25 21:14:45 +00008572 solaris*)
brynercb91a2f2006-08-25 21:14:45 +00008573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
mmentovai8c2a4de2006-09-20 16:20:15 +00008575 case $cc_basename in
8576 f77* | f90* | f95*)
8577 lt_prog_compiler_wl='-Qoption ld ';;
8578 *)
8579 lt_prog_compiler_wl='-Wl,';;
8580 esac
brynercb91a2f2006-08-25 21:14:45 +00008581 ;;
8582
8583 sunos4*)
8584 lt_prog_compiler_wl='-Qoption ld '
8585 lt_prog_compiler_pic='-PIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
mmentovai8c2a4de2006-09-20 16:20:15 +00008589 sysv4 | sysv4.2uw2* | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +00008590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 ;;
8594
8595 sysv4*MP*)
8596 if test -d /usr/nec ;then
8597 lt_prog_compiler_pic='-Kconform_pic'
8598 lt_prog_compiler_static='-Bstatic'
8599 fi
8600 ;;
8601
mmentovai8c2a4de2006-09-20 16:20:15 +00008602 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='-KPIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 ;;
8607
8608 unicos*)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_can_build_shared=no
8611 ;;
8612
brynercb91a2f2006-08-25 21:14:45 +00008613 uts4*)
8614 lt_prog_compiler_pic='-pic'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 *)
8619 lt_prog_compiler_can_build_shared=no
8620 ;;
8621 esac
8622 fi
8623
jimblandy92b1f832009-12-23 22:23:49 +00008624case $host_os in
8625 # For platforms which do not support PIC, -DPIC is meaningless:
8626 *djgpp*)
8627 lt_prog_compiler_pic=
8628 ;;
8629 *)
8630 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8631 ;;
8632esac
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8634$as_echo "$lt_prog_compiler_pic" >&6; }
8635
8636
8637
8638
8639
brynercb91a2f2006-08-25 21:14:45 +00008640
8641#
8642# Check to make sure the PIC flag actually works.
8643#
8644if test -n "$lt_prog_compiler_pic"; then
jimblandy92b1f832009-12-23 22:23:49 +00008645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8646$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8647if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008649else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008650 lt_cv_prog_compiler_pic_works=no
jimblandy92b1f832009-12-23 22:23:49 +00008651 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +00008652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008653 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8654 # Insert the option either (1) after the last *FLAGS variable, or
8655 # (2) before a word containing "conftest.", or (3) at the end.
8656 # Note that $ac_compile itself does not contain backslashes and begins
8657 # with a dollar sign (not a hyphen), so the echo should work correctly.
8658 # The option is referenced via a variable to avoid confusing sed.
8659 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008663 (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008664 (eval "$lt_compile" 2>conftest.err)
8665 ac_status=$?
8666 cat conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008667 echo "$as_me:8667: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008668 if (exit $ac_status) && test -s "$ac_outfile"; then
8669 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +00008670 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +00008671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008674 lt_cv_prog_compiler_pic_works=yes
brynercb91a2f2006-08-25 21:14:45 +00008675 fi
8676 fi
jimblandy92b1f832009-12-23 22:23:49 +00008677 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008678
8679fi
jimblandy92b1f832009-12-23 22:23:49 +00008680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8681$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008682
ted.mielczarek1adb1842009-12-21 13:12:20 +00008683if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +00008684 case $lt_prog_compiler_pic in
8685 "" | " "*) ;;
8686 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8687 esac
8688else
8689 lt_prog_compiler_pic=
8690 lt_prog_compiler_can_build_shared=no
8691fi
8692
8693fi
jimblandy92b1f832009-12-23 22:23:49 +00008694
8695
8696
8697
8698
brynercb91a2f2006-08-25 21:14:45 +00008699
mmentovai8c2a4de2006-09-20 16:20:15 +00008700#
8701# Check to make sure the static flag actually works.
8702#
8703wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +00008704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8705$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8706if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +00008708else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008709 lt_cv_prog_compiler_static_works=no
mmentovai8c2a4de2006-09-20 16:20:15 +00008710 save_LDFLAGS="$LDFLAGS"
8711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +00008712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +00008713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8714 # The linker can only warn and ignore the option if not recognized
8715 # So say no if there are warnings
8716 if test -s conftest.err; then
8717 # Append any errors to the config.log.
8718 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +00008719 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8721 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +00008722 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008723 fi
8724 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00008725 lt_cv_prog_compiler_static_works=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00008726 fi
8727 fi
jimblandy92b1f832009-12-23 22:23:49 +00008728 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +00008729 LDFLAGS="$save_LDFLAGS"
8730
8731fi
jimblandy92b1f832009-12-23 22:23:49 +00008732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8733$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +00008734
ted.mielczarek1adb1842009-12-21 13:12:20 +00008735if test x"$lt_cv_prog_compiler_static_works" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00008736 :
8737else
8738 lt_prog_compiler_static=
8739fi
8740
8741
jimblandy92b1f832009-12-23 22:23:49 +00008742
8743
8744
8745
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8748$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8749if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +00008751else
8752 lt_cv_prog_compiler_c_o=no
jimblandy92b1f832009-12-23 22:23:49 +00008753 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +00008754 mkdir conftest
8755 cd conftest
8756 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +00008757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00008758
8759 lt_compiler_flag="-o out/conftest2.$ac_objext"
8760 # Insert the option either (1) after the last *FLAGS variable, or
8761 # (2) before a word containing "conftest.", or (3) at the end.
8762 # Note that $ac_compile itself does not contain backslashes and begins
8763 # with a dollar sign (not a hyphen), so the echo should work correctly.
8764 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +00008765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +00008766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8767 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008768 (eval echo "\"\$as_me:8768: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +00008769 (eval "$lt_compile" 2>out/conftest.err)
8770 ac_status=$?
8771 cat out/conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008772 echo "$as_me:8772: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +00008773 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8774 then
8775 # The compiler can only warn and ignore the option if not recognized
8776 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +00008777 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +00008778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00008780 lt_cv_prog_compiler_c_o=yes
8781 fi
8782 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00008783 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +00008784 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008785 # SGI C++ compiler will create directory out/ii_files/ for
8786 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +00008787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8788 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +00008789 cd ..
jimblandy92b1f832009-12-23 22:23:49 +00008790 $RM -r conftest
8791 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008792
8793fi
jimblandy92b1f832009-12-23 22:23:49 +00008794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8795$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8796
8797
8798
8799
8800
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8803$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8804if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806else
8807 lt_cv_prog_compiler_c_o=no
8808 $RM -r conftest 2>/dev/null
8809 mkdir conftest
8810 cd conftest
8811 mkdir out
8812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813
8814 lt_compiler_flag="-o out/conftest2.$ac_objext"
8815 # Insert the option either (1) after the last *FLAGS variable, or
8816 # (2) before a word containing "conftest.", or (3) at the end.
8817 # Note that $ac_compile itself does not contain backslashes and begins
8818 # with a dollar sign (not a hyphen), so the echo should work correctly.
8819 lt_compile=`echo "$ac_compile" | $SED \
8820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8822 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008823 (eval echo "\"\$as_me:8823: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +00008824 (eval "$lt_compile" 2>out/conftest.err)
8825 ac_status=$?
8826 cat out/conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +00008827 echo "$as_me:8827: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +00008828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8829 then
8830 # The compiler can only warn and ignore the option if not recognized
8831 # So say no if there are warnings
8832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8835 lt_cv_prog_compiler_c_o=yes
8836 fi
8837 fi
8838 chmod u+w . 2>&5
8839 $RM conftest*
8840 # SGI C++ compiler will create directory out/ii_files/ for
8841 # template instantiation
8842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8843 $RM out/* && rmdir out
8844 cd ..
8845 $RM -r conftest
8846 $RM conftest*
8847
8848fi
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8850$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8851
8852
brynercb91a2f2006-08-25 21:14:45 +00008853
8854
8855hard_links="nottested"
8856if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8857 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +00008858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8859$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008860 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +00008861 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +00008862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8863 touch conftest.a
8864 ln conftest.a conftest.b 2>&5 || hard_links=no
8865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +00008866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8867$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008868 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +00008869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8870$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +00008871 need_locks=warn
8872 fi
8873else
8874 need_locks=no
8875fi
8876
jimblandy92b1f832009-12-23 22:23:49 +00008877
8878
8879
8880
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8883$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +00008884
8885 runpath_var=
8886 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00008887 always_export_symbols=no
brynercb91a2f2006-08-25 21:14:45 +00008888 archive_cmds=
8889 archive_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008890 compiler_needs_object=no
8891 enable_shared_with_static_runtimes=no
brynercb91a2f2006-08-25 21:14:45 +00008892 export_dynamic_flag_spec=
jimblandy92b1f832009-12-23 22:23:49 +00008893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8894 hardcode_automatic=no
8895 hardcode_direct=no
8896 hardcode_direct_absolute=no
brynercb91a2f2006-08-25 21:14:45 +00008897 hardcode_libdir_flag_spec=
8898 hardcode_libdir_flag_spec_ld=
8899 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00008900 hardcode_minus_L=no
8901 hardcode_shlibpath_var=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00008902 inherit_rpath=no
brynercb91a2f2006-08-25 21:14:45 +00008903 link_all_deplibs=unknown
brynercb91a2f2006-08-25 21:14:45 +00008904 module_cmds=
8905 module_expsym_cmds=
jimblandy92b1f832009-12-23 22:23:49 +00008906 old_archive_from_new_cmds=
8907 old_archive_from_expsyms_cmds=
8908 thread_safe_flag_spec=
8909 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00008910 # include_expsyms should be a list of space-separated symbols to be *always*
8911 # included in the symbol list
8912 include_expsyms=
8913 # exclude_expsyms can be an extended regexp of symbols to exclude
8914 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8915 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8916 # as well as any symbol that contains `d'.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008917 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +00008918 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8919 # platforms (ab)use it in PIC code, but their linkers get confused if
8920 # the symbol is explicitly referenced. Since portable code cannot
8921 # rely on this symbol name, it's probably fine to never include it in
8922 # preloaded symbol tables.
ted.mielczarek1adb1842009-12-21 13:12:20 +00008923 # Exclude shared library initialization/finalization symbols.
brynercb91a2f2006-08-25 21:14:45 +00008924 extract_expsyms_cmds=
8925
8926 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +00008927 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00008928 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8929 # When not using gcc, we currently assume that we are using
8930 # Microsoft Visual C++.
8931 if test "$GCC" != yes; then
8932 with_gnu_ld=no
8933 fi
8934 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008935 interix*)
8936 # we just hope/assume this is gcc and not c89 (= MSVC++)
8937 with_gnu_ld=yes
8938 ;;
brynercb91a2f2006-08-25 21:14:45 +00008939 openbsd*)
8940 with_gnu_ld=no
8941 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +00008942 linux* | k*bsd*-gnu)
8943 link_all_deplibs=no
8944 ;;
brynercb91a2f2006-08-25 21:14:45 +00008945 esac
8946
8947 ld_shlibs=yes
8948 if test "$with_gnu_ld" = yes; then
8949 # If archive_cmds runs LD, not CC, wlarc should be empty
8950 wlarc='${wl}'
8951
mmentovai8c2a4de2006-09-20 16:20:15 +00008952 # Set some defaults for GNU ld with shared library support. These
8953 # are reset later if shared libraries are not supported. Putting them
8954 # here allows them to be overridden if necessary.
8955 runpath_var=LD_RUN_PATH
jimblandy92b1f832009-12-23 22:23:49 +00008956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00008957 export_dynamic_flag_spec='${wl}--export-dynamic'
8958 # ancient GNU ld didn't support --whole-archive et. al.
jimblandy92b1f832009-12-23 22:23:49 +00008959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8960 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8961 else
8962 whole_archive_flag_spec=
mmentovai8c2a4de2006-09-20 16:20:15 +00008963 fi
8964 supports_anon_versioning=no
jimblandy92b1f832009-12-23 22:23:49 +00008965 case `$LD -v 2>&1` in
ted.mielczarekb2236272010-04-08 23:06:23 +00008966 *GNU\ gold*) supports_anon_versioning=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00008967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8970 *\ 2.11.*) ;; # other 2.11 versions
8971 *) supports_anon_versioning=yes ;;
8972 esac
8973
brynercb91a2f2006-08-25 21:14:45 +00008974 # See if GNU ld supports shared libraries.
8975 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +00008976 aix[3-9]*)
brynercb91a2f2006-08-25 21:14:45 +00008977 # On AIX/PPC, the GNU linker is very broken
8978 if test "$host_cpu" != ia64; then
8979 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00008980 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00008981
8982*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8983*** to be unable to reliably create shared libraries on AIX.
8984*** Therefore, libtool is disabling shared libraries support. If you
8985*** really care for shared libraries, you may want to modify your PATH
8986*** so that a non-GNU linker is found, and then restart.
8987
jimblandy92b1f832009-12-23 22:23:49 +00008988_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +00008989 fi
8990 ;;
8991
8992 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00008993 case $host_cpu in
8994 powerpc)
8995 # see comment about AmigaOS4 .so support
8996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8997 archive_expsym_cmds=''
8998 ;;
8999 m68k)
9000 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)'
9001 hardcode_libdir_flag_spec='-L$libdir'
9002 hardcode_minus_L=yes
9003 ;;
9004 esac
brynercb91a2f2006-08-25 21:14:45 +00009005 ;;
9006
9007 beos*)
jimblandy92b1f832009-12-23 22:23:49 +00009008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009009 allow_undefined_flag=unsupported
9010 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9011 # support --undefined. This deserves some investigation. FIXME
9012 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 else
9014 ld_shlibs=no
9015 fi
9016 ;;
9017
jimblandy92b1f832009-12-23 22:23:49 +00009018 cygwin* | mingw* | pw32* | cegcc*)
9019 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
brynercb91a2f2006-08-25 21:14:45 +00009020 # as there is no search path for DLLs.
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 allow_undefined_flag=unsupported
9023 always_export_symbols=no
9024 enable_shared_with_static_runtimes=yes
jimblandy92b1f832009-12-23 22:23:49 +00009025 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 +00009026
jimblandy92b1f832009-12-23 22:23:49 +00009027 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009028 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 +00009029 # If the export-symbols file already is a .def file (1st line
9030 # is EXPORTS), use it as is; otherwise, prepend...
9031 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9032 cp $export_symbols $output_objdir/$soname.def;
9033 else
9034 echo EXPORTS > $output_objdir/$soname.def;
9035 cat $export_symbols >> $output_objdir/$soname.def;
9036 fi~
mmentovai8c2a4de2006-09-20 16:20:15 +00009037 $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 +00009038 else
9039 ld_shlibs=no
9040 fi
9041 ;;
9042
ted.mielczarek1adb1842009-12-21 13:12:20 +00009043 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009044 hardcode_direct=no
9045 hardcode_shlibpath_var=no
9046 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9047 export_dynamic_flag_spec='${wl}-E'
9048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9049 # Instead, shared libraries are loaded at an image base (0x10000000 by
9050 # default) and relocated if they conflict, which is a slow very memory
9051 # consuming and fragmenting process. To avoid this, we pick a random,
9052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9055 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'
9056 ;;
9057
ted.mielczarekb2236272010-04-08 23:06:23 +00009058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009059 tmp_diet=no
9060 if test "$host_os" = linux-dietlibc; then
9061 case $cc_basename in
9062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9063 esac
9064 fi
9065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9066 && test "$tmp_diet" = no
9067 then
mmentovai8c2a4de2006-09-20 16:20:15 +00009068 tmp_addflag=
jimblandy92b1f832009-12-23 22:23:49 +00009069 tmp_sharedflag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009070 case $cc_basename,$host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +00009071 pgcc*) # Portland Group C compiler
9072 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 +00009073 tmp_addflag=' $pic_flag'
9074 ;;
9075 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
jimblandy92b1f832009-12-23 22:23:49 +00009076 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 +00009077 tmp_addflag=' $pic_flag -Mnomain' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
mmentovai8c2a4de2006-09-20 16:20:15 +00009079 tmp_addflag=' -i_dynamic' ;;
9080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9081 tmp_addflag=' -i_dynamic -nofor_main' ;;
9082 ifc* | ifort*) # Intel Fortran compiler
9083 tmp_addflag=' -nofor_main' ;;
jimblandy92b1f832009-12-23 22:23:49 +00009084 lf95*) # Lahey Fortran 8.1
9085 whole_archive_flag_spec=
9086 tmp_sharedflag='--shared' ;;
9087 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9088 tmp_sharedflag='-qmkshrobj'
9089 tmp_addflag= ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009090 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +00009091 case `$CC -V 2>&1 | sed 5q` in
9092 *Sun\ C*) # Sun C 5.9
jimblandy92b1f832009-12-23 22:23:49 +00009093 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'
9094 compiler_needs_object=yes
ted.mielczarek1adb1842009-12-21 13:12:20 +00009095 tmp_sharedflag='-G' ;;
9096 *Sun\ F*) # Sun Fortran 8.3
9097 tmp_sharedflag='-G' ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +00009098 esac
9099 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
mmentovai8c2a4de2006-09-20 16:20:15 +00009100
jimblandy92b1f832009-12-23 22:23:49 +00009101 if test "x$supports_anon_versioning" = xyes; then
9102 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9104 echo "local: *; };" >> $output_objdir/$libname.ver~
9105 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9106 fi
9107
9108 case $cc_basename in
9109 xlf*)
9110 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9111 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9112 hardcode_libdir_flag_spec=
9113 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9114 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9115 if test "x$supports_anon_versioning" = xyes; then
9116 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9117 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9118 echo "local: *; };" >> $output_objdir/$libname.ver~
9119 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9120 fi
9121 ;;
9122 esac
mmentovai8c2a4de2006-09-20 16:20:15 +00009123 else
jimblandy92b1f832009-12-23 22:23:49 +00009124 ld_shlibs=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009125 fi
9126 ;;
9127
ted.mielczarekb2236272010-04-08 23:06:23 +00009128 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009130 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9131 wlarc=
9132 else
9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 fi
9136 ;;
9137
mmentovai8c2a4de2006-09-20 16:20:15 +00009138 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009139 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009140 ld_shlibs=no
jimblandy92b1f832009-12-23 22:23:49 +00009141 cat <<_LT_EOF 1>&2
brynercb91a2f2006-08-25 21:14:45 +00009142
9143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9144*** create shared libraries on Solaris systems. Therefore, libtool
9145*** is disabling shared libraries support. We urge you to upgrade GNU
9146*** binutils to release 2.9.1 or newer. Another option is to modify
9147*** your PATH or compiler configuration so that the native linker is
9148*** used, and then restart.
9149
jimblandy92b1f832009-12-23 22:23:49 +00009150_LT_EOF
9151 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9154 else
9155 ld_shlibs=no
9156 fi
9157 ;;
9158
mmentovai8c2a4de2006-09-20 16:20:15 +00009159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9160 case `$LD -v 2>&1` in
9161 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9162 ld_shlibs=no
9163 cat <<_LT_EOF 1>&2
9164
9165*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9166*** reliably create shared libraries on SCO systems. Therefore, libtool
9167*** is disabling shared libraries support. We urge you to upgrade GNU
9168*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9169*** your PATH or compiler configuration so that the native linker is
9170*** used, and then restart.
9171
9172_LT_EOF
9173 ;;
9174 *)
jimblandy92b1f832009-12-23 22:23:49 +00009175 # For security reasons, it is highly recommended that you always
9176 # use absolute paths for naming shared libraries, and exclude the
9177 # DT_RUNPATH tag from executables and libraries. But doing so
9178 # requires that you compile everything twice, which is a pain.
9179 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 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 +00009183 else
9184 ld_shlibs=no
9185 fi
9186 ;;
9187 esac
9188 ;;
9189
brynercb91a2f2006-08-25 21:14:45 +00009190 sunos4*)
9191 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192 wlarc=
9193 hardcode_direct=yes
9194 hardcode_shlibpath_var=no
9195 ;;
9196
brynercb91a2f2006-08-25 21:14:45 +00009197 *)
jimblandy92b1f832009-12-23 22:23:49 +00009198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9201 else
9202 ld_shlibs=no
9203 fi
9204 ;;
9205 esac
9206
mmentovai8c2a4de2006-09-20 16:20:15 +00009207 if test "$ld_shlibs" = no; then
9208 runpath_var=
9209 hardcode_libdir_flag_spec=
9210 export_dynamic_flag_spec=
9211 whole_archive_flag_spec=
brynercb91a2f2006-08-25 21:14:45 +00009212 fi
9213 else
9214 # PORTME fill in a description of your system's linker (not GNU ld)
9215 case $host_os in
9216 aix3*)
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=yes
9219 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'
9220 # Note: this linker hardcodes the directories in LIBPATH if there
9221 # are no directories specified by -L.
9222 hardcode_minus_L=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009223 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
brynercb91a2f2006-08-25 21:14:45 +00009224 # Neither direct hardcoding nor static linking is supported with a
9225 # broken collect2.
9226 hardcode_direct=unsupported
9227 fi
9228 ;;
9229
ted.mielczarek1adb1842009-12-21 13:12:20 +00009230 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009231 if test "$host_cpu" = ia64; then
9232 # On IA64, the linker does run time linking by default, so we don't
9233 # have to do anything special.
9234 aix_use_runtimelinking=no
9235 exp_sym_flag='-Bexport'
9236 no_entry_flag=""
9237 else
9238 # If we're using GNU nm, then we don't want the "-C" option.
9239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +00009240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9241 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 +00009242 else
jimblandy92b1f832009-12-23 22:23:49 +00009243 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 +00009244 fi
9245 aix_use_runtimelinking=no
9246
9247 # Test if we are trying to use run time linking or normal
9248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249 # need to do runtime linking.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009250 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
brynercb91a2f2006-08-25 21:14:45 +00009251 for ld_flag in $LDFLAGS; do
jimblandy92b1f832009-12-23 22:23:49 +00009252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253 aix_use_runtimelinking=yes
9254 break
9255 fi
brynercb91a2f2006-08-25 21:14:45 +00009256 done
mmentovai8c2a4de2006-09-20 16:20:15 +00009257 ;;
brynercb91a2f2006-08-25 21:14:45 +00009258 esac
9259
9260 exp_sym_flag='-bexport'
9261 no_entry_flag='-bnoentry'
9262 fi
9263
9264 # When large executables or shared objects are built, AIX ld can
9265 # have problems creating the table of contents. If linking a library
9266 # or program results in "error TOC overflow" add -mminimal-toc to
9267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9269
9270 archive_cmds=''
9271 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009272 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009273 hardcode_libdir_separator=':'
9274 link_all_deplibs=yes
jimblandy92b1f832009-12-23 22:23:49 +00009275 file_list_spec='${wl}-f,'
brynercb91a2f2006-08-25 21:14:45 +00009276
9277 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009278 case $host_os in aix4.[012]|aix4.[012].*)
brynercb91a2f2006-08-25 21:14:45 +00009279 # We only want to do this on AIX 4.2 and lower, the check
9280 # below for broken collect2 doesn't work under 4.3+
9281 collect2name=`${CC} -print-prog-name=collect2`
jimblandy92b1f832009-12-23 22:23:49 +00009282 if test -f "$collect2name" &&
9283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
brynercb91a2f2006-08-25 21:14:45 +00009284 then
jimblandy92b1f832009-12-23 22:23:49 +00009285 # We have reworked collect2
9286 :
brynercb91a2f2006-08-25 21:14:45 +00009287 else
jimblandy92b1f832009-12-23 22:23:49 +00009288 # We have old collect2
9289 hardcode_direct=unsupported
9290 # It fails to find uninstalled libraries when the uninstalled
9291 # path is not listed in the libpath. Setting hardcode_minus_L
9292 # to unsupported forces relinking
9293 hardcode_minus_L=yes
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_libdir_separator=
brynercb91a2f2006-08-25 21:14:45 +00009296 fi
mmentovai8c2a4de2006-09-20 16:20:15 +00009297 ;;
brynercb91a2f2006-08-25 21:14:45 +00009298 esac
9299 shared_flag='-shared'
mmentovai8c2a4de2006-09-20 16:20:15 +00009300 if test "$aix_use_runtimelinking" = yes; then
9301 shared_flag="$shared_flag "'${wl}-G'
9302 fi
ted.mielczarekb2236272010-04-08 23:06:23 +00009303 link_all_deplibs=no
brynercb91a2f2006-08-25 21:14:45 +00009304 else
9305 # not using gcc
9306 if test "$host_cpu" = ia64; then
jimblandy92b1f832009-12-23 22:23:49 +00009307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9308 # chokes on -Wl,-G. The following line is correct:
brynercb91a2f2006-08-25 21:14:45 +00009309 shared_flag='-G'
9310 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009311 if test "$aix_use_runtimelinking" = yes; then
brynercb91a2f2006-08-25 21:14:45 +00009312 shared_flag='${wl}-G'
9313 else
9314 shared_flag='${wl}-bM:SRE'
mmentovai8c2a4de2006-09-20 16:20:15 +00009315 fi
brynercb91a2f2006-08-25 21:14:45 +00009316 fi
9317 fi
9318
jimblandy92b1f832009-12-23 22:23:49 +00009319 export_dynamic_flag_spec='${wl}-bexpall'
brynercb91a2f2006-08-25 21:14:45 +00009320 # It seems that -bexpall does not export symbols beginning with
9321 # underscore (_), so it is better to generate a list of symbols to export.
9322 always_export_symbols=yes
9323 if test "$aix_use_runtimelinking" = yes; then
9324 # Warning - without using the other runtime loading flags (-brtl),
9325 # -berok will link without error, but may produce a broken library.
9326 allow_undefined_flag='-berok'
jimblandy92b1f832009-12-23 22:23:49 +00009327 # Determine the default libpath from the value encoded in an
9328 # empty executable.
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009330/* end confdefs.h. */
9331
9332int
9333main ()
9334{
9335
9336 ;
9337 return 0;
9338}
9339_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009340if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009341
ted.mielczarek1adb1842009-12-21 13:12:20 +00009342lt_aix_libpath_sed='
9343 /Import File Strings/,/^$/ {
9344 /^0/ {
9345 s/^0 *\(.*\)$/\1/
9346 p
9347 }
9348 }'
9349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009350# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009351if test -z "$aix_libpath"; then
9352 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353fi
brynercb91a2f2006-08-25 21:14:45 +00009354fi
jimblandy92b1f832009-12-23 22:23:49 +00009355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9358
jimblandy92b1f832009-12-23 22:23:49 +00009359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9360 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"
9361 else
brynercb91a2f2006-08-25 21:14:45 +00009362 if test "$host_cpu" = ia64; then
9363 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9364 allow_undefined_flag="-z nodefs"
mmentovai8c2a4de2006-09-20 16:20:15 +00009365 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 +00009366 else
jimblandy92b1f832009-12-23 22:23:49 +00009367 # Determine the default libpath from the value encoded in an
9368 # empty executable.
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009370/* end confdefs.h. */
9371
9372int
9373main ()
9374{
9375
9376 ;
9377 return 0;
9378}
9379_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +00009380if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +00009381
ted.mielczarek1adb1842009-12-21 13:12:20 +00009382lt_aix_libpath_sed='
9383 /Import File Strings/,/^$/ {
9384 /^0/ {
9385 s/^0 *\(.*\)$/\1/
9386 p
9387 }
9388 }'
9389aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
brynercb91a2f2006-08-25 21:14:45 +00009390# Check for a 64-bit object if we didn't find anything.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009391if test -z "$aix_libpath"; then
9392 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9393fi
brynercb91a2f2006-08-25 21:14:45 +00009394fi
jimblandy92b1f832009-12-23 22:23:49 +00009395rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9398
9399 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9400 # Warning - without using the other run time loading flags,
9401 # -berok will link without error, but may produce a broken library.
9402 no_undefined_flag=' ${wl}-bernotok'
9403 allow_undefined_flag=' ${wl}-berok'
brynercb91a2f2006-08-25 21:14:45 +00009404 # Exported symbols can be pulled into shared objects from archives
mmentovai8c2a4de2006-09-20 16:20:15 +00009405 whole_archive_flag_spec='$convenience'
brynercb91a2f2006-08-25 21:14:45 +00009406 archive_cmds_need_lc=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009407 # This is similar to how AIX traditionally builds its shared libraries.
9408 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 +00009409 fi
9410 fi
9411 ;;
9412
9413 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +00009414 case $host_cpu in
9415 powerpc)
9416 # see comment about AmigaOS4 .so support
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds=''
9419 ;;
9420 m68k)
9421 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)'
9422 hardcode_libdir_flag_spec='-L$libdir'
9423 hardcode_minus_L=yes
9424 ;;
9425 esac
brynercb91a2f2006-08-25 21:14:45 +00009426 ;;
9427
mmentovai8c2a4de2006-09-20 16:20:15 +00009428 bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +00009429 export_dynamic_flag_spec=-rdynamic
9430 ;;
9431
jimblandy92b1f832009-12-23 22:23:49 +00009432 cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +00009433 # When not using gcc, we currently assume that we are using
9434 # Microsoft Visual C++.
9435 # hardcode_libdir_flag_spec is actually meaningless, as there is
9436 # no search path for DLLs.
9437 hardcode_libdir_flag_spec=' '
9438 allow_undefined_flag=unsupported
9439 # Tell ltmain to make .lib files, not .a files.
9440 libext=lib
9441 # Tell ltmain to make .dll files, not .so files.
9442 shrext_cmds=".dll"
9443 # FIXME: Setting linknames here is a bad hack.
jimblandy92b1f832009-12-23 22:23:49 +00009444 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
brynercb91a2f2006-08-25 21:14:45 +00009445 # The linker will automatically build a .lib file if we build a DLL.
jimblandy92b1f832009-12-23 22:23:49 +00009446 old_archive_from_new_cmds='true'
brynercb91a2f2006-08-25 21:14:45 +00009447 # FIXME: Should let the user specify the lib program.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009448 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
brynercb91a2f2006-08-25 21:14:45 +00009449 fix_srcfile_path='`cygpath -w "$srcfile"`'
9450 enable_shared_with_static_runtimes=yes
9451 ;;
9452
9453 darwin* | rhapsody*)
jimblandy92b1f832009-12-23 22:23:49 +00009454
9455
9456 archive_cmds_need_lc=no
9457 hardcode_direct=no
9458 hardcode_automatic=yes
9459 hardcode_shlibpath_var=unsupported
9460 whole_archive_flag_spec=''
9461 link_all_deplibs=yes
9462 allow_undefined_flag="$_lt_dar_allow_undefined"
9463 case $cc_basename in
9464 ifort*) _lt_dar_can_shared=yes ;;
9465 *) _lt_dar_can_shared=$GCC ;;
9466 esac
9467 if test "$_lt_dar_can_shared" = "yes"; then
9468 output_verbose_link_cmd=echo
9469 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9470 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9471 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}"
9472 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}"
9473
9474 else
9475 ld_shlibs=no
9476 fi
9477
brynercb91a2f2006-08-25 21:14:45 +00009478 ;;
9479
9480 dgux*)
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_libdir_flag_spec='-L$libdir'
9483 hardcode_shlibpath_var=no
9484 ;;
9485
9486 freebsd1*)
9487 ld_shlibs=no
9488 ;;
9489
9490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9491 # support. Future versions do this automatically, but an explicit c++rt0.o
9492 # does not break anything, and helps significantly (at the cost of a little
9493 # extra space).
9494 freebsd2.2*)
9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9496 hardcode_libdir_flag_spec='-R$libdir'
9497 hardcode_direct=yes
9498 hardcode_shlibpath_var=no
9499 ;;
9500
9501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9502 freebsd2*)
9503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9504 hardcode_direct=yes
9505 hardcode_minus_L=yes
9506 hardcode_shlibpath_var=no
9507 ;;
9508
9509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ted.mielczarek1adb1842009-12-21 13:12:20 +00009510 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +00009511 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9512 hardcode_libdir_flag_spec='-R$libdir'
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 hpux9*)
9518 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009519 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 +00009520 else
jimblandy92b1f832009-12-23 22:23:49 +00009521 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 +00009522 fi
9523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_direct=yes
9526
9527 # hardcode_minus_L: Not really in the search PATH,
9528 # but as the default location of the library.
9529 hardcode_minus_L=yes
9530 export_dynamic_flag_spec='${wl}-E'
9531 ;;
9532
mmentovai8c2a4de2006-09-20 16:20:15 +00009533 hpux10*)
brynercb91a2f2006-08-25 21:14:45 +00009534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9536 else
9537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9538 fi
9539 if test "$with_gnu_ld" = no; then
9540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
jimblandy92b1f832009-12-23 22:23:49 +00009541 hardcode_libdir_flag_spec_ld='+b $libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009542 hardcode_libdir_separator=:
mmentovai8c2a4de2006-09-20 16:20:15 +00009543 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009544 hardcode_direct_absolute=yes
mmentovai8c2a4de2006-09-20 16:20:15 +00009545 export_dynamic_flag_spec='${wl}-E'
mmentovai8c2a4de2006-09-20 16:20:15 +00009546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9549 fi
9550 ;;
9551
9552 hpux11*)
9553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9554 case $host_cpu in
9555 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +00009556 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009558 ia64*)
jimblandy92b1f832009-12-23 22:23:49 +00009559 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009560 ;;
brynercb91a2f2006-08-25 21:14:45 +00009561 *)
9562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9563 ;;
9564 esac
9565 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009566 case $host_cpu in
9567 hppa*64*)
9568 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9569 ;;
9570 ia64*)
9571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
brynercb91a2f2006-08-25 21:14:45 +00009572 ;;
9573 *)
mmentovai8c2a4de2006-09-20 16:20:15 +00009574 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 +00009575 ;;
9576 esac
9577 fi
9578 if test "$with_gnu_ld" = no; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9580 hardcode_libdir_separator=:
brynerd5e66382006-09-08 02:35:53 +00009581
mmentovai8c2a4de2006-09-20 16:20:15 +00009582 case $host_cpu in
9583 hppa*64*|ia64*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009584 hardcode_direct=no
9585 hardcode_shlibpath_var=no
brynerd5e66382006-09-08 02:35:53 +00009586 ;;
brynercb91a2f2006-08-25 21:14:45 +00009587 *)
brynercb91a2f2006-08-25 21:14:45 +00009588 hardcode_direct=yes
jimblandy92b1f832009-12-23 22:23:49 +00009589 hardcode_direct_absolute=yes
brynercb91a2f2006-08-25 21:14:45 +00009590 export_dynamic_flag_spec='${wl}-E'
9591
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9595 ;;
9596 esac
9597 fi
9598 ;;
9599
9600 irix5* | irix6* | nonstopux*)
9601 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009602 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'
9603 # Try to use the -exported_symbol ld option, if it does not
9604 # work, assume that -exports_file does not work either and
9605 # implicitly export all symbols.
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609/* end confdefs.h. */
9610int foo(void) {}
9611_ACEOF
9612if ac_fn_c_try_link "$LINENO"; then :
9613 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'
9614
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LDFLAGS="$save_LDFLAGS"
brynercb91a2f2006-08-25 21:14:45 +00009619 else
jimblandy92b1f832009-12-23 22:23:49 +00009620 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'
9621 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 +00009622 fi
jimblandy92b1f832009-12-23 22:23:49 +00009623 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 hardcode_libdir_separator=:
jimblandy92b1f832009-12-23 22:23:49 +00009626 inherit_rpath=yes
brynercb91a2f2006-08-25 21:14:45 +00009627 link_all_deplibs=yes
9628 ;;
9629
ted.mielczarekb2236272010-04-08 23:06:23 +00009630 netbsd* | netbsdelf*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +00009631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +00009632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9633 else
9634 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9635 fi
9636 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_direct=yes
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 newsos6)
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_direct=yes
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 hardcode_shlibpath_var=no
9647 ;;
9648
jimblandy92b1f832009-12-23 22:23:49 +00009649 *nto* | *qnx*)
9650 ;;
9651
brynercb91a2f2006-08-25 21:14:45 +00009652 openbsd*)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009653 if test -f /usr/libexec/ld.so; then
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009656 hardcode_direct_absolute=yes
9657 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 +00009658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661 export_dynamic_flag_spec='${wl}-E'
9662 else
9663 case $host_os in
9664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_libdir_flag_spec='-R$libdir'
9667 ;;
9668 *)
9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9671 ;;
9672 esac
jimblandy92b1f832009-12-23 22:23:49 +00009673 fi
brynercb91a2f2006-08-25 21:14:45 +00009674 else
ted.mielczarek1adb1842009-12-21 13:12:20 +00009675 ld_shlibs=no
brynercb91a2f2006-08-25 21:14:45 +00009676 fi
9677 ;;
9678
9679 os2*)
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_minus_L=yes
9682 allow_undefined_flag=unsupported
jimblandy92b1f832009-12-23 22:23:49 +00009683 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'
9684 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
brynercb91a2f2006-08-25 21:14:45 +00009685 ;;
9686
9687 osf3*)
9688 if test "$GCC" = yes; then
9689 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009690 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 +00009691 else
9692 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009693 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 +00009694 fi
jimblandy92b1f832009-12-23 22:23:49 +00009695 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator=:
9698 ;;
9699
9700 osf4* | osf5*) # as osf3* with the addition of -msym flag
9701 if test "$GCC" = yes; then
9702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
jimblandy92b1f832009-12-23 22:23:49 +00009703 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 +00009704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705 else
9706 allow_undefined_flag=' -expect_unresolved \*'
jimblandy92b1f832009-12-23 22:23:49 +00009707 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'
9708 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~
9709 $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 +00009710
9711 # Both c and cxx compiler support -rpath directly
9712 hardcode_libdir_flag_spec='-rpath $libdir'
9713 fi
jimblandy92b1f832009-12-23 22:23:49 +00009714 archive_cmds_need_lc='no'
brynercb91a2f2006-08-25 21:14:45 +00009715 hardcode_libdir_separator=:
9716 ;;
9717
brynercb91a2f2006-08-25 21:14:45 +00009718 solaris*)
jimblandy92b1f832009-12-23 22:23:49 +00009719 no_undefined_flag=' -z defs'
brynercb91a2f2006-08-25 21:14:45 +00009720 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009721 wlarc='${wl}'
jimblandy92b1f832009-12-23 22:23:49 +00009722 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $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 +00009725 else
jimblandy92b1f832009-12-23 22:23:49 +00009726 case `$CC -V 2>&1` in
9727 *"Compilers 5.0"*)
9728 wlarc=''
9729 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9732 ;;
9733 *)
9734 wlarc='${wl}'
9735 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9737 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9738 ;;
9739 esac
brynercb91a2f2006-08-25 21:14:45 +00009740 fi
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_shlibpath_var=no
9743 case $host_os in
9744 solaris2.[0-5] | solaris2.[0-5].*) ;;
mmentovai8c2a4de2006-09-20 16:20:15 +00009745 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009746 # The compiler driver will combine and reorder linker options,
9747 # but understands `-z linker_flag'. GCC discards it without `$wl',
9748 # but is careful enough not to reorder.
jimblandy92b1f832009-12-23 22:23:49 +00009749 # Supported since Solaris 2.6 (maybe 2.5.1?)
ted.mielczarek1adb1842009-12-21 13:12:20 +00009750 if test "$GCC" = yes; then
9751 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9752 else
9753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9754 fi
9755 ;;
brynercb91a2f2006-08-25 21:14:45 +00009756 esac
9757 link_all_deplibs=yes
9758 ;;
9759
9760 sunos4*)
9761 if test "x$host_vendor" = xsequent; then
9762 # Use $CC to link under sequent, because it throws in some extra .o
9763 # files that make .init and .fini sections work.
9764 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 hardcode_direct=yes
9770 hardcode_minus_L=yes
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 sysv4)
9775 case $host_vendor in
9776 sni)
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_direct=yes # is this really true???
9779 ;;
9780 siemens)
9781 ## LD is ld it makes a PLAMLIB
9782 ## CC just makes a GrossModule.
9783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9784 reload_cmds='$CC -r -o $output$reload_objs'
9785 hardcode_direct=no
9786 ;;
9787 motorola)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9790 ;;
9791 esac
9792 runpath_var='LD_RUN_PATH'
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 sysv4.3*)
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_shlibpath_var=no
9799 export_dynamic_flag_spec='-Bexport'
9800 ;;
9801
9802 sysv4*MP*)
9803 if test -d /usr/nec; then
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9806 runpath_var=LD_RUN_PATH
9807 hardcode_runpath_var=yes
9808 ld_shlibs=yes
9809 fi
9810 ;;
9811
ted.mielczarek1adb1842009-12-21 13:12:20 +00009812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
mmentovai8c2a4de2006-09-20 16:20:15 +00009813 no_undefined_flag='${wl}-z,text'
9814 archive_cmds_need_lc=no
brynercb91a2f2006-08-25 21:14:45 +00009815 hardcode_shlibpath_var=no
mmentovai8c2a4de2006-09-20 16:20:15 +00009816 runpath_var='LD_RUN_PATH'
bryner07f8ef52006-09-05 19:42:57 +00009817
mmentovai3261e8b2006-09-06 02:56:44 +00009818 if test "$GCC" = yes; then
mmentovai8c2a4de2006-09-20 16:20:15 +00009819 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009821 else
mmentovai8c2a4de2006-09-20 16:20:15 +00009822 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai3261e8b2006-09-06 02:56:44 +00009824 fi
brynerd5e66382006-09-08 02:35:53 +00009825 ;;
9826
mmentovai8c2a4de2006-09-20 16:20:15 +00009827 sysv5* | sco3.2v5* | sco5v6*)
9828 # Note: We can NOT use -z defs as we might desire, because we do not
9829 # link with -lc, and that would cause any symbols used from libc to
9830 # always be unresolved, which means just about no library would
9831 # ever link correctly. If we're not using GNU ld we use -z text
9832 # though, which does catch some bad symbols but isn't as heavy-handed
9833 # as -z defs.
9834 no_undefined_flag='${wl}-z,text'
9835 allow_undefined_flag='${wl}-z,nodefs'
9836 archive_cmds_need_lc=no
brynerd5e66382006-09-08 02:35:53 +00009837 hardcode_shlibpath_var=no
jimblandy92b1f832009-12-23 22:23:49 +00009838 hardcode_libdir_flag_spec='${wl}-R,$libdir'
mmentovai8c2a4de2006-09-20 16:20:15 +00009839 hardcode_libdir_separator=':'
9840 link_all_deplibs=yes
9841 export_dynamic_flag_spec='${wl}-Bexport'
brynerd5e66382006-09-08 02:35:53 +00009842 runpath_var='LD_RUN_PATH'
mmentovai8c2a4de2006-09-20 16:20:15 +00009843
9844 if test "$GCC" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +00009845 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009847 else
jimblandy92b1f832009-12-23 22:23:49 +00009848 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
mmentovai8c2a4de2006-09-20 16:20:15 +00009850 fi
brynercb91a2f2006-08-25 21:14:45 +00009851 ;;
9852
9853 uts4*)
9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_shlibpath_var=no
9857 ;;
9858
9859 *)
9860 ld_shlibs=no
9861 ;;
9862 esac
jimblandy92b1f832009-12-23 22:23:49 +00009863
9864 if test x$host_vendor = xsni; then
9865 case $host in
9866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9867 export_dynamic_flag_spec='${wl}-Blargedynsym'
9868 ;;
9869 esac
9870 fi
brynercb91a2f2006-08-25 21:14:45 +00009871 fi
9872
jimblandy92b1f832009-12-23 22:23:49 +00009873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9874$as_echo "$ld_shlibs" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009875test "$ld_shlibs" = no && can_build_shared=no
9876
jimblandy92b1f832009-12-23 22:23:49 +00009877with_gnu_ld=$with_gnu_ld
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
brynercb91a2f2006-08-25 21:14:45 +00009893#
9894# Do we need to explicitly link libc?
9895#
9896case "x$archive_cmds_need_lc" in
9897x|xyes)
9898 # Assume -lc should be added
9899 archive_cmds_need_lc=yes
9900
9901 if test "$enable_shared" = yes && test "$GCC" = yes; then
9902 case $archive_cmds in
9903 *'~'*)
9904 # FIXME: we may have to deal with multi-command sequences.
9905 ;;
9906 '$CC '*)
9907 # Test whether the compiler implicitly links with -lc since on some
9908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9909 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +00009910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9911$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9912 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +00009913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +00009914
jimblandy92b1f832009-12-23 22:23:49 +00009915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +00009916 (eval $ac_compile) 2>&5
9917 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9919 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +00009920 soname=conftest
9921 lib=conftest
9922 libobjs=conftest.$ac_objext
9923 deplibs=
9924 wl=$lt_prog_compiler_wl
mmentovai8c2a4de2006-09-20 16:20:15 +00009925 pic_flag=$lt_prog_compiler_pic
brynercb91a2f2006-08-25 21:14:45 +00009926 compiler_flags=-v
9927 linker_flags=-v
9928 verstring=
9929 output_objdir=.
9930 libname=conftest
9931 lt_save_allow_undefined_flag=$allow_undefined_flag
9932 allow_undefined_flag=
jimblandy92b1f832009-12-23 22:23:49 +00009933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9934 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +00009935 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +00009936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9937 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +00009938 then
9939 archive_cmds_need_lc=no
9940 else
9941 archive_cmds_need_lc=yes
9942 fi
9943 allow_undefined_flag=$lt_save_allow_undefined_flag
9944 else
9945 cat conftest.err 1>&5
9946 fi
jimblandy92b1f832009-12-23 22:23:49 +00009947 $RM conftest*
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9949$as_echo "$archive_cmds_need_lc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +00009950 ;;
9951 esac
9952 fi
9953 ;;
9954esac
9955
jimblandy92b1f832009-12-23 22:23:49 +00009956
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
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10113$as_echo_n "checking dynamic linker characteristics... " >&6; }
ted.mielczarek1adb1842009-12-21 13:12:20 +000010114
brynercb91a2f2006-08-25 21:14:45 +000010115if test "$GCC" = yes; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000010116 case $host_os in
10117 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10118 *) lt_awk_arg="/^libraries:/" ;;
10119 esac
10120 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 +000010121 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
brynercb91a2f2006-08-25 21:14:45 +000010122 # if the path contains ";" then we assume it to be the separator
10123 # otherwise default to the standard path separator (i.e. ":") - it is
10124 # assumed that no part of a normal pathname contains ";" but that should
10125 # okay in the real world where ";" in dirpaths is itself problematic.
jimblandy92b1f832009-12-23 22:23:49 +000010126 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010127 else
jimblandy92b1f832009-12-23 22:23:49 +000010128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010129 fi
ted.mielczarek1adb1842009-12-21 13:12:20 +000010130 # Ok, now we have the path, separated by spaces, we can step through it
10131 # and add multilib dir if necessary.
10132 lt_tmp_lt_search_path_spec=
10133 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10134 for lt_sys_path in $lt_search_path_spec; do
10135 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10136 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10137 else
10138 test -d "$lt_sys_path" && \
10139 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10140 fi
10141 done
jimblandy92b1f832009-12-23 22:23:49 +000010142 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
ted.mielczarek1adb1842009-12-21 13:12:20 +000010143BEGIN {RS=" "; FS="/|\n";} {
10144 lt_foo="";
10145 lt_count=0;
10146 for (lt_i = NF; lt_i > 0; lt_i--) {
10147 if ($lt_i != "" && $lt_i != ".") {
10148 if ($lt_i == "..") {
10149 lt_count++;
10150 } else {
10151 if (lt_count == 0) {
10152 lt_foo="/" $lt_i lt_foo;
10153 } else {
10154 lt_count--;
10155 }
10156 }
10157 }
10158 }
10159 if (lt_foo != "") { lt_freq[lt_foo]++; }
10160 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10161}'`
jimblandy92b1f832009-12-23 22:23:49 +000010162 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
brynercb91a2f2006-08-25 21:14:45 +000010163else
10164 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10165fi
jimblandy92b1f832009-12-23 22:23:49 +000010166library_names_spec=
10167libname_spec='lib$name'
10168soname_spec=
10169shrext_cmds=".so"
10170postinstall_cmds=
10171postuninstall_cmds=
10172finish_cmds=
10173finish_eval=
10174shlibpath_var=
10175shlibpath_overrides_runpath=unknown
10176version_type=none
10177dynamic_linker="$host_os ld.so"
10178sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010179need_lib_prefix=unknown
10180hardcode_into_libs=no
10181
10182# when you set need_version to no, make sure it does not cause -set_version
10183# flags to be left without arguments
10184need_version=unknown
10185
10186case $host_os in
10187aix3*)
10188 version_type=linux
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10190 shlibpath_var=LIBPATH
10191
10192 # AIX 3 has no versioning support, so we append a major version to the name.
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 ;;
10195
ted.mielczarek1adb1842009-12-21 13:12:20 +000010196aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000010197 version_type=linux
10198 need_lib_prefix=no
10199 need_version=no
10200 hardcode_into_libs=yes
10201 if test "$host_cpu" = ia64; then
10202 # AIX 5 supports IA64
10203 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 else
10206 # With GCC up to 2.95.x, collect2 would create an import file
10207 # for dependence libraries. The import file would start with
10208 # the line `#! .'. This would cause the generated library to
10209 # depend on `.', always an invalid library. This was fixed in
10210 # development snapshots of GCC prior to 3.0.
10211 case $host_os in
10212 aix4 | aix4.[01] | aix4.[01].*)
10213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10214 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000010215 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010216 :
10217 else
10218 can_build_shared=no
10219 fi
10220 ;;
10221 esac
10222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10223 # soname into executable. Probably we can add versioning support to
10224 # collect2, so additional links can be useful in future.
10225 if test "$aix_use_runtimelinking" = yes; then
10226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10227 # instead of lib<name>.a to let people know that these are not
10228 # typical AIX shared libraries.
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 else
10231 # We preserve .a as extension for shared libraries through AIX4.2
10232 # and later when we are not doing run time linking.
10233 library_names_spec='${libname}${release}.a $libname.a'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 fi
10236 shlibpath_var=LIBPATH
10237 fi
10238 ;;
10239
10240amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000010241 case $host_cpu in
10242 powerpc)
10243 # Since July 2007 AmigaOS4 officially supports .so libraries.
10244 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10246 ;;
10247 m68k)
10248 library_names_spec='$libname.ixlibrary $libname.a'
10249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10250 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'
10251 ;;
10252 esac
brynercb91a2f2006-08-25 21:14:45 +000010253 ;;
10254
10255beos*)
10256 library_names_spec='${libname}${shared_ext}'
10257 dynamic_linker="$host_os ld.so"
10258 shlibpath_var=LIBRARY_PATH
10259 ;;
10260
mmentovai8c2a4de2006-09-20 16:20:15 +000010261bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000010262 version_type=linux
10263 need_version=no
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10269 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10270 # the default ld.so.conf also contains /usr/contrib/lib and
10271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10272 # libtool to hard-code these into programs
10273 ;;
10274
jimblandy92b1f832009-12-23 22:23:49 +000010275cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010276 version_type=windows
10277 shrext_cmds=".dll"
10278 need_version=no
10279 need_lib_prefix=no
10280
10281 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010282 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010283 library_names_spec='$libname.dll.a'
10284 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10285 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000010286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000010287 dldir=$destdir/`dirname \$dlpath`~
10288 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000010289 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000010290 chmod a+x \$dldir/$dlname~
10291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10293 fi'
brynercb91a2f2006-08-25 21:14:45 +000010294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10295 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000010296 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000010297 shlibpath_overrides_runpath=yes
10298
10299 case $host_os in
10300 cygwin*)
10301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10303 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10304 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010305 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010306 # MinGW DLLs use traditional 'lib' prefix
10307 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000010308 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10309 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010310 # It is most probably a Windows format PATH printed by
10311 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10312 # path with ; separators, and with drive letters. We can handle the
10313 # drive letters (cygwin fileutils understands them), so leave them,
10314 # especially as we might pass files found there to a mingw objdump,
10315 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000010316 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000010317 else
jimblandy92b1f832009-12-23 22:23:49 +000010318 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000010319 fi
10320 ;;
10321 pw32*)
10322 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010323 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 +000010324 ;;
10325 esac
10326 ;;
10327
10328 *)
10329 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10330 ;;
10331 esac
10332 dynamic_linker='Win32 ld.exe'
10333 # FIXME: first we should search . and the directory the executable is in
10334 shlibpath_var=PATH
10335 ;;
10336
10337darwin* | rhapsody*)
10338 dynamic_linker="$host_os dyld"
10339 version_type=darwin
10340 need_lib_prefix=no
10341 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010342 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000010343 soname_spec='${libname}${release}${major}$shared_ext'
10344 shlibpath_overrides_runpath=yes
10345 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000010346 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000010347
10348 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
brynercb91a2f2006-08-25 21:14:45 +000010349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10350 ;;
10351
10352dgux*)
10353 version_type=linux
10354 need_lib_prefix=no
10355 need_version=no
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 shlibpath_var=LD_LIBRARY_PATH
10359 ;;
10360
10361freebsd1*)
10362 dynamic_linker=no
10363 ;;
10364
mmentovai8c2a4de2006-09-20 16:20:15 +000010365freebsd* | dragonfly*)
10366 # DragonFly does not have aout. When/if they implement a new
10367 # versioning mechanism, adjust this.
10368 if test -x /usr/bin/objformat; then
10369 objformat=`/usr/bin/objformat`
10370 else
10371 case $host_os in
10372 freebsd[123]*) objformat=aout ;;
10373 *) objformat=elf ;;
10374 esac
10375 fi
brynercb91a2f2006-08-25 21:14:45 +000010376 version_type=freebsd-$objformat
10377 case $version_type in
10378 freebsd-elf*)
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10380 need_version=no
10381 need_lib_prefix=no
10382 ;;
10383 freebsd-*)
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10385 need_version=yes
10386 ;;
10387 esac
10388 shlibpath_var=LD_LIBRARY_PATH
10389 case $host_os in
10390 freebsd2*)
10391 shlibpath_overrides_runpath=yes
10392 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010393 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000010394 shlibpath_overrides_runpath=yes
10395 hardcode_into_libs=yes
10396 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000010399 shlibpath_overrides_runpath=no
10400 hardcode_into_libs=yes
10401 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000010402 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000010403 shlibpath_overrides_runpath=yes
10404 hardcode_into_libs=yes
10405 ;;
brynercb91a2f2006-08-25 21:14:45 +000010406 esac
10407 ;;
10408
10409gnu*)
10410 version_type=linux
10411 need_lib_prefix=no
10412 need_version=no
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 shlibpath_var=LD_LIBRARY_PATH
10416 hardcode_into_libs=yes
10417 ;;
10418
10419hpux9* | hpux10* | hpux11*)
10420 # Give a soname corresponding to the major version so that dld.sl refuses to
10421 # link against other versions.
10422 version_type=sunos
10423 need_lib_prefix=no
10424 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010425 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000010426 ia64*)
10427 shrext_cmds='.so'
10428 hardcode_into_libs=yes
10429 dynamic_linker="$host_os dld.so"
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 if test "X$HPUX_IA64_MODE" = X32; then
10435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10436 else
10437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10438 fi
10439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10440 ;;
jimblandy92b1f832009-12-23 22:23:49 +000010441 hppa*64*)
10442 shrext_cmds='.sl'
10443 hardcode_into_libs=yes
10444 dynamic_linker="$host_os dld.sl"
10445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10451 ;;
10452 *)
brynercb91a2f2006-08-25 21:14:45 +000010453 shrext_cmds='.sl'
10454 dynamic_linker="$host_os dld.sl"
10455 shlibpath_var=SHLIB_PATH
10456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 ;;
10460 esac
10461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10462 postinstall_cmds='chmod 555 $lib'
10463 ;;
10464
ted.mielczarek1adb1842009-12-21 13:12:20 +000010465interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000010466 version_type=linux
10467 need_lib_prefix=no
10468 need_version=no
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10475 ;;
10476
brynercb91a2f2006-08-25 21:14:45 +000010477irix5* | irix6* | nonstopux*)
10478 case $host_os in
10479 nonstopux*) version_type=nonstopux ;;
10480 *)
10481 if test "$lt_cv_prog_gnu_ld" = yes; then
10482 version_type=linux
10483 else
10484 version_type=irix
10485 fi ;;
10486 esac
10487 need_lib_prefix=no
10488 need_version=no
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10491 case $host_os in
10492 irix5* | nonstopux*)
10493 libsuff= shlibsuff=
10494 ;;
10495 *)
10496 case $LD in # libtool.m4 will add one of these switches to LD
10497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10498 libsuff= shlibsuff= libmagic=32-bit;;
10499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10500 libsuff=32 shlibsuff=N32 libmagic=N32;;
10501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10503 *) libsuff= shlibsuff= libmagic=never-match;;
10504 esac
10505 ;;
10506 esac
10507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10508 shlibpath_overrides_runpath=no
10509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10511 hardcode_into_libs=yes
10512 ;;
10513
10514# No shared lib support for Linux oldld, aout, or coff.
10515linux*oldld* | linux*aout* | linux*coff*)
10516 dynamic_linker=no
10517 ;;
10518
10519# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000010520linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000010521 version_type=linux
10522 need_lib_prefix=no
10523 need_version=no
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000010529 # Some binutils ld are patched to set DT_RUNPATH
10530 save_LDFLAGS=$LDFLAGS
10531 save_libdir=$libdir
10532 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10533 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h. */
10536
10537int
10538main ()
10539{
10540
10541 ;
10542 return 0;
10543}
10544_ACEOF
10545if ac_fn_c_try_link "$LINENO"; then :
10546 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10547 shlibpath_overrides_runpath=yes
10548fi
10549fi
10550rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LDFLAGS=$save_LDFLAGS
10553 libdir=$save_libdir
10554
brynercb91a2f2006-08-25 21:14:45 +000010555 # This implies no fast_install, which is unacceptable.
10556 # Some rework will be needed to allow for fast_install
10557 # before this can be enabled.
10558 hardcode_into_libs=yes
10559
10560 # Append ld.so.conf contents to the search path
10561 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000010562 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 +000010563 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10564 fi
10565
10566 # We used to test for /lib/ld.so.1 and disable shared libraries on
10567 # powerpc, because MkLinux only supported shared libraries with the
10568 # GNU dynamic linker. Since this was broken with cross compilers,
10569 # most powerpc-linux boxes support dynamic linking these days and
10570 # people can always --disable-shared, the test was removed, and we
10571 # assume the GNU/Linux dynamic linker is in use.
10572 dynamic_linker='GNU/Linux ld.so'
10573 ;;
10574
ted.mielczarekb2236272010-04-08 23:06:23 +000010575netbsdelf*-gnu)
10576 version_type=linux
10577 need_lib_prefix=no
10578 need_version=no
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 shlibpath_var=LD_LIBRARY_PATH
10582 shlibpath_overrides_runpath=no
10583 hardcode_into_libs=yes
10584 dynamic_linker='NetBSD ld.elf_so'
10585 ;;
10586
brynercb91a2f2006-08-25 21:14:45 +000010587netbsd*)
10588 version_type=sunos
10589 need_lib_prefix=no
10590 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000010591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000010592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10594 dynamic_linker='NetBSD (a.out) ld.so'
10595 else
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 dynamic_linker='NetBSD ld.elf_so'
10599 fi
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 hardcode_into_libs=yes
10603 ;;
10604
10605newsos6)
10606 version_type=linux
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=yes
10610 ;;
10611
jimblandy92b1f832009-12-23 22:23:49 +000010612*nto* | *qnx*)
10613 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000010614 need_lib_prefix=no
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010619 shlibpath_overrides_runpath=no
10620 hardcode_into_libs=yes
10621 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000010622 ;;
10623
10624openbsd*)
10625 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000010626 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000010627 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000010628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10629 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000010630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10631 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000010632 esac
brynercb91a2f2006-08-25 21:14:45 +000010633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10635 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010636 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000010637 case $host_os in
10638 openbsd2.[89] | openbsd2.[89].*)
10639 shlibpath_overrides_runpath=no
10640 ;;
10641 *)
10642 shlibpath_overrides_runpath=yes
10643 ;;
10644 esac
10645 else
10646 shlibpath_overrides_runpath=yes
10647 fi
10648 ;;
10649
10650os2*)
10651 libname_spec='$name'
10652 shrext_cmds=".dll"
10653 need_lib_prefix=no
10654 library_names_spec='$libname${shared_ext} $libname.a'
10655 dynamic_linker='OS/2 ld.exe'
10656 shlibpath_var=LIBPATH
10657 ;;
10658
10659osf3* | osf4* | osf5*)
10660 version_type=osf
10661 need_lib_prefix=no
10662 need_version=no
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10668 ;;
10669
ted.mielczarek1adb1842009-12-21 13:12:20 +000010670rdos*)
10671 dynamic_linker=no
10672 ;;
10673
brynercb91a2f2006-08-25 21:14:45 +000010674solaris*)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10683 # ldd complains unless libraries are executable
10684 postinstall_cmds='chmod +x $lib'
10685 ;;
10686
10687sunos4*)
10688 version_type=sunos
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10693 if test "$with_gnu_ld" = yes; then
10694 need_lib_prefix=no
10695 fi
10696 need_version=yes
10697 ;;
10698
mmentovai8c2a4de2006-09-20 16:20:15 +000010699sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000010700 version_type=linux
10701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 soname_spec='${libname}${release}${shared_ext}$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 case $host_vendor in
10705 sni)
10706 shlibpath_overrides_runpath=no
10707 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000010708 runpath_var=LD_RUN_PATH
10709 ;;
10710 siemens)
10711 need_lib_prefix=no
10712 ;;
10713 motorola)
10714 need_lib_prefix=no
10715 need_version=no
10716 shlibpath_overrides_runpath=no
10717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10718 ;;
10719 esac
10720 ;;
10721
10722sysv4*MP*)
10723 if test -d /usr/nec ;then
10724 version_type=linux
10725 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10726 soname_spec='$libname${shared_ext}.$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 fi
10729 ;;
10730
mmentovai8c2a4de2006-09-20 16:20:15 +000010731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10732 version_type=freebsd-elf
10733 need_lib_prefix=no
10734 need_version=no
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000010738 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000010739 hardcode_into_libs=yes
10740 if test "$with_gnu_ld" = yes; then
10741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010742 else
10743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000010744 case $host_os in
10745 sco3.2v5*)
10746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10747 ;;
10748 esac
10749 fi
10750 sys_lib_dlsearch_path_spec='/usr/lib'
10751 ;;
10752
jimblandy92b1f832009-12-23 22:23:49 +000010753tpf*)
10754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath=no
10761 hardcode_into_libs=yes
10762 ;;
10763
brynercb91a2f2006-08-25 21:14:45 +000010764uts4*)
10765 version_type=linux
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 ;;
10770
10771*)
10772 dynamic_linker=no
10773 ;;
10774esac
jimblandy92b1f832009-12-23 22:23:49 +000010775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10776$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010777test "$dynamic_linker" = no && can_build_shared=no
10778
mmentovai8c2a4de2006-09-20 16:20:15 +000010779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10780if test "$GCC" = yes; then
10781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10782fi
10783
jimblandy92b1f832009-12-23 22:23:49 +000010784if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10786fi
10787if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10788 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10789fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10878$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010879hardcode_action=
jimblandy92b1f832009-12-23 22:23:49 +000010880if test -n "$hardcode_libdir_flag_spec" ||
10881 test -n "$runpath_var" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000010882 test "X$hardcode_automatic" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000010883
jimblandy92b1f832009-12-23 22:23:49 +000010884 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000010885 if test "$hardcode_direct" != no &&
10886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10887 # have to relink, otherwise we might link with an installed library
10888 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000010889 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
brynercb91a2f2006-08-25 21:14:45 +000010890 test "$hardcode_minus_L" != no; then
10891 # Linking always hardcodes the temporary library directory.
10892 hardcode_action=relink
10893 else
10894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10895 hardcode_action=immediate
10896 fi
10897else
10898 # We cannot hardcode anything, or else we can only hardcode existing
10899 # directories.
10900 hardcode_action=unsupported
10901fi
jimblandy92b1f832009-12-23 22:23:49 +000010902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10903$as_echo "$hardcode_action" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000010904
jimblandy92b1f832009-12-23 22:23:49 +000010905if test "$hardcode_action" = relink ||
10906 test "$inherit_rpath" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000010907 # Fast installation is not supported
10908 enable_fast_install=no
10909elif test "$shlibpath_overrides_runpath" = yes ||
10910 test "$enable_shared" = no; then
10911 # Fast installation is not necessary
10912 enable_fast_install=needless
10913fi
10914
brynercb91a2f2006-08-25 21:14:45 +000010915
jimblandy92b1f832009-12-23 22:23:49 +000010916
10917
10918
10919
10920 if test "x$enable_dlopen" != xyes; then
brynercb91a2f2006-08-25 21:14:45 +000010921 enable_dlopen=unknown
10922 enable_dlopen_self=unknown
10923 enable_dlopen_self_static=unknown
10924else
10925 lt_cv_dlopen=no
10926 lt_cv_dlopen_libs=
10927
10928 case $host_os in
10929 beos*)
10930 lt_cv_dlopen="load_add_on"
10931 lt_cv_dlopen_libs=
10932 lt_cv_dlopen_self=yes
10933 ;;
10934
jimblandy92b1f832009-12-23 22:23:49 +000010935 mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000010936 lt_cv_dlopen="LoadLibrary"
10937 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010938 ;;
brynercb91a2f2006-08-25 21:14:45 +000010939
10940 cygwin*)
10941 lt_cv_dlopen="dlopen"
10942 lt_cv_dlopen_libs=
jimblandy92b1f832009-12-23 22:23:49 +000010943 ;;
brynercb91a2f2006-08-25 21:14:45 +000010944
10945 darwin*)
10946 # if libdl is installed we need to link against it
jimblandy92b1f832009-12-23 22:23:49 +000010947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10948$as_echo_n "checking for dlopen in -ldl... " >&6; }
10949if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000010951else
10952 ac_check_lib_save_LIBS=$LIBS
10953LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000010954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010955/* end confdefs.h. */
10956
mmentovai8c2a4de2006-09-20 16:20:15 +000010957/* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000010960#ifdef __cplusplus
10961extern "C"
10962#endif
brynercb91a2f2006-08-25 21:14:45 +000010963char dlopen ();
10964int
10965main ()
10966{
mmentovai8c2a4de2006-09-20 16:20:15 +000010967return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000010968 ;
10969 return 0;
10970}
10971_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000010972if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000010973 ac_cv_lib_dl_dlopen=yes
10974else
jimblandy92b1f832009-12-23 22:23:49 +000010975 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000010976fi
jimblandy92b1f832009-12-23 22:23:49 +000010977rm -f core conftest.err conftest.$ac_objext \
10978 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000010979LIBS=$ac_check_lib_save_LIBS
10980fi
jimblandy92b1f832009-12-23 22:23:49 +000010981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10982$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10983if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010984 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10985else
10986
10987 lt_cv_dlopen="dyld"
10988 lt_cv_dlopen_libs=
10989 lt_cv_dlopen_self=yes
10990
10991fi
10992
jimblandy92b1f832009-12-23 22:23:49 +000010993 ;;
brynercb91a2f2006-08-25 21:14:45 +000010994
10995 *)
jimblandy92b1f832009-12-23 22:23:49 +000010996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10997if test "x$ac_cv_func_shl_load" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000010998 lt_cv_dlopen="shl_load"
10999else
jimblandy92b1f832009-12-23 22:23:49 +000011000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11001$as_echo_n "checking for shl_load in -ldld... " >&6; }
11002if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011004else
11005 ac_check_lib_save_LIBS=$LIBS
11006LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011008/* end confdefs.h. */
11009
mmentovai8c2a4de2006-09-20 16:20:15 +000011010/* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011013#ifdef __cplusplus
11014extern "C"
11015#endif
brynercb91a2f2006-08-25 21:14:45 +000011016char shl_load ();
11017int
11018main ()
11019{
mmentovai8c2a4de2006-09-20 16:20:15 +000011020return shl_load ();
brynercb91a2f2006-08-25 21:14:45 +000011021 ;
11022 return 0;
11023}
11024_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011025if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011026 ac_cv_lib_dld_shl_load=yes
11027else
jimblandy92b1f832009-12-23 22:23:49 +000011028 ac_cv_lib_dld_shl_load=no
brynercb91a2f2006-08-25 21:14:45 +000011029fi
jimblandy92b1f832009-12-23 22:23:49 +000011030rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011032LIBS=$ac_check_lib_save_LIBS
11033fi
jimblandy92b1f832009-12-23 22:23:49 +000011034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11035$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11036if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011037 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011038else
jimblandy92b1f832009-12-23 22:23:49 +000011039 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11040if test "x$ac_cv_func_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011041 lt_cv_dlopen="dlopen"
11042else
jimblandy92b1f832009-12-23 22:23:49 +000011043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11044$as_echo_n "checking for dlopen in -ldl... " >&6; }
11045if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011047else
11048 ac_check_lib_save_LIBS=$LIBS
11049LIBS="-ldl $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011051/* end confdefs.h. */
11052
mmentovai8c2a4de2006-09-20 16:20:15 +000011053/* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011056#ifdef __cplusplus
11057extern "C"
11058#endif
brynercb91a2f2006-08-25 21:14:45 +000011059char dlopen ();
11060int
11061main ()
11062{
mmentovai8c2a4de2006-09-20 16:20:15 +000011063return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011064 ;
11065 return 0;
11066}
11067_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011068if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011069 ac_cv_lib_dl_dlopen=yes
11070else
jimblandy92b1f832009-12-23 22:23:49 +000011071 ac_cv_lib_dl_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011072fi
jimblandy92b1f832009-12-23 22:23:49 +000011073rm -f core conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011075LIBS=$ac_check_lib_save_LIBS
11076fi
jimblandy92b1f832009-12-23 22:23:49 +000011077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11078$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11079if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11081else
jimblandy92b1f832009-12-23 22:23:49 +000011082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11083$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11084if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11085 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011086else
11087 ac_check_lib_save_LIBS=$LIBS
11088LIBS="-lsvld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011090/* end confdefs.h. */
11091
mmentovai8c2a4de2006-09-20 16:20:15 +000011092/* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011095#ifdef __cplusplus
11096extern "C"
11097#endif
brynercb91a2f2006-08-25 21:14:45 +000011098char dlopen ();
11099int
11100main ()
11101{
mmentovai8c2a4de2006-09-20 16:20:15 +000011102return dlopen ();
brynercb91a2f2006-08-25 21:14:45 +000011103 ;
11104 return 0;
11105}
11106_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011107if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011108 ac_cv_lib_svld_dlopen=yes
11109else
jimblandy92b1f832009-12-23 22:23:49 +000011110 ac_cv_lib_svld_dlopen=no
brynercb91a2f2006-08-25 21:14:45 +000011111fi
jimblandy92b1f832009-12-23 22:23:49 +000011112rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011114LIBS=$ac_check_lib_save_LIBS
11115fi
jimblandy92b1f832009-12-23 22:23:49 +000011116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11117$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11118if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
brynercb91a2f2006-08-25 21:14:45 +000011119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11120else
jimblandy92b1f832009-12-23 22:23:49 +000011121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11122$as_echo_n "checking for dld_link in -ldld... " >&6; }
11123if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011125else
11126 ac_check_lib_save_LIBS=$LIBS
11127LIBS="-ldld $LIBS"
jimblandy92b1f832009-12-23 22:23:49 +000011128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011129/* end confdefs.h. */
11130
mmentovai8c2a4de2006-09-20 16:20:15 +000011131/* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
brynercb91a2f2006-08-25 21:14:45 +000011134#ifdef __cplusplus
11135extern "C"
11136#endif
brynercb91a2f2006-08-25 21:14:45 +000011137char dld_link ();
11138int
11139main ()
11140{
mmentovai8c2a4de2006-09-20 16:20:15 +000011141return dld_link ();
brynercb91a2f2006-08-25 21:14:45 +000011142 ;
11143 return 0;
11144}
11145_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000011146if ac_fn_c_try_link "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000011147 ac_cv_lib_dld_dld_link=yes
11148else
jimblandy92b1f832009-12-23 22:23:49 +000011149 ac_cv_lib_dld_dld_link=no
brynercb91a2f2006-08-25 21:14:45 +000011150fi
jimblandy92b1f832009-12-23 22:23:49 +000011151rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000011153LIBS=$ac_check_lib_save_LIBS
11154fi
jimblandy92b1f832009-12-23 22:23:49 +000011155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11156$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11157if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
ted.mielczarek1adb1842009-12-21 13:12:20 +000011158 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
brynercb91a2f2006-08-25 21:14:45 +000011159fi
11160
11161
11162fi
11163
11164
11165fi
11166
11167
11168fi
11169
11170
11171fi
11172
11173
11174fi
11175
11176 ;;
11177 esac
11178
11179 if test "x$lt_cv_dlopen" != xno; then
11180 enable_dlopen=yes
11181 else
11182 enable_dlopen=no
11183 fi
11184
11185 case $lt_cv_dlopen in
11186 dlopen)
11187 save_CPPFLAGS="$CPPFLAGS"
11188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11189
11190 save_LDFLAGS="$LDFLAGS"
mmentovai8c2a4de2006-09-20 16:20:15 +000011191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
brynercb91a2f2006-08-25 21:14:45 +000011192
11193 save_LIBS="$LIBS"
11194 LIBS="$lt_cv_dlopen_libs $LIBS"
11195
jimblandy92b1f832009-12-23 22:23:49 +000011196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11197$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11198if test "${lt_cv_dlopen_self+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011200else
11201 if test "$cross_compiling" = yes; then :
11202 lt_cv_dlopen_self=cross
11203else
11204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11205 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011206 cat > conftest.$ac_ext <<_LT_EOF
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000011207#line 11207 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011208#include "confdefs.h"
11209
11210#if HAVE_DLFCN_H
11211#include <dlfcn.h>
11212#endif
11213
11214#include <stdio.h>
11215
11216#ifdef RTLD_GLOBAL
11217# define LT_DLGLOBAL RTLD_GLOBAL
11218#else
11219# ifdef DL_GLOBAL
11220# define LT_DLGLOBAL DL_GLOBAL
11221# else
11222# define LT_DLGLOBAL 0
11223# endif
11224#endif
11225
11226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11227 find out it does not work in some platform. */
11228#ifndef LT_DLLAZY_OR_NOW
11229# ifdef RTLD_LAZY
11230# define LT_DLLAZY_OR_NOW RTLD_LAZY
11231# else
11232# ifdef DL_LAZY
11233# define LT_DLLAZY_OR_NOW DL_LAZY
11234# else
11235# ifdef RTLD_NOW
11236# define LT_DLLAZY_OR_NOW RTLD_NOW
11237# else
11238# ifdef DL_NOW
11239# define LT_DLLAZY_OR_NOW DL_NOW
11240# else
11241# define LT_DLLAZY_OR_NOW 0
11242# endif
11243# endif
11244# endif
11245# endif
11246#endif
11247
brynercb91a2f2006-08-25 21:14:45 +000011248void fnord() { int i=42;}
11249int main ()
11250{
11251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11252 int status = $lt_dlunknown;
11253
11254 if (self)
11255 {
11256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11258 /* dlclose (self); */
11259 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011260 else
11261 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011262
jimblandy92b1f832009-12-23 22:23:49 +000011263 return status;
brynercb91a2f2006-08-25 21:14:45 +000011264}
jimblandy92b1f832009-12-23 22:23:49 +000011265_LT_EOF
11266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011267 (eval $ac_link) 2>&5
11268 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11270 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011271 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011272 lt_status=$?
11273 case x$lt_status in
11274 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11275 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011276 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011277 esac
11278 else :
11279 # compilation failed
11280 lt_cv_dlopen_self=no
11281 fi
11282fi
11283rm -fr conftest*
11284
11285
11286fi
jimblandy92b1f832009-12-23 22:23:49 +000011287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11288$as_echo "$lt_cv_dlopen_self" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011289
11290 if test "x$lt_cv_dlopen_self" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011291 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
jimblandy92b1f832009-12-23 22:23:49 +000011292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11293$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11294if test "${lt_cv_dlopen_self_static+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011296else
11297 if test "$cross_compiling" = yes; then :
11298 lt_cv_dlopen_self_static=cross
11299else
11300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11301 lt_status=$lt_dlunknown
jimblandy92b1f832009-12-23 22:23:49 +000011302 cat > conftest.$ac_ext <<_LT_EOF
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000011303#line 11303 "configure"
brynercb91a2f2006-08-25 21:14:45 +000011304#include "confdefs.h"
11305
11306#if HAVE_DLFCN_H
11307#include <dlfcn.h>
11308#endif
11309
11310#include <stdio.h>
11311
11312#ifdef RTLD_GLOBAL
11313# define LT_DLGLOBAL RTLD_GLOBAL
11314#else
11315# ifdef DL_GLOBAL
11316# define LT_DLGLOBAL DL_GLOBAL
11317# else
11318# define LT_DLGLOBAL 0
11319# endif
11320#endif
11321
11322/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11323 find out it does not work in some platform. */
11324#ifndef LT_DLLAZY_OR_NOW
11325# ifdef RTLD_LAZY
11326# define LT_DLLAZY_OR_NOW RTLD_LAZY
11327# else
11328# ifdef DL_LAZY
11329# define LT_DLLAZY_OR_NOW DL_LAZY
11330# else
11331# ifdef RTLD_NOW
11332# define LT_DLLAZY_OR_NOW RTLD_NOW
11333# else
11334# ifdef DL_NOW
11335# define LT_DLLAZY_OR_NOW DL_NOW
11336# else
11337# define LT_DLLAZY_OR_NOW 0
11338# endif
11339# endif
11340# endif
11341# endif
11342#endif
11343
brynercb91a2f2006-08-25 21:14:45 +000011344void fnord() { int i=42;}
11345int main ()
11346{
11347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11348 int status = $lt_dlunknown;
11349
11350 if (self)
11351 {
11352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11353 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11354 /* dlclose (self); */
11355 }
mmentovai8c2a4de2006-09-20 16:20:15 +000011356 else
11357 puts (dlerror ());
brynercb91a2f2006-08-25 21:14:45 +000011358
jimblandy92b1f832009-12-23 22:23:49 +000011359 return status;
brynercb91a2f2006-08-25 21:14:45 +000011360}
jimblandy92b1f832009-12-23 22:23:49 +000011361_LT_EOF
11362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000011363 (eval $ac_link) 2>&5
11364 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000011365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
mmentovai8c2a4de2006-09-20 16:20:15 +000011367 (./conftest; exit; ) >&5 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000011368 lt_status=$?
11369 case x$lt_status in
11370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000011372 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
brynercb91a2f2006-08-25 21:14:45 +000011373 esac
11374 else :
11375 # compilation failed
11376 lt_cv_dlopen_self_static=no
11377 fi
11378fi
11379rm -fr conftest*
11380
11381
11382fi
jimblandy92b1f832009-12-23 22:23:49 +000011383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11384$as_echo "$lt_cv_dlopen_self_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011385 fi
11386
11387 CPPFLAGS="$save_CPPFLAGS"
11388 LDFLAGS="$save_LDFLAGS"
11389 LIBS="$save_LIBS"
11390 ;;
11391 esac
11392
11393 case $lt_cv_dlopen_self in
11394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11395 *) enable_dlopen_self=unknown ;;
11396 esac
11397
11398 case $lt_cv_dlopen_self_static in
11399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11400 *) enable_dlopen_self_static=unknown ;;
11401 esac
11402fi
11403
11404
brynercb91a2f2006-08-25 21:14:45 +000011405
brynercb91a2f2006-08-25 21:14:45 +000011406
brynercb91a2f2006-08-25 21:14:45 +000011407
jimblandy92b1f832009-12-23 22:23:49 +000011408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420striplib=
11421old_striplib=
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11423$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11424if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11425 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11426 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428$as_echo "yes" >&6; }
11429else
11430# FIXME - insert some real tests, host_os isn't really good enough
11431 case $host_os in
11432 darwin*)
11433 if test -n "$STRIP" ; then
11434 striplib="$STRIP -x"
11435 old_striplib="$STRIP -S"
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11437$as_echo "yes" >&6; }
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11440$as_echo "no" >&6; }
11441 fi
brynercb91a2f2006-08-25 21:14:45 +000011442 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011443 *)
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011446 ;;
11447 esac
jimblandy92b1f832009-12-23 22:23:49 +000011448fi
brynercb91a2f2006-08-25 21:14:45 +000011449
brynercb91a2f2006-08-25 21:14:45 +000011450
brynercb91a2f2006-08-25 21:14:45 +000011451
brynercb91a2f2006-08-25 21:14:45 +000011452
brynercb91a2f2006-08-25 21:14:45 +000011453
brynercb91a2f2006-08-25 21:14:45 +000011454
brynercb91a2f2006-08-25 21:14:45 +000011455
brynercb91a2f2006-08-25 21:14:45 +000011456
brynercb91a2f2006-08-25 21:14:45 +000011457
brynercb91a2f2006-08-25 21:14:45 +000011458
brynercb91a2f2006-08-25 21:14:45 +000011459
brynercb91a2f2006-08-25 21:14:45 +000011460
jimblandy92b1f832009-12-23 22:23:49 +000011461 # Report which library types will actually be built
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11463$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11465$as_echo "$can_build_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011466
jimblandy92b1f832009-12-23 22:23:49 +000011467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11468$as_echo_n "checking whether to build shared libraries... " >&6; }
11469 test "$can_build_shared" = "no" && enable_shared=no
brynercb91a2f2006-08-25 21:14:45 +000011470
jimblandy92b1f832009-12-23 22:23:49 +000011471 # On AIX, shared libraries and static libraries use the same namespace, and
11472 # are all built from PIC.
brynercb91a2f2006-08-25 21:14:45 +000011473 case $host_os in
11474 aix3*)
jimblandy92b1f832009-12-23 22:23:49 +000011475 test "$enable_shared" = yes && enable_static=no
11476 if test -n "$RANLIB"; then
11477 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11478 postinstall_cmds='$RANLIB $lib'
11479 fi
11480 ;;
brynercb91a2f2006-08-25 21:14:45 +000011481
jimblandy92b1f832009-12-23 22:23:49 +000011482 aix[4-9]*)
11483 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11484 test "$enable_shared" = yes && enable_static=no
11485 fi
brynercb91a2f2006-08-25 21:14:45 +000011486 ;;
11487 esac
jimblandy92b1f832009-12-23 22:23:49 +000011488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11489$as_echo "$enable_shared" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011490
jimblandy92b1f832009-12-23 22:23:49 +000011491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11492$as_echo_n "checking whether to build static libraries... " >&6; }
11493 # Make sure either enable_shared or enable_static is yes.
11494 test "$enable_shared" = yes || enable_static=yes
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11496$as_echo "$enable_static" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011497
brynercb91a2f2006-08-25 21:14:45 +000011498
jimblandy92b1f832009-12-23 22:23:49 +000011499
11500
brynercb91a2f2006-08-25 21:14:45 +000011501fi
brynercb91a2f2006-08-25 21:14:45 +000011502ac_ext=c
11503ac_cpp='$CPP $CPPFLAGS'
11504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11506ac_compiler_gnu=$ac_cv_c_compiler_gnu
11507
11508CC="$lt_save_CC"
11509
11510
jimblandy92b1f832009-12-23 22:23:49 +000011511ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516
brynercb91a2f2006-08-25 21:14:45 +000011517archive_cmds_need_lc_CXX=no
11518allow_undefined_flag_CXX=
11519always_export_symbols_CXX=no
11520archive_expsym_cmds_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000011521compiler_needs_object_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011522export_dynamic_flag_spec_CXX=
11523hardcode_direct_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011524hardcode_direct_absolute_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011525hardcode_libdir_flag_spec_CXX=
11526hardcode_libdir_flag_spec_ld_CXX=
11527hardcode_libdir_separator_CXX=
11528hardcode_minus_L_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011529hardcode_shlibpath_var_CXX=unsupported
brynercb91a2f2006-08-25 21:14:45 +000011530hardcode_automatic_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000011531inherit_rpath_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011532module_cmds_CXX=
11533module_expsym_cmds_CXX=
11534link_all_deplibs_CXX=unknown
11535old_archive_cmds_CXX=$old_archive_cmds
11536no_undefined_flag_CXX=
11537whole_archive_flag_spec_CXX=
11538enable_shared_with_static_runtimes_CXX=no
11539
brynercb91a2f2006-08-25 21:14:45 +000011540# Source file extension for C++ test sources.
mmentovai8c2a4de2006-09-20 16:20:15 +000011541ac_ext=cpp
brynercb91a2f2006-08-25 21:14:45 +000011542
11543# Object file extension for compiled C++ test sources.
11544objext=o
11545objext_CXX=$objext
11546
jimblandy92b1f832009-12-23 22:23:49 +000011547# No sense in running all these tests if we already determined that
11548# the CXX compiler isn't working. Some variables (like enable_shared)
11549# are currently assumed to apply to all compilers on this platform,
11550# and will be corrupted by setting them based on a non-working compiler.
11551if test "$_lt_caught_CXX_error" != yes; then
11552 # Code to be used in simple compile tests
11553 lt_simple_compile_test_code="int some_variable = 0;"
brynercb91a2f2006-08-25 21:14:45 +000011554
jimblandy92b1f832009-12-23 22:23:49 +000011555 # Code to be used in simple link tests
11556 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
brynercb91a2f2006-08-25 21:14:45 +000011557
jimblandy92b1f832009-12-23 22:23:49 +000011558 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11559
11560
11561
11562
11563
brynercb91a2f2006-08-25 21:14:45 +000011564
11565# If no C compiler was specified, use CC.
11566LTCC=${LTCC-"$CC"}
11567
mmentovai8c2a4de2006-09-20 16:20:15 +000011568# If no C compiler flags were specified, use CFLAGS.
11569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11570
brynercb91a2f2006-08-25 21:14:45 +000011571# Allow CC to be a program name with arguments.
11572compiler=$CC
11573
11574
jimblandy92b1f832009-12-23 22:23:49 +000011575 # save warnings/boilerplate of simple test code
11576 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011577echo "$lt_simple_compile_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11579_lt_compiler_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011580$RM conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011581
jimblandy92b1f832009-12-23 22:23:49 +000011582 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000011583echo "$lt_simple_link_test_code" >conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000011584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11585_lt_linker_boilerplate=`cat conftest.err`
jimblandy92b1f832009-12-23 22:23:49 +000011586$RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000011587
11588
jimblandy92b1f832009-12-23 22:23:49 +000011589 # Allow CC to be a program name with arguments.
11590 lt_save_CC=$CC
11591 lt_save_LD=$LD
11592 lt_save_GCC=$GCC
11593 GCC=$GXX
11594 lt_save_with_gnu_ld=$with_gnu_ld
11595 lt_save_path_LD=$lt_cv_path_LD
11596 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11597 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11598 else
11599 $as_unset lt_cv_prog_gnu_ld
11600 fi
11601 if test -n "${lt_cv_path_LDCXX+set}"; then
11602 lt_cv_path_LD=$lt_cv_path_LDCXX
11603 else
11604 $as_unset lt_cv_path_LD
11605 fi
11606 test -z "${LDCXX+set}" || LD=$LDCXX
11607 CC=${CXX-"c++"}
11608 compiler=$CC
11609 compiler_CXX=$CC
11610 for cc_temp in $compiler""; do
mmentovai8c2a4de2006-09-20 16:20:15 +000011611 case $cc_temp in
11612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11614 \-*) ;;
11615 *) break;;
11616 esac
11617done
jimblandy92b1f832009-12-23 22:23:49 +000011618cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
mmentovai8c2a4de2006-09-20 16:20:15 +000011619
brynercb91a2f2006-08-25 21:14:45 +000011620
jimblandy92b1f832009-12-23 22:23:49 +000011621 if test -n "$compiler"; then
11622 # We don't want -fno-exception when compiling C++ code, so set the
11623 # no_builtin_flag separately
11624 if test "$GXX" = yes; then
11625 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11626 else
11627 lt_prog_compiler_no_builtin_flag_CXX=
11628 fi
brynercb91a2f2006-08-25 21:14:45 +000011629
jimblandy92b1f832009-12-23 22:23:49 +000011630 if test "$GXX" = yes; then
11631 # Set up default GNU C++ configuration
11632
brynercb91a2f2006-08-25 21:14:45 +000011633
11634
mmentovai8c2a4de2006-09-20 16:20:15 +000011635# Check whether --with-gnu-ld was given.
jimblandy92b1f832009-12-23 22:23:49 +000011636if test "${with_gnu_ld+set}" = set; then :
mmentovai8c2a4de2006-09-20 16:20:15 +000011637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
brynercb91a2f2006-08-25 21:14:45 +000011638else
11639 with_gnu_ld=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011640fi
11641
brynercb91a2f2006-08-25 21:14:45 +000011642ac_prog=ld
11643if test "$GCC" = yes; then
11644 # Check if gcc -print-prog-name=ld gives a path.
jimblandy92b1f832009-12-23 22:23:49 +000011645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11646$as_echo_n "checking for ld used by $CC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011647 case $host in
11648 *-*-mingw*)
11649 # gcc leaves a trailing carriage return which upsets mingw
11650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11651 *)
11652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11653 esac
11654 case $ac_prog in
11655 # Accept absolute paths.
11656 [\\/]* | ?:[\\/]*)
11657 re_direlt='/[^/][^/]*/\.\./'
11658 # Canonicalize the pathname of ld
jimblandy92b1f832009-12-23 22:23:49 +000011659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
brynercb91a2f2006-08-25 21:14:45 +000011662 done
11663 test -z "$LD" && LD="$ac_prog"
11664 ;;
11665 "")
11666 # If it fails, then pretend we aren't using GCC.
11667 ac_prog=ld
11668 ;;
11669 *)
11670 # If it is relative, then search for the first ld in PATH.
11671 with_gnu_ld=unknown
11672 ;;
11673 esac
11674elif test "$with_gnu_ld" = yes; then
jimblandy92b1f832009-12-23 22:23:49 +000011675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11676$as_echo_n "checking for GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011677else
jimblandy92b1f832009-12-23 22:23:49 +000011678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11679$as_echo_n "checking for non-GNU ld... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011680fi
jimblandy92b1f832009-12-23 22:23:49 +000011681if test "${lt_cv_path_LD+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011683else
11684 if test -z "$LD"; then
11685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11686 for ac_dir in $PATH; do
11687 IFS="$lt_save_ifs"
11688 test -z "$ac_dir" && ac_dir=.
11689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11690 lt_cv_path_LD="$ac_dir/$ac_prog"
11691 # Check to see if the program is GNU ld. I'd rather use --version,
mmentovai8c2a4de2006-09-20 16:20:15 +000011692 # but apparently some variants of GNU ld only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011693 # Break only if it was the GNU/non-GNU ld that we prefer.
11694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11695 *GNU* | *'with BFD'*)
11696 test "$with_gnu_ld" != no && break
11697 ;;
11698 *)
11699 test "$with_gnu_ld" != yes && break
11700 ;;
11701 esac
11702 fi
11703 done
11704 IFS="$lt_save_ifs"
11705else
11706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11707fi
11708fi
11709
11710LD="$lt_cv_path_LD"
11711if test -n "$LD"; then
jimblandy92b1f832009-12-23 22:23:49 +000011712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11713$as_echo "$LD" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011714else
jimblandy92b1f832009-12-23 22:23:49 +000011715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011717fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000011718test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000011719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11720$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11721if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000011723else
mmentovai8c2a4de2006-09-20 16:20:15 +000011724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
brynercb91a2f2006-08-25 21:14:45 +000011725case `$LD -v 2>&1 </dev/null` in
11726*GNU* | *'with BFD'*)
11727 lt_cv_prog_gnu_ld=yes
11728 ;;
11729*)
11730 lt_cv_prog_gnu_ld=no
11731 ;;
11732esac
11733fi
jimblandy92b1f832009-12-23 22:23:49 +000011734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11735$as_echo "$lt_cv_prog_gnu_ld" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000011736with_gnu_ld=$lt_cv_prog_gnu_ld
11737
11738
11739
brynercb91a2f2006-08-25 21:14:45 +000011740
brynercb91a2f2006-08-25 21:14:45 +000011741
brynercb91a2f2006-08-25 21:14:45 +000011742
brynercb91a2f2006-08-25 21:14:45 +000011743
jimblandy92b1f832009-12-23 22:23:49 +000011744 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11745 # archiving commands below assume that GNU ld is being used.
11746 if test "$with_gnu_ld" = yes; then
11747 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11748 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 +000011749
jimblandy92b1f832009-12-23 22:23:49 +000011750 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
brynercb91a2f2006-08-25 21:14:45 +000011752
jimblandy92b1f832009-12-23 22:23:49 +000011753 # If archive_cmds runs LD, not CC, wlarc should be empty
11754 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11755 # investigate it a little bit more. (MM)
11756 wlarc='${wl}'
brynercb91a2f2006-08-25 21:14:45 +000011757
jimblandy92b1f832009-12-23 22:23:49 +000011758 # ancient GNU ld didn't support --whole-archive et. al.
11759 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11760 $GREP 'no-whole-archive' > /dev/null; then
11761 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11762 else
11763 whole_archive_flag_spec_CXX=
11764 fi
brynercb91a2f2006-08-25 21:14:45 +000011765 else
jimblandy92b1f832009-12-23 22:23:49 +000011766 with_gnu_ld=no
11767 wlarc=
11768
11769 # A generic and very simple default shared library creation
11770 # command for GNU C++ for the case where it uses the native
11771 # linker, instead of GNU ld. If possible, this setting should
11772 # overridden to take advantage of the native linker features on
11773 # the platform it is being used on.
11774 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
brynercb91a2f2006-08-25 21:14:45 +000011775 fi
brynercb91a2f2006-08-25 21:14:45 +000011776
brynercb91a2f2006-08-25 21:14:45 +000011777 # Commands to make compiler produce verbose output that lists
11778 # what "hidden" libraries, object files and flags are used when
11779 # linking a shared library.
jimblandy92b1f832009-12-23 22:23:49 +000011780 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11781
11782 else
11783 GXX=no
11784 with_gnu_ld=no
11785 wlarc=
11786 fi
11787
11788 # PORTME: fill in a description of your system's C++ link characteristics
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11790$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11791 ld_shlibs_CXX=yes
11792 case $host_os in
11793 aix3*)
brynercb91a2f2006-08-25 21:14:45 +000011794 # FIXME: insert proper C++ library support
11795 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000011796 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011797 aix[4-9]*)
11798 if test "$host_cpu" = ia64; then
11799 # On IA64, the linker does run time linking by default, so we don't
11800 # have to do anything special.
11801 aix_use_runtimelinking=no
11802 exp_sym_flag='-Bexport'
11803 no_entry_flag=""
11804 else
11805 aix_use_runtimelinking=no
brynercb91a2f2006-08-25 21:14:45 +000011806
jimblandy92b1f832009-12-23 22:23:49 +000011807 # Test if we are trying to use run time linking or normal
11808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11809 # need to do runtime linking.
11810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11811 for ld_flag in $LDFLAGS; do
11812 case $ld_flag in
11813 *-brtl*)
11814 aix_use_runtimelinking=yes
11815 break
11816 ;;
11817 esac
11818 done
11819 ;;
11820 esac
11821
11822 exp_sym_flag='-bexport'
11823 no_entry_flag='-bnoentry'
11824 fi
11825
11826 # When large executables or shared objects are built, AIX ld can
11827 # have problems creating the table of contents. If linking a library
11828 # or program results in "error TOC overflow" add -mminimal-toc to
11829 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11830 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11831
11832 archive_cmds_CXX=''
11833 hardcode_direct_CXX=yes
11834 hardcode_direct_absolute_CXX=yes
11835 hardcode_libdir_separator_CXX=':'
11836 link_all_deplibs_CXX=yes
11837 file_list_spec_CXX='${wl}-f,'
11838
11839 if test "$GXX" = yes; then
11840 case $host_os in aix4.[012]|aix4.[012].*)
11841 # We only want to do this on AIX 4.2 and lower, the check
11842 # below for broken collect2 doesn't work under 4.3+
11843 collect2name=`${CC} -print-prog-name=collect2`
11844 if test -f "$collect2name" &&
11845 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11846 then
11847 # We have reworked collect2
11848 :
11849 else
11850 # We have old collect2
11851 hardcode_direct_CXX=unsupported
11852 # It fails to find uninstalled libraries when the uninstalled
11853 # path is not listed in the libpath. Setting hardcode_minus_L
11854 # to unsupported forces relinking
11855 hardcode_minus_L_CXX=yes
11856 hardcode_libdir_flag_spec_CXX='-L$libdir'
11857 hardcode_libdir_separator_CXX=
11858 fi
11859 esac
11860 shared_flag='-shared'
11861 if test "$aix_use_runtimelinking" = yes; then
11862 shared_flag="$shared_flag "'${wl}-G'
11863 fi
11864 else
11865 # not using gcc
11866 if test "$host_cpu" = ia64; then
11867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11868 # chokes on -Wl,-G. The following line is correct:
11869 shared_flag='-G'
11870 else
11871 if test "$aix_use_runtimelinking" = yes; then
11872 shared_flag='${wl}-G'
11873 else
11874 shared_flag='${wl}-bM:SRE'
11875 fi
11876 fi
11877 fi
11878
11879 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11880 # It seems that -bexpall does not export symbols beginning with
11881 # underscore (_), so it is better to generate a list of symbols to
11882 # export.
11883 always_export_symbols_CXX=yes
11884 if test "$aix_use_runtimelinking" = yes; then
11885 # Warning - without using the other runtime loading flags (-brtl),
11886 # -berok will link without error, but may produce a broken library.
11887 allow_undefined_flag_CXX='-berok'
11888 # Determine the default libpath from the value encoded in an empty
11889 # executable.
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h. */
11892
11893int
11894main ()
11895{
11896
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901if ac_fn_cxx_try_link "$LINENO"; then :
11902
11903lt_aix_libpath_sed='
11904 /Import File Strings/,/^$/ {
11905 /^0/ {
11906 s/^0 *\(.*\)$/\1/
11907 p
11908 }
11909 }'
11910aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11911# Check for a 64-bit object if we didn't find anything.
11912if test -z "$aix_libpath"; then
11913 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11914fi
11915fi
11916rm -f core conftest.err conftest.$ac_objext \
11917 conftest$ac_exeext conftest.$ac_ext
11918if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11919
11920 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11921
11922 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"
11923 else
11924 if test "$host_cpu" = ia64; then
11925 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11926 allow_undefined_flag_CXX="-z nodefs"
11927 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"
11928 else
11929 # Determine the default libpath from the value encoded in an
11930 # empty executable.
11931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932/* end confdefs.h. */
11933
11934int
11935main ()
11936{
11937
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942if ac_fn_cxx_try_link "$LINENO"; then :
11943
11944lt_aix_libpath_sed='
11945 /Import File Strings/,/^$/ {
11946 /^0/ {
11947 s/^0 *\(.*\)$/\1/
11948 p
11949 }
11950 }'
11951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11952# Check for a 64-bit object if we didn't find anything.
11953if test -z "$aix_libpath"; then
11954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11955fi
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11960
11961 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11962 # Warning - without using the other run time loading flags,
11963 # -berok will link without error, but may produce a broken library.
11964 no_undefined_flag_CXX=' ${wl}-bernotok'
11965 allow_undefined_flag_CXX=' ${wl}-berok'
11966 # Exported symbols can be pulled into shared objects from archives
11967 whole_archive_flag_spec_CXX='$convenience'
11968 archive_cmds_need_lc_CXX=yes
11969 # This is similar to how AIX traditionally builds its shared
11970 # libraries.
11971 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'
11972 fi
11973 fi
11974 ;;
11975
11976 beos*)
11977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11978 allow_undefined_flag_CXX=unsupported
11979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11980 # support --undefined. This deserves some investigation. FIXME
11981 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11982 else
11983 ld_shlibs_CXX=no
11984 fi
brynercb91a2f2006-08-25 21:14:45 +000011985 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011986
11987 chorus*)
11988 case $cc_basename in
11989 *)
11990 # FIXME: insert proper C++ library support
11991 ld_shlibs_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000011992 ;;
jimblandy92b1f832009-12-23 22:23:49 +000011993 esac
11994 ;;
11995
11996 cygwin* | mingw* | pw32* | cegcc*)
11997 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11998 # as there is no search path for DLLs.
11999 hardcode_libdir_flag_spec_CXX='-L$libdir'
12000 allow_undefined_flag_CXX=unsupported
12001 always_export_symbols_CXX=no
12002 enable_shared_with_static_runtimes_CXX=yes
12003
12004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12005 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'
12006 # If the export-symbols file already is a .def file (1st line
12007 # is EXPORTS), use it as is; otherwise, prepend...
12008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12009 cp $export_symbols $output_objdir/$soname.def;
12010 else
12011 echo EXPORTS > $output_objdir/$soname.def;
12012 cat $export_symbols >> $output_objdir/$soname.def;
12013 fi~
12014 $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'
12015 else
12016 ld_shlibs_CXX=no
12017 fi
12018 ;;
12019 darwin* | rhapsody*)
12020
12021
12022 archive_cmds_need_lc_CXX=no
12023 hardcode_direct_CXX=no
12024 hardcode_automatic_CXX=yes
12025 hardcode_shlibpath_var_CXX=unsupported
12026 whole_archive_flag_spec_CXX=''
12027 link_all_deplibs_CXX=yes
12028 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12029 case $cc_basename in
12030 ifort*) _lt_dar_can_shared=yes ;;
12031 *) _lt_dar_can_shared=$GCC ;;
12032 esac
12033 if test "$_lt_dar_can_shared" = "yes"; then
12034 output_verbose_link_cmd=echo
12035 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}"
12036 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12037 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}"
12038 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}"
12039 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12040 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}"
12041 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}"
12042 fi
12043
12044 else
12045 ld_shlibs_CXX=no
12046 fi
12047
brynercb91a2f2006-08-25 21:14:45 +000012048 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012049
12050 dgux*)
12051 case $cc_basename in
12052 ec++*)
12053 # FIXME: insert proper C++ library support
12054 ld_shlibs_CXX=no
12055 ;;
12056 ghcx*)
12057 # Green Hills C++ Compiler
12058 # FIXME: insert proper C++ library support
12059 ld_shlibs_CXX=no
12060 ;;
12061 *)
12062 # FIXME: insert proper C++ library support
12063 ld_shlibs_CXX=no
12064 ;;
12065 esac
12066 ;;
12067
12068 freebsd[12]*)
12069 # C++ shared libraries reported to be fairly broken before
12070 # switch to ELF
12071 ld_shlibs_CXX=no
12072 ;;
12073
12074 freebsd-elf*)
12075 archive_cmds_need_lc_CXX=no
12076 ;;
12077
12078 freebsd* | dragonfly*)
12079 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12080 # conventions
12081 ld_shlibs_CXX=yes
12082 ;;
12083
12084 gnu*)
12085 ;;
12086
12087 hpux9*)
12088 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12089 hardcode_libdir_separator_CXX=:
12090 export_dynamic_flag_spec_CXX='${wl}-E'
12091 hardcode_direct_CXX=yes
12092 hardcode_minus_L_CXX=yes # Not in the search PATH,
12093 # but as the default
12094 # location of the library.
12095
12096 case $cc_basename in
12097 CC*)
12098 # FIXME: insert proper C++ library support
12099 ld_shlibs_CXX=no
12100 ;;
12101 aCC*)
12102 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'
12103 # Commands to make compiler produce verbose output that lists
12104 # what "hidden" libraries, object files and flags are used when
12105 # linking a shared library.
12106 #
12107 # There doesn't appear to be a way to prevent this compiler from
12108 # explicitly linking system object files so we need to strip them
12109 # from the output so that they don't get included in the library
12110 # dependencies.
12111 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'
12112 ;;
12113 *)
12114 if test "$GXX" = yes; then
12115 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'
12116 else
12117 # FIXME: insert proper C++ library support
12118 ld_shlibs_CXX=no
12119 fi
12120 ;;
12121 esac
12122 ;;
12123
12124 hpux10*|hpux11*)
12125 if test $with_gnu_ld = no; then
12126 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12127 hardcode_libdir_separator_CXX=:
12128
12129 case $host_cpu in
12130 hppa*64*|ia64*)
12131 ;;
12132 *)
12133 export_dynamic_flag_spec_CXX='${wl}-E'
12134 ;;
12135 esac
12136 fi
12137 case $host_cpu in
12138 hppa*64*|ia64*)
12139 hardcode_direct_CXX=no
12140 hardcode_shlibpath_var_CXX=no
12141 ;;
12142 *)
12143 hardcode_direct_CXX=yes
12144 hardcode_direct_absolute_CXX=yes
12145 hardcode_minus_L_CXX=yes # Not in the search PATH,
12146 # but as the default
12147 # location of the library.
12148 ;;
12149 esac
12150
12151 case $cc_basename in
12152 CC*)
12153 # FIXME: insert proper C++ library support
12154 ld_shlibs_CXX=no
12155 ;;
12156 aCC*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012157 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012158 hppa*64*)
12159 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160 ;;
12161 ia64*)
12162 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12163 ;;
12164 *)
12165 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12166 ;;
12167 esac
12168 # Commands to make compiler produce verbose output that lists
12169 # what "hidden" libraries, object files and flags are used when
12170 # linking a shared library.
12171 #
12172 # There doesn't appear to be a way to prevent this compiler from
12173 # explicitly linking system object files so we need to strip them
12174 # from the output so that they don't get included in the library
12175 # dependencies.
12176 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'
12177 ;;
12178 *)
12179 if test "$GXX" = yes; then
12180 if test $with_gnu_ld = no; then
12181 case $host_cpu in
12182 hppa*64*)
12183 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12184 ;;
12185 ia64*)
12186 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12187 ;;
12188 *)
12189 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'
12190 ;;
12191 esac
12192 fi
12193 else
12194 # FIXME: insert proper C++ library support
12195 ld_shlibs_CXX=no
12196 fi
12197 ;;
12198 esac
12199 ;;
12200
12201 interix[3-9]*)
12202 hardcode_direct_CXX=no
12203 hardcode_shlibpath_var_CXX=no
12204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12205 export_dynamic_flag_spec_CXX='${wl}-E'
12206 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12207 # Instead, shared libraries are loaded at an image base (0x10000000 by
12208 # default) and relocated if they conflict, which is a slow very memory
12209 # consuming and fragmenting process. To avoid this, we pick a random,
12210 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12211 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12212 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'
12213 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'
12214 ;;
12215 irix5* | irix6*)
12216 case $cc_basename in
12217 CC*)
12218 # SGI C++
12219 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'
12220
12221 # Archives containing C++ object files must be created using
12222 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12223 # necessary to make sure instantiated templates are included
12224 # in the archive.
12225 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12226 ;;
12227 *)
12228 if test "$GXX" = yes; then
12229 if test "$with_gnu_ld" = no; then
12230 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'
12231 else
12232 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'
12233 fi
12234 fi
12235 link_all_deplibs_CXX=yes
12236 ;;
12237 esac
12238 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12239 hardcode_libdir_separator_CXX=:
12240 inherit_rpath_CXX=yes
12241 ;;
12242
ted.mielczarekb2236272010-04-08 23:06:23 +000012243 linux* | k*bsd*-gnu | kopensolaris*-gnu)
jimblandy92b1f832009-12-23 22:23:49 +000012244 case $cc_basename in
12245 KCC*)
12246 # Kuck and Associates, Inc. (KAI) C++ Compiler
12247
12248 # KCC will only create a shared library if the output file
12249 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12250 # to its proper name (with version) after linking.
12251 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'
12252 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'
12253 # Commands to make compiler produce verbose output that lists
12254 # what "hidden" libraries, object files and flags are used when
12255 # linking a shared library.
12256 #
12257 # There doesn't appear to be a way to prevent this compiler from
12258 # explicitly linking system object files so we need to strip them
12259 # from the output so that they don't get included in the library
12260 # dependencies.
12261 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'
12262
12263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12265
12266 # Archives containing C++ object files must be created using
12267 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12268 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12269 ;;
12270 icpc* | ecpc* )
12271 # Intel C++
12272 with_gnu_ld=yes
12273 # version 8.0 and above of icpc choke on multiply defined symbols
12274 # if we add $predep_objects and $postdep_objects, however 7.1 and
12275 # earlier do not add the objects themselves.
12276 case `$CC -V 2>&1` in
12277 *"Version 7."*)
12278 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12279 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'
12280 ;;
12281 *) # Version 8.0 or newer
12282 tmp_idyn=
12283 case $host_cpu in
12284 ia64*) tmp_idyn=' -i_dynamic';;
12285 esac
12286 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12287 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'
12288 ;;
12289 esac
12290 archive_cmds_need_lc_CXX=no
12291 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12293 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12294 ;;
12295 pgCC* | pgcpp*)
12296 # Portland Group C++ compiler
12297 case `$CC -V` in
12298 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12299 prelink_cmds_CXX='tpldir=Template.dir~
12300 rm -rf $tpldir~
12301 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12302 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12303 old_archive_cmds_CXX='tpldir=Template.dir~
12304 rm -rf $tpldir~
12305 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12306 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12307 $RANLIB $oldlib'
12308 archive_cmds_CXX='tpldir=Template.dir~
12309 rm -rf $tpldir~
12310 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12311 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12312 archive_expsym_cmds_CXX='tpldir=Template.dir~
12313 rm -rf $tpldir~
12314 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12315 $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 +000012316 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012317 *) # Version 6 will use weak symbols
12318 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12319 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 +000012320 ;;
12321 esac
brynercb91a2f2006-08-25 21:14:45 +000012322
jimblandy92b1f832009-12-23 22:23:49 +000012323 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12324 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12325 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'
12326 ;;
12327 cxx*)
12328 # Compaq C++
12329 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12330 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 +000012331
jimblandy92b1f832009-12-23 22:23:49 +000012332 runpath_var=LD_RUN_PATH
12333 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12334 hardcode_libdir_separator_CXX=:
brynercb91a2f2006-08-25 21:14:45 +000012335
jimblandy92b1f832009-12-23 22:23:49 +000012336 # Commands to make compiler produce verbose output that lists
12337 # what "hidden" libraries, object files and flags are used when
12338 # linking a shared library.
12339 #
12340 # There doesn't appear to be a way to prevent this compiler from
12341 # explicitly linking system object files so we need to strip them
12342 # from the output so that they don't get included in the library
12343 # dependencies.
12344 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'
12345 ;;
12346 xl*)
12347 # IBM XL 8.0 on PPC, with GNU ld
12348 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12350 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351 if test "x$supports_anon_versioning" = xyes; then
12352 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12354 echo "local: *; };" >> $output_objdir/$libname.ver~
12355 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12356 fi
12357 ;;
12358 *)
12359 case `$CC -V 2>&1 | sed 5q` in
12360 *Sun\ C*)
12361 # Sun C++ 5.9
12362 no_undefined_flag_CXX=' -zdefs'
12363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12364 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'
12365 hardcode_libdir_flag_spec_CXX='-R$libdir'
12366 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'
12367 compiler_needs_object_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012368
jimblandy92b1f832009-12-23 22:23:49 +000012369 # Not sure whether something based on
12370 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12371 # would be better.
12372 output_verbose_link_cmd='echo'
12373
12374 # Archives containing C++ object files must be created using
12375 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12376 # necessary to make sure instantiated templates are included
12377 # in the archive.
12378 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12379 ;;
12380 esac
12381 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012382 esac
brynercb91a2f2006-08-25 21:14:45 +000012383 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012384
jimblandy92b1f832009-12-23 22:23:49 +000012385 lynxos*)
12386 # FIXME: insert proper C++ library support
12387 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012388 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012389
12390 m88k*)
12391 # FIXME: insert proper C++ library support
12392 ld_shlibs_CXX=no
12393 ;;
12394
12395 mvs*)
12396 case $cc_basename in
12397 cxx*)
12398 # FIXME: insert proper C++ library support
12399 ld_shlibs_CXX=no
12400 ;;
12401 *)
12402 # FIXME: insert proper C++ library support
12403 ld_shlibs_CXX=no
12404 ;;
12405 esac
12406 ;;
12407
12408 netbsd*)
12409 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12410 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12411 wlarc=
ted.mielczarek1adb1842009-12-21 13:12:20 +000012412 hardcode_libdir_flag_spec_CXX='-R$libdir'
jimblandy92b1f832009-12-23 22:23:49 +000012413 hardcode_direct_CXX=yes
12414 hardcode_shlibpath_var_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012415 fi
jimblandy92b1f832009-12-23 22:23:49 +000012416 # Workaround some broken pre-1.5 toolchains
12417 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 +000012418 ;;
brynercb91a2f2006-08-25 21:14:45 +000012419
jimblandy92b1f832009-12-23 22:23:49 +000012420 *nto* | *qnx*)
12421 ld_shlibs_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000012422 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012423
12424 openbsd2*)
12425 # C++ shared libraries are fairly broken
brynercb91a2f2006-08-25 21:14:45 +000012426 ld_shlibs_CXX=no
12427 ;;
brynercb91a2f2006-08-25 21:14:45 +000012428
jimblandy92b1f832009-12-23 22:23:49 +000012429 openbsd*)
12430 if test -f /usr/libexec/ld.so; then
12431 hardcode_direct_CXX=yes
12432 hardcode_shlibpath_var_CXX=no
12433 hardcode_direct_absolute_CXX=yes
12434 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12435 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12437 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12438 export_dynamic_flag_spec_CXX='${wl}-E'
12439 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
brynercb91a2f2006-08-25 21:14:45 +000012440 fi
jimblandy92b1f832009-12-23 22:23:49 +000012441 output_verbose_link_cmd=echo
12442 else
12443 ld_shlibs_CXX=no
brynercb91a2f2006-08-25 21:14:45 +000012444 fi
12445 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012446
jimblandy92b1f832009-12-23 22:23:49 +000012447 osf3* | osf4* | osf5*)
12448 case $cc_basename in
12449 KCC*)
12450 # Kuck and Associates, Inc. (KAI) C++ Compiler
12451
12452 # KCC will only create a shared library if the output file
12453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12454 # to its proper name (with version) after linking.
12455 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'
12456
12457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12458 hardcode_libdir_separator_CXX=:
12459
12460 # Archives containing C++ object files must be created using
12461 # the KAI C++ compiler.
12462 case $host in
12463 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12464 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12465 esac
12466 ;;
12467 RCC*)
12468 # Rational C++ 2.4.1
12469 # FIXME: insert proper C++ library support
12470 ld_shlibs_CXX=no
12471 ;;
12472 cxx*)
12473 case $host in
12474 osf3*)
12475 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12476 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'
12477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12478 ;;
12479 *)
12480 allow_undefined_flag_CXX=' -expect_unresolved \*'
12481 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'
12482 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12483 echo "-hidden">> $lib.exp~
12484 $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~
12485 $RM $lib.exp'
12486 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12487 ;;
12488 esac
12489
12490 hardcode_libdir_separator_CXX=:
12491
12492 # Commands to make compiler produce verbose output that lists
12493 # what "hidden" libraries, object files and flags are used when
12494 # linking a shared library.
12495 #
12496 # There doesn't appear to be a way to prevent this compiler from
12497 # explicitly linking system object files so we need to strip them
12498 # from the output so that they don't get included in the library
12499 # dependencies.
12500 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'
12501 ;;
12502 *)
12503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12504 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12505 case $host in
12506 osf3*)
12507 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'
12508 ;;
12509 *)
12510 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'
12511 ;;
12512 esac
12513
12514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12515 hardcode_libdir_separator_CXX=:
12516
12517 # Commands to make compiler produce verbose output that lists
12518 # what "hidden" libraries, object files and flags are used when
12519 # linking a shared library.
12520 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12521
12522 else
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12525 fi
12526 ;;
12527 esac
12528 ;;
12529
12530 psos*)
12531 # FIXME: insert proper C++ library support
12532 ld_shlibs_CXX=no
12533 ;;
12534
12535 sunos4*)
12536 case $cc_basename in
12537 CC*)
12538 # Sun C++ 4.x
12539 # FIXME: insert proper C++ library support
12540 ld_shlibs_CXX=no
12541 ;;
12542 lcc*)
12543 # Lucid
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 *)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12550 ;;
12551 esac
12552 ;;
12553
12554 solaris*)
12555 case $cc_basename in
12556 CC*)
12557 # Sun C++ 4.2, 5.x and Centerline C++
12558 archive_cmds_need_lc_CXX=yes
12559 no_undefined_flag_CXX=' -zdefs'
12560 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12561 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12562 $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'
12563
12564 hardcode_libdir_flag_spec_CXX='-R$libdir'
12565 hardcode_shlibpath_var_CXX=no
12566 case $host_os in
12567 solaris2.[0-5] | solaris2.[0-5].*) ;;
12568 *)
12569 # The compiler driver will combine and reorder linker options,
12570 # but understands `-z linker_flag'.
12571 # Supported since Solaris 2.6 (maybe 2.5.1?)
12572 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12573 ;;
12574 esac
12575 link_all_deplibs_CXX=yes
12576
12577 output_verbose_link_cmd='echo'
12578
12579 # Archives containing C++ object files must be created using
12580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12581 # necessary to make sure instantiated templates are included
12582 # in the archive.
12583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12584 ;;
12585 gcx*)
12586 # Green Hills C++ Compiler
12587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12588
12589 # The C++ compiler must be used to create the archive.
12590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12591 ;;
12592 *)
12593 # GNU C++ compiler with Solaris linker
12594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12596 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12598 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12600
12601 # Commands to make compiler produce verbose output that lists
12602 # what "hidden" libraries, object files and flags are used when
12603 # linking a shared library.
12604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12605 else
12606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12607 # platform.
12608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12611
12612 # Commands to make compiler produce verbose output that lists
12613 # what "hidden" libraries, object files and flags are used when
12614 # linking a shared library.
12615 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12616 fi
12617
12618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12619 case $host_os in
12620 solaris2.[0-5] | solaris2.[0-5].*) ;;
12621 *)
12622 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12623 ;;
12624 esac
12625 fi
12626 ;;
12627 esac
12628 ;;
12629
12630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12631 no_undefined_flag_CXX='${wl}-z,text'
12632 archive_cmds_need_lc_CXX=no
12633 hardcode_shlibpath_var_CXX=no
12634 runpath_var='LD_RUN_PATH'
12635
12636 case $cc_basename in
12637 CC*)
12638 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12639 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12640 ;;
12641 *)
12642 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12643 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644 ;;
12645 esac
12646 ;;
12647
12648 sysv5* | sco3.2v5* | sco5v6*)
12649 # Note: We can NOT use -z defs as we might desire, because we do not
12650 # link with -lc, and that would cause any symbols used from libc to
12651 # always be unresolved, which means just about no library would
12652 # ever link correctly. If we're not using GNU ld we use -z text
12653 # though, which does catch some bad symbols but isn't as heavy-handed
12654 # as -z defs.
12655 no_undefined_flag_CXX='${wl}-z,text'
12656 allow_undefined_flag_CXX='${wl}-z,nodefs'
12657 archive_cmds_need_lc_CXX=no
12658 hardcode_shlibpath_var_CXX=no
12659 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12660 hardcode_libdir_separator_CXX=':'
12661 link_all_deplibs_CXX=yes
12662 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12663 runpath_var='LD_RUN_PATH'
12664
12665 case $cc_basename in
12666 CC*)
12667 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12668 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12669 ;;
12670 *)
12671 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673 ;;
12674 esac
12675 ;;
12676
12677 tandem*)
12678 case $cc_basename in
12679 NCC*)
12680 # NonStop-UX NCC 3.20
12681 # FIXME: insert proper C++ library support
12682 ld_shlibs_CXX=no
12683 ;;
12684 *)
12685 # FIXME: insert proper C++ library support
12686 ld_shlibs_CXX=no
12687 ;;
12688 esac
12689 ;;
12690
12691 vxworks*)
12692 # FIXME: insert proper C++ library support
12693 ld_shlibs_CXX=no
12694 ;;
12695
mmentovai8c2a4de2006-09-20 16:20:15 +000012696 *)
jimblandy92b1f832009-12-23 22:23:49 +000012697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12699 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000012700 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000012701
jimblandy92b1f832009-12-23 22:23:49 +000012702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12703$as_echo "$ld_shlibs_CXX" >&6; }
12704 test "$ld_shlibs_CXX" = no && can_build_shared=no
brynercb91a2f2006-08-25 21:14:45 +000012705
jimblandy92b1f832009-12-23 22:23:49 +000012706 GCC_CXX="$GXX"
12707 LD_CXX="$LD"
brynercb91a2f2006-08-25 21:14:45 +000012708
jimblandy92b1f832009-12-23 22:23:49 +000012709 ## CAVEAT EMPTOR:
12710 ## There is no encapsulation within the following macros, do not change
12711 ## the running order or otherwise move them around unless you know exactly
12712 ## what you are doing...
12713 # Dependencies to place before and after the object being linked:
12714predep_objects_CXX=
12715postdep_objects_CXX=
12716predeps_CXX=
12717postdeps_CXX=
12718compiler_lib_search_path_CXX=
12719
12720cat > conftest.$ac_ext <<_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012721class Foo
12722{
12723public:
12724 Foo (void) { a = 0; }
12725private:
12726 int a;
12727};
jimblandy92b1f832009-12-23 22:23:49 +000012728_LT_EOF
brynercb91a2f2006-08-25 21:14:45 +000012729
jimblandy92b1f832009-12-23 22:23:49 +000012730if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000012731 (eval $ac_compile) 2>&5
12732 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000012733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734 test $ac_status = 0; }; then
brynercb91a2f2006-08-25 21:14:45 +000012735 # Parse the compiler output and extract the necessary
12736 # objects, libraries and library flags.
12737
12738 # Sentinel used to keep track of whether or not we are before
12739 # the conftest object file.
12740 pre_test_object_deps_done=no
12741
jimblandy92b1f832009-12-23 22:23:49 +000012742 for p in `eval "$output_verbose_link_cmd"`; do
brynercb91a2f2006-08-25 21:14:45 +000012743 case $p in
12744
12745 -L* | -R* | -l*)
12746 # Some compilers place space between "-{L,R}" and the path.
12747 # Remove the space.
jimblandy92b1f832009-12-23 22:23:49 +000012748 if test $p = "-L" ||
12749 test $p = "-R"; then
brynercb91a2f2006-08-25 21:14:45 +000012750 prev=$p
12751 continue
12752 else
12753 prev=
12754 fi
12755
12756 if test "$pre_test_object_deps_done" = no; then
12757 case $p in
12758 -L* | -R*)
12759 # Internal compiler library paths should come after those
12760 # provided the user. The postdeps already come after the
12761 # user supplied libs so there is no need to process them.
12762 if test -z "$compiler_lib_search_path_CXX"; then
12763 compiler_lib_search_path_CXX="${prev}${p}"
12764 else
12765 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12766 fi
12767 ;;
12768 # The "-l" case would never come before the object being
12769 # linked, so don't bother handling this case.
12770 esac
12771 else
12772 if test -z "$postdeps_CXX"; then
12773 postdeps_CXX="${prev}${p}"
12774 else
12775 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12776 fi
12777 fi
12778 ;;
12779
12780 *.$objext)
12781 # This assumes that the test object file only shows up
12782 # once in the compiler output.
12783 if test "$p" = "conftest.$objext"; then
12784 pre_test_object_deps_done=yes
12785 continue
12786 fi
12787
12788 if test "$pre_test_object_deps_done" = no; then
12789 if test -z "$predep_objects_CXX"; then
12790 predep_objects_CXX="$p"
12791 else
12792 predep_objects_CXX="$predep_objects_CXX $p"
12793 fi
12794 else
12795 if test -z "$postdep_objects_CXX"; then
12796 postdep_objects_CXX="$p"
12797 else
12798 postdep_objects_CXX="$postdep_objects_CXX $p"
12799 fi
12800 fi
12801 ;;
12802
12803 *) ;; # Ignore the rest.
12804
12805 esac
12806 done
12807
12808 # Clean up.
12809 rm -f a.out a.exe
12810else
12811 echo "libtool.m4: error: problem compiling CXX test program"
12812fi
12813
jimblandy92b1f832009-12-23 22:23:49 +000012814$RM -f confest.$objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000012815
mmentovai8c2a4de2006-09-20 16:20:15 +000012816# PORTME: override above test on systems where it is broken
12817case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012818interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012819 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12820 # hack all around it, let's just trust "g++" to DTRT.
12821 predep_objects_CXX=
12822 postdep_objects_CXX=
12823 postdeps_CXX=
12824 ;;
12825
ted.mielczarek1adb1842009-12-21 13:12:20 +000012826linux*)
12827 case `$CC -V 2>&1 | sed 5q` in
12828 *Sun\ C*)
12829 # Sun C++ 5.9
jimblandy92b1f832009-12-23 22:23:49 +000012830
ted.mielczarek1adb1842009-12-21 13:12:20 +000012831 # The more standards-conforming stlport4 library is
12832 # incompatible with the Cstd library. Avoid specifying
12833 # it if it's in CXXFLAGS. Ignore libCrun as
12834 # -library=stlport4 depends on it.
12835 case " $CXX $CXXFLAGS " in
12836 *" -library=stlport4 "*)
12837 solaris_use_stlport4=yes
12838 ;;
12839 esac
jimblandy92b1f832009-12-23 22:23:49 +000012840
ted.mielczarek1adb1842009-12-21 13:12:20 +000012841 if test "$solaris_use_stlport4" != yes; then
12842 postdeps_CXX='-library=Cstd -library=Crun'
12843 fi
12844 ;;
12845 esac
12846 ;;
12847
mmentovai8c2a4de2006-09-20 16:20:15 +000012848solaris*)
12849 case $cc_basename in
12850 CC*)
ted.mielczarek1adb1842009-12-21 13:12:20 +000012851 # The more standards-conforming stlport4 library is
12852 # incompatible with the Cstd library. Avoid specifying
12853 # it if it's in CXXFLAGS. Ignore libCrun as
12854 # -library=stlport4 depends on it.
12855 case " $CXX $CXXFLAGS " in
12856 *" -library=stlport4 "*)
12857 solaris_use_stlport4=yes
12858 ;;
12859 esac
12860
mmentovai8c2a4de2006-09-20 16:20:15 +000012861 # Adding this requires a known-good setup of shared libraries for
12862 # Sun compiler versions before 5.6, else PIC objects from an old
12863 # archive will be linked into the output, leading to subtle bugs.
ted.mielczarek1adb1842009-12-21 13:12:20 +000012864 if test "$solaris_use_stlport4" != yes; then
12865 postdeps_CXX='-library=Cstd -library=Crun'
12866 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000012867 ;;
12868 esac
12869 ;;
12870esac
12871
jimblandy92b1f832009-12-23 22:23:49 +000012872
brynercb91a2f2006-08-25 21:14:45 +000012873case " $postdeps_CXX " in
12874*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12875esac
jimblandy92b1f832009-12-23 22:23:49 +000012876 compiler_lib_search_dirs_CXX=
12877if test -n "${compiler_lib_search_path_CXX}"; then
12878 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12879fi
brynercb91a2f2006-08-25 21:14:45 +000012880
jimblandy92b1f832009-12-23 22:23:49 +000012881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911 lt_prog_compiler_wl_CXX=
brynercb91a2f2006-08-25 21:14:45 +000012912lt_prog_compiler_pic_CXX=
12913lt_prog_compiler_static_CXX=
12914
jimblandy92b1f832009-12-23 22:23:49 +000012915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12916$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000012917
12918 # C++ specific cases for pic, static, wl, etc.
12919 if test "$GXX" = yes; then
12920 lt_prog_compiler_wl_CXX='-Wl,'
12921 lt_prog_compiler_static_CXX='-static'
12922
12923 case $host_os in
12924 aix*)
12925 # All AIX code is PIC.
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 now supports IA64 processor
12928 lt_prog_compiler_static_CXX='-Bstatic'
12929 fi
12930 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012931
brynercb91a2f2006-08-25 21:14:45 +000012932 amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000012933 case $host_cpu in
12934 powerpc)
12935 # see comment about AmigaOS4 .so support
12936 lt_prog_compiler_pic_CXX='-fPIC'
12937 ;;
12938 m68k)
12939 # FIXME: we need at least 68020 code to build shared libraries, but
12940 # adding the `-m68020' flag to GCC prevents building anything better,
12941 # like `-m68040'.
12942 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12943 ;;
12944 esac
brynercb91a2f2006-08-25 21:14:45 +000012945 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012946
ted.mielczarek1adb1842009-12-21 13:12:20 +000012947 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
brynercb91a2f2006-08-25 21:14:45 +000012948 # PIC is the default for these OSes.
12949 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012950 mingw* | cygwin* | os2* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000012951 # This hack is so that the source file can tell whether it is being
12952 # built for inclusion in a dll (and should export symbols for example).
ted.mielczarek1adb1842009-12-21 13:12:20 +000012953 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12954 # (--disable-auto-import) libraries
brynercb91a2f2006-08-25 21:14:45 +000012955 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12956 ;;
12957 darwin* | rhapsody*)
12958 # PIC is the default on this platform
12959 # Common symbols not allowed in MH_DYLIB files
12960 lt_prog_compiler_pic_CXX='-fno-common'
12961 ;;
12962 *djgpp*)
12963 # DJGPP does not support shared libraries at all
12964 lt_prog_compiler_pic_CXX=
12965 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000012966 interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000012967 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12968 # Instead, we relocate shared libraries at runtime.
12969 ;;
brynercb91a2f2006-08-25 21:14:45 +000012970 sysv4*MP*)
12971 if test -d /usr/nec; then
12972 lt_prog_compiler_pic_CXX=-Kconform_pic
12973 fi
12974 ;;
12975 hpux*)
jimblandy92b1f832009-12-23 22:23:49 +000012976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12978 # sets the default TLS model and affects inlining.
mmentovai8c2a4de2006-09-20 16:20:15 +000012979 case $host_cpu in
jimblandy92b1f832009-12-23 22:23:49 +000012980 hppa*64*)
brynercb91a2f2006-08-25 21:14:45 +000012981 ;;
12982 *)
12983 lt_prog_compiler_pic_CXX='-fPIC'
12984 ;;
12985 esac
12986 ;;
jimblandy92b1f832009-12-23 22:23:49 +000012987 *qnx* | *nto*)
12988 # QNX uses GNU C++, but need to define -shared option too, otherwise
12989 # it will coredump.
12990 lt_prog_compiler_pic_CXX='-fPIC -shared'
12991 ;;
brynercb91a2f2006-08-25 21:14:45 +000012992 *)
12993 lt_prog_compiler_pic_CXX='-fPIC'
12994 ;;
12995 esac
12996 else
12997 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000012998 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000012999 # All AIX code is PIC.
13000 if test "$host_cpu" = ia64; then
13001 # AIX 5 now supports IA64 processor
13002 lt_prog_compiler_static_CXX='-Bstatic'
13003 else
13004 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13005 fi
13006 ;;
13007 chorus*)
13008 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013009 cxch68*)
brynercb91a2f2006-08-25 21:14:45 +000013010 # Green Hills C++ Compiler
jimblandy92b1f832009-12-23 22:23:49 +000013011 # _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 +000013012 ;;
13013 esac
13014 ;;
13015 dgux*)
13016 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013017 ec++*)
brynercb91a2f2006-08-25 21:14:45 +000013018 lt_prog_compiler_pic_CXX='-KPIC'
13019 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013020 ghcx*)
brynercb91a2f2006-08-25 21:14:45 +000013021 # Green Hills C++ Compiler
13022 lt_prog_compiler_pic_CXX='-pic'
13023 ;;
13024 *)
13025 ;;
13026 esac
13027 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013028 freebsd* | dragonfly*)
brynercb91a2f2006-08-25 21:14:45 +000013029 # FreeBSD uses GNU C++
13030 ;;
13031 hpux9* | hpux10* | hpux11*)
13032 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013033 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013034 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013035 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
brynercb91a2f2006-08-25 21:14:45 +000013036 if test "$host_cpu" != ia64; then
13037 lt_prog_compiler_pic_CXX='+Z'
13038 fi
13039 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013040 aCC*)
brynercb91a2f2006-08-25 21:14:45 +000013041 lt_prog_compiler_wl_CXX='-Wl,'
mmentovai8c2a4de2006-09-20 16:20:15 +000013042 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13043 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013044 hppa*64*|ia64*)
13045 # +Z the default
13046 ;;
13047 *)
13048 lt_prog_compiler_pic_CXX='+Z'
13049 ;;
13050 esac
13051 ;;
13052 *)
13053 ;;
13054 esac
13055 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013056 interix*)
13057 # This is c89, which is MS Visual C++ (no shared libs)
13058 # Anyone wants to do a port?
13059 ;;
brynercb91a2f2006-08-25 21:14:45 +000013060 irix5* | irix6* | nonstopux*)
13061 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013062 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013063 lt_prog_compiler_wl_CXX='-Wl,'
13064 lt_prog_compiler_static_CXX='-non_shared'
13065 # CC pic flag -KPIC is the default.
13066 ;;
13067 *)
13068 ;;
13069 esac
13070 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013071 linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013072 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013073 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013074 # KAI C++ Compiler
13075 lt_prog_compiler_wl_CXX='--backend -Wl,'
13076 lt_prog_compiler_pic_CXX='-fPIC'
13077 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013078 ecpc* )
13079 # old Intel C++ for x86_64 which still supported -KPIC.
brynercb91a2f2006-08-25 21:14:45 +000013080 lt_prog_compiler_wl_CXX='-Wl,'
13081 lt_prog_compiler_pic_CXX='-KPIC'
13082 lt_prog_compiler_static_CXX='-static'
13083 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013084 icpc* )
13085 # Intel C++, used to be incompatible with GCC.
13086 # ICC 10 doesn't accept -KPIC any more.
13087 lt_prog_compiler_wl_CXX='-Wl,'
13088 lt_prog_compiler_pic_CXX='-fPIC'
13089 lt_prog_compiler_static_CXX='-static'
13090 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013091 pgCC* | pgcpp*)
jimblandy92b1f832009-12-23 22:23:49 +000013092 # Portland Group C++ compiler
mmentovai8c2a4de2006-09-20 16:20:15 +000013093 lt_prog_compiler_wl_CXX='-Wl,'
13094 lt_prog_compiler_pic_CXX='-fpic'
13095 lt_prog_compiler_static_CXX='-Bstatic'
13096 ;;
13097 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013098 # Compaq C++
13099 # Make sure the PIC flag is empty. It appears that all Alpha
13100 # Linux and Compaq Tru64 Unix objects are PIC.
13101 lt_prog_compiler_pic_CXX=
13102 lt_prog_compiler_static_CXX='-non_shared'
13103 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013104 xlc* | xlC*)
13105 # IBM XL 8.0 on PPC
13106 lt_prog_compiler_wl_CXX='-Wl,'
13107 lt_prog_compiler_pic_CXX='-qpic'
13108 lt_prog_compiler_static_CXX='-qstaticlink'
13109 ;;
brynercb91a2f2006-08-25 21:14:45 +000013110 *)
ted.mielczarek1adb1842009-12-21 13:12:20 +000013111 case `$CC -V 2>&1 | sed 5q` in
13112 *Sun\ C*)
13113 # Sun C++ 5.9
13114 lt_prog_compiler_pic_CXX='-KPIC'
13115 lt_prog_compiler_static_CXX='-Bstatic'
13116 lt_prog_compiler_wl_CXX='-Qoption ld '
13117 ;;
13118 esac
brynercb91a2f2006-08-25 21:14:45 +000013119 ;;
13120 esac
13121 ;;
13122 lynxos*)
13123 ;;
13124 m88k*)
13125 ;;
13126 mvs*)
13127 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013128 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013129 lt_prog_compiler_pic_CXX='-W c,exportall'
13130 ;;
13131 *)
13132 ;;
13133 esac
13134 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013135 netbsd* | netbsdelf*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013136 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013137 *qnx* | *nto*)
13138 # QNX uses GNU C++, but need to define -shared option too, otherwise
13139 # it will coredump.
13140 lt_prog_compiler_pic_CXX='-fPIC -shared'
13141 ;;
brynercb91a2f2006-08-25 21:14:45 +000013142 osf3* | osf4* | osf5*)
13143 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013144 KCC*)
brynercb91a2f2006-08-25 21:14:45 +000013145 lt_prog_compiler_wl_CXX='--backend -Wl,'
13146 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013147 RCC*)
brynercb91a2f2006-08-25 21:14:45 +000013148 # Rational C++ 2.4.1
13149 lt_prog_compiler_pic_CXX='-pic'
13150 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013151 cxx*)
brynercb91a2f2006-08-25 21:14:45 +000013152 # Digital/Compaq C++
13153 lt_prog_compiler_wl_CXX='-Wl,'
13154 # Make sure the PIC flag is empty. It appears that all Alpha
13155 # Linux and Compaq Tru64 Unix objects are PIC.
13156 lt_prog_compiler_pic_CXX=
13157 lt_prog_compiler_static_CXX='-non_shared'
13158 ;;
13159 *)
13160 ;;
13161 esac
13162 ;;
13163 psos*)
13164 ;;
brynercb91a2f2006-08-25 21:14:45 +000013165 solaris*)
13166 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013167 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013168 # Sun C++ 4.2, 5.x and Centerline C++
13169 lt_prog_compiler_pic_CXX='-KPIC'
13170 lt_prog_compiler_static_CXX='-Bstatic'
13171 lt_prog_compiler_wl_CXX='-Qoption ld '
13172 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013173 gcx*)
brynercb91a2f2006-08-25 21:14:45 +000013174 # Green Hills C++ Compiler
13175 lt_prog_compiler_pic_CXX='-PIC'
13176 ;;
13177 *)
13178 ;;
13179 esac
13180 ;;
13181 sunos4*)
13182 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013183 CC*)
brynercb91a2f2006-08-25 21:14:45 +000013184 # Sun C++ 4.x
13185 lt_prog_compiler_pic_CXX='-pic'
13186 lt_prog_compiler_static_CXX='-Bstatic'
13187 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013188 lcc*)
brynercb91a2f2006-08-25 21:14:45 +000013189 # Lucid
13190 lt_prog_compiler_pic_CXX='-pic'
13191 ;;
13192 *)
13193 ;;
13194 esac
13195 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013196 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13197 case $cc_basename in
13198 CC*)
13199 lt_prog_compiler_wl_CXX='-Wl,'
13200 lt_prog_compiler_pic_CXX='-KPIC'
13201 lt_prog_compiler_static_CXX='-Bstatic'
13202 ;;
13203 esac
13204 ;;
brynercb91a2f2006-08-25 21:14:45 +000013205 tandem*)
13206 case $cc_basename in
mmentovai8c2a4de2006-09-20 16:20:15 +000013207 NCC*)
brynercb91a2f2006-08-25 21:14:45 +000013208 # NonStop-UX NCC 3.20
13209 lt_prog_compiler_pic_CXX='-KPIC'
13210 ;;
13211 *)
13212 ;;
13213 esac
13214 ;;
brynercb91a2f2006-08-25 21:14:45 +000013215 vxworks*)
13216 ;;
13217 *)
13218 lt_prog_compiler_can_build_shared_CXX=no
13219 ;;
13220 esac
13221 fi
13222
jimblandy92b1f832009-12-23 22:23:49 +000013223case $host_os in
13224 # For platforms which do not support PIC, -DPIC is meaningless:
13225 *djgpp*)
13226 lt_prog_compiler_pic_CXX=
13227 ;;
13228 *)
13229 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13230 ;;
13231esac
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13233$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13234
13235
brynercb91a2f2006-08-25 21:14:45 +000013236
13237#
13238# Check to make sure the PIC flag actually works.
13239#
13240if test -n "$lt_prog_compiler_pic_CXX"; then
jimblandy92b1f832009-12-23 22:23:49 +000013241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13242$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13243if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13244 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013245else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013246 lt_cv_prog_compiler_pic_works_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013247 ac_outfile=conftest.$ac_objext
ted.mielczarek1adb1842009-12-21 13:12:20 +000013248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013249 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13250 # Insert the option either (1) after the last *FLAGS variable, or
13251 # (2) before a word containing "conftest.", or (3) at the end.
13252 # Note that $ac_compile itself does not contain backslashes and begins
13253 # with a dollar sign (not a hyphen), so the echo should work correctly.
13254 # The option is referenced via a variable to avoid confusing sed.
13255 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13258 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013259 (eval echo "\"\$as_me:13259: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013260 (eval "$lt_compile" 2>conftest.err)
13261 ac_status=$?
13262 cat conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013263 echo "$as_me:13263: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013264 if (exit $ac_status) && test -s "$ac_outfile"; then
13265 # The compiler can only warn and ignore the option if not recognized
mmentovai8c2a4de2006-09-20 16:20:15 +000013266 # So say no if there are warnings other than the usual output.
jimblandy92b1f832009-12-23 22:23:49 +000013267 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013270 lt_cv_prog_compiler_pic_works_CXX=yes
brynercb91a2f2006-08-25 21:14:45 +000013271 fi
13272 fi
jimblandy92b1f832009-12-23 22:23:49 +000013273 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013274
13275fi
jimblandy92b1f832009-12-23 22:23:49 +000013276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13277$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013278
ted.mielczarek1adb1842009-12-21 13:12:20 +000013279if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
brynercb91a2f2006-08-25 21:14:45 +000013280 case $lt_prog_compiler_pic_CXX in
13281 "" | " "*) ;;
13282 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13283 esac
13284else
13285 lt_prog_compiler_pic_CXX=
13286 lt_prog_compiler_can_build_shared_CXX=no
13287fi
13288
13289fi
jimblandy92b1f832009-12-23 22:23:49 +000013290
13291
brynercb91a2f2006-08-25 21:14:45 +000013292
mmentovai8c2a4de2006-09-20 16:20:15 +000013293#
13294# Check to make sure the static flag actually works.
13295#
13296wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
jimblandy92b1f832009-12-23 22:23:49 +000013297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13298$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13299if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
mmentovai8c2a4de2006-09-20 16:20:15 +000013301else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013302 lt_cv_prog_compiler_static_works_CXX=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013303 save_LDFLAGS="$LDFLAGS"
13304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ted.mielczarek1adb1842009-12-21 13:12:20 +000013305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000013306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13307 # The linker can only warn and ignore the option if not recognized
13308 # So say no if there are warnings
13309 if test -s conftest.err; then
13310 # Append any errors to the config.log.
13311 cat conftest.err 1>&5
jimblandy92b1f832009-12-23 22:23:49 +000013312 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13314 if diff conftest.exp conftest.er2 >/dev/null; then
ted.mielczarek1adb1842009-12-21 13:12:20 +000013315 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013316 fi
13317 else
ted.mielczarek1adb1842009-12-21 13:12:20 +000013318 lt_cv_prog_compiler_static_works_CXX=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000013319 fi
13320 fi
jimblandy92b1f832009-12-23 22:23:49 +000013321 $RM -r conftest*
mmentovai8c2a4de2006-09-20 16:20:15 +000013322 LDFLAGS="$save_LDFLAGS"
13323
13324fi
jimblandy92b1f832009-12-23 22:23:49 +000013325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13326$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
mmentovai8c2a4de2006-09-20 16:20:15 +000013327
ted.mielczarek1adb1842009-12-21 13:12:20 +000013328if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
mmentovai8c2a4de2006-09-20 16:20:15 +000013329 :
13330else
13331 lt_prog_compiler_static_CXX=
13332fi
13333
13334
jimblandy92b1f832009-12-23 22:23:49 +000013335
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13338$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13339if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000013341else
13342 lt_cv_prog_compiler_c_o_CXX=no
jimblandy92b1f832009-12-23 22:23:49 +000013343 $RM -r conftest 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000013344 mkdir conftest
13345 cd conftest
13346 mkdir out
ted.mielczarek1adb1842009-12-21 13:12:20 +000013347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013348
13349 lt_compiler_flag="-o out/conftest2.$ac_objext"
13350 # Insert the option either (1) after the last *FLAGS variable, or
13351 # (2) before a word containing "conftest.", or (3) at the end.
13352 # Note that $ac_compile itself does not contain backslashes and begins
13353 # with a dollar sign (not a hyphen), so the echo should work correctly.
13354 lt_compile=`echo "$ac_compile" | $SED \
mmentovai8c2a4de2006-09-20 16:20:15 +000013355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
brynercb91a2f2006-08-25 21:14:45 +000013356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13357 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013358 (eval echo "\"\$as_me:13358: $lt_compile\"" >&5)
brynercb91a2f2006-08-25 21:14:45 +000013359 (eval "$lt_compile" 2>out/conftest.err)
13360 ac_status=$?
13361 cat out/conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013362 echo "$as_me:13362: \$? = $ac_status" >&5
brynercb91a2f2006-08-25 21:14:45 +000013363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13364 then
13365 # The compiler can only warn and ignore the option if not recognized
13366 # So say no if there are warnings
jimblandy92b1f832009-12-23 22:23:49 +000013367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
mmentovai8c2a4de2006-09-20 16:20:15 +000013368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013370 lt_cv_prog_compiler_c_o_CXX=yes
13371 fi
13372 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000013373 chmod u+w . 2>&5
jimblandy92b1f832009-12-23 22:23:49 +000013374 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013375 # SGI C++ compiler will create directory out/ii_files/ for
13376 # template instantiation
jimblandy92b1f832009-12-23 22:23:49 +000013377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13378 $RM out/* && rmdir out
brynercb91a2f2006-08-25 21:14:45 +000013379 cd ..
jimblandy92b1f832009-12-23 22:23:49 +000013380 $RM -r conftest
13381 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013382
13383fi
jimblandy92b1f832009-12-23 22:23:49 +000013384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13385$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13386
13387
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13390$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13391if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393else
13394 lt_cv_prog_compiler_c_o_CXX=no
13395 $RM -r conftest 2>/dev/null
13396 mkdir conftest
13397 cd conftest
13398 mkdir out
13399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13400
13401 lt_compiler_flag="-o out/conftest2.$ac_objext"
13402 # Insert the option either (1) after the last *FLAGS variable, or
13403 # (2) before a word containing "conftest.", or (3) at the end.
13404 # Note that $ac_compile itself does not contain backslashes and begins
13405 # with a dollar sign (not a hyphen), so the echo should work correctly.
13406 lt_compile=`echo "$ac_compile" | $SED \
13407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13409 -e 's:$: $lt_compiler_flag:'`
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013410 (eval echo "\"\$as_me:13410: $lt_compile\"" >&5)
jimblandy92b1f832009-12-23 22:23:49 +000013411 (eval "$lt_compile" 2>out/conftest.err)
13412 ac_status=$?
13413 cat out/conftest.err >&5
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000013414 echo "$as_me:13414: \$? = $ac_status" >&5
jimblandy92b1f832009-12-23 22:23:49 +000013415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13416 then
13417 # The compiler can only warn and ignore the option if not recognized
13418 # So say no if there are warnings
13419 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13422 lt_cv_prog_compiler_c_o_CXX=yes
13423 fi
13424 fi
13425 chmod u+w . 2>&5
13426 $RM conftest*
13427 # SGI C++ compiler will create directory out/ii_files/ for
13428 # template instantiation
13429 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13430 $RM out/* && rmdir out
13431 cd ..
13432 $RM -r conftest
13433 $RM conftest*
13434
13435fi
13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13437$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13438
13439
brynercb91a2f2006-08-25 21:14:45 +000013440
13441
13442hard_links="nottested"
13443if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13444 # do not overwrite the value of need_locks provided by the user
jimblandy92b1f832009-12-23 22:23:49 +000013445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13446$as_echo_n "checking if we can lock with hard links... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013447 hard_links=yes
jimblandy92b1f832009-12-23 22:23:49 +000013448 $RM conftest*
brynercb91a2f2006-08-25 21:14:45 +000013449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13450 touch conftest.a
13451 ln conftest.a conftest.b 2>&5 || hard_links=no
13452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
jimblandy92b1f832009-12-23 22:23:49 +000013453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13454$as_echo "$hard_links" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013455 if test "$hard_links" = no; then
jimblandy92b1f832009-12-23 22:23:49 +000013456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13457$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000013458 need_locks=warn
13459 fi
13460else
13461 need_locks=no
13462fi
13463
jimblandy92b1f832009-12-23 22:23:49 +000013464
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13467$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013468
13469 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13470 case $host_os in
ted.mielczarek1adb1842009-12-21 13:12:20 +000013471 aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013472 # If we're using GNU nm, then we don't want the "-C" option.
13473 # -C means demangle to AIX nm, but means don't demangle with GNU nm
jimblandy92b1f832009-12-23 22:23:49 +000013474 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13475 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 +000013476 else
jimblandy92b1f832009-12-23 22:23:49 +000013477 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 +000013478 fi
13479 ;;
13480 pw32*)
13481 export_symbols_cmds_CXX="$ltdll_cmds"
13482 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013483 cygwin* | mingw* | cegcc*)
13484 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'
13485 ;;
ted.mielczarekb2236272010-04-08 23:06:23 +000013486 linux* | k*bsd*-gnu)
13487 link_all_deplibs_CXX=no
13488 ;;
brynercb91a2f2006-08-25 21:14:45 +000013489 *)
13490 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13491 ;;
13492 esac
ted.mielczarek1adb1842009-12-21 13:12:20 +000013493 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
brynercb91a2f2006-08-25 21:14:45 +000013494
jimblandy92b1f832009-12-23 22:23:49 +000013495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13496$as_echo "$ld_shlibs_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013497test "$ld_shlibs_CXX" = no && can_build_shared=no
13498
jimblandy92b1f832009-12-23 22:23:49 +000013499with_gnu_ld_CXX=$with_gnu_ld
13500
13501
13502
13503
13504
13505
brynercb91a2f2006-08-25 21:14:45 +000013506#
13507# Do we need to explicitly link libc?
13508#
13509case "x$archive_cmds_need_lc_CXX" in
13510x|xyes)
13511 # Assume -lc should be added
13512 archive_cmds_need_lc_CXX=yes
13513
13514 if test "$enable_shared" = yes && test "$GCC" = yes; then
13515 case $archive_cmds_CXX in
13516 *'~'*)
13517 # FIXME: we may have to deal with multi-command sequences.
13518 ;;
13519 '$CC '*)
13520 # Test whether the compiler implicitly links with -lc since on some
13521 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13522 # to ld, don't add -lc before -lgcc.
jimblandy92b1f832009-12-23 22:23:49 +000013523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13524$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13525 $RM conftest*
ted.mielczarek1adb1842009-12-21 13:12:20 +000013526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000013527
jimblandy92b1f832009-12-23 22:23:49 +000013528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
brynercb91a2f2006-08-25 21:14:45 +000013529 (eval $ac_compile) 2>&5
13530 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13532 test $ac_status = 0; } 2>conftest.err; then
brynercb91a2f2006-08-25 21:14:45 +000013533 soname=conftest
13534 lib=conftest
13535 libobjs=conftest.$ac_objext
13536 deplibs=
13537 wl=$lt_prog_compiler_wl_CXX
mmentovai8c2a4de2006-09-20 16:20:15 +000013538 pic_flag=$lt_prog_compiler_pic_CXX
brynercb91a2f2006-08-25 21:14:45 +000013539 compiler_flags=-v
13540 linker_flags=-v
13541 verstring=
13542 output_objdir=.
13543 libname=conftest
13544 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13545 allow_undefined_flag_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000013546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13547 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
brynercb91a2f2006-08-25 21:14:45 +000013548 ac_status=$?
jimblandy92b1f832009-12-23 22:23:49 +000013549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13550 test $ac_status = 0; }
brynercb91a2f2006-08-25 21:14:45 +000013551 then
13552 archive_cmds_need_lc_CXX=no
13553 else
13554 archive_cmds_need_lc_CXX=yes
13555 fi
13556 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13557 else
13558 cat conftest.err 1>&5
13559 fi
jimblandy92b1f832009-12-23 22:23:49 +000013560 $RM conftest*
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13562$as_echo "$archive_cmds_need_lc_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000013563 ;;
13564 esac
13565 fi
13566 ;;
13567esac
13568
jimblandy92b1f832009-12-23 22:23:49 +000013569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13633$as_echo_n "checking dynamic linker characteristics... " >&6; }
13634
brynercb91a2f2006-08-25 21:14:45 +000013635library_names_spec=
13636libname_spec='lib$name'
13637soname_spec=
13638shrext_cmds=".so"
13639postinstall_cmds=
13640postuninstall_cmds=
13641finish_cmds=
13642finish_eval=
13643shlibpath_var=
13644shlibpath_overrides_runpath=unknown
13645version_type=none
13646dynamic_linker="$host_os ld.so"
13647sys_lib_dlsearch_path_spec="/lib /usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000013648need_lib_prefix=unknown
13649hardcode_into_libs=no
13650
13651# when you set need_version to no, make sure it does not cause -set_version
13652# flags to be left without arguments
13653need_version=unknown
13654
13655case $host_os in
13656aix3*)
13657 version_type=linux
13658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13659 shlibpath_var=LIBPATH
13660
13661 # AIX 3 has no versioning support, so we append a major version to the name.
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 ;;
13664
ted.mielczarek1adb1842009-12-21 13:12:20 +000013665aix[4-9]*)
brynercb91a2f2006-08-25 21:14:45 +000013666 version_type=linux
13667 need_lib_prefix=no
13668 need_version=no
13669 hardcode_into_libs=yes
13670 if test "$host_cpu" = ia64; then
13671 # AIX 5 supports IA64
13672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 else
13675 # With GCC up to 2.95.x, collect2 would create an import file
13676 # for dependence libraries. The import file would start with
13677 # the line `#! .'. This would cause the generated library to
13678 # depend on `.', always an invalid library. This was fixed in
13679 # development snapshots of GCC prior to 3.0.
13680 case $host_os in
13681 aix4 | aix4.[01] | aix4.[01].*)
13682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13683 echo ' yes '
jimblandy92b1f832009-12-23 22:23:49 +000013684 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013685 :
13686 else
13687 can_build_shared=no
13688 fi
13689 ;;
13690 esac
13691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13692 # soname into executable. Probably we can add versioning support to
13693 # collect2, so additional links can be useful in future.
13694 if test "$aix_use_runtimelinking" = yes; then
13695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13696 # instead of lib<name>.a to let people know that these are not
13697 # typical AIX shared libraries.
13698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13699 else
13700 # We preserve .a as extension for shared libraries through AIX4.2
13701 # and later when we are not doing run time linking.
13702 library_names_spec='${libname}${release}.a $libname.a'
13703 soname_spec='${libname}${release}${shared_ext}$major'
13704 fi
13705 shlibpath_var=LIBPATH
13706 fi
13707 ;;
13708
13709amigaos*)
jimblandy92b1f832009-12-23 22:23:49 +000013710 case $host_cpu in
13711 powerpc)
13712 # Since July 2007 AmigaOS4 officially supports .so libraries.
13713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13715 ;;
13716 m68k)
13717 library_names_spec='$libname.ixlibrary $libname.a'
13718 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13719 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'
13720 ;;
13721 esac
brynercb91a2f2006-08-25 21:14:45 +000013722 ;;
13723
13724beos*)
13725 library_names_spec='${libname}${shared_ext}'
13726 dynamic_linker="$host_os ld.so"
13727 shlibpath_var=LIBRARY_PATH
13728 ;;
13729
mmentovai8c2a4de2006-09-20 16:20:15 +000013730bsdi[45]*)
brynercb91a2f2006-08-25 21:14:45 +000013731 version_type=linux
13732 need_version=no
13733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13734 soname_spec='${libname}${release}${shared_ext}$major'
13735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13739 # the default ld.so.conf also contains /usr/contrib/lib and
13740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13741 # libtool to hard-code these into programs
13742 ;;
13743
jimblandy92b1f832009-12-23 22:23:49 +000013744cygwin* | mingw* | pw32* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013745 version_type=windows
13746 shrext_cmds=".dll"
13747 need_version=no
13748 need_lib_prefix=no
13749
13750 case $GCC,$host_os in
jimblandy92b1f832009-12-23 22:23:49 +000013751 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013752 library_names_spec='$libname.dll.a'
13753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13754 postinstall_cmds='base_file=`basename \${file}`~
jimblandy92b1f832009-12-23 22:23:49 +000013755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
brynercb91a2f2006-08-25 21:14:45 +000013756 dldir=$destdir/`dirname \$dlpath`~
13757 test -d \$dldir || mkdir -p \$dldir~
mmentovai8c2a4de2006-09-20 16:20:15 +000013758 $install_prog $dir/$dlname \$dldir/$dlname~
jimblandy92b1f832009-12-23 22:23:49 +000013759 chmod a+x \$dldir/$dlname~
13760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13762 fi'
brynercb91a2f2006-08-25 21:14:45 +000013763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13764 dlpath=$dir/\$dldll~
jimblandy92b1f832009-12-23 22:23:49 +000013765 $RM \$dlpath'
brynercb91a2f2006-08-25 21:14:45 +000013766 shlibpath_overrides_runpath=yes
13767
13768 case $host_os in
13769 cygwin*)
13770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13771 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13772 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13773 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013774 mingw* | cegcc*)
brynercb91a2f2006-08-25 21:14:45 +000013775 # MinGW DLLs use traditional 'lib' prefix
13776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
jimblandy92b1f832009-12-23 22:23:49 +000013777 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13778 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000013779 # It is most probably a Windows format PATH printed by
13780 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13781 # path with ; separators, and with drive letters. We can handle the
13782 # drive letters (cygwin fileutils understands them), so leave them,
13783 # especially as we might pass files found there to a mingw objdump,
13784 # which wouldn't understand a cygwinified path. Ahh.
jimblandy92b1f832009-12-23 22:23:49 +000013785 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
brynercb91a2f2006-08-25 21:14:45 +000013786 else
jimblandy92b1f832009-12-23 22:23:49 +000013787 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
brynercb91a2f2006-08-25 21:14:45 +000013788 fi
13789 ;;
13790 pw32*)
13791 # pw32 DLLs use 'pw' prefix rather than 'lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000013792 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 +000013793 ;;
13794 esac
13795 ;;
13796
13797 *)
13798 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13799 ;;
13800 esac
13801 dynamic_linker='Win32 ld.exe'
13802 # FIXME: first we should search . and the directory the executable is in
13803 shlibpath_var=PATH
13804 ;;
13805
13806darwin* | rhapsody*)
13807 dynamic_linker="$host_os dyld"
13808 version_type=darwin
13809 need_lib_prefix=no
13810 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000013811 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
brynercb91a2f2006-08-25 21:14:45 +000013812 soname_spec='${libname}${release}${major}$shared_ext'
13813 shlibpath_overrides_runpath=yes
13814 shlibpath_var=DYLD_LIBRARY_PATH
mmentovai8c2a4de2006-09-20 16:20:15 +000013815 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ted.mielczarek1adb1842009-12-21 13:12:20 +000013816
brynercb91a2f2006-08-25 21:14:45 +000013817 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13818 ;;
13819
13820dgux*)
13821 version_type=linux
13822 need_lib_prefix=no
13823 need_version=no
13824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13825 soname_spec='${libname}${release}${shared_ext}$major'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 ;;
13828
13829freebsd1*)
13830 dynamic_linker=no
13831 ;;
13832
mmentovai8c2a4de2006-09-20 16:20:15 +000013833freebsd* | dragonfly*)
13834 # DragonFly does not have aout. When/if they implement a new
13835 # versioning mechanism, adjust this.
13836 if test -x /usr/bin/objformat; then
13837 objformat=`/usr/bin/objformat`
13838 else
13839 case $host_os in
13840 freebsd[123]*) objformat=aout ;;
13841 *) objformat=elf ;;
13842 esac
13843 fi
brynercb91a2f2006-08-25 21:14:45 +000013844 version_type=freebsd-$objformat
13845 case $version_type in
13846 freebsd-elf*)
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13848 need_version=no
13849 need_lib_prefix=no
13850 ;;
13851 freebsd-*)
13852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13853 need_version=yes
13854 ;;
13855 esac
13856 shlibpath_var=LD_LIBRARY_PATH
13857 case $host_os in
13858 freebsd2*)
13859 shlibpath_overrides_runpath=yes
13860 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013861 freebsd3.[01]* | freebsdelf3.[01]*)
brynercb91a2f2006-08-25 21:14:45 +000013862 shlibpath_overrides_runpath=yes
13863 hardcode_into_libs=yes
13864 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000013865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
brynercb91a2f2006-08-25 21:14:45 +000013867 shlibpath_overrides_runpath=no
13868 hardcode_into_libs=yes
13869 ;;
ted.mielczarek1adb1842009-12-21 13:12:20 +000013870 *) # from 4.6 on, and DragonFly
mmentovai8c2a4de2006-09-20 16:20:15 +000013871 shlibpath_overrides_runpath=yes
13872 hardcode_into_libs=yes
13873 ;;
brynercb91a2f2006-08-25 21:14:45 +000013874 esac
13875 ;;
13876
13877gnu*)
13878 version_type=linux
13879 need_lib_prefix=no
13880 need_version=no
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13882 soname_spec='${libname}${release}${shared_ext}$major'
13883 shlibpath_var=LD_LIBRARY_PATH
13884 hardcode_into_libs=yes
13885 ;;
13886
13887hpux9* | hpux10* | hpux11*)
13888 # Give a soname corresponding to the major version so that dld.sl refuses to
13889 # link against other versions.
13890 version_type=sunos
13891 need_lib_prefix=no
13892 need_version=no
mmentovai8c2a4de2006-09-20 16:20:15 +000013893 case $host_cpu in
brynercb91a2f2006-08-25 21:14:45 +000013894 ia64*)
13895 shrext_cmds='.so'
13896 hardcode_into_libs=yes
13897 dynamic_linker="$host_os dld.so"
13898 shlibpath_var=LD_LIBRARY_PATH
13899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13901 soname_spec='${libname}${release}${shared_ext}$major'
13902 if test "X$HPUX_IA64_MODE" = X32; then
13903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13904 else
13905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13906 fi
13907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13908 ;;
jimblandy92b1f832009-12-23 22:23:49 +000013909 hppa*64*)
13910 shrext_cmds='.sl'
13911 hardcode_into_libs=yes
13912 dynamic_linker="$host_os dld.sl"
13913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13919 ;;
13920 *)
brynercb91a2f2006-08-25 21:14:45 +000013921 shrext_cmds='.sl'
13922 dynamic_linker="$host_os dld.sl"
13923 shlibpath_var=SHLIB_PATH
13924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13926 soname_spec='${libname}${release}${shared_ext}$major'
13927 ;;
13928 esac
13929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13930 postinstall_cmds='chmod 555 $lib'
13931 ;;
13932
ted.mielczarek1adb1842009-12-21 13:12:20 +000013933interix[3-9]*)
mmentovai8c2a4de2006-09-20 16:20:15 +000013934 version_type=linux
13935 need_lib_prefix=no
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13940 shlibpath_var=LD_LIBRARY_PATH
13941 shlibpath_overrides_runpath=no
13942 hardcode_into_libs=yes
13943 ;;
13944
brynercb91a2f2006-08-25 21:14:45 +000013945irix5* | irix6* | nonstopux*)
13946 case $host_os in
13947 nonstopux*) version_type=nonstopux ;;
13948 *)
13949 if test "$lt_cv_prog_gnu_ld" = yes; then
13950 version_type=linux
13951 else
13952 version_type=irix
13953 fi ;;
13954 esac
13955 need_lib_prefix=no
13956 need_version=no
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13959 case $host_os in
13960 irix5* | nonstopux*)
13961 libsuff= shlibsuff=
13962 ;;
13963 *)
13964 case $LD in # libtool.m4 will add one of these switches to LD
13965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13966 libsuff= shlibsuff= libmagic=32-bit;;
13967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13968 libsuff=32 shlibsuff=N32 libmagic=N32;;
13969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13971 *) libsuff= shlibsuff= libmagic=never-match;;
13972 esac
13973 ;;
13974 esac
13975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13976 shlibpath_overrides_runpath=no
13977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13979 hardcode_into_libs=yes
13980 ;;
13981
13982# No shared lib support for Linux oldld, aout, or coff.
13983linux*oldld* | linux*aout* | linux*coff*)
13984 dynamic_linker=no
13985 ;;
13986
13987# This must be Linux ELF.
ted.mielczarekb2236272010-04-08 23:06:23 +000013988linux* | k*bsd*-gnu | kopensolaris*-gnu)
brynercb91a2f2006-08-25 21:14:45 +000013989 version_type=linux
13990 need_lib_prefix=no
13991 need_version=no
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 shlibpath_overrides_runpath=no
jimblandy92b1f832009-12-23 22:23:49 +000013997 # Some binutils ld are patched to set DT_RUNPATH
13998 save_LDFLAGS=$LDFLAGS
13999 save_libdir=$libdir
14000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003/* end confdefs.h. */
14004
14005int
14006main ()
14007{
14008
14009 ;
14010 return 0;
14011}
14012_ACEOF
14013if ac_fn_cxx_try_link "$LINENO"; then :
14014 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14015 shlibpath_overrides_runpath=yes
14016fi
14017fi
14018rm -f core conftest.err conftest.$ac_objext \
14019 conftest$ac_exeext conftest.$ac_ext
14020 LDFLAGS=$save_LDFLAGS
14021 libdir=$save_libdir
14022
brynercb91a2f2006-08-25 21:14:45 +000014023 # This implies no fast_install, which is unacceptable.
14024 # Some rework will be needed to allow for fast_install
14025 # before this can be enabled.
14026 hardcode_into_libs=yes
14027
14028 # Append ld.so.conf contents to the search path
14029 if test -f /etc/ld.so.conf; then
jimblandy92b1f832009-12-23 22:23:49 +000014030 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 +000014031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14032 fi
14033
14034 # We used to test for /lib/ld.so.1 and disable shared libraries on
14035 # powerpc, because MkLinux only supported shared libraries with the
14036 # GNU dynamic linker. Since this was broken with cross compilers,
14037 # most powerpc-linux boxes support dynamic linking these days and
14038 # people can always --disable-shared, the test was removed, and we
14039 # assume the GNU/Linux dynamic linker is in use.
14040 dynamic_linker='GNU/Linux ld.so'
14041 ;;
14042
ted.mielczarekb2236272010-04-08 23:06:23 +000014043netbsdelf*-gnu)
14044 version_type=linux
14045 need_lib_prefix=no
14046 need_version=no
14047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14048 soname_spec='${libname}${release}${shared_ext}$major'
14049 shlibpath_var=LD_LIBRARY_PATH
14050 shlibpath_overrides_runpath=no
14051 hardcode_into_libs=yes
14052 dynamic_linker='NetBSD ld.elf_so'
14053 ;;
14054
brynercb91a2f2006-08-25 21:14:45 +000014055netbsd*)
14056 version_type=sunos
14057 need_lib_prefix=no
14058 need_version=no
jimblandy92b1f832009-12-23 22:23:49 +000014059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
brynercb91a2f2006-08-25 21:14:45 +000014060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14062 dynamic_linker='NetBSD (a.out) ld.so'
14063 else
14064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14065 soname_spec='${libname}${release}${shared_ext}$major'
14066 dynamic_linker='NetBSD ld.elf_so'
14067 fi
14068 shlibpath_var=LD_LIBRARY_PATH
14069 shlibpath_overrides_runpath=yes
14070 hardcode_into_libs=yes
14071 ;;
14072
14073newsos6)
14074 version_type=linux
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=yes
14078 ;;
14079
jimblandy92b1f832009-12-23 22:23:49 +000014080*nto* | *qnx*)
14081 version_type=qnx
brynercb91a2f2006-08-25 21:14:45 +000014082 need_lib_prefix=no
14083 need_version=no
14084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14085 soname_spec='${libname}${release}${shared_ext}$major'
14086 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014087 shlibpath_overrides_runpath=no
14088 hardcode_into_libs=yes
14089 dynamic_linker='ldqnx.so'
brynercb91a2f2006-08-25 21:14:45 +000014090 ;;
14091
14092openbsd*)
14093 version_type=sunos
mmentovai8c2a4de2006-09-20 16:20:15 +000014094 sys_lib_dlsearch_path_spec="/usr/lib"
brynercb91a2f2006-08-25 21:14:45 +000014095 need_lib_prefix=no
mmentovai8c2a4de2006-09-20 16:20:15 +000014096 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14097 case $host_os in
jimblandy92b1f832009-12-23 22:23:49 +000014098 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14099 *) need_version=no ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000014100 esac
brynercb91a2f2006-08-25 21:14:45 +000014101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14103 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014104 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
brynercb91a2f2006-08-25 21:14:45 +000014105 case $host_os in
14106 openbsd2.[89] | openbsd2.[89].*)
14107 shlibpath_overrides_runpath=no
14108 ;;
14109 *)
14110 shlibpath_overrides_runpath=yes
14111 ;;
14112 esac
14113 else
14114 shlibpath_overrides_runpath=yes
14115 fi
14116 ;;
14117
14118os2*)
14119 libname_spec='$name'
14120 shrext_cmds=".dll"
14121 need_lib_prefix=no
14122 library_names_spec='$libname${shared_ext} $libname.a'
14123 dynamic_linker='OS/2 ld.exe'
14124 shlibpath_var=LIBPATH
14125 ;;
14126
14127osf3* | osf4* | osf5*)
14128 version_type=osf
14129 need_lib_prefix=no
14130 need_version=no
14131 soname_spec='${libname}${release}${shared_ext}$major'
14132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 shlibpath_var=LD_LIBRARY_PATH
14134 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14135 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14136 ;;
14137
ted.mielczarek1adb1842009-12-21 13:12:20 +000014138rdos*)
14139 dynamic_linker=no
14140 ;;
14141
brynercb91a2f2006-08-25 21:14:45 +000014142solaris*)
14143 version_type=linux
14144 need_lib_prefix=no
14145 need_version=no
14146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14147 soname_spec='${libname}${release}${shared_ext}$major'
14148 shlibpath_var=LD_LIBRARY_PATH
14149 shlibpath_overrides_runpath=yes
14150 hardcode_into_libs=yes
14151 # ldd complains unless libraries are executable
14152 postinstall_cmds='chmod +x $lib'
14153 ;;
14154
14155sunos4*)
14156 version_type=sunos
14157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14158 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes
14161 if test "$with_gnu_ld" = yes; then
14162 need_lib_prefix=no
14163 fi
14164 need_version=yes
14165 ;;
14166
mmentovai8c2a4de2006-09-20 16:20:15 +000014167sysv4 | sysv4.3*)
brynercb91a2f2006-08-25 21:14:45 +000014168 version_type=linux
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 case $host_vendor in
14173 sni)
14174 shlibpath_overrides_runpath=no
14175 need_lib_prefix=no
brynercb91a2f2006-08-25 21:14:45 +000014176 runpath_var=LD_RUN_PATH
14177 ;;
14178 siemens)
14179 need_lib_prefix=no
14180 ;;
14181 motorola)
14182 need_lib_prefix=no
14183 need_version=no
14184 shlibpath_overrides_runpath=no
14185 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14186 ;;
14187 esac
14188 ;;
14189
14190sysv4*MP*)
14191 if test -d /usr/nec ;then
14192 version_type=linux
14193 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14194 soname_spec='$libname${shared_ext}.$major'
14195 shlibpath_var=LD_LIBRARY_PATH
14196 fi
14197 ;;
14198
mmentovai8c2a4de2006-09-20 16:20:15 +000014199sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14200 version_type=freebsd-elf
14201 need_lib_prefix=no
14202 need_version=no
14203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14204 soname_spec='${libname}${release}${shared_ext}$major'
14205 shlibpath_var=LD_LIBRARY_PATH
jimblandy92b1f832009-12-23 22:23:49 +000014206 shlibpath_overrides_runpath=yes
mmentovai8c2a4de2006-09-20 16:20:15 +000014207 hardcode_into_libs=yes
14208 if test "$with_gnu_ld" = yes; then
14209 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014210 else
14211 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
mmentovai8c2a4de2006-09-20 16:20:15 +000014212 case $host_os in
14213 sco3.2v5*)
14214 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14215 ;;
14216 esac
14217 fi
14218 sys_lib_dlsearch_path_spec='/usr/lib'
14219 ;;
14220
jimblandy92b1f832009-12-23 22:23:49 +000014221tpf*)
14222 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14230 ;;
14231
brynercb91a2f2006-08-25 21:14:45 +000014232uts4*)
14233 version_type=linux
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 soname_spec='${libname}${release}${shared_ext}$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14237 ;;
14238
14239*)
14240 dynamic_linker=no
14241 ;;
14242esac
jimblandy92b1f832009-12-23 22:23:49 +000014243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14244$as_echo "$dynamic_linker" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014245test "$dynamic_linker" = no && can_build_shared=no
14246
mmentovai8c2a4de2006-09-20 16:20:15 +000014247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14248if test "$GCC" = yes; then
14249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14250fi
14251
jimblandy92b1f832009-12-23 22:23:49 +000014252if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14253 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14254fi
14255if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14256 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14257fi
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14295$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014296hardcode_action_CXX=
jimblandy92b1f832009-12-23 22:23:49 +000014297if test -n "$hardcode_libdir_flag_spec_CXX" ||
14298 test -n "$runpath_var_CXX" ||
mmentovai8c2a4de2006-09-20 16:20:15 +000014299 test "X$hardcode_automatic_CXX" = "Xyes" ; then
brynercb91a2f2006-08-25 21:14:45 +000014300
jimblandy92b1f832009-12-23 22:23:49 +000014301 # We can hardcode non-existent directories.
brynercb91a2f2006-08-25 21:14:45 +000014302 if test "$hardcode_direct_CXX" != no &&
14303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14304 # have to relink, otherwise we might link with an installed library
14305 # when we should be linking with a yet-to-be-installed one
jimblandy92b1f832009-12-23 22:23:49 +000014306 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
brynercb91a2f2006-08-25 21:14:45 +000014307 test "$hardcode_minus_L_CXX" != no; then
14308 # Linking always hardcodes the temporary library directory.
14309 hardcode_action_CXX=relink
14310 else
14311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14312 hardcode_action_CXX=immediate
14313 fi
14314else
14315 # We cannot hardcode anything, or else we can only hardcode existing
14316 # directories.
14317 hardcode_action_CXX=unsupported
14318fi
jimblandy92b1f832009-12-23 22:23:49 +000014319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14320$as_echo "$hardcode_action_CXX" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014321
jimblandy92b1f832009-12-23 22:23:49 +000014322if test "$hardcode_action_CXX" = relink ||
14323 test "$inherit_rpath_CXX" = yes; then
brynercb91a2f2006-08-25 21:14:45 +000014324 # Fast installation is not supported
14325 enable_fast_install=no
14326elif test "$shlibpath_overrides_runpath" = yes ||
14327 test "$enable_shared" = no; then
14328 # Fast installation is not necessary
14329 enable_fast_install=needless
14330fi
14331
brynercb91a2f2006-08-25 21:14:45 +000014332
brynercb91a2f2006-08-25 21:14:45 +000014333
brynercb91a2f2006-08-25 21:14:45 +000014334
brynercb91a2f2006-08-25 21:14:45 +000014335
brynercb91a2f2006-08-25 21:14:45 +000014336
brynercb91a2f2006-08-25 21:14:45 +000014337
jimblandy92b1f832009-12-23 22:23:49 +000014338 fi # test -n "$compiler"
brynercb91a2f2006-08-25 21:14:45 +000014339
jimblandy92b1f832009-12-23 22:23:49 +000014340 CC=$lt_save_CC
14341 LDCXX=$LD
14342 LD=$lt_save_LD
14343 GCC=$lt_save_GCC
14344 with_gnu_ld=$lt_save_with_gnu_ld
14345 lt_cv_path_LDCXX=$lt_cv_path_LD
14346 lt_cv_path_LD=$lt_save_path_LD
14347 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14348 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14349fi # test "$_lt_caught_CXX_error" != yes
brynercb91a2f2006-08-25 21:14:45 +000014350
14351ac_ext=c
14352ac_cpp='$CPP $CPPFLAGS'
14353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356
brynercb91a2f2006-08-25 21:14:45 +000014357
14358
brynercb91a2f2006-08-25 21:14:45 +000014359
14360
mmentovai8c2a4de2006-09-20 16:20:15 +000014361
14362
brynercb91a2f2006-08-25 21:14:45 +000014363
brynercb91a2f2006-08-25 21:14:45 +000014364
mmentovai8c2a4de2006-09-20 16:20:15 +000014365
brynercb91a2f2006-08-25 21:14:45 +000014366
brynercb91a2f2006-08-25 21:14:45 +000014367
brynerd5e66382006-09-08 02:35:53 +000014368
jimblandy92b1f832009-12-23 22:23:49 +000014369 ac_config_commands="$ac_config_commands libtool"
brynercb91a2f2006-08-25 21:14:45 +000014370
brynercb91a2f2006-08-25 21:14:45 +000014371
brynercb91a2f2006-08-25 21:14:45 +000014372
brynercb91a2f2006-08-25 21:14:45 +000014373
jimblandy92b1f832009-12-23 22:23:49 +000014374# Only expand once:
brynercb91a2f2006-08-25 21:14:45 +000014375
brynercb91a2f2006-08-25 21:14:45 +000014376
brynercb91a2f2006-08-25 21:14:45 +000014377
brynercb91a2f2006-08-25 21:14:45 +000014378
jimblandy92b1f832009-12-23 22:23:49 +000014379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14380$as_echo_n "checking for ANSI C header files... " >&6; }
14381if test "${ac_cv_header_stdc+set}" = set; then :
14382 $as_echo_n "(cached) " >&6
brynercb91a2f2006-08-25 21:14:45 +000014383else
jimblandy92b1f832009-12-23 22:23:49 +000014384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014385/* end confdefs.h. */
14386#include <stdlib.h>
14387#include <stdarg.h>
14388#include <string.h>
14389#include <float.h>
14390
14391int
14392main ()
14393{
14394
14395 ;
14396 return 0;
14397}
14398_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014399if ac_fn_c_try_compile "$LINENO"; then :
brynercb91a2f2006-08-25 21:14:45 +000014400 ac_cv_header_stdc=yes
14401else
jimblandy92b1f832009-12-23 22:23:49 +000014402 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014403fi
mmentovai8c2a4de2006-09-20 16:20:15 +000014404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014405
14406if test $ac_cv_header_stdc = yes; then
14407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014409/* end confdefs.h. */
14410#include <string.h>
14411
14412_ACEOF
14413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014414 $EGREP "memchr" >/dev/null 2>&1; then :
14415
brynercb91a2f2006-08-25 21:14:45 +000014416else
14417 ac_cv_header_stdc=no
14418fi
14419rm -f conftest*
14420
14421fi
14422
14423if test $ac_cv_header_stdc = yes; then
14424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
jimblandy92b1f832009-12-23 22:23:49 +000014425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014426/* end confdefs.h. */
14427#include <stdlib.h>
14428
14429_ACEOF
14430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
jimblandy92b1f832009-12-23 22:23:49 +000014431 $EGREP "free" >/dev/null 2>&1; then :
14432
brynercb91a2f2006-08-25 21:14:45 +000014433else
14434 ac_cv_header_stdc=no
14435fi
14436rm -f conftest*
14437
14438fi
14439
14440if test $ac_cv_header_stdc = yes; then
14441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
jimblandy92b1f832009-12-23 22:23:49 +000014442 if test "$cross_compiling" = yes; then :
brynercb91a2f2006-08-25 21:14:45 +000014443 :
14444else
jimblandy92b1f832009-12-23 22:23:49 +000014445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
brynercb91a2f2006-08-25 21:14:45 +000014446/* end confdefs.h. */
14447#include <ctype.h>
mmentovai8c2a4de2006-09-20 16:20:15 +000014448#include <stdlib.h>
brynercb91a2f2006-08-25 21:14:45 +000014449#if ((' ' & 0x0FF) == 0x020)
14450# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14451# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14452#else
14453# define ISLOWER(c) \
14454 (('a' <= (c) && (c) <= 'i') \
14455 || ('j' <= (c) && (c) <= 'r') \
14456 || ('s' <= (c) && (c) <= 'z'))
14457# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14458#endif
14459
14460#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14461int
14462main ()
14463{
14464 int i;
14465 for (i = 0; i < 256; i++)
14466 if (XOR (islower (i), ISLOWER (i))
14467 || toupper (i) != TOUPPER (i))
mmentovai8c2a4de2006-09-20 16:20:15 +000014468 return 2;
14469 return 0;
brynercb91a2f2006-08-25 21:14:45 +000014470}
14471_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000014472if ac_fn_c_try_run "$LINENO"; then :
14473
brynercb91a2f2006-08-25 21:14:45 +000014474else
jimblandy92b1f832009-12-23 22:23:49 +000014475 ac_cv_header_stdc=no
brynercb91a2f2006-08-25 21:14:45 +000014476fi
jimblandy92b1f832009-12-23 22:23:49 +000014477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14478 conftest.$ac_objext conftest.beam conftest.$ac_ext
mmentovai8c2a4de2006-09-20 16:20:15 +000014479fi
14480
brynercb91a2f2006-08-25 21:14:45 +000014481fi
14482fi
jimblandy92b1f832009-12-23 22:23:49 +000014483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14484$as_echo "$ac_cv_header_stdc" >&6; }
brynercb91a2f2006-08-25 21:14:45 +000014485if test $ac_cv_header_stdc = yes; then
14486
jimblandy92b1f832009-12-23 22:23:49 +000014487$as_echo "#define STDC_HEADERS 1" >>confdefs.h
brynercb91a2f2006-08-25 21:14:45 +000014488
14489fi
14490
nealsidde545c02010-03-02 00:39:48 +000014491# ===========================================================================
14492# http://www.nongnu.org/autoconf-archive/ax_pthread.html
14493# ===========================================================================
14494#
14495# SYNOPSIS
14496#
14497# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
14498#
14499# DESCRIPTION
14500#
14501# This macro figures out how to build C programs using POSIX threads. It
14502# sets the PTHREAD_LIBS output variable to the threads library and linker
14503# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
14504# flags that are needed. (The user can also force certain compiler
14505# flags/libs to be tested by setting these environment variables.)
14506#
14507# Also sets PTHREAD_CC to any special C compiler that is needed for
14508# multi-threaded programs (defaults to the value of CC otherwise). (This
14509# is necessary on AIX to use the special cc_r compiler alias.)
14510#
14511# NOTE: You are assumed to not only compile your program with these flags,
14512# but also link it with them as well. e.g. you should link with
14513# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
14514#
14515# If you are only building threads programs, you may wish to use these
14516# variables in your default LIBS, CFLAGS, and CC:
14517#
14518# LIBS="$PTHREAD_LIBS $LIBS"
14519# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14520# CC="$PTHREAD_CC"
14521#
14522# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
14523# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
14524# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
14525#
14526# ACTION-IF-FOUND is a list of shell commands to run if a threads library
14527# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
14528# is not found. If ACTION-IF-FOUND is not specified, the default action
14529# will define HAVE_PTHREAD.
14530#
14531# Please let the authors know if this macro fails on any platform, or if
14532# you have any other suggestions or comments. This macro was based on work
14533# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
14534# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
14535# Alejandro Forero Cuervo to the autoconf macro repository. We are also
14536# grateful for the helpful feedback of numerous users.
14537#
14538# LICENSE
14539#
14540# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
14541#
14542# This program is free software: you can redistribute it and/or modify it
14543# under the terms of the GNU General Public License as published by the
14544# Free Software Foundation, either version 3 of the License, or (at your
14545# option) any later version.
14546#
14547# This program is distributed in the hope that it will be useful, but
14548# WITHOUT ANY WARRANTY; without even the implied warranty of
14549# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14550# Public License for more details.
14551#
14552# You should have received a copy of the GNU General Public License along
14553# with this program. If not, see <http://www.gnu.org/licenses/>.
14554#
14555# As a special exception, the respective Autoconf Macro's copyright owner
14556# gives unlimited permission to copy, distribute and modify the configure
14557# scripts that are the output of Autoconf when processing the Macro. You
14558# need not follow the terms of the GNU General Public License when using
14559# or distributing such scripts, even though portions of the text of the
14560# Macro appear in them. The GNU General Public License (GPL) does govern
14561# all other use of the material that constitutes the Autoconf Macro.
14562#
14563# This special exception to the GPL applies to versions of the Autoconf
14564# Macro released by the Autoconf Archive. When you make and distribute a
14565# modified version of the Autoconf Macro, you may extend this special
14566# exception to the GPL to apply to your modified version as well.
14567
14568#serial 6
14569
14570# This is what autoupdate's m4 run will expand. It fires
14571# the warning (with _au_warn_XXX), outputs it into the
14572# updated configure.ac (with AC_DIAGNOSE), and then outputs
14573# the replacement expansion.
14574
14575
14576# This is an auxiliary macro that is also run when
14577# autoupdate runs m4. It simply calls m4_warning, but
14578# we need a wrapper so that each warning is emitted only
14579# once. We break the quoting in m4_warning's argument in
14580# order to expand this macro's arguments, not AU_DEFUN's.
14581
14582
14583# Finally, this is the expansion that is picked up by
14584# autoconf. It tells the user to run autoupdate, and
14585# then outputs the replacement expansion. We do not care
14586# about autoupdate's warning because that contains
14587# information on what to do *after* running autoupdate.
14588
14589
14590
14591
14592ac_ext=c
14593ac_cpp='$CPP $CPPFLAGS'
14594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14596ac_compiler_gnu=$ac_cv_c_compiler_gnu
14597
14598ax_pthread_ok=no
14599
14600# We used to check for pthread.h first, but this fails if pthread.h
14601# requires special compiler flags (e.g. on True64 or Sequent).
14602# It gets checked for in the link test anyway.
14603
14604# First of all, check if the user has set any of the PTHREAD_LIBS,
14605# etcetera environment variables, and if threads linking works using
14606# them:
14607if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14608 save_CFLAGS="$CFLAGS"
14609 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14610 save_LIBS="$LIBS"
14611 LIBS="$PTHREAD_LIBS $LIBS"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14613$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615/* end confdefs.h. */
14616
14617/* Override any GCC internal prototype to avoid an error.
14618 Use char because int might match the return type of a GCC
14619 builtin and then its argument prototype would still apply. */
14620#ifdef __cplusplus
14621extern "C"
14622#endif
14623char pthread_join ();
14624int
14625main ()
14626{
14627return pthread_join ();
14628 ;
14629 return 0;
14630}
14631_ACEOF
14632if ac_fn_c_try_link "$LINENO"; then :
14633 ax_pthread_ok=yes
14634fi
14635rm -f core conftest.err conftest.$ac_objext \
14636 conftest$ac_exeext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14638$as_echo "$ax_pthread_ok" >&6; }
14639 if test x"$ax_pthread_ok" = xno; then
14640 PTHREAD_LIBS=""
14641 PTHREAD_CFLAGS=""
14642 fi
14643 LIBS="$save_LIBS"
14644 CFLAGS="$save_CFLAGS"
14645fi
14646
14647# We must check for the threads library under a number of different
14648# names; the ordering is very important because some systems
14649# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14650# libraries is broken (non-POSIX).
14651
14652# Create a list of thread flags to try. Items starting with a "-" are
14653# C compiler flags, and other items are library names, except for "none"
14654# which indicates that we try without any flags at all, and "pthread-config"
14655# which is a program returning the flags for the Pth emulation library.
14656
14657ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14658
14659# The ordering *is* (sometimes) important. Some notes on the
14660# individual items follow:
14661
14662# pthreads: AIX (must check this before -lpthread)
14663# none: in case threads are in libc; should be tried before -Kthread and
14664# other compiler flags to prevent continual compiler warnings
14665# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14666# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14667# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14668# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14669# -pthreads: Solaris/gcc
14670# -mthreads: Mingw32/gcc, Lynx/gcc
14671# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14672# doesn't hurt to check since this sometimes defines pthreads too;
14673# also defines -D_REENTRANT)
14674# ... -mt is also the pthreads flag for HP/aCC
14675# pthread: Linux, etcetera
14676# --thread-safe: KAI C++
14677# pthread-config: use pthread-config program (for GNU Pth library)
14678
14679case "${host_cpu}-${host_os}" in
14680 *solaris*)
14681
14682 # On Solaris (at least, for some versions), libc contains stubbed
14683 # (non-functional) versions of the pthreads routines, so link-based
14684 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14685 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14686 # a function called by this macro, so we could check for that, but
14687 # who knows whether they'll stub that too in a future libc.) So,
14688 # we'll just look for -pthreads and -lpthread first:
14689
14690 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14691 ;;
14692
14693 *-darwin*)
14694 acx_pthread_flags="-pthread $acx_pthread_flags"
14695 ;;
14696esac
14697
14698if test x"$ax_pthread_ok" = xno; then
14699for flag in $ax_pthread_flags; do
14700
14701 case $flag in
14702 none)
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14704$as_echo_n "checking whether pthreads work without any flags... " >&6; }
14705 ;;
14706
14707 -*)
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14709$as_echo_n "checking whether pthreads work with $flag... " >&6; }
14710 PTHREAD_CFLAGS="$flag"
14711 ;;
14712
14713 pthread-config)
14714 # Extract the first word of "pthread-config", so it can be a program name with args.
14715set dummy pthread-config; ac_word=$2
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14717$as_echo_n "checking for $ac_word... " >&6; }
14718if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14720else
14721 if test -n "$ax_pthread_config"; then
14722 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14723else
14724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14725for as_dir in $PATH
14726do
14727 IFS=$as_save_IFS
14728 test -z "$as_dir" && as_dir=.
14729 for ac_exec_ext in '' $ac_executable_extensions; do
14730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14731 ac_cv_prog_ax_pthread_config="yes"
14732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14733 break 2
14734 fi
14735done
14736 done
14737IFS=$as_save_IFS
14738
14739 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14740fi
14741fi
14742ax_pthread_config=$ac_cv_prog_ax_pthread_config
14743if test -n "$ax_pthread_config"; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14745$as_echo "$ax_pthread_config" >&6; }
14746else
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748$as_echo "no" >&6; }
14749fi
14750
14751
14752 if test x"$ax_pthread_config" = xno; then continue; fi
14753 PTHREAD_CFLAGS="`pthread-config --cflags`"
14754 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14755 ;;
14756
14757 *)
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14759$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14760 PTHREAD_LIBS="-l$flag"
14761 ;;
14762 esac
14763
14764 save_LIBS="$LIBS"
14765 save_CFLAGS="$CFLAGS"
14766 LIBS="$PTHREAD_LIBS $LIBS"
14767 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14768
14769 # Check for various functions. We must include pthread.h,
14770 # since some functions may be macros. (On the Sequent, we
14771 # need a special flag -Kthread to make this header compile.)
14772 # We check for pthread_join because it is in -lpthread on IRIX
14773 # while pthread_create is in libc. We check for pthread_attr_init
14774 # due to DEC craziness with -lpthreads. We check for
14775 # pthread_cleanup_push because it is one of the few pthread
14776 # functions on Solaris that doesn't have a non-functional libc stub.
14777 # We try pthread_create on general principles.
14778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14779/* end confdefs.h. */
14780#include <pthread.h>
14781 static void routine(void* a) {a=0;}
14782 static void* start_routine(void* a) {return a;}
14783int
14784main ()
14785{
14786pthread_t th; pthread_attr_t attr;
14787 pthread_join(th, 0);
14788 pthread_attr_init(&attr);
14789 pthread_cleanup_push(routine, 0);
14790 pthread_create(&th,0,start_routine,0);
14791 pthread_cleanup_pop(0);
14792 ;
14793 return 0;
14794}
14795_ACEOF
14796if ac_fn_c_try_link "$LINENO"; then :
14797 ax_pthread_ok=yes
14798fi
14799rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801
14802 LIBS="$save_LIBS"
14803 CFLAGS="$save_CFLAGS"
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14806$as_echo "$ax_pthread_ok" >&6; }
14807 if test "x$ax_pthread_ok" = xyes; then
14808 break;
14809 fi
14810
14811 PTHREAD_LIBS=""
14812 PTHREAD_CFLAGS=""
14813done
14814fi
14815
14816# Various other checks:
14817if test "x$ax_pthread_ok" = xyes; then
14818 save_LIBS="$LIBS"
14819 LIBS="$PTHREAD_LIBS $LIBS"
14820 save_CFLAGS="$CFLAGS"
14821 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14822
14823 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14825$as_echo_n "checking for joinable pthread attribute... " >&6; }
14826 attr_name=unknown
14827 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h. */
14830#include <pthread.h>
14831int
14832main ()
14833{
14834int attr=$attr; return attr;
14835 ;
14836 return 0;
14837}
14838_ACEOF
14839if ac_fn_c_try_link "$LINENO"; then :
14840 attr_name=$attr; break
14841fi
14842rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 done
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14846$as_echo "$attr_name" >&6; }
14847 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14848
14849cat >>confdefs.h <<_ACEOF
14850#define PTHREAD_CREATE_JOINABLE $attr_name
14851_ACEOF
14852
14853 fi
14854
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14856$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14857 flag=no
14858 case "${host_cpu}-${host_os}" in
14859 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14860 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14861 esac
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14863$as_echo "${flag}" >&6; }
14864 if test "x$flag" != xno; then
14865 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14866 fi
14867
14868 LIBS="$save_LIBS"
14869 CFLAGS="$save_CFLAGS"
14870
14871 # More AIX lossage: must compile with xlc_r or cc_r
14872 if test x"$GCC" != xyes; then
14873 for ac_prog in xlc_r cc_r
14874do
14875 # Extract the first word of "$ac_prog", so it can be a program name with args.
14876set dummy $ac_prog; ac_word=$2
14877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878$as_echo_n "checking for $ac_word... " >&6; }
14879if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
14880 $as_echo_n "(cached) " >&6
14881else
14882 if test -n "$PTHREAD_CC"; then
14883 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14884else
14885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886for as_dir in $PATH
14887do
14888 IFS=$as_save_IFS
14889 test -z "$as_dir" && as_dir=.
14890 for ac_exec_ext in '' $ac_executable_extensions; do
14891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14892 ac_cv_prog_PTHREAD_CC="$ac_prog"
14893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14894 break 2
14895 fi
14896done
14897 done
14898IFS=$as_save_IFS
14899
14900fi
14901fi
14902PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14903if test -n "$PTHREAD_CC"; then
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14905$as_echo "$PTHREAD_CC" >&6; }
14906else
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908$as_echo "no" >&6; }
14909fi
14910
14911
14912 test -n "$PTHREAD_CC" && break
14913done
14914test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14915
14916 else
14917 PTHREAD_CC=$CC
14918 fi
14919else
14920 PTHREAD_CC="$CC"
14921fi
14922
14923
14924
14925
14926
14927# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14928if test x"$ax_pthread_ok" = xyes; then
14929
14930$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14931
14932 :
14933else
14934 ax_pthread_ok=no
14935
14936fi
14937ac_ext=c
14938ac_cpp='$CPP $CPPFLAGS'
14939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941ac_compiler_gnu=$ac_cv_c_compiler_gnu
14942
14943
14944
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000014945# Only build Linux client libs when compiling for Linux
14946case $host in
14947 *-*-linux*)
14948 LINUX_HOST=true
14949 ;;
14950esac
14951 if test x$LINUX_HOST = xtrue; then
14952 LINUX_HOST_TRUE=
14953 LINUX_HOST_FALSE='#'
14954else
14955 LINUX_HOST_TRUE='#'
14956 LINUX_HOST_FALSE=
14957fi
14958
14959
nealsidde545c02010-03-02 00:39:48 +000014960# Check whether --enable-m32 was given.
14961if test "${enable_m32+set}" = set; then :
14962 enableval=$enable_m32; case "${enableval}" in
14963 yes)
ted.mielczarekefa30c12010-09-17 13:36:11 +000014964 CFLAGS="${CFLAGS} -m32"
14965 CXXFLAGS="${CXXFLAGS} -m32"
nealsidde545c02010-03-02 00:39:48 +000014966 usem32=true
14967 ;;
14968 no)
14969 usem32=false
14970 ;;
14971 *)
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000014972 as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5
nealsidde545c02010-03-02 00:39:48 +000014973 ;;
14974 esac
14975else
14976 usem32=false
14977fi
14978
brynercb91a2f2006-08-25 21:14:45 +000014979
ted.mielczarekb2236272010-04-08 23:06:23 +000014980ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
14981"
14982if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
14983
14984$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h
14985
14986else
14987
14988$as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\
14989 ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h
14990
14991fi
14992
14993
mmentovai0dbedc92006-09-25 21:16:15 +000014994# Check whether --enable-selftest was given.
jimblandy92b1f832009-12-23 22:23:49 +000014995if test "${enable_selftest+set}" = set; then :
mmentovai0dbedc92006-09-25 21:16:15 +000014996 enableval=$enable_selftest; case "${enableval}" in
14997 yes)
14998 selftest=true
14999 ;;
15000 no)
15001 selftest=false
15002 ;;
15003 *)
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015004 as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015005 ;;
15006 esac
15007else
15008 selftest=false
15009fi
15010
mmentovaiaf3c43f2007-05-17 18:34:37 +000015011 if test x$selftest = xtrue; then
mmentovai0dbedc92006-09-25 21:16:15 +000015012 SELFTEST_TRUE=
15013 SELFTEST_FALSE='#'
15014else
15015 SELFTEST_TRUE='#'
15016 SELFTEST_FALSE=
15017fi
15018
15019
mmentovai8c2a4de2006-09-20 16:20:15 +000015020ac_config_files="$ac_config_files Makefile"
brynercb91a2f2006-08-25 21:14:45 +000015021
15022cat >confcache <<\_ACEOF
15023# This file is a shell script that caches the results of configure
15024# tests run on this system so they can be shared between configure
15025# scripts and configure runs, see configure's option --config-cache.
15026# It is not useful on other systems. If it contains results you don't
15027# want to keep, you may remove or edit it.
15028#
15029# config.status only pays attention to the cache file if you give it
15030# the --recheck option to rerun configure.
15031#
15032# `ac_cv_env_foo' variables (set or unset) will be overridden when
15033# loading this file, other *unset* `ac_cv_foo' will be assigned the
15034# following values.
15035
15036_ACEOF
15037
15038# The following way of writing the cache mishandles newlines in values,
15039# but we know of no workaround that is simple, portable, and efficient.
mmentovai8c2a4de2006-09-20 16:20:15 +000015040# So, we kill variables containing newlines.
brynercb91a2f2006-08-25 21:14:45 +000015041# Ultrix sh set writes to stderr and can't be redirected directly,
15042# and sets the high bit in the cache file unless we assign to the vars.
mmentovai8c2a4de2006-09-20 16:20:15 +000015043(
15044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15045 eval ac_val=\$$ac_var
15046 case $ac_val in #(
15047 *${as_nl}*)
15048 case $ac_var in #(
jimblandy92b1f832009-12-23 22:23:49 +000015049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015051 esac
15052 case $ac_var in #(
15053 _ | IFS | as_nl) ;; #(
jimblandy92b1f832009-12-23 22:23:49 +000015054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15055 *) { eval $ac_var=; unset $ac_var;} ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015056 esac ;;
15057 esac
15058 done
15059
brynercb91a2f2006-08-25 21:14:45 +000015060 (set) 2>&1 |
mmentovai8c2a4de2006-09-20 16:20:15 +000015061 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15062 *${as_nl}ac_space=\ *)
jimblandy92b1f832009-12-23 22:23:49 +000015063 # `set' does not quote correctly, so add quotes: double-quote
15064 # substitution turns \\\\ into \\, and sed turns \\ into \.
brynercb91a2f2006-08-25 21:14:45 +000015065 sed -n \
15066 "s/'/'\\\\''/g;
15067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
mmentovai8c2a4de2006-09-20 16:20:15 +000015068 ;; #(
brynercb91a2f2006-08-25 21:14:45 +000015069 *)
15070 # `set' quotes correctly as required by POSIX, so do not add quotes.
mmentovai8c2a4de2006-09-20 16:20:15 +000015071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
brynercb91a2f2006-08-25 21:14:45 +000015072 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015073 esac |
15074 sort
15075) |
brynercb91a2f2006-08-25 21:14:45 +000015076 sed '
mmentovai8c2a4de2006-09-20 16:20:15 +000015077 /^ac_cv_env_/b end
brynercb91a2f2006-08-25 21:14:45 +000015078 t clear
mmentovai8c2a4de2006-09-20 16:20:15 +000015079 :clear
brynercb91a2f2006-08-25 21:14:45 +000015080 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15081 t end
mmentovai8c2a4de2006-09-20 16:20:15 +000015082 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15083 :end' >>confcache
15084if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15085 if test -w "$cache_file"; then
15086 test "x$cache_file" != "x/dev/null" &&
jimblandy92b1f832009-12-23 22:23:49 +000015087 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15088$as_echo "$as_me: updating cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015089 cat confcache >$cache_file
15090 else
jimblandy92b1f832009-12-23 22:23:49 +000015091 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15092$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000015093 fi
15094fi
15095rm -f confcache
15096
15097test "x$prefix" = xNONE && prefix=$ac_default_prefix
15098# Let make expand exec_prefix.
15099test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15100
brynercb91a2f2006-08-25 21:14:45 +000015101DEFS=-DHAVE_CONFIG_H
15102
15103ac_libobjs=
15104ac_ltlibobjs=
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015105U=
brynercb91a2f2006-08-25 21:14:45 +000015106for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15107 # 1. Remove the extension, and $U if already installed.
mmentovai8c2a4de2006-09-20 16:20:15 +000015108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
jimblandy92b1f832009-12-23 22:23:49 +000015109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
mmentovai8c2a4de2006-09-20 16:20:15 +000015110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15111 # will be set to the directory where LIBOBJS objects are built.
jimblandy92b1f832009-12-23 22:23:49 +000015112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
brynercb91a2f2006-08-25 21:14:45 +000015114done
15115LIBOBJS=$ac_libobjs
15116
15117LTLIBOBJS=$ac_ltlibobjs
15118
15119
jimblandy92b1f832009-12-23 22:23:49 +000015120 if test -n "$EXEEXT"; then
15121 am__EXEEXT_TRUE=
15122 am__EXEEXT_FALSE='#'
15123else
15124 am__EXEEXT_TRUE='#'
15125 am__EXEEXT_FALSE=
15126fi
15127
brynercb91a2f2006-08-25 21:14:45 +000015128if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015129 as_fn_error $? "conditional \"AMDEP\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015130Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015131fi
15132if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015133 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015134Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015135fi
15136if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015137 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015138Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139fi
15140if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015141 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015142Usually this means the macro was only invoked conditionally." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000015143fi
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000015144if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015145 as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
ted.mielczarek53a8b1a2010-08-31 15:09:01 +000015146Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147fi
mmentovai0dbedc92006-09-25 21:16:15 +000015148if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015149 as_fn_error $? "conditional \"SELFTEST\" was never defined.
jimblandy92b1f832009-12-23 22:23:49 +000015150Usually this means the macro was only invoked conditionally." "$LINENO" 5
mmentovai0dbedc92006-09-25 21:16:15 +000015151fi
brynercb91a2f2006-08-25 21:14:45 +000015152
15153: ${CONFIG_STATUS=./config.status}
jimblandy92b1f832009-12-23 22:23:49 +000015154ac_write_fail=0
brynercb91a2f2006-08-25 21:14:45 +000015155ac_clean_files_save=$ac_clean_files
15156ac_clean_files="$ac_clean_files $CONFIG_STATUS"
jimblandy92b1f832009-12-23 22:23:49 +000015157{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15158$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15159as_write_fail=0
15160cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015161#! $SHELL
15162# Generated by $as_me.
15163# Run this file to recreate the current configuration.
15164# Compiler output produced by configure, useful for debugging
15165# configure, is in config.log if it exists.
15166
15167debug=false
15168ac_cs_recheck=false
15169ac_cs_silent=false
brynercb91a2f2006-08-25 21:14:45 +000015170
jimblandy92b1f832009-12-23 22:23:49 +000015171SHELL=\${CONFIG_SHELL-$SHELL}
15172export SHELL
15173_ASEOF
15174cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15175## -------------------- ##
15176## M4sh Initialization. ##
15177## -------------------- ##
brynercb91a2f2006-08-25 21:14:45 +000015178
mmentovaiaf3c43f2007-05-17 18:34:37 +000015179# Be more Bourne compatible
15180DUALCASE=1; export DUALCASE # for MKS sh
jimblandy92b1f832009-12-23 22:23:49 +000015181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
brynercb91a2f2006-08-25 21:14:45 +000015182 emulate sh
15183 NULLCMD=:
jimblandy92b1f832009-12-23 22:23:49 +000015184 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
brynercb91a2f2006-08-25 21:14:45 +000015185 # is contrary to our usage. Disable this feature.
15186 alias -g '${1+"$@"}'='"$@"'
mmentovai8c2a4de2006-09-20 16:20:15 +000015187 setopt NO_GLOB_SUBST
15188else
jimblandy92b1f832009-12-23 22:23:49 +000015189 case `(set -o) 2>/dev/null` in #(
15190 *posix*) :
15191 set -o posix ;; #(
15192 *) :
15193 ;;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015194esac
brynercb91a2f2006-08-25 21:14:45 +000015195fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015196
15197
jimblandy92b1f832009-12-23 22:23:49 +000015198as_nl='
15199'
15200export as_nl
15201# Printing a long string crashes Solaris 7 /usr/bin/printf.
15202as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15204as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15205# Prefer a ksh shell builtin over an external printf program on Solaris,
15206# but without wasting forks for bash or zsh.
15207if test -z "$BASH_VERSION$ZSH_VERSION" \
15208 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15209 as_echo='print -r --'
15210 as_echo_n='print -rn --'
15211elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15212 as_echo='printf %s\n'
15213 as_echo_n='printf %s'
15214else
15215 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15216 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15217 as_echo_n='/usr/ucb/echo -n'
15218 else
15219 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15220 as_echo_n_body='eval
15221 arg=$1;
15222 case $arg in #(
15223 *"$as_nl"*)
15224 expr "X$arg" : "X\\(.*\\)$as_nl";
15225 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15226 esac;
15227 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15228 '
15229 export as_echo_n_body
15230 as_echo_n='sh -c $as_echo_n_body as_echo'
15231 fi
15232 export as_echo_body
15233 as_echo='sh -c $as_echo_body as_echo'
15234fi
brynercb91a2f2006-08-25 21:14:45 +000015235
15236# The user is always right.
15237if test "${PATH_SEPARATOR+set}" != set; then
jimblandy92b1f832009-12-23 22:23:49 +000015238 PATH_SEPARATOR=:
15239 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15240 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15241 PATH_SEPARATOR=';'
15242 }
mmentovai8c2a4de2006-09-20 16:20:15 +000015243fi
brynercb91a2f2006-08-25 21:14:45 +000015244
mmentovai8c2a4de2006-09-20 16:20:15 +000015245
15246# IFS
15247# We need space, tab and new line, in precisely that order. Quoting is
15248# there to prevent editors from complaining about space-tab.
15249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15250# splitting by setting IFS to empty value.)
mmentovai8c2a4de2006-09-20 16:20:15 +000015251IFS=" "" $as_nl"
15252
15253# Find who we are. Look in the path if we contain no directory separator.
jimblandy92b1f832009-12-23 22:23:49 +000015254case $0 in #((
mmentovai8c2a4de2006-09-20 16:20:15 +000015255 *[\\/]* ) as_myself=$0 ;;
15256 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
brynercb91a2f2006-08-25 21:14:45 +000015257for as_dir in $PATH
15258do
15259 IFS=$as_save_IFS
15260 test -z "$as_dir" && as_dir=.
jimblandy92b1f832009-12-23 22:23:49 +000015261 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15262 done
mmentovai8c2a4de2006-09-20 16:20:15 +000015263IFS=$as_save_IFS
brynercb91a2f2006-08-25 21:14:45 +000015264
mmentovai8c2a4de2006-09-20 16:20:15 +000015265 ;;
15266esac
15267# We did not find ourselves, most probably we were run as `sh COMMAND'
15268# in which case we are not to be found in the path.
15269if test "x$as_myself" = x; then
15270 as_myself=$0
15271fi
15272if test ! -f "$as_myself"; then
jimblandy92b1f832009-12-23 22:23:49 +000015273 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15274 exit 1
mmentovai8c2a4de2006-09-20 16:20:15 +000015275fi
15276
jimblandy92b1f832009-12-23 22:23:49 +000015277# Unset variables that we do not need and which cause bugs (e.g. in
15278# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15279# suppresses any "Segmentation fault" message there. '((' could
15280# trigger a bug in pdksh 5.2.14.
15281for as_var in BASH_ENV ENV MAIL MAILPATH
15282do eval test x\${$as_var+set} = xset \
15283 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
mmentovai8c2a4de2006-09-20 16:20:15 +000015284done
15285PS1='$ '
15286PS2='> '
15287PS4='+ '
15288
15289# NLS nuisances.
jimblandy92b1f832009-12-23 22:23:49 +000015290LC_ALL=C
15291export LC_ALL
15292LANGUAGE=C
15293export LANGUAGE
mmentovai8c2a4de2006-09-20 16:20:15 +000015294
jimblandy92b1f832009-12-23 22:23:49 +000015295# CDPATH.
15296(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15297
15298
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015299# as_fn_error STATUS ERROR [LINENO LOG_FD]
15300# ----------------------------------------
jimblandy92b1f832009-12-23 22:23:49 +000015301# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15302# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015303# script with STATUS, using 1 if that was 0.
jimblandy92b1f832009-12-23 22:23:49 +000015304as_fn_error ()
15305{
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015306 as_status=$1; test $as_status -eq 0 && as_status=1
15307 if test "$4"; then
15308 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15309 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
jimblandy92b1f832009-12-23 22:23:49 +000015310 fi
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015311 $as_echo "$as_me: error: $2" >&2
jimblandy92b1f832009-12-23 22:23:49 +000015312 as_fn_exit $as_status
15313} # as_fn_error
15314
15315
15316# as_fn_set_status STATUS
15317# -----------------------
15318# Set $? to STATUS, without forking.
15319as_fn_set_status ()
15320{
15321 return $1
15322} # as_fn_set_status
15323
15324# as_fn_exit STATUS
15325# -----------------
15326# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15327as_fn_exit ()
15328{
15329 set +e
15330 as_fn_set_status $1
15331 exit $1
15332} # as_fn_exit
15333
15334# as_fn_unset VAR
15335# ---------------
15336# Portably unset VAR.
15337as_fn_unset ()
15338{
15339 { eval $1=; unset $1;}
15340}
15341as_unset=as_fn_unset
15342# as_fn_append VAR VALUE
15343# ----------------------
15344# Append the text in VALUE to the end of the definition contained in VAR. Take
15345# advantage of any shell optimizations that allow amortized linear growth over
15346# repeated appends, instead of the typical quadratic growth present in naive
15347# implementations.
15348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15349 eval 'as_fn_append ()
15350 {
15351 eval $1+=\$2
15352 }'
15353else
15354 as_fn_append ()
15355 {
15356 eval $1=\$$1\$2
15357 }
15358fi # as_fn_append
15359
15360# as_fn_arith ARG...
15361# ------------------
15362# Perform arithmetic evaluation on the ARGs, and store the result in the
15363# global $as_val. Take advantage of shells that can avoid forks. The arguments
15364# must be portable across $(()) and expr.
15365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15366 eval 'as_fn_arith ()
15367 {
15368 as_val=$(( $* ))
15369 }'
15370else
15371 as_fn_arith ()
15372 {
15373 as_val=`expr "$@" || test $? -eq 1`
15374 }
15375fi # as_fn_arith
15376
15377
mmentovai8c2a4de2006-09-20 16:20:15 +000015378if expr a : '\(a\)' >/dev/null 2>&1 &&
15379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15380 as_expr=expr
15381else
15382 as_expr=false
15383fi
15384
15385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15386 as_basename=basename
15387else
15388 as_basename=false
15389fi
15390
jimblandy92b1f832009-12-23 22:23:49 +000015391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15392 as_dirname=dirname
15393else
15394 as_dirname=false
15395fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015396
mmentovai8c2a4de2006-09-20 16:20:15 +000015397as_me=`$as_basename -- "$0" ||
15398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15399 X"$0" : 'X\(//\)$' \| \
15400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000015401$as_echo X/"$0" |
mmentovai8c2a4de2006-09-20 16:20:15 +000015402 sed '/^.*\/\([^/][^/]*\)\/*$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\/\(\/\/\)$/{
15407 s//\1/
15408 q
15409 }
15410 /^X\/\(\/\).*/{
15411 s//\1/
15412 q
15413 }
15414 s/.*/./; q'`
15415
jimblandy92b1f832009-12-23 22:23:49 +000015416# Avoid depending upon Character Ranges.
15417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15420as_cr_digits='0123456789'
15421as_cr_alnum=$as_cr_Letters$as_cr_digits
mmentovai8c2a4de2006-09-20 16:20:15 +000015422
15423ECHO_C= ECHO_N= ECHO_T=
jimblandy92b1f832009-12-23 22:23:49 +000015424case `echo -n x` in #(((((
mmentovai8c2a4de2006-09-20 16:20:15 +000015425-n*)
jimblandy92b1f832009-12-23 22:23:49 +000015426 case `echo 'xy\c'` in
mmentovai8c2a4de2006-09-20 16:20:15 +000015427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
jimblandy92b1f832009-12-23 22:23:49 +000015428 xy) ECHO_C='\c';;
15429 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15430 ECHO_T=' ';;
mmentovai8c2a4de2006-09-20 16:20:15 +000015431 esac;;
15432*)
15433 ECHO_N='-n';;
brynercb91a2f2006-08-25 21:14:45 +000015434esac
15435
brynercb91a2f2006-08-25 21:14:45 +000015436rm -f conf$$ conf$$.exe conf$$.file
mmentovai8c2a4de2006-09-20 16:20:15 +000015437if test -d conf$$.dir; then
15438 rm -f conf$$.dir/conf$$.file
15439else
15440 rm -f conf$$.dir
jimblandy92b1f832009-12-23 22:23:49 +000015441 mkdir conf$$.dir 2>/dev/null
mmentovai8c2a4de2006-09-20 16:20:15 +000015442fi
jimblandy92b1f832009-12-23 22:23:49 +000015443if (echo >conf$$.file) 2>/dev/null; then
15444 if ln -s conf$$.file conf$$ 2>/dev/null; then
15445 as_ln_s='ln -s'
15446 # ... but there are two gotchas:
15447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15449 # In both cases, we have to default to `cp -p'.
15450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15451 as_ln_s='cp -p'
15452 elif ln conf$$.file conf$$ 2>/dev/null; then
15453 as_ln_s=ln
15454 else
brynercb91a2f2006-08-25 21:14:45 +000015455 as_ln_s='cp -p'
jimblandy92b1f832009-12-23 22:23:49 +000015456 fi
brynercb91a2f2006-08-25 21:14:45 +000015457else
15458 as_ln_s='cp -p'
15459fi
mmentovai8c2a4de2006-09-20 16:20:15 +000015460rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15461rmdir conf$$.dir 2>/dev/null
brynercb91a2f2006-08-25 21:14:45 +000015462
jimblandy92b1f832009-12-23 22:23:49 +000015463
15464# as_fn_mkdir_p
15465# -------------
15466# Create "$as_dir" as a directory, including parents if necessary.
15467as_fn_mkdir_p ()
15468{
15469
15470 case $as_dir in #(
15471 -*) as_dir=./$as_dir;;
15472 esac
15473 test -d "$as_dir" || eval $as_mkdir_p || {
15474 as_dirs=
15475 while :; do
15476 case $as_dir in #(
15477 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15478 *) as_qdir=$as_dir;;
15479 esac
15480 as_dirs="'$as_qdir' $as_dirs"
15481 as_dir=`$as_dirname -- "$as_dir" ||
15482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$as_dir" : 'X\(//\)[^/]' \| \
15484 X"$as_dir" : 'X\(//\)$' \| \
15485 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15486$as_echo X"$as_dir" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\/\)$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\).*/{
15500 s//\1/
15501 q
15502 }
15503 s/.*/./; q'`
15504 test -d "$as_dir" && break
15505 done
15506 test -z "$as_dirs" || eval "mkdir $as_dirs"
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015507 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
jimblandy92b1f832009-12-23 22:23:49 +000015508
15509
15510} # as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000015511if mkdir -p . 2>/dev/null; then
jimblandy92b1f832009-12-23 22:23:49 +000015512 as_mkdir_p='mkdir -p "$as_dir"'
brynercb91a2f2006-08-25 21:14:45 +000015513else
15514 test -d ./-p && rmdir ./-p
15515 as_mkdir_p=false
15516fi
15517
mmentovaiaf3c43f2007-05-17 18:34:37 +000015518if test -x / >/dev/null 2>&1; then
15519 as_test_x='test -x'
mmentovai8c2a4de2006-09-20 16:20:15 +000015520else
mmentovaiaf3c43f2007-05-17 18:34:37 +000015521 if ls -dL / >/dev/null 2>&1; then
15522 as_ls_L_option=L
15523 else
15524 as_ls_L_option=
15525 fi
15526 as_test_x='
15527 eval sh -c '\''
15528 if test -d "$1"; then
jimblandy92b1f832009-12-23 22:23:49 +000015529 test -d "$1/.";
mmentovaiaf3c43f2007-05-17 18:34:37 +000015530 else
jimblandy92b1f832009-12-23 22:23:49 +000015531 case $1 in #(
15532 -*)set "./$1";;
mmentovaiaf3c43f2007-05-17 18:34:37 +000015533 esac;
jimblandy92b1f832009-12-23 22:23:49 +000015534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
mmentovaiaf3c43f2007-05-17 18:34:37 +000015535 ???[sx]*):;;*)false;;esac;fi
15536 '\'' sh
15537 '
mmentovai8c2a4de2006-09-20 16:20:15 +000015538fi
mmentovaiaf3c43f2007-05-17 18:34:37 +000015539as_executable_p=$as_test_x
brynercb91a2f2006-08-25 21:14:45 +000015540
15541# Sed expression to map a string onto a valid CPP name.
15542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15543
15544# Sed expression to map a string onto a valid variable name.
15545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15546
15547
brynercb91a2f2006-08-25 21:14:45 +000015548exec 6>&1
jimblandy92b1f832009-12-23 22:23:49 +000015549## ----------------------------------- ##
15550## Main body of $CONFIG_STATUS script. ##
15551## ----------------------------------- ##
15552_ASEOF
15553test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015554
jimblandy92b1f832009-12-23 22:23:49 +000015555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556# Save the log message, to keep $0 and so on meaningful, and to
brynercb91a2f2006-08-25 21:14:45 +000015557# report actual input values of CONFIG_FILES etc. instead of their
mmentovai8c2a4de2006-09-20 16:20:15 +000015558# values after options handling.
15559ac_log="
mmentovaie5dc6082007-02-14 19:51:05 +000015560This file was extended by breakpad $as_me 0.1, which was
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015561generated by GNU Autoconf 2.67. Invocation command line was
brynercb91a2f2006-08-25 21:14:45 +000015562
15563 CONFIG_FILES = $CONFIG_FILES
15564 CONFIG_HEADERS = $CONFIG_HEADERS
15565 CONFIG_LINKS = $CONFIG_LINKS
15566 CONFIG_COMMANDS = $CONFIG_COMMANDS
15567 $ $0 $@
15568
mmentovai8c2a4de2006-09-20 16:20:15 +000015569on `(hostname || uname -n) 2>/dev/null | sed 1q`
15570"
15571
brynercb91a2f2006-08-25 21:14:45 +000015572_ACEOF
15573
jimblandy92b1f832009-12-23 22:23:49 +000015574case $ac_config_files in *"
15575"*) set x $ac_config_files; shift; ac_config_files=$*;;
15576esac
15577
15578case $ac_config_headers in *"
15579"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15580esac
15581
15582
15583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015584# Files that config.status was made for.
mmentovai8c2a4de2006-09-20 16:20:15 +000015585config_files="$ac_config_files"
15586config_headers="$ac_config_headers"
15587config_commands="$ac_config_commands"
brynercb91a2f2006-08-25 21:14:45 +000015588
mmentovai8c2a4de2006-09-20 16:20:15 +000015589_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000015590
jimblandy92b1f832009-12-23 22:23:49 +000015591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015592ac_cs_usage="\
jimblandy92b1f832009-12-23 22:23:49 +000015593\`$as_me' instantiates files and other configuration actions
15594from templates according to the current configuration. Unless the files
15595and actions are specified as TAGs, all are instantiated by default.
brynercb91a2f2006-08-25 21:14:45 +000015596
jimblandy92b1f832009-12-23 22:23:49 +000015597Usage: $0 [OPTION]... [TAG]...
brynercb91a2f2006-08-25 21:14:45 +000015598
15599 -h, --help print this help, then exit
mmentovaiaf3c43f2007-05-17 18:34:37 +000015600 -V, --version print version number and configuration settings, then exit
jimblandydc4029a2010-02-02 17:39:51 +000015601 --config print configuration, then exit
jimblandy92b1f832009-12-23 22:23:49 +000015602 -q, --quiet, --silent
15603 do not print progress messages
brynercb91a2f2006-08-25 21:14:45 +000015604 -d, --debug don't remove temporary files
15605 --recheck update $as_me by reconfiguring in the same conditions
jimblandy92b1f832009-12-23 22:23:49 +000015606 --file=FILE[:TEMPLATE]
15607 instantiate the configuration file FILE
15608 --header=FILE[:TEMPLATE]
15609 instantiate the configuration header FILE
brynercb91a2f2006-08-25 21:14:45 +000015610
15611Configuration files:
15612$config_files
15613
15614Configuration headers:
15615$config_headers
15616
15617Configuration commands:
15618$config_commands
15619
jimblandy92b1f832009-12-23 22:23:49 +000015620Report bugs to <opensource@google.com>."
brynercb91a2f2006-08-25 21:14:45 +000015621
mmentovai8c2a4de2006-09-20 16:20:15 +000015622_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
jimblandydc4029a2010-02-02 17:39:51 +000015624ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
brynercb91a2f2006-08-25 21:14:45 +000015625ac_cs_version="\\
mmentovaie5dc6082007-02-14 19:51:05 +000015626breakpad config.status 0.1
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015627configured by $0, generated by GNU Autoconf 2.67,
jimblandydc4029a2010-02-02 17:39:51 +000015628 with options \\"\$ac_cs_config\\"
brynercb91a2f2006-08-25 21:14:45 +000015629
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015630Copyright (C) 2010 Free Software Foundation, Inc.
brynercb91a2f2006-08-25 21:14:45 +000015631This config.status script is free software; the Free Software Foundation
15632gives unlimited permission to copy, distribute and modify it."
mmentovai8c2a4de2006-09-20 16:20:15 +000015633
15634ac_pwd='$ac_pwd'
15635srcdir='$srcdir'
15636INSTALL='$INSTALL'
mmentovaiaf3c43f2007-05-17 18:34:37 +000015637MKDIR_P='$MKDIR_P'
jimblandy92b1f832009-12-23 22:23:49 +000015638AWK='$AWK'
15639test -n "\$AWK" || AWK=awk
brynercb91a2f2006-08-25 21:14:45 +000015640_ACEOF
15641
jimblandy92b1f832009-12-23 22:23:49 +000015642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15643# The default lists apply if the user does not specify any file.
brynercb91a2f2006-08-25 21:14:45 +000015644ac_need_defaults=:
15645while test $# != 0
15646do
15647 case $1 in
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015648 --*=?*)
mmentovai8c2a4de2006-09-20 16:20:15 +000015649 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15650 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
brynercb91a2f2006-08-25 21:14:45 +000015651 ac_shift=:
15652 ;;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015653 --*=)
15654 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15655 ac_optarg=
15656 ac_shift=:
15657 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015658 *)
brynercb91a2f2006-08-25 21:14:45 +000015659 ac_option=$1
15660 ac_optarg=$2
15661 ac_shift=shift
15662 ;;
brynercb91a2f2006-08-25 21:14:45 +000015663 esac
15664
15665 case $ac_option in
15666 # Handling of the options.
brynercb91a2f2006-08-25 21:14:45 +000015667 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15668 ac_cs_recheck=: ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015669 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
jimblandy92b1f832009-12-23 22:23:49 +000015670 $as_echo "$ac_cs_version"; exit ;;
jimblandydc4029a2010-02-02 17:39:51 +000015671 --config | --confi | --conf | --con | --co | --c )
15672 $as_echo "$ac_cs_config"; exit ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015673 --debug | --debu | --deb | --de | --d | -d )
brynercb91a2f2006-08-25 21:14:45 +000015674 debug=: ;;
15675 --file | --fil | --fi | --f )
15676 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015677 case $ac_optarg in
15678 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015679 '') as_fn_error $? "missing file argument" ;;
jimblandy92b1f832009-12-23 22:23:49 +000015680 esac
15681 as_fn_append CONFIG_FILES " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015682 ac_need_defaults=false;;
15683 --header | --heade | --head | --hea )
15684 $ac_shift
jimblandy92b1f832009-12-23 22:23:49 +000015685 case $ac_optarg in
15686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15687 esac
15688 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
brynercb91a2f2006-08-25 21:14:45 +000015689 ac_need_defaults=false;;
mmentovai8c2a4de2006-09-20 16:20:15 +000015690 --he | --h)
15691 # Conflict between --help and --header
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015692 as_fn_error $? "ambiguous option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +000015693Try \`$0 --help' for more information.";;
mmentovai8c2a4de2006-09-20 16:20:15 +000015694 --help | --hel | -h )
jimblandy92b1f832009-12-23 22:23:49 +000015695 $as_echo "$ac_cs_usage"; exit ;;
brynercb91a2f2006-08-25 21:14:45 +000015696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15698 ac_cs_silent=: ;;
15699
15700 # This is an error.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000015701 -*) as_fn_error $? "unrecognized option: \`$1'
jimblandy92b1f832009-12-23 22:23:49 +000015702Try \`$0 --help' for more information." ;;
brynercb91a2f2006-08-25 21:14:45 +000015703
jimblandy92b1f832009-12-23 22:23:49 +000015704 *) as_fn_append ac_config_targets " $1"
mmentovai8c2a4de2006-09-20 16:20:15 +000015705 ac_need_defaults=false ;;
brynercb91a2f2006-08-25 21:14:45 +000015706
15707 esac
15708 shift
15709done
15710
15711ac_configure_extra_args=
15712
15713if $ac_cs_silent; then
15714 exec 6>/dev/null
15715 ac_configure_extra_args="$ac_configure_extra_args --silent"
15716fi
15717
15718_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015720if \$ac_cs_recheck; then
jimblandy92b1f832009-12-23 22:23:49 +000015721 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15722 shift
15723 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15724 CONFIG_SHELL='$SHELL'
mmentovai8c2a4de2006-09-20 16:20:15 +000015725 export CONFIG_SHELL
jimblandy92b1f832009-12-23 22:23:49 +000015726 exec "\$@"
brynercb91a2f2006-08-25 21:14:45 +000015727fi
15728
15729_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000015731exec 5>>config.log
15732{
15733 echo
15734 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15735## Running $as_me. ##
15736_ASBOX
jimblandy92b1f832009-12-23 22:23:49 +000015737 $as_echo "$ac_log"
mmentovai8c2a4de2006-09-20 16:20:15 +000015738} >&5
brynercb91a2f2006-08-25 21:14:45 +000015739
mmentovai8c2a4de2006-09-20 16:20:15 +000015740_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000015741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000015742#
mmentovai8c2a4de2006-09-20 16:20:15 +000015743# INIT-COMMANDS
brynercb91a2f2006-08-25 21:14:45 +000015744#
brynercb91a2f2006-08-25 21:14:45 +000015745AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15746
jimblandy92b1f832009-12-23 22:23:49 +000015747
15748# The HP-UX ksh and POSIX shell print the target directory to stdout
15749# if CDPATH is set.
15750(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15751
15752sed_quote_subst='$sed_quote_subst'
15753double_quote_subst='$double_quote_subst'
15754delay_variable_subst='$delay_variable_subst'
15755macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15756macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15757enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15758enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15759pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15760enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15761host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15762host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15763host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15764build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15765build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15766build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15767SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15768Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15769GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15770EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15771FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15772LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15773NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15774LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15775max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15776ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15777exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15778lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15779lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15780lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15781reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15782reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15783OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15784deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15785file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15786AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15787AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15788STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15789RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15790old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15791old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15792old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15793CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15794CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15795compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15796GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15797lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15798lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15799lt_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"`'
15800lt_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"`'
15801objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15802SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15803ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15804MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15805lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15806lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15807lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15808lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15809lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15810need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15811DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15812NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15813LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15814OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15815OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15816libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15817shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15818extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15819archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15820enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15821export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15822whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15823compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15824old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15825old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15826archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15827archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15828module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15829module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15830with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15831allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15832no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15833hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15834hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15835hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15836hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15837hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15838hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15839hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15840hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15841inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15842link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15843fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15844always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15845export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15846exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15847include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15848prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15849file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15850variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15851need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15852need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15853version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15854runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15855shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15856shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15857libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15858library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15859soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15860postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15861postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15862finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15863finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15864hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15865sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15866sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15867hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15868enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15869enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15870enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15871old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15872striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15873compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
15874predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15875postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
15876predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
15877postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
15878compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
15879LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15880old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15881compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15882GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15883lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15884lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15885lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15886lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15887lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15888archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15889enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15890export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15891whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15892compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15893old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15894old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15895archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15896archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15897module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15898module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15899with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15900allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15901no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15902hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15903hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15904hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15905hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15906hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15907hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15908hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15909hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15910inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15911link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15912fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15913always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15914export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15915exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15916include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15917prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15918file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15919hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15920compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15921predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15922postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15923predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15924postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15925compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
15926
15927LTCC='$LTCC'
15928LTCFLAGS='$LTCFLAGS'
15929compiler='$compiler_DEFAULT'
15930
15931# Quote evaled strings.
15932for var in SED \
15933GREP \
15934EGREP \
15935FGREP \
15936LD \
15937NM \
15938LN_S \
15939lt_SP2NL \
15940lt_NL2SP \
15941reload_flag \
15942OBJDUMP \
15943deplibs_check_method \
15944file_magic_cmd \
15945AR \
15946AR_FLAGS \
15947STRIP \
15948RANLIB \
15949CC \
15950CFLAGS \
15951compiler \
15952lt_cv_sys_global_symbol_pipe \
15953lt_cv_sys_global_symbol_to_cdecl \
15954lt_cv_sys_global_symbol_to_c_name_address \
15955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15956SHELL \
15957ECHO \
15958lt_prog_compiler_no_builtin_flag \
15959lt_prog_compiler_wl \
15960lt_prog_compiler_pic \
15961lt_prog_compiler_static \
15962lt_cv_prog_compiler_c_o \
15963need_locks \
15964DSYMUTIL \
15965NMEDIT \
15966LIPO \
15967OTOOL \
15968OTOOL64 \
15969shrext_cmds \
15970export_dynamic_flag_spec \
15971whole_archive_flag_spec \
15972compiler_needs_object \
15973with_gnu_ld \
15974allow_undefined_flag \
15975no_undefined_flag \
15976hardcode_libdir_flag_spec \
15977hardcode_libdir_flag_spec_ld \
15978hardcode_libdir_separator \
15979fix_srcfile_path \
15980exclude_expsyms \
15981include_expsyms \
15982file_list_spec \
15983variables_saved_for_relink \
15984libname_spec \
15985library_names_spec \
15986soname_spec \
15987finish_eval \
15988old_striplib \
15989striplib \
15990compiler_lib_search_dirs \
15991predep_objects \
15992postdep_objects \
15993predeps \
15994postdeps \
15995compiler_lib_search_path \
15996LD_CXX \
15997compiler_CXX \
15998lt_prog_compiler_no_builtin_flag_CXX \
15999lt_prog_compiler_wl_CXX \
16000lt_prog_compiler_pic_CXX \
16001lt_prog_compiler_static_CXX \
16002lt_cv_prog_compiler_c_o_CXX \
16003export_dynamic_flag_spec_CXX \
16004whole_archive_flag_spec_CXX \
16005compiler_needs_object_CXX \
16006with_gnu_ld_CXX \
16007allow_undefined_flag_CXX \
16008no_undefined_flag_CXX \
16009hardcode_libdir_flag_spec_CXX \
16010hardcode_libdir_flag_spec_ld_CXX \
16011hardcode_libdir_separator_CXX \
16012fix_srcfile_path_CXX \
16013exclude_expsyms_CXX \
16014include_expsyms_CXX \
16015file_list_spec_CXX \
16016compiler_lib_search_dirs_CXX \
16017predep_objects_CXX \
16018postdep_objects_CXX \
16019predeps_CXX \
16020postdeps_CXX \
16021compiler_lib_search_path_CXX; do
16022 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16023 *[\\\\\\\`\\"\\\$]*)
16024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16025 ;;
16026 *)
16027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16028 ;;
16029 esac
16030done
16031
16032# Double-quote double-evaled strings.
16033for var in reload_cmds \
16034old_postinstall_cmds \
16035old_postuninstall_cmds \
16036old_archive_cmds \
16037extract_expsyms_cmds \
16038old_archive_from_new_cmds \
16039old_archive_from_expsyms_cmds \
16040archive_cmds \
16041archive_expsym_cmds \
16042module_cmds \
16043module_expsym_cmds \
16044export_symbols_cmds \
16045prelink_cmds \
16046postinstall_cmds \
16047postuninstall_cmds \
16048finish_cmds \
16049sys_lib_search_path_spec \
16050sys_lib_dlsearch_path_spec \
16051old_archive_cmds_CXX \
16052old_archive_from_new_cmds_CXX \
16053old_archive_from_expsyms_cmds_CXX \
16054archive_cmds_CXX \
16055archive_expsym_cmds_CXX \
16056module_cmds_CXX \
16057module_expsym_cmds_CXX \
16058export_symbols_cmds_CXX \
16059prelink_cmds_CXX; do
16060 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16061 *[\\\\\\\`\\"\\\$]*)
16062 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16063 ;;
16064 *)
16065 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16066 ;;
16067 esac
16068done
16069
16070# Fix-up fallback echo if it was mangled by the above quoting rules.
16071case \$lt_ECHO in
16072*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16073 ;;
16074esac
16075
16076ac_aux_dir='$ac_aux_dir'
16077xsi_shell='$xsi_shell'
16078lt_shell_append='$lt_shell_append'
16079
16080# See if we are running on zsh, and set the options which allow our
16081# commands through without removal of \ escapes INIT.
16082if test -n "\${ZSH_VERSION+set}" ; then
16083 setopt NO_GLOB_SUBST
16084fi
16085
16086
16087 PACKAGE='$PACKAGE'
16088 VERSION='$VERSION'
16089 TIMESTAMP='$TIMESTAMP'
16090 RM='$RM'
16091 ofile='$ofile'
16092
16093
16094
16095
16096
16097
brynercb91a2f2006-08-25 21:14:45 +000016098_ACEOF
16099
jimblandy92b1f832009-12-23 22:23:49 +000016100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016101
16102# Handling of arguments.
brynercb91a2f2006-08-25 21:14:45 +000016103for ac_config_target in $ac_config_targets
16104do
mmentovai8c2a4de2006-09-20 16:20:15 +000016105 case $ac_config_target in
16106 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16107 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
jimblandy92b1f832009-12-23 22:23:49 +000016108 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016109 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16110
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016111 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
brynercb91a2f2006-08-25 21:14:45 +000016112 esac
16113done
16114
mmentovai8c2a4de2006-09-20 16:20:15 +000016115
brynercb91a2f2006-08-25 21:14:45 +000016116# If the user did not use the arguments to specify the items to instantiate,
16117# then the envvar interface is used. Set only those that are not.
16118# We use the long form for the default assignment because of an extremely
16119# bizarre bug on SunOS 4.1.3.
16120if $ac_need_defaults; then
16121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16124fi
16125
16126# Have a temporary directory for convenience. Make it in the build tree
mmentovai8c2a4de2006-09-20 16:20:15 +000016127# simply because there is no reason against having it here, and in addition,
brynercb91a2f2006-08-25 21:14:45 +000016128# creating and moving files from /tmp can sometimes cause problems.
mmentovai8c2a4de2006-09-20 16:20:15 +000016129# Hook for its removal unless debugging.
16130# Note that there is a small window in which the directory will not be cleaned:
16131# after its creation but before its name has been assigned to `$tmp'.
brynercb91a2f2006-08-25 21:14:45 +000016132$debug ||
16133{
mmentovai8c2a4de2006-09-20 16:20:15 +000016134 tmp=
16135 trap 'exit_status=$?
16136 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16137' 0
jimblandy92b1f832009-12-23 22:23:49 +000016138 trap 'as_fn_exit 1' 1 2 13 15
brynercb91a2f2006-08-25 21:14:45 +000016139}
brynercb91a2f2006-08-25 21:14:45 +000016140# Create a (secure) tmp directory for tmp files.
16141
16142{
mmentovai8c2a4de2006-09-20 16:20:15 +000016143 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
brynercb91a2f2006-08-25 21:14:45 +000016144 test -n "$tmp" && test -d "$tmp"
16145} ||
16146{
mmentovai8c2a4de2006-09-20 16:20:15 +000016147 tmp=./conf$$-$RANDOM
16148 (umask 077 && mkdir "$tmp")
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016149} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016150
jimblandy92b1f832009-12-23 22:23:49 +000016151# Set up the scripts for CONFIG_FILES section.
16152# No need to generate them if there are no CONFIG_FILES.
16153# This happens for instance with `./config.status config.h'.
mmentovai8c2a4de2006-09-20 16:20:15 +000016154if test -n "$CONFIG_FILES"; then
brynercb91a2f2006-08-25 21:14:45 +000016155
jimblandy92b1f832009-12-23 22:23:49 +000016156
16157ac_cr=`echo X | tr X '\015'`
16158# On cygwin, bash can eat \r inside `` if the user requested igncr.
16159# But we know of no other shell where ac_cr would be empty at this
16160# point, so we can use a bashism as a fallback.
16161if test "x$ac_cr" = x; then
16162 eval ac_cr=\$\'\\r\'
16163fi
16164ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16165if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016166 ac_cs_awk_cr='\\r'
jimblandy92b1f832009-12-23 22:23:49 +000016167else
16168 ac_cs_awk_cr=$ac_cr
16169fi
16170
16171echo 'BEGIN {' >"$tmp/subs1.awk" &&
brynercb91a2f2006-08-25 21:14:45 +000016172_ACEOF
16173
mmentovai8c2a4de2006-09-20 16:20:15 +000016174
jimblandy92b1f832009-12-23 22:23:49 +000016175{
16176 echo "cat >conf$$subs.awk <<_ACEOF" &&
16177 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16178 echo "_ACEOF"
16179} >conf$$subs.sh ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16181ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016182ac_delim='%!_!# '
16183for ac_last_try in false false false false false :; do
jimblandy92b1f832009-12-23 22:23:49 +000016184 . ./conf$$subs.sh ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016185 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016186
jimblandy92b1f832009-12-23 22:23:49 +000016187 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16188 if test $ac_delim_n = $ac_delim_num; then
mmentovai8c2a4de2006-09-20 16:20:15 +000016189 break
16190 elif $ac_last_try; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016191 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016192 else
16193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
brynercb91a2f2006-08-25 21:14:45 +000016194 fi
mmentovai8c2a4de2006-09-20 16:20:15 +000016195done
jimblandy92b1f832009-12-23 22:23:49 +000016196rm -f conf$$subs.sh
mmentovai8c2a4de2006-09-20 16:20:15 +000016197
jimblandy92b1f832009-12-23 22:23:49 +000016198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
mmentovai8c2a4de2006-09-20 16:20:15 +000016200_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016201sed -n '
16202h
16203s/^/S["/; s/!.*/"]=/
16204p
16205g
16206s/^[^!]*!//
16207:repl
16208t repl
16209s/'"$ac_delim"'$//
16210t delim
16211:nl
16212h
jimblandydc4029a2010-02-02 17:39:51 +000016213s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016214t more1
16215s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16216p
16217n
16218b repl
16219:more1
16220s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16221p
16222g
16223s/.\{148\}//
16224t nl
16225:delim
16226h
jimblandydc4029a2010-02-02 17:39:51 +000016227s/\(.\{148\}\)..*/\1/
jimblandy92b1f832009-12-23 22:23:49 +000016228t more2
16229s/["\\]/\\&/g; s/^/"/; s/$/"/
16230p
16231b
16232:more2
16233s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16234p
16235g
16236s/.\{148\}//
16237t delim
16238' <conf$$subs.awk | sed '
16239/^[^""]/{
16240 N
16241 s/\n//
16242}
16243' >>$CONFIG_STATUS || ac_write_fail=1
16244rm -f conf$$subs.awk
16245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246_ACAWK
16247cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16248 for (key in S) S_is_set[key] = 1
16249 FS = ""
16250
16251}
16252{
16253 line = $ 0
16254 nfields = split(line, field, "@")
16255 substed = 0
16256 len = length(field[1])
16257 for (i = 2; i < nfields; i++) {
16258 key = field[i]
16259 keylen = length(key)
16260 if (S_is_set[key]) {
16261 value = S[key]
16262 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16263 len += length(value) + length(field[++i])
16264 substed = 1
16265 } else
16266 len += 1 + keylen
16267 }
16268
16269 print line
16270}
16271
16272_ACAWK
mmentovai8c2a4de2006-09-20 16:20:15 +000016273_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16275if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16276 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16277else
16278 cat
16279fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016280 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016281_ACEOF
16282
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016283# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16284# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
mmentovai8c2a4de2006-09-20 16:20:15 +000016285# trailing colons and then remove the whole line if VPATH becomes empty
16286# (actually we leave an empty line to preserve line numbers).
16287if test "x$srcdir" = x.; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016288 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16289h
16290s///
16291s/^/:/
16292s/[ ]*$/:/
16293s/:\$(srcdir):/:/g
16294s/:\${srcdir}:/:/g
16295s/:@srcdir@:/:/g
16296s/^:*//
mmentovai8c2a4de2006-09-20 16:20:15 +000016297s/:*$//
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016298x
16299s/\(=[ ]*\).*/\1/
16300G
16301s/\n//
mmentovai8c2a4de2006-09-20 16:20:15 +000016302s/^[^=]*=[ ]*$//
16303}'
16304fi
16305
jimblandy92b1f832009-12-23 22:23:49 +000016306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016307fi # test -n "$CONFIG_FILES"
16308
jimblandy92b1f832009-12-23 22:23:49 +000016309# Set up the scripts for CONFIG_HEADERS section.
16310# No need to generate them if there are no CONFIG_HEADERS.
16311# This happens for instance with `./config.status Makefile'.
16312if test -n "$CONFIG_HEADERS"; then
16313cat >"$tmp/defines.awk" <<\_ACAWK ||
16314BEGIN {
16315_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016316
jimblandy92b1f832009-12-23 22:23:49 +000016317# Transform confdefs.h into an awk script `defines.awk', embedded as
16318# here-document in config.status, that substitutes the proper values into
16319# config.h.in to produce config.h.
16320
16321# Create a delimiter string that does not exist in confdefs.h, to ease
16322# handling of long lines.
16323ac_delim='%!_!# '
16324for ac_last_try in false false :; do
16325 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16326 if test -z "$ac_t"; then
16327 break
16328 elif $ac_last_try; then
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016329 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016330 else
16331 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16332 fi
16333done
16334
16335# For the awk script, D is an array of macro values keyed by name,
16336# likewise P contains macro parameters if any. Preserve backslash
16337# newline sequences.
16338
16339ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16340sed -n '
16341s/.\{148\}/&'"$ac_delim"'/g
16342t rset
16343:rset
16344s/^[ ]*#[ ]*define[ ][ ]*/ /
16345t def
16346d
16347:def
16348s/\\$//
16349t bsnl
16350s/["\\]/\\&/g
16351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16352D["\1"]=" \3"/p
16353s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16354d
16355:bsnl
16356s/["\\]/\\&/g
16357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16358D["\1"]=" \3\\\\\\n"\\/p
16359t cont
16360s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16361t cont
16362d
16363:cont
16364n
16365s/.\{148\}/&'"$ac_delim"'/g
16366t clear
16367:clear
16368s/\\$//
16369t bsnlc
16370s/["\\]/\\&/g; s/^/"/; s/$/"/p
16371d
16372:bsnlc
16373s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16374b cont
16375' <confdefs.h | sed '
16376s/'"$ac_delim"'/"\\\
16377"/g' >>$CONFIG_STATUS || ac_write_fail=1
16378
16379cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16380 for (key in D) D_is_set[key] = 1
16381 FS = ""
16382}
16383/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16384 line = \$ 0
16385 split(line, arg, " ")
16386 if (arg[1] == "#") {
16387 defundef = arg[2]
16388 mac1 = arg[3]
16389 } else {
16390 defundef = substr(arg[1], 2)
16391 mac1 = arg[2]
16392 }
16393 split(mac1, mac2, "(") #)
16394 macro = mac2[1]
16395 prefix = substr(line, 1, index(line, defundef) - 1)
16396 if (D_is_set[macro]) {
16397 # Preserve the white space surrounding the "#".
16398 print prefix "define", macro P[macro] D[macro]
16399 next
16400 } else {
16401 # Replace #undef with comments. This is necessary, for example,
16402 # in the case of _POSIX_SOURCE, which is predefined and required
16403 # on some systems where configure will not decide to define it.
16404 if (defundef == "undef") {
16405 print "/*", prefix defundef, macro, "*/"
16406 next
16407 }
16408 }
16409}
16410{ print }
16411_ACAWK
16412_ACEOF
16413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016414 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016415fi # test -n "$CONFIG_HEADERS"
16416
16417
16418eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16419shift
16420for ac_tag
mmentovai8c2a4de2006-09-20 16:20:15 +000016421do
16422 case $ac_tag in
16423 :[FHLC]) ac_mode=$ac_tag; continue;;
16424 esac
16425 case $ac_mode$ac_tag in
16426 :[FHL]*:*);;
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016427 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016428 :[FH]-) ac_tag=-:-;;
16429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16430 esac
16431 ac_save_IFS=$IFS
16432 IFS=:
16433 set x $ac_tag
16434 IFS=$ac_save_IFS
16435 shift
16436 ac_file=$1
16437 shift
16438
16439 case $ac_mode in
16440 :L) ac_source=$1;;
16441 :[FH])
16442 ac_file_inputs=
16443 for ac_f
16444 do
16445 case $ac_f in
16446 -) ac_f="$tmp/stdin";;
16447 *) # Look for the file first in the build tree, then in the source tree
16448 # (if the path is not absolute). The absolute path cannot be DOS-style,
16449 # because $ac_f cannot contain `:'.
16450 test -f "$ac_f" ||
16451 case $ac_f in
16452 [\\/$]*) false;;
16453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16454 esac ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016455 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016456 esac
jimblandy92b1f832009-12-23 22:23:49 +000016457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16458 as_fn_append ac_file_inputs " '$ac_f'"
mmentovai8c2a4de2006-09-20 16:20:15 +000016459 done
16460
16461 # Let's still pretend it is `configure' which instantiates (i.e., don't
16462 # use $as_me), people would be surprised to read:
16463 # /* config.h. Generated by config.status. */
jimblandy92b1f832009-12-23 22:23:49 +000016464 configure_input='Generated from '`
16465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16466 `' by configure.'
mmentovai8c2a4de2006-09-20 16:20:15 +000016467 if test x"$ac_file" != x-; then
16468 configure_input="$ac_file. $configure_input"
jimblandy92b1f832009-12-23 22:23:49 +000016469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16470$as_echo "$as_me: creating $ac_file" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016471 fi
jimblandy92b1f832009-12-23 22:23:49 +000016472 # Neutralize special characters interpreted by sed in replacement strings.
16473 case $configure_input in #(
16474 *\&* | *\|* | *\\* )
16475 ac_sed_conf_input=`$as_echo "$configure_input" |
16476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16477 *) ac_sed_conf_input=$configure_input;;
16478 esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016479
16480 case $ac_tag in
jimblandy92b1f832009-12-23 22:23:49 +000016481 *:-:* | *:-) cat >"$tmp/stdin" \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016483 esac
16484 ;;
brynercb91a2f2006-08-25 21:14:45 +000016485 esac
16486
mmentovai8c2a4de2006-09-20 16:20:15 +000016487 ac_dir=`$as_dirname -- "$ac_file" ||
brynercb91a2f2006-08-25 21:14:45 +000016488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16489 X"$ac_file" : 'X\(//\)[^/]' \| \
16490 X"$ac_file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016492$as_echo X"$ac_file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16494 s//\1/
16495 q
16496 }
16497 /^X\(\/\/\)[^/].*/{
16498 s//\1/
16499 q
16500 }
16501 /^X\(\/\/\)$/{
16502 s//\1/
16503 q
16504 }
16505 /^X\(\/\).*/{
16506 s//\1/
16507 q
16508 }
16509 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016510 as_dir="$ac_dir"; as_fn_mkdir_p
brynercb91a2f2006-08-25 21:14:45 +000016511 ac_builddir=.
16512
mmentovai8c2a4de2006-09-20 16:20:15 +000016513case "$ac_dir" in
16514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16515*)
jimblandy92b1f832009-12-23 22:23:49 +000016516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016517 # A ".." for each directory in $ac_dir_suffix.
jimblandy92b1f832009-12-23 22:23:49 +000016518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
mmentovai8c2a4de2006-09-20 16:20:15 +000016519 case $ac_top_builddir_sub in
16520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16522 esac ;;
16523esac
16524ac_abs_top_builddir=$ac_pwd
16525ac_abs_builddir=$ac_pwd$ac_dir_suffix
16526# for backward compatibility:
16527ac_top_builddir=$ac_top_build_prefix
brynercb91a2f2006-08-25 21:14:45 +000016528
16529case $srcdir in
mmentovai8c2a4de2006-09-20 16:20:15 +000016530 .) # We are building in place.
brynercb91a2f2006-08-25 21:14:45 +000016531 ac_srcdir=.
mmentovai8c2a4de2006-09-20 16:20:15 +000016532 ac_top_srcdir=$ac_top_builddir_sub
16533 ac_abs_top_srcdir=$ac_pwd ;;
16534 [\\/]* | ?:[\\/]* ) # Absolute name.
brynercb91a2f2006-08-25 21:14:45 +000016535 ac_srcdir=$srcdir$ac_dir_suffix;
mmentovai8c2a4de2006-09-20 16:20:15 +000016536 ac_top_srcdir=$srcdir
16537 ac_abs_top_srcdir=$srcdir ;;
16538 *) # Relative name.
16539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16540 ac_top_srcdir=$ac_top_build_prefix$srcdir
16541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
brynercb91a2f2006-08-25 21:14:45 +000016542esac
mmentovai8c2a4de2006-09-20 16:20:15 +000016543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
brynercb91a2f2006-08-25 21:14:45 +000016544
brynercb91a2f2006-08-25 21:14:45 +000016545
mmentovai8c2a4de2006-09-20 16:20:15 +000016546 case $ac_mode in
16547 :F)
16548 #
16549 # CONFIG_FILE
16550 #
brynercb91a2f2006-08-25 21:14:45 +000016551
16552 case $INSTALL in
16553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
brynercb91a2f2006-08-25 21:14:45 +000016555 esac
mmentovaiaf3c43f2007-05-17 18:34:37 +000016556 ac_MKDIR_P=$MKDIR_P
16557 case $MKDIR_P in
16558 [\\/$]* | ?:[\\/]* ) ;;
16559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16560 esac
brynercb91a2f2006-08-25 21:14:45 +000016561_ACEOF
mmentovai8c2a4de2006-09-20 16:20:15 +000016562
jimblandy92b1f832009-12-23 22:23:49 +000016563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016564# If the template does not know about datarootdir, expand it.
16565# FIXME: This hack should be removed a few years after 2.60.
16566ac_datarootdir_hack=; ac_datarootdir_seen=
jimblandy92b1f832009-12-23 22:23:49 +000016567ac_sed_dataroot='
16568/datarootdir/ {
mmentovai8c2a4de2006-09-20 16:20:15 +000016569 p
16570 q
16571}
16572/@datadir@/p
16573/@docdir@/p
16574/@infodir@/p
16575/@localedir@/p
jimblandy92b1f832009-12-23 22:23:49 +000016576/@mandir@/p'
16577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
mmentovai8c2a4de2006-09-20 16:20:15 +000016578*datarootdir*) ac_datarootdir_seen=yes;;
16579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
jimblandy92b1f832009-12-23 22:23:49 +000016580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016582_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mmentovai8c2a4de2006-09-20 16:20:15 +000016584 ac_datarootdir_hack='
16585 s&@datadir@&$datadir&g
16586 s&@docdir@&$docdir&g
16587 s&@infodir@&$infodir&g
16588 s&@localedir@&$localedir&g
16589 s&@mandir@&$mandir&g
jimblandy92b1f832009-12-23 22:23:49 +000016590 s&\\\${datarootdir}&$datarootdir&g' ;;
mmentovai8c2a4de2006-09-20 16:20:15 +000016591esac
16592_ACEOF
16593
16594# Neutralize VPATH when `$srcdir' = `.'.
16595# Shell code in configure.ac might set extrasub.
16596# FIXME: do we really want to maintain this feature?
jimblandy92b1f832009-12-23 22:23:49 +000016597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16598ac_sed_extra="$ac_vpsub
brynercb91a2f2006-08-25 21:14:45 +000016599$extrasub
16600_ACEOF
jimblandy92b1f832009-12-23 22:23:49 +000016601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
brynercb91a2f2006-08-25 21:14:45 +000016602:t
16603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
jimblandy92b1f832009-12-23 22:23:49 +000016604s|@configure_input@|$ac_sed_conf_input|;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016605s&@top_builddir@&$ac_top_builddir_sub&;t t
jimblandy92b1f832009-12-23 22:23:49 +000016606s&@top_build_prefix@&$ac_top_build_prefix&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016607s&@srcdir@&$ac_srcdir&;t t
16608s&@abs_srcdir@&$ac_abs_srcdir&;t t
16609s&@top_srcdir@&$ac_top_srcdir&;t t
16610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16611s&@builddir@&$ac_builddir&;t t
16612s&@abs_builddir@&$ac_abs_builddir&;t t
16613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16614s&@INSTALL@&$ac_INSTALL&;t t
mmentovaiaf3c43f2007-05-17 18:34:37 +000016615s&@MKDIR_P@&$ac_MKDIR_P&;t t
mmentovai8c2a4de2006-09-20 16:20:15 +000016616$ac_datarootdir_hack
jimblandy92b1f832009-12-23 22:23:49 +000016617"
16618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016620
mmentovai8c2a4de2006-09-20 16:20:15 +000016621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
jimblandy92b1f832009-12-23 22:23:49 +000016624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016625which seems to be undefined. Please make sure it is defined" >&5
jimblandy92b1f832009-12-23 22:23:49 +000016626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016627which seems to be undefined. Please make sure it is defined" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000016628
mmentovai8c2a4de2006-09-20 16:20:15 +000016629 rm -f "$tmp/stdin"
brynercb91a2f2006-08-25 21:14:45 +000016630 case $ac_file in
jimblandy92b1f832009-12-23 22:23:49 +000016631 -) cat "$tmp/out" && rm -f "$tmp/out";;
16632 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16633 esac \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mmentovai8c2a4de2006-09-20 16:20:15 +000016635 ;;
16636 :H)
16637 #
16638 # CONFIG_HEADER
16639 #
brynercb91a2f2006-08-25 21:14:45 +000016640 if test x"$ac_file" != x-; then
jimblandy92b1f832009-12-23 22:23:49 +000016641 {
16642 $as_echo "/* $configure_input */" \
16643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16644 } >"$tmp/config.h" \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000016646 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16648$as_echo "$as_me: $ac_file is unchanged" >&6;}
brynercb91a2f2006-08-25 21:14:45 +000016649 else
jimblandy92b1f832009-12-23 22:23:49 +000016650 rm -f "$ac_file"
16651 mv "$tmp/config.h" "$ac_file" \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016653 fi
16654 else
jimblandy92b1f832009-12-23 22:23:49 +000016655 $as_echo "/* $configure_input */" \
16656 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000016657 || as_fn_error $? "could not create -" "$LINENO" 5
brynercb91a2f2006-08-25 21:14:45 +000016658 fi
jimblandy92b1f832009-12-23 22:23:49 +000016659# Compute "$ac_file"'s index in $config_headers.
16660_am_arg="$ac_file"
brynercb91a2f2006-08-25 21:14:45 +000016661_am_stamp_count=1
16662for _am_header in $config_headers :; do
16663 case $_am_header in
jimblandy92b1f832009-12-23 22:23:49 +000016664 $_am_arg | $_am_arg:* )
brynercb91a2f2006-08-25 21:14:45 +000016665 break ;;
16666 * )
16667 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16668 esac
16669done
jimblandy92b1f832009-12-23 22:23:49 +000016670echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16671$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16672 X"$_am_arg" : 'X\(//\)[^/]' \| \
16673 X"$_am_arg" : 'X\(//\)$' \| \
16674 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16675$as_echo X"$_am_arg" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16677 s//\1/
16678 q
16679 }
16680 /^X\(\/\/\)[^/].*/{
16681 s//\1/
16682 q
16683 }
16684 /^X\(\/\/\)$/{
16685 s//\1/
16686 q
16687 }
16688 /^X\(\/\).*/{
16689 s//\1/
16690 q
16691 }
16692 s/.*/./; q'`/stamp-h$_am_stamp_count
16693 ;;
brynercb91a2f2006-08-25 21:14:45 +000016694
jimblandy92b1f832009-12-23 22:23:49 +000016695 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16696$as_echo "$as_me: executing $ac_file commands" >&6;}
mmentovai8c2a4de2006-09-20 16:20:15 +000016697 ;;
16698 esac
brynercb91a2f2006-08-25 21:14:45 +000016699
16700
mmentovai8c2a4de2006-09-20 16:20:15 +000016701 case $ac_file$ac_mode in
jimblandy92b1f832009-12-23 22:23:49 +000016702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16703 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16704 # are listed without --file. Let's play safe and only enable the eval
16705 # if we detect the quoting.
16706 case $CONFIG_FILES in
16707 *\'*) eval set x "$CONFIG_FILES" ;;
16708 *) set x $CONFIG_FILES ;;
16709 esac
16710 shift
16711 for mf
16712 do
16713 # Strip MF so we end up with the name of the file.
16714 mf=`echo "$mf" | sed -e 's/:.*$//'`
16715 # Check whether this is an Automake generated Makefile or not.
16716 # We used to match only the files named `Makefile.in', but
16717 # some people rename them; so instead we look at the file content.
16718 # Grep'ing the first line is not enough: some people post-process
16719 # each Makefile.in and add a new line on top of each file to say so.
16720 # Grep'ing the whole file is not good either: AIX grep has a line
16721 # limit of 2048, but all sed's we know have understand at least 4000.
16722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16723 dirpart=`$as_dirname -- "$mf" ||
brynercb91a2f2006-08-25 21:14:45 +000016724$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16725 X"$mf" : 'X\(//\)[^/]' \| \
16726 X"$mf" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016728$as_echo X"$mf" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16730 s//\1/
16731 q
16732 }
16733 /^X\(\/\/\)[^/].*/{
16734 s//\1/
16735 q
16736 }
16737 /^X\(\/\/\)$/{
16738 s//\1/
16739 q
16740 }
16741 /^X\(\/\).*/{
16742 s//\1/
16743 q
16744 }
16745 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016746 else
16747 continue
16748 fi
16749 # Extract the definition of DEPDIR, am__include, and am__quote
16750 # from the Makefile without running `make'.
16751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16752 test -z "$DEPDIR" && continue
16753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16754 test -z "am__include" && continue
16755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16756 # When using ansi2knr, U may be empty or an underscore; expand it
16757 U=`sed -n 's/^U = //p' < "$mf"`
16758 # Find all dependency output files, they are included files with
16759 # $(DEPDIR) in their names. We invoke sed twice because it is the
16760 # simplest approach to changing $(DEPDIR) to its actual value in the
16761 # expansion.
16762 for file in `sed -n "
16763 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16764 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16765 # Make sure the directory exists.
16766 test -f "$dirpart/$file" && continue
16767 fdir=`$as_dirname -- "$file" ||
brynercb91a2f2006-08-25 21:14:45 +000016768$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16769 X"$file" : 'X\(//\)[^/]' \| \
16770 X"$file" : 'X\(//\)$' \| \
mmentovai8c2a4de2006-09-20 16:20:15 +000016771 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
jimblandy92b1f832009-12-23 22:23:49 +000016772$as_echo X"$file" |
mmentovai8c2a4de2006-09-20 16:20:15 +000016773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\/\)[^/].*/{
16778 s//\1/
16779 q
16780 }
16781 /^X\(\/\/\)$/{
16782 s//\1/
16783 q
16784 }
16785 /^X\(\/\).*/{
16786 s//\1/
16787 q
16788 }
16789 s/.*/./; q'`
jimblandy92b1f832009-12-23 22:23:49 +000016790 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16791 # echo "creating $dirpart/$file"
16792 echo '# dummy' > "$dirpart/$file"
brynercb91a2f2006-08-25 21:14:45 +000016793 done
brynercb91a2f2006-08-25 21:14:45 +000016794 done
jimblandy92b1f832009-12-23 22:23:49 +000016795}
16796 ;;
16797 "libtool":C)
16798
16799 # See if we are running on zsh, and set the options which allow our
16800 # commands through without removal of \ escapes.
16801 if test -n "${ZSH_VERSION+set}" ; then
16802 setopt NO_GLOB_SUBST
16803 fi
16804
16805 cfgfile="${ofile}T"
16806 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16807 $RM "$cfgfile"
16808
16809 cat <<_LT_EOF >> "$cfgfile"
16810#! $SHELL
16811
16812# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16813# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16814# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16815# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16816#
16817# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16818# 2006, 2007, 2008 Free Software Foundation, Inc.
16819# Written by Gordon Matzigkeit, 1996
16820#
16821# This file is part of GNU Libtool.
16822#
16823# GNU Libtool is free software; you can redistribute it and/or
16824# modify it under the terms of the GNU General Public License as
16825# published by the Free Software Foundation; either version 2 of
16826# the License, or (at your option) any later version.
16827#
16828# As a special exception to the GNU General Public License,
16829# if you distribute this file as part of a program or library that
16830# is built using GNU Libtool, you may include this file under the
16831# same distribution terms that you use for the rest of that program.
16832#
16833# GNU Libtool is distributed in the hope that it will be useful,
16834# but WITHOUT ANY WARRANTY; without even the implied warranty of
16835# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16836# GNU General Public License for more details.
16837#
16838# You should have received a copy of the GNU General Public License
16839# along with GNU Libtool; see the file COPYING. If not, a copy
16840# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16841# obtained by writing to the Free Software Foundation, Inc.,
16842# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16843
16844
16845# The names of the tagged configurations supported by this script.
16846available_tags="CXX "
16847
16848# ### BEGIN LIBTOOL CONFIG
16849
16850# Which release of libtool.m4 was used?
16851macro_version=$macro_version
16852macro_revision=$macro_revision
16853
16854# Whether or not to build shared libraries.
16855build_libtool_libs=$enable_shared
16856
16857# Whether or not to build static libraries.
16858build_old_libs=$enable_static
16859
16860# What type of objects to build.
16861pic_mode=$pic_mode
16862
16863# Whether or not to optimize for fast installation.
16864fast_install=$enable_fast_install
16865
16866# The host system.
16867host_alias=$host_alias
16868host=$host
16869host_os=$host_os
16870
16871# The build system.
16872build_alias=$build_alias
16873build=$build
16874build_os=$build_os
16875
16876# A sed program that does not truncate output.
16877SED=$lt_SED
16878
16879# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16880Xsed="\$SED -e 1s/^X//"
16881
16882# A grep program that handles long lines.
16883GREP=$lt_GREP
16884
16885# An ERE matcher.
16886EGREP=$lt_EGREP
16887
16888# A literal string matcher.
16889FGREP=$lt_FGREP
16890
16891# A BSD- or MS-compatible name lister.
16892NM=$lt_NM
16893
16894# Whether we need soft or hard links.
16895LN_S=$lt_LN_S
16896
16897# What is the maximum length of a command?
16898max_cmd_len=$max_cmd_len
16899
16900# Object file suffix (normally "o").
16901objext=$ac_objext
16902
16903# Executable file suffix (normally "").
16904exeext=$exeext
16905
16906# whether the shell understands "unset".
16907lt_unset=$lt_unset
16908
16909# turn spaces into newlines.
16910SP2NL=$lt_lt_SP2NL
16911
16912# turn newlines into spaces.
16913NL2SP=$lt_lt_NL2SP
16914
16915# How to create reloadable object files.
16916reload_flag=$lt_reload_flag
16917reload_cmds=$lt_reload_cmds
16918
16919# An object symbol dumper.
16920OBJDUMP=$lt_OBJDUMP
16921
16922# Method to check whether dependent libraries are shared objects.
16923deplibs_check_method=$lt_deplibs_check_method
16924
16925# Command to use when deplibs_check_method == "file_magic".
16926file_magic_cmd=$lt_file_magic_cmd
16927
16928# The archiver.
16929AR=$lt_AR
16930AR_FLAGS=$lt_AR_FLAGS
16931
16932# A symbol stripping program.
16933STRIP=$lt_STRIP
16934
16935# Commands used to install an old-style archive.
16936RANLIB=$lt_RANLIB
16937old_postinstall_cmds=$lt_old_postinstall_cmds
16938old_postuninstall_cmds=$lt_old_postuninstall_cmds
16939
16940# A C compiler.
16941LTCC=$lt_CC
16942
16943# LTCC compiler flags.
16944LTCFLAGS=$lt_CFLAGS
16945
16946# Take the output of nm and produce a listing of raw symbols and C names.
16947global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16948
16949# Transform the output of nm in a proper C declaration.
16950global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16951
16952# Transform the output of nm in a C name address pair.
16953global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16954
16955# Transform the output of nm in a C name address pair when lib prefix is needed.
16956global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16957
16958# The name of the directory that contains temporary libtool files.
16959objdir=$objdir
16960
16961# Shell to use when invoking shell scripts.
16962SHELL=$lt_SHELL
16963
16964# An echo program that does not interpret backslashes.
16965ECHO=$lt_ECHO
16966
16967# Used to examine libraries when file_magic_cmd begins with "file".
16968MAGIC_CMD=$MAGIC_CMD
16969
16970# Must we lock files when doing compilation?
16971need_locks=$lt_need_locks
16972
16973# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16974DSYMUTIL=$lt_DSYMUTIL
16975
16976# Tool to change global to local symbols on Mac OS X.
16977NMEDIT=$lt_NMEDIT
16978
16979# Tool to manipulate fat objects and archives on Mac OS X.
16980LIPO=$lt_LIPO
16981
16982# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16983OTOOL=$lt_OTOOL
16984
16985# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16986OTOOL64=$lt_OTOOL64
16987
16988# Old archive suffix (normally "a").
16989libext=$libext
16990
16991# Shared library suffix (normally ".so").
16992shrext_cmds=$lt_shrext_cmds
16993
16994# The commands to extract the exported symbol list from a shared archive.
16995extract_expsyms_cmds=$lt_extract_expsyms_cmds
16996
16997# Variables whose values should be saved in libtool wrapper scripts and
16998# restored at link time.
16999variables_saved_for_relink=$lt_variables_saved_for_relink
17000
17001# Do we need the "lib" prefix for modules?
17002need_lib_prefix=$need_lib_prefix
17003
17004# Do we need a version for libraries?
17005need_version=$need_version
17006
17007# Library versioning type.
17008version_type=$version_type
17009
17010# Shared library runtime path variable.
17011runpath_var=$runpath_var
17012
17013# Shared library path variable.
17014shlibpath_var=$shlibpath_var
17015
17016# Is shlibpath searched before the hard-coded library search path?
17017shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17018
17019# Format of library name prefix.
17020libname_spec=$lt_libname_spec
17021
17022# List of archive names. First name is the real one, the rest are links.
17023# The last name is the one that the linker finds with -lNAME
17024library_names_spec=$lt_library_names_spec
17025
17026# The coded name of the library, if different from the real name.
17027soname_spec=$lt_soname_spec
17028
17029# Command to use after installation of a shared archive.
17030postinstall_cmds=$lt_postinstall_cmds
17031
17032# Command to use after uninstallation of a shared archive.
17033postuninstall_cmds=$lt_postuninstall_cmds
17034
17035# Commands used to finish a libtool library installation in a directory.
17036finish_cmds=$lt_finish_cmds
17037
17038# As "finish_cmds", except a single script fragment to be evaled but
17039# not shown.
17040finish_eval=$lt_finish_eval
17041
17042# Whether we should hardcode library paths into libraries.
17043hardcode_into_libs=$hardcode_into_libs
17044
17045# Compile-time system search path for libraries.
17046sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17047
17048# Run-time system search path for libraries.
17049sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17050
17051# Whether dlopen is supported.
17052dlopen_support=$enable_dlopen
17053
17054# Whether dlopen of programs is supported.
17055dlopen_self=$enable_dlopen_self
17056
17057# Whether dlopen of statically linked programs is supported.
17058dlopen_self_static=$enable_dlopen_self_static
17059
17060# Commands to strip libraries.
17061old_striplib=$lt_old_striplib
17062striplib=$lt_striplib
17063
17064
17065# The linker used to build libraries.
17066LD=$lt_LD
17067
17068# Commands used to build an old-style archive.
17069old_archive_cmds=$lt_old_archive_cmds
17070
17071# A language specific compiler.
17072CC=$lt_compiler
17073
17074# Is the compiler the GNU compiler?
17075with_gcc=$GCC
17076
17077# Compiler flag to turn off builtin functions.
17078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17079
17080# How to pass a linker flag through the compiler.
17081wl=$lt_lt_prog_compiler_wl
17082
17083# Additional compiler flags for building library objects.
17084pic_flag=$lt_lt_prog_compiler_pic
17085
17086# Compiler flag to prevent dynamic linking.
17087link_static_flag=$lt_lt_prog_compiler_static
17088
17089# Does compiler simultaneously support -c and -o options?
17090compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17091
17092# Whether or not to add -lc for building shared libraries.
17093build_libtool_need_lc=$archive_cmds_need_lc
17094
17095# Whether or not to disallow shared libs when runtime libs are static.
17096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17097
17098# Compiler flag to allow reflexive dlopens.
17099export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17100
17101# Compiler flag to generate shared objects directly from archives.
17102whole_archive_flag_spec=$lt_whole_archive_flag_spec
17103
17104# Whether the compiler copes with passing no objects directly.
17105compiler_needs_object=$lt_compiler_needs_object
17106
17107# Create an old-style archive from a shared archive.
17108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17109
17110# Create a temporary old-style archive to link instead of a shared archive.
17111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17112
17113# Commands used to build a shared archive.
17114archive_cmds=$lt_archive_cmds
17115archive_expsym_cmds=$lt_archive_expsym_cmds
17116
17117# Commands used to build a loadable module if different from building
17118# a shared archive.
17119module_cmds=$lt_module_cmds
17120module_expsym_cmds=$lt_module_expsym_cmds
17121
17122# Whether we are building with GNU ld or not.
17123with_gnu_ld=$lt_with_gnu_ld
17124
17125# Flag that allows shared libraries with undefined symbols to be built.
17126allow_undefined_flag=$lt_allow_undefined_flag
17127
17128# Flag that enforces no undefined symbols.
17129no_undefined_flag=$lt_no_undefined_flag
17130
17131# Flag to hardcode \$libdir into a binary during linking.
17132# This must work even if \$libdir does not exist
17133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17134
17135# If ld is used when linking, flag to hardcode \$libdir into a binary
17136# during linking. This must work even if \$libdir does not exist.
17137hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17138
17139# Whether we need a single "-rpath" flag with a separated argument.
17140hardcode_libdir_separator=$lt_hardcode_libdir_separator
17141
17142# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17143# DIR into the resulting binary.
17144hardcode_direct=$hardcode_direct
17145
17146# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17147# DIR into the resulting binary and the resulting library dependency is
17148# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17149# library is relocated.
17150hardcode_direct_absolute=$hardcode_direct_absolute
17151
17152# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17153# into the resulting binary.
17154hardcode_minus_L=$hardcode_minus_L
17155
17156# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17157# into the resulting binary.
17158hardcode_shlibpath_var=$hardcode_shlibpath_var
17159
17160# Set to "yes" if building a shared library automatically hardcodes DIR
17161# into the library and all subsequent libraries and executables linked
17162# against it.
17163hardcode_automatic=$hardcode_automatic
17164
17165# Set to yes if linker adds runtime paths of dependent libraries
17166# to runtime path list.
17167inherit_rpath=$inherit_rpath
17168
17169# Whether libtool must link a program against all its dependency libraries.
17170link_all_deplibs=$link_all_deplibs
17171
17172# Fix the shell variable \$srcfile for the compiler.
17173fix_srcfile_path=$lt_fix_srcfile_path
17174
17175# Set to "yes" if exported symbols are required.
17176always_export_symbols=$always_export_symbols
17177
17178# The commands to list exported symbols.
17179export_symbols_cmds=$lt_export_symbols_cmds
17180
17181# Symbols that should not be listed in the preloaded symbols.
17182exclude_expsyms=$lt_exclude_expsyms
17183
17184# Symbols that must always be exported.
17185include_expsyms=$lt_include_expsyms
17186
17187# Commands necessary for linking programs (against libraries) with templates.
17188prelink_cmds=$lt_prelink_cmds
17189
17190# Specify filename containing input files.
17191file_list_spec=$lt_file_list_spec
17192
17193# How to hardcode a shared library path into an executable.
17194hardcode_action=$hardcode_action
17195
17196# The directories searched by this compiler when creating a shared library.
17197compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17198
17199# Dependencies to place before and after the objects being linked to
17200# create a shared library.
17201predep_objects=$lt_predep_objects
17202postdep_objects=$lt_postdep_objects
17203predeps=$lt_predeps
17204postdeps=$lt_postdeps
17205
17206# The library search path used internally by the compiler when linking
17207# a shared library.
17208compiler_lib_search_path=$lt_compiler_lib_search_path
17209
17210# ### END LIBTOOL CONFIG
17211
17212_LT_EOF
17213
17214 case $host_os in
17215 aix3*)
17216 cat <<\_LT_EOF >> "$cfgfile"
17217# AIX sometimes has problems with the GCC collect2 program. For some
17218# reason, if we set the COLLECT_NAMES environment variable, the problems
17219# vanish in a puff of smoke.
17220if test "X${COLLECT_NAMES+set}" != Xset; then
17221 COLLECT_NAMES=
17222 export COLLECT_NAMES
17223fi
17224_LT_EOF
17225 ;;
17226 esac
17227
17228
17229ltmain="$ac_aux_dir/ltmain.sh"
17230
17231
17232 # We use sed instead of cat because bash on DJGPP gets confused if
17233 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17234 # text mode, it properly converts lines to CR/LF. This bash problem
17235 # is reportedly fixed, but why not run on old versions too?
17236 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17237 || (rm -f "$cfgfile"; exit 1)
17238
17239 case $xsi_shell in
17240 yes)
17241 cat << \_LT_EOF >> "$cfgfile"
17242
17243# func_dirname file append nondir_replacement
17244# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17245# otherwise set result to NONDIR_REPLACEMENT.
17246func_dirname ()
17247{
17248 case ${1} in
17249 */*) func_dirname_result="${1%/*}${2}" ;;
17250 * ) func_dirname_result="${3}" ;;
17251 esac
17252}
17253
17254# func_basename file
17255func_basename ()
17256{
17257 func_basename_result="${1##*/}"
17258}
17259
17260# func_dirname_and_basename file append nondir_replacement
17261# perform func_basename and func_dirname in a single function
17262# call:
17263# dirname: Compute the dirname of FILE. If nonempty,
17264# add APPEND to the result, otherwise set result
17265# to NONDIR_REPLACEMENT.
17266# value returned in "$func_dirname_result"
17267# basename: Compute filename of FILE.
17268# value retuned in "$func_basename_result"
17269# Implementation must be kept synchronized with func_dirname
17270# and func_basename. For efficiency, we do not delegate to
17271# those functions but instead duplicate the functionality here.
17272func_dirname_and_basename ()
17273{
17274 case ${1} in
17275 */*) func_dirname_result="${1%/*}${2}" ;;
17276 * ) func_dirname_result="${3}" ;;
17277 esac
17278 func_basename_result="${1##*/}"
17279}
17280
17281# func_stripname prefix suffix name
17282# strip PREFIX and SUFFIX off of NAME.
17283# PREFIX and SUFFIX must not contain globbing or regex special
17284# characters, hashes, percent signs, but SUFFIX may contain a leading
17285# dot (in which case that matches only a dot).
17286func_stripname ()
17287{
17288 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17289 # positional parameters, so assign one to ordinary parameter first.
17290 func_stripname_result=${3}
17291 func_stripname_result=${func_stripname_result#"${1}"}
17292 func_stripname_result=${func_stripname_result%"${2}"}
17293}
17294
17295# func_opt_split
17296func_opt_split ()
17297{
17298 func_opt_split_opt=${1%%=*}
17299 func_opt_split_arg=${1#*=}
17300}
17301
17302# func_lo2o object
17303func_lo2o ()
17304{
17305 case ${1} in
17306 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17307 *) func_lo2o_result=${1} ;;
17308 esac
17309}
17310
17311# func_xform libobj-or-source
17312func_xform ()
17313{
17314 func_xform_result=${1%.*}.lo
17315}
17316
17317# func_arith arithmetic-term...
17318func_arith ()
17319{
17320 func_arith_result=$(( $* ))
17321}
17322
17323# func_len string
17324# STRING may not start with a hyphen.
17325func_len ()
17326{
17327 func_len_result=${#1}
17328}
17329
17330_LT_EOF
17331 ;;
17332 *) # Bourne compatible functions.
17333 cat << \_LT_EOF >> "$cfgfile"
17334
17335# func_dirname file append nondir_replacement
17336# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17337# otherwise set result to NONDIR_REPLACEMENT.
17338func_dirname ()
17339{
17340 # Extract subdirectory from the argument.
17341 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17342 if test "X$func_dirname_result" = "X${1}"; then
17343 func_dirname_result="${3}"
17344 else
17345 func_dirname_result="$func_dirname_result${2}"
17346 fi
17347}
17348
17349# func_basename file
17350func_basename ()
17351{
17352 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17353}
17354
17355
17356# func_stripname prefix suffix name
17357# strip PREFIX and SUFFIX off of NAME.
17358# PREFIX and SUFFIX must not contain globbing or regex special
17359# characters, hashes, percent signs, but SUFFIX may contain a leading
17360# dot (in which case that matches only a dot).
17361# func_strip_suffix prefix name
17362func_stripname ()
17363{
17364 case ${2} in
17365 .*) func_stripname_result=`$ECHO "X${3}" \
17366 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17367 *) func_stripname_result=`$ECHO "X${3}" \
17368 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17369 esac
17370}
17371
17372# sed scripts:
17373my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17374my_sed_long_arg='1s/^-[^=]*=//'
17375
17376# func_opt_split
17377func_opt_split ()
17378{
17379 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17380 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17381}
17382
17383# func_lo2o object
17384func_lo2o ()
17385{
17386 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17387}
17388
17389# func_xform libobj-or-source
17390func_xform ()
17391{
17392 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17393}
17394
17395# func_arith arithmetic-term...
17396func_arith ()
17397{
17398 func_arith_result=`expr "$@"`
17399}
17400
17401# func_len string
17402# STRING may not start with a hyphen.
17403func_len ()
17404{
17405 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17406}
17407
17408_LT_EOF
17409esac
17410
17411case $lt_shell_append in
17412 yes)
17413 cat << \_LT_EOF >> "$cfgfile"
17414
17415# func_append var value
17416# Append VALUE to the end of shell variable VAR.
17417func_append ()
17418{
17419 eval "$1+=\$2"
17420}
17421_LT_EOF
17422 ;;
17423 *)
17424 cat << \_LT_EOF >> "$cfgfile"
17425
17426# func_append var value
17427# Append VALUE to the end of shell variable VAR.
17428func_append ()
17429{
17430 eval "$1=\$$1\$2"
17431}
17432
17433_LT_EOF
17434 ;;
17435 esac
17436
17437
17438 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17439 || (rm -f "$cfgfile"; exit 1)
17440
17441 mv -f "$cfgfile" "$ofile" ||
17442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17443 chmod +x "$ofile"
17444
17445
17446 cat <<_LT_EOF >> "$ofile"
17447
17448# ### BEGIN LIBTOOL TAG CONFIG: CXX
17449
17450# The linker used to build libraries.
17451LD=$lt_LD_CXX
17452
17453# Commands used to build an old-style archive.
17454old_archive_cmds=$lt_old_archive_cmds_CXX
17455
17456# A language specific compiler.
17457CC=$lt_compiler_CXX
17458
17459# Is the compiler the GNU compiler?
17460with_gcc=$GCC_CXX
17461
17462# Compiler flag to turn off builtin functions.
17463no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17464
17465# How to pass a linker flag through the compiler.
17466wl=$lt_lt_prog_compiler_wl_CXX
17467
17468# Additional compiler flags for building library objects.
17469pic_flag=$lt_lt_prog_compiler_pic_CXX
17470
17471# Compiler flag to prevent dynamic linking.
17472link_static_flag=$lt_lt_prog_compiler_static_CXX
17473
17474# Does compiler simultaneously support -c and -o options?
17475compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17476
17477# Whether or not to add -lc for building shared libraries.
17478build_libtool_need_lc=$archive_cmds_need_lc_CXX
17479
17480# Whether or not to disallow shared libs when runtime libs are static.
17481allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17482
17483# Compiler flag to allow reflexive dlopens.
17484export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17485
17486# Compiler flag to generate shared objects directly from archives.
17487whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17488
17489# Whether the compiler copes with passing no objects directly.
17490compiler_needs_object=$lt_compiler_needs_object_CXX
17491
17492# Create an old-style archive from a shared archive.
17493old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17494
17495# Create a temporary old-style archive to link instead of a shared archive.
17496old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17497
17498# Commands used to build a shared archive.
17499archive_cmds=$lt_archive_cmds_CXX
17500archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17501
17502# Commands used to build a loadable module if different from building
17503# a shared archive.
17504module_cmds=$lt_module_cmds_CXX
17505module_expsym_cmds=$lt_module_expsym_cmds_CXX
17506
17507# Whether we are building with GNU ld or not.
17508with_gnu_ld=$lt_with_gnu_ld_CXX
17509
17510# Flag that allows shared libraries with undefined symbols to be built.
17511allow_undefined_flag=$lt_allow_undefined_flag_CXX
17512
17513# Flag that enforces no undefined symbols.
17514no_undefined_flag=$lt_no_undefined_flag_CXX
17515
17516# Flag to hardcode \$libdir into a binary during linking.
17517# This must work even if \$libdir does not exist
17518hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17519
17520# If ld is used when linking, flag to hardcode \$libdir into a binary
17521# during linking. This must work even if \$libdir does not exist.
17522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17523
17524# Whether we need a single "-rpath" flag with a separated argument.
17525hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17526
17527# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17528# DIR into the resulting binary.
17529hardcode_direct=$hardcode_direct_CXX
17530
17531# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17532# DIR into the resulting binary and the resulting library dependency is
17533# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17534# library is relocated.
17535hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17536
17537# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17538# into the resulting binary.
17539hardcode_minus_L=$hardcode_minus_L_CXX
17540
17541# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17542# into the resulting binary.
17543hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17544
17545# Set to "yes" if building a shared library automatically hardcodes DIR
17546# into the library and all subsequent libraries and executables linked
17547# against it.
17548hardcode_automatic=$hardcode_automatic_CXX
17549
17550# Set to yes if linker adds runtime paths of dependent libraries
17551# to runtime path list.
17552inherit_rpath=$inherit_rpath_CXX
17553
17554# Whether libtool must link a program against all its dependency libraries.
17555link_all_deplibs=$link_all_deplibs_CXX
17556
17557# Fix the shell variable \$srcfile for the compiler.
17558fix_srcfile_path=$lt_fix_srcfile_path_CXX
17559
17560# Set to "yes" if exported symbols are required.
17561always_export_symbols=$always_export_symbols_CXX
17562
17563# The commands to list exported symbols.
17564export_symbols_cmds=$lt_export_symbols_cmds_CXX
17565
17566# Symbols that should not be listed in the preloaded symbols.
17567exclude_expsyms=$lt_exclude_expsyms_CXX
17568
17569# Symbols that must always be exported.
17570include_expsyms=$lt_include_expsyms_CXX
17571
17572# Commands necessary for linking programs (against libraries) with templates.
17573prelink_cmds=$lt_prelink_cmds_CXX
17574
17575# Specify filename containing input files.
17576file_list_spec=$lt_file_list_spec_CXX
17577
17578# How to hardcode a shared library path into an executable.
17579hardcode_action=$hardcode_action_CXX
17580
17581# The directories searched by this compiler when creating a shared library.
17582compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17583
17584# Dependencies to place before and after the objects being linked to
17585# create a shared library.
17586predep_objects=$lt_predep_objects_CXX
17587postdep_objects=$lt_postdep_objects_CXX
17588predeps=$lt_predeps_CXX
17589postdeps=$lt_postdeps_CXX
17590
17591# The library search path used internally by the compiler when linking
17592# a shared library.
17593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17594
17595# ### END LIBTOOL TAG CONFIG: CXX
17596_LT_EOF
17597
brynercb91a2f2006-08-25 21:14:45 +000017598 ;;
brynercb91a2f2006-08-25 21:14:45 +000017599
mmentovai8c2a4de2006-09-20 16:20:15 +000017600 esac
17601done # for ac_tag
17602
brynercb91a2f2006-08-25 21:14:45 +000017603
jimblandy92b1f832009-12-23 22:23:49 +000017604as_fn_exit 0
brynercb91a2f2006-08-25 21:14:45 +000017605_ACEOF
brynercb91a2f2006-08-25 21:14:45 +000017606ac_clean_files=$ac_clean_files_save
17607
jimblandy92b1f832009-12-23 22:23:49 +000017608test $ac_write_fail = 0 ||
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000017609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
jimblandy92b1f832009-12-23 22:23:49 +000017610
brynercb91a2f2006-08-25 21:14:45 +000017611
17612# configure is writing to config.log, and then calls config.status.
17613# config.status does its own redirection, appending to config.log.
17614# Unfortunately, on DOS this fails, as config.log is still kept open
17615# by configure, so config.status won't be able to write to it; its
17616# output is simply discarded. So we exec the FD to /dev/null,
17617# effectively closing config.log, so it can be properly (re)opened and
17618# appended to by config.status. When coming back to configure, we
17619# need to make the FD available again.
17620if test "$no_create" != yes; then
17621 ac_cs_success=:
17622 ac_config_status_args=
17623 test "$silent" = yes &&
17624 ac_config_status_args="$ac_config_status_args --quiet"
17625 exec 5>/dev/null
17626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17627 exec 5>>config.log
17628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17629 # would make configure fail if this is the last instruction.
cdn@chromium.org2b4274a2010-10-01 22:38:10 +000017630 $ac_cs_success || as_fn_exit 1
jimblandy92b1f832009-12-23 22:23:49 +000017631fi
17632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
brynercb91a2f2006-08-25 21:14:45 +000017635fi
17636